[go: up one dir, main page]

JP2018136854A - Optical information reader - Google Patents

Optical information reader Download PDF

Info

Publication number
JP2018136854A
JP2018136854A JP2017032316A JP2017032316A JP2018136854A JP 2018136854 A JP2018136854 A JP 2018136854A JP 2017032316 A JP2017032316 A JP 2017032316A JP 2017032316 A JP2017032316 A JP 2017032316A JP 2018136854 A JP2018136854 A JP 2018136854A
Authority
JP
Japan
Prior art keywords
code
unit
size
optical information
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2017032316A
Other languages
Japanese (ja)
Inventor
大河 能見
Taiga Nomi
大河 能見
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 JP2017032316A priority Critical patent/JP2018136854A/en
Publication of JP2018136854A publication Critical patent/JP2018136854A/en
Pending legal-status Critical Current

Links

Landscapes

  • Studio Devices (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an optical information reader that can read codes in a short time and enhances reading accuracy of the codes even if a photographic image includes low-resolution codes.SOLUTION: An optical information reader determines whether the size of a code corresponds to an extended interpolation processing object on the basis of information on the size of the code detected by a detection unit and a prestored determination reference value. If it is determined that the size of the code corresponds to an extended interpolation processing object, the optical information reader carries out extended interpolation processing of a partial image of the code of an image taken with an imaging unit.SELECTED DRAWING: Figure 18

Description

本発明は、情報を光学的に読み取る光学的情報読取装置に関する。   The present invention relates to an optical information reader that optically reads information.

近年、たとえば物品の流通経路を製造段階から消費段階あるいは廃棄段階まで追跡可能にする、いわゆるトレーサビリティが重要視されてきており、このトレーサビリティを目的としたコードリーダが普及してきている。また、トレーサビリティ以外にもコードリーダは様々な分野で利用されている。   In recent years, for example, so-called traceability that enables tracing of the distribution channel of goods from the manufacturing stage to the consumption stage or the disposal stage has been regarded as important, and code readers aimed at this traceability have become widespread. In addition to traceability, code readers are used in various fields.

一般的に、コードリーダは、ワークに付されたバーコードや二次元コード等のコードをカメラによって撮像し、得られた画像に含まれるコードを画像処理によって切り出して二値化し、デコード処理して情報を読み取ることができるように構成されており、情報を光学的に読み取る装置であることから光学的情報読取装置とも呼ばれている。   In general, a code reader captures a code such as a bar code or a two-dimensional code attached to a work with a camera, cuts out a code included in the obtained image by image processing, binarizes it, and performs decoding processing. It is configured to be able to read information and is also called an optical information reading device because it is a device that optically reads information.

例えば、特許文献1に開示されている読取装置は、二次元コードを読み取る際に、使用者がシャッターボタンを押下すると画面上のファインダウインドウの中央部分に矩形の枠を表示し、この枠内に二次元コードが位置するように使用者がファインダウインドウを見ながら二次元コードを移動させると、この枠内の領域を自動的に拡大して表示するように構成されている。   For example, the reading device disclosed in Patent Document 1 displays a rectangular frame at the center of the finder window on the screen when the user presses the shutter button when reading a two-dimensional code, and the frame is within this frame. When the user moves the two-dimensional code while looking at the finder window so that the two-dimensional code is positioned, the area within the frame is automatically enlarged and displayed.

特開2000−322509号公報JP 2000-322509 A

ところで、上述したように二次元コードを拡大することで読取精度を向上させることができると考えられるが、特許文献1ではファインダウインドウの枠内に二次元コードが表示されるように使用者が二次元コードを移動させなければならないので手間がかかるし、使い勝手が悪いという問題があった。また、例えば連続して搬送されてくるワークに付されたコードを読み取るような用途では使用が困難であった。   By the way, it is considered that the reading accuracy can be improved by enlarging the two-dimensional code as described above. However, in Patent Document 1, two users are displayed so that the two-dimensional code is displayed in the frame of the finder window. Since the dimension code has to be moved, there is a problem that it takes time and is not easy to use. In addition, for example, it is difficult to use in applications such as reading a code attached to a workpiece that is continuously conveyed.

また、カメラと二次元コードとの相対距離が変わると、画面に表示されるコードの大きさが異なることになるので、カメラと二次元コードとの相対距離が変わる都度、拡大させる領域を指定し直さなければならず、このことも使い勝手が悪化する要因となる。   Also, if the relative distance between the camera and the 2D code changes, the code size displayed on the screen will change, so each time the relative distance between the camera and the 2D code changes, specify the area to be enlarged. This has to be fixed, and this is also a factor that deteriorates usability.

そこで、カメラで撮像した画像の全体を拡大補間して解像度を向上させる方法が考えられるが、拡大する領域が大きくなるので処理に時間がかかり、その結果、コードの読取時間が長時間化することになる。   Therefore, a method of improving the resolution by enlarging and interpolating the entire image captured by the camera is conceivable. However, since the area to be enlarged becomes larger, it takes time to process, and as a result, the code reading time becomes longer. become.

本発明は、かかる点に鑑みてなされたものであり、その目的とするところは、撮像された画像内に解像度の低いコードが含まれる場合であっても短時間でコードを読み取ることができるようにするとともに、コードの読取精度を高めることにある。   The present invention has been made in view of the above points, and an object of the present invention is to be able to read a code in a short time even when a low-resolution code is included in a captured image. And improving the code reading accuracy.

上記目的を達成するために、本発明では、ワークに付されたコードを撮像する撮像素子を有する撮像部と、上記撮像部により撮像された画像に含まれるコードの大きさに関する情報を検出するための検出部と、上記撮像部により撮像された画像に含まれるコードの大きさに関する情報に基づいて当該コードが拡大補間処理対象であるか否かを判定する基準となる大きさ判定基準値を記憶する判定基準値記憶部と、上記検出部により検出されたコードの大きさに関する情報と、上記判定基準値記憶部に記憶された大きさ判定基準値とに基づいて、コードの大きさが拡大補間処理対象であるか否かを判定し、コードの大きさが拡大補間処理対象であると判定される場合には、上記撮像部により撮像された画像のうち、コードを含む部分画像の拡大補間処理を行う一方、コードの大きさが拡大補間処理対象ではないと判定される場合には、コードを含む部分画像の拡大補間処理を行わないように構成された拡大補間処理部と、上記拡大補間処理部により拡大補間処理が行われた部分画像及び上記拡大補間処理部により拡大補間処理が行われていない部分画像のいずれかに含まれるコードをデコードするデコード部とを備えている構成とすることができる。   In order to achieve the above object, in the present invention, an image pickup unit having an image pickup device for picking up an image of a code attached to a work, and information relating to the size of a code included in an image picked up by the image pickup unit are detected. And a size determination reference value that serves as a reference for determining whether or not the code is an object for enlargement interpolation processing based on information on the size of the code included in the image captured by the imaging unit. The code size is enlarged and interpolated based on the determination reference value storage unit, the information on the code size detected by the detection unit, and the size determination reference value stored in the determination reference value storage unit. It is determined whether or not the image is to be processed, and if it is determined that the size of the code is an object for enlargement interpolation processing, an enlargement of a partial image including the code among images captured by the imaging unit If the code size is determined not to be subject to enlargement interpolation processing, the enlargement interpolation processing unit configured not to perform enlargement interpolation processing of the partial image including the code, and the enlargement processing described above A decoding unit that decodes a code included in either the partial image that has been subjected to the expansion interpolation process by the interpolation processing unit or the partial image that has not been subjected to the expansion interpolation process by the expansion interpolation processing unit; be able to.

この構成によれば、撮像部により撮像された画像に含まれるコードの大きさに関する情報を検出部によって検出できる。コードの大きさに関する情報とは、例えば、コードの各部の寸法や、コードが二次元コードである場合にはセルサイズ、位置検出用パターン(ファインダパターン、アライメントパターン)のサイズ等であり、これらのうち、任意の1つまたは複数を検出部が検出することによってコードの大きさを得ることができる。   According to this structure, the information regarding the magnitude | size of the code contained in the image imaged by the imaging part can be detected by the detection part. Information on the size of the code includes, for example, the dimensions of each part of the code, and, when the code is a two-dimensional code, the cell size, the size of the position detection pattern (finder pattern, alignment pattern), etc. Among them, the size of the code can be obtained by detecting any one or more by the detection unit.

そして、拡大補間処理部は、検出部により検出されたコードの大きさに関する情報と、基準値記憶部に記憶された大きさ判定基準値とに基づいて、コードの大きさが拡大補間処理対象であるか否かを判定することができる。コードの大きさが拡大補間処理対象であると判定される場合には、撮像部により撮像された画像のうち、コードを含む部分画像の拡大補間処理を行うので、全画像を拡大補間する場合に比べて処理時間が短時間で済む。拡大補間処理後の部分画像に含まれるコードをデコード部がデコードすることができるので、コードの読取精度を高めることができる。一方、コードの大きさが拡大補間処理対象ではない場合には、コードを含む部分画像の拡大補間処理を行わないので、無用な処理が行われることはない。   The enlargement interpolation processing unit determines that the code size is the object of enlargement interpolation processing based on the information related to the code size detected by the detection unit and the size determination reference value stored in the reference value storage unit. It can be determined whether or not there is. When it is determined that the size of the code is subject to enlargement interpolation processing, enlargement interpolation processing is performed on the partial image including the code among the images captured by the imaging unit. Compared to this, the processing time is short. Since the decoding unit can decode the code included in the partial image after the enlargement interpolation process, the code reading accuracy can be improved. On the other hand, when the size of the code is not the target for the enlargement interpolation process, the enlargement interpolation process for the partial image including the code is not performed, and thus unnecessary processing is not performed.

また、上記撮像部により撮像された画像には、拡大補間処理対象となるコードと、拡大補間処理対象とならないコードとを含んでいてもよい。   In addition, the image captured by the imaging unit may include a code that is an object of enlargement interpolation processing and a code that is not an object of enlargement interpolation processing.

また、上記拡大補間処理を行う部分画像は、コードを示すコード領域及び該コード領域の周辺領域を含む画像とすることができる。   In addition, the partial image on which the enlargement interpolation process is performed can be an image including a code area indicating a code and a peripheral area of the code area.

また、上記コードは二次元コードであり、コードの大きさに関する情報は、二次元コードの予め定められた位置に配置され、該二次元コードの位置を検出する位置検出パターンのサイズとすることができる。   Further, the code is a two-dimensional code, and the information related to the size of the code is arranged at a predetermined position of the two-dimensional code and may be a size of a position detection pattern for detecting the position of the two-dimensional code. it can.

また、上記コードは二次元コードであり、コードの大きさに関する情報は、二次元コードのセルサイズまたは二次元コードの1つのセルを構成する画素サイズとすることができる。   Further, the code is a two-dimensional code, and the information regarding the size of the code may be a cell size of the two-dimensional code or a pixel size constituting one cell of the two-dimensional code.

また、上記拡大補間処理部により拡大補間処理が行われた部分画像のコードのボケを補正するための補正処理を実行するボケ補正部を備え、上記デコード部は、上記ボケ補正部による補正処理が実行された後にデコードするように構成することができる。   Further, the image processing apparatus includes a blur correction unit that performs correction processing for correcting the blur of the code of the partial image that has been subjected to the magnification interpolation processing by the magnification interpolation processing unit, and the decoding unit performs correction processing by the blur correction unit. It can be configured to decode after it has been executed.

また、上記デコード部は、デコードに先立って、上記拡大補間処理部により拡大補間処理が行われた部分画像に基づいてコードのセル位置を推定するセル位置推定処理を行うように構成することができる。   Further, prior to decoding, the decoding unit can be configured to perform cell position estimation processing for estimating a cell position of a code based on a partial image that has been subjected to expansion interpolation processing by the expansion interpolation processing unit. .

本発明によれば、撮像された画像内に解像度の低いコードが含まれる場合であっても短時間でコードを読み取ることができるとともに、コードの読取精度を高めることができる。   According to the present invention, a code can be read in a short time even when a low resolution code is included in a captured image, and the code reading accuracy can be increased.

光学的情報読取装置の運用時を説明する図である。It is a figure explaining the time of operation of an optical information reading device. 光学的情報読取装置の斜視図である。It is a perspective view of an optical information reader. 光学的情報読取装置を照明部側から見た図である。It is the figure which looked at the optical information reader from the illumination part side. 光学的情報読取装置の側面図である。It is a side view of an optical information reader. 光学的情報読取装置を表示部側から見た図である。It is the figure which looked at the optical information reader from the display part side. 偏光フィルタアタッチメントを本体から取り外した状態を示す斜視図である。It is a perspective view which shows the state which removed the polarizing filter attachment from the main body. リフレクタの斜視図である。It is a perspective view of a reflector. リフレクタの正面図である。It is a front view of a reflector. 透光パネルの斜視図である。It is a perspective view of a translucent panel. 透光パネルの正面図である。It is a front view of a translucent panel. 光学的情報読取装置のブロック図である。It is a block diagram of an optical information reader. コンピュータのブロック図である。It is a block diagram of a computer. パラメータセット記憶部の記憶内容を表示するためのユーザーインターフェースである。It is a user interface for displaying the storage contents of the parameter set storage unit. モニタ時におけるチューニング用インターフェースである。It is an interface for tuning during monitoring. ピント合わせが完了した状態のチューニング用インターフェースである。This is a tuning interface in a state where focusing has been completed. 明るさ調整中のチューニング用インターフェースである。It is an interface for tuning during brightness adjustment. マッチングレベルを表示したチューニング用インターフェースである。It is a tuning interface that displays matching levels. 運用時における制御内容を示すフローチャートである。It is a flowchart which shows the control content at the time of operation. 撮像された画像から拡大補間処理を実行するまでの流れを模式的に示す図である。It is a figure which shows typically the flow until it performs an expansion interpolation process from the imaged image. 第1コードのアライメントパターンを示す図である。It is a figure which shows the alignment pattern of a 1st code | cord | chord. 拡大補間処理の判定フローチャートである。It is a determination flowchart of expansion interpolation processing. 運用時における制御内容を示すフローチャートであり、拡大補間処理にLanczos法を使用した場合を示す。It is a flowchart which shows the control content at the time of operation | movement, and shows the case where Lanczos method is used for expansion interpolation processing.

以下、本発明の実施形態を図面に基づいて詳細に説明する。尚、以下の好ましい実施形態の説明は、本質的に例示に過ぎず、本発明、その適用物或いはその用途を制限することを意図するものではない。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. It should be noted that the following description of the preferred embodiment is merely illustrative in nature, and is not intended to limit the present invention, its application, or its use.

図1は、本発明の実施形態に係る光学的情報読取装置1の運用時を模式的に示す図である。この例では、複数のワークWが搬送用ベルトコンベアBの上面に載置された状態で図1における矢印Yの方向へ搬送されており、そのワークWから上方へ離れた所に、実施形態に係る光学的情報読取装置1が設置されている。光学的情報読取装置1は、ワークWに付されているコードを撮像し、撮像された画像に含まれるコードをデコード処理して情報を読み取ることができるように構成されたコードリーダである。光学的情報読取装置1は、その運用時に動かないようにブラケット等(図示せず)に固定して使用してもよいし、ロボット(図示せず)や使用者等が把持して動かしながら運用してもよい。また、静止状態にあるワークWのコードを光学的情報読取装置1によって読み取るようにしてもよい。運用時とは、搬送用ベルトコンベアBによって搬送されるワークWのコードを順に読み取る動作を行っている時である。   FIG. 1 is a diagram schematically showing the operation of the optical information reading apparatus 1 according to the embodiment of the present invention. In this example, a plurality of workpieces W are transported in the direction of arrow Y in FIG. 1 in a state where they are placed on the upper surface of the conveyor belt B for transport, and in the embodiment away from the workpieces W in the embodiment. Such an optical information reader 1 is installed. The optical information reading device 1 is a code reader configured to take an image of a code attached to a work W and decode information on the code included in the taken image to read information. The optical information reader 1 may be used by being fixed to a bracket or the like (not shown) so as not to move during its operation, or operated while being held and moved by a robot (not shown) or a user. May be. Further, the code of the workpiece W in a stationary state may be read by the optical information reading device 1. The time of operation is the time when the operation of sequentially reading the codes of the workpiece W conveyed by the conveyor belt conveyor B is performed.

また、各ワークWの上面にはコードが付されている。コードには、バーコード及び二次元コードの両方が含まれる。二次元コードとしては、たとえば、QRコード(登録商標)、マイクロQRコード、データマトリクス(Data matrix;Data code)、ベリコード(Veri code)、アズテックコード(Aztec code)、PDF417、マキシコード(Maxi code)などがある。二次元コードにはスタック型とマトリクス型があるが、本発明はいずれの二次元コードに対しても適用できる。コードは、ワークWに直接印刷あるいは刻印することによって付してもよいし、ラベルに印刷した後にワークWに貼付することによって付してもよく、その手段、方法は問わない。   A code is attached to the upper surface of each workpiece W. The code includes both a barcode and a two-dimensional code. Examples of the two-dimensional code include a QR code (registered trademark), a micro QR code, a data matrix (Data matrix), a Veri code, an Aztec code, a PDF417, and a Maxi code. and so on. The two-dimensional code includes a stack type and a matrix type, but the present invention can be applied to any two-dimensional code. The code may be attached by printing or stamping directly on the workpiece W, or may be attached by printing on a label and then affixing to the workpiece W, and the means and method thereof are not limited.

光学的情報読取装置1は、コンピュータ100及びプログラマブル・ロジック・コントローラ(PLC)101にそれぞれ信号線100a、101aによって有線接続されているが、これに限らず、光学的情報読取装置1、コンピュータ100及びPLC101に通信モジュールを内蔵し、光学的情報読取装置1と、コンピュータ100及びPLC101とを無線接続するようにしてもよい。PLC101は、搬送用ベルトコンベアB及び光学的情報読取装置1をシーケンス制御するための制御装置であり、汎用のPLCを利用することができる。コンピュータ100は、汎用あるいは専用の電子計算機や携帯型端末等を利用することができる。   The optical information reader 1 is wired to the computer 100 and the programmable logic controller (PLC) 101 through signal lines 100a and 101a, respectively. However, the optical information reader 1 is not limited to this, and the optical information reader 1, the computer 100, and The PLC 101 may include a communication module so that the optical information reading apparatus 1 and the computer 100 and the PLC 101 are wirelessly connected. The PLC 101 is a control device for controlling the conveyor belt conveyor B and the optical information reading device 1 in sequence, and a general-purpose PLC can be used. The computer 100 can use a general-purpose or dedicated electronic computer, a portable terminal, or the like.

また、光学的情報読取装置1は、その運用時において、PLC101から信号線101aを介して、コード読取の開始タイミングを規定する読取開始トリガ信号を受信する。そして、光学的情報読取装置1は、この読取開始トリガ信号に基づいてコードの撮像やデコードを行う。その後、デコードした結果は、信号線101aを介してPLC101へ送信される。このように、光学的情報読取装置1の運用時には、光学的情報読取装置1とPLC101等の外部制御装置との間で、信号線101aを介して読取開始トリガ信号の入力とデコード結果の出力が繰り返し行われる。なお、読取開始トリガ信号の入力やデコード結果の出力は、上述したように、光学的情報読取装置1とPLC101との間の信号線101aを介して行ってもよいし、それ以外の図示しない信号線を介して行ってもよい。例えば、ワークの到着を検知するためのセンサと光学的情報読取装置1とを直接的に接続し、そのセンサから光学的情報読取装置1へ読取開始トリガ信号を入力するようにしてもよい。   Further, the optical information reading apparatus 1 receives a reading start trigger signal that defines the code reading start timing from the PLC 101 via the signal line 101a during operation. Then, the optical information reading device 1 performs code imaging and decoding based on the reading start trigger signal. Thereafter, the decoded result is transmitted to the PLC 101 via the signal line 101a. As described above, when the optical information reader 1 is operated, the reading start trigger signal and the decoding result are output between the optical information reader 1 and the external control device such as the PLC 101 via the signal line 101a. Repeatedly. As described above, the input of the reading start trigger signal and the output of the decoding result may be performed via the signal line 101a between the optical information reading apparatus 1 and the PLC 101, or other signals (not shown). It may be done via a line. For example, a sensor for detecting the arrival of a workpiece and the optical information reader 1 may be directly connected, and a reading start trigger signal may be input from the sensor to the optical information reader 1.

[光学的情報読取装置1の全体構成]
図2〜図6に示すように、光学的情報読取装置1は、装置本体2と、偏光フィルタアタッチメント3とを備えている。偏光フィルタアタッチメント3は省略してもよい。装置本体2には、照明部4と、撮像部5と、表示部6と、電源コネクタ7と、信号線コネクタ8とが設けられている。さらに、装置本体2には、図5に示すインジケータ9と、図3に示すエイマー10と、図5に示すセレクトボタン11と、エンターボタン12とが設けられている。
[Overall Configuration of Optical Information Reading Apparatus 1]
As shown in FIGS. 2 to 6, the optical information reading device 1 includes a device main body 2 and a polarization filter attachment 3. The polarizing filter attachment 3 may be omitted. The apparatus main body 2 is provided with an illumination unit 4, an imaging unit 5, a display unit 6, a power connector 7, and a signal line connector 8. Further, the apparatus main body 2 is provided with an indicator 9 shown in FIG. 5, an aimer 10 shown in FIG. 3, a select button 11 shown in FIG. 5, and an enter button 12.

この実施形態の説明では、図2〜図6に示すように光学的情報読取装置1の前面、後面、上面、下面、左面、右面を定義するが、これは説明の便宜を図るためだけであり、光学的情報読取装置1の使用時における向きを限定するものではない。すなわち、図1に示すように、光学的情報読取装置1の前面が下に向くように設置して使用することや、光学的情報読取装置1の前面が上に向くように設置して使用すること、あるいは光学的情報読取装置1の前面が傾斜した状態となるように設置して使用すること等が可能である。また、光学的情報読取装置1の左右方向は幅方向と呼ぶこともできる。   In the description of this embodiment, the front, rear, upper, lower, left, and right surfaces of the optical information reader 1 are defined as shown in FIGS. 2 to 6, but this is only for convenience of description. The direction of use of the optical information reading device 1 is not limited. That is, as shown in FIG. 1, the optical information reader 1 is installed and used with its front face facing down, or the optical information reader 1 is placed and used with its front face facing up. Alternatively, it can be installed and used such that the front surface of the optical information reader 1 is inclined. Further, the left-right direction of the optical information reading apparatus 1 can also be referred to as the width direction.

装置本体2は、上下方向に長い略矩形箱状をなすケーシング2aを備えている。ケーシング2aの内部には、図11に示す制御ユニット29やデコード部31等が設けられている。図2及び図6に示すように、ケーシング2aの前面に偏光フィルタアタッチメント3が着脱可能に取り付けられている。また、ケーシング2aの前面には、光学的情報読取装置1の前方へ向けて光を照射することによってワークWの少なくともコードを照明する照明部4と、光学的情報読取装置1の前方にあるワークWの少なくともコードを撮像する撮像部5とが設けられている。さらに、ケーシング2aの前面には、発光ダイオード(LED)等の発光体で構成されたエイマー10が設けられている。このエイマー10は、光学的情報読取装置1の前方へ向けて光を照射することによって撮像部5による撮像範囲や照明部4の光軸の目安を示すためのものである。使用者は、エイマー10から照射される光を参照して光学的情報読取装置1を設置することもできる。   The apparatus main body 2 includes a casing 2a having a substantially rectangular box shape that is long in the vertical direction. Inside the casing 2a, a control unit 29, a decoding unit 31 and the like shown in FIG. 11 are provided. As shown in FIGS. 2 and 6, the polarizing filter attachment 3 is detachably attached to the front surface of the casing 2a. In addition, the front surface of the casing 2 a is illuminated with light toward the front of the optical information reader 1 to illuminate at least the code of the workpiece W, and the workpiece in front of the optical information reader 1. An imaging unit 5 that images at least a code of W is provided. Furthermore, the aimer 10 comprised with light-emitting bodies, such as a light emitting diode (LED), is provided in the front surface of the casing 2a. The aimer 10 is intended to indicate a standard of the imaging range by the imaging unit 5 and the optical axis of the illumination unit 4 by irradiating light toward the front of the optical information reader 1. The user can also install the optical information reader 1 with reference to the light emitted from the aimer 10.

ケーシング2aの上面には表示部6が設けられている。また、ケーシング2aの上面には、光学的情報読取装置1の設定時等に使用するセレクトボタン11及びエンターボタン12とが設けられている。セレクトボタン11及びエンターボタン12は制御ユニット29に接続されていて、制御ユニット29はセレクトボタン11及びエンターボタン12の操作状態を検出可能になっている。セレクトボタン11は、表示部6に表示された複数の選択肢の中から1つを選択する際に操作するボタンである。エンターボタン12は、セレクトボタン11で選択した結果を確定する際に操作するボタンである。   A display unit 6 is provided on the upper surface of the casing 2a. Further, a select button 11 and an enter button 12 are provided on the upper surface of the casing 2a and used when the optical information reader 1 is set. The select button 11 and the enter button 12 are connected to the control unit 29, and the control unit 29 can detect the operation state of the select button 11 and the enter button 12. The select button 11 is a button that is operated when selecting one of a plurality of options displayed on the display unit 6. The enter button 12 is a button operated when confirming the result selected by the select button 11.

さらに、ケーシング2aの上面の左右両側には、それぞれインジケータ9が設けられている。インジケータ9は、制御ユニット29に接続されていて、たとえば発光ダイオード等の発光体で構成することができる。光学的情報読取装置1の作動状態をインジケータ9の点灯状態によって外部に報知することができる。   Further, indicators 9 are provided on both the left and right sides of the upper surface of the casing 2a. The indicator 9 is connected to the control unit 29 and can be formed of a light emitter such as a light emitting diode. The operating state of the optical information reader 1 can be notified to the outside by the lighting state of the indicator 9.

ケーシング2aの下面には、光学的情報読取装置1に電力を供給するための電力配線が接続される電源コネクタ7と、コンピュータ100及びPLC101に接続される信号線100a、101a用のEthernetコネクタ8とが設けられている。尚、Ethernet規格は一例であり、Ethernet規格以外の規格の信号線を利用することもできる。   On the lower surface of the casing 2a, a power connector 7 to which power wiring for supplying power to the optical information reader 1 is connected, and an Ethernet connector 8 for the signal lines 100a and 101a connected to the computer 100 and the PLC 101, and Is provided. Note that the Ethernet standard is an example, and a signal line of a standard other than the Ethernet standard can also be used.

[照明部4の構成]
照明部4は、図7及び図8に示すリフレクタ15と、図3等に示す複数の第1発光ダイオード16及び複数の第2発光ダイオード17とを備えている。第1発光ダイオード16と第2発光ダイオード17とは、制御ユニット29に電気的に接続されていて制御ユニット29により個別に制御され、別々に点灯及び消灯させることができるようになっている。
[Configuration of Illumination Unit 4]
The illumination unit 4 includes a reflector 15 shown in FIGS. 7 and 8, and a plurality of first light emitting diodes 16 and a plurality of second light emitting diodes 17 shown in FIG. The first light-emitting diode 16 and the second light-emitting diode 17 are electrically connected to the control unit 29 and are individually controlled by the control unit 29 so that they can be turned on and off separately.

図7及び図8に示すように、リフレクタ15は、光学的情報読取装置1の前面の上部から下部に亘って延びる板状をなしている。第1発光ダイオード16及び第2発光ダイオード17はそれぞれ7つ設けられているが、第1発光ダイオード16及び第2発光ダイオード17の数はこれに限られるものではない。第1発光ダイオード16及び第2発光ダイオード17はリフレクタ15の後側に配置されて前方へ光を照射するように光軸が設定されている。リフレクタ15の上下方向中間部には、撮像部5を外部に臨ませるための撮像用開口部15aが形成されている。リフレクタ15における撮像用開口部15aの左右両側には、それぞれエイマー10の光を通すためのエイマー用開口部15bが形成されている。   As shown in FIGS. 7 and 8, the reflector 15 has a plate shape extending from the upper part to the lower part of the front surface of the optical information reader 1. Seven first light emitting diodes 16 and two second light emitting diodes 17 are provided, but the number of the first light emitting diodes 16 and the second light emitting diodes 17 is not limited thereto. The first light-emitting diode 16 and the second light-emitting diode 17 are arranged on the rear side of the reflector 15 and the optical axes are set so as to irradiate light forward. An imaging opening 15 a for allowing the imaging unit 5 to be exposed to the outside is formed at the intermediate portion in the vertical direction of the reflector 15. Aimer openings 15b for allowing the light of the aimer 10 to pass through are formed on the left and right sides of the imaging opening 15a in the reflector 15, respectively.

リフレクタ15における撮像用開口部15aよりも下側部分には、第1発光ダイオード16の光を通すとともに前方へ集光して照射するための第1孔15cが第1発光ダイオード16の数と同じだけ、即ち7つ形成されている。これら第1孔15cは同じ形状とされており、前側へ向かって次第に拡径するコーン形状をなしている。第1孔15cの内面は、光の反射率を高めるために金メッキ等のメッキ処理が施されている。   In the lower portion of the reflector 15 than the imaging opening 15a, there are as many first holes 15c as the number of the first light emitting diodes 16 for allowing the light of the first light emitting diodes 16 to pass through and condensing the light forward. Only, that is, seven are formed. These first holes 15c have the same shape, and have a cone shape that gradually increases in diameter toward the front side. The inner surface of the first hole 15c is subjected to a plating process such as gold plating in order to increase the light reflectance.

7つの第1孔15cのうち、4つの第1孔15cは、光学的情報読取装置1の左右方向(幅方向)に並ぶように配置されている。残りの3つの第1孔15cは、その中心が上記4つの第1孔15cの中心よりも下に位置するように、かつ、上記4つの第1孔15cのうち、隣合う第1孔15c、15cの中心間にそれぞれ位置するように配置されている。これにより、7つの第1孔15cを密に配置することができる。第1発光ダイオード16は、各第1孔15cの中心に配置される。   Of the seven first holes 15c, the four first holes 15c are arranged in the left-right direction (width direction) of the optical information reader 1. The remaining three first holes 15c have their centers positioned below the centers of the four first holes 15c, and of the four first holes 15c, the adjacent first holes 15c, It arrange | positions so that it may each be located between the centers of 15c. Accordingly, the seven first holes 15c can be arranged densely. The first light emitting diode 16 is disposed at the center of each first hole 15c.

リフレクタ15における撮像用開口部15aよりも上側部分には、第2発光ダイオード17の光を通すとともに前方へ集光して照射するための第2孔15dが第2発光ダイオード17の数と同じだけ、即ち7つ形成されている。これら第2孔15dは第1孔15cと同じ形状とされており、第2孔15dの内面には第1孔15cと同様なメッキ処理が施されている。   In the upper part of the reflector 15 above the imaging opening 15a, there are as many second holes 15d as the number of the second light-emitting diodes 17 for allowing the light of the second light-emitting diodes 17 to pass through and condensing the light forward. That is, seven are formed. The second holes 15d have the same shape as the first holes 15c, and the inner surface of the second holes 15d is subjected to the same plating treatment as the first holes 15c.

7つの第2孔15dのうち、4つの第2孔15dは、光学的情報読取装置1の左右方向(幅方向)に並ぶように配置されている。残りの3つの第2孔15dは、その中心が上記4つの第2孔15dの中心よりも上に位置するように、かつ、上記4つの第2孔15dのうち、隣合う第2孔15d、15dの中心間にそれぞれ位置するように配置されている。これにより、7つの第2孔15dを密に配置することができる。第2発光ダイオード17は、各第2孔15dの中心に配置される。   Of the seven second holes 15d, four second holes 15d are arranged in the left-right direction (width direction) of the optical information reader 1. The remaining three second holes 15d have their centers positioned above the centers of the four second holes 15d, and of the four second holes 15d, adjacent second holes 15d, It arrange | positions so that it may each be located between the centers of 15d. Thereby, the seven second holes 15d can be arranged densely. The second light emitting diode 17 is disposed at the center of each second hole 15d.

照明部4は撮像部5と別体に構成されていてもよい。この場合、照明部4と撮像部5とを有線または無線接続することができる。また、後述する制御ユニット29は、照明部4に内蔵されていてもよいし、撮像部5に内蔵されていてもよい。   The illumination unit 4 may be configured separately from the imaging unit 5. In this case, the illumination unit 4 and the imaging unit 5 can be connected by wire or wirelessly. Further, the control unit 29 described later may be built in the illumination unit 4 or may be built in the imaging unit 5.

[偏光フィルタアタッチメント3の構成]
図6に示すように、偏光フィルタアタッチメント3は、枠部材20と、透光パネル21とを備えている。枠部材20は、光学的情報読取装置1の前面の外形状に略一致する外形状を有している。この枠部材20の内部に、透光パネル21が設けられている。透光パネル21は、照明部4の第1発光ダイオード16及び第2発光ダイオード17を前方から覆うとともに、撮像部5も前方から覆うように形成されている。図9及び図10に示すように、透光パネル21における第1発光ダイオード16を覆う部分、即ち下側部分21aは第1発光ダイオード16の光を出射する部分であり、この下側部分21aは、無色透明で偏光フィルタを有していない部分である。一方、透光パネル21における第2発光ダイオード17を覆う部分、即ち上側部分21bは第2発光ダイオード17の光を出射する部分であり、この上側部分21bは、偏光フィルタが設けられた部分である。さらに、透光パネル21における下側部分21aと上側部分21bとの間の中間部分21cは撮像部5を覆う部分であり、撮像部5に入射する光が透過する部分である。中間部分21cも偏光フィルタが設けられた部分である。上側部分21bの偏光フィルタの偏光方向と、中間部分21cの偏光フィルタの偏光方向とは、たとえば90度異なっている。図9及び図10では、偏光フィルタが設けられている部分を薄く着色して示している。図2、図3及び図6では偏光フィルタが設けられている部分を無着色としているが、実際には図9や図10と同様に薄く着色される。
[Configuration of Polarizing Filter Attachment 3]
As shown in FIG. 6, the polarizing filter attachment 3 includes a frame member 20 and a translucent panel 21. The frame member 20 has an outer shape that substantially matches the outer shape of the front surface of the optical information reader 1. A translucent panel 21 is provided inside the frame member 20. The translucent panel 21 is formed so as to cover the first light emitting diode 16 and the second light emitting diode 17 of the illuminating unit 4 from the front and the imaging unit 5 from the front. As shown in FIGS. 9 and 10, the portion of the translucent panel 21 that covers the first light emitting diode 16, that is, the lower portion 21a is a portion that emits light from the first light emitting diode 16, and the lower portion 21a is This is a portion that is colorless and transparent and does not have a polarizing filter. On the other hand, the portion of the translucent panel 21 that covers the second light emitting diode 17, that is, the upper portion 21b is a portion that emits the light of the second light emitting diode 17, and the upper portion 21b is a portion provided with a polarizing filter. . Further, an intermediate portion 21 c between the lower portion 21 a and the upper portion 21 b in the light transmitting panel 21 is a portion that covers the imaging unit 5, and is a portion through which light incident on the imaging unit 5 is transmitted. The intermediate portion 21c is also a portion where a polarizing filter is provided. The polarization direction of the polarization filter of the upper portion 21b and the polarization direction of the polarization filter of the intermediate portion 21c are different from each other by 90 degrees, for example. 9 and 10, the portion where the polarizing filter is provided is shown lightly colored. 2, 3, and 6, the portion where the polarizing filter is provided is uncolored, but actually, it is lightly colored as in FIGS. 9 and 10.

つまり、第1発光ダイオード16から照射された光は偏光フィルタを通過せずにワークWに達する一方、第2発光ダイオード17から照射された光は偏光フィルタを通過してワークWに達する。そして、ワークWからの反射光は偏光フィルタを通過して撮像部5に入射することになる。   That is, the light emitted from the first light emitting diode 16 reaches the work W without passing through the polarizing filter, while the light emitted from the second light emitting diode 17 reaches the work W through the polarizing filter. Then, the reflected light from the workpiece W passes through the polarizing filter and enters the imaging unit 5.

従って、使用者が偏光フィルタアタッチメント3を取り外さなくても、光学的情報読取装置1が第1発光ダイオード16と第2発光ダイオード17のどちらを点灯させるかを電気的に切り替えることで、様々なワークWに容易に対応することができる。具体的には、偏光フィルタが無い方がより有利なワークW(たとえば鋳物等)については第1発光ダイオード16を点灯させて第2発光ダイオード17を消灯させる。一方、偏光フィルタが有る方がより有利なワークW(たとえばプリント基板やフライス加工面、黒色樹脂等に二次元コードが付されている場合)については第1発光ダイオード16を消灯させて第2発光ダイオード17を点灯させる。   Therefore, even if the user does not remove the polarizing filter attachment 3, various works can be performed by electrically switching which of the first light-emitting diode 16 and the second light-emitting diode 17 the optical information reader 1 turns on. It is possible to easily cope with W. Specifically, for a work W (for example, a casting or the like) that is more advantageous without a polarizing filter, the first light emitting diode 16 is turned on and the second light emitting diode 17 is turned off. On the other hand, for a work W (for example, when a two-dimensional code is attached to a printed board, a milled surface, a black resin, etc.) that is more advantageous to have a polarizing filter, the first light emitting diode 16 is turned off and the second light emission The diode 17 is turned on.

[撮像部5の構成]
図11は光学的情報読取装置1の構成を示すブロック図である。図11に示すように、撮像部5は、ワークWに付されていて上記照明部4によって照明されているコードを撮像する撮像素子5aと、レンズ等を有する光学系5bと、オートフォーカス機構(AF機構)5cとを備えている。光学系5bには、ワークWのコードが付された部分から反射した光が入射するようになっている。撮像素子5aは、光学系5bを通して得られたコードの画像を電気信号に変換するCCD(charge-coupled device)やCMOS(complementary metal oxide semiconductor)等の受光素子からなるイメージセンサである。撮像素子5aは制御ユニット29に接続されていて、撮像素子5aによって変換された電気信号は、制御ユニット29に入力される。また、AF機構5cは、光学系5bを構成するレンズのうち、合焦用レンズの位置や屈折率を変更することによってピント合わせを行う機構である。AF機構5cも制御ユニット29に接続され、制御ユニット29のAF制御部29aにより制御される。
[Configuration of Imaging Unit 5]
FIG. 11 is a block diagram showing a configuration of the optical information reading apparatus 1. As shown in FIG. 11, the imaging unit 5 includes an imaging element 5 a that images the code attached to the work W and illuminated by the illumination unit 4, an optical system 5 b that includes a lens and the like, and an autofocus mechanism ( AF mechanism) 5c. The light reflected from the portion of the workpiece W to which the code is attached enters the optical system 5b. The image sensor 5a is an image sensor composed of a light receiving element such as a charge-coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) that converts an image of a code obtained through the optical system 5b into an electrical signal. The image sensor 5 a is connected to the control unit 29, and the electric signal converted by the image sensor 5 a is input to the control unit 29. The AF mechanism 5c is a mechanism that performs focusing by changing the position and refractive index of the focusing lens among the lenses constituting the optical system 5b. The AF mechanism 5 c is also connected to the control unit 29 and controlled by the AF control unit 29 a of the control unit 29.

