JP2012181757A - Optical information reader - Google Patents

Optical information reader Download PDF

Info

Publication number
JP2012181757A
JP2012181757A JP2011045345A JP2011045345A JP2012181757A JP 2012181757 A JP2012181757 A JP 2012181757A JP 2011045345 A JP2011045345 A JP 2011045345A JP 2011045345 A JP2011045345 A JP 2011045345A JP 2012181757 A JP2012181757 A JP 2012181757A
Authority
JP
Japan
Prior art keywords
image
reading
imaging
optical information
distance
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
JP2011045345A
Other languages
Japanese (ja)
Other versions
JP5533739B2 (en
Inventor
Takeshi Fujikado
岳史 藤角
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 Wave Inc
Original Assignee
Denso Wave 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 Wave Inc filed Critical Denso Wave Inc
Priority to JP2011045345A priority Critical patent/JP5533739B2/en
Publication of JP2012181757A publication Critical patent/JP2012181757A/en
Application granted granted Critical
Publication of JP5533739B2 publication Critical patent/JP5533739B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Measurement Of Optical Distance (AREA)
  • Optical Radar Systems And Details Thereof (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an optical information reader having improved reading speed.SOLUTION: An optical information reader measures a distance between the reader and plural points of an object to be imaged (step S1), and divides an image obtained by a light-receiving sensor into plural areas on the basis of the measured distances (step S2). Then, the reader selects a reading area from the divided areas (step S3). Since the image is divided into the plural areas on the basis of the distances, there is no effect of various intensity changes of the object to be imaged other than an intensity change due to a QR code(R), as distinct from the case where intensity changes and edges are used for division into areas. This enables accurate selection of an area including a QR code and reduces the possibility of re-performing reading processing after the selection, thereby improves reading speed. The improvement of the area selection accuracy increases information reading accuracy.

Description

本発明は、情報コードを光学的に読み取る光学情報読み取り装置に関し、特に、光学情報読み取り装置の読み取り速度を向上させる技術に関する。   The present invention relates to an optical information reader that optically reads an information code, and more particularly to a technique for improving the reading speed of the optical information reader.

光学情報読み取り装置の読み取り速度を向上させる技術として、たとえば、特許文献1、2記載の技術が知られている。特許文献1では、二次元コード画像の輝度を二値化し、二値化した画像の外周に存在する複数の黒セルを接続して包絡線を作成し、この包絡線に基づいて検査領域を限定することで、読み取り速度を向上させている。   As a technique for improving the reading speed of the optical information reading apparatus, for example, techniques described in Patent Documents 1 and 2 are known. In Patent Document 1, the luminance of a two-dimensional code image is binarized, an envelope is created by connecting a plurality of black cells existing on the outer periphery of the binarized image, and an inspection region is limited based on the envelope By doing so, the reading speed is improved.

特許文献2では、画像の輝度を二値化し、白画素が二つ以上続いた部分を余白部分とし、その余白部分に基づいて二次元コード候補領域を決定する。そして、以後の処理を、二次元コード候補領域に限定することで、読み取り速度を向上させている。   In Patent Document 2, the luminance of an image is binarized, a portion where two or more white pixels continue is set as a blank portion, and a two-dimensional code candidate region is determined based on the blank portion. The subsequent processing is limited to the two-dimensional code candidate region, thereby improving the reading speed.

特開2004−362053号公報Japanese Patent Laid-Open No. 2004-362053 国際公開第2005/086074号International Publication No. 2005/086074

特許文献1、2に開示されている技術は、画像の輝度変化から、コードの特徴やコードの周囲の特徴を検出することで、取り込んだ画像のどの範囲にコードがあるかを決定して、その後の処理を行う画像範囲を限定する技術である。よって、画像からコードの特徴やコードの周囲の特徴を検出することができなければ、その後の処理を行う画像範囲を限定することができない。   The techniques disclosed in Patent Documents 1 and 2 determine the range of the captured image by detecting the code features and the features around the code from the luminance change of the image, This is a technique for limiting the image range for subsequent processing. Therefore, unless the feature of the code and the surrounding features of the code can be detected from the image, the image range for the subsequent processing cannot be limited.

しかし、撮像対象物によっては、情報コード以外の箇所で輝度変化が生じることもある。例えば、撮像対象物が基板である場合には、基板上に、情報コード以外にも種々のパターンや種々の凹凸があり、それら種々のパターンや凹凸により輝度変化が生じるので、輝度変化から、コードの特徴やコードの周囲の特徴を検出することが困難である場合も多い。従って、従来技術では、情報コードを含む領域を適切に絞り込むことができず、その結果、読み取りに時間がかかってしまう場合もあった。   However, depending on the object to be imaged, a luminance change may occur at a place other than the information code. For example, when the object to be imaged is a substrate, there are various patterns and various irregularities in addition to the information code on the substrate, and the luminance changes due to these various patterns and irregularities. In many cases, it is difficult to detect the features and the features around the code. Therefore, in the prior art, the area including the information code cannot be appropriately narrowed down, and as a result, it may take time to read.

本発明は、この事情に基づいて成されたものであり、その目的とするところは、読み取り速度を向上させることができる光学情報読み取り装置を提供することにある。   The present invention has been made based on this situation, and an object of the present invention is to provide an optical information reading apparatus capable of improving the reading speed.

その目的を達成するための請求項1記載の発明は、情報コードが示された撮像対象物を撮像する撮像手段と、撮像手段が撮像した画像から読み取り領域を絞り込み、その読み取り領域の画像に対して読み取り処理を行う読み取り処理手段とを備え、前記読み取り処理により情報コードから情報を読み取る光学情報読み取り装置であって、この光学情報読み取り装置から前記撮像対象物の複数の点までの距離を推定する距離推定手段と、前記距離推定手段が推定した距離に基づいて、前記撮像手段が撮像した画像を複数の領域に分割する画像領域分割手段と、その画像領域分割手段が分割した複数の領域から、前記読み取り領域を選択する領域選択手段とを含むことを特徴とする。   In order to achieve the object, the invention according to claim 1 is characterized in that an image pickup unit for picking up an image pickup object indicated by an information code, a reading area from the image picked up by the image pickup means, An optical information reading device that reads information from an information code by the reading processing, and estimates distances from the optical information reading device to a plurality of points of the imaging object. Based on the distance estimation means, the image estimated by the distance estimation means, an image area dividing means for dividing the image captured by the imaging means into a plurality of areas, and a plurality of areas divided by the image area dividing means, And an area selection means for selecting the reading area.

このように、本発明によれば、光学情報読み取り装置から撮像対象物の複数の点までの距離を推定し、推定した距離に基づいて、撮像手段が撮像した画像を複数の領域に分割する。距離により画像を複数の領域に分割することから、輝度変化に基づいて領域を分割する場合と異なり、情報コードに起因する輝度変化以外の種々の輝度変化が撮像対象物にあってもその影響を受けない。よって、情報コードを含む領域に精度よく絞り込むことができ、その後の読み取り処理をやり直す場合が低下するので、読み取り速度が向上する。また、領域の絞り込みの精度が向上することから、情報の読み取り精度も向上する。   As described above, according to the present invention, the distance from the optical information reading device to a plurality of points of the imaging target is estimated, and the image captured by the imaging unit is divided into a plurality of regions based on the estimated distance. Since the image is divided into a plurality of regions according to the distance, unlike the case where the region is divided based on the luminance change, even if various luminance changes other than the luminance change caused by the information code are present on the imaging object, the influence is affected. I do not receive it. Therefore, the area including the information code can be narrowed down with high accuracy, and the case where the subsequent reading process is performed again is reduced, so that the reading speed is improved. In addition, since the accuracy of narrowing down the area is improved, the information reading accuracy is also improved.

請求項2記載の発明では、距離推定手段が推定した読み取り領域内の複数の点までの距離に基づいて、読み取り領域の画像を、その読み取り領域が、撮像手段の光軸に垂直な平面であるとした場合の画像に補正する画像補正手段を備え、読み取り手段は、前記画像補正手段が補正した画像を用いて読み取り処理を行う。   According to the second aspect of the present invention, based on the distances to a plurality of points in the reading area estimated by the distance estimating means, the image of the reading area is a plane perpendicular to the optical axis of the imaging means. And an image correcting unit that corrects the image in the case where the image is corrected, and the reading unit performs a reading process using the image corrected by the image correcting unit.

この請求項2記載の発明は、距離推定手段により距離が推定できることを活用して、読み取り領域の画像を補正するものである。撮像対象物の読み取り領域は平面であるとは限らない。読み取り領域が平面ではない場合(すなわち、湾曲している場合)には、その読み取り領域に示されている情報コードの画像には歪みが生じる。また、光学情報読み取り装置に対する撮像対象物の撮像角度は撮像の都度変化する可能性もあり、撮像角度の変化によっても、情報コードの画像には歪みが生じる。   The invention according to claim 2 corrects the image in the reading region by utilizing the fact that the distance can be estimated by the distance estimating means. The reading area of the imaging object is not necessarily a flat surface. When the reading area is not flat (that is, when the reading area is curved), distortion occurs in the image of the information code shown in the reading area. In addition, the imaging angle of the imaging target with respect to the optical information reading device may change every time the imaging is performed, and the information code image is also distorted by the change in the imaging angle.

しかし、本発明では、読み取り領域の画像を、その読み取り領域が、撮像手段の光軸に垂直な平面であるとした場合の画像に補正することから、読み取り領域が傾いていたり、また、読み取り領域が湾曲していても、それら傾きや湾曲が補正される。よって、読み取り領域の画像に含まれている情報コードの歪みも補正されるので、情報コードの読み取り精度が向上する。   However, in the present invention, since the image of the reading area is corrected to an image when the reading area is a plane perpendicular to the optical axis of the imaging means, the reading area is inclined or the reading area Even if is curved, the inclination and curvature are corrected. Therefore, since the distortion of the information code included in the image of the reading area is also corrected, the reading accuracy of the information code is improved.

請求項3記載の発明は、距離推定手段が推定した読み取り領域内の複数の点までの距離と、予め記憶されている撮像手段の被写界深度とに基づいて、読み取り領域の画像のボケ量を推定するボケ量推定手段と、そのボケ量推定手段が推定したボケ量に基づいて、前記読み取り領域の画像のボケを補正するボケ補正手段とを備え、読み取り手段は、ボケ補正手段が補正した画像を用いて読み取り処理を行う。   The invention according to claim 3 is based on the distance to a plurality of points in the reading area estimated by the distance estimating means and the depth of field of the imaging means stored in advance, and the amount of blur of the image in the reading area And a blur correction unit that corrects the blur of the image in the reading area based on the blur amount estimated by the blur amount estimation unit. The reading unit is corrected by the blur correction unit. Read processing is performed using the image.

このように、推定したボケ量に基づいて、読み取り領域の画像のボケを補正するようにすれば、ボケを精度よく補正することができる。よって、情報コードの読み取り精度が向上する。なお、請求項2の画像補正手段とこの請求項3のボケ補正手段の両方を、読み取り領域の画像に対して行うこともできる。その場合、いずれか一方の補正手段により補正された読み取り領域の画像に対して、他方の補正手段を行う。   As described above, if the blur of the image in the reading area is corrected based on the estimated blur amount, the blur can be corrected with high accuracy. Therefore, the reading accuracy of the information code is improved. It should be noted that both the image correction means of claim 2 and the blur correction means of claim 3 can be performed on the image in the reading area. In that case, the other correction means is performed on the image in the reading area corrected by one of the correction means.

ここで、距離推定手段は、請求項4〜6記載のようにして、撮像対象物の複数の点までの距離を推定することができる。請求項4では、光軸が互いに異なるとともに、互いの距離が既知の複数の撮像手段を備え、距離推定手段は、それら複数の撮像手段が撮像した画像に基づいてステレオ法により撮像対象物の複数の点までの距離を推定する。請求項5では、光学情報読み取り装置は移動可能になっており、また、この光学情報読み取り装置の位置を検出する位置検出手段を備える。そして、距離推定手段は、互いに異なる複数の位置において撮像手段が撮像した撮像対象物の画像およびその画像を撮像したときに位置検出手段が検出した光学情報読み取り装置の位置に基づいて、ステレオ法により撮像対象物の複数の点までの距離を推定する。請求項6では、レーザ光を照射方向を制御しつつ照射するとともに、レーザ光が外部の物体に反射した反射光を受光するレーザ光送受手段を備え、距離推定手段は、レーザ光送受手段がレーザ光を照射してから反射光を受光するまでの時間差とレーザ光の照射方向とに基づいて、撮像対象物の複数の点までの距離を推定する。   Here, the distance estimation means can estimate distances to a plurality of points of the imaging object as described in claims 4 to 6. According to a fourth aspect of the present invention, a plurality of imaging units having different optical axes and known mutual distances are provided, and the distance estimation unit includes a plurality of imaging targets by a stereo method based on images captured by the plurality of imaging units. Estimate the distance to the point. According to a fifth aspect of the present invention, the optical information reading device is movable, and is provided with position detecting means for detecting the position of the optical information reading device. Then, the distance estimation means uses a stereo method based on the image of the object to be imaged captured by the imaging means at a plurality of different positions and the position of the optical information reading device detected by the position detection means when the image is captured. The distances to a plurality of points on the imaging target are estimated. According to a sixth aspect of the present invention, the laser light transmitting / receiving means for irradiating the laser light while controlling the irradiation direction and receiving the reflected light reflected by the external object is provided. Based on the time difference from the irradiation of the light to the reception of the reflected light and the irradiation direction of the laser light, the distance to a plurality of points on the imaging object is estimated.

光学情報読み取り装置のハウジング等の構成概要を示す部分縦断面図である。It is a fragmentary longitudinal cross-section which shows the structure outline | summary of the housing etc. of an optical information reader. 図1に示す光学情報読み取り装置中の光学系のA矢視図である。It is an A arrow view of the optical system in the optical information reading apparatus shown in FIG. 光学情報読み取り装置の回路部の構成概要を示すブロック図である。It is a block diagram which shows the structure outline | summary of the circuit part of an optical information reader. 2個の受光センサ23A、23Bの撮像エリアの重なりを示す図である。It is a figure which shows the overlap of the imaging area of two light reception sensors 23A and 23B. 制御回路40が実行する処理を示すフローチャートである。3 is a flowchart showing processing executed by a control circuit 40. 受光センサ23A、23Bの画像信号が示す画像の一部を例示する図である。It is a figure which illustrates a part of image which the image signal of light receiving sensor 23A, 23B shows. 図6の円柱60を含む画像を複数の面に分割した図である。It is the figure which divided | segmented the image containing the cylinder 60 of FIG. 6 into the several surface. 円柱60と背景70とが領域として設定されたことを示す図である。It is a figure which shows that the cylinder 60 and the background 70 were set as an area | region. 光学情報読み取り装置10の中心軸XCに対して円柱60が傾いている状態で、受光センサ23A、23Bにより撮像された画像の一部の例である。This is an example of a part of an image captured by the light receiving sensors 23A and 23B in a state where the cylinder 60 is inclined with respect to the central axis XC of the optical information reading device 10. 図9の画像をもとにステップS1、S2の処理を行って得られた面を示す図である。It is a figure which shows the surface obtained by performing the process of step S1, S2 based on the image of FIG. 円柱60が傾いている場合にも、円柱60と背景70とが領域として設定されたことを示す図である。It is a figure which shows that the cylinder 60 and the background 70 were set as an area | region also when the cylinder 60 inclines. 図5のステップS8の処理を説明する図であって、撮像対象物Rが円柱60である場合の例である。FIG. 6 is a diagram for explaining the processing in step S <b> 8 in FIG. 5, and is an example when the imaging target R is a cylinder 60. 図5のステップS8の処理を説明する図であって、撮像対象物Rが直方体62である場合の例である。FIG. 6 is a diagram for explaining the processing in step S8 in FIG. 5, and is an example in the case where the imaging target R is a rectangular parallelepiped 62.

以下、本発明の光学情報読み取り装置を、QRコード(登録商標)用であって、携帯型の光学情報読み取り装置に適用した実施形態について、図を参照して説明する。まず、本実施形態に係る光学情報読み取り装置10の構成概要を図1〜図3に基づいて説明する。図1は、光学情報読み取り装置10のハウジング等の構成概要を示す部分縦断面図であり、図2は、図1に示す光学情報読み取り装置中の光学系のA矢視図であり、図3は、光学情報読み取り装置10の回路部20の構成概要を示すブロック図である。   Hereinafter, an embodiment in which the optical information reading device of the present invention is applied to a portable optical information reading device for QR code (registered trademark) will be described with reference to the drawings. First, an outline of the configuration of the optical information reading apparatus 10 according to the present embodiment will be described with reference to FIGS. 1 is a partial longitudinal sectional view showing an outline of the configuration of a housing and the like of the optical information reading device 10, and FIG. 2 is a view taken along the arrow A of the optical system in the optical information reading device shown in FIG. FIG. 2 is a block diagram illustrating a schematic configuration of a circuit unit 20 of the optical information reading apparatus 10.

図1に示すように、QRコードQを読み取る光学情報読み取り装置10は、縦長のほぼ矩形箱状なすハウジング11を備える。ハウジング11は、例えば、ABS樹脂等の合成樹脂からなる成形部品で、その一端側に読取口11aを備えている。この読取口11aは、図2中に示す2個の受光センサ23A、23Bに入射する入射光を導入可能な開口部である。図1に示すようにハウジング11の他端側には、二次電池49が収容されている。ハウジング11の表面側には液晶表示器46を取付可能な開口部も形成されており、光学情報読み取り装置10の使用者が液晶表示器46に表示する表示内容を視覚的に把握可能に構成してある。ハウジング11の内部には、後述する回路部20が収容されている。なお、図1には、回路部20を構成するプリント配線板15、16が図示されている。   As shown in FIG. 1, an optical information reading apparatus 10 that reads a QR code Q includes a housing 11 that is a vertically long, substantially rectangular box. The housing 11 is a molded part made of a synthetic resin such as ABS resin, and has a reading port 11a on one end side thereof. The reading port 11a is an opening through which incident light incident on the two light receiving sensors 23A and 23B shown in FIG. 2 can be introduced. As shown in FIG. 1, a secondary battery 49 is accommodated on the other end side of the housing 11. An opening to which the liquid crystal display 46 can be attached is also formed on the surface side of the housing 11 so that the user of the optical information reading apparatus 10 can visually grasp the display contents displayed on the liquid crystal display 46. It is. A circuit unit 20 described later is accommodated in the housing 11. In FIG. 1, printed wiring boards 15 and 16 constituting the circuit unit 20 are illustrated.

図3に示すように、回路部20は、主に、一対の赤色発光ダイオード21及び集光レンズ52、受光センサ23A、23B、結像レンズ27A、27B等の光学系と、メモリ35、制御回路40、操作スイッチ12、14、液晶表示器46等のマイクロコンピュータ(以下「マイコン」という)系と、から構成されており、前述したプリント配線板15、16に実装あるいはハウジング11内に内装されている。   As shown in FIG. 3, the circuit unit 20 mainly includes an optical system such as a pair of red light emitting diodes 21 and a condensing lens 52, light receiving sensors 23A and 23B, and imaging lenses 27A and 27B, a memory 35, and a control circuit. 40, operation switches 12 and 14, and a microcomputer (hereinafter referred to as “microcomputer”) system such as a liquid crystal display 46, which are mounted on the above-described printed wiring boards 15 and 16 or housed in the housing 11. Yes.

マイコン系の構成概要を説明する。マイコン系は、増幅回路31A、31B、A/D変換回路33A、33B、メモリ35、アドレス発生回路36A、36B、同期信号発生回路38A、38B、制御回路40、操作スイッチ12、14、LED43、ブザー44、液晶表示器46、通信インタフェース48等から構成されている。このマイコン系は、その名の通り、マイコン(情報処理装置)として機能し得る制御回路40およびメモリ35を中心に構成されるもので、前述した光学系によって撮像されたコード像等の画像信号をハードウェア的およびソフトウェア的に信号処理し得るものである。また制御回路40は、当該光学情報読み取り装置10の全体システムに関する制御も行っている。   An outline of the configuration of the microcomputer system will be described. The microcomputer system includes amplification circuits 31A, 31B, A / D conversion circuits 33A, 33B, memory 35, address generation circuits 36A, 36B, synchronization signal generation circuits 38A, 38B, control circuit 40, operation switches 12, 14, LED 43, buzzer. 44, a liquid crystal display 46, a communication interface 48, and the like. As the name suggests, this microcomputer system is composed mainly of a control circuit 40 and a memory 35 that can function as a microcomputer (information processing device). Image signals such as code images captured by the optical system described above are obtained. It can perform signal processing in terms of hardware and software. The control circuit 40 also performs control related to the entire system of the optical information reading apparatus 10.

光学系の受光センサ23A、23Bから出力される画像信号(アナログ信号)は、それぞれ増幅回路31A、31Bに入力されることで所定ゲインで増幅された後、A/D変換回路33A、33Bに入力されると、アナログ信号からディジタル信号に変換される。そして、ディジタル化された画像信号はメモリ35に入力されて格納される。なお、同期信号発生回路38A、38Bは、受光センサ23A、23Bおよびアドレス発生回路36A、36Bに対する同期信号を発生可能に構成されており、アドレス発生回路36A、36Bは、この同期信号発生回路38A、38Bから供給される同期信号に基づいて、メモリ35への画像信号の格納アドレスを発生させている。   Image signals (analog signals) output from the light receiving sensors 23A and 23B of the optical system are respectively input to the amplifier circuits 31A and 31B and amplified by a predetermined gain, and then input to the A / D conversion circuits 33A and 33B. Then, the analog signal is converted into a digital signal. The digitized image signal is input to the memory 35 and stored. The synchronization signal generation circuits 38A and 38B are configured to be able to generate synchronization signals for the light receiving sensors 23A and 23B and the address generation circuits 36A and 36B. The address generation circuits 36A and 36B include the synchronization signal generation circuit 38A, The storage address of the image signal in the memory 35 is generated based on the synchronization signal supplied from 38B.

制御回路40は、光学情報読み取り装置10全体を制御可能なマイコンで、CPU、システムバス、入出力インタフェース等からなるもので、メモリ35とともに情報処理装置を構成し得るもので情報処理機能を有する。本実施形態における制御回路40の具体的な情報処理機能については後述する。また、この制御回路40は、内蔵された入出力インタフェースを介して種々の入出力装置(周辺装置)と接続可能に構成されており、本施形態では、電源スイッチ41、操作スイッチ12、14、LED43、ブザー44、液晶表示器46、通信インタフェース48等が接続されている。   The control circuit 40 is a microcomputer that can control the entire optical information reading apparatus 10 and includes a CPU, a system bus, an input / output interface, and the like. A specific information processing function of the control circuit 40 in this embodiment will be described later. In addition, the control circuit 40 is configured to be connectable to various input / output devices (peripheral devices) via a built-in input / output interface. In this embodiment, the power switch 41, the operation switches 12, 14, An LED 43, a buzzer 44, a liquid crystal display 46, a communication interface 48, and the like are connected.

光学系を構成する赤色発光ダイオード21は、照明光Lfを照射可能な光照射器である。この赤色発光ダイオード21からの照明光Lfは、拡散レンズと凸レンズとを組み合わせた集光レンズ52により集光される。また、本実施形態では、受光センサ23A、23Bを挟んだ両側に赤色発光ダイオード21が設けられており、ハウジング11の読取口11aを介して撮像対象物Rに向けて照明光Lfを照射可能に構成されている。なお、この撮像対象物Rには、二次元情報コードであるQRコードQが示されている。このQRコードQは、撮像対象物Rに貼りつけられていてもよいが、以下の説明では、QRコードQは刻印により形成されているとする。   The red light emitting diode 21 constituting the optical system is a light irradiator capable of irradiating the illumination light Lf. The illumination light Lf from the red light emitting diode 21 is condensed by a condenser lens 52 that is a combination of a diffusion lens and a convex lens. In the present embodiment, the red light emitting diodes 21 are provided on both sides of the light receiving sensors 23A and 23B, and the illumination light Lf can be irradiated toward the imaging target R through the reading port 11a of the housing 11. It is configured. The imaging object R is shown with a QR code Q that is a two-dimensional information code. The QR code Q may be affixed to the imaging target R, but in the following description, it is assumed that the QR code Q is formed by engraving.

受光センサ23A、23Bは、撮像対象物RやQRコードQに照射されて反射した反射光Lrを結像レンズ27A、27Bを介して受光可能に構成されるもので、例えば、C−MOSやCCD等の固体撮像素子から成る二次元イメージセンサ(すなわちエリアセンサ)により構成されている。この受光センサ23A、23Bは特許請求の範囲の画像取り込み手段に相当する。   The light receiving sensors 23A and 23B are configured to be able to receive the reflected light Lr irradiated and reflected by the imaging object R and the QR code Q via the imaging lenses 27A and 27B. It is comprised by the two-dimensional image sensor (namely, area sensor) which consists of solid-state image sensors, such as. The light receiving sensors 23A and 23B correspond to image capturing means in claims.

結像レンズ27A、27Bは、外部から読取口11aを介して入射する入射光を集光して受光センサ23A、23Bの受光面24A、24Bに像を結像可能な結像光学系として機能するもので、例えば、鏡筒とこの鏡筒内に収容される複数の集光レンズとにより構成されている。   The imaging lenses 27A and 27B function as an imaging optical system capable of condensing incident light incident from the outside through the reading port 11a and forming an image on the light receiving surfaces 24A and 24B of the light receiving sensors 23A and 23B. For example, it is composed of a lens barrel and a plurality of condensing lenses housed in the lens barrel.

図2に示すように、2個の受光センサ23A、23Bは、それぞれの撮像エリアの中心軸XA、XBが互いに平行である。また、これら2個の受光センサ23A、23Bは、上記2つの中心軸XA、XBと直交する共通の線分VPを含む同一の仮想平面(線分VPに沿って図から直立する仮想平面)上に配置してある。また、2個の受光センサ23A、23Bは、撮像エリアの中心軸XA、XBが距離d1分離れるようにプリント配線板15上に取り付けられている。また、2個の受光センサ23A、23Bの撮像エリアの中心軸XA、XBと、結像レンズ27A、27Bの中心軸Xa、Xbとをずらして組み付けている。このように組み付けることで、当該2個の受光センサ23A、23Bの撮像エリアは、一定距離D1において、図4に示すように互いに重なっている。なお、これら2個の受光センサ23A、23B間の距離として、上記距離d1がメモリ35に記憶されている。   As shown in FIG. 2, in the two light receiving sensors 23A and 23B, the central axes XA and XB of the respective imaging areas are parallel to each other. The two light receiving sensors 23A and 23B are on the same virtual plane (a virtual plane upright from the drawing along the line segment VP) including the common line segment VP orthogonal to the two central axes XA and XB. It is arranged in. The two light receiving sensors 23A and 23B are mounted on the printed wiring board 15 so that the center axes XA and XB of the imaging area are separated by a distance d1. Further, the center axes XA and XB of the imaging areas of the two light receiving sensors 23A and 23B and the center axes Xa and Xb of the imaging lenses 27A and 27B are assembled in a shifted manner. By assembling in this way, the imaging areas of the two light receiving sensors 23A and 23B overlap each other at a constant distance D1, as shown in FIG. The distance d1 is stored in the memory 35 as the distance between the two light receiving sensors 23A and 23B.

図5は制御回路40が実行する処理を示すフローチャートである。次に、この図5を用いて、制御回路40が行う処理ついて説明する。この図5に示す処理は、露光および画像取り込みに続いて実行する。露光は、操作スイッチ12、14の操作によりトリガ信号が入力されたことに基づいて実行するようになっており、露光により、2つの受光センサ23A、23Bは同時に露光され、続いて、受光センサ23A、23Bからの画像信号が、増幅回路31、A/D変換回路33を介してメモリ35に格納される。その後、ステップS1を実行する。   FIG. 5 is a flowchart showing a process executed by the control circuit 40. Next, processing performed by the control circuit 40 will be described with reference to FIG. The processing shown in FIG. 5 is executed following exposure and image capture. The exposure is executed based on the input of the trigger signal by the operation of the operation switches 12 and 14, and the two light receiving sensors 23A and 23B are exposed simultaneously by the exposure, and then the light receiving sensor 23A. , 23B are stored in the memory 35 via the amplifier circuit 31 and the A / D conversion circuit 33. Thereafter, Step S1 is executed.

ステップS1は特許請求の範囲の距離推定手段に相当する処理であり、メモリ35から、2つの受光センサ23A、23Bの全画素の画像信号をそれぞれ取得し、取得した画像信号に基づいてステレオ法により、光学情報読み取り装置10から撮像対象物Rまでの距離を算出する。   Step S1 is a process corresponding to the distance estimation means in the claims. The image signals of all the pixels of the two light receiving sensors 23A and 23B are respectively acquired from the memory 35, and the stereo method is used based on the acquired image signals. Then, the distance from the optical information reader 10 to the imaging object R is calculated.

より詳しくは、エッジ検出処理や輝度に基づいて、受光センサ23Aの画像信号から特徴を検出する。同様に、受光センサ23Bの画像信号からも特徴を検出する。図6には、受光センサ23A、23Bの画像信号が示す画像の一部を例示する。図6(A)は受光センサ23Aの画像信号が示す画像の一部であり、撮像対象物Rである円柱60の中央に刻印によりQRコードQが示されている画像である。図6(B)は受光センサ23Bの画像信号が示す画像の一部であって、図6(A)と同じ部材の画像である。このステップS1では、この図6(A)、(B)に例示した画像に対して、特徴を検出するために、エッジ検出処理等を行う。続いて、エッジや輝度に基づいて、たとえば面積相関法等のステレオマッチング手法により、両画像信号から検出した特徴を対応させる。そして、対応させた特徴の画像上の位置により、結像レンズ27A、27Bの光軸Xa、Xbに対するその特徴までの角度をそれぞれ決定する。続いて、それらの角度と、受光センサ23A、23B間の距離d1とから、三角測量の原理により、光学情報読み取り装置10から撮像対象物Rまでの距離を算出する。なお、ここでの距離は、各受光センサ23A、23Bから撮像対象物Rまでの2つの距離が算出可能である。これら2つの距離のうち、以下では、読み取り処理に用いる画像と同じ側の距離を用いる。   More specifically, the feature is detected from the image signal of the light receiving sensor 23A based on edge detection processing and luminance. Similarly, the feature is detected from the image signal of the light receiving sensor 23B. FIG. 6 illustrates a part of an image indicated by the image signals of the light receiving sensors 23A and 23B. FIG. 6A is a part of an image indicated by the image signal of the light receiving sensor 23A, and is an image in which a QR code Q is indicated by marking at the center of a cylinder 60 that is the imaging target R. FIG. 6B is a part of an image indicated by the image signal of the light receiving sensor 23B, and is an image of the same member as that in FIG. In step S1, edge detection processing or the like is performed on the images illustrated in FIGS. 6A and 6B in order to detect features. Subsequently, the features detected from both image signals are made to correspond to each other by a stereo matching method such as an area correlation method based on the edge and luminance. Then, the angles to the features of the imaging lenses 27A and 27B with respect to the optical axes Xa and Xb are determined based on the positions of the corresponding features on the image. Subsequently, the distance from the optical information reading device 10 to the imaging target R is calculated from these angles and the distance d1 between the light receiving sensors 23A and 23B by the principle of triangulation. Note that two distances from the respective light receiving sensors 23A and 23B to the imaging target R can be calculated as the distance here. Of these two distances, the distance on the same side as the image used for the reading process is used below.

続くステップS2は特許請求の範囲の画像領域分割手段に相当し、上記ステップS1の処理により得た距離、および画像の輝度、エッジを用いて、撮像対象物Rを複数の領域に分割する。具体的には、まず、距離の変化が不連続となる箇所、エッジや輝度変化が大きい箇所を境界として、撮像対象物Rを複数の面に分割する。よって、エッジがなく、輝度変化も小さく、距離変化もなだらかであれば同一の面とする。そして、その面を、さらに、距離によりグループに分類することで領域を設定する。図7は、図6の円柱60を含む画像を複数の面に分割した図である。図7に示すように面が設定された場合には、領域としては、円柱60と背景70とが設定される(図8参照)。なお、面を設定する際にも、また、領域を設定する際にも距離を用いるが、領域を設定する際には、面に分割するよりも距離の乖離が大きい場合に別領域とする。   The subsequent step S2 corresponds to the image region dividing means in the claims, and the imaging object R is divided into a plurality of regions using the distance obtained by the processing of step S1, the luminance of the image, and the edge. Specifically, first, the imaging target R is divided into a plurality of surfaces, with a boundary where the change in distance is discontinuous and a point where the edge or luminance change is large as a boundary. Therefore, if there is no edge, the luminance change is small, and the distance change is gentle, the surfaces are the same. And the area | region is set by classifying the surface further into a group by distance. FIG. 7 is a diagram in which an image including the cylinder 60 of FIG. 6 is divided into a plurality of surfaces. When a surface is set as shown in FIG. 7, a cylinder 60 and a background 70 are set as regions (see FIG. 8). It should be noted that the distance is used both when setting the surface and when setting the region, but when setting the region, the region is set as a separate region when the difference in the distance is larger than when dividing the surface.

図9は、光学情報読み取り装置10の中心軸XC(図2参照)に対して円柱60が傾いている(中心軸XCに対して垂直でないことを意味する)状態で、受光センサ23A、23Bにより撮像された画像の一部の例であり、図10は、図9の画像をもとにステップS1、S2の処理を行って得られた面を示す図である。円柱60が傾いていることにより、同図に矢印で示すように、円柱60は、一方の端から他方の端に向かうに従って異なる面に分割されている。しかし、隣り合う面の間の距離の変化は小さいことから、このように円柱60が傾いている場合にも、図11に示されるように、円柱60と背景70の2つの領域が設定される。   FIG. 9 shows a state in which the column 60 is inclined with respect to the central axis XC (see FIG. 2) of the optical information reader 10 (meaning that it is not perpendicular to the central axis XC). FIG. 10 shows an example of a part of a captured image, and FIG. 10 is a diagram illustrating a surface obtained by performing the processing of steps S1 and S2 based on the image of FIG. Since the column 60 is inclined, the column 60 is divided into different planes from one end toward the other end as indicated by arrows in FIG. However, since the change in the distance between the adjacent surfaces is small, even when the cylinder 60 is inclined as described above, two regions of the cylinder 60 and the background 70 are set as shown in FIG. .

続くステップS3は特許請求の範囲の領域選択手段に相当し、上記ステップS2で分割した複数の領域から、読み取り処理を行う領域を選択する。領域の選択は、次の3つの領域選択条件に基づいて行う。これら3つの領域選択条件は、それぞれ、(1)画像の中央付近に存在すること、(2)前面に位置すること、(3)ある程度の大きさを持つ領域であること、である。これら3つの領域選択条件は、コード撮像時には、通常、コードが画像中央付近にくるように撮像すると考えられること、コードが何かに隠れる状態では撮像しないと考えられること、あまり狭いところにはコードは配置されないと考えられることから設定される条件である。(3)の条件により、仮に、基板上の素子が(1)、(2)を満たすとしても、読み取り領域として、素子が選択されることはない。また、図8や図11の例では、円柱60の領域が(1)〜(3)の条件を全て満たすので、読み取り処理を行う領域として選択されることになる。   The subsequent step S3 corresponds to the area selection means in the claims, and selects the area to be read from the plurality of areas divided in step S2. The area is selected based on the following three area selection conditions. These three area selection conditions are (1) existing in the vicinity of the center of the image, (2) located in the front, and (3) an area having a certain size. These three area selection conditions are that when a code is imaged, it is usually considered that the code is imaged near the center of the image, it is considered that the image is not imaged when the code is hidden by something, and the code is not very narrow. Is a condition that is set because it is considered that it is not arranged. Under the condition (3), even if the element on the substrate satisfies (1) and (2), the element is not selected as the reading region. Further, in the examples of FIGS. 8 and 11, the area of the cylinder 60 satisfies all the conditions (1) to (3), so that it is selected as an area to be read.

続くステップS4では、読み取り処理を行う領域を決定できたか否か、すなわち、ステップS3で領域を選択できたか否かを判断する。領域分割が適切にできなかったり、あるいは、上記領域選択条件に適合する領域がなかった場合に、ステップS3において領域選択ができず、この場合にステップS4は否定判断となる。   In a succeeding step S4, it is determined whether or not an area to be read can be determined, that is, whether or not an area can be selected in step S3. If the area cannot be divided properly or there is no area that meets the area selection condition, the area cannot be selected in step S3. In this case, the determination in step S4 is negative.

ステップS4の判断が否定判断である場合にはステップS12へ進み、全範囲読み取りを行う。この全範囲読み取りとは、受光センサ23の予め設定された全範囲の画像信号を取得し、その全範囲の画像信号に対して二値化処理、デコード処理等を行ってQRコードQから情報を読み取る処理である。ここで、全範囲とは、全画素であってもよいし、また、範囲マーカを照射するようになっている場合には、その範囲マーカにより規定される範囲の画素でもよい。また、本実施形態では、2つの受光センサ23A、23Bを備えているが、いずれの受光センサ23A、23Bの信号を用いるかは予め設定されている。   If the determination in step S4 is negative, the process proceeds to step S12 to read the entire range. The whole range reading is to acquire an image signal of a preset whole range of the light receiving sensor 23, perform binarization processing, decoding processing, etc. on the image signal of the whole range and obtain information from the QR code Q. Read processing. Here, the entire range may be all pixels, or in the case where a range marker is irradiated, may be a pixel in a range defined by the range marker. In the present embodiment, the two light receiving sensors 23A and 23B are provided. However, which light receiving sensor 23A and 23B is used is preset.

ステップS4が肯定判断である場合にはステップS5以下を実行する。ステップS5では、読み取り領域の画像の歪みを判定する。画像の歪みの判定には、ステップS3で選択した読み取り領域に対して、ステップS1の処理の際に得られた距離を用いる。具体的には、まず、読み取り領域内で距離が決定可能な点から、基準となる点(たとえば画像中心)を決定する。そして、読み取り領域が、その基準点を含み且つ光学情報読み取り装置10の中心軸XCに垂直な平面であるとして、読み取り領域内の他の点の距離(平面仮定距離という)を算出する。そして、その平面仮定距離と、ステップS1の処理の際に得られた距離とを比較し、各点において、両距離の差がいずれも所定値以下であれば歪みがないと判定し、両距離の差が所定値よりも大きい点があれば歪みがあると判定する。なお、このようにして判定する画像の歪みは、撮像対象物Rが傾いていたり、或いは、読み取り領域が平面でない(湾曲している)ことに起因するものである。   If step S4 is affirmative, step S5 and subsequent steps are executed. In step S5, distortion of the image in the reading area is determined. For determination of image distortion, the distance obtained in the process of step S1 is used for the reading area selected in step S3. Specifically, first, a reference point (for example, the image center) is determined from the points where the distance can be determined in the reading area. Then, assuming that the reading area is a plane that includes the reference point and is perpendicular to the central axis XC of the optical information reading device 10, the distance of another point in the reading area (referred to as a plane assumed distance) is calculated. Then, the assumed plane distance is compared with the distance obtained in the process of step S1, and at each point, it is determined that there is no distortion if the difference between both distances is equal to or less than a predetermined value. If there is a point where the difference is greater than a predetermined value, it is determined that there is distortion. Note that the distortion of the image determined in this way is due to the imaging object R being tilted or the reading area being not flat (curved).

続くステップS6は特許請求の範囲のボケ量推定手段に相当する。ステップS6では、読み取り領域の画像のボケを判定する。ボケの判定は、読み取り領域までの距離が、被写界深度内に入っているか否かで判断する。ここで、読み取り領域までの距離としては、読み取り領域の中心、あるいは、読み取り領域内で距離決定可能な点のうち最も読み取り領域の中心に近い点と光学情報読み取り装置10との間の距離を用いる。被写界深度は、よく知られているように、前方被写界深度Lfと後方被写界深度Lrとからなる。これら前方被写界深度Lfおよび後方被写界深度Lrは、それぞれ下記式により表される。
The subsequent step S6 corresponds to the blur amount estimation means in the claims. In step S6, the blur of the image in the reading area is determined. The blur is determined based on whether the distance to the reading area is within the depth of field. Here, as the distance to the reading area, the distance between the center of the reading area or the point closest to the center of the reading area among the points capable of determining the distance in the reading area and the optical information reading apparatus 10 is used. . As is well known, the depth of field includes a front depth of field Lf and a rear depth of field Lr. The forward depth of field Lf and the backward depth of field Lr are each expressed by the following equations.

なお、式中のδは許容錯乱円、FはF値、fは焦点距離、Lはベストフォーカスを表す。   In the equation, δ represents an allowable circle of confusion, F represents an F value, f represents a focal length, and L represents a best focus.

読み取り領域までの距離が、上記被写界深度の範囲内に入っている場合にはボケはないと判定する。一方、読み取り領域までの距離が被写界深度の範囲外であれば、被写界深度から外れている長さをボケ量として算出する。   When the distance to the reading area is within the depth of field, it is determined that there is no blur. On the other hand, if the distance to the reading area is outside the range of the depth of field, the length deviating from the depth of field is calculated as the amount of blur.

続くステップS7では、ステップS5で歪みがあると判定したか否かを判断する。この判断が肯定判断である場合にはステップS8へ進み、否定判断である場合にはステップS8を経ずにステップS9へ進む。   In subsequent step S7, it is determined whether or not it is determined in step S5 that there is distortion. If this determination is affirmative, the process proceeds to step S8, and if negative, the process proceeds to step S9 without passing through step S8.

ステップS8は特許請求の範囲の画像補正手段に相当し、読み取り領域の画像に対して歪み補正を行う。この補正は、読み取り領域の画像を、読み取り領域の画像を撮像した側の結像レンズ27の光軸Xに垂直な平面であるとした場合の画像に補正するものである。このステップS8を、図12、13を用いて具体的に説明する。図12は、撮像対象物Rが円柱60である場合の例であり、円柱60の軸に垂直な断面における補正前画像80と補正後画像82とを概念的に示している。なお、図12は、円柱60の軸に垂直な断面であることから、補正前画像80も補正後画像82も、図12では線分である。補正前画像80は、円柱60を仮想平面Pに投影した画像である。よって、補正後画像82は、たとえば、補正前画像80に対して投影変換の逆変換を行うことにより作成できる。このようにして作成された補正後画像82は、湾曲している読み取り領域が仮想平面P上に展開された画像となる。   Step S8 corresponds to the image correction means in the claims, and performs distortion correction on the image in the reading area. In this correction, the image in the reading area is corrected to an image when it is a plane perpendicular to the optical axis X of the imaging lens 27 on the side where the image in the reading area is captured. Step S8 will be specifically described with reference to FIGS. FIG. 12 is an example in the case where the imaging target R is a cylinder 60, and conceptually shows a pre-correction image 80 and a post-correction image 82 in a cross section perpendicular to the axis of the cylinder 60. Since FIG. 12 is a cross section perpendicular to the axis of the cylinder 60, the uncorrected image 80 and the corrected image 82 are line segments in FIG. The pre-correction image 80 is an image obtained by projecting the cylinder 60 onto the virtual plane P. Therefore, the post-correction image 82 can be created, for example, by performing inverse transformation of projection conversion on the pre-correction image 80. The corrected image 82 created in this way is an image in which a curved reading area is developed on the virtual plane P.

図13は、撮像対象物Rが直方体62である場合の例であり、結像レンズ27の光軸Xを含む面で直方体62を切断した断面における補正前画像90と補正後画像92とを概念的に示している。この図13の例では、直方体62において結像レンズ27に対向している面は、結像レンズ27の光軸Xに対して垂直にはなっていない。より詳しくは、この図13の例では、読み取り領域のうち光軸X上の点を基準点とし、その基準点を通り光軸Xに垂直な面を仮想平面Pとすると、基準点よりも図上側は仮想平面Pよりも結像レンズ27に近く、基準点よりも図下側は仮想平面Pよりも結像レンズ27から遠い。この場合、補正後画像92を補正前画像90と比較すると、補正後画像92は、基準点よりも図下側の長さが補正前画像90に対して長くされ、基準点よりも図上側の長さが補正前画像90に対して短くされている。なお、図13の場合にも、補正後画像92は、投影変換の逆変換等により、補正前画像90を変換することにより得られる。   FIG. 13 is an example in the case where the imaging target R is a rectangular parallelepiped 62, and conceptually shows an uncorrected image 90 and a corrected image 92 in a cross section obtained by cutting the rectangular parallelepiped 62 along a plane including the optical axis X of the imaging lens 27. Is shown. In the example of FIG. 13, the surface of the cuboid 62 facing the imaging lens 27 is not perpendicular to the optical axis X of the imaging lens 27. More specifically, in the example of FIG. 13, if a point on the optical axis X in the reading area is a reference point, and a plane that passes through the reference point and is perpendicular to the optical axis X is a virtual plane P, it is more illustrated than the reference point. The upper side is closer to the imaging lens 27 than the virtual plane P, and the lower side of the drawing is closer to the imaging lens 27 than the virtual plane P than the reference point. In this case, when the post-correction image 92 is compared with the pre-correction image 90, the post-correction image 92 has a length lower than the reference point in the figure before the correction 90, and is higher in the figure than the reference point. The length is shorter than the pre-correction image 90. Also in the case of FIG. 13, the corrected image 92 is obtained by converting the pre-correction image 90 by inverse conversion of projection conversion or the like.

説明を図5に戻す。ステップS9では、ステップS6でボケがあると判定したか否かを判断する。この判断が肯定判断である場合にはステップS10へ進み、否定判断である場合にはステップS10を経ずにステップS11へ進む。   Returning to FIG. In step S9, it is determined whether or not it is determined in step S6 that there is a blur. If this determination is affirmative, the process proceeds to step S10, and if negative, the process proceeds to step S11 without passing through step S10.

ステップS10は特許請求の範囲のボケ補正手段に相当し、読み取り領域の画像のボケを、ステップS6で算出したボケ量に基づいて補正する。具体的には、ボケ量に応じて係数を設定した鮮鋭化フィルタを施したり、或いは、ボケ量に応じて係数や閾値を設定したエッジ検出処理を行う。   Step S10 corresponds to the blur correction unit in the claims, and corrects the blur of the image in the reading area based on the blur amount calculated in step S6. Specifically, a sharpening filter with a coefficient set according to the amount of blur is applied, or an edge detection process with a coefficient or threshold set according to the amount of blur is performed.

そして、ステップS11では領域読み取り処理を行う。領域読み取り処理は、歪み判定(ステップS5)、ボケ判定(ステップS6)の判定結果に応じて歪み補正やボケ補正を行った読み取り領域の画像を用いて読み取り処理を行うものであり、用いる画像が異なる以外は、ステップS12の読み取り処理と同じ処理である。   In step S11, an area reading process is performed. In the area reading process, the reading process is performed using an image of a reading area that has been subjected to distortion correction or blur correction according to the determination results of distortion determination (step S5) and blur determination (step S6). Except for the difference, the processing is the same as the reading processing in step S12.

以上、説明した本実施形態によれば、光学情報読み取り装置10から撮像対象物Rの複数の点までの距離を測定し(ステップS1)、測定した距離に基づいて、受光センサ23が撮像した画像を複数の領域に分割する(ステップS2)。距離により画像を複数の領域に分割することから、輝度変化やエッジに基づいて領域を分割する場合と異なり、QRコードQに起因する輝度変化以外の種々の輝度変化が撮像対象物Rにあってもその影響を受けない。よって、QRコードQを含む領域に精度よく絞り込むことができ、その後の読み取り処理をやり直す場合が低下するので、読み取り速度が向上する。また、領域の絞り込みの精度が向上することから、情報の読み取り精度も向上する。   As described above, according to the present embodiment described above, the distance from the optical information reading device 10 to a plurality of points of the imaging target R is measured (step S1), and the image captured by the light receiving sensor 23 based on the measured distance. Is divided into a plurality of regions (step S2). Since the image is divided into a plurality of regions according to the distance, unlike the case where the region is divided based on the luminance change or the edge, various luminance changes other than the luminance change caused by the QR code Q are present in the imaging target R. Is not affected. Therefore, it is possible to narrow down to a region including the QR code Q with high accuracy, and the case where the subsequent reading process is performed again is reduced, so that the reading speed is improved. In addition, since the accuracy of narrowing down the area is improved, the information reading accuracy is also improved.

また、本実施形態によれば、光学情報読み取り装置10から撮像対象物Rまでの距離を測定していることを活用して、読み取り領域の画像を、その読み取り領域が、結像レンズ27の光軸Xに垂直な平面であるとした場合の画像に補正している(ステップS8)。よって、読み取り領域が傾いていたり、また、読み取り領域が湾曲していても、それら傾きや湾曲が補正される。その結果、読み取り領域の画像に含まれているQRコードQの歪みも補正される。これによっても、QRコードQの読み取り精度が向上する。   Further, according to the present embodiment, utilizing the fact that the distance from the optical information reading device 10 to the imaging target R is measured, the image of the reading area is displayed as the light of the imaging lens 27. It is corrected to an image when it is a plane perpendicular to the axis X (step S8). Therefore, even if the reading area is inclined or the reading area is curved, the inclination and the curvature are corrected. As a result, the distortion of the QR code Q included in the image of the reading area is also corrected. This also improves the reading accuracy of the QR code Q.

さらに、本実施形態によれば、光学情報読み取り装置10から撮像対象物Rまでの距離を測定していることを活用して、読み取り領域のボケ量を推定している(ステップS6)。そして、推定したボケ量に基づいて、読み取り領域の画像のボケを補正しているので、ボケを精度よく補正することができる。これによっても、QRコードQの読み取り精度が向上する。   Furthermore, according to the present embodiment, the amount of blur in the reading area is estimated using the measurement of the distance from the optical information reading device 10 to the imaging target R (step S6). Since the blur of the image in the reading area is corrected based on the estimated blur amount, the blur can be corrected with high accuracy. This also improves the reading accuracy of the QR code Q.

以上、本発明の実施形態を説明したが、本発明は上述の実施形態に限定されるものではなく、次の実施形態も本発明の技術的範囲に含まれ、さらに、下記以外にも要旨を逸脱しない範囲内で種々変更して実施することができる。   As mentioned above, although embodiment of this invention was described, this invention is not limited to the above-mentioned embodiment, The following embodiment is also contained in the technical scope of this invention, and also the summary other than the following is also included. Various modifications can be made without departing from the scope.

たとえば、前述の実施形態では、受光センサ23およびそれに対応する光学系を2組備えており、2つの受光センサ23からの画像信号をもとにステレオ法の演算を行っていた。しかし、光学情報読み取り装置10の相対的あるいは絶対的位置を検出する位置検出手段を備えれば、受光センサ23およびそれに対応する光学系を1組とすることもできる。この位置検出手段としては、たとえば、移動方向とともに移動速度を検出する速度センサと、撮像時点と次の撮像時点との時間差を計測する計時手段と、それら速度センサ、計時手段によって得られた移動方向、移動速度および時間差から演算により位置の変化を検出する位置演算手段とから構成することができる。   For example, in the above-described embodiment, two sets of the light receiving sensor 23 and the corresponding optical system are provided, and the stereo method calculation is performed based on the image signals from the two light receiving sensors 23. However, if a position detecting means for detecting the relative or absolute position of the optical information reading device 10 is provided, the light receiving sensor 23 and the corresponding optical system can be made into one set. As this position detecting means, for example, a speed sensor that detects the moving speed together with the moving direction, a time measuring means that measures the time difference between the imaging time point and the next imaging time point, a moving direction obtained by the speed sensor and the time measuring means The position calculating means can detect a change in position by calculation from the moving speed and the time difference.

位置検出手段を備える構成の場合、互いに異なる複数(たとえば2箇所)の位置において撮像対象物Rを撮像するとともに、その撮像位置を位置検出手段により検出する。また、この光学情報読み取り装置10の向きの相対変化も検出する。光学情報読み取り装置10の向きの検出には、たとえば、三軸加速度センサやジャイロセンサを用いる。また、これら向きを検出するセンサを用いて速度を求めても良い。このようにして撮像位置および撮像時の向きが検出できれば、前述の実施形態と同様に、ステレオ法を適用することができる。   In the case of a configuration including position detection means, the imaging object R is imaged at a plurality of different positions (for example, two locations), and the imaging position is detected by the position detection means. Further, a relative change in the orientation of the optical information reading device 10 is also detected. For example, a triaxial acceleration sensor or a gyro sensor is used to detect the orientation of the optical information reader 10. Moreover, you may obtain | require speed using the sensor which detects these directions. If the imaging position and the orientation at the time of imaging can be detected in this way, the stereo method can be applied as in the above-described embodiment.

また、ステレオ法に限られず、レーザにより撮像対象物Rまでの距離を計測してもよい。この場合、光学情報読み取り装置10に、レーザ光を照射方向を制御しつつ照射するとともに、レーザ光が外部の物体に反射した反射光を受光するレーザ光送受手段を備える。そして、レーザ光を照射してから、そのレーザ光の反射光を受光するまでの時間差と、レーザ光の照射方向とに基づいて、撮像対象物の複数の点までの距離を推定する。   The distance to the imaging object R may be measured by a laser without being limited to the stereo method. In this case, the optical information reading device 10 is provided with a laser beam transmitting / receiving unit that irradiates the laser beam while controlling the irradiation direction and receives the reflected light reflected by the external object. Then, the distance to a plurality of points on the imaging target is estimated based on the time difference from the irradiation of the laser light to the reception of the reflected light of the laser light and the irradiation direction of the laser light.

また、前述の実施形態では、領域分割する際に、距離の変化に加えて、輝度変化やエッジを用いていたが、距離の変化のみにより領域を分割してもよい。また、前述の実施形態では、複数の領域から、3つの領域選択条件を用いて、読み取り領域を選択していたが、3つの条件のうちのいずれか1つまたは2つの条件のみを用いてもよいし、また、(1)〜(3)の条件に代えて他の条件を用いてもよいし、また、(1)〜(3)の条件に加えて他の条件を追加してもよい。   In the above-described embodiment, when a region is divided, a luminance change and an edge are used in addition to a change in distance. However, a region may be divided only by a change in distance. In the above-described embodiment, a reading area is selected from a plurality of areas using three area selection conditions. However, only one or two of the three conditions may be used. Alternatively, other conditions may be used instead of the conditions (1) to (3), and other conditions may be added in addition to the conditions (1) to (3). .

また、前述の実施形態の光学情報読み取り装置10は携帯型であったが、本発明は固定型にも適用できる。また、レールに沿って光学情報読み取り装置を移動可能としてもよい。さらに、その場合、位置検出手段として、レールに光学情報読み取り装置の位置を検出するセンサを設けてもよい。   Moreover, although the optical information reader 10 of the above-mentioned embodiment was a portable type, the present invention can also be applied to a fixed type. The optical information reading device may be movable along the rail. Further, in that case, a sensor for detecting the position of the optical information reading device may be provided on the rail as the position detecting means.

10:光学情報読み取り装置、 11:ハウジング、 11a:読取口、 12:操作スイッチ、 14:操作スイッチ、 15:プリント配線板、 16:プリント配線板、 20:回路部、 21:赤色発光ダイオード、 23:受光センサ、 24:受光面、 27:結像レンズ、 31:増幅回路。 33:A/D変換回路、 35:メモリ、 36:アドレス発生回路、 38:同期信号発生回路、 40:制御回路、 41:電源スイッチ、 43:LED、 44:ブザー、 46:液晶表示器、 48:通信インターフェース、 49:二次電池、 52:集光レンズ、 60:円柱、 62:直方体、 70:背景、 80:補正前画像、 82:補正後画像、 90:補正前画像、 92:補正後画像、 P:仮想平面、 Q:QRコード
R:撮像対象物、 Lf:照明光、 Lr:反射光、 VP:線分、 XA、XB:(撮像エリアの)中心軸、 Xa、Xb:光軸、 XC:(光学情報読み取り装置10の)中心軸、 S1:距離推定手段、 S2:画像領域分割手段、 S3:領域選択手段、 S6:ボケ量推定手段、 S10:ボケ補正手段
10: Optical information reading device, 11: Housing, 11a: Reading port, 12: Operation switch, 14: Operation switch, 15: Printed wiring board, 16: Printed wiring board, 20: Circuit section, 21: Red light emitting diode, 23 : Light receiving sensor, 24: light receiving surface, 27: imaging lens, 31: amplifier circuit. 33: A / D conversion circuit, 35: Memory, 36: Address generation circuit, 38: Synchronization signal generation circuit, 40: Control circuit, 41: Power switch, 43: LED, 44: Buzzer, 46: Liquid crystal display, 48 : Communication interface, 49: Secondary battery, 52: Condensing lens, 60: Cylinder, 62: Rectangular parallelepiped, 70: Background, 80: Image before correction, 82: Image after correction, 90: Image before correction, 92: After correction Image, P: Virtual plane, Q: QR code R: Imaging object, Lf: Illumination light, Lr: Reflected light, VP: Line segment, XA, XB: Central axis (of imaging area), Xa, Xb: Optical axis XC: central axis (of the optical information reading device 10), S1: distance estimation means, S2: image area division means, S3: area selection means, S6: blur amount estimation means, S10: blur correction means

Claims (6)

情報コードが示された撮像対象物を撮像する撮像手段と、撮像手段が撮像した画像から読み取り領域を絞り込み、その読み取り領域の画像に対して読み取り処理を行う読み取り処理手段とを備え、前記読み取り処理により情報コードから情報を読み取る光学情報読み取り装置であって、
この光学情報読み取り装置から前記撮像対象物の複数の点までの距離を推定する距離推定手段と、
前記距離推定手段が推定した距離に基づいて、前記撮像手段が撮像した画像を複数の領域に分割する画像領域分割手段と、
その画像領域分割手段が分割した複数の領域から、前記読み取り領域を選択する領域選択手段と
を含むことを特徴とする光学情報読み取り装置。
An image capturing unit that captures an image of the imaging target indicated by the information code; and a reading processing unit that narrows down a reading area from the image captured by the imaging unit and performs a reading process on the image in the reading area. An optical information reading device for reading information from an information code,
Distance estimating means for estimating the distance from the optical information reader to a plurality of points of the imaging object;
An image region dividing unit that divides the image captured by the imaging unit into a plurality of regions based on the distance estimated by the distance estimating unit;
An optical information reading apparatus comprising: an area selecting unit that selects the reading area from a plurality of areas divided by the image area dividing unit.
請求項1において、
前記距離推定手段が推定した前記読み取り領域内の複数の点までの距離に基づいて、前記読み取り領域の画像を、その読み取り領域が、前記撮像手段の光軸に垂直な平面であるとした場合の画像に補正する画像補正手段を備え、
前記読み取り手段は、前記画像補正手段が補正した画像を用いて読み取り処理を行うことを特徴とする光学情報読み取り装置。
In claim 1,
Based on the distances to a plurality of points in the reading area estimated by the distance estimating means, an image of the reading area is assumed to be a plane perpendicular to the optical axis of the imaging means. Image correction means for correcting the image,
The optical information reading apparatus, wherein the reading unit performs a reading process using the image corrected by the image correcting unit.
請求項1または2において、
前記距離推定手段が推定した前記読み取り領域内の複数の点までの距離と、予め記憶されている前記撮像手段の被写界深度とに基づいて、前記読み取り領域の画像のボケ量を推定するボケ量推定手段と、
そのボケ量推定手段が推定したボケ量に基づいて、前記読み取り領域の画像のボケを補正するボケ補正手段とを備え、
前記読み取り手段は、前記ボケ補正手段が補正した画像を用いて読み取り処理を行うことを特徴とする光学情報読み取り装置。
In claim 1 or 2,
Based on the distances to a plurality of points in the reading area estimated by the distance estimation means and the depth of field of the imaging means stored in advance, the blur for estimating the blur amount of the image in the reading area A quantity estimation means;
A blur correction unit that corrects the blur of the image in the reading area based on the blur amount estimated by the blur amount estimation unit;
The optical information reading apparatus, wherein the reading unit performs a reading process using the image corrected by the blur correction unit.
請求項1〜3のいずれか1項において、
光軸が互いに異なるとともに、互いの距離が既知の複数の撮像手段を備え、
前記距離推定手段は、前記複数の撮像手段が撮像した画像に基づいてステレオ法により前記撮像対象物の複数の点までの距離を推定することを特徴とする光学情報読み取り装置。
In any one of Claims 1-3,
A plurality of imaging means having different optical axes and known distances from each other;
The optical information reading apparatus, wherein the distance estimation unit estimates a distance to a plurality of points of the imaging target object by a stereo method based on images captured by the plurality of imaging units.
請求項1〜3のいずれか1項において、
前記光学情報読み取り装置は移動可能になっており、
この光学情報読み取り装置の位置を検出する位置検出手段を備え、
前記距離推定手段は、互いに異なる複数の位置において前記撮像手段が撮像した前記撮像対象物の画像およびその画像を撮像したときに前記位置検出手段が検出した光学情報読み取り装置の位置に基づいて、ステレオ法により前記撮像対象物の複数の点までの距離を推定することを特徴とする光学情報読み取り装置。
In any one of Claims 1-3,
The optical information reader is movable,
A position detecting means for detecting the position of the optical information reader;
The distance estimation means is a stereo based on the image of the imaging object captured by the imaging means at a plurality of different positions and the position of the optical information reader detected by the position detection means when the image is captured. An optical information reading apparatus, wherein distances to a plurality of points of the imaging object are estimated by a method.
請求項1〜3のいずれか1項において、
レーザ光を照射方向を制御しつつ照射するとともに、レーザ光が外部の物体に反射した反射光を受光するレーザ光送受手段を備え、
前記距離推定手段は、前記レーザ光送受手段がレーザ光を照射してから反射光を受光するまでの時間差とレーザ光の照射方向とに基づいて、前記撮像対象物の複数の点までの距離を推定することを特徴とする光学情報読み取り装置。
In any one of Claims 1-3,
While irradiating the laser beam while controlling the irradiation direction, the laser beam transmitting and receiving means for receiving the reflected light reflected from the external object,
The distance estimating means calculates distances to a plurality of points of the imaging object based on a time difference between the laser light transmitting / receiving means irradiating laser light and receiving reflected light and a laser light irradiation direction. An optical information reading apparatus characterized by estimating.
JP2011045345A 2011-03-02 2011-03-02 Optical information reader Expired - Fee Related JP5533739B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011045345A JP5533739B2 (en) 2011-03-02 2011-03-02 Optical information reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011045345A JP5533739B2 (en) 2011-03-02 2011-03-02 Optical information reader

Publications (2)

Publication Number Publication Date
JP2012181757A true JP2012181757A (en) 2012-09-20
JP5533739B2 JP5533739B2 (en) 2014-06-25

Family

ID=47012888

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011045345A Expired - Fee Related JP5533739B2 (en) 2011-03-02 2011-03-02 Optical information reader

Country Status (1)

Country Link
JP (1) JP5533739B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015155844A (en) * 2014-02-20 2015-08-27 多摩川精機株式会社 Movable body position measurement system, rolling compaction work trajectory creation system and relative position recording method for movable body
JP2016103230A (en) * 2014-11-28 2016-06-02 キヤノン株式会社 Image processor, image processing method and program
JP2020013210A (en) * 2018-07-13 2020-01-23 株式会社デンソーウェーブ Code reading device and code reading program

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0558598A (en) * 1991-09-03 1993-03-09 Toyota Autom Loom Works Ltd Bar code read device in forklift
JP2001145128A (en) * 1999-11-12 2001-05-25 Asahi Optical Co Ltd Three-dimensional image detecting device
JP2001229339A (en) * 2000-02-18 2001-08-24 Matsushita Electric Ind Co Ltd Barcode reader
JP2006092263A (en) * 2004-09-24 2006-04-06 Daido Steel Co Ltd Automatic code reading device
JP2007206738A (en) * 2006-01-30 2007-08-16 Kyocera Corp Imaging device and method
JP2008039491A (en) * 2006-08-02 2008-02-21 Fuji Heavy Ind Ltd Stereo image processing apparatus
WO2008032376A1 (en) * 2006-09-13 2008-03-20 Pioneer Corporation Distance measuring device and method, and computer program
JP2009156646A (en) * 2007-12-25 2009-07-16 Casio Comput Co Ltd Distance measuring system and projector

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0558598A (en) * 1991-09-03 1993-03-09 Toyota Autom Loom Works Ltd Bar code read device in forklift
JP2001145128A (en) * 1999-11-12 2001-05-25 Asahi Optical Co Ltd Three-dimensional image detecting device
JP2001229339A (en) * 2000-02-18 2001-08-24 Matsushita Electric Ind Co Ltd Barcode reader
JP2006092263A (en) * 2004-09-24 2006-04-06 Daido Steel Co Ltd Automatic code reading device
JP2007206738A (en) * 2006-01-30 2007-08-16 Kyocera Corp Imaging device and method
JP2008039491A (en) * 2006-08-02 2008-02-21 Fuji Heavy Ind Ltd Stereo image processing apparatus
WO2008032376A1 (en) * 2006-09-13 2008-03-20 Pioneer Corporation Distance measuring device and method, and computer program
JP2009156646A (en) * 2007-12-25 2009-07-16 Casio Comput Co Ltd Distance measuring system and projector

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015155844A (en) * 2014-02-20 2015-08-27 多摩川精機株式会社 Movable body position measurement system, rolling compaction work trajectory creation system and relative position recording method for movable body
JP2016103230A (en) * 2014-11-28 2016-06-02 キヤノン株式会社 Image processor, image processing method and program
JP2020013210A (en) * 2018-07-13 2020-01-23 株式会社デンソーウェーブ Code reading device and code reading program
JP7091898B2 (en) 2018-07-13 2022-06-28 株式会社デンソーウェーブ Code reader and code reader

Also Published As

Publication number Publication date
JP5533739B2 (en) 2014-06-25

Similar Documents

Publication Publication Date Title
US6741279B1 (en) System and method for capturing document orientation information with a digital camera
US20110304746A1 (en) Image capturing device, operator monitoring device, method for measuring distance to face, and program
TWI393980B (en) The method of calculating the depth of field and its method and the method of calculating the blurred state of the image
KR101652393B1 (en) Apparatus and Method for obtaining 3D image
US8593536B2 (en) Image pickup apparatus with calibration function
JP2006252473A (en) Obstacle detector, calibration device, calibration method and calibration program
JP5293131B2 (en) Compound eye distance measuring device for vehicle and compound eye distance measuring method
JP2002139304A (en) Distance measuring device and distance measuring method
JP2010091426A (en) Distance measuring device and program
JP2006322853A (en) Distance measuring device, distance measuring method and distance measuring program
JP6602741B2 (en) Three-dimensional outline information detection system and detection method
JP5533739B2 (en) Optical information reader
CN109470201B (en) Method for operating a hand-held laser distance measuring device and hand-held laser distance measuring device
JP2013257244A (en) Distance measurement device, distance measurement method, and distance measurement program
CN112740065A (en) Enhanced depth mapping using visual inertial ranging
JP5482032B2 (en) Distance measuring device and distance measuring method
JP2014130086A (en) Range image sensor, processor and program
JP2011095131A (en) Image processing method
JP6241083B2 (en) Imaging apparatus and parallax detection method
US20080180651A1 (en) Velocity determination utilizing two photosensor arrays
JP2014025804A (en) Information acquisition device and object detection device
JP2008164338A (en) Position sensor
JP2012220285A (en) Distance image camera and distance measurement method using the same
JPH07306037A (en) Solid object region detector, measuring instrument of distance to solid object region, and their detection and measurement method
TWI435059B (en) Optical distance detection system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130730

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140207

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140218

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140225

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

R150 Certificate of patent or registration of utility model

Ref document number: 5533739

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140414

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees