JP2016045895A - Information reader - Google Patents

Information reader Download PDF

Info

Publication number
JP2016045895A
JP2016045895A JP2014172019A JP2014172019A JP2016045895A JP 2016045895 A JP2016045895 A JP 2016045895A JP 2014172019 A JP2014172019 A JP 2014172019A JP 2014172019 A JP2014172019 A JP 2014172019A JP 2016045895 A JP2016045895 A JP 2016045895A
Authority
JP
Japan
Prior art keywords
dimensional code
image
code
region
optical system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2014172019A
Other languages
Japanese (ja)
Other versions
JP6310366B2 (en
Inventor
千恵 豊田
Chie Toyoda
千恵 豊田
塚田 敏彦
Toshihiko Tsukada
敏彦 塚田
善美 北角
Yoshimi Kitakado
善美 北角
伊藤 邦彦
Kunihiko Ito
邦彦 伊藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Denso Wave Inc
Toyota Central R&D Labs Inc
Original Assignee
Denso Corp
Denso Wave Inc
Toyota Central R&D Labs Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp, Denso Wave Inc, Toyota Central R&D Labs Inc filed Critical Denso Corp
Priority to JP2014172019A priority Critical patent/JP6310366B2/en
Publication of JP2016045895A publication Critical patent/JP2016045895A/en
Application granted granted Critical
Publication of JP6310366B2 publication Critical patent/JP6310366B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

PROBLEM TO BE SOLVED: To provide an information reader capable of reading both a one-dimensional code and a two-dimensional code in a wide reading range.SOLUTION: The information reader comprises: an imaging device which has a rectangular imaging surface and captures an optical image formed on the imaging surface; a first optical system which forms a first subject image in a predetermined first area in the imaging surface by the first magnification; a second optical system which forms a second subject image in a second area adjacent to the first area in the longitudinal direction of the imaging surface; and a code reading processing unit which reads one of the one-dimensional code and the two-dimensional code from the captured image including the first and second subject images and which, in a case where one of the codes cannot be read, reads the other code from the captured image.SELECTED DRAWING: Figure 2

Description

本発明は情報読取装置に関する。   The present invention relates to an information reading apparatus.

本発明者等は、波面符号化法(Wavefront Coding)を用いた焦点深度の拡大により、コードリーダの読取距離範囲の拡大に取り組んできた(特許文献1を参照)。汎用されているコードには、二次元コードと一次元コードとがある。二次元コードとして汎用されているQRコード(登録商標)は正方形に近い形状である。一方、一次元コードとして汎用されているバーコードは縦横比が大きい長方形である。   The inventors of the present invention have been working on expanding the reading range of a code reader by increasing the depth of focus using a wavefront coding method (see Patent Document 1). Commonly used codes include a two-dimensional code and a one-dimensional code. A QR code (registered trademark) widely used as a two-dimensional code has a shape close to a square. On the other hand, a barcode that is widely used as a one-dimensional code is a rectangle having a large aspect ratio.

商品管理の現場では二次元コードと一次元コードとが混在している。従って、正方形の二次元コード及び長方形の一次元コードの両方を読取ることができるコードリーダが必要とされている。   In the field of merchandise management, two-dimensional codes and one-dimensional codes are mixed. Therefore, there is a need for a code reader that can read both square two-dimensional codes and rectangular one-dimensional codes.

特願2013-37929号Japanese Patent Application No. 2013-37929

しかしながら、1つの撮像系で二次元コード及び一次元コードの両方を読取る場合には、縦横比が大きい長方形の一次元コードを画面内に収めるために、コードリーダを遠ざける等して広視野で撮像することになる。この結果、撮像倍率が低下して二次元コードが読取り難くなるという問題があった。   However, when both a two-dimensional code and a one-dimensional code are read by a single imaging system, the image is taken with a wide field of view by moving the code reader away, etc., in order to fit a rectangular one-dimensional code with a large aspect ratio into the screen. Will do. As a result, there has been a problem that the imaging magnification is reduced and it is difficult to read the two-dimensional code.

また、波面符号化法では、画像処理の過程でフーリエ変換を行うため、一辺の画素数が2のn乗(例えば、2=256、2=512、210=1024)となる正方形画像が画像処理の対象となる。通常の撮像素子では、受光素子が配列された撮像面が長方形である。このため、波面符号化法を用いた場合には、正方形画像が結像された撮像領域の情報しか活用されず、他の撮像領域の情報は無駄になっていた。 In the wavefront coding method, since a Fourier transform is performed in the course of image processing, a square image in which the number of pixels on one side is 2 to the nth power (for example, 2 8 = 256, 2 9 = 512, 2 10 = 1024). Are subject to image processing. In a normal imaging device, the imaging surface on which the light receiving elements are arranged is rectangular. For this reason, when the wavefront coding method is used, only the information of the imaging region where the square image is formed is used, and the information of the other imaging regions is wasted.

本発明は上記課題に鑑みなされたものであり、本発明の目的は、撮像素子の撮像領域を無駄にすることなく、一次元コード及び二次元コードの両方を広い読取距離範囲で読取ることができる情報読取装置を提供することにある。   The present invention has been made in view of the above problems, and an object of the present invention is to read both a one-dimensional code and a two-dimensional code in a wide reading distance range without wasting an imaging region of the imaging device. It is to provide an information reading apparatus.

本発明の情報読取装置は、長方形の撮像面を備え、前記撮像面に結像された光像を撮像する撮像素子と、前記撮像面の予め定めた第1領域に第1被写体像を第1倍率で結像する第1光学系と、前記撮像面の長さ方向において前記第1領域に隣接する第2領域に第2被写体像を前記第1倍率より低い第2倍率で結像する第2光学系と、前記第1被写体像及び前記第2被写体像を含む撮像画像から一次元コード及び二次元コードの何れか一方を読み取り、前記一方のコードが読み取れない場合に、前記撮像画像から他方のコードの読み取りを行うコード読取処理部と、を備えている。   An information reading apparatus according to the present invention includes a rectangular imaging surface, an imaging device that captures a light image formed on the imaging surface, and a first subject image in a first region defined in advance on the imaging surface. A first optical system that forms an image at a magnification; and a second optical image that forms a second object image at a second magnification lower than the first magnification in a second region adjacent to the first region in the length direction of the imaging surface. When one of a one-dimensional code and a two-dimensional code is read from an optical system and a captured image including the first subject image and the second subject image, and the one of the codes cannot be read, A code reading processing unit for reading a code.

本発明の情報読取装置によれば、1つの撮像素子の撮像領域に異なる倍率で結像された2種類の被写体像の何れかを読み取ればよいので、一次元コード及び二次元コードの両方を広い読取距離範囲で読取ることができる。   According to the information reading apparatus of the present invention, since either one of two types of subject images formed at different magnifications in the imaging region of one imaging element may be read, both the one-dimensional code and the two-dimensional code are wide. Reading can be performed within the reading distance range.

本実施の形態に係る情報読取装置の電気的構成の一例を示すブロック図である。It is a block diagram which shows an example of the electrical constitution of the information reading apparatus which concerns on this Embodiment. (A)は本実施の形態の撮像部の構成の一例を示す模式図である。(B)は(A)に示す光学系の視野を示す模式図である。(A) is a schematic diagram which shows an example of a structure of the imaging part of this Embodiment. (B) is a schematic diagram which shows the visual field of the optical system shown to (A). 本実施の形態の撮像部の光学系の設計例を示す光軸に沿った断面図である。It is sectional drawing along the optical axis which shows the example of a design of the optical system of the imaging part of this Embodiment. 本実施の形態の撮像部による撮像例を示す図である。It is a figure which shows the example of an imaging by the imaging part of this Embodiment. コード読取処理のルーチンの一例を示すフローチャートである。It is a flowchart which shows an example of the routine of a code reading process. 波面符号化法による画像復元の原理を説明する説明図である。It is explanatory drawing explaining the principle of the image restoration by a wavefront encoding method.

以下、図面を参照して本発明の実施の形態の一例を詳細に説明する。   Hereinafter, an example of an embodiment of the present invention will be described in detail with reference to the drawings.

<情報読取装置>
まず、情報読取装置について説明する。
図1は本実施の形態に係る情報読取装置の電気的構成の一例を示すブロック図である。本実施の形態に係る情報読取装置は、一次元コード及び二次元コードの両方を読み取ることができるコードリーダである。図1に示すように、情報読取装置10は、撮像部12、A/D変換部14、画像メモリ部16、ガイド光照射部18、制御装置20、操作部22、表示部24、及び通信部26を備えている。撮像部12、画像メモリ部16、ガイド光照射部18、操作部22、表示部24、及び通信部26の各々は、制御装置20に接続されて制御装置20により制御されている。
<Information reader>
First, the information reading apparatus will be described.
FIG. 1 is a block diagram showing an example of the electrical configuration of the information reading apparatus according to the present embodiment. The information reading apparatus according to the present embodiment is a code reader that can read both a one-dimensional code and a two-dimensional code. As shown in FIG. 1, the information reading apparatus 10 includes an imaging unit 12, an A / D conversion unit 14, an image memory unit 16, a guide light irradiation unit 18, a control device 20, an operation unit 22, a display unit 24, and a communication unit. 26. Each of the imaging unit 12, the image memory unit 16, the guide light irradiation unit 18, the operation unit 22, the display unit 24, and the communication unit 26 is connected to the control device 20 and controlled by the control device 20.

撮像部12は、被写体の画像(撮像面に結像された光像)を撮像し、画像信号(アナログ信号)をA/D変換部14に出力する。A/D変換部14は、撮像部12から出力されたアナログ信号をディジタル信号に変換する。画像メモリ部16は、ディジタル化された画像信号を画像情報として記憶する。ガイド光照射部18は、コードの読み取り範囲を示すガイド光MA(又はMB)を照射する。   The imaging unit 12 captures an image of a subject (light image formed on the imaging surface) and outputs an image signal (analog signal) to the A / D conversion unit 14. The A / D converter 14 converts the analog signal output from the imaging unit 12 into a digital signal. The image memory unit 16 stores the digitized image signal as image information. The guide light irradiation unit 18 irradiates guide light MA (or MB) indicating a code reading range.

制御装置20は、装置全体の制御及び各種演算を行うコンピュータとして構成されている。具体的には、制御装置20は、CPU(中央処理装置; Central Processing Unit)、各種プログラムを記憶したROM(Read Only Memory)、RAM(Random Access Memory)、各種情報を記憶する不揮発性メモリ、及び入出力インターフェース(I/O)を備えている。CPU、ROM、RAM、不揮発性メモリ、及びI/Oの各々は、バスを介して接続されている。   The control device 20 is configured as a computer that controls the entire device and performs various calculations. Specifically, the control device 20 includes a CPU (Central Processing Unit), a ROM (Read Only Memory) storing various programs, a RAM (Random Access Memory), a nonvolatile memory storing various information, and An input / output interface (I / O) is provided. Each of the CPU, ROM, RAM, nonvolatile memory, and I / O is connected via a bus.

本実施の形態では、後述する「コード読取処理」の制御プログラムが予めROMに記憶されている。CPUはROMに記憶された制御プログラムを読み出し、RAMをワークエリアとして使用して、読み出したプログラムを実行する。「コード読取処理」では、画像メモリ部16に記憶された画像情報を取り込み、コードの読み取りを開始し、読取結果を出力する。具体的な処理ルーチンについては後述する。   In the present embodiment, a “code reading process” control program described later is stored in advance in the ROM. The CPU reads the control program stored in the ROM, and executes the read program using the RAM as a work area. In the “code reading process”, image information stored in the image memory unit 16 is captured, code reading is started, and a reading result is output. A specific processing routine will be described later.

操作部22は、コードの撮像の開始を指示するスイッチ等、ユーザの操作による各種の指示を受け付ける。表示部24は、撮像部12で撮像する前の被写体の画像、撮像部12で撮像された被写体の画像、読取結果等をユーザに表示する。通信部26は、有線又は無線により外部装置(図示せず)と通信を行うためのインターフェイスである。通信部26は、例えば、制御装置20から出力された読取結果を外部装置(図示せず)に送信する。   The operation unit 22 receives various instructions by a user operation, such as a switch for instructing the start of code imaging. The display unit 24 displays a subject image before being imaged by the imaging unit 12, an image of the subject imaged by the imaging unit 12, a reading result, and the like to the user. The communication unit 26 is an interface for communicating with an external device (not shown) by wire or wireless. For example, the communication unit 26 transmits the reading result output from the control device 20 to an external device (not shown).

<結像光学系>
次に、撮像部12の結像光学系について説明する。
図2(A)は本実施の形態の撮像部の構成の一例を示す模式図である。図2(B)は図2(A)に示す光学系の視野を示す模式図である。図2(A)に示すように、撮像部12は、ガイド光照射部18、第1光学系30、第2光学系32、及び撮像素子34を備えている。ガイド光照射部18、第1光学系30、第2光学系32、及び撮像素子34の各々は、筐体28内に収納されている。ここでは、被写体を物品に付された二次元コードQとする。図示した例では、二次元コードQは正方形のQRコード(登録商標)である。
<Imaging optical system>
Next, the imaging optical system of the imaging unit 12 will be described.
FIG. 2A is a schematic diagram illustrating an example of the configuration of the imaging unit of the present embodiment. FIG. 2B is a schematic diagram showing a field of view of the optical system shown in FIG. As illustrated in FIG. 2A, the imaging unit 12 includes a guide light irradiation unit 18, a first optical system 30, a second optical system 32, and an imaging element 34. Each of the guide light irradiation unit 18, the first optical system 30, the second optical system 32, and the image sensor 34 is housed in a housing 28. Here, the subject is a two-dimensional code Q attached to the article. In the illustrated example, the two-dimensional code Q is a square QR code (registered trademark).

本実施の形態では、撮像部12及びガイド光照射部18以外の情報読取装置10の各部(A/D変換部14、画像メモリ部16、制御装置20、操作部22、表示部24、及び通信部26)も、筐体28内に収納又は筐体28に設置されている。なお、本実施の形態では、制御装置20で「コード読取処理」を実行するが、撮像された画像の画像情報を外部装置に送信して、外部装置で「コード読取処理」を実行するようにしてもよい。   In the present embodiment, each unit (A / D conversion unit 14, image memory unit 16, control device 20, operation unit 22, display unit 24, and communication unit) of the information reading apparatus 10 other than the imaging unit 12 and the guide light irradiation unit 18 is used. The part 26) is also housed in or installed in the housing 28. In the present embodiment, the “code reading process” is executed by the control device 20, but the image information of the captured image is transmitted to the external device, and the “code reading process” is executed by the external device. May be.

撮像素子34は、長方形の撮像面34Aを備えている。撮像面34Aには、複数の受光素子が配列されている。例えば、幅方向にn個の受光素子が並べられ、長さ方向に(n+m)個の受光素子が並べられて、合計でn×(n+m)個の受光素子がマトリクス状に配列されている。1つの受光素子が撮像された画像の1画素に相当する。ここで、nは2以上の整数であり、mは1以上の整数であり、n>mという関係を有する。また、本実施の形態では、個々の受光素子は、縦横比が等しい正方形の受光面を有する正方画素である。   The imaging element 34 includes a rectangular imaging surface 34A. A plurality of light receiving elements are arranged on the imaging surface 34A. For example, n light receiving elements are arranged in the width direction and (n + m) light receiving elements are arranged in the length direction, and a total of n × (n + m) light receiving elements are arranged in a matrix. This corresponds to one pixel of an image captured by one light receiving element. Here, n is an integer of 2 or more, m is an integer of 1 or more, and has a relationship of n> m. In the present embodiment, each light receiving element is a square pixel having a square light receiving surface having the same aspect ratio.

上記の撮像素子34としては、光電変換により光学像を撮像するイメージセンサが用いられる。イメージセンサとしては、CCD(Charge Coupled Device)イメージセンサ、CMOS(Complementary Metal Oxide Semiconductor)イメージセンサ等が挙げられる。また、上記のガイド光照射部18には、LED等の発光素子が用いられる。   As the imaging element 34, an image sensor that captures an optical image by photoelectric conversion is used. Examples of the image sensor include a CCD (Charge Coupled Device) image sensor, a CMOS (Complementary Metal Oxide Semiconductor) image sensor, and the like. The guide light irradiation unit 18 uses a light emitting element such as an LED.

第1光学系30と第2光学系32とは、長方形の撮像素子34の長さ方向(図面では上下方向)に並べて配置される。図2(B)に示すように、第1光学系30は視野(粗い点線で囲んだ略正方形の領域)を有し、第2光学系32は視野(細かい点線で囲んだ長方形の領域)を有する。第1光学系30の視野と第2光学系32の視野とは、代表的な読取距離で中心が一致することが好ましい。なお、図示した例では、第1光学系30の視野と第2光学系32の視野とが上下にずれているが、2種類のコードの読取に支障が無ければ、中心が一致していなくてもよい。   The first optical system 30 and the second optical system 32 are arranged side by side in the length direction (vertical direction in the drawing) of the rectangular imaging element 34. As shown in FIG. 2B, the first optical system 30 has a field of view (substantially square region surrounded by a rough dotted line), and the second optical system 32 has a field of view (rectangular region surrounded by a fine dotted line). Have. It is preferable that the center of the field of view of the first optical system 30 and the field of view of the second optical system 32 coincide at a typical reading distance. In the example shown in the figure, the field of view of the first optical system 30 and the field of view of the second optical system 32 are vertically shifted. However, if there is no problem in reading the two types of codes, the centers are not aligned. Also good.

第1光学系30は、長方形の撮像面34Aの予め定めた第1領域36に第1被写体像36Qを結像する。第2光学系は、撮像面34Aの長さ方向において第1領域36に隣接する第2領域38に第2被写体像38Qを結像する。例えば、第1領域36は、(n×n)個の受光素子がマトリクス状に配列された正方形状の領域とすることができる。また、第2領域38は、(n×m)個の受光素子がマトリクス状に配列された長方形状の領域とすることができる。即ち、第1領域36と二次元コードQとは相似形であり、第2領域38と一次元コードBとは相似形とすることができる。なお、第2領域38は、(n×1)個の受光素子がライン状に配列された長方形状の領域としてもよい。   The first optical system 30 forms a first subject image 36Q in a predetermined first region 36 of the rectangular imaging surface 34A. The second optical system forms a second subject image 38Q in a second region 38 adjacent to the first region 36 in the length direction of the imaging surface 34A. For example, the first region 36 may be a square region in which (n × n) light receiving elements are arranged in a matrix. The second region 38 can be a rectangular region in which (n × m) light receiving elements are arranged in a matrix. That is, the first region 36 and the two-dimensional code Q are similar, and the second region 38 and the one-dimensional code B can be similar. The second region 38 may be a rectangular region in which (n × 1) light receiving elements are arranged in a line.

また、第1光学系30は、第1領域36に第1被写体像36Qを第1倍率で結像する。第2光学系は、第2領域38に第2被写体像38Qを第1倍率より低い第2倍率で結像する。即ち、被写体が同じでも、第1光学系30により形成される第1被写体像36Qは結像倍率が高く、第2光学系32により形成される第2被写体像38Qは結像倍率が低い。   The first optical system 30 forms the first subject image 36Q at the first magnification in the first region 36. The second optical system forms an image of the second subject image 38Q in the second region 38 at a second magnification lower than the first magnification. That is, even if the subject is the same, the first subject image 36Q formed by the first optical system 30 has a high imaging magnification, and the second subject image 38Q formed by the second optical system 32 has a low imaging magnification.

ガイド光照射部18は、被写体を含む物品にガイド光を照射する。ガイド光により、コードの読み取り範囲がユーザにより認識される。第1光学系30と第2光学系32とでは視野が異なるので、ガイド光照射部18は、第1光学系30用のガイド光照射部18Aと第2光学系32用のガイド光照射部18Bとで構成されていてもよい。ガイド光照射部18Aは、第1光学系30の視野を示す正方形のガイド光MAを照射し、ガイド光照射部18Bは、第2光学系32の視野を示す長方形のガイド光MBを照射する。ユーザは、読み取りたいコードの形状に応じた何れかのガイド光を用いて照準を合わせばよい。例えば、ユーザは、表示部24に撮像前の被写体の画像を表示し、照準の合った時点で操作部22を操作してコードの撮像の開始を指示する。   The guide light irradiation unit 18 irradiates an article including a subject with guide light. The reading range of the code is recognized by the user by the guide light. Since the first optical system 30 and the second optical system 32 have different fields of view, the guide light irradiation unit 18 includes a guide light irradiation unit 18A for the first optical system 30 and a guide light irradiation unit 18B for the second optical system 32. And may be configured. The guide light irradiation unit 18A irradiates a square guide light MA indicating the field of view of the first optical system 30, and the guide light irradiation unit 18B irradiates a rectangular guide light MB indicating the field of view of the second optical system 32. The user only has to aim using any guide light according to the shape of the code to be read. For example, the user displays an image of the subject before imaging on the display unit 24, and operates the operation unit 22 at the point of aiming to instruct the start of code imaging.

なお、図示はしていないが、撮像素子34で撮像する際に被写体を含む物品に照明光を照射する照明部を備えていてもよい。照明光により、コードの読み取り範囲が照明される。第1光学系30と第2光学系32とでは視野が異なるので、照明部は、第1照明部と第2照明部とで構成されていてもよい。第1照明部は、第1光学系30の視野を示す正方形の領域を照明し、第2照明部は、第2光学系32の視野を示す長方形の領域を照明する。   Although not shown, an illumination unit that irradiates the article including the subject with illumination light when imaging with the imaging element 34 may be provided. The reading range of the code is illuminated by the illumination light. Since the first optical system 30 and the second optical system 32 have different fields of view, the illumination unit may be composed of a first illumination unit and a second illumination unit. The first illumination unit illuminates a square region indicating the field of view of the first optical system 30, and the second illumination unit illuminates a rectangular region indicating the field of view of the second optical system 32.

図3は本実施の形態の撮像部12の光学系の設計例を示す光軸に沿った断面図である。第1光学系30及び第2光学系32の各々は、複数のレンズを組み合わせて構成することができる。本実施に形態では、波面符号化法を用いた画像復元処理を行うために、第1光学系30には位相変調素子40が含まれている。位相変調素子40は、第1光学系30の撮像素子34側に配置されている。なお、波面符号化法を用いた画像復元処理を行わない場合は、位相変調素子40を省略してもよい。   FIG. 3 is a cross-sectional view along the optical axis showing a design example of the optical system of the imaging unit 12 of the present embodiment. Each of the first optical system 30 and the second optical system 32 can be configured by combining a plurality of lenses. In the present embodiment, the first optical system 30 includes a phase modulation element 40 in order to perform image restoration processing using the wavefront coding method. The phase modulation element 40 is disposed on the imaging element 34 side of the first optical system 30. Note that the phase modulation element 40 may be omitted when image restoration processing using the wavefront coding method is not performed.

位相変調素子40は、入射光の波面を変換する機能(位相変調機能)を有する光学素子である。位相変調素子40としては、光軸方向での厚みが変化する光学素子(例えば、3次の位相板)の他、屈折率が変化する光学素子(例えば、屈折率分布型の位相変調素子)、位相変調が可能な液晶素子(例えば、液晶空間位相変調素子)等を用いてもよい。また、レンズ表面へのコーティングにより厚みや屈折率が変化する光学素子(例えば、位相変調ハイブリッドレンズ)等を用いてもよい。   The phase modulation element 40 is an optical element having a function of converting the wavefront of incident light (phase modulation function). Examples of the phase modulation element 40 include an optical element (for example, a third-order phase plate) whose thickness varies in the optical axis direction, an optical element (for example, a refractive index distribution type phase modulation element) whose refractive index changes, A liquid crystal element capable of phase modulation (for example, a liquid crystal spatial phase modulation element) or the like may be used. Further, an optical element (for example, a phase modulation hybrid lens) whose thickness and refractive index change by coating on the lens surface may be used.

位相変調素子40により第1光学系30に入射した光の波面が変換されて、被写体までの距離が変化しても同じボケ方の画像が撮像される。また、後述する「画像復元処理」により、撮像画像に対して逆変換を施すような画像処理を行うことで合焦画像(ボケが除去された画像)が復元される。予め定めた距離範囲(読取り距離範囲)では、上記の距離に依存しない撮像と復元とが可能となり読取距離範囲が拡大する。画像復元の原理については後述する。   The wavefront of the light incident on the first optical system 30 is converted by the phase modulation element 40, and the same blurred image is captured even if the distance to the subject changes. In addition, an in-focus image (an image from which blur is removed) is restored by performing image processing for performing inverse transformation on the captured image by “image restoration processing” described later. In a predetermined distance range (reading distance range), it is possible to perform imaging and restoration independent of the above distance, and the reading distance range is expanded. The principle of image restoration will be described later.

第1光学系30は、第2光学系32より結像倍率が高い。従って、第1光学系30は、第2光学系32より焦点距離fが長く、画角が狭くなる。例えば、第1光学系30は、焦点距離f=22.8、画角=10°×10°とし、第2光学系32は、焦点距離f=4.6、画角=7°×30°とする。ここでの画角は、被写体が付加された物品に対し、垂直方向の画角と水平方向の画角との積で表される。なお、画角が大きいほど、光学系の視野が広い。   The first optical system 30 has a higher imaging magnification than the second optical system 32. Therefore, the first optical system 30 has a longer focal length f and a smaller angle of view than the second optical system 32. For example, the first optical system 30 has a focal length f = 22.8 and an angle of view = 10 ° × 10 °, and the second optical system 32 has a focal length f = 4.6, an angle of view = 7 ° × 30 °. And The angle of view here is represented by the product of the angle of view in the vertical direction and the angle of view in the horizontal direction with respect to the article to which the subject is added. The larger the angle of view, the wider the field of view of the optical system.

図4(A)及び(B)は本実施の形態の撮像部12による撮像例を示す図である。被写体を物品に付加された二次元コードQとすると、図4(A)に示すように、撮像面34Aの第1領域36に第1被写体像36Qが第1倍率で結像される。また、撮像面34Aの第2領域38には第2被写体像38Qが第1倍率より低い第2倍率で結像される。結像倍率の高い第1被写体像36Qの方が、第2被写体像38Qより二次元コードQの最小単位セルに割り当てられる画素数が多く(即ち、画素分解能が高く)、二次元コードQの読み取りが容易になる。   4A and 4B are diagrams illustrating an example of imaging by the imaging unit 12 according to the present embodiment. Assuming that the subject is a two-dimensional code Q added to the article, as shown in FIG. 4A, a first subject image 36Q is formed at a first magnification in the first region 36 of the imaging surface 34A. Further, the second subject image 38Q is formed at the second magnification lower than the first magnification in the second region 38 of the imaging surface 34A. The first subject image 36Q having a higher imaging magnification has a larger number of pixels assigned to the minimum unit cell of the two-dimensional code Q than the second subject image 38Q (that is, the pixel resolution is higher), and the two-dimensional code Q is read. Becomes easier.

一方、被写体を物品に付加された一次元コードBとすると、図4(B)に示すように、撮像面34Aの第1領域36に第1被写体像36Bが第1倍率で結像される。また、撮像面34Aの第2領域38には第2被写体像38Bが第1倍率より低い第2倍率で結像される。図示した例では、一次元コードBは長方形のバーコードである。結像倍率の低い第2被写体像38Bでは一次元コードB全体が第2領域38内に収まるので、一次元コードBを読み取ることができる。これに対して、結像倍率の高い第1被写体像36Bでは一次元コードB全体が第1領域36内には収まらないこともある。   On the other hand, when the subject is a one-dimensional code B added to the article, as shown in FIG. 4B, a first subject image 36B is formed at the first magnification in the first region 36 of the imaging surface 34A. Further, the second subject image 38B is imaged at the second magnification lower than the first magnification in the second region 38 of the imaging surface 34A. In the illustrated example, the one-dimensional code B is a rectangular barcode. In the second subject image 38B having a low imaging magnification, the entire one-dimensional code B is within the second region 38, so that the one-dimensional code B can be read. On the other hand, in the first subject image 36B having a high imaging magnification, the entire one-dimensional code B may not fit in the first region 36.

上記の通り、二次元コードQの場合は、正方形の第1領域36に高い倍率で結像された第1被写体像36Qの方が読み取りが容易であり、一次元コードBの場合は、長方形の第2領域38に低い倍率で結像された第2被写体像38Bの方が読み取りが容易である。従って、情報読取装置10の読取距離範囲に応じて、第1倍率及び第2倍率を設定することにより、1つの撮像部で一次元コード及び二次元コードの両方を読取ることができる。換言すれば、1つの撮像部に対する第1倍率及び第2倍率の設定により、一次元コード及び二次元コードの両方を読取ることができる読取距離範囲が拡大する。   As described above, in the case of the two-dimensional code Q, the first subject image 36Q imaged at a high magnification in the square first region 36 is easier to read, and in the case of the one-dimensional code B, a rectangular shape is obtained. The second subject image 38B formed on the second region 38 at a low magnification is easier to read. Therefore, by setting the first magnification and the second magnification according to the reading distance range of the information reading apparatus 10, it is possible to read both the one-dimensional code and the two-dimensional code with one imaging unit. In other words, the reading distance range in which both the one-dimensional code and the two-dimensional code can be read is expanded by setting the first magnification and the second magnification for one imaging unit.

<コード読取処理>
次に、コード読取処理について説明する。
図5は「コード読取処理」のルーチンの一例を示すフローチャートである。ユーザの操作によりコードの撮像開始の指示を受け付けると、制御装置20のCPUが「コード読取処理」の実行を開始する。制御装置20は、コード読取処理部として機能する。
<Code reading process>
Next, the code reading process will be described.
FIG. 5 is a flowchart showing an example of a “code reading process” routine. When an instruction to start code imaging is received by a user operation, the CPU of the control device 20 starts executing the “code reading process”. The control device 20 functions as a code reading processing unit.

まず、ステップ100で、画像メモリ部16から撮像された画像の画像情報(以下、「撮像画像」という。)を取得する。次に、ステップ102で、取得された撮像画像から一次元コードを読み取る「一次元コード読取処理」を実行する。即ち、一次元コードを抽出し、抽出された一次元コードを復号して復号情報を取得する。次に、ステップ104で、一次元コードが読み取られたか否かを判定する。一次元コードが読み取られた場合は、ステップ114に進む。そしてステップ114で、一次元コードの読取結果(復号情報)を出力して、ルーチンを終了する。   First, in step 100, image information of an image captured from the image memory unit 16 (hereinafter referred to as “captured image”) is acquired. Next, in step 102, a “one-dimensional code reading process” for reading a one-dimensional code from the acquired captured image is executed. That is, a one-dimensional code is extracted, and the extracted one-dimensional code is decoded to obtain decoding information. Next, in step 104, it is determined whether or not the one-dimensional code has been read. If the one-dimensional code has been read, the process proceeds to step 114. In step 114, the one-dimensional code reading result (decoding information) is output, and the routine is terminated.

一方、ステップ104で一次元コードが読み取られていない場合は、ステップ106に進む。そしてステップ106で、撮像画像に対して波面符号化法を用いた「画像復元処理」を実行する。続いて、ステップ108で、「画像復元処理」で得られた復元画像から二次元コードを読み取る「二次元コード読取処理」を実行する。即ち、二次元コードを抽出し、抽出された二次元コードを復号して復号情報を取得する。波面符号化法を用いた「画像復元処理」については後述する。   On the other hand, if the one-dimensional code has not been read in step 104, the process proceeds to step 106. In step 106, “image restoration processing” using the wavefront coding method is performed on the captured image. Subsequently, in step 108, a “two-dimensional code reading process” for reading a two-dimensional code from the restored image obtained by the “image restoration process” is executed. That is, a two-dimensional code is extracted, and the extracted two-dimensional code is decoded to obtain decoding information. “Image restoration processing” using the wavefront coding method will be described later.

次に、ステップ110で、二次元コードが読み取られたか否かを判定する。二次元コードが読み取られた場合は、ステップ116に進む。そしてステップ116で、二次元コードの読取結果(復号情報)を出力して、ルーチンを終了する。一方、ステップ110で二次元コードが読み取られていない場合は、ステップ116に進む。そしてステップ116で、コード未検出である旨を報知して、ルーチンを終了する。   Next, in step 110, it is determined whether or not the two-dimensional code has been read. If the two-dimensional code has been read, the process proceeds to step 116. In step 116, the two-dimensional code reading result (decoding information) is output, and the routine is terminated. On the other hand, if the two-dimensional code has not been read in step 110, the process proceeds to step 116. In step 116, the fact that the code has not been detected is notified, and the routine is terminated.

上記の通り、撮像画像には、正方形の第1領域に高い倍率で結像された第1被写体像と、長方形の第2領域に低い倍率で結像された第2被写体像とが含まれている。まず撮像画像から一次元コード及び二次元コードの何れか一方を読み取り、一方のコードが読み取れない場合に、撮像画像から他方のコードの読み取りを行うことで、被写体が一次元コード及び二次元コードの何れであっても、コードを読み取ることができる。   As described above, the captured image includes the first subject image formed at a high magnification in the square first region and the second subject image formed at a low magnification in the rectangular second region. Yes. First, when one of the one-dimensional code and the two-dimensional code is read from the captured image and one of the codes cannot be read, the other code is read from the captured image, so that the subject is the one-dimensional code or the two-dimensional code. In any case, the code can be read.

上記の通り、二次元コードの読み取りを行う前に撮像画像の復元処理を行う場合には、二次元コードの読み取りに要する時間は、一次元コードの読み取りに要する時間よりも長くなる。この場合は、まず撮像画像から一次元コードを読み取り、一次元コードが読み取れない場合に、撮像画像から二次元コードの読み取りを行うことで、コード読取処理に要する時間を短縮することができる。   As described above, when the captured image restoration process is performed before the two-dimensional code is read, the time required for reading the two-dimensional code is longer than the time required for reading the one-dimensional code. In this case, first, the one-dimensional code is read from the captured image, and when the one-dimensional code cannot be read, the time required for the code reading process can be shortened by reading the two-dimensional code from the captured image.

<波面符号化法による画像復元処理>
ここで、波面符号化法を用いた画像復元処理について説明する。
図6は波面符号化法による画像復元の原理を説明する説明図である。図6に示すように、被写体画像Fが位相変調素子40を含む第1光学系30により撮像画像Gに光学変換され、画像処理により復元画像Fが復元される場合について説明する(図2及び図3を参照)。
<Image restoration processing by wavefront coding method>
Here, an image restoration process using the wavefront coding method will be described.
FIG. 6 is an explanatory diagram for explaining the principle of image restoration by the wavefront coding method. As shown in FIG. 6, the first optical system 30 subject image F comprises a phase modulating element 40 is optically converted into captured image G, description will be given of a case where the image processing is restored image F R is restored (Fig. 2 and (See FIG. 3).

第1光学系30は固有の点拡がり関数(PSF:Point Spread Function)を有する。波面符号化法では、光学系の変換特性を表現するのにPSFを用いる。PSFは、光学系の点光源に対する拡散度合いを表す関数である。即ち、点光源のボケ方を表現する関数である。   The first optical system 30 has a unique point spread function (PSF). In the wavefront coding method, PSF is used to express the conversion characteristics of the optical system. PSF is a function representing the degree of diffusion of the optical system with respect to the point light source. That is, it is a function that expresses how the point light source is blurred.

本実施の形態では、PSFは距離に依存しない関数として取り扱う。なお、厳密にはPSFは点光源までの距離に応じて変化するが、読取り距離範囲内では距離に依存しない関数として取り扱うことができる。第1光学系30の固有のPSFは、予め取得されて制御装置20の記憶装置に予め記憶されている。   In the present embodiment, PSF is handled as a function that does not depend on distance. Strictly speaking, the PSF changes according to the distance to the point light source, but can be handled as a function independent of the distance within the reading distance range. The unique PSF of the first optical system 30 is acquired in advance and stored in advance in the storage device of the control device 20.

被写体画像Fから撮像画像Gへの光学変換は、下記式で表すように、PSFによる畳み込み(コンボリューション)で近似される。
G=PSF*F (*は畳み込みを表す)
The optical conversion from the subject image F to the captured image G is approximated by convolution with PSF, as represented by the following equation.
G = PSF * F (* indicates convolution)

また、撮像画像Gから復元画像Fを復元する画像処理は、下記式で表すように、PSFの逆関数(PSF)−1による畳み込み(デコンボリューション)で近似される。換言すれば、第1光学系30により行われた光伝達関数(OTF)の変更の逆変換に相当するフィルタ処理が実行される。
FR=(PSF)−1*G (*は畳み込みを表す)
The image processing of restoring the restored image F R from the captured image G, as represented by the following formula is approximated by the inverse of PSF (PSF) convolutions by a -1 (deconvolution). In other words, a filter process corresponding to the inverse transformation of the change of the optical transfer function (OTF) performed by the first optical system 30 is executed.
FR = (PSF) −1 * G (* represents convolution)

コードCが付加された対象物を撮像する場合、対象物が遠くに在るとき(遠場)には撮像領域Rの一部をコードCが占有し、対象物が近くに在るとき(近場)には撮像領域Rの略全面をコードCが占有する。以下では、撮像領域Rを画面と称する。波面符号化法を用いない場合には、遠場でも近場でも、対象物が合焦位置から離れるとボケた画像が撮像される。そのボケ方は合焦位置から対象物までの距離(ずれ量)に応じて変化する。   When imaging an object to which the code C is added, when the object is far away (far field), the code C occupies a part of the imaging region R and when the object is nearby (near) Field) occupies substantially the entire surface of the imaging region R. Hereinafter, the imaging region R is referred to as a screen. When the wavefront coding method is not used, a blurred image is captured when the object moves away from the in-focus position in both the far field and the near field. The blur method changes in accordance with the distance (shift amount) from the in-focus position to the object.

しかしながら、波面符号化法を用いた場合には、予め定めた読取り距離範囲内では、上記の光学変換により対象物までの距離によらず同じボケ方の撮像画像Gが撮像される。また、本実施の形態では、第1光学系30のPSFは距離に依存しない関数である。従って、予め定めた読取り距離範囲内では、上記の画像処理により対象物までの距離によらず撮像画像Gから合焦した復元画像Fが復元される。 However, when the wavefront coding method is used, within the predetermined reading distance range, the same blurred image G is picked up by the above optical conversion regardless of the distance to the object. In the present embodiment, the PSF of the first optical system 30 is a function that does not depend on the distance. Thus, within the reading distance a predetermined range, the restored image F R that is focused from the captured image G irrespective of the distance to the object by the image processing described above is restored.

なお、上記実施の形態で説明した情報読取装置の構成は一例であり、本発明の主旨を逸脱しない範囲内においてその構成を変更してもよいことは言うまでもない。例えば、コード読取処理において、まず撮像画像から二次元コードを読み取り、二次元コードが読み取れない場合に、撮像画像から一次元コードの読み取りを行ってもよい。また、一次元コードを読み取る一次元コードモードと二次元コードを読み取る二次元コードモードの2種類のモードを設け、ユーザが何れかのモードを選択できるようにしてもよい。   Note that the configuration of the information reading apparatus described in the above embodiment is an example, and it goes without saying that the configuration may be changed without departing from the gist of the present invention. For example, in the code reading process, a two-dimensional code may first be read from a captured image, and when the two-dimensional code cannot be read, the one-dimensional code may be read from the captured image. Also, two types of modes, a one-dimensional code mode for reading a one-dimensional code and a two-dimensional code mode for reading a two-dimensional code, may be provided so that the user can select one of the modes.

10 情報読取装置
12 撮像部
14 A/D変換部
16 画像メモリ部
18 ガイド光照射部
20 制御装置
22 操作部
24 表示部
26 通信部
28 筐体
30 第1光学系
32 第2光学系
34 撮像素子
34A 撮像面
36 第1領域
36Q 第1被写体像
36B 第1被写体像
38 第2領域
38Q 第2被写体像
38B 第2被写体像
40 位相変調素子
Q 二次元コード
B 一次元コード
C コード
f 焦点距離
F 被写体画像
復元画像
G 撮像画像
MA、MB ガイド光
R 撮像領域
DESCRIPTION OF SYMBOLS 10 Information reader 12 Image pick-up part 14 A / D conversion part 16 Image memory part 18 Guide light irradiation part 20 Control apparatus 22 Operation part 24 Display part 26 Communication part 28 Case 30 1st optical system 32 2nd optical system 34 Image pick-up element 34A Imaging surface 36 First region 36Q First subject image 36B First subject image 38 Second region 38Q Second subject image 38B Second subject image 40 Phase modulation element Q Two-dimensional code B One-dimensional code C Code f Focal length F Subject image F R restored image G captured image MA, MB guide light R image pickup area

Claims (6)

長方形の撮像面を備え、前記撮像面に結像された光像を撮像する撮像素子と、
前記撮像面の予め定めた第1領域に第1被写体像を第1倍率で結像する第1光学系と、
前記撮像面の長さ方向において前記第1領域に隣接する第2領域に第2被写体像を前記第1倍率より低い第2倍率で結像する第2光学系と、
前記第1被写体像及び前記第2被写体像を含む撮像画像から一次元コード及び二次元コードの何れか一方を読み取り、前記一方のコードが読み取れない場合に、前記撮像画像から他方のコードの読み取りを行うコード読取処理部と、
を備えた情報読取装置。
An image pickup device comprising a rectangular image pickup surface and picking up an optical image formed on the image pickup surface;
A first optical system that forms a first subject image at a first magnification in a predetermined first region of the imaging surface;
A second optical system that forms a second subject image at a second magnification lower than the first magnification in a second region adjacent to the first region in the length direction of the imaging surface;
When one of the one-dimensional code and the two-dimensional code is read from the captured image including the first subject image and the second subject image and the one code cannot be read, the other code is read from the captured image. A code reading processing unit to perform;
An information reading apparatus comprising:
前記コード読取処理部が、
前記撮像画像から一次元コードが読み取れない場合に、前記撮像画像から二次元コードの読み取りを行う、
請求項1に記載の情報読取装置。
The code reading processing unit
When a one-dimensional code cannot be read from the captured image, a two-dimensional code is read from the captured image.
The information reading apparatus according to claim 1.
前記第1領域が前記二次元コードと相似した形状であり、前記第2領域が前記一次元コードと相似した形状である、請求項1又は請求項2に記載の情報読取装置。   The information reading apparatus according to claim 1, wherein the first region has a shape similar to the two-dimensional code, and the second region has a shape similar to the one-dimensional code. 前記第1領域と前記二次元コードとが正方形状であり、前記第2領域と前記一次元コードとが長方形である、請求項1から請求項3までの何れか1項に記載の情報読取装置。   4. The information reading apparatus according to claim 1, wherein the first area and the two-dimensional code are square, and the second area and the one-dimensional code are rectangular. 5. . 前記撮像素子が、n×(n+m)個の受光素子がマトリクス状に配列された撮像面を有し(nは2以上の整数であり、mは1以上の整数であり、n>mという関係を有する。)、
前記第1領域が、(n×n)個の受光素子がマトリクス状に配列された正方形状の領域であり、
前記第2領域が、(n×m)個の受光素子がマトリクス状に配列された長方形状の領域である、
請求項1から請求項4までの何れか1項に記載の情報読取装置。
The imaging element has an imaging surface in which n × (n + m) light receiving elements are arranged in a matrix (n is an integer of 2 or more, m is an integer of 1 or more, and n> m ),
The first region is a square region in which (n × n) light receiving elements are arranged in a matrix,
The second region is a rectangular region in which (n × m) light receiving elements are arranged in a matrix.
The information reading apparatus according to any one of claims 1 to 4.
前記第1光学系が、入射光の波面を変換する位相変調素子を備えることで固有の点拡がり関数を有し、
前記コード読取処理部が、二次元コードの読み取りを行う前に、前記固有の点拡がり関数の逆関数を用いて前記撮像画像の復元処理を行い、復元された復元画像から二次元コードの読み取りを行う、
請求項1から請求項5までの何れか1項に記載の情報読取装置。
The first optical system has a unique point spread function by including a phase modulation element that converts a wavefront of incident light;
Before reading the two-dimensional code, the code reading processing unit performs a restoration process of the captured image using an inverse function of the inherent point spread function, and reads the two-dimensional code from the restored restored image. Do,
The information reading apparatus according to any one of claims 1 to 5.
JP2014172019A 2014-08-26 2014-08-26 Information reader Active JP6310366B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014172019A JP6310366B2 (en) 2014-08-26 2014-08-26 Information reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014172019A JP6310366B2 (en) 2014-08-26 2014-08-26 Information reader

Publications (2)

Publication Number Publication Date
JP2016045895A true JP2016045895A (en) 2016-04-04
JP6310366B2 JP6310366B2 (en) 2018-04-11

Family

ID=55636345

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014172019A Active JP6310366B2 (en) 2014-08-26 2014-08-26 Information reader

Country Status (1)

Country Link
JP (1) JP6310366B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10334172A (en) * 1997-05-30 1998-12-18 Tec Corp Symbol reader
JP2004056696A (en) * 2002-07-24 2004-02-19 Sharp Corp Portable terminal, information reading program and recording medium with the program recorded thereon

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10334172A (en) * 1997-05-30 1998-12-18 Tec Corp Symbol reader
JP2004056696A (en) * 2002-07-24 2004-02-19 Sharp Corp Portable terminal, information reading program and recording medium with the program recorded thereon

Also Published As

Publication number Publication date
JP6310366B2 (en) 2018-04-11

Similar Documents

Publication Publication Date Title
CN105404838B (en) Variable depth of field bar code scanner
US7978249B2 (en) Image capturing device and auto-focus method for same
JP4743553B2 (en) Lens unit, imaging device, and electronic device
US20070279618A1 (en) Imaging Apparatus And Image Improving Method
US8605192B2 (en) Imaging apparatus and electronic device including an imaging apparatus
JP6017347B2 (en) Code reader
CA2859783A1 (en) Imaging device having light field image sensor
CN104580877B (en) The device and method that image obtains
EP2533198A1 (en) Imaging device and method, and image processing method for imaging device
EP2682799A1 (en) Imaging device, semiconductor integrated circuit, and imaging method
JP2008211679A (en) Imaging apparatus and method thereof
JP2009181024A (en) Focusing device and optical equipment
KR101889886B1 (en) Depth information generating method and apparatus
JP2006311473A (en) Imaging device and imaging method
JP6557499B2 (en) FOCUS DETECTION DEVICE, ITS CONTROL METHOD, IMAGING DEVICE, PROGRAM, AND STORAGE MEDIUM
JPWO2011132280A1 (en) Imaging apparatus and imaging method
JP6310366B2 (en) Information reader
CN108573183B (en) Code reader with extended read range
JP2009033607A (en) Imaging apparatus and image processing method
JP6256132B2 (en) Imaging system
KR101082048B1 (en) Estimation method of auto focus search range of camera module
US20170366738A1 (en) Information processing apparatus, information processing method, and storage medium
KR101382921B1 (en) Camera, image sensor thereof, and driving method thereof
JP6618575B2 (en) Image processing apparatus, imaging apparatus, lens apparatus, and image processing method
JP2009181367A (en) Imaging apparatus and electronic device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170703

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180214

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20180306

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180316

R150 Certificate of patent or registration of utility model

Ref document number: 6310366

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250