[表示部6の構成]
表示部6は、たとえば有機ELディスプレイや液晶ディスプレイ等からなるものである。表示部6は、制御ユニット29に接続され、たとえば撮像部5で撮像されたコード、コードのデコード結果である文字列、読み取り成功率、マッチングレベル等を表示させることができる。読み取り成功率とは、複数回読み取り処理を実行したときの平均読み取り成功率である。マッチングレベルとは、デコードが成功したコードの読み取りのしやすさを示す読取余裕度である。これはデコード時に発生した誤り訂正の数等から求めることができ、たとえば数値で表すことができる。誤り訂正が少なければ少ないほどマッチングレベル(読取余裕度)が高くなり、一方、誤り訂正が多ければ多いほどマッチングレベル(読取余裕度)が低くなる。
[Configuration of Display Unit 6]
The display part 6 consists of an organic EL display, a liquid crystal display, etc., for example. The display unit 6 is connected to the control unit 29 and can display, for example, a code imaged by the imaging unit 5, a character string that is a decoding result of the code, a reading success rate, a matching level, and the like. The read success rate is an average read success rate when the read process is executed a plurality of times. The matching level is a reading margin indicating the ease of reading a code that has been successfully decoded. This can be obtained from the number of error corrections generated at the time of decoding, and can be represented by a numerical value, for example. The smaller the error correction, the higher the matching level (reading margin), while the more error correction, the lower the matching level (reading margin).

[検出部30の構成]
光学的情報読取装置1は検出部30を備えている。検出部30は、制御ユニット29に接続されている。検出部30は、撮像素子5aにより撮像された画像に含まれるコードの大きさに関する情報を検出するための部分である。検出部30は、撮像素子5aにより撮像された画像に含まれるコードの当該画像上における位置を検出することができるように構成してもよい。
[Configuration of Detection Unit 30]
The optical information reading apparatus 1 includes a detection unit 30. The detection unit 30 is connected to the control unit 29. The detection unit 30 is a part for detecting information related to the size of the code included in the image captured by the image sensor 5a. The detection unit 30 may be configured to be able to detect the position on the image of the code included in the image captured by the image sensor 5a.

コードの大きさに関する情報は、例えば、二次元コードの場合、二次元コードの予め定められた位置に配置され、該二次元コードの位置を検出する位置検出パターンのサイズとすることができる。位置検出パターンとは、ファインダパターン、アライメントパターンとも呼ぶことができる。たとえば、データマトリクスの場合は、当該コードの下辺と一方の側辺とを繋いだL字に近いアライメントパターンをコードの大きさに関する情報として利用することができる。この場合、アライメントパターンの一辺の長さを検出部30が検出することで、二次元コードの大きさを推定して得ることができる。   For example, in the case of a two-dimensional code, information on the size of the code can be the size of a position detection pattern that is arranged at a predetermined position of the two-dimensional code and detects the position of the two-dimensional code. The position detection pattern can also be called a finder pattern or an alignment pattern. For example, in the case of a data matrix, an alignment pattern close to an L shape connecting the lower side of the code and one side can be used as information about the size of the code. In this case, when the detection unit 30 detects the length of one side of the alignment pattern, the size of the two-dimensional code can be estimated and obtained.

また、QRコードの場合は、正方形の枠内に黒色の小さな正方形が配置されたファインダパターンや、コード内に配置されている同様な形状のアライメントパターン等をコードの大きさに関する情報として利用することができる。この場合、ファインダパターンの大きさやアライメントパターンの大きさを検出部30が検出することで、二次元コードの大きさを推定して得ることができる。ファインダパターンの大きさやアライメントパターンの大きさは、これらパターンの外寸(幅、高さ等)、対角線寸法、当該パターンが表示されている面積等に基づいて得ることができる。また、QRコードの場合は、ファインダパターンが複数あるので、ファインダパターンの間隔をコードの大きさに関する情報として利用することができる。   In the case of a QR code, a finder pattern in which a small black square is arranged in a square frame, an alignment pattern having a similar shape arranged in the code, or the like is used as information about the size of the code. Can do. In this case, the detection unit 30 detects the size of the finder pattern and the alignment pattern, so that the size of the two-dimensional code can be estimated and obtained. The size of the finder pattern and the size of the alignment pattern can be obtained based on the outer dimensions (width, height, etc.), diagonal dimensions, area where the pattern is displayed, and the like. In the case of a QR code, since there are a plurality of finder patterns, the interval of the finder patterns can be used as information regarding the size of the code.

また、コードの大きさに関する情報は、たとえば、二次元コードのセルサイズとすることができる。セルは、二次元コードを構成する最小の白色正方形(白セル)や黒色正方形(黒セル)である。コードの大きさに関する情報を得る際には、白セルを用いてもよいし、黒セルを用いてもよい。この場合、セルの一辺の長さや対角線寸法、セルが表示されている面積を検出部30が検出することで、セルの大きさを推定し、このセルの大きさに基づいて二次元コードの大きさを推定して得ることができる。   Further, the information related to the code size can be, for example, the cell size of the two-dimensional code. The cell is the smallest white square (white cell) or black square (black cell) constituting the two-dimensional code. When obtaining information related to the size of the code, a white cell or a black cell may be used. In this case, the size of the two-dimensional code is estimated based on the size of the cell by estimating the size of the cell by the detection unit 30 detecting the length of one side of the cell, the diagonal size, and the area where the cell is displayed. It can be obtained by estimating the thickness.

また、コードの大きさに関する情報は、二次元コードの1つのセルを構成する画像データ上の画素のサイズ(大きさ)であってもよい。すなわち、1つのセルは、縦及び横に並ぶ複数の画素で構成されており、1つのセルを構成する画素のサイズを検出することで、セルの大きさを推定することが可能になり、このセルの大きさに基づいて二次元コードの大きさを推定して得ることができる。   Further, the information regarding the code size may be the size (size) of the pixel on the image data constituting one cell of the two-dimensional code. That is, one cell is composed of a plurality of pixels arranged vertically and horizontally, and the size of the cell can be estimated by detecting the size of the pixels constituting one cell. The size of the two-dimensional code can be estimated and obtained based on the size of the cell.

また、コードの大きさに関する情報は、たとえば、二次元コードの外寸(幅、高さ等)、対角線寸法、二次元コードが表示されている面積等であってもよい。これにより、コードの大きさを直接的に推定して得ることができる。   The information on the size of the code may be, for example, the outer dimensions (width, height, etc.) of the two-dimensional code, the diagonal dimension, the area where the two-dimensional code is displayed, and the like. As a result, the size of the code can be directly estimated and obtained.

また、コードの位置については、撮像素子5aにより撮像された画像内においてコードのたとえば中心部を推定し、その中心部のX座標とY座標を求めることで、画像内におけるコードの位置を特定することができる。   As for the position of the code, for example, the central portion of the code is estimated in the image picked up by the image pickup device 5a, and the X and Y coordinates of the central portion are obtained to identify the position of the code in the image. be able to.

[デコード部31の構成]
光学的情報読取装置1は、白黒の二値化されたデータをデコードするデコード部31を有している。デコードには、符号化されたデータの対照関係を示すテーブルを使用することができる。さらに、デコード部31は、デコードした結果が正しいか否かを所定のチェック方式に従ってチェックする。データに誤りが発見された場合にはエラー訂正機能を使用して正しいデータを演算する。エラー訂正機能はコードの種類によって異なる。
[Configuration of Decoding Unit 31]
The optical information reading apparatus 1 includes a decoding unit 31 that decodes black and white binarized data. For the decoding, a table showing the contrast of the encoded data can be used. Further, the decoding unit 31 checks whether or not the decoded result is correct according to a predetermined check method. When an error is found in the data, correct data is calculated using an error correction function. The error correction function varies depending on the type of code.

デコード部31は、後述する拡大補間処理部29dにより拡大補間処理が行われた部分画像に含まれるコードをデコードするとともに、拡大補間処理が行われなかった画像に含まれるコードもデコードするように構成されている。つまり、デコード部31は、拡大補間処理部29dにより拡大補間処理を行ったら、拡大補間処理後の部分画像に含まれるコードをデコードし、拡大補間処理部29dにより拡大補間処理を行わなかったら、拡大補間処理が行われていない部分画像に含まれるコードをデコードする。デコード部31は、コードをデコードして得られたデコード結果を記憶装置35に書き込む。また、デコード部31では、デコード前の画像に対して各種画像処理フィルタ等の画像処理を行う。   The decoding unit 31 is configured to decode the code included in the partial image that has been subjected to the enlargement interpolation process by the later-described enlargement interpolation processing unit 29d, and also to decode the code included in the image that has not been subjected to the enlargement interpolation process. Has been. That is, the decoding unit 31 decodes the code included in the partial image after the enlargement interpolation process when the enlargement interpolation processing unit 29d performs the enlargement interpolation process, and if the enlargement interpolation processing unit 29d does not perform the enlargement interpolation process, the enlargement processing is performed. A code included in a partial image that has not been interpolated is decoded. The decoding unit 31 writes the decoding result obtained by decoding the code in the storage device 35. The decoding unit 31 performs image processing such as various image processing filters on the image before decoding.

[通信部32の構成]
光学的情報読取装置1は通信部32を有している。通信部32は、コンピュータ100及びPLC101と通信を行う部分である。通信部32は、コンピュータ100及びPLC101と接続されるI/O部、RS232C等のシリアル通信部、無線LANや有線LAN等のネットワーク通信部を有していてもよい。
[Configuration of Communication Unit 32]
The optical information reading apparatus 1 has a communication unit 32. The communication unit 32 is a part that communicates with the computer 100 and the PLC 101. The communication unit 32 may include an I / O unit connected to the computer 100 and the PLC 101, a serial communication unit such as RS232C, and a network communication unit such as a wireless LAN and a wired LAN.

[制御ユニット29の構成]
図11に示す制御ユニット29は、光学的情報読取装置1の各部を制御するためのユニットであり、CPUやMPU、システムLSI、DSPや専用ハードウエア等で構成することができる。制御ユニット29は、後述するように様々な機能を搭載しているが、これらは論理回路によって実現されていてもよいし、ソフトウエアを実行することによって実現されていてもよい。
[Configuration of Control Unit 29]
A control unit 29 shown in FIG. 11 is a unit for controlling each part of the optical information reading apparatus 1, and can be constituted by a CPU, MPU, system LSI, DSP, dedicated hardware, or the like. The control unit 29 is equipped with various functions as will be described later, but these may be realized by a logic circuit or by executing software.

制御ユニット29は、AF制御部29aと、撮像制御部29bと、チューニング部29cと、拡大補間処理部29dと、UI管理部29eと、ボケ補正部29fとを有している。AF制御部29aは、AF機構5cを制御するユニットであり、従来から周知のコントラストAFや位相差AFによって光学系5bのピント合わせを行うことができるように構成されている。   The control unit 29 includes an AF control unit 29a, an imaging control unit 29b, a tuning unit 29c, an enlargement interpolation processing unit 29d, a UI management unit 29e, and a blur correction unit 29f. The AF control unit 29a is a unit that controls the AF mechanism 5c, and is configured so that the optical system 5b can be focused by conventionally known contrast AF and phase difference AF.

撮像制御部29bは、ゲインを調整したり、照明部4の光量を制御したり、撮像素子5aの露光時間(シャッタースピード)を制御するユニットである。ここで、ゲインとは、撮像素子5aから出力された画像の明るさをデジタル画像処理によって増幅する際の増幅率(倍率とも呼ばれる)のことである。照明部4の光量については、第1発光ダイオード16と第2発光ダイオード17を別々に制御して変更することができる。ゲイン、照明部4の光量及び露光時間は、撮像部5の撮像条件である。   The imaging control unit 29b is a unit that adjusts the gain, controls the light amount of the illumination unit 4, and controls the exposure time (shutter speed) of the imaging device 5a. Here, the gain is an amplification factor (also referred to as magnification) when the brightness of the image output from the image sensor 5a is amplified by digital image processing. About the light quantity of the illumination part 4, the 1st light emitting diode 16 and the 2nd light emitting diode 17 can be controlled separately, and can be changed. The gain, the light amount of the illumination unit 4 and the exposure time are the imaging conditions of the imaging unit 5.

チューニング部29cは、ゲイン、照明部4の光量及び露光時間等の撮像条件や、デコード部31における画像処理条件を変更するユニットである。デコード部31における画像処理条件とは、画像処理フィルタの係数(フィルタの強弱)や、複数の画像処理フィルタがある場合に画像処理フィルタの切替、種類の異なる画像処理フィルタの組み合わせ等である。搬送時のワークWに対する外光の影響や、コードが付されている面の色及び材質等によって適切な撮像条件及び画像処理条件は異なる。よって、チューニング部29cは、より適切な撮像条件及び画像処理条件を探索して、AF制御部29a、撮像制御部29b、デコード部31による処理を設定する。画像処理フィルタは、従来から周知の各種フィルタを使用することができる。   The tuning unit 29c is a unit that changes the imaging conditions such as the gain, the light amount of the illumination unit 4 and the exposure time, and the image processing conditions in the decoding unit 31. The image processing conditions in the decoding unit 31 include image processing filter coefficients (filter strength), switching of image processing filters when there are a plurality of image processing filters, combinations of different types of image processing filters, and the like. Appropriate imaging conditions and image processing conditions differ depending on the influence of external light on the workpiece W during conveyance and the color and material of the surface to which the code is attached. Therefore, the tuning unit 29c searches for more appropriate imaging conditions and image processing conditions, and sets processing by the AF control unit 29a, the imaging control unit 29b, and the decoding unit 31. Various conventionally known filters can be used as the image processing filter.

拡大補間処理部29dは、検出部30により検出されたコードの大きさに関する情報と、コードの大きさを判定するための大きさ判定基準値とに基づいて、コードの大きさが拡大補間処理対象であるか否かを判定し、コードの大きさが拡大補間処理対象であると判定される場合には、撮像部5により撮像された画像のうち、コードを含む部分画像の拡大補間処理を行う一方、コードの大きさが拡大補間処理対象ではないと判定される場合には、拡大補間処理を行わないように構成されている。大きさ判定基準値は、記憶装置35に設けられている判定基準値記憶部35dに予め記憶されている。また、拡大補間処理は、画像を構成する画素を補間して解像度を向上させる画像拡大処理であり、たとえば、バイリニア法、バイキュービック法、Lanczos法等を挙げることができる。この拡大補間処理を適切に行うことで、撮像部5により撮像された画像に含まれている小さなコードの解像度を向上させて読み取ることが可能になる。   The enlargement interpolation processing unit 29d determines that the code size is subject to enlargement interpolation processing based on the information on the code size detected by the detection unit 30 and the size determination reference value for determining the code size. If the code size is determined to be an object for enlargement interpolation processing, enlargement interpolation processing is performed on a partial image including the code among the images picked up by the image pickup unit 5. On the other hand, when it is determined that the size of the code is not an object for the enlargement interpolation process, the enlargement interpolation process is not performed. The magnitude determination reference value is stored in advance in a determination reference value storage unit 35 d provided in the storage device 35. Further, the enlargement interpolation process is an image enlargement process for improving resolution by interpolating pixels constituting an image, and examples thereof include a bilinear method, a bicubic method, and a Lanczos method. By appropriately performing the enlargement interpolation process, it is possible to improve the resolution of a small code included in the image captured by the imaging unit 5 and read it.

拡大補間処理部29dによる処理手順については後述するフローチャートに基づいて詳細に説明するが、概略は次のとおりである。まず、拡大補間処理部29dは、検出部30が検出したコードの大きさに関する情報に基づいてコードの大きさを推定して得る。コードの大きさを得る手法は上述したとおりであり、たとえば二次元コードの位置検出パターン、ファインダパターン等の寸法や、セル寸法、コード寸法等に基づいてコードの大きさを推定して得る。このようにして得られたコードの大きさと、大きさ判定基準値とを比較して、コードの大きさが大きさ判定基準値以上の場合には、拡大補間処理を行わなくてもデコードできる解像度であると推定できるので、拡大補間処理対象ではないと判定して拡大補間処理を行わない。一方、得られたコードの大きさと、大きさ判定基準値とを比較して、コードの大きさが大きさ判定基準値を下回る場合には、そのままの解像度ではデコードに失敗する可能性が高いので、拡大補間処理を行う。   The processing procedure by the enlargement interpolation processing unit 29d will be described in detail based on a flowchart described later, but the outline is as follows. First, the enlarged interpolation processing unit 29d estimates and obtains the code size based on the information related to the code size detected by the detection unit 30. The method for obtaining the code size is as described above. For example, the code size is estimated based on the size of the position detection pattern, finder pattern, etc. of the two-dimensional code, the cell size, the code size, and the like. The code size thus obtained is compared with the size determination reference value. If the code size is equal to or larger than the size determination reference value, the resolution can be decoded without performing the enlargement interpolation process. Therefore, it is determined that it is not a target for the enlargement interpolation process, and the enlargement interpolation process is not performed. On the other hand, if the size of the obtained code is compared with the size criterion value and the code size is below the size criterion value, there is a high possibility that decoding will fail at the same resolution. Enlargement interpolation processing is performed.

図11に示すUI管理部29eは、表示部6に、各種インターフェース、撮像部5で撮像されたコード、コードのデコード結果である文字列、読み取り成功率、マッチングレベル等を表示させたり、セレクトボタン11及びエンターボタン12からの入力を受け付けたり、インジケータ9の点灯を制御するユニットである。   The UI management unit 29e shown in FIG. 11 causes the display unit 6 to display various interfaces, codes captured by the imaging unit 5, a character string that is a decoding result of the code, a reading success rate, a matching level, and the like. 11 and the unit for receiving input from the enter button 12 and controlling the lighting of the indicator 9.

ボケ補正部29fは、拡大補間処理部29dにより拡大補間処理が行われた部分画像のコードのボケを補正するための補正処理を実行する部分である。ボケ補正部29fによる処理は、従来からピントボケを補正するために用いられている画像処理であってもよいし、専用のアルゴリズムに基づいた処理によって実質的にボケを補正する手法であってもよい。画像処理の場合は、たとえばローパスフィルタ(LPF)をかけることによる処理(フィルタ処理)を挙げることができる。また、アルゴリズムに基づいた処理としては、たとえば、デコード時に画像の2値化を行う際の前処理として複数画素の平均化処理を行うときに、画像がボケていないときは、平均化処理する画素の数を多くとる一方、画像がボケているときは、平均化処理する画素の数を敢えて減らすようにする処理を挙げることができる。これにより、ボケ情報が混ざるのを防ぎ、実質的にボケを補正することができる。補正を補正するための補正処理は複数通りを組み合わせて実行してもよい。   The blur correction unit 29f is a part that executes a correction process for correcting the blur of the code of the partial image subjected to the expansion interpolation process by the expansion interpolation processing unit 29d. The processing by the blur correction unit 29f may be image processing that has been conventionally used to correct out-of-focus blur, or may be a method that substantially corrects blur by processing based on a dedicated algorithm. . In the case of image processing, for example, processing (filter processing) by applying a low-pass filter (LPF) can be mentioned. Further, as processing based on the algorithm, for example, when performing averaging processing of a plurality of pixels as preprocessing when performing binarization of an image at the time of decoding, if the image is not blurred, the pixel to be averaged On the other hand, when the image is blurred, there can be mentioned processing for deliberately reducing the number of pixels to be averaged. Thereby, it is possible to prevent blur information from being mixed and to substantially correct blur. A plurality of correction processes for correcting the correction may be executed in combination.

ボケ補正は、拡大補間処理としてLanczos法を使用した場合に有効である。Lanczos法を使用すると、拡大後の画像がピントボケに類似した画像になるからである。   The blur correction is effective when the Lanczos method is used as the enlargement interpolation process. This is because when the Lanczos method is used, the image after enlargement becomes an image similar to out-of-focus.

[記憶装置35の構成]
記憶装置35は、メモリやハードディスク等で構成されている。記憶装置35には、デコード結果記憶部35aと、画像データ記憶部35bと、パラメータセット記憶部35cと、判定基準値記憶部35dとが設けられている。デコード結果記憶部35aは、デコード部31によりデコードされた結果であるデコード結果を記憶する部分である。画像データ記憶部35bは、撮像素子5aによって撮像された画像を記憶する部分である。
[Configuration of Storage Device 35]
The storage device 35 includes a memory, a hard disk, and the like. The storage device 35 is provided with a decoding result storage unit 35a, an image data storage unit 35b, a parameter set storage unit 35c, and a determination reference value storage unit 35d. The decoding result storage unit 35 a is a part that stores a decoding result that is a result of decoding by the decoding unit 31. The image data storage unit 35b is a part that stores an image captured by the image sensor 5a.

判定基準値記憶部35dは、撮像素子5aにより撮像された画像に含まれるコードの大きさに関する情報に基づいて当該コードが拡大補間処理対象であるか否かを判定する基準となる大きさ判定基準値を記憶する部分である。たとえばコードがデータマトリクスの場合であれば、アライメントパターンの一辺の長さが短くなればなるほど、撮像された画像におけるコードの大きさが小さくなるのでデコード部31によるデコードが困難になっていく。そこで、デコード部31によるデコードを高精度に行うことが可能なアライメントパターンの一辺の長さの下限値を予め実験等によって得ておき、この長さを大きさ判定基準値として判定基準値記憶部35dに記憶することができる。したがって、アライメントパターンの一辺の長さが大きさ判定基準値以上であればデコード部31によるデコードを高精度に行うことが可能になり、一方、アライメントパターンの一辺の長さが大きさ判定基準値未満であればデコード部31によるデコードを高精度に行うことが困難になる。   The determination reference value storage unit 35d is a size determination criterion that serves as a reference for determining whether or not the code is an object for enlargement interpolation processing based on information regarding the size of the code included in the image captured by the image sensor 5a. This is the part that stores the value. For example, if the code is a data matrix, the shorter the length of one side of the alignment pattern, the smaller the code size in the captured image, so that decoding by the decoding unit 31 becomes difficult. Therefore, a lower limit value of the length of one side of the alignment pattern that can be decoded with high accuracy by the decoding unit 31 is obtained in advance by experiments or the like, and this length is used as a size determination reference value as a determination reference value storage unit. 35d can be stored. Therefore, if the length of one side of the alignment pattern is equal to or larger than the size determination reference value, the decoding unit 31 can perform decoding with high accuracy, while the length of one side of the alignment pattern is the size determination reference value. If it is less, it becomes difficult to perform the decoding by the decoding unit 31 with high accuracy.

このような考え方に基づいて各種コード用の大きさ判定基準値を得ておき、判定基準値記憶部35dに記憶することができる。たとえば、QRコードの場合には、ファインダパターンやアライメントパターン等の大きさ(外寸や表示されている面積等)が小さくなればなるほど、撮像された画像におけるコードの大きさが小さくなり、デコード部31によるデコードが困難になっていくので、デコード部31によるデコードを高精度に行うことが可能なファインダパターンやアライメントパターン等の大きさの下限値を予め実験等によって得ておき、この大きさを大きさ判定基準値として判定基準値記憶部35dに記憶することができる。   Based on such a concept, size determination reference values for various codes can be obtained and stored in the determination reference value storage unit 35d. For example, in the case of a QR code, the smaller the size (outer dimensions, displayed area, etc.) of the finder pattern, alignment pattern, etc., the smaller the code size in the captured image, and the decoding unit Therefore, the lower limit value of the size of a finder pattern, alignment pattern, or the like that can be decoded by the decoding unit 31 with high accuracy is obtained in advance through experiments or the like. It can memorize | store in the determination reference value memory | storage part 35d as a magnitude | size determination reference value.

また、セルサイズや画素サイズについても同様であり、セルサイズや画素サイズが小さくなればなるほど、撮像された画像におけるコードの大きさが小さくなり、デコード部31によるデコードが困難になっていくので、デコード部31によるデコードを高精度に行うことが可能なセルサイズや画素サイズの下限値を予め実験等によって得ておき、この大きさを大きさ判定基準値として判定基準値記憶部35dに記憶することができる。   The same applies to the cell size and the pixel size. The smaller the cell size and the pixel size, the smaller the code size in the captured image, and the decoding by the decoding unit 31 becomes difficult. A lower limit value of a cell size and a pixel size that can be decoded with high accuracy by the decoding unit 31 is obtained in advance by experiments or the like, and this size is stored in the determination reference value storage unit 35d as a size determination reference value. be able to.

また、二次元コードの外寸(幅、高さ等)、対角線寸法、二次元コードが表示されている面積等についても同様にして大きさ判定基準値を求めて判定基準値記憶部35dに記憶することができる。   In addition, the size determination reference value is similarly obtained for the outer dimensions (width, height, etc.) of the two-dimensional code, the diagonal dimension, the area where the two-dimensional code is displayed, etc., and stored in the determination reference value storage unit 35d. can do.

図11に示すパラメータセット記憶部35cは、コンピュータ100等の設定装置によって設定された設定情報やセレクトボタン11及びエンターボタン12によって設定された設定情報等を記憶する部分である。このパラメータセット記憶部35cには、撮像部5の撮像条件(ゲイン、照明部4の光量及び露光時間等)と、デコード部31における画像処理条件(画像処理フィルタの種類等)との少なくとも一方を構成する複数のパラメータを含むパラメータセットを記憶することができる。この実施形態では、図13に示すパラメータセット表示フォーマット46の中に、バンク1〜5として表示するように、撮像部5の撮像条件を構成するパラメータ及びデコード部31における画像処理条件を構成するパラメータがセットになったパラメータセットを複数通り記憶することができるように構成されている。バンク1〜5には異なるパラメータセットを記憶させることができ、たとえばワークWが異なる場合等に対応することができる。バンクの数は任意に設定することができる。   The parameter set storage unit 35c shown in FIG. 11 is a part that stores setting information set by a setting device such as the computer 100, setting information set by the select button 11 and the enter button 12, and the like. In the parameter set storage unit 35c, at least one of the imaging conditions of the imaging unit 5 (gain, light amount of the illumination unit 4 and exposure time, etc.) and image processing conditions (type of image processing filter, etc.) of the decoding unit 31 is stored. A parameter set including a plurality of parameters to be configured can be stored. In this embodiment, the parameters constituting the imaging conditions of the imaging unit 5 and the parameters constituting the image processing conditions in the decoding unit 31 so as to be displayed as the banks 1 to 5 in the parameter set display format 46 shown in FIG. Can be stored in a plurality of parameter sets. Different parameter sets can be stored in the banks 1 to 5, for example, when the work W is different. The number of banks can be set arbitrarily.

この光学的情報読取装置1では、パラメータセット記憶部35cに記憶されている複数のパラメータセットのうち、一のパラメータセットから他のパラメータセットに切り替えることができるように構成されている。パラメータセットの切替は、使用者が行うこともできるし、PLC101で行うように構成することもできる。パラメータセットの切替を使用者が行う場合には、図13に示すユーザーインターフェースに組み込まれているパラメータセット切替部46bを操作すればよい。パラメータセット切替部46bを「有効」にすることで、そのバンクのパラメータセットが光学的情報読取装置1の運用時に使用され、また、パラメータセット切替部46bを「無効」にすることで、そのバンクのパラメータセットが光学的情報読取装置1の運用時に使用されないようになる。つまり、パラメータセット切替部46bは、一のパラメータセットから他のパラメータセットに切り替えるためのものである。尚、パラメータセット切替部46bの形態は図示した形態に限られるものではなく、たとえばボタン等、各種の形態を使用することができる。   The optical information reading apparatus 1 is configured to be able to switch from one parameter set to another parameter set among a plurality of parameter sets stored in the parameter set storage unit 35c. Switching between parameter sets can be performed by the user or can be configured to be performed by the PLC 101. When the user switches the parameter set, the parameter set switching unit 46b incorporated in the user interface shown in FIG. 13 may be operated. By setting the parameter set switching unit 46b to “valid”, the parameter set of the bank is used during the operation of the optical information reading apparatus 1, and by setting the parameter set switching unit 46b to “invalid” Are not used when the optical information reader 1 is operated. That is, the parameter set switching unit 46b is for switching from one parameter set to another parameter set. The form of the parameter set switching unit 46b is not limited to the form shown in the figure, and various forms such as buttons can be used.

ここで、図13に示すパラメータセット46について、補足説明する。図13では、「共通」パラメータとして、「オルタネート」(複数登録したパラメータセットを自動的に切り換えながら撮像・デコードを試行する機能)や「バンク内リトライ回数」(オルタネートするまでに行う撮像・デコードの回数)などが含まれている。「コード」パラメータとしては、「コード詳細設定」(読取を行うコード種別)や「桁限定出力機能」(読取データの出力桁を限定する機能)などが含まれている。「照明」パラメータとしては、「内部照明の使用」(光学的情報読取装置1に内蔵されている照明の使用有無)、「外部照明の使用」(光学的情報読取装置1に外付けされている照明の使用有無)及び「偏光フィルタ」(後述する偏光モードを有効にするか否か)が含まれている。「撮像」パラメータとしては、「露光時間」(撮像時の露光時間μs)、「ゲイン」(撮像時のゲイン)及び「コントラスト調整方式」(上述した「HDR」、「超HDR」、「標準特性」及び「コントラスト強調特性」のいずれか)が含まれている。さらに、「画像処理フィルタ」パラメータとして、「1番目画像処理フィルタ」(1番目に実行する画像フィルタの種別)や「1番目画像処理フィルタ回数」(1番目の画像フィルタを実行する回数)などが含まれている。   Here, the parameter set 46 shown in FIG. 13 will be supplementarily described. In FIG. 13, as “common” parameters, “alternate” (a function to try imaging / decoding while automatically switching a plurality of registered parameter sets) and “in-bank retry count” (imaging / decoding performed before alternate) are performed. Frequency). The “code” parameter includes “detailed code setting” (code type to be read), “digit-limited output function” (function to limit the output digits of read data), and the like. As the “illumination” parameters, “use of internal illumination” (whether or not illumination used in the optical information reader 1 is used), “use of external illumination” (externally attached to the optical information reader 1) And “polarization filter” (whether or not to enable a polarization mode to be described later). As the “imaging” parameters, “exposure time” (exposure time μs during imaging), “gain” (gain during imaging), and “contrast adjustment method” (the above-mentioned “HDR”, “super HDR”, “standard characteristics”) And “contrast enhancement characteristics”). Further, as the “image processing filter” parameter, “first image processing filter” (the type of image filter to be executed first), “first image processing filter number” (number of times to execute the first image filter), and the like. include.

図13では、バンク1〜5において、上述した「コントラスト調整方式」は、それぞれ「HDR」「コントラスト強調」「標準」「超HDR」「HDR」に設定されている。また、上述した「オルタネート」は、バンク1およびバンク2のみが「有効」となっている。したがって、光学的情報読取装置1は、まず、バンク1の設定内容であるコントラスト調整方式「HDR」を用いて、デコードを試みる。デコードに失敗した場合には、バンク1の設定内容からバンク2の設定内容に切り換えて、バンク2の設定内容であるコントラスト調整方式「コントラスト強調」を用いて、デコードを試みる。要するに、複数登録したパラメータセットを自動的に切り換えながらデコードを試みることで、自動的にコントラスト調整方式を切り替えながらデコードを試みることができ、ひいては読取精度を高めることができる。   In FIG. 13, in the banks 1 to 5, the above-mentioned “contrast adjustment method” is set to “HDR”, “contrast enhancement”, “standard”, “super HDR”, and “HDR”, respectively. In the “alternate” described above, only bank 1 and bank 2 are “valid”. Therefore, the optical information reading device 1 first attempts decoding using the contrast adjustment method “HDR” which is the setting content of the bank 1. If the decoding fails, the setting contents of the bank 1 are switched to the setting contents of the bank 2, and the decoding is attempted using the contrast adjustment method “contrast enhancement” which is the setting contents of the bank 2. In short, by trying to decode while automatically switching a plurality of registered parameter sets, it is possible to try decoding while automatically switching the contrast adjustment method, and thus the reading accuracy can be improved.

なお、上述した「オルタネート」の順序は、種々の方法が考えられる。例えば、上述したように、1番から順番にバンクを切り換えてデコードを試行してもよい。その他にも、例えば、読み取り成功したバンクを優先するようにしてもよい。具体的には、読取に成功したバンクについては、次の読取時に優先的に設定されるようにしてもよい。これにより、例えばロット単位で印字状態が変わる場合に、読取タクトを短縮することができる。   Various methods can be considered for the order of the “alternate” described above. For example, as described above, decoding may be attempted by switching banks sequentially from the first. In addition, for example, priority may be given to banks that have been successfully read. Specifically, the bank that has been successfully read may be preferentially set at the next reading. Thereby, for example, when the printing state changes in lot units, the reading tact can be shortened.

[コンピュータ100の構成]
コンピュータ100は、図12にブロック図で示すように、CPU40と、記憶装置41と、表示部42と、入力部43と、通信部44とを備えている。光学的情報読取装置1を小型化することで、光学的情報読取装置1の表示部6やボタン11、12等だけでは、光学的情報読取装置1の全ての設定を行うことが困難になるので、光学的情報読取装置1とは別にコンピュータ100を用意し、コンピュータ100で光学的情報読取装置1の各種設定を行って設定情報を光学的情報読取装置1に転送するようにしてもよい。
[Configuration of Computer 100]
As shown in a block diagram in FIG. 12, the computer 100 includes a CPU 40, a storage device 41, a display unit 42, an input unit 43, and a communication unit 44. By downsizing the optical information reader 1, it becomes difficult to perform all settings of the optical information reader 1 with only the display unit 6 and the buttons 11, 12 of the optical information reader 1. Alternatively, a computer 100 may be prepared separately from the optical information reader 1, and various settings of the optical information reader 1 may be performed by the computer 100 to transfer the setting information to the optical information reader 1.

また、コンピュータ100と光学的情報読取装置1とを双方向通信可能に接続して、上述した光学的情報読取装置1の処理の一部をコンピュータ100で行うようにしてもよい。この場合、コンピュータ100の一部が光学的情報読取装置1の構成要素の一部になる。   Alternatively, the computer 100 and the optical information reading device 1 may be connected so as to be capable of bidirectional communication, and the computer 100 may perform a part of the processing of the optical information reading device 1 described above. In this case, a part of the computer 100 becomes a part of the components of the optical information reading apparatus 1.

CPU40は、記憶装置41に記憶されているプログラムに基づいてコンピュータ100が備えている各部を制御するユニットである。記憶装置41は、メモリやハードディスク等で構成されている。表示部42は、たとえば液晶ディスプレイ等で構成されている。入力部43は、キーボードやマウス、タッチセンサ等で構成されている。通信部44は、光学的情報読取装置1と通信を行う部分である。通信部44は、光学的情報読取装置1と接続されるI/O部、RS232C等のシリアル通信部、無線LANや有線LAN等のネットワーク通信部を有していてもよい。   The CPU 40 is a unit that controls each unit included in the computer 100 based on a program stored in the storage device 41. The storage device 41 includes a memory, a hard disk, and the like. The display unit 42 is composed of, for example, a liquid crystal display. The input unit 43 includes a keyboard, a mouse, a touch sensor, and the like. The communication unit 44 is a part that communicates with the optical information reading apparatus 1. The communication unit 44 may include an I / O unit connected to the optical information reading device 1, a serial communication unit such as RS232C, and a network communication unit such as a wireless LAN or a wired LAN.

CPU40は、様々な演算を行う演算部40aを備えている。演算部40aには、UI制御部40bと設定部40cとが設けられている。UI制御部40bは、光学的情報読取装置1の撮像部5の撮像条件やデコード部31における画像処理条件等を設定するためのユーザーインターフェースや、光学的情報読取装置1から出力されたデコード結果、画像データ等を表示するためのユーザーインターフェースを生成し、表示部42に表示させる。表示部42は、光学的情報読取装置1の一部を構成するものとすることができる。設定部40cは、撮像部5の撮像条件及びデコード部31における画像処理条件を設定する。なお、UI制御部40b及び設定部40cは、光学的情報読取装置1に設けられていてもよい。また、UI制御部40b又は設定部40cは、処理部29dの機能(バンクの設定など)の全部又は一部を担っていてもよい。   The CPU 40 includes a calculation unit 40a that performs various calculations. The calculation unit 40a is provided with a UI control unit 40b and a setting unit 40c. The UI control unit 40b includes a user interface for setting the imaging conditions of the imaging unit 5 of the optical information reading device 1, the image processing conditions in the decoding unit 31, the decoding result output from the optical information reading device 1, A user interface for displaying image data and the like is generated and displayed on the display unit 42. The display unit 42 may constitute a part of the optical information reading device 1. The setting unit 40 c sets the imaging conditions of the imaging unit 5 and the image processing conditions in the decoding unit 31. The UI control unit 40b and the setting unit 40c may be provided in the optical information reading device 1. Further, the UI control unit 40b or the setting unit 40c may be responsible for all or part of the functions (bank setting, etc.) of the processing unit 29d.

記憶装置41は、デコード結果記憶部41aと、画像データ記憶部41bと、パラメータセット記憶部41cと、判定基準値記憶部41dとが設けられている。これら記憶部41a〜41dは、光学的情報読取装置1のデコード結果記憶部35aと、画像データ記憶部35bと、パラメータセット記憶部35cと、判定基準値記憶部35dと同様な情報を記憶する部分である。   The storage device 41 includes a decoding result storage unit 41a, an image data storage unit 41b, a parameter set storage unit 41c, and a determination reference value storage unit 41d. The storage units 41a to 41d store the same information as the decoding result storage unit 35a, the image data storage unit 35b, the parameter set storage unit 35c, and the determination reference value storage unit 35d of the optical information reader 1. It is.

[設定時に実行される工程]
次に、上記のように構成された光学的情報読取装置1を運用する前に、運用準備段階として行われる光学的情報読取装置1の設定について説明する。この設定の際に上記チューニング部29cによるチューニング工程が行われる。以下に述べる工程は、光学的情報読取装置1の制御ユニット29が実行してもよいし、コンピュータ100のCPU40が光学的情報読取装置1の各部を制御しながら実行してもよい。この実施形態では、光学的情報読取装置1の制御ユニット29にチューニング部29cが設けられているので、まず、制御ユニット29がチューニング工程を実行し、そのチューニング工程が完了した後、光学的情報読取装置1の運用に移る。
[Processes executed at the time of setting]
Next, the setting of the optical information reading apparatus 1 performed as an operation preparation stage before operating the optical information reading apparatus 1 configured as described above will be described. During this setting, a tuning process is performed by the tuning unit 29c. The steps described below may be executed by the control unit 29 of the optical information reader 1 or may be executed while the CPU 40 of the computer 100 controls each part of the optical information reader 1. In this embodiment, since the tuning unit 29c is provided in the control unit 29 of the optical information reader 1, first, the control unit 29 executes the tuning process, and after the tuning process is completed, the optical information reading is performed. Move to operation of device 1.

チューニング工程では、コンピュータ100のUI制御部40bが、図14に示すようなユーザーインターフェース45をコンピュータ100の表示部42に表示させる。図14に示すユーザーインターフェース45は、チューニング用インターフェースである。チューニング用インターフェース45には、モニタボタン45a、オートフォーカスボタン45b、チューニングボタン45c及び画像表示領域45dが組み込まれている。   In the tuning process, the UI control unit 40b of the computer 100 causes the display unit 42 of the computer 100 to display a user interface 45 as shown in FIG. A user interface 45 shown in FIG. 14 is a tuning interface. The tuning interface 45 incorporates a monitor button 45a, an autofocus button 45b, a tuning button 45c, and an image display area 45d.

使用者がコンピュータ100の入力部43を操作してモニタボタン45aをクリックすると、光学的情報読取装置1の撮像部5によって現在撮像されている画像が画像表示領域45dに表示され、この画像表示領域45dに表示される画像はほぼリアルタイムで更新される。使用者は、チューニング用インターフェース45の画像を見ながら、ワークWのコードCが画像表示領域45dに表示されるようにワークWを移動させる。   When the user operates the input unit 43 of the computer 100 and clicks the monitor button 45a, an image currently captured by the imaging unit 5 of the optical information reader 1 is displayed in the image display region 45d. This image display region The image displayed in 45d is updated almost in real time. The user moves the workpiece W so that the code C of the workpiece W is displayed in the image display area 45d while viewing the image of the tuning interface 45.

その後、使用者がチューニング用インターフェース45のオートフォーカスボタン45bをクリックすると、撮像部5のAF機構5cをAF制御部29aによって制御して図15に示すようにコードCにピントを合わせる。これにより、コードCが画像表示領域45d内にあることを確認できる。   Thereafter, when the user clicks the autofocus button 45b of the tuning interface 45, the AF mechanism 5c of the imaging unit 5 is controlled by the AF control unit 29a to focus on the code C as shown in FIG. Thereby, it can be confirmed that the code C is in the image display area 45d.

使用者がチューニング用インターフェース45のチューニングボタン45cをクリックすると、チューニング工程が実行される。チューニング工程は、光学的情報読取装置1のセレクトボタン11及びエンターボタン12の操作によって実行することもできる。チューニング工程では、まず、チューニング部29cがコード探索を実行する。たとえば、チューニング部29cは撮像制御部29bに撮像を実行させて画像データを取得させ、画像データに基づきデコード部31に二次元コードの探索を実行させる。撮像制御部29bは、その時点で有効となっている読取条件(撮像素子5aについての撮像条件、照明部4の照明条件、デコード部31の画像処理条件など)をパラメータセット記憶部35cから読み出し、照明部4、撮像素子5a、デコード部31などの各部を設定する。デコード部31は撮像素子5aによって取得されて画像データ記憶部35bに記憶されている画像データから二次元コードを探索し、探索結果をチューニング部29cに出力する。照明条件には、偏光モードを有効にするのか、無偏光モードを有効にするのかを示す情報が含まれている。偏光モードは、第1発光ダイオード16を消灯させて第2発光ダイオード17を点灯させるモードであり、無偏光モードは、第1発光ダイオード16を点灯させて第2発光ダイオード17を消灯させるモードである。   When the user clicks the tuning button 45c of the tuning interface 45, the tuning process is executed. The tuning process can also be executed by operating the select button 11 and the enter button 12 of the optical information reader 1. In the tuning process, first, the tuning unit 29c executes a code search. For example, the tuning unit 29c causes the imaging control unit 29b to perform imaging to acquire image data, and causes the decoding unit 31 to search for a two-dimensional code based on the image data. The imaging control unit 29b reads from the parameter set storage unit 35c reading conditions that are valid at that time (imaging conditions for the imaging device 5a, illumination conditions for the illumination unit 4, image processing conditions for the decoding unit 31, etc.), Each part, such as the illumination part 4, the image pick-up element 5a, and the decoding part 31, is set. The decoding unit 31 searches for the two-dimensional code from the image data acquired by the image sensor 5a and stored in the image data storage unit 35b, and outputs the search result to the tuning unit 29c. The illumination condition includes information indicating whether the polarization mode is enabled or the non-polarization mode is enabled. The polarization mode is a mode in which the first light emitting diode 16 is turned off and the second light emitting diode 17 is turned on, and the non-polarization mode is a mode in which the first light emitting diode 16 is turned on and the second light emitting diode 17 is turned off. .

そして、チューニング部29cは照明部4の明るさについて粗調整を実行する。本実施形態では、照明部4の明るさについて粗調整を実行し、偏光モードと無偏光モードのうち読み取り結果の優れた方を選択し、選択した照明モードについて明るさの微調整を実行するものとする。明るさを調整しているときには、図16に示すようなチューニング用インターフェース45が表示される。   Then, the tuning unit 29 c performs rough adjustment on the brightness of the illumination unit 4. In the present embodiment, coarse adjustment is performed on the brightness of the illumination unit 4, a better reading result is selected from the polarization mode and the non-polarization mode, and the brightness is finely adjusted for the selected illumination mode. And When the brightness is adjusted, a tuning interface 45 as shown in FIG. 16 is displayed.

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

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

チューニング部29cはデコード部31の探索結果に基づき、読み取りテストに成功したかどうかを判定する。読取条件を変えながら読み取りテストを複数回実行したときは、1回でも読み取りに成功したかどうかを判定する。   The tuning unit 29c determines whether the reading test is successful based on the search result of the decoding unit 31. When the reading test is executed a plurality of times while changing the reading conditions, it is determined whether or not the reading is successful even once.

読み取りに成功したら、チューニング部29cは各照明モードについて全部でN個(例:256個)の明るさレベルがあると仮定したとき、そのN個のうちのn個(例:27個)の明るさレベルのそれぞれについて読み取りテストを実行する。これにより、偏光モードについて27個の明るさレベルそれぞれについての読み取り結果が得られ、無偏光モードについて27個の明るさレベルそれぞれについての読み取り結果が得られる。なお、偏光モードと無偏光モードではチューニングの対象となる明るさレベルが異なってもよい。   If the reading is successful, the tuning unit 29c assumes that there are a total of N (eg, 256) brightness levels for each illumination mode, and n (eg, 27) brightnesses out of the N brightness levels. Run a read test for each level. As a result, a reading result for each of the 27 brightness levels is obtained for the polarization mode, and a reading result for each of the 27 brightness levels is obtained for the non-polarization mode. The brightness level to be tuned may be different between the polarization mode and the non-polarization mode.

偏光フィルタを透過することにより、偏光モードの明るさは無偏光モードの明るさの約半分になる。そこで、偏光モードの明るさレベルについてはN個のうちN/2レベル以上を割り当て、無偏光モードの明るさレベルについてはN個のうちN/2レベル未満を割り当ててもよい。これにより、N個のレベルのすべてを網羅的に探索する場合と比較して、読み取りテストの時間を半分に短縮できる。もちろん、時間短縮の要求がなければ、各照明モードにおいてN個のレベルのすべてを網羅的に探索してもよい。   By passing through the polarizing filter, the brightness of the polarization mode is about half that of the non-polarization mode. Therefore, N / 2 levels or more out of N may be assigned to the brightness level in the polarization mode, and less than N / 2 levels out of N may be assigned to the brightness level in the non-polarization mode. As a result, the time required for the reading test can be reduced by half compared to a case where all N levels are searched exhaustively. Of course, if there is no request for time reduction, all N levels may be exhaustively searched in each illumination mode.

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

尚、マッチングレベルは、たとえば、図17に示すようにチューニング用インターフェース45の中に組み込まれたマッチングレベル表示領域45eに表示させることができる。マッチングレベル表示領域45eには、グラフ形式でマッチングレベルが表示される。横軸は明るさを示している。縦軸は、特定の明るさにおけるマッチングレベルを示している。マッチングレベルは、たとえば0〜100の値で示すことができ、数値が大きくなるほどマッチングレベルが高くなる。   The matching level can be displayed, for example, in a matching level display area 45e incorporated in the tuning interface 45 as shown in FIG. In the matching level display area 45e, the matching level is displayed in a graph format. The horizontal axis indicates the brightness. The vertical axis indicates the matching level at a specific brightness. The matching level can be indicated by a value from 0 to 100, for example, and the higher the numerical value, the higher the matching level.

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

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

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

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

露光時間、ゲイン、画像処理フィルタの係数など、即ち、撮像部5の撮像条件を構成するパラメータ及びデコード部31における画像処理条件を構成するパラメータなどは、図13に示すユーザーインターフェースにたとえばバンク1として表示させることができ、このパラメータセットはパラメータセット記憶部35cに記憶する。   The exposure time, gain, coefficient of the image processing filter, etc., that is, the parameters constituting the imaging conditions of the imaging unit 5 and the parameters constituting the image processing conditions in the decoding unit 31 are set in the user interface shown in FIG. This parameter set is stored in the parameter set storage unit 35c.

[運用時に実行される工程]
以上のようにして光学的情報読取装置1の設定が完了して光学的情報読取装置1の運用準備が終わると、光学的情報読取装置1を運用することができる。光学的情報読取装置1の運用時には、基本的に図18に示すフローチャートに従って制御が行われる。
[Processes executed during operation]
When the setting of the optical information reader 1 is completed as described above and the preparation for operation of the optical information reader 1 is completed, the optical information reader 1 can be operated. When the optical information reading apparatus 1 is operated, control is basically performed according to the flowchart shown in FIG.

図18のフローチャートにおけるステップSA1では、制御ユニット29が撮像部5にワークWを撮像させる。このときに得られた画像Aを図19に模式的に示す。画像A内に表示されている最も大きな長方形は撮像されたワークWの外形を示している。ワークWの表面には、コードではない第1マークM1及び第2マークM2が付されている。第1マークM1及び第2マークM2は正方形に近い形状であり、第1マークM1は第2マークM2よりも小さく付されている。   In step SA1 in the flowchart of FIG. 18, the control unit 29 causes the imaging unit 5 to image the workpiece W. The image A obtained at this time is schematically shown in FIG. The largest rectangle displayed in the image A indicates the outer shape of the imaged work W. A first mark M1 and a second mark M2 that are not codes are attached to the surface of the workpiece W. The first mark M1 and the second mark M2 have a shape close to a square, and the first mark M1 is attached smaller than the second mark M2.

ワークWの表面には、第1コードC1及び第2コードC2も付されている。この例では第1コードC1及び第2コードC2がデータマトリクスである場合を示す。データマトリクスは、当該コードの下辺と一方の側辺とを繋いだL字に近いアライメントパターンを有しており、第1コードC1の場合、図20に太線で示すようなアライメントパターンAP1を有している。第2コードC2の場合も同様にアライメントパターンAP2(図19に示す)を有している。   A first code C1 and a second code C2 are also attached to the surface of the workpiece W. This example shows a case where the first code C1 and the second code C2 are data matrices. The data matrix has an L-shaped alignment pattern connecting the lower side of the code and one side, and in the case of the first code C1, the data matrix has an alignment pattern AP1 as shown by a thick line in FIG. ing. Similarly, the second code C2 has an alignment pattern AP2 (shown in FIG. 19).

図18のフローチャートにおけるステップSA1で画像を取得した後、ステップSA2に進み、コード領域候補を抽出する。コード領域候補とは、ステップSA1で取得された画像内において読取対象となるコード(C1、C2)が存在していると推定される領域のことである。図19に基づいて模式的に説明すると、この例では、読取対象となる第1コードC1及び第2コードC2がデータマトリクスであるため、ステップSA2では、アライメントパターン及びアライメントパターンに類似した略L字状の部分を、ステップSA1で取得された画像内において探索する。   After acquiring an image in step SA1 in the flowchart of FIG. 18, the process proceeds to step SA2 to extract code area candidates. The code area candidate is an area where it is estimated that a code (C1, C2) to be read exists in the image acquired in step SA1. 19 schematically, in this example, since the first code C1 and the second code C2 to be read are data matrices, in step SA2, the substantially L-shape similar to the alignment pattern and the alignment pattern is obtained. Is searched for in the image acquired in step SA1.

図19における右上の図に示すように、第1マークM1及び第2マークM2が正方形であるため、アライメントパターンに類似した形状E1(太線で示す)が、第1マークM1の周縁部において2つ存在し、アライメントパターンに類似した形状E2(太線で示す)が、第2マークM2の周縁部においても2つ存在することになる。よって、ステップSA2の段階では、第1マークM1及び第2マークM2が存在している領域もコード領域候補として抽出することになる。その他、ワークWの外形状もコード領域候補として抽出される場合がある。   As shown in the upper right diagram in FIG. 19, since the first mark M1 and the second mark M2 are square, there are two shapes E1 (indicated by bold lines) similar to the alignment pattern at the periphery of the first mark M1. There are two shapes E2 (indicated by bold lines) that exist and are similar to the alignment pattern at the periphery of the second mark M2. Therefore, in the step SA2, the area where the first mark M1 and the second mark M2 exist is also extracted as a code area candidate. In addition, the outer shape of the workpiece W may be extracted as a code area candidate.

また、図19における右上の図に示すように、ステップSA1で取得された画像内では、第1コードC1及び第2コードC2のアライメントパターンAP1、AP2が存在しているので、第1コードC1及び第2コードC2が存在している領域をコード領域候補として抽出することになる。探索されたアライメントパターンAP1、AP2を太線で示している。   Further, as shown in the upper right diagram in FIG. 19, since the alignment patterns AP1 and AP2 of the first code C1 and the second code C2 exist in the image acquired in step SA1, the first code C1 and An area where the second code C2 exists is extracted as a code area candidate. The searched alignment patterns AP1 and AP2 are indicated by bold lines.

その後、図18のフローチャートにおけるステップSA3に進み、未デコードの領域を選択する。未デコードの領域とは、ステップSA3でコード領域候補として抽出した中で、後述するステップSA6のデコード処理が実行されてない領域のことである。最初のフローでは、全てのコード領域候補に対してデコード処理が実行されていないので、そのままステップSA4に進むことになる。また、コード領域候補が複数抽出された場合には、ステップSA3においてデコード処理を行う順番を決定する。デコード処理を行う順番を決定する際には、コード領域候補のコントラストが小さい順にデコード処理を行うようにしてもよいし、コード領域候補のコントラストが大きい順にデコード処理を行うようにしてもよい。また、コード領域候補におけるアライメントパターン(またはアライメントパターンの類似形状)の大きい順にデコード処理を行うようにしてもよいし、コード領域候補におけるアライメントパターン(またはアライメントパターンの類似形状)の小さい順にデコード処理を行うよい。   Thereafter, the process proceeds to step SA3 in the flowchart of FIG. 18 to select an undecoded area. The undecoded area is an area that has not been decoded in step SA6, which will be described later, in the area extracted as the code area candidate in step SA3. In the first flow, since the decoding process is not executed for all the code area candidates, the process proceeds to step SA4 as it is. If a plurality of code area candidates are extracted, the order of decoding processing is determined in step SA3. When determining the order of performing the decoding process, the decoding process may be performed in ascending order of the contrast of the code area candidates, or the decoding process may be performed in the order of increasing the contrast of the code area candidates. Further, the decoding process may be performed in descending order of the alignment pattern (or similar shape of the alignment pattern) in the code area candidate, or the decoding process may be performed in ascending order of the alignment pattern (or similar shape of the alignment pattern) in the code area candidate. Good to do.

ステップSA4では、ステップSA2で抽出されたコード領域を拡大補間する必要があるか否かを判定する。具体的には、まず、検出部30が、コード領域候補にあるアライメントパターンAP1、AP2や、アライメントパターンの類似形状E1、E2を、コードの大きさに関する情報として認識し、その情報に基づいて、上述したようにコードの大きさを推定して得る。ここでは、第1マークM1及び第2マークM2がアライメントパターンの類似形状E1、E2を有していることから、第1マークM1及び第2マークM2もコードであると仮定して大きさを推定して得る。また、ステップSA4では、判定基準値記憶部35dに予め記憶された大きさ判定基準値を得ておく。そして、検出部30により検出されたコードの大きさに関する情報と、大きさ判定基準値とに基づいて、コードの大きさが拡大補間処理対象であるか否かを判定する。   In step SA4, it is determined whether or not the code area extracted in step SA2 needs to be subjected to enlargement interpolation. Specifically, first, the detection unit 30 recognizes the alignment patterns AP1 and AP2 in the code region candidates and the similar shapes E1 and E2 of the alignment pattern as information on the size of the code, and based on the information, As described above, the code size is estimated and obtained. Here, since the first mark M1 and the second mark M2 have similar shapes E1 and E2 of the alignment pattern, the size is estimated on the assumption that the first mark M1 and the second mark M2 are also codes. And get. In step SA4, the size determination reference value stored in advance in the determination reference value storage unit 35d is obtained. Then, based on the information on the size of the code detected by the detection unit 30 and the size determination reference value, it is determined whether or not the size of the code is an object for enlargement interpolation processing.

拡大補間処理対象であるか否かの判定フローチャートを図21に示す。ステップSB1では、コード領域候補にあるアライメントパターンAP1、AP2や、アライメントパターンの類似形状E1、E2の位置を特定する。これは検出部30で行われる。続くステップSB2では、コード領域候補にあるアライメントパターンAP1、AP2や、アライメントパターンの類似形状E1、E2の一辺の長さ(x)を計測する。長さ(x)はピクセル(画素)数で表示することもできる。   FIG. 21 shows a flowchart for determining whether or not an object is an enlargement interpolation process target. In step SB1, the positions of alignment patterns AP1 and AP2 and similar shapes E1 and E2 of the alignment pattern in the code area candidate are specified. This is performed by the detection unit 30. In the subsequent step SB2, the length (x) of one side of the alignment patterns AP1 and AP2 in the code area candidate and the similar shapes E1 and E2 of the alignment pattern is measured. The length (x) can also be displayed by the number of pixels.

そして、ステップSB3では、長さ(x)が大きさ判定基準値よりも短いか否かを判定する。長さ(x)が大きさ判定基準値よりも短い場合にはステップSB4、即ち、図18に示すフローチャートのステップSA5に進む。一方、長さ(x)が大きさ判定基準値以上の場合にはステップSB5、即ち、図18に示すフローチャートのステップSA6に進む。   In step SB3, it is determined whether or not the length (x) is shorter than the size determination reference value. If the length (x) is shorter than the size determination reference value, the process proceeds to step SB4, that is, step SA5 of the flowchart shown in FIG. On the other hand, if the length (x) is greater than or equal to the size determination reference value, the process proceeds to step SB5, that is, step SA6 of the flowchart shown in FIG.

図19における右上の図に基づいて説明すると、第1コードC1は第2コードC2よりも大きくアライメントパターンAP1の一辺が十分に長いので拡大補間処理を行わなくてもデコードできる場合であり、この場合は、ステップSA6に進む。また、同図において、第2マークM2は第1マークM1や第2コードC2よりも大きく、アライメントパターンの類似形状E2が大きいので、一辺が長く、拡大補間処理を行わなくてもよいと判定してステップSA6に進む。   Referring to the upper right diagram in FIG. 19, the first code C1 is larger than the second code C2, and one side of the alignment pattern AP1 is sufficiently long, so that it can be decoded without performing an enlargement interpolation process. Advances to step SA6. Further, in the same figure, since the second mark M2 is larger than the first mark M1 and the second code C2 and the alignment pattern similar shape E2 is large, it is determined that one side is long and the enlargement interpolation process is not required. The process proceeds to step SA6.

一方、同図において、第1マークM1のアライメントパターンの類似形状E1及び第2コードC2のアライメントパターンAP2は短いので拡大補間処理を行わなければデコードが困難であると推定し、この場合は、ステップSA5に進む。デコードが困難であるか否かの推定は、たとえばアライメントパターンの類似形状E1やアライメントパターンAP2の線幅等に基づいて行うこともできる。   On the other hand, in the figure, since the similar shape E1 of the alignment pattern of the first mark M1 and the alignment pattern AP2 of the second code C2 are short, it is estimated that the decoding is difficult unless the enlargement interpolation process is performed. Proceed to SA5. The estimation of whether or not decoding is difficult can also be performed based on, for example, the similar shape E1 of the alignment pattern or the line width of the alignment pattern AP2.

図18に示すフローチャートのステップSA5ではコード領域を拡大補間処理する。図19の左下の図に示すように、第2コードC2が存在しているコード領域D、即ち、撮像部5により撮像された画像のうち、第2コードC2を含む部分画像の拡大補間処理を行うことができるので、全画像を拡大補間する場合に比べて処理時間が短時間で済む。拡大補間処理を行うコード領域、即ち、拡大補間処理を行う部分画像は、コードを示すコード領域及び該コード領域の周辺領域を含む画像とすることもできる。たとえば、拡大補間処理を行う部分画像は、縦横がコード長の4倍の矩形にすることもできる。このように拡大補間処理を行う部分画像を広く設定することで、検出部30によるコードの位置検出が粗くて済むので、処理時間を短縮することができる。   In step SA5 of the flowchart shown in FIG. As shown in the lower left diagram of FIG. 19, the code region D in which the second code C2 exists, that is, the interpolation process of the partial image including the second code C2 among the images captured by the imaging unit 5 is performed. Since it can be performed, the processing time can be shortened compared with the case where the entire image is subjected to enlargement interpolation. The code area for performing the expansion interpolation process, that is, the partial image for performing the expansion interpolation process may be an image including a code area indicating a code and a peripheral area of the code area. For example, the partial image to be subjected to the enlargement interpolation process may be a rectangle whose length and width are four times the code length. In this way, by setting a wide partial image to be subjected to the enlargement interpolation process, the detection of the code position by the detection unit 30 can be coarse, so that the processing time can be shortened.

次いで、ステップSA6に進んで拡大補間処理が行われたコード領域Dに含まれるコードをデコードした後、ステップSA7に進んで読取が成功したか否かを判定する。ステップSA7において読取が成功した場合にはこのフローを一旦終了する。   Next, the process proceeds to step SA6, the code included in the code area D subjected to the enlargement interpolation process is decoded, and then the process proceeds to step SA7 to determine whether or not the reading is successful. If the reading is successful in step SA7, this flow is temporarily terminated.

一方、ステップSA7において読取が成功しなかった場合には、ステップSA3に戻り、未だデコード処理していない領域を選択する。例えば、第1マークM1が存在している領域をデコード処理した場合には、第1マークM1がコードではないので、ステップSA6において読取に失敗してステップSA7においてNOと判定されてステップSA3に戻ることになる。また、第2マークM2をデコード処理した場合にも読取に失敗するのでステップSA7においてNOと判定されてステップSA3に戻ることになる。また、第1コードC1については拡大補間処理を行うことなく読取に成功する。   On the other hand, if the reading is not successful in step SA7, the process returns to step SA3 to select an area that has not been decoded yet. For example, when the area where the first mark M1 is present is decoded, the first mark M1 is not a code, so reading fails in step SA6, NO is determined in step SA7, and the process returns to step SA3. It will be. Further, even when the second mark M2 is decoded, reading fails, so that NO is determined in step SA7 and the process returns to step SA3. Further, the first code C1 is successfully read without performing the enlargement interpolation process.

ステップSA6においてデコード処理を行う際には、デコード部31が、デコードに先立って、セル位置推定処理を行う。セル位置推定処理とは、図20に模式的に示すように、アライメントパターンAP1を基準にし、仮想的な線L1、L2を碁盤の目を形成するように縦横に引いてセルの境界を規定する。推定したセル位置に白セルが存在しているか、黒セルが存在しているか、白黒2値化した後、そのパターンをデコード部31が判定してデコード処理を行うことができる。アライメントパターンAP1に基づいてセル位置を推定することができるので、推定結果が正確なものになる。なお、図20では拡大補間処理を行わないアライメントパターンAP1を使ってセル位置推定処理を行っているが、本発明はこれに限られず、例えば、拡大後のアライメントパターンAP2を使ってセル位置推定処理を行ってもよい。   When performing decoding processing in step SA6, the decoding unit 31 performs cell position estimation processing prior to decoding. As schematically shown in FIG. 20, the cell position estimation process defines the cell boundaries by drawing the virtual lines L1 and L2 vertically and horizontally so as to form a grid with reference to the alignment pattern AP1. . After the white cell or black cell exists at the estimated cell position, or after binarization, the decoding unit 31 can determine the pattern and perform the decoding process. Since the cell position can be estimated based on the alignment pattern AP1, the estimation result becomes accurate. In FIG. 20, the cell position estimation process is performed using the alignment pattern AP1 that is not subjected to the expansion interpolation process. However, the present invention is not limited to this. For example, the cell position estimation process is performed using the expanded alignment pattern AP2. May be performed.

QRコード等の場合も基本的には上述した制御内容によって拡大補間処理の要否を判定した後、必要な部分画像のみ拡大補間処理してからデコード処理を行うことができる。   In the case of a QR code or the like, basically, after determining whether or not enlargement interpolation processing is necessary based on the above-described control content, only necessary partial images can be subjected to enlargement interpolation processing and then decoding processing can be performed.

[Lanczos法を使用した場合の処理]
拡大補間処理にはLanczos法を使用することができる。Lanczos法を使用した場合について図22に示すフローチャートに基づいて説明する。拡大補間処理にLanczos法を使用すると、拡大後の画像がピントボケに類似した画像になるため、ボケ補正処理を行うようにしている。
[Process when Lanczos method is used]
The Lanczos method can be used for the enlargement interpolation process. The case where the Lanczos method is used will be described based on the flowchart shown in FIG. When the Lanczos method is used for the enlargement interpolation process, the enlarged image becomes an image similar to the out-of-focus image, so that the blur correction process is performed.

図22に示すフローチャートのステップSC1〜SC4までは図18に示すフローチャートのステップSA1〜SA4とそれぞれ同じである。図22に示すフローチャートのステップSC4で拡大補間処理が必要であると判定された場合にはステップSC5に進み、図18に示すフローチャートのステップSA5と同じ処理を行う。そしてステップSC6に進んでボケ補正付きデコードを行う。ステップSC6では、ステップSC5において拡大補間処理された画像のボケをボケ補正処理によって低減してから、図18に示すフローチャートのステップSA6と同様なデコード処理を行う。一方、ステップSC4で拡大補間処理が不要であると判定された場合にはステップSC8に進み、図18に示すフローチャートのステップSA6と同様なデコード処理を行う。ステップSC7は、図18に示すフローチャートのステップSA7と同じである。   Steps SC1 to SC4 in the flowchart shown in FIG. 22 are the same as steps SA1 to SA4 in the flowchart shown in FIG. If it is determined in step SC4 in the flowchart shown in FIG. 22 that the enlargement interpolation process is necessary, the process proceeds to step SC5, and the same process as step SA5 in the flowchart shown in FIG. 18 is performed. Then, the process proceeds to step SC6 and decoding with blur correction is performed. In step SC6, the blur of the image subjected to the enlargement interpolation process in step SC5 is reduced by the blur correction process, and then the same decoding process as in step SA6 of the flowchart shown in FIG. 18 is performed. On the other hand, if it is determined in step SC4 that the enlargement interpolation process is unnecessary, the process proceeds to step SC8, and the same decoding process as in step SA6 in the flowchart shown in FIG. 18 is performed. Step SC7 is the same as step SA7 in the flowchart shown in FIG.

[偏光フィルタアタッチメントの有無検知方法]
偏光フィルタアタッチメント3のような着脱可能な部材が本体に取り付けられているか否かを自動で検知する方法として、一般的には、たとえば機械的なスイッチや電気的接点を使用する方法が知られているが、これらの場合は構造が複雑になるというデメリットがある。
[Polarization filter attachment presence / absence detection method]
As a method for automatically detecting whether or not a detachable member such as the polarizing filter attachment 3 is attached to the main body, a method using, for example, a mechanical switch or an electrical contact is generally known. However, in these cases, there is a demerit that the structure becomes complicated.

この実施形態では機械的なスイッチや電気的接点を使用することなく、偏光フィルタアタッチメント3の有無を自動で検知することができるように構成されている。具体的には、光が偏光フィルタを透過することで照射する光量が半減し、また、光を受光する際も偏光フィルタを透過することで光量が半減する性質を利用し、次のようにソフトウエアによって偏光フィルタアタッチメント3の有無を自動で検知する。   In this embodiment, it is configured such that the presence or absence of the polarizing filter attachment 3 can be automatically detected without using a mechanical switch or an electrical contact. Specifically, the amount of light applied is reduced by half when light passes through the polarizing filter, and the amount of light is reduced by half when transmitted through the polarizing filter when receiving light. The presence or absence of the polarizing filter attachment 3 is automatically detected by the wear.

すなわち、まず、第1発光ダイオード16を点灯させて第2発光ダイオード17を消灯させた状態で撮像部5に撮像させる。その後、第1発光ダイオード16を消灯させて第2発光ダイオード17を点灯させた状態で撮像部5に撮像させる。この順番はどちらが先でもよい。その後、2つの画像の明るさを比較して略同等であれば偏光フィルタアタッチメント3が装着されていないと判断する。一方、一方の画像の明るさが他方の画像の明るさの倍程度(または半分程度)であれば、偏光フィルタアタッチメント3が装着されていると判断する。   That is, first, the imaging unit 5 is caused to image in a state where the first light emitting diode 16 is turned on and the second light emitting diode 17 is turned off. Thereafter, the first light emitting diode 16 is turned off and the second light emitting diode 17 is turned on to cause the imaging unit 5 to pick up an image. Either may be the first in this order. Thereafter, if the brightness of the two images is compared and approximately the same, it is determined that the polarizing filter attachment 3 is not attached. On the other hand, if the brightness of one image is about twice (or about half) the brightness of the other image, it is determined that the polarizing filter attachment 3 is attached.

つまり、偏光フィルタアタッチメント3の偏光フィルタを透過するように配置されている発光体を発光させ、かつ、偏光フィルタを透過しないように配置されている発光体を光らせない状態にして撮像した画像と、偏光フィルタアタッチメント3の偏光フィルタを透過するように配置されている発光体を光らせず、かつ、偏光フィルタを透過しないように配置されている発光体を発光させて撮像した画像との明るさを比較する比較部を設けておく。そして、この比較部による2つの画像の比較結果に基づいて偏光フィルタアタッチメント3の有無を自動で検知することができる。   That is, an image obtained by emitting light from a light emitting body arranged so as to pass through the polarizing filter of the polarizing filter attachment 3 and making a light emitting body arranged so as not to pass through the polarizing filter not emit light, Comparison of brightness with an image obtained by emitting light from a light emitter arranged so as to pass through the polarization filter of the polarization filter attachment 3 and emitting light from a light emitter arranged so as not to pass through the polarization filter A comparison unit is provided. And the presence or absence of the polarization filter attachment 3 can be automatically detected based on the comparison result of two images by this comparison part.

[実施形態の作用効果]
以上説明したように、この実施形態に係る光学的情報読取装置1によれば、撮像素子5aにより撮像された画像に含まれるコードの大きさに関する情報を検出部30によって検出できる。これにより、コードの大きさを推定して得ることができる。
[Effects of Embodiment]
As described above, according to the optical information reading device 1 according to this embodiment, the detection unit 30 can detect information related to the size of the code included in the image captured by the image sensor 5a. Thereby, the size of the code can be estimated and obtained.

そして、拡大補間処理部29dは、検出部30により検出されたコードの大きさに関する情報と、基準値記憶部35dに記憶された大きさ判定基準値とに基づいて、コードの大きさが拡大補間処理対象であるか否かを判定することができる。コードの大きさが拡大補間処理対象であると判定される場合には、撮像素子5aにより撮像された画像のうち、コードを含む部分画像の拡大補間処理を行うので、全画像を拡大補間する場合に比べて処理時間が短時間で済む。拡大補間処理後の部分画像に含まれるコードをデコード部がデコードすることができるので、コードの読取精度を高めることができる。一方、コードの大きさが拡大補間処理対象ではない場合には、拡大補間処理を行わないので、無用な処理が行われることはない。   Then, the enlargement interpolation processing unit 29d expands the code size based on the information on the code size detected by the detection unit 30 and the size determination reference value stored in the reference value storage unit 35d. It can be determined whether or not it is a processing target. When it is determined that the size of the code is subject to enlargement interpolation processing, the enlargement interpolation processing is performed on the partial image including the code among the images captured by the image sensor 5a, and thus the entire image is subjected to enlargement interpolation. Compared with, processing time is short. Since the decoding unit can decode the code included in the partial image after the enlargement interpolation process, the code reading accuracy can be improved. On the other hand, when the size of the code is not the target for the enlargement interpolation process, the enlargement interpolation process is not performed, and therefore unnecessary processing is not performed.

したがって、撮像された画像内に解像度の低いコードが含まれる場合であっても短時間でコードを読み取ることができるとともに、コードの読取精度を高めることができる。   Therefore, even when a low resolution code is included in the captured image, the code can be read in a short time and the code reading accuracy can be improved.

尚、上記実施形態では、光学的情報読取装置1の運用時に拡大補間が必要か否かを判定するようにしているが、これに限らず、光学的情報読取装置1の設定時におけるチューニング工程を行う際に拡大補間が必要か否かを判定するようにしてもよい。   In the above embodiment, it is determined whether or not enlargement interpolation is necessary when the optical information reader 1 is operated. However, the present invention is not limited to this, and a tuning process at the time of setting the optical information reader 1 is performed. When performing, it may be determined whether or not enlargement interpolation is necessary.

以上説明したように、本発明に係る光学的情報読取装置は、たとえば、バーコードや二次元コード等のコードを読み取る場合に使用することができる。   As described above, the optical information reading apparatus according to the present invention can be used, for example, when reading a code such as a bar code or a two-dimensional code.

1 光学的情報読取装置
4 照明部
5 撮像部
5a 撮像素子
29 制御ユニット
29d 拡大補間処理部
30 検出部
31 デコード部
35 記憶装置
35d 判定基準値記憶部
C1、C2 コード
W ワーク
DESCRIPTION OF SYMBOLS 1 Optical information reader 4 Illumination part 5 Image pick-up part 5a Image pick-up element 29 Control unit 29d Enlargement interpolation process part 30 Detection part 31 Decoding part 35 Memory | storage device 35d Determination reference value memory | storage part C1, C2 Code W Work

Claims (7)

ワークに付されたコードを撮像する撮像素子を有する撮像部と、
上記撮像部により撮像された画像に含まれるコードの大きさに関する情報を検出するための検出部と、
上記撮像部により撮像された画像に含まれるコードの大きさに関する情報に基づいて当該コードが拡大補間処理対象であるか否かを判定する基準となる大きさ判定基準値を記憶する判定基準値記憶部と、
上記検出部により検出されたコードの大きさに関する情報と、上記判定基準値記憶部に記憶された大きさ判定基準値とに基づいて、コードの大きさが拡大補間処理対象であるか否かを判定し、コードの大きさが拡大補間処理対象であると判定される場合には、上記撮像部により撮像された画像のうち、コードを含む部分画像の拡大補間処理を行う一方、コードの大きさが拡大補間処理対象ではないと判定される場合には、コードを含む部分画像の拡大補間処理を行わないように構成された拡大補間処理部と、
上記拡大補間処理部により拡大補間処理が行われた部分画像及び上記拡大補間処理部により拡大補間処理が行われていない部分画像のいずれかに含まれるコードをデコードするデコード部とを備えていることを特徴とする光学的情報読取装置。
An imaging unit having an imaging element for imaging a code attached to a workpiece;
A detection unit for detecting information on the size of a code included in an image captured by the imaging unit;
A determination reference value storage that stores a size determination reference value that serves as a reference for determining whether or not the code is an object for enlargement interpolation processing based on information about the size of the code included in the image captured by the imaging unit. And
Whether or not the code size is subject to enlargement interpolation processing is determined based on the information related to the code size detected by the detection unit and the size determination reference value stored in the determination reference value storage unit. If it is determined and the code size is determined to be an object of enlargement interpolation processing, an enlargement interpolation process is performed on a partial image including the code among the images captured by the imaging unit, while the code size is determined. Is determined not to be subject to enlargement interpolation processing, an enlargement interpolation processing unit configured not to perform enlargement interpolation processing of a partial image including a code;
A decoding unit that decodes a code included in either the partial image that has been subjected to the expansion interpolation processing by the expansion interpolation processing unit or the partial image that has not been subjected to the expansion interpolation processing by the expansion interpolation processing unit; An optical information reader.
請求項1に記載の光学的情報読取装置において、
上記撮像部により撮像された画像には、拡大補間処理対象となるコードと、拡大補間処理対象とならないコードとを含むことを特徴とする光学的情報読取装置。
The optical information reader according to claim 1.
An optical information reading apparatus characterized in that an image picked up by the image pickup unit includes a code that is an object of enlargement interpolation processing and a code that is not an object of enlargement interpolation processing.
請求項1または2に記載の光学的情報読取装置において、
上記拡大補間処理を行う部分画像は、コードを示すコード領域及び該コード領域の周辺領域を含む画像であることを特徴とする光学的情報読取装置。
The optical information reader according to claim 1 or 2,
The optical information reading apparatus, wherein the partial image to be subjected to the enlargement interpolation process is an image including a code area indicating a code and a peripheral area of the code area.
請求項1から3のいずれか1つに記載の光学的情報読取装置において、
上記コードは二次元コードであり、コードの大きさに関する情報は、二次元コードの予め定められた位置に配置され、該二次元コードの位置を検出する位置検出パターンのサイズであることを特徴とする光学的情報読取装置。
In the optical information reader according to any one of claims 1 to 3,
The code is a two-dimensional code, and the information regarding the code size is arranged at a predetermined position of the two-dimensional code, and is a size of a position detection pattern for detecting the position of the two-dimensional code. An optical information reader.
請求項1から3のいずれか1つに記載の光学的情報読取装置において、
上記コードは二次元コードであり、コードの大きさに関する情報は、二次元コードのセルサイズまたは二次元コードの1つのセルを構成する画素サイズであることを特徴とする光学的情報読取装置。
In the optical information reader according to any one of claims 1 to 3,
2. The optical information reader according to claim 1, wherein the code is a two-dimensional code, and the information regarding the size of the code is a cell size of the two-dimensional code or a pixel size constituting one cell of the two-dimensional code.
請求項1から5のいずれか1つに記載の光学的情報読取装置において、
上記拡大補間処理部により拡大補間処理が行われた部分画像のコードのボケを補正するための補正処理を実行するボケ補正部を備え、
上記デコード部は、上記ボケ補正部による補正処理が実行された後にデコードするように構成されていることを特徴とする光学的情報読取装置。
In the optical information reader according to any one of claims 1 to 5,
A blur correction unit that performs a correction process for correcting the blur of the code of the partial image subjected to the magnification interpolation process by the magnification interpolation processing unit;
The optical information reading apparatus, wherein the decoding unit is configured to decode after the correction processing by the blur correction unit is executed.
請求項1から6のいずれか1つに記載の光学的情報読取装置において、
上記デコード部は、デコードに先立って、上記拡大補間処理部により拡大補間処理が行われた部分画像に基づいてコードのセル位置を推定するセル位置推定処理を行うように構成されていることを特徴とする光学的情報読取装置。
In the optical information reading device according to any one of claims 1 to 6,
Prior to decoding, the decoding unit is configured to perform cell position estimation processing for estimating a cell position of a code based on a partial image that has been subjected to expansion interpolation processing by the expansion interpolation processing unit. An optical information reader.
JP2017032316A 2017-02-23 2017-02-23 Optical information reader Pending JP2018136854A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017032316A JP2018136854A (en) 2017-02-23 2017-02-23 Optical information reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017032316A JP2018136854A (en) 2017-02-23 2017-02-23 Optical information reader

Publications (1)

Publication Number Publication Date
JP2018136854A true JP2018136854A (en) 2018-08-30

Family

ID=63365598

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017032316A Pending JP2018136854A (en) 2017-02-23 2017-02-23 Optical information reader

Country Status (1)

Country Link
JP (1) JP2018136854A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021149603A (en) * 2020-03-19 2021-09-27 株式会社キーエンス Optical reading device
JP2022111040A (en) * 2021-01-18 2022-07-29 株式会社キーエンス Optical information reader
JP2022111038A (en) * 2021-01-18 2022-07-29 株式会社キーエンス Optical information reader
JP2022111039A (en) * 2021-01-18 2022-07-29 株式会社キーエンス Optical information reader
JP2022135893A (en) * 2021-03-03 2022-09-15 株式会社キーエンス Optical information reader
JP2022134482A (en) * 2021-03-03 2022-09-15 株式会社キーエンス Optical information reader

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007334478A (en) * 2006-06-13 2007-12-27 Hitachi Computer Peripherals Co Ltd Image processing apparatus and image processing method
JP2012064175A (en) * 2010-09-17 2012-03-29 Keyence Corp Illumination setting support device for optical information reader

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007334478A (en) * 2006-06-13 2007-12-27 Hitachi Computer Peripherals Co Ltd Image processing apparatus and image processing method
JP2012064175A (en) * 2010-09-17 2012-03-29 Keyence Corp Illumination setting support device for optical information reader

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021149603A (en) * 2020-03-19 2021-09-27 株式会社キーエンス Optical reading device
JP7402088B2 (en) 2020-03-19 2023-12-20 株式会社キーエンス optical reader
JP2022111040A (en) * 2021-01-18 2022-07-29 株式会社キーエンス Optical information reader
JP2022111038A (en) * 2021-01-18 2022-07-29 株式会社キーエンス Optical information reader
JP2022111039A (en) * 2021-01-18 2022-07-29 株式会社キーエンス Optical information reader
JP7761442B2 (en) 2021-01-18 2025-10-28 株式会社キーエンス Optical information reader
JP2022135893A (en) * 2021-03-03 2022-09-15 株式会社キーエンス Optical information reader
JP2022134482A (en) * 2021-03-03 2022-09-15 株式会社キーエンス Optical information reader
JP7733529B2 (en) 2021-03-03 2025-09-03 株式会社キーエンス Optical information reader

Similar Documents

Publication Publication Date Title
JP7108747B2 (en) Optical information reader
JP2018136853A (en) Optical information reader
JP2018136854A (en) Optical information reader
JP2019071018A (en) Optical information reader and optical information reading method
JP5956941B2 (en) Optical code reading system and optical code reading control method
JP6434118B2 (en) Optical information reading apparatus, optical information reading method and program
JP2016033787A (en) Optical information reader
JP2005202930A (en) Optical information reading device
US11308295B2 (en) Handheld optical information reading device
JP7600449B2 (en) Optical Reader
JP2025036593A (en) Terminal device, program, method and system
JP2018136858A (en) Optical information reader
US20050167498A1 (en) Method and apparatus for optically picking up an image of an information code
US12481849B2 (en) Code reader and code reading method
WO2019050999A1 (en) Automated modification of imaging scanner function based on orientation
JP2006244139A (en) Optical information reading device
US20240242047A1 (en) Code reader and code reading method
CN114818763A (en) Optical information reading apparatus
JP7402088B2 (en) optical reader
JP7706348B2 (en) Setting device for optical information reading device, optical information reading system, and optical information reading method
JP5104713B2 (en) Optical information reader
JP2017059265A (en) Optical information reader
JP2021047541A (en) Optical information reading device
JP2025087917A (en) Optical Information Reading System
JP2024100670A (en) Code reader and code reading method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190910

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200715

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200818

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201014

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20210302