JP2021015592A - Two-dimensional code reader, installation position adjustment device, and program - Google Patents

Two-dimensional code reader, installation position adjustment device, and program Download PDF

Info

Publication number
JP2021015592A
JP2021015592A JP2020069759A JP2020069759A JP2021015592A JP 2021015592 A JP2021015592 A JP 2021015592A JP 2020069759 A JP2020069759 A JP 2020069759A JP 2020069759 A JP2020069759 A JP 2020069759A JP 2021015592 A JP2021015592 A JP 2021015592A
Authority
JP
Japan
Prior art keywords
dimensional code
image
installation position
reading device
position adjusting
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
JP2020069759A
Other languages
Japanese (ja)
Other versions
JP7469624B2 (en
Inventor
学 神坂
Manabu Kamisaka
学 神坂
量崇 深谷
Kazutaka Fukaya
量崇 深谷
亨 藤田
Toru Fujita
亨 藤田
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
Publication of JP2021015592A publication Critical patent/JP2021015592A/en
Application granted granted Critical
Publication of JP7469624B2 publication Critical patent/JP7469624B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

To provide an installation position adjustment device that facilitates positioning of a two-dimensional code reader.SOLUTION: A two-dimensional code reader 110 detects an angle deviation of a photographed two-dimensional code with respect to preset horizontal and vertical directions of a two-dimensional code Q. The two-dimensional code reader corrects the detected angle deviation and displays the two-dimensional code on a monitor 15 in the set horizontal and vertical directions. The two-dimensional code reader causes the monitor 15 to display a reading object W to which the two-dimensional code is attached by rotating it in response to an angle at which the two-dimensional code is rotated.SELECTED DRAWING: Figure 4

Description

本発明は、二次元コード読取装置の設置位置の調整用の設置位置調整装置に関する。 The present invention relates to an installation position adjusting device for adjusting the installation position of a two-dimensional code reading device.

固定式の二次元コード読取装置の読み取り範囲に入っている読み取り対象二次元コードの設置位置を手作業で読み取り範囲の中央へ微調整する際、一人の作業者が二次元コード読取装置の読み取り設定ツール(設定ソフトウェアがインストールされたコンピュータ)が表示する読み取り画像を見ながら、二次元コード読取装置側の作業者に設置位置を指示して読み取り対象二次元コードを相対移動させて調整している。固定式の二次元コード読取装置の配置の方向によって、実際の二次元コード設置方向と、コンピュータの表示する二次元コードの配置位置がずれてしまい、意図とは異なる方向に読み取り対象二次元コードを移動させてしまうことがあった。 When manually fine-tuning the installation position of the 2D code to be read within the reading range of the fixed 2D code reader to the center of the reading range, one worker sets the reading of the 2D code reader. While observing the scanned image displayed by the tool (computer on which the setting software is installed), the operator on the two-dimensional code reading device side is instructed to instruct the installation position, and the two-dimensional code to be read is relatively moved for adjustment. Depending on the arrangement direction of the fixed two-dimensional code reader, the actual two-dimensional code installation direction and the arrangement position of the two-dimensional code displayed by the computer may deviate, and the two-dimensional code to be read may be read in a direction different from the intention. I sometimes moved it.

特許文献1は、テストバーコードを読ませてスキャナ自体の読み取り方向を回転させてずれを無くす構成を開示している。 Patent Document 1 discloses a configuration in which a test barcode is read and the reading direction of the scanner itself is rotated to eliminate deviation.

特開2007−148528号公報JP-A-2007-148528

特許文献1では、二次元コードであるQRコードを読ませる方向が、必ずしも配置する方向とは一致しないため、2名の作業者に対して方向を一致させることはできないと考えられる。 In Patent Document 1, since the direction in which the QR code, which is a two-dimensional code, is read does not necessarily match the direction in which the QR code is arranged, it is considered that the directions cannot be matched for two workers.

本発明は、上述した課題を解決するためになされたものであり、その目的とするところは、二次元コード読取装置の位置合わせが容易な設置位置調整装置を提供することにある。 The present invention has been made to solve the above-mentioned problems, and an object of the present invention is to provide an installation position adjusting device in which a two-dimensional code reading device can be easily aligned.

上記目的を達成するため、特許請求の範囲の請求項1に記載の発明は、二次元コード読取装置(110)の設置位置調整装置(10)であって、
二次元コード読取装置が撮像した画像を取得する画像取得手段(17)と、
取得した画像を表示する画像表示手段(15)と、
予め設定された二次元コードの左右上下方向に対して、撮像された二次元コードの角度ずれを検出する角度ずれ検出手段(S122)と、
前記角度ずれ検出手段で検出された角度ずれを補正し、前記設定された左右上下方向で二次元コードを、前記画像表示手段で表示させる角度ずれ補正手段(S126)と、を備える。そして、前記画像表示手段(15)は、前記二次元コードの付けられた読み取り対象物Wを、前記角度ずれ補正手段で二次元コードが回転された角度に対応して回転させて表示することを特徴とする。
In order to achieve the above object, the invention according to claim 1 of the claims is an installation position adjusting device (10) of a two-dimensional code reading device (110).
An image acquisition means (17) for acquiring an image captured by a two-dimensional code reader, and
An image display means (15) for displaying the acquired image and
An angle deviation detecting means (S122) for detecting an angle deviation of the captured two-dimensional code in the left-right / up-down direction of the preset two-dimensional code, and
It is provided with an angle deviation correcting means (S126) that corrects the angle deviation detected by the angle deviation detecting means and displays the two-dimensional code in the set left / right / up / down direction by the image display means. Then, the image display means (15) displays the reading object W to which the two-dimensional code is attached by rotating it according to the angle at which the two-dimensional code is rotated by the angle deviation correction means. It is a feature.

請求項12に記載の発明は二次元コード読取装置(110)の設置位置調整装置(10)であって、
二次元コード読取装置が撮像した画像を取得する画像取得手段(17)と、
取得した画像を表示する画像表示手段(15)と、
二次元コードの左右上下方向に対して、撮像された二次元コードの角度ずれを検出する角度ずれ検出手段(S401)と、
前記角度ずれ検出手段で検出された角度ずれを、前記画像表示手段で表示させる角度ずれ表示手段(S402)と、
撮像した二次元コードに、マージンを付加して前記画像表示手段で表示させるマージン表示手段(S404)と、を備えることを特徴とする。
The invention according to claim 12 is an installation position adjusting device (10) of a two-dimensional code reading device (110).
An image acquisition means (17) for acquiring an image captured by a two-dimensional code reader, and
An image display means (15) for displaying the acquired image and
An angle deviation detecting means (S401) for detecting an angle deviation of the captured two-dimensional code with respect to the left-right and up-down directions of the two-dimensional code,
An angle deviation display means (S402) for displaying the angle deviation detected by the angle deviation detection means by the image display means, and
It is characterized by including a margin display means (S404) in which a margin is added to the captured two-dimensional code and displayed by the image display means.

請求項18に記載の発明は二次元コード読取装置(110)であって、
画像データを撮像する撮像手段(53)と、
前記画像データのコード位置情報から、前記画像データのコードもしくはコード周辺の画像特徴量を算出するコード画像特徴量算出手段(S256)と、
前記画像特徴量を記憶するコード画像特徴量記憶手段(S258)と、
前記コード画像特徴量記憶手段に記憶された複数の画像特徴量から、前記画像データの撮像された環境の一致度を算出する読み取り環境一致度算出手段(S260)と、
前記環境一致度算出手段により算出された一致度が高くなる前記画像データの撮像された環境を指示する環境一致指示手段(S262)と、を備えることを特徴とする。
The invention according to claim 18 is a two-dimensional code reading device (110).
An imaging means (53) for capturing image data and
A code image feature amount calculating means (S256) for calculating the code of the image data or an image feature amount around the code from the code position information of the image data, and
A code image feature storage means (S258) for storing the image feature, and
A reading environment matching degree calculating means (S260) for calculating the matching degree of the imaged environment of the image data from a plurality of image feature amounts stored in the code image feature amount storing means,
It is characterized by including an environment matching instruction means (S262) for instructing the environment in which the image data is captured, which increases the matching degree calculated by the environment matching degree calculating means.

請求項34に記載の発明は二次元コード読取装置の設置位置調整装置(10)であって、
二次元コード読取装置が撮像した画像を取得する画像取得手段(17)と、
取得した画像を表示する画像表示手段(15)と、
複数の二次元コードに対して、個々の二次元コードに識別情報を付して前記画像表示手段に表示する情報表示手段(S404)と、
前記二次元コード読取装置の位置調整対象に指定された二次元コードを特定して前記画像表示手段に表示する特定表示手段(S408)と、
前記位置調整対象に指定された以外の二次元コードの読み取り条件を個々に調整し、調整結果を保持する(S412)ことを特徴とする。
なお、上記各括弧内の符号は、後述する実施形態に記載の具体的手段との対応関係を示すものである。
The invention according to claim 34 is an installation position adjusting device (10) for a two-dimensional code reading device.
An image acquisition means (17) for acquiring an image captured by a two-dimensional code reader, and
An image display means (15) for displaying the acquired image and
An information display means (S404) that attaches identification information to each two-dimensional code and displays it on the image display means for a plurality of two-dimensional codes.
The specific display means (S408) that identifies the two-dimensional code designated as the position adjustment target of the two-dimensional code reader and displays it on the image display means, and
It is characterized in that the reading conditions of the two-dimensional code other than those designated as the position adjustment target are individually adjusted and the adjustment result is held (S412).
The reference numerals in the parentheses indicate the correspondence with the specific means described in the embodiments described later.

請求項1の発明では、撮像された二次元コードの角度ずれを検出し、検出された角度ずれを補正し、設定された左右上下方向で二次元コードを画像表示手段で表示させる。同時に、二次元コードの付けられた読み取り対象物Wを、二次元コードが回転された角度に対応して回転させて表示する。このため、設置位置調整装置側の作業者と、二次元コード読取装置側の作業者との連携が取りやすくなり、二次元コード読取装置の位置合わせが容易になる。 In the invention of claim 1, the angle deviation of the captured two-dimensional code is detected, the detected angle deviation is corrected, and the two-dimensional code is displayed by the image display means in the set left, right, up and down directions. At the same time, the reading object W to which the two-dimensional code is attached is displayed by rotating it according to the angle at which the two-dimensional code is rotated. Therefore, it becomes easy to cooperate with the worker on the installation position adjusting device side and the worker on the two-dimensional code reading device side, and the positioning of the two-dimensional code reading device becomes easy.

請求項2の発明では、所定回転手段で表示される二次元コードを所定角度回転させられる。角度回転手段で、表示される二次元コードを入力された角度回転させられる。このため、例えばモニター等の画像表示手段に表示される二次元コードの角度調整が容易である。 In the invention of claim 2, the two-dimensional code displayed by the predetermined rotation means can be rotated by a predetermined angle. With the angle rotation means, the displayed two-dimensional code can be rotated by the input angle. Therefore, it is easy to adjust the angle of the two-dimensional code displayed on the image display means such as a monitor.

請求項3の発明では、二次元コードに対する作業者の位置を入力する位置入力手段と、作業者の位置から見える二次元コードの向きと、画像取得手段で表示される二次元コードの向きとを合わせる向き調整手段と、を備える。このため、設置位置調整装置側の作業者と二次元コード読取装置側の作業者との連帯が取りやすくなり、二次元コード読取装置の位置合わせが容易になる。 In the invention of claim 3, the position input means for inputting the position of the worker with respect to the two-dimensional code, the direction of the two-dimensional code seen from the position of the worker, and the direction of the two-dimensional code displayed by the image acquisition means are determined. It is provided with a matching orientation adjusting means. Therefore, it becomes easy to establish solidarity between the operator on the installation position adjusting device side and the operator on the two-dimensional code reading device side, and it becomes easy to align the two-dimensional code reading device.

請求項4の発明では、撮像された二次元コードと、撮像された二次元コードに対する作業者の位置とを同時に画像表示手段で表示させることで、作業者の二次元コードに対する位置を入力させる。このため、二次元コード読取装置側の作業者の位置を容易に入力することができる。 In the invention of claim 4, the imaged two-dimensional code and the position of the worker with respect to the captured two-dimensional code are simultaneously displayed by the image display means, so that the position of the worker with respect to the two-dimensional code is input. Therefore, the position of the operator on the two-dimensional code reading device side can be easily input.

請求項5の発明では、撮像された二次元コードの特徴から角度ずれを検出するため、容易に角度ずれを検出することができる。 In the invention of claim 5, since the angle deviation is detected from the feature of the captured two-dimensional code, the angle deviation can be easily detected.

請求項6の発明では、取得した二次元コードの画像から二次元コードの傾きを検出し、検出された二次元コードの傾きを画像表示手段で表示する。このため、作業者はモニター等の画像表示手段上で二次元コードの傾きを視認することができる。 In the invention of claim 6, the tilt of the two-dimensional code is detected from the acquired image of the two-dimensional code, and the tilt of the detected two-dimensional code is displayed by the image display means. Therefore, the operator can visually recognize the inclination of the two-dimensional code on an image display means such as a monitor.

請求項7の発明では、地面からの傾きを取得し、取得した傾きから二次元コード読取装置の傾きを画像表示手段で表示する。このため、作業者はモニター等の画像表示手段上で二次元コード読取装置の傾きを視認することができる。 In the invention of claim 7, the inclination from the ground is acquired, and the inclination of the two-dimensional code reading device is displayed by the image display means from the acquired inclination. Therefore, the operator can visually recognize the inclination of the two-dimensional code reading device on an image display means such as a monitor.

請求項8の発明では、取得した二次元コードの画像から、上下の辺と左右の辺の長さを比較し、差が大きいと判断した際に、取得した二次元コードの画像を複数のセルに分割し、各セルの大きさを比較することで傾きを判定する。このため、適切に二次元コードの傾きを検出することができる。 In the invention of claim 8, when the lengths of the upper and lower sides and the left and right sides are compared from the acquired two-dimensional code image and it is determined that the difference is large, the acquired two-dimensional code image is displayed in a plurality of cells. The inclination is determined by dividing the cells into two and comparing the sizes of each cell. Therefore, the inclination of the two-dimensional code can be appropriately detected.

請求項9の発明では、取得した二次元コードの傾きを3次元グラフとしてモニター等の画像表示手段で表示する。このため、作業者に理解し易いように3次元グラフで二次元コードの傾きが表示される。 In the invention of claim 9, the slope of the acquired two-dimensional code is displayed as a three-dimensional graph by an image display means such as a monitor. Therefore, the slope of the two-dimensional code is displayed on the three-dimensional graph so that the operator can easily understand it.

請求項10の発明では、読み取りの焦点を合わせ、取得した二次元コードの画像を複数のセルに分割し、分割したセルの内、焦点が最も合っているセルを検出し、そのセルを二次元コード読取装置との距離を焦点距離とし、焦点距離のセルと、他の分割したセルとの大きさの比較から他の分割したセルまでの距離を推定し、3次元グラフとして画像表示手段で表示する。このため、作業者に理解し易いように3次元グラフで二次元コードの傾きが表示される。 In the invention of claim 10, the reading is focused, the acquired image of the two-dimensional code is divided into a plurality of cells, the cell with the best focus is detected among the divided cells, and the cell is two-dimensional. The distance to the code reader is used as the focal length, and the distance to the other divided cells is estimated from the size comparison between the focal length cell and the other divided cells, and displayed as a three-dimensional graph by the image display means. To do. Therefore, the slope of the two-dimensional code is displayed on the three-dimensional graph so that the operator can easily understand it.

請求項11の発明では、読み取りの焦点を合わせ、オートフォーカス中の各距離毎のオートフォーカス評価値をグラフ表示し、グラフ中に表示されるピークが選択された際に、当該ピークに対応する位置を、画像表示手段の表示画像中に表示する。作業者は適切に距離を合わせることができたかを確認することができる。 In the invention of claim 11, when the reading is focused, the autofocus evaluation value for each distance during autofocus is displayed as a graph, and the peak displayed in the graph is selected, the position corresponding to the peak is selected. Is displayed in the display image of the image display means. The worker can confirm whether the distance can be adjusted appropriately.

請求項12の発明では、検出された二次元コードの角度ずれを、画像表示手段で表示させるため、二次元コードの角度ずれの修正が容易である。また、撮像した二次元コードに、マージンを付加して画像表示手段で表示させるため、撮像範囲内にマージンが納まっているかを容易に確認でき、二次元コードを読み取りが確実にできる位置に位置合わせすることができる。 In the invention of claim 12, since the detected angle deviation of the two-dimensional code is displayed by the image display means, it is easy to correct the angle deviation of the two-dimensional code. In addition, since a margin is added to the captured two-dimensional code and displayed by the image display means, it is easy to check whether the margin is within the imaging range, and the two-dimensional code is aligned at a position where it can be read reliably. can do.

請求項13の発明では、二次元コードの角度ずれが大きいと判断された際に、角度ずれが大きいことを指示するため、二次元コードの角度が大きくずれ、読み取り時間が長くなることを防ぐことができる。 In the invention of claim 13, when it is determined that the angle deviation of the two-dimensional code is large, it is instructed that the angle deviation is large, so that the angle of the two-dimensional code is greatly deviated and the reading time is long. Can be done.

請求項14の発明では、二次元コードの角度ずれが大きいと判断された際に、角度ずれが大きいことを指示すると共に、撮像した二次元コードの位置合わせ用のマーカを画像表示手段に表示する。このため、二次元コードの角度ずれが大きい場合でも、マーカを用いて二次元コードの位置を容易に調整することができる。 In the invention of claim 14, when it is determined that the angle deviation of the two-dimensional code is large, it is instructed that the angle deviation is large, and a marker for aligning the captured two-dimensional code is displayed on the image display means. .. Therefore, even when the angle deviation of the two-dimensional code is large, the position of the two-dimensional code can be easily adjusted by using the marker.

請求項15の発明では、マージンが撮像範囲内にあるか否かを判断し、撮像範囲外であると判断した際に、マージンが撮像範囲外であることを指示する。撮像範囲内にマージンを納めることで、二次元コードを確実に読み取ることができる。 In the invention of claim 15, it is determined whether or not the margin is within the imaging range, and when it is determined that the margin is outside the imaging range, it is instructed that the margin is outside the imaging range. By keeping the margin within the imaging range, the two-dimensional code can be read reliably.

請求項16の発明では、マージン内に二次元コード以外のデータがあるか否かを判断し、二次元コード以外のデータがあると判断した際に、二次元コード以外のデータがあることを指示する。マージン内に他のデータを存在させないことで、二次元コードを確実に読み取ることができる。 In the invention of claim 16, it is determined whether or not there is data other than the two-dimensional code in the margin, and when it is determined that there is data other than the two-dimensional code, it is instructed that there is data other than the two-dimensional code. To do. By making no other data exist in the margin, the two-dimensional code can be read reliably.

請求項17の発明では、撮像された二次元コードの角度ずれを検出し、検出された角度ずれを補正し、設定された左右上下方向で二次元コードを画像表示手段で表示させる。同時に、二次元コードの付けられた読み取り対象物Wを、二次元コードが回転された角度に対応して回転させて表示する。このため、設置位置調整装置側の作業者と、二次元コード読取装置側の作業者との連携が取りやすくなり、二次元コード読取装置の位置合わせが容易になる。 In the invention of claim 17, the angle deviation of the captured two-dimensional code is detected, the detected angle deviation is corrected, and the two-dimensional code is displayed by the image display means in the set left-right and up-down directions. At the same time, the reading object W to which the two-dimensional code is attached is displayed by rotating it according to the angle at which the two-dimensional code is rotated. Therefore, it becomes easy to cooperate with the worker on the installation position adjusting device side and the worker on the two-dimensional code reading device side, and the positioning of the two-dimensional code reading device becomes easy.

請求項18、請求項19の発明では、画像データを撮像し、画像データのコード位置情報から、画像データのコードもしくはコード周辺の画像特徴量を算出し、画像特徴量を記憶する。そして、記憶された複数の画像特徴量から、画像データの撮像された環境の一致度を算出し、算出された一致度が高くなる画像データの撮像された環境を指示する。このため、製造ラインの整備等で、二次元コード読取装置が取り外されても、作業者は容易に取り外し前の位置に二次元コード読取装置を付け直すことができる。 In the inventions of claims 18 and 19, image data is imaged, the code of the image data or the image feature amount around the code is calculated from the code position information of the image data, and the image feature amount is stored. Then, the degree of coincidence of the imaged environment of the image data is calculated from the plurality of stored image feature amounts, and the imaged environment in which the calculated degree of coincidence is high is instructed. Therefore, even if the two-dimensional code reading device is removed due to maintenance of the manufacturing line or the like, the operator can easily reattach the two-dimensional code reading device to the position before the removal.

請求項20の発明では、任意のタイミングで画像データを取得し、画像特徴量を記憶できる。このため、作業者は取り外し前に画像データを取得しておくことで、取り外し後に、容易に取り外し前の位置に二次元コード読取装置を付け直すことができる。 In the invention of claim 20, image data can be acquired at an arbitrary timing and the image feature amount can be stored. Therefore, by acquiring the image data before the removal, the operator can easily reattach the two-dimensional code reading device to the position before the removal after the removal.

請求項21の発明では、設定されたタイミングで画像データを取得し、画像特徴量を記憶できる。このため、作業者は取り外し前に自動で取得された画像データに基づき、取り外し後に、容易に取り外し前の位置に二次元コード読取装置を付け直すことができる。 In the invention of claim 21, image data can be acquired at a set timing and an image feature amount can be stored. Therefore, the operator can easily reattach the two-dimensional code reading device to the position before removal after removal based on the image data automatically acquired before removal.

請求項22の発明では、環境の一致度が、設定された閾値を超えた場合に読み取り環境の一致を通知する。作業者に取り外し前の位置に二次元コード読取装置を付け直せたことが通知される。 In the invention of claim 22, when the degree of matching of the environment exceeds the set threshold value, the matching of the reading environment is notified. The operator is notified that the two-dimensional code reader can be reattached to the position before removal.

請求項23の発明では、画像特徴量は、コード位置情報から得られる外形位置情報である。このため、適切に画像特徴量が得られる。 In the invention of claim 23, the image feature amount is the external position information obtained from the code position information. Therefore, the image feature amount can be appropriately obtained.

請求項24の発明では、外形位置情報はQRコードのファインダパターンである。適切に外形位置情報が得られる。 In the invention of claim 24, the external position information is a finder pattern of a QR code. External position information can be obtained appropriately.

請求項25の発明では、外形位置情報はコードないしコード周辺のエッジ情報である。適切に外形位置情報が得られる。 In the invention of claim 25, the external position information is the code or the edge information around the code. External position information can be obtained appropriately.

請求項26の発明では、コードないしコード周辺の輝度情報から輝度勾配情報を取得し、画像特徴量とする。容易にダイレクトマーキングのQRコードから画像特徴量が得られる。 In the invention of claim 26, the luminance gradient information is acquired from the luminance information of the cord or the periphery of the cord and used as the image feature amount. Image features can be easily obtained from the QR code of direct marking.

請求項27の発明では、撮像視野方向を示すエイマー光照射装置を備え、二次元コードの付けられた対象物に照射されたエイマー光を検出する。画像特徴量はエイマー光形状情報であるである。このため、適切に画像特徴量が得られる。 In the invention of claim 27, the aimer light irradiation device indicating the imaging field of view direction is provided, and the aimer light irradiated to the object to which the two-dimensional code is attached is detected. The image feature amount is Aimer optical shape information. Therefore, the image feature amount can be appropriately obtained.

請求項28の発明では、オートフォーカス機能により二次元コードの付けられた対象物までの距離を測定する。画像特徴量は対象物までの距離情報である。作業者は、取り外し後に、容易に取り外し前の距離に二次元コード読取装置を付け直すことができる。 In the invention of claim 28, the distance to the object to which the two-dimensional code is attached is measured by the autofocus function. The image feature amount is the distance information to the object. After removal, the operator can easily reattach the two-dimensional code reader to the distance before removal.

請求項29の発明では、画像特徴量に基づき作成した特徴画像を作成し、画像データと重ねて特徴画像を表示する。例えば、四角の枠から成る特徴画像と、画像表示された二次元コードとを重ねるように調整することで、作業者は、取り外し後に、容易に取り外し前の位置に二次元コード読取装置を付け直すことができる。 In the invention of claim 29, a feature image created based on an image feature amount is created, and the feature image is displayed by superimposing it on the image data. For example, by adjusting the feature image consisting of a square frame and the two-dimensional code displayed in the image so as to overlap each other, the operator can easily reattach the two-dimensional code reader to the position before removal after removal. be able to.

請求項30の発明では、モニター等の表示手段が二次元コード読取装置に内蔵されている。このため、二次元コード読取装置単体で、作業者は、取り外し後に、容易に取り外し前の位置に二次元コード読取装置を付け直すことができる。 In the invention of claim 30, a display means such as a monitor is built in the two-dimensional code reading device. Therefore, with the two-dimensional code reading device alone, the operator can easily reattach the two-dimensional code reading device to the position before the removal after the removal.

請求項31の発明は、モニター等の表示手段が二次元コード読取装置に接続された機器に備えられる。二次元コード読取装置に接続された機器の作業者は、二次元コード読取装置側の作業者に、復元位置の指示を送ることができる。 The invention of claim 31 is provided in a device in which a display means such as a monitor is connected to a two-dimensional code reading device. The operator of the device connected to the two-dimensional code reader can send an instruction of the restoration position to the operator on the two-dimensional code reader side.

請求項32の発明は、表示LEDにより環境一致指示を行う。簡易な構成の二次元コード読取装置単体で、作業者は、取り外し後に、取り外し前の位置に二次元コード読取装置を付け直すことができる。 In the invention of claim 32, an environment matching instruction is given by a display LED. With a simple configuration of the two-dimensional code reading device alone, the operator can reattach the two-dimensional code reading device to the position before the removal after the removal.

請求項34、請求項35の発明では、複数の二次元コードを読み取る際に、最重要な二次元コードを位置調整対象に指定することで、当該二次元コードを確実に読み取れるように二次元コード読取装置を調整することができる。更に、位置調整対象に指定された以外の二次元コードの読み取り条件を個々に調整し、調整結果を保持することで、当該調整位置の二次元コード読取装置で、指定された以外の二次元コードも短時間でほぼ確実に読み取れるようになる。 In the invention of claim 34 and 35, when reading a plurality of two-dimensional codes, the most important two-dimensional code is designated as the position adjustment target, so that the two-dimensional code can be read reliably. The reading device can be adjusted. Furthermore, by individually adjusting the reading conditions of the two-dimensional code other than the one specified as the position adjustment target and holding the adjustment result, the two-dimensional code reading device at the adjustment position uses the two-dimensional code other than the one specified. Will almost certainly be readable in a short time.

請求項36の発明では、調整結果を保持する二次元コード読取装置は、位置調整対象に指定された以外の二次元コードの読み取りの際に、個々に保持した条件に調整する。このため、二次元コード読取装置で、指定された以外の二次元コードも短時間でほぼ確実に読み取れる。 In the invention of claim 36, the two-dimensional code reading device that holds the adjustment result adjusts to the individually held conditions when reading the two-dimensional code other than the one designated as the position adjustment target. Therefore, the two-dimensional code reader can almost certainly read a two-dimensional code other than the specified one in a short time.

請求項37の発明では、個々の二次元コードに番号を付して画像表示手段に表示する。容易に位置調整対象の二次元コードを指定できる。 In the invention of claim 37, individual two-dimensional codes are numbered and displayed on the image display means. You can easily specify the two-dimensional code to be adjusted.

請求項38の発明では、個々の二次元コードを色分けして画像表示手段に表示する。容易に位置調整対象の二次元コードを指定できる。 In the invention of claim 38, each two-dimensional code is color-coded and displayed on the image display means. You can easily specify the two-dimensional code to be adjusted.

請求項39の発明では、位置調整対象の二次元コードの指定を、色分けされた内の色選択により行わせる。容易に位置調整対象の二次元コードを指定できる。 In the invention of claim 39, the two-dimensional code to be adjusted is specified by color selection among the color-coded ones. You can easily specify the two-dimensional code to be adjusted.

請求項40の発明では、位置調整対象に指定された二次元コードの特定は、二次元コードに付され表示されるカーソルである。確実に確認できるように位置調整対象の二次元コードを特定できる。 In the invention of claim 40, the identification of the two-dimensional code designated as the position adjustment target is the cursor attached to and displayed on the two-dimensional code. The two-dimensional code to be adjusted can be specified so that it can be confirmed reliably.

請求項41の発明では、位置調整対象に指定された二次元コードの読み取り条件を表示する。作業者は読み取り条件の確認が行える。 In the invention of claim 41, the reading condition of the two-dimensional code designated as the position adjustment target is displayed. The operator can check the reading conditions.

実施形態に係る設置位置調整装置と二次元コード読取装置との説明図である。It is explanatory drawing of the installation position adjustment apparatus and 2D code reading apparatus which concerns on embodiment. 実施形態に係る設置位置調整装置の回路構成を示すブロック図である。It is a block diagram which shows the circuit structure of the installation position adjustment apparatus which concerns on embodiment. 実施形態に係る二次元コード読取装置の回路構成を示すブロック図である。It is a block diagram which shows the circuit structure of the 2D code reading apparatus which concerns on embodiment. 第1実施形態に係る設置位置調整装置の位置調整画像の説明図である。It is explanatory drawing of the position adjustment image of the installation position adjustment apparatus which concerns on 1st Embodiment. 第1実施形態に係る設置位置調整装置の位置調整画像の説明図である。It is explanatory drawing of the position adjustment image of the installation position adjustment apparatus which concerns on 1st Embodiment. 第1実施形態に係る設置位置調整装置の作業者の立ち位置調整画像の説明図である。It is explanatory drawing of the standing position adjustment image of the worker of the installation position adjustment apparatus which concerns on 1st Embodiment. 第1実施形態に係る設置位置調整装置の傾き表示画像の説明図である。It is explanatory drawing of the tilt display image of the installation position adjustment apparatus which concerns on 1st Embodiment. 第1実施形態に係る設置位置調整装置の傾き表示画像の説明図である。It is explanatory drawing of the tilt display image of the installation position adjustment apparatus which concerns on 1st Embodiment. 図9(A)は、第1実施形態に係る設置位置調整装置のQRコードの傾き検出処理の説明図であり、図9(B)は、データマトリクスの傾き検出処理の説明図である。FIG. 9A is an explanatory diagram of the QR code tilt detection process of the installation position adjusting device according to the first embodiment, and FIG. 9B is an explanatory diagram of the tilt detection process of the data matrix. 図10(A)は、第1実施形態の設置位置調整装置でのメイン処理を示すフローチャートであり、図10(B)は図10(A)中の位置入力サブルーチン処理を示すフローチャートである。FIG. 10 (A) is a flowchart showing the main process in the installation position adjusting device of the first embodiment, and FIG. 10 (B) is a flowchart showing the position input subroutine process in FIG. 10 (A). 図11(A)は角度ずれ補正のサブルーチン処理を示すフローチャートであり、図11(B)は二次元コードの回転処のサブルーチン処理を示すフローチャートであり、図11(C)は角度調整のサブルーチン処理を示すフローチャートである。FIG. 11A is a flowchart showing the subroutine processing of the angle deviation correction, FIG. 11B is a flowchart showing the subroutine processing of the rotation process of the two-dimensional code, and FIG. 11C is the subroutine processing of the angle adjustment. It is a flowchart which shows. 図12(A)は二次元コードの傾斜表示のサブルーチン処理を示すフローチャートであり、図12(A)は二次元コード読取装置の傾斜表示のサブルーチン処理を示すフローチャートである。FIG. 12A is a flowchart showing the subroutine processing of the tilt display of the two-dimensional code, and FIG. 12A is a flowchart showing the subroutine processing of the tilt display of the two-dimensional code reader. 三次元グラフ表示のサブルーチン処理を示すフローチャートである。It is a flowchart which shows the subroutine processing of the three-dimensional graph display. オートフォーカスのサブルーチン処理を示すフローチャートである。It is a flowchart which shows the subroutine processing of autofocus. 図15(A)、図15(B)は傾き処理の説明図であり、図15(C)は三次元画像作成処理の説明図である。15 (A) and 15 (B) are explanatory views of the tilt process, and FIG. 15 (C) is an explanatory view of the three-dimensional image creation process. 傾きの三次元画像の説明図である。It is explanatory drawing of the three-dimensional image of inclination. 第1実施形態に係る設置位置調整装置のオートフォーカス表示画像の説明図であるIt is explanatory drawing of the autofocus display image of the installation position adjustment apparatus which concerns on 1st Embodiment. 第1実施形態に係る設置位置調整装置のオートフォーカス評価値のグラフ作成の説明図である。It is explanatory drawing of graph making of the autofocus evaluation value of the installation position adjustment apparatus which concerns on 1st Embodiment. 図19(A)は、第1実施形態に係る設置位置調整装置のマージン表示画像の説明図であり、図19(B)は、第1実施形態に係る設置位置調整装置の角度合わせマーカ表示画像の説明図である。FIG. 19A is an explanatory view of a margin display image of the installation position adjusting device according to the first embodiment, and FIG. 19B is an angle matching marker display image of the installation position adjusting device according to the first embodiment. It is explanatory drawing of. 図20(A)は、第1実施形態に係る設置位置調整装置のマージンはみ出し表示画像の説明図であり、図20(B)は、第1実施形態に係る設置位置調整装置のコード以外のデータ存在表示画像の説明図である。FIG. 20A is an explanatory view of a margin protruding display image of the installation position adjusting device according to the first embodiment, and FIG. 20B is data other than the code of the installation position adjusting device according to the first embodiment. It is explanatory drawing of the existence display image. マージン表示のサブルーチン処理を示すフローチャートである。It is a flowchart which shows the subroutine processing of a margin display. 図22(A)は、第2実施形態に於ける任意タイミングでの画像特徴量取得のためのサブルーチン処理を示し、図22(B)は、所定周期での画像特徴量自動取得のためのサブルーチン処理を示す。FIG. 22A shows a subroutine process for acquiring an image feature amount at an arbitrary timing in the second embodiment, and FIG. 22B shows a subroutine for automatically acquiring an image feature amount at a predetermined cycle. Indicates processing. 図23(A)は、第2実施形態に於ける取り外された二次元コード読取装置を元の位置に付け直す際のサブルーチン処理を示し、図23(B)は、輝度情報に基づき画像特徴量が算出されるためのサブルーチン処理を示し、図23(C)はエイマー光り形状情報に基づき画像特徴量が算出されるためのサブルーチン処理を示す。FIG. 23 (A) shows a subroutine process for reattaching the removed two-dimensional code reader in the second embodiment to the original position, and FIG. 23 (B) shows an image feature amount based on the luminance information. The subroutine processing for calculating the image feature amount is shown, and FIG. 23C shows the subroutine processing for calculating the image feature amount based on the Amer light shape information. 図24(A)は、第2実施形態に於ける特徴画像が撮像画像に重ねらる画像を作成する際のサブルーチン処理を示し、図24(B)は、マトリクス状に分割されたブロックで一致度が高いブロックを特定する際のサブルーチン処理を示す。FIG. 24 (A) shows a subroutine process for creating an image in which the feature image in the second embodiment is superimposed on the captured image, and FIG. 24 (B) shows the blocks divided into a matrix. The subroutine processing when identifying a block with a high degree is shown. 図25(A)、図25(B)は、特徴画像Pが、撮像画像に重ねられている画像の説明図である。25 (A) and 25 (B) are explanatory views of an image in which the feature image P is superimposed on the captured image. マトリクス状に分割されたブロックで一致度が高いブロックを特定する画像の説明図である。It is explanatory drawing of the image which identifies the block which has a high degree of agreement among the blocks divided in a matrix form. 第1実施形態に係る複数のQRコードの表示画像の説明図である。It is explanatory drawing of the display image of the plurality of QR codes which concerns on 1st Embodiment. 第1実施形態の改変例に係る複数のQRコードの表示画像の説明図である。It is explanatory drawing of the display image of the plurality of QR codes which concerns on the modification of 1st Embodiment. 第1実施形態に係る複数のQRコードの表示画像の説明図である。It is explanatory drawing of the display image of the plurality of QR codes which concerns on 1st Embodiment. 第1実施形態に係るQRコードの撮像設定値の表示画像の説明図である。It is explanatory drawing of the display image of the imaging set value of the QR code which concerns on 1st Embodiment. 第1実施形態に係る複数のQRコードの撮像サブルーチン処理を示すフローチャートである。It is a flowchart which shows the image pickup subroutine processing of a plurality of QR codes which concerns on 1st Embodiment. 第1実施形態の改変例に係る複数のQRコードの撮像サブルーチン処理を示すフローチャートである。It is a flowchart which shows the image pickup subroutine processing of a plurality of QR codes which concerns on the modification of 1st Embodiment. 二次元コード読取装置での複数のQRコードの撮像処理のフローチャートである。It is a flowchart of the imaging process of a plurality of QR codes by a two-dimensional code reader. QRコードの撮像条件表示の処理を示すフローチャートである。It is a flowchart which shows the process of displaying the imaging condition of a QR code.

[第1実施形態]
以下、本発明の第1実施形態に係る設置位置調整装置について図1〜図18を参照して説明する。
図1は、第1実施形態に係る設置位置調整装置と二次元コード読取装置との説明図である。
第1実施形態の設置位置調整は、設置位置調整装置の制御プログラムが設定されたコンピュータ10と、QRコードを読み取る固定式の二次元コード読取装置110とで行われる。QRコードは図示されない読み取り対象物に付けられている。対象物は図示されない製造ライン上に搬送され、対象物のQRコードが二次元コード読取装置110で読み取られる。
[First Embodiment]
Hereinafter, the installation position adjusting device according to the first embodiment of the present invention will be described with reference to FIGS. 1 to 18.
FIG. 1 is an explanatory diagram of an installation position adjusting device and a two-dimensional code reading device according to the first embodiment.
The installation position adjustment of the first embodiment is performed by the computer 10 in which the control program of the installation position adjustment device is set and the fixed two-dimensional code reading device 110 that reads the QR code. The QR code is attached to a reading object (not shown). The object is transported on a production line (not shown), and the QR code of the object is read by the two-dimensional code reading device 110.

ここでは、固定式の二次元コード読取装置110の読み取り範囲に入っている読み取り対象二次元コードの設置位置を手作業で読み取り範囲の中央へ入れるための微調整が行われる。一人の作業者が設置位置調整装置10のモニター15が表示する読み取り画像を見ながら、二次元コード読取装置110側の作業者に設置位置を上下左右等指示して読み取り対象のQRコードを相対移動させる。ここでは、二次元コード読取装置110側の設定位置が調整されるものとして以降の説明が続けられる。二次元コードの相対移動であるため、二次元コード側の位置が調整される場合も有り得る。 Here, fine adjustment is performed so that the installation position of the two-dimensional code to be read, which is within the reading range of the fixed two-dimensional code reading device 110, is manually placed in the center of the reading range. While one worker sees the read image displayed by the monitor 15 of the installation position adjusting device 10, he instructs the worker on the two-dimensional code reading device 110 side of the installation position up, down, left and right, etc. and moves the QR code to be read relative to each other. Let me. Here, the following description will be continued assuming that the set position on the two-dimensional code reading device 110 side is adjusted. Since it is a relative movement of the two-dimensional code, the position on the two-dimensional code side may be adjusted.

コンピュータ10は、例えばパーソナルコンピュータとして構成されており、図2に示すように、主に、CPU11、ROM12及びRAM13などのメモリ、ハードディスクドライブ(以下HDDとも称する)14を備えている。また、CPU11には、バス18を介して、モニター15、入力部16、通信部17が制御可能に接続されている。通信部17を介して二次元コード読取装置110との通信が行われる。なお、図示はしていないが、バス18に接続された各回路とCPU11との間の入出力制御を行う入出力コントローラなども設けられている。 The computer 10 is configured as, for example, a personal computer, and as shown in FIG. 2, mainly includes a memory such as a CPU 11, a ROM 12 and a RAM 13, and a hard disk drive (hereinafter, also referred to as an HDD) 14. Further, the monitor 15, the input unit 16, and the communication unit 17 are connected to the CPU 11 in a controllable manner via the bus 18. Communication with the two-dimensional code reading device 110 is performed via the communication unit 17. Although not shown, an input / output controller that controls input / output between each circuit connected to the bus 18 and the CPU 11 is also provided.

モニター15は、液晶表示装置等の公知の表示装置によって構成されており、CPU11からの指令に基づいて各種画像を表示するように機能する。また、入力部16は、キーボードやマウスなどの入力手段によって構成されており、ユーザの操作に応じて各種情報を入力するように機能する。 The monitor 15 is composed of a known display device such as a liquid crystal display device, and functions to display various images based on a command from the CPU 11. Further, the input unit 16 is composed of input means such as a keyboard and a mouse, and functions to input various information according to the operation of the user.

通信部17は、アプリケーションプログラム22等によって生成されたデータを接続されたデバイス等に送信したり、或いはデバイス等からのデータを受信するように機能するものであり、通信インタフェースと、USBポートを含めた複数の通信ポートとを備えた構成をなしている。各通信ポートは、シリアルコネクタやパラレルコネクタとして構成されており、RS232CケーブルやUSBケーブルなどの通信ケーブルを介して各種通信機器(例えば、他のコンピュータ、外部記憶装置、その他の情報処理装置等)が接続される構成をなしている。また、通信インタフェースは、各通信ポートを介したデータの入出力制御を行うように構成されている。 The communication unit 17 functions to transmit the data generated by the application program 22 or the like to the connected device or the like, or to receive the data from the device or the like, and includes the communication interface and the USB port. It is configured to have a plurality of communication ports. Each communication port is configured as a serial connector or a parallel connector, and various communication devices (for example, other computers, external storage devices, other information processing devices, etc.) can be connected via a communication cable such as an RS232C cable or a USB cable. It is configured to be connected. Further, the communication interface is configured to perform input / output control of data via each communication port.

CPU11は、必要に応じ、上記入力部16にて入力された情報の取得、モニター15に対する表示制御、ROM12、RAM13、HDD14に対する読み取り又は書き込みの制御、或いは、通信部17の制御を行う。HDD14には、オペレーティングシステム(以下、OSともいう)21や各種のアプリケーションプログラム22等のプログラムがインストールされて格納されており、CPU11は、OS21の制御の下、アプリケーションプログラム22等のプログラムをRAM13にロードして実行することで、各種処理を行うように構成されている。 The CPU 11 acquires information input by the input unit 16, controls display on the monitor 15, controls reading or writing to the ROM 12, RAM 13, and HDD 14, or controls the communication unit 17, as necessary. Programs such as an operating system (hereinafter, also referred to as OS) 21 and various application programs 22 are installed and stored in the HDD 14, and the CPU 11 transfers programs such as the application program 22 into the RAM 13 under the control of the OS 21. It is configured to perform various processes by loading and executing.

図3は、第1実施形態に係る二次元コード読取装置の回路構成を示すブロック図である。
二次元コード読取装置110は操作部(図示されず)、液晶表示装置46などを備えている。操作部には、例えば複数のスイッチ42が設けられ、これらスイッチ42により、動作内容を指示するようになっている。二次元コード読取装置110の筐体61の前端に形成された開口部(読取口)62には後述する光学系ユニットが配置されている。
FIG. 3 is a block diagram showing a circuit configuration of the two-dimensional code reading device according to the first embodiment.
The two-dimensional code reading device 110 includes an operation unit (not shown), a liquid crystal display device 46, and the like. For example, a plurality of switches 42 are provided in the operation unit, and these switches 42 instruct the operation contents. An optical system unit described later is arranged in an opening (reading port) 62 formed at the front end of the housing 61 of the two-dimensional code reading device 110.

二次元コード読取装置110は、QRコード等の二次元コードの光学情報の読み取りが可能なように構成されている。二次元コード読取装置110には、回路部112が設けられている。回路部112は、主に、発光ダイオード51、集光レンズ54、撮像器53、結像レンズ57等の光学系と、メモリ35、制御回路40、スイッチ42、液晶表示装置46等のマイクロコンピュータ(以下「マイコン」という)系と、から構成されている。 The two-dimensional code reading device 110 is configured to be capable of reading optical information of a two-dimensional code such as a QR code. The two-dimensional code reading device 110 is provided with a circuit unit 112. The circuit unit 112 mainly includes an optical system such as a light emitting diode 51, a condenser lens 54, an imager 53, and an imaging lens 57, and a microcomputer such as a memory 35, a control circuit 40, a switch 42, and a liquid crystal display device 46. It is composed of a system (hereinafter referred to as "microcomputer").

まず、光学系の構成概念が説明される。発光ダイオード51は、照明光Lfを照射可能な光照射器として機能するもので、拡散レンズと凸レンズとを組み合わせた集光レンズ54により集光させる。撮像器53は、読取対象物Wに照射されて反射した反射光Lrを結像レンズ57を介して受光可能に構成されるイメージセンサから成る。結像レンズ57は、外部から入射する入射光を集光して撮像器53の受光面53aに像を結像可能な結像光学系として機能する。結像レンズ57には、焦点距離を調整するための調整装置59が設けられている。ここでは、焦点距離を調整するための調整装置が設けられているが、画像データのデータ処理で、焦点距離を調整することも可能である。更に、十字状のエイマー光を照射するためのエイマー光の照射装置58が備えられている。 First, the construct of the optical system will be explained. The light emitting diode 51 functions as a light irradiator capable of irradiating the illumination light Lf, and is condensed by a condenser lens 54 which is a combination of a diffuser lens and a convex lens. The imager 53 includes an image sensor configured to be able to receive the reflected light Lr that is irradiated and reflected by the object W to be read through the imaging lens 57. The imaging lens 57 functions as an imaging optical system capable of condensing incident light incident from the outside and forming an image on the light receiving surface 53a of the imager 53. The imaging lens 57 is provided with an adjusting device 59 for adjusting the focal length. Here, an adjusting device for adjusting the focal length is provided, but it is also possible to adjust the focal length by data processing of image data. Further, an Aimer light irradiating device 58 for irradiating a cross-shaped Aimer light is provided.

次に、マイコン系の構成概要が説明される。マイコン系は、増幅回路31、A/D変換回路33、メモリ35、アドレス発生回路36、同期信号発生回路38、制御回路40、スイッチ42、LED43、ブザー44、液晶表示装置46、LAN通信回路48等から構成されている。このマイコン系は、その名の通り、マイコン(情報処理装置)として機能し得る制御回路40およびメモリ35を中心に構成されるもので、前述した光学系によって撮像された画像信号をハードウェア的およびソフトウェア的に信号処理し得るものである。また制御回路40は、当該二次元コード読取装置110の全体システムに関する制御も行っている。 Next, the outline of the configuration of the microcomputer system will be described. The microcomputer system includes an amplifier circuit 31, an A / D conversion circuit 33, a memory 35, an address generation circuit 36, a synchronization signal generation circuit 38, a control circuit 40, a switch 42, an LED 43, a buzzer 44, a liquid crystal display device 46, and a LAN communication circuit 48. It is composed of etc. 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), and the image signal captured by the above-mentioned optical system is hardware-like and It can process signals as software. The control circuit 40 also controls the entire system of the two-dimensional code reading device 110.

光学系の撮像器53から出力される画像信号(アナログ信号)は、増幅回路31に入力されることで所定ゲインで増幅された後、A/D変換回路33に入力されると、アナログ信号からディジタル信号に変換される。そして、ディジタル化された画像信号、つまり画像データは、メモリ35に入力されて蓄積される。なお、同期信号発生回路38は、撮像器53およびアドレス発生回路36に対する同期信号を発生可能に構成されており、またアドレス発生回路36は、この同期信号発生回路38から供給される同期信号に基づいて、メモリ35に格納される画像データの格納アドレスを発生可能に構成されている。 The image signal (analog signal) output from the imager 53 of the optical system is amplified by a predetermined gain by being input to the amplifier circuit 31, and then input to the A / D conversion circuit 33 from the analog signal. Converted to a digital signal. Then, the digitized image signal, that is, the image data is input to the memory 35 and stored. The synchronization signal generation circuit 38 is configured to be capable of generating a synchronization signal for the imager 53 and the address generation circuit 36, and the address generation circuit 36 is based on the synchronization signal supplied from the synchronization signal generation circuit 38. Therefore, the storage address of the image data stored in the memory 35 can be generated.

制御回路40は、二次元コード読取装置110全体を制御可能なマイコンで、CPU、システムバス、入出力インタフェース等からなるもので、メモリ35とともに情報処理装置を構成し得るもので情報処理機能を有する。この制御回路40には、内蔵された入出力インタフェースを介して種々の入出力装置(周辺装置)と接続可能に構成されており、本実施形態の場合、Gセンサ41、スイッチ42、LED43、ブザー44、液晶表示装置46、LAN通信回路48等が接続されている。制御回路40は、二次元コード及び二次元コードの付けられた対象物を撮像した画像データを、LAN通信回路48により図1中に示されるケーブル70を介して設置位置調整装置を構成するコンピュータ10側へ送信するよう構成されている。 The control circuit 40 is a microcomputer capable of controlling the entire two-dimensional code reading device 110, and includes a CPU, a system bus, an input / output interface, etc., and can form an information processing device together with a memory 35 and has an information processing function. .. The control circuit 40 is configured to be connectable to various input / output devices (peripheral devices) via a built-in input / output interface. In the case of this embodiment, the G sensor 41, the switch 42, the LED 43, and the buzzer are configured. 44, a liquid crystal display device 46, a LAN communication circuit 48, and the like are connected. The control circuit 40 is a computer 10 that constitutes an installation position adjusting device via a cable 70 shown in FIG. 1 by a LAN communication circuit 48 for image data obtained by imaging a two-dimensional code and an object to which the two-dimensional code is attached. It is configured to send to the side.

図4及び図5は、第1実施形態に係る設置位置調整装置の位置調整画像の説明図である。
設置位置調整装置10は、モニター15に、QRコードQの画像と共に、QRコードQの付けられた対象物Wの画像を表示する。モニター画像には、表示内容の回転指示アイコン122、表示内容の回転角度指示アイコン124、表示角度の自動補正アイコン126が表示される。
4 and 5 are explanatory views of a position adjustment image of the installation position adjustment device according to the first embodiment.
The installation position adjusting device 10 displays an image of the object W with the QR code Q on the monitor 15 together with the image of the QR code Q. On the monitor image, a rotation instruction icon 122 of the display content, a rotation angle instruction icon 124 of the display content, and an automatic correction icon 126 of the display angle are displayed.

図4(A)は表示角度調整前の画像を、図4(B)表示角度調整後の画像を表している。
マウス操作等によって、表示内容の回転指示アイコン122が1回クリックされた結果、図4(B)中に示されるように、QRコードQが1/4回転(90°)、反時計方向に回転されると共に、併せて、対象物Wの画像表示が1/4回転(90°)、反時計方向に回転される。同時に、回転角度指示アイコン124に90°回転したことが表示される。ここで、回転指示アイコン122が2回クリックされた場合、1/2(180°)、QRコードが回転して表示される。
FIG. 4A shows an image before adjusting the display angle, and FIG. 4B shows an image after adjusting the display angle.
As a result of clicking the rotation instruction icon 122 of the display content once by operating the mouse or the like, the QR code Q rotates 1/4 (90 °) counterclockwise as shown in FIG. 4 (B). At the same time, the image display of the object W is rotated 1/4 rotation (90 °) in the counterclockwise direction. At the same time, the rotation angle indication icon 124 indicates that the rotation angle has been rotated by 90 °. Here, when the rotation instruction icon 122 is clicked twice, the QR code is rotated and displayed by 1/2 (180 °).

また、設置位置調整装置10は、QRコードの予め設定された上下左右を判断し、設定された上下左右方向に対して何度傾いているかを検出する。
図9(A)に示されるように、二次元コードとしてQRコードに対しては、2個の切り出しシンボルQSが上側にあり、1個の切り出しシンボルQSが左下側にあることが、正しい位置として設定されている場合、読み取ったQRコードの切り出しシンボルQSがどちらにあるかで、正しい位置に対して何度傾いているかが検出される。第1実施形態では、二次元コードの特徴を用いるため、容易に角度ずれを検出することができる。
Further, the installation position adjusting device 10 determines the preset up / down / left / right of the QR code, and detects how many times the QR code is tilted with respect to the set up / down / left / right direction.
As shown in FIG. 9A, the correct position is that two cutout symbols QS are on the upper side and one cutout symbol QS is on the lower left side with respect to the QR code as a two-dimensional code. If it is set, it is detected how many times it is tilted with respect to the correct position depending on which is the cutout symbol QS of the read QR code. In the first embodiment, since the feature of the two-dimensional code is used, the angle deviation can be easily detected.

また、図9(B)に示されるように、二次元コードとしてデータマトリクスDMに対しては、アライメントパターンAPから、上下左右の傾きが判断される。ここでは、アライメントパターンAPが、データマトリクスDMの左側と下側にあることが、正しい位置として設定されている場合、読み取ったデータマトリクスDMのアライメントパターンAPがどちら傾いているかで、正しい位置に対して何度傾いているかが検出される。 Further, as shown in FIG. 9B, the inclination of the data matrix DM as a two-dimensional code is determined from the alignment pattern AP in the vertical and horizontal directions. Here, when it is set as the correct position that the alignment pattern AP is on the left side and the lower side of the data matrix DM, it depends on which position the alignment pattern AP of the read data matrix DM is tilted with respect to the correct position. How many times it is tilted is detected.

図4(A)は表示角度調整前の画像を、図4(B)表示角度調整後の画像を表している。
図4(A)中のQRコードは、図9(A)に示される設定された正しい位置に対して、90°反時計方向に傾いている。このため、図4(A)中で、表示角度の自動補正アイコン126がクリックされると、図4(B)中に示されるように、QRコードQが90°、反時計方向に自動的に回転されると共に、併せて、対象物Wの画像表示が90°、反時計方向に回転される。
FIG. 4A shows an image before adjusting the display angle, and FIG. 4B shows an image after adjusting the display angle.
The QR code in FIG. 4 (A) is tilted 90 ° counterclockwise with respect to the set correct position shown in FIG. 9 (A). Therefore, when the automatic correction icon 126 for the display angle is clicked in FIG. 4 (A), the QR code Q is automatically set to 90 ° counterclockwise as shown in FIG. 4 (B). At the same time, the image display of the object W is rotated by 90 ° in the counterclockwise direction.

第1実施形態の設置位置調整装置では、撮像されたQRコードの角度ずれを検出し、検出された角度ずれを補正し、設定された左右上下方向で二次元コードをモニター15で表示させる。同時に、QRコードの付けられた読み取り対象物Wを、二次元コードが回転された角度に対応して回転させて表示する。このため、設置位置調整装置側の作業者と、二次元コード読取装置側の作業者との連携が取りやすくなり、二次元コード読取装置の位置合わせが容易になる。 In the installation position adjusting device of the first embodiment, the angle deviation of the captured QR code is detected, the detected angle deviation is corrected, and the two-dimensional code is displayed on the monitor 15 in the set left, right, up and down directions. At the same time, the reading object W to which the QR code is attached is displayed by rotating it according to the angle at which the two-dimensional code is rotated. Therefore, it becomes easy to cooperate with the worker on the installation position adjusting device side and the worker on the two-dimensional code reading device side, and the positioning of the two-dimensional code reading device becomes easy.

図5(A)は表示角度調整前の画像を、図5(B)表示角度調整後の画像を表している。
マウス操作等によって、表示内容の回転角度指示アイコン124に45°の回転が指示された結果、図4(B)中に示されるように、QRコードQが45°、反時計方向に回転されると共に、併せて、対象物Wの画像表示が45°、反時計方向に回転される。第1実施形態では、モニター15に表示されるQRコードの角度調整が容易である。
FIG. 5A shows an image before adjusting the display angle, and FIG. 5B shows an image after adjusting the display angle.
As a result of instructing the rotation angle instruction icon 124 of the display content to rotate 45 ° by operating the mouse or the like, the QR code Q is rotated counterclockwise by 45 ° as shown in FIG. 4 (B). At the same time, the image display of the object W is rotated counterclockwise by 45 °. In the first embodiment, the angle of the QR code displayed on the monitor 15 can be easily adjusted.

図10(A)は、設置位置調整装置10での処理のメインルーチンである。設置位置調整装置10は、二次元コード読取装置110から画像を取得し(S12)、画像表示を行う(S14)。そして、サブルーチン処理に入るかが判断され(S16)、サブルーチン処理に入らない場合(S16:No)、S12の処理に戻り、画像が取得される。 FIG. 10A is a main routine of processing in the installation position adjusting device 10. The installation position adjusting device 10 acquires an image from the two-dimensional code reading device 110 (S12) and displays the image (S14). Then, when it is determined whether to enter the subroutine processing (S16) and not to enter the subroutine processing (S16: No), the process returns to the processing of S12 and the image is acquired.

サブルーチン処理に入る場合(S16:Yes)、後述するサブルーチン処理が実行される(S100)。サブルーチン処理が終了するまで(S18:No)、S100に戻り、サブルーチン処理が継続される。サブルーチン処理が終了すると(S18:Yes)、処理表示の終了が指示されているかが判断され(S20)、処理表示の終了が指示されるまで(S20:No)、S12の処理に戻り、処理が継続される。 When entering the subroutine process (S16: Yes), the subroutine process described later is executed (S100). Until the subroutine processing is completed (S18: No), the process returns to S100 and the subroutine processing is continued. When the subroutine process is completed (S18: Yes), it is determined whether the end of the process display is instructed (S20), and until the end of the process display is instructed (S20: No), the process returns to the process of S12 and the process is performed. Will be continued.

図11(A)は、図4を参照して上述した表示角度の自動補正アイコン126での処理を実行するサブルーチン処理を示す。
設置位置調整装置10は、上述したように取得した画像中のQRコードの上下左右を判断し、設定された上下左右方向に対して何度傾いているかを検出する(S122)。そして、表示角度の自動補正アイコン126がクリックされ、ずれ補正の指示があると(S124:Yes)、補正前の図4(A)中のQRコードのように正しい位置に対して、90°反時計方向に傾いている場合、図4(B)中に示されるように、QRコードQが90°、反時計方向に自動的に回転されると共に、併せて、対象物Wの画像表示が90°、反時計方向に回転される(S126)。
FIG. 11A shows a subroutine process for executing the process with the above-mentioned automatic correction icon 126 for the display angle with reference to FIG.
The installation position adjusting device 10 determines the up / down / left / right of the QR code in the acquired image as described above, and detects how many times the QR code is tilted with respect to the set up / down / left / right direction (S122). Then, when the automatic correction icon 126 of the display angle is clicked and an instruction for deviation correction is given (S124: Yes), the display angle is 90 ° counterclockwise with respect to the correct position as in the QR code in FIG. 4 (A) before correction. When tilted clockwise, as shown in FIG. 4B, the QR code Q is automatically rotated 90 ° counterclockwise, and at the same time, the image display of the object W is 90. °, rotated counterclockwise (S126).

図11(B)は、図4を参照して上述した表示内容の回転指示アイコン122での処理を実行するサブルーチン処理を示す。
設置位置調整装置10は、回転指示アイコン122が1回クリックされ、1/4回転が指示された場合(S132:Yes)、図4(A)中の表示されていたQRコードを、図4(B)中に示されるように、QRコードQを反時計方向に1/4回転されると共に、併せて、対象物Wの画像表示が、反時計方向に1/4回転される。
FIG. 11B shows a subroutine process for executing the process of the rotation instruction icon 122 of the display content described above with reference to FIG.
When the rotation instruction icon 122 is clicked once and the 1/4 rotation is instructed (S132: Yes), the installation position adjusting device 10 displays the QR code in FIG. 4 (A) in FIG. 4 (A). As shown in B), the QR code Q is rotated 1/4 counterclockwise, and at the same time, the image display of the object W is rotated 1/4 counterclockwise.

図11(C)は、図5を参照して上述した回転角度指示アイコン124での処理を実行するサブルーチン処理を示す。
設置位置調整装置10は、表示内容の回転角度指示アイコン124に45°の回転が指示され場合(S142:Yes)、図4(B)中に示されるように、QRコードQが45°、反時計方向に回転されると共に、併せて、対象物Wの画像表示が45°、反時計方向に回転される(S144)。
FIG. 11C shows a subroutine process for executing the process with the rotation angle instruction icon 124 described above with reference to FIG.
When the rotation angle indicating icon 124 of the display content is instructed to rotate 45 ° (S142: Yes), the installation position adjusting device 10 has a QR code Q of 45 ° and is counterclockwise, as shown in FIG. 4 (B). At the same time as being rotated clockwise, the image display of the object W is rotated counterclockwise by 45 ° (S144).

図6は、第1実施形態に係る設置位置調整装置の作業者の立ち位置調整画像の説明図である。図6(A)は立ち位置調整前の画像を、図6(B)は立ち位置調整後の確認画像を表している。
設置位置調整装置10は、モニター15に、QRコードに対する作業者の向きを入力する作業者角度指示アイコン128、QRコードQの画像と共に、QRコードに対する作業者の位置を示す作業者アイコンOPを表示する。そして、作業者角度指示アイコン128を介して90°が入力されると、作業者アイコンOPをQRコードに対して90°回転させ表示が成される。この後、作業者の位置が正しく入力されたことを示す、確認操作が行われると、図4(A)に示す表示角度調整の画像に戻る。この際に、図6(A)に示されたQRコードQは、図6(B)に示された作業者側からの正面方向(ここでは、2個の切り出しシンボルQSが下側にあり、1個の切り出しシンボルQSが右上側)と一致するように図4(A)に示す表示角度調整でのQRコードの画像が調整される。第1実施形態では、二次元コード読取装置側の作業者の位置を容易に入力することができる。
FIG. 6 is an explanatory view of a standing position adjustment image of an operator of the installation position adjustment device according to the first embodiment. FIG. 6A shows an image before the standing position adjustment, and FIG. 6B shows a confirmation image after the standing position adjustment.
The installation position adjusting device 10 displays on the monitor 15 the worker angle indicating icon 128 for inputting the direction of the worker with respect to the QR code, the image of the QR code Q, and the worker icon OP indicating the position of the worker with respect to the QR code. To do. Then, when 90 ° is input via the worker angle indicating icon 128, the worker icon OP is rotated by 90 ° with respect to the QR code to display the display. After that, when the confirmation operation indicating that the position of the operator is correctly input is performed, the image returns to the image of the display angle adjustment shown in FIG. 4 (A). At this time, the QR code Q shown in FIG. 6 (A) is in the front direction from the worker side shown in FIG. 6 (B) (here, the two cutout symbols QS are on the lower side). The image of the QR code in the display angle adjustment shown in FIG. 4A is adjusted so that one cutout symbol QS coincides with the upper right side). In the first embodiment, the position of the operator on the two-dimensional code reading device side can be easily input.

図10(B)は、図6を参照して上述した作業者の立ち位置調整での処理を実行するサブルーチン処理を示す。
設置位置調整装置10は、作業者の位置入力を開始する指示を受けると(S102)、図6(A)に示される立ち位置調整の画像をモニター15に表示する(S104)。そして、作業者の位置の角度が入力されると(S106)、図6(B)に示されるように入力された角度分、作業者アイコンOPをQRコードに対して回転させれ表示が成される(S108)。そして、作業者の位置が正しく入力できたことを示す確認操作(例えば、図示しない「確認」のアイコンのクリック)が成されると(S110:Yes)、作業者の位置(角度)が設定され(S112)、図4(A)に示す表示角度調整の画像に戻る(S114)。この際に、図6(A)に示されたQRコードQは、図6(B)に示された作業者側からの正面方向(ここでは、2個の切り出しシンボルQSが下側にあり、1個の切り出しシンボルQSが右上側)と一致するように図4(A)に示す表示角度調整でのQRコードの画像が調整される。第1実施形態では、設置位置調整装置側の作業者と二次元コード読取装置側の作業者との連帯が取りやすくなり、二次元コード読取装置の位置合わせが容易になる。
FIG. 10B shows a subroutine process for executing the process of adjusting the standing position of the worker described above with reference to FIG.
When the installation position adjusting device 10 receives an instruction to start the position input of the operator (S102), the installation position adjusting device 10 displays the image of the standing position adjustment shown in FIG. 6 (A) on the monitor 15 (S104). Then, when the angle of the position of the worker is input (S106), the worker icon OP is rotated with respect to the QR code by the input angle as shown in FIG. 6 (B) to display the image. (S108). Then, when a confirmation operation (for example, clicking the “confirmation” icon (not shown)) indicating that the worker's position has been input correctly is performed (S110: Yes), the worker's position (angle) is set. (S112) returns to the image of the display angle adjustment shown in FIG. 4 (A) (S114). At this time, the QR code Q shown in FIG. 6 (A) is in the front direction from the worker side shown in FIG. 6 (B) (here, the two cutout symbols QS are on the lower side). The image of the QR code in the display angle adjustment shown in FIG. 4A is adjusted so that one cutout symbol QS coincides with the upper right side). In the first embodiment, the worker on the installation position adjusting device side and the worker on the two-dimensional code reading device side can easily take solidarity, and the positioning of the two-dimensional code reading device becomes easy.

図7(A)は二次元コードの傾きを表示する傾き表示画像の説明図である。図7(A)の例では、正面に対して二次元コードが傾き、右側から見ては二次元コードが水平になっていることを示す表示画面である。 FIG. 7A is an explanatory diagram of a tilt display image displaying the tilt of the two-dimensional code. In the example of FIG. 7A, it is a display screen showing that the two-dimensional code is tilted with respect to the front surface and the two-dimensional code is horizontal when viewed from the right side.

図8(A)、図8(B)は、同じく二次元コードの傾きを表示する傾き表示画像の説明図である。図8(A)の例では、正面から見て(正面図)、左右方向は水平で、側面から見て(側面図)、前方向が後ろ方向よりも下がっていることを示す表示画面である。図8(B)の例では、正面から見て(正面図)、右方向が左方向よりも下がり、側面から見て(側面図)、前後方向が水平であることを示す表示画面である。第1実施形態では、作業者がモニター15上で二次元コードの傾きを視認することができる。 8 (A) and 8 (B) are explanatory views of a tilt display image that also displays the tilt of the two-dimensional code. In the example of FIG. 8A, it is a display screen showing that the front direction is horizontal when viewed from the front (front view) and the front direction is lower than the rear direction when viewed from the side (side view). .. In the example of FIG. 8B, it is a display screen showing that the right direction is lower than the left direction and the front-back direction is horizontal when viewed from the side (side view) when viewed from the front (front view). In the first embodiment, the operator can visually recognize the inclination of the two-dimensional code on the monitor 15.

図12(A)は、図7(A),図8を参照して上述した二次元コードの傾き表示での処理を実行するサブルーチン処理を示す。
設置位置調整装置10は、傾斜表示の指示があると(S152:Yes)、撮像した二次元コードの外形の上下、左右の辺の長さを比較する(S154)。ここでは、図15(A)に示される二次元コード(QRコード)の上辺UL、下辺BLと、右辺RL、左辺LLとの長さが比較され、二次元コード読取装置に対する二次元コードの傾きが推定される。そして、差が小さい場合(S156:Yes)、傾きは少ないとの判断が為され、モニター上に図示されない二次元コードに傾きが無い画像が表示される(S158)。
FIG. 12 (A) shows a subroutine process for executing the above-described processing for displaying the inclination of the two-dimensional code with reference to FIGS. 7 (A) and 8.
When the installation position adjusting device 10 is instructed to display the inclination (S152: Yes), the installation position adjusting device 10 compares the lengths of the upper, lower, left and right sides of the outer shape of the captured two-dimensional code (S154). Here, the lengths of the upper side UL and lower side BL of the two-dimensional code (QR code) shown in FIG. 15 (A) and the right side RL and left side LL are compared, and the inclination of the two-dimensional code with respect to the two-dimensional code reader. Is estimated. Then, when the difference is small (S156: Yes), it is determined that the inclination is small, and an image having no inclination is displayed on the monitor in the two-dimensional code (S158).

差が大きい場合(S156:No)、傾きが大きいとの判断が為され、図15(B)に示されるようにQRコードの画像が(1)〜(9)のセルに分割され、各、各セルサイズから傾きの方向と、傾きが判断される(S160)。そして、図8で例示されたように傾き画像が表示される(S162)。 When the difference is large (S156: No), it is determined that the inclination is large, and the image of the QR code is divided into cells (1) to (9) as shown in FIG. 15 (B). The direction of inclination and the inclination are determined from each cell size (S160). Then, the tilt image is displayed as illustrated in FIG. 8 (S162).

ここで、(1)、(2)、(3)のセルサイズが、(7)、(8)、(9)のセルサイズよりも大きい場合、二次元コードの上部位置が近く、正面側に倒れるように傾いていると判断され、図8(A)に示される傾き表示が為される。 Here, when the cell sizes of (1), (2), and (3) are larger than the cell sizes of (7), (8), and (9), the upper position of the two-dimensional code is close to the front side. It is determined that the vehicle is tilted so as to fall, and the tilt display shown in FIG. 8A is displayed.

他方、(1)、(4)、(7)のセルサイズが、(3)、(6)、(9)のセルサイズよりも大きい場合、二次元コードの左部分が近く、右面側に倒れるように傾いていると判断され、図8(B)に示される傾き表示が為される。第1実施形態では、適切にQRコードの傾きを検出し、画像表示することができる。 On the other hand, when the cell sizes of (1), (4) and (7) are larger than the cell sizes of (3), (6) and (9), the left part of the two-dimensional code is close and falls to the right side. It is determined that the tilt is as shown above, and the tilt display shown in FIG. 8B is displayed. In the first embodiment, the inclination of the QR code can be appropriately detected and an image can be displayed.

図7(B)は、二次元コード読取装置110の傾きを表示する傾き表示画像の説明図である。図7(B)の例では、正面方向から見て二次元コード読取装置110が左側に傾き、右側から見て二次元コード読取装置110が水平になっていることを示す表示画面である。第1実施形態では、作業者がモニター15の画像上で二次元コード読取装置の傾きを視認することができる。 FIG. 7B is an explanatory diagram of a tilt display image displaying the tilt of the two-dimensional code reading device 110. In the example of FIG. 7B, it is a display screen showing that the two-dimensional code reading device 110 is tilted to the left when viewed from the front direction and the two-dimensional code reading device 110 is horizontal when viewed from the right side. In the first embodiment, the operator can visually recognize the inclination of the two-dimensional code reading device on the image of the monitor 15.

図12(B)は、図7(B)を参照して上述した二次元コード読取装置110の傾き表示での処理を実行するサブルーチン処理を示す。
設置位置調整装置10は、二次元コード読取装置の傾斜表示の指示があると(S172:Yes)、図3中に示される二次元コード読取装置内のGセンサ41からの検出データを取得し(S174)、検出データに基づき、図7(B)に示される二次元コード読取装置の傾き表示画像をモニター15に表示する(S176)。
FIG. 12B shows a subroutine process for executing the process in the tilt display of the two-dimensional code reading device 110 described above with reference to FIG. 7B.
When the installation position adjusting device 10 is instructed to display the tilt of the two-dimensional code reading device (S172: Yes), the installation position adjusting device 10 acquires the detection data from the G sensor 41 in the two-dimensional code reading device shown in FIG. 3 (S172: Yes). S174), based on the detection data, the tilt display image of the two-dimensional code reading device shown in FIG. 7B is displayed on the monitor 15 (S176).

図16は、設置位置調整装置10による二次元コードの傾きの三次元表示のイメージ図である。図13は、図16を参照して上述した三次元データ作成の表示処理を実行するサブルーチン処理を示す。
設置位置調整装置10は、二次元コードの傾きの三次元表示の指示があると(S182:Yes)、図15(C)に示されるように、二次元コードを縦5×横5セルに分割し、各セルサイズを獲得する(S184)。設置位置調整装置10は、二次元コードの分割した部分の内、オートフォーカス機能を用いて、焦点が最も合っている分割部分を検出し、その分割部分と二次元コード読取装置との距離を二次元コード読取装置との焦点距離と仮定する(S186)。S186の処理で求められた焦点が最も合っている分割部分のセルサイズで仮定した距離を基準に、分割した二次元コードの各分割部分と二次元コード読取装置との距離が推定される(S188)。即ち、二次元コードの特性上、セルサイズは全て同一の大きさであり、光学的に同じサイズもの物の見え方は距離と比例関係にあるため、距離を求めたい部分のセルサイズと基準となるセルサイズとの距離から、距離が算出される。そして、S188で推測した各分割部分の二次元コードの距離から三次元グラフのデータが作成され、図16に示されるようにモニター上に表示される(S190)。
FIG. 16 is an image diagram of a three-dimensional display of the inclination of the two-dimensional code by the installation position adjusting device 10. FIG. 13 shows a subroutine process for executing the display process for creating the three-dimensional data described above with reference to FIG.
When the installation position adjusting device 10 is instructed to display the inclination of the two-dimensional code in three dimensions (S182: Yes), the two-dimensional code is divided into 5 vertical cells and 5 horizontal cells as shown in FIG. 15 (C). Then, each cell size is acquired (S184). The installation position adjusting device 10 uses the autofocus function to detect the most focused divided portion of the divided portions of the two-dimensional code, and sets the distance between the divided portion and the two-dimensional code reader to two. It is assumed that the focal length is the focal length with the two-dimensional code reader (S186). The distance between each divided portion of the divided two-dimensional code and the two-dimensional code reading device is estimated based on the distance assumed by the cell size of the divided portion that is most in focus obtained in the process of S186 (S188). ). That is, due to the characteristics of the two-dimensional code, all cell sizes are the same size, and the appearance of objects of the same optical size is proportional to the distance, so the cell size and reference of the part for which the distance is to be obtained are used. The distance is calculated from the distance from the cell size. Then, the data of the three-dimensional graph is created from the distance of the two-dimensional code of each divided portion estimated in S188, and is displayed on the monitor as shown in FIG. 16 (S190).

第1実施形態では、作業者に理解し易いように3次元グラフで二次元コードの傾きが表示される。また、二次元コードは、円筒の対象物、円形の対象物等の湾曲部分に付されることもるため、三次元表示が成されることで、二次元コードがどのような状態で付けられているが容易に認識できるようにされる。 In the first embodiment, the slope of the two-dimensional code is displayed on the three-dimensional graph so that the operator can easily understand it. In addition, since the two-dimensional code can be attached to curved parts such as cylindrical objects and circular objects, the two-dimensional code can be attached in any state by making a three-dimensional display. However, it is made easy to recognize.

図17は、第1実施形態に係る設置位置調整装置のオートフォーカス表示画像の説明図である
設置位置調整装置10は、読み取り画像の画像フォーカスを合わせるため、オートフォーカス中の各距離毎のオートフォーカス評価値のグラフGFを表示し、グラフGF中のピークを作業者に入力させることで、フォーカスポイントFPを画像中に表示し、どのピーク時の設定が適正であるか、作業者に目視で確認できるようにする。オートフォーカス評価値のグラフGFではX軸に距離が、Y軸にオートフォーカス評価値が取られている。図17中では、オートフォーカス評価値のグラフGF中で二次元コード読取装置からの距離の異なるBLACKの文字LEにピークP1が、QRコードQにピークP2が現れ、グラフGF中でピークP2が選択されることで、QRコードQの画像上にフォーカスポイントFPが重なり、作業者が目視で確認できる。作業者は適切に距離を合わせることができたかを確認することができる。
FIG. 17 is an explanatory diagram of an autofocus display image of the installation position adjusting device according to the first embodiment. The installation position adjusting device 10 is autofocused for each distance during autofocus in order to adjust the image focus of the scanned image. By displaying the graph GF of the evaluation value and letting the operator input the peak in the graph GF, the focus point FP is displayed in the image, and the operator visually confirms which peak setting is appropriate. It can be so. In the graph GF of the autofocus evaluation value, the distance is taken on the X-axis and the autofocus evaluation value is taken on the Y-axis. In FIG. 17, in the graph GF of the autofocus evaluation value, the peak P1 appears in the character LE of BLACK having a different distance from the two-dimensional code reader, the peak P2 appears in the QR code Q, and the peak P2 is selected in the graph GF. By doing so, the focus point FP overlaps the image of the QR code Q, and the operator can visually confirm it. The worker can confirm whether the distance can be adjusted appropriately.

図14は、図17を参照して上述したオートフォーカスのサブルーチン処理を示すフローチャートである。図18は、第1実施形態に係る設置位置調整装置のオートフォーカス評価値のグラフ作成の説明図である。
設置位置調整装置10は、表示画像上のフォーカスポイントの座標(X、Y)を確認し(S302)、二次元コード読取装置に対してオートフォーカスの実施を要求し(S304)、二次元コード読取装置からオートフォーカス進捗結果を受信し(S306)、二次元コード読取装置から受信したオートフォーカス距離と評価値とその画像データを保存する(S308)。S306、S308での処理は、オートフォーカスが完了するまで繰り替えされる(S310:No)。そして、オートフォーカスが完了すると(S310:Yes)、保存したオートフォーカスの距離の評価値のデータを距離の昇順に並び替えられ、図18(A)に示されるように並び替えたデータをX軸:距離、Y軸:評価値でグラフ表示が成される(S314)。昇順に並び替えられた距離と評価値から、距離毎に評価値の変化量が計算される(S316)。計算した距離毎に評価値の変化量から、距離毎の変化量の差分が計算され、変化量のサブルーチンの+−が反転した距離が確認され、図18(B)中に示されるようにオートフォーカス評価値のグラフGF中で凹範囲、凸範囲が確認される(S318)。凹範囲、凸範囲の内、凸範囲に有る評価値の最大値が図18(C)中に示されるようにピークP1、ピークP2とされる(S320)。そして、作業者がピーク部分をクリックしたかが判断され(S322)、クリックが成されるまでは(S322:No)、最もフォーカスの合った距離の画像が表示される(S326)。クリックが成されると(S322:Yes)、S308で保存した画像のうち、ピーク部分の距離の画像が表示される(S324)。
FIG. 14 is a flowchart showing the above-mentioned autofocus subroutine processing with reference to FIG. FIG. 18 is an explanatory diagram of creating a graph of the autofocus evaluation value of the installation position adjusting device according to the first embodiment.
The installation position adjusting device 10 confirms the coordinates (X, Y) of the focus point on the displayed image (S302), requests the two-dimensional code reading device to perform autofocus (S304), and reads the two-dimensional code. The autofocus progress result is received from the device (S306), and the autofocus distance and the evaluation value received from the two-dimensional code reading device and the image data thereof are saved (S308). The processing in S306 and S308 is repeated until the autofocus is completed (S310: No). Then, when the autofocus is completed (S310: Yes), the saved data of the evaluation value of the autofocus distance is sorted in ascending order of the distance, and the sorted data is sorted as shown in FIG. 18 (A) on the X-axis. : Distance, Y-axis: A graph is displayed based on the evaluation value (S314). From the distances and the evaluation values sorted in ascending order, the amount of change in the evaluation value is calculated for each distance (S316). The difference in the amount of change for each distance is calculated from the amount of change in the evaluation value for each calculated distance, and the distance in which + -of the subroutine of the amount of change is inverted is confirmed, and as shown in FIG. A concave range and a convex range are confirmed in the graph GF of the focus evaluation value (S318). Among the concave range and the convex range, the maximum value of the evaluation value in the convex range is defined as peak P1 and peak P2 as shown in FIG. 18 (C) (S320). Then, it is determined whether the operator clicks the peak portion (S322), and the image of the most focused distance is displayed until the click is made (S322: No) (S326). When the click is made (S322: Yes), the image of the distance of the peak portion among the images saved in S308 is displayed (S324).

図19及び図20は、第1実施形態に係る設置位置調整装置のマージン表示画像の説明図である。図19(A)はマージン表示画像の説明図であり、図19(B)は角度合わせマーカ表示画像の説明図である。 19 and 20 are explanatory views of a margin display image of the installation position adjusting device according to the first embodiment. FIG. 19A is an explanatory diagram of a margin display image, and FIG. 19B is an explanatory diagram of an angle matching marker display image.

QRコードのマージンが表示されるモードが選択されると、設置位置調整装置10は、図19(A)に示されるようにモニター15に、QRコードQの画像と共に撮像されたQRコードQの画像の周囲にマージンMを表示させる。マージンは、QRコードの4辺を囲む、何も表示されない領域で、上下左右、それぞれ4セル分の確保が確実な読み取りのためには必要とされる。更に、モニター15の画像に、QRコードの水平方向に対する角度ずれ(この例では30°)が表示される。この例では、3個の切り出しシンボルQSの位置に関係なく、QRコードの水平方向に対する角度ずれの修正を促す。QRコードを水平方向に合わせることで、実用上十分短時間での読み取りが可能であるからである。 When the mode in which the QR code margin is displayed is selected, the installation position adjusting device 10 displays the QR code Q image captured on the monitor 15 together with the QR code Q image as shown in FIG. 19 (A). Margin M is displayed around. The margin is an area where nothing is displayed surrounding the four sides of the QR code, and it is necessary to secure four cells each in the vertical and horizontal directions for reliable reading. Further, the image of the monitor 15 displays an angular deviation (30 ° in this example) of the QR code with respect to the horizontal direction. In this example, the correction of the angle deviation of the QR code with respect to the horizontal direction is promoted regardless of the positions of the three cutout symbols QS. This is because by aligning the QR code in the horizontal direction, it is possible to read the QR code in a sufficiently short time for practical use.

なお、図9(A)中に示された二次元コードとしてQRコードに対しては、2個の切り出しシンボルQSが上側にあり、1個の切り出しシンボルQSが左下側にあることが、正しい位置として設定されている場合、この正しい位置からの角度ずれ(この例では−60°)を表示させることも可能である。QRコードを正しい位置に合わせることで読み取り速度を最速にすることができる。 It should be noted that, as the two-dimensional code shown in FIG. 9 (A), it is a correct position that two cutout symbols QS are on the upper side and one cutout symbol QS is on the lower left side with respect to the QR code. When set as, it is also possible to display the angular deviation from this correct position (-60 ° in this example). The reading speed can be maximized by aligning the QR code with the correct position.

そして、図19(B)に示されるようにQRコードの角度ずれが大きいとき(例えば10°以上、ここでは30°)、設置位置調整装置10は、角度ずれの修正を促す「コードの傾きが大きいです。コードの傾きをマーカに合わせてください」との指示表示COをQRコードの写し出されているモニター15に表示すると共に、モニター15に併設された図示しないスピーカから「コードの傾きが大きいです。コードの傾きをマーカに合わせてください」との音声出力を行う。更に、QRコードの傾きを修正したマーカMKがモニター15に表示される。マーカMKは、視認が容易なように赤色、青色等のQRコードQ、マージンMと異なる色で表示される。 Then, when the angle deviation of the QR code is large as shown in FIG. 19B (for example, 10 ° or more, 30 ° in this case), the installation position adjusting device 10 prompts the correction of the angle deviation, “the inclination of the code is The instruction display CO saying "It is large. Please adjust the inclination of the code to the marker" is displayed on the monitor 15 on which the QR code is projected, and "The inclination of the code is large" from the speaker (not shown) attached to the monitor 15. Please adjust the inclination of the code to the marker. " Further, the marker MK in which the inclination of the QR code is corrected is displayed on the monitor 15. The marker MK is displayed in a color different from the QR code Q such as red and blue and the margin M so that it can be easily visually recognized.

第1実施形態の設置位置調整装置10では、検出したQRコードの角度ずれを、モニター15に表示させるため、QRコードの角度ずれの修正が容易である。また、撮像したQRコードに、マージンMを付加してモニター15に表示させるため、撮像範囲内にマージンが納まっているかを容易に確認させ、QRコードを読み取りが確実にできる位置に位置合わせさせることができる。 In the installation position adjusting device 10 of the first embodiment, since the detected QR code angle deviation is displayed on the monitor 15, it is easy to correct the QR code angle deviation. In addition, since a margin M is added to the captured QR code and displayed on the monitor 15, it is necessary to easily check whether the margin is within the imaging range and align the QR code at a position where it can be reliably read. Can be done.

第1実施形態の設置位置調整装置10では、QRコードの角度ずれが大きいと判断された際に、角度ずれが大きいことを指示する「コードの傾きが大きいです。コードの傾きをマーカに合わせてください」との指示表示COを表示するため、QRコードの角度が大きくずれ、読み取り時間が長くなることを防ぐことができる。 In the installation position adjusting device 10 of the first embodiment, when it is determined that the angle deviation of the QR code is large, "the inclination of the code is large. The inclination of the code is adjusted to the marker" to indicate that the angle deviation is large. Since the instruction display CO of "Please" is displayed, it is possible to prevent the angle of the QR code from being greatly deviated and the reading time from becoming long.

第1実施形態の設置位置調整装置10では、QRコードの角度ずれが大きいと判断された際に、角度ずれが大きいことを指示する「コードの傾きが大きいです。コードの傾きをマーカに合わせてください」との指示表示COを表示すると共に、撮像したQRコードの位置合わせ用のマーカMKをモニター15に表示する。このため、QRコードの角度ずれが大きい場合でも、マーカMKを用いてQRコードの位置を容易に調整することができる。 In the installation position adjusting device 10 of the first embodiment, when it is determined that the angle deviation of the QR code is large, "the inclination of the code is large. The inclination of the code is adjusted to the marker" to indicate that the angle deviation is large. In addition to displaying the instruction display CO saying "Please", the marker MK for aligning the captured QR code is displayed on the monitor 15. Therefore, even when the angle deviation of the QR code is large, the position of the QR code can be easily adjusted by using the marker MK.

図20(A)はマージンはみ出し表示画像の説明図である。
設置位置調整装置10は、モニター15に、QRコードQの画像と共に撮像されたQRコードQの画像の周囲にマージンMを表示させた際に、マージンMが撮像範囲からはみ出している場合、マージンがはみ出していることを指示する「マージンが撮像範囲からはみ出ています。」との指示表示COをQRコードQ、マージンMの写し出されているモニター15に表示すると共に、モニター15に併設された図示しないスピーカから「マージンが撮像範囲からはみ出ています。」との音声出力を行う。
FIG. 20A is an explanatory diagram of a display image in which the margin protrudes.
When the installation position adjusting device 10 displays the margin M on the monitor 15 around the image of the QR code Q captured together with the image of the QR code Q, if the margin M is out of the imaging range, the margin is increased. An instruction display CO indicating that "the margin is out of the imaging range" is displayed on the monitor 15 on which the QR code Q and the margin M are projected, and is not shown. The speaker outputs a voice saying "The margin is out of the imaging range."

第1実施形態の設置位置調整装置10では、マージンが撮像範囲内にあるか否かを判断し、撮像範囲外であると判断した際に、マージンが撮像範囲外であることを指示する。撮像範囲内にマージンを納めさせることで、QRコードを確実に読み取ることができる。 The installation position adjusting device 10 of the first embodiment determines whether or not the margin is within the imaging range, and when it is determined that the margin is outside the imaging range, indicates that the margin is outside the imaging range. By keeping the margin within the imaging range, the QR code can be read reliably.

図20(B)はQRコード以外のデータがマージン内に存在している際の表示画像の説明図である。
設置位置調整装置10は、モニター15に、QRコードQの画像と共に撮像されたQRコードQの画像の周囲にマージンMを表示させた際に、マージン内にQRコード以外のデータ(この例では枠)がある場合、データが存在することを指示する「マージンにコード以外のデータがあります。」との指示表示COをQRコードQ、マージンMの写し出されているモニター15に表示すると共に、モニター15に併設された図示しないスピーカから「マージンにコード以外のデータがあります。」との音声出力を行う。
FIG. 20B is an explanatory diagram of a display image when data other than the QR code exists in the margin.
When the installation position adjusting device 10 displays the margin M around the image of the QR code Q captured together with the image of the QR code Q on the monitor 15, data other than the QR code (frame in this example) is displayed in the margin. ), The instruction display CO indicating that there is data "There is data other than the code in the margin" is displayed on the monitor 15 on which the QR code Q and the margin M are projected, and the monitor 15 is displayed. An audio output saying "There is data other than the code in the margin" is output from a speaker (not shown) attached to.

第1実施形態の設置位置調整装置10では、マージン内にQRコード以外のデータがあるか否かを判断し、QRコード以外のデータがあると判断した際に、QRコード以外のデータがあることを指示する。マージン内に他のデータを存在させないことで、QRコードを確実に読み取ることができる。 In the installation position adjusting device 10 of the first embodiment, it is determined whether or not there is data other than the QR code in the margin, and when it is determined that there is data other than the QR code, there is data other than the QR code. To instruct. By not allowing other data to exist in the margin, the QR code can be read reliably.

引き続き、図19,20を参照して上述したQRコードのマージンが表示されるモードが選択された際の処理について説明が成される。
設置位置調整装置10は、図10(A)に示されるメインルーチンで二次元コード読取装置110から画像を取得し(S12)、画像表示を行う(S14)。そして、サブルーチン処理に入るかが判断され(S16)、サブルーチン処理に入る場合(S16:Yes)、サブルーチン処理が実行される(S100)。
Subsequently, the processing when the mode in which the margin of the QR code is displayed is selected with reference to FIGS. 19 and 20 will be described.
The installation position adjusting device 10 acquires an image from the two-dimensional code reading device 110 (S12) in the main routine shown in FIG. 10 (A), and displays the image (S14). Then, it is determined whether to enter the subroutine process (S16), and when the subroutine process is entered (S16: Yes), the subroutine process is executed (S100).

図21は、設置位置調整装置10でのマージン表示のサブルーチン処理を示すフローチャートである。
QRコードのマージン表示が指示されたか判断される(S400)。マージン表示が指示されない場合(S400:No)、処理が図10のS100に戻り、サブルーチン処理が継続される。マージン表示が指示されると(S400:Yes)、設置位置調整装置10は、図19(A)に示されるようにQRコードQの角度ずれを検出し(S401)、図19(A)に示されるように、検出した角度ずれに対応させQRコードを傾けてモニター15に表示すると共に、検出したずれ角度(この例では30°)をモニター15に表示する(S402)。更に、設置位置調整装置10は、QRコードQの画像の周囲にマージンMを表示させる(S404)。
FIG. 21 is a flowchart showing the subroutine processing of the margin display in the installation position adjusting device 10.
It is determined whether the margin display of the QR code is instructed (S400). When the margin display is not instructed (S400: No), the process returns to S100 in FIG. 10, and the subroutine process is continued. When the margin display is instructed (S400: Yes), the installation position adjusting device 10 detects the angular deviation of the QR code Q as shown in FIG. 19 (A) (S401), and is shown in FIG. 19 (A). The QR code is tilted and displayed on the monitor 15 in accordance with the detected angle deviation, and the detected deviation angle (30 ° in this example) is displayed on the monitor 15 (S402). Further, the installation position adjusting device 10 displays a margin M around the image of the QR code Q (S404).

設置位置調整装置10は、QRコードの角度ずれが大きい(例えば10°以上)か判断する(S406)。図19(B)に示されるようにQRコードの角度ずれが大きいとき(S406:Yes)、図19(B)に示されるように、角度ずれの修正を促す「コードの傾きが大きいです。コードの傾きをマーカに合わせてください」との指示表示COをQRコードの写し出されているモニター15に表示すると共に、モニター15に併設された図示しないスピーカから「コードの傾きが大きいです。コードの傾きをマーカに合わせてください」との音声出力を行う。更に、QRコードの傾きを修正したマーカMKをモニター15に表示する(S408)。 The installation position adjusting device 10 determines whether the angle deviation of the QR code is large (for example, 10 ° or more) (S406). When the angle deviation of the QR code is large as shown in FIG. 19 (B) (S406: Yes), as shown in FIG. 19 (B), the “code inclination is large” that prompts the correction of the angle deviation. In addition to displaying the instruction display CO on the monitor 15 on which the QR code is projected, "Please adjust the tilt of the code to the marker", and from a speaker (not shown) attached to the monitor 15, "The tilt of the code is large. The tilt of the code is large." Please match the marker with the marker. " Further, the marker MK in which the inclination of the QR code is corrected is displayed on the monitor 15 (S408).

更に、設置位置調整装置10は、撮像されたQRコードQの画像の周囲にマージンMを表示させた際に、マージンMが撮像範囲からはみ出しているかを判断する(S410)。マージンMが撮像範囲からはみ出している場合(S410:Yes)、図20(A)に示されるように、マージンがはみ出していることを指示する「マージンが撮像範囲からはみ出ています。」との指示表示COをQRコードQ、マージンMの写し出されているモニター15に表示すると共に、モニター15に併設された図示しないスピーカから「マージンが撮像範囲からはみ出ています。」との音声出力を行う(S412)。 Further, the installation position adjusting device 10 determines whether or not the margin M is out of the imaging range when the margin M is displayed around the image of the captured QR code Q (S410). When the margin M is out of the imaging range (S410: Yes), as shown in FIG. 20 (A), the instruction "the margin is out of the imaging range" indicating that the margin is out of the imaging range. The display CO is displayed on the monitor 15 on which the QR code Q and the margin M are projected, and a voice output saying "The margin is out of the imaging range" is output from a speaker (not shown) attached to the monitor 15 (S412). ).

また更に、設置位置調整装置10は、モニター15に、撮像されたQRコードQの画像の周囲にマージンMを表示させた際に、マージン内にQRコード以外のデータがあるか判断する(S414)。マージン内にQRコード以外のデータがある場合(S414:Yes)、図20(B)に示されるように、データが存在することを指示する「マージンにコード以外のデータがあります。」との指示表示COをQRコードQ、マージンMの写し出されているモニター15に表示すると共に、モニター15に併設された図示しないスピーカから「マージンにコード以外のデータがあります。」との音声出力を行う(S416)。 Furthermore, when the installation position adjusting device 10 displays the margin M around the image of the captured QR code Q on the monitor 15, it determines whether there is data other than the QR code in the margin (S414). .. When there is data other than the QR code in the margin (S414: Yes), as shown in FIG. 20 (B), the instruction "There is data other than the code in the margin" indicating that the data exists. The display CO is displayed on the monitor 15 on which the QR code Q and the margin M are projected, and a voice output saying "There is data other than the code in the margin" is output from a speaker (not shown) attached to the monitor 15 (S416). ).

上述した処理が、マージン表示指示が終了するまで繰り返され(S418:No)、マージン表示指示の終了で(S418:Yes)で、図21に示されるマージン表示のサブルーチン処理が終了する。 The above-mentioned process is repeated until the margin display instruction is completed (S418: No), and at the end of the margin display instruction (S418: Yes), the margin display subroutine process shown in FIG. 21 ends.

第1実施形態の設置位置調整装置10での複数のQRコードを撮像する際の処理について、図27〜図34を参照して説明する。
図27(A)は、設置位置調整装置10で複数のQRコードが撮像されたときのモニター15での表示画像の説明図である。
実施形態の設置位置調整装置10は、モニター15に複数のQRコードを画像表示する際には、検出できた全てのQRコードに対して符番し、番号を表示することで作業者にQRコードを識別させる。QRコードC1に対しては(1)CODE1と、QRコードC2に対しては(2)CODE2と、QRコードC3に対しては(3)CODE3との識別用の表示(識別情報)を付す。
The processing when a plurality of QR codes are imaged by the installation position adjusting device 10 of the first embodiment will be described with reference to FIGS. 27 to 34.
FIG. 27A is an explanatory diagram of a display image on the monitor 15 when a plurality of QR codes are captured by the installation position adjusting device 10.
When displaying a plurality of QR codes as images on the monitor 15, the installation position adjusting device 10 of the embodiment assigns a code to all the detected QR codes and displays the numbers to the operator. To identify. The QR code C1 is labeled with (1) CODE1, the QR code C2 is labeled with (2) CODE2, and the QR code C3 is labeled with (3) CODE3.

図27(B)は、設置位置調整装置10で複数のQRコードが撮像された別例の表示画像の説明図である。
別例の表示画像では、検出できたQRコードに対して符番し、番号を表示すると共にデコードの結果を表示することで作業者にQRコードを識別させる。QRコードC1に対しては(1)9999999999と、QRコードC2に対しては(2)0123456789との識別用の表示(識別情報)を付す。更に、QRコードに対して、読み取り及び調整結果を情報画像IF1として表示を行う。この例では、デコードされたQRコードC2(0123456789)をシャッタ速度90ms、明るさ80%、フォーカス距離50cmで読み取ったことが表示される。
FIG. 27B is an explanatory diagram of another example display image in which a plurality of QR codes are captured by the installation position adjusting device 10.
In the display image of another example, the detected QR code is numbered, the number is displayed, and the decoding result is displayed so that the operator can identify the QR code. The QR code C1 is provided with (1) 999999999999, and the QR code C2 is provided with (2) 0123456789 for identification (identification information). Further, the reading and adjustment results are displayed as the information image IF1 on the QR code. In this example, it is displayed that the decoded QR code C2 (0123456789) is read at a shutter speed of 90 ms, a brightness of 80%, and a focus distance of 50 cm.

図31は、設置位置調整装置10での、複数のQRコードが撮像された際のサブルーチン処理を示すフローチャートである。
図31でのサブルーチン処理は、図10(A)を参照して前述したメインルーチンのS100でのサブルーチン処理として行われる。即ち、図10(B)〜図14を参照し前述した位置調整等の処理に先行、または、同時に図31でのサブルーチン処理は実行される。
FIG. 31 is a flowchart showing the subroutine processing when a plurality of QR codes are imaged by the installation position adjusting device 10.
The subroutine processing in FIG. 31 is performed as the subroutine processing in S100 of the main routine described above with reference to FIG. 10A. That is, the subroutine processing in FIG. 31 is executed prior to or at the same time as the processing such as the position adjustment described above with reference to FIGS. 10B to 14.

二次元コード読取装置110で撮像された画像に複数のQRコードが存在しているかが判断される(S402)。ここで、複数のQRコードが存在しない場合(S402:No)、処理が終了する。他方、複数のQRコードが存在する場合(S402:Yes)、図27(A)を参照して上述したように、モニター15に全てのQRコードに対して番号を表示することで作業者にQRコードを識別させる(S406)。そして、二次元コード読取装置の位置調整対象に指定された二次元コード(第1順位のQRコード)を特定させる。即ち、複数の二次元コードを読み取る際に、最重要な二次元コードを位置調整対象に指定することで、当該二次元コードを確実に読み取れるように二次元コード読取装置を調整させる。ここで、例えば、図2に示される入力部16の図示しないテンキーで「1」が入力されることで、QRコードC1が指定された場合(406:Yes)、図29に示されるように、第1順位のコード(QRコードC1)をカーソルCUで特定する識別表示を行うと共に、QRコードに対して、読み取り及び調整結果を情報画像IF2として表示を行う(S408)。この例では、デコードされたQRコードC1(CODE1)を、設定値としてシャッタ速度90ms、明るさ80%、フォーカス距離50cmで読み取ったことが表示される。第1実施形態では、位置調整対象に指定された二次元コードの特定を二次元コードに付され表示されるカーソルで行う。このため、確実に確認できるように位置調整対象の二次元コードを特定できる。なお、この例では、入力部16のテンキーで「1」が入力された際の処理について述べたが、例えば、入力部16の図示しないマウスでカーソルCUが動かされ、マウスのクリック操作でQRコードC1が指定された場合も同様に処理が行われる。 It is determined whether or not a plurality of QR codes are present in the image captured by the two-dimensional code reading device 110 (S402). Here, if a plurality of QR codes do not exist (S402: No), the process ends. On the other hand, when a plurality of QR codes exist (S402: Yes), as described above with reference to FIG. 27 (A), the QR code is displayed to the operator by displaying the numbers for all the QR codes on the monitor 15. Have the code identified (S406). Then, the two-dimensional code (first-ranked QR code) designated as the position adjustment target of the two-dimensional code reading device is specified. That is, when reading a plurality of two-dimensional codes, by designating the most important two-dimensional code as the position adjustment target, the two-dimensional code reading device is adjusted so that the two-dimensional code can be read reliably. Here, for example, when the QR code C1 is specified by inputting "1" with the numeric keypad (not shown) of the input unit 16 shown in FIG. 2 (406: Yes), as shown in FIG. 29. The identification display for specifying the first-ranked code (QR code C1) with the cursor CU is performed, and the reading and adjustment results are displayed as the information image IF2 for the QR code (S408). In this example, it is displayed that the decoded QR code C1 (CODE1) is read as set values at a shutter speed of 90 ms, a brightness of 80%, and a focus distance of 50 cm. In the first embodiment, the two-dimensional code designated as the position adjustment target is specified by the cursor displayed attached to the two-dimensional code. Therefore, the two-dimensional code to be adjusted can be specified so that it can be confirmed reliably. In this example, the processing when "1" is input by the numeric keypad of the input unit 16 has been described. For example, the cursor CU is moved by a mouse (not shown) of the input unit 16, and the QR code is clicked by the mouse. When C1 is specified, the same processing is performed.

そして、図10(B)〜図14を参照し前述した位置調整の処理が行われ、指定されたQRコードC1に対して、二次元コード読取装置110が位置調整される。 Then, the above-described position adjustment process is performed with reference to FIGS. 10 (B) to 14 to adjust the position of the two-dimensional code reading device 110 with respect to the designated QR code C1.

位置調整が完了し、第1順位のQRコードに対する位置調整完了の入力があると(S410:Yes)、第2順位以下のQRコード(第1順位として指定されていないQRコード)、この例では、QRコードC2、QRコードC3に対して、それぞれに最適な読み取りが行えるように、撮像の際の光学系のシャッタ速度、明るさ、フォーカス距離が調整される(S412)。そして、全てのQRコードの撮像、調整が行われると(S414:Yes)、調整結果が二次元コード読取装置110に転送され(S416)、後述する調整結果表示処理(S500)が行われた後、処理が終了する。ここでは、第1順位のQRコードの指定のみの処理について説明が行われたが、重要度に応じて、QRコードを第1順位、第2順位、第3順位等、すべて順位を付けることも可能である。 When the position adjustment is completed and there is an input of the position adjustment completion for the QR code of the first rank (S410: Yes), the QR code of the second rank or lower (the QR code not designated as the first rank), in this example, , The shutter speed, brightness, and focus distance of the optical system at the time of imaging are adjusted so that the QR code C2 and the QR code C3 can be read optimally (S412). Then, when all the QR codes are imaged and adjusted (S414: Yes), the adjustment result is transferred to the two-dimensional code reading device 110 (S416), and after the adjustment result display process (S500) described later is performed. , The process ends. Here, the process of only specifying the QR code of the first rank was explained, but it is also possible to rank all the QR codes such as the first rank, the second rank, the third rank, etc. according to the importance. It is possible.

第1実施形態では、複数の二次元コードを読み取る際に、最重要な二次元コードを位置調整対象に指定することで、当該二次元コードを確実に読み取れるように二次元コード読取装置を調整することができる。更に、位置調整対象に指定された以外の二次元コードの読み取り条件を個々に調整し、調整結果を保持することで、当該調整位置の二次元コード読取装置で、指定された以外の二次元コードも短時間でほぼ確実に読み取れるようになる。また、第1実施形態では、個々の二次元コードに番号を付して表示するので、容易に位置調整対象の二次元コードを指定できる。 In the first embodiment, when reading a plurality of two-dimensional codes, the most important two-dimensional code is designated as the position adjustment target, and the two-dimensional code reading device is adjusted so that the two-dimensional code can be read reliably. be able to. Furthermore, by individually adjusting the reading conditions of the two-dimensional code other than the one specified as the position adjustment target and holding the adjustment result, the two-dimensional code reading device at the adjustment position uses the two-dimensional code other than the one specified. Will almost certainly be readable in a short time. Further, in the first embodiment, since the individual two-dimensional codes are numbered and displayed, the two-dimensional code to be adjusted can be easily specified.

図30は、上記調整結果表示処理(S500)における、第1実施形態に係るQRコードの撮像設定値の表示画像の説明図である。
第1実施形態の設置位置調整装置10は、撮像調整のされたQRコードについて設定値を表示する。例えば、カーソルCUで、QRコードC2が指示された際、情報画像IF4として表示を行う。この例では、QRコードC2のデータ(ここではCODE2)、撮像の設定値としてシャッタ速度80ms、明るさ70%、フォーカス距離60cmに調整されたことが表示される。
FIG. 30 is an explanatory diagram of a display image of the image pickup set value of the QR code according to the first embodiment in the adjustment result display process (S500).
The installation position adjusting device 10 of the first embodiment displays a set value for the QR code whose image pickup has been adjusted. For example, when the QR code C2 is instructed by the cursor CU, it is displayed as an information image IF4. In this example, it is displayed that the data of the QR code C2 (here, CODE2) and the setting values for imaging are adjusted to a shutter speed of 80 ms, a brightness of 70%, and a focus distance of 60 cm.

図34は、上記調整結果表示処理(S500)における、QRコードの撮像条件表示を示すフローチャートである。
特定のQRコードの撮像条件を表示する指示、例えば、図30の表示でカーソルCUが動かされ、QRコードC2が指示されたとき(S602:Yes)、情報画像IF4として撮像条件の表示を行う(S604)。この例では、QRコードC2のデータ(ここではCODE2)、撮像の設定値としてシャッタ速度80ms、明るさ70%、フォーカス距離60cmに調整されたことが表示される。そして、表示指示の終了、例えば、所定時間の経過、次処理の指示により(S606:Yes)、処理が終了する。第1実施形態では、位置調整対象に指定された二次元コードの読み取り条件を表示するため、作業者は読み取り条件の確認が行える。
FIG. 34 is a flowchart showing the image pickup condition display of the QR code in the adjustment result display process (S500).
When an instruction to display the imaging condition of a specific QR code, for example, the cursor CU is moved by the display of FIG. 30 and the QR code C2 is instructed (S602: Yes), the imaging condition is displayed as the information image IF4 ( S604). In this example, it is displayed that the data of the QR code C2 (here, CODE2) and the setting values for imaging are adjusted to a shutter speed of 80 ms, a brightness of 70%, and a focus distance of 60 cm. Then, when the display instruction ends, for example, the elapse of a predetermined time and the instruction of the next process (S606: Yes), the process ends. In the first embodiment, since the reading condition of the two-dimensional code designated as the position adjustment target is displayed, the operator can confirm the reading condition.

図33は、調整結果が転送された二次元コード読取装置110での複数のQRコードの撮像処理のフローチャートである。
複数のQRコードが存在する場合(S502:Yes)、まず、第1順位のQRコード1の撮像条件が設定され(S504)、第1順位のQRコードC1の撮像、デコードが行われる(S506)。そして、次順位、ここでは、QRコードC1以外のQRコードC2、又はQRコードC3の撮像条件が設定され(S508)、次順位のQRコードの撮像、デコードが行われる(S510)。ここで、例えば、QRコードC1に第1順位、QRコードC2に第2順位、QRコードC3に第3順位が付けられている場合には、QRコードC1、QRコードC2、QRコードC3の順で撮像、デコードが行われて行く。そして、全てのQRコードの撮像、デコードが終了すると(S512:Yes)、処理が終了する。
FIG. 33 is a flowchart of the imaging process of a plurality of QR codes by the two-dimensional code reading device 110 to which the adjustment result is transferred.
When a plurality of QR codes exist (S502: Yes), first, the imaging condition of the first-ranked QR code 1 is set (S504), and the first-ranked QR code C1 is imaged and decoded (S506). .. Then, the imaging conditions of the next-order, here, the QR code C2 other than the QR code C1 or the QR code C3 are set (S508), and the next-order QR code is imaged and decoded (S510). Here, for example, when the QR code C1 has the first rank, the QR code C2 has the second rank, and the QR code C3 has the third rank, the order is QR code C1, QR code C2, and QR code C3. Imaging and decoding are performed with. Then, when the imaging and decoding of all the QR codes are completed (S512: Yes), the processing is completed.

第1実施形態では、調整結果を保持する二次元コード読取装置110は、位置調整対象に指定された以外の二次元コードの読み取りの際に、個々に保持した条件に調整する。このため、二次元コード読取装置で、指定された以外の二次元コードも短時間でほぼ確実に読み取れる。 In the first embodiment, the two-dimensional code reading device 110 that holds the adjustment result adjusts to the individually held conditions when reading the two-dimensional code other than the one designated as the position adjustment target. Therefore, the two-dimensional code reader can almost certainly read a two-dimensional code other than the specified one in a short time.

図28は、第1実施形態の改変例に係る複数のQRコードの表示画像の説明図である。第1実施形態の改変例では、複数のQRコードが色分けで識別表示される。例えば、QRコードC1は、枠内が白色で表示されると共に、情報画像IF3内で、白色がコード1であることが特定される。QRコードC2は、枠内が赤色で表示されると共に、情報画像IF3内で、赤色がコード2であることが特定される。QRコードC2は、枠内が青色で表示されると共に、情報画像IF3内で、青色がコード3であることが特定される。 FIG. 28 is an explanatory diagram of display images of a plurality of QR codes according to a modified example of the first embodiment. In the modified example of the first embodiment, a plurality of QR codes are identified and displayed by color coding. For example, the QR code C1 is displayed in white in the frame, and it is specified that the white color is the code 1 in the information image IF3. The QR code C2 is displayed in red in the frame, and it is specified that the red color is the code 2 in the information image IF3. The QR code C2 is displayed in blue in the frame, and it is specified that the blue color is the code 3 in the information image IF3.

図32は、第1実施形態の改変例に係る設置位置調整装置10での、複数のQRコードが撮像された際のサブルーチン処理を示すフローチャートである。
図32でのサブルーチン処理は、図10(A)を参照して前述したメインルーチンのS100でのサブルーチン処理として行われる。
FIG. 32 is a flowchart showing a subroutine process when a plurality of QR codes are imaged in the installation position adjusting device 10 according to the modified example of the first embodiment.
The subroutine processing in FIG. 32 is performed as the subroutine processing in S100 of the main routine described above with reference to FIG. 10A.

二次元コード読取装置110で撮像された画像に複数のQRコードが存在しているかが判断される(S402)。ここで、複数のQRコードが存在しない場合(S402:No)、処理が終了する。他方、複数のQRコードが存在する場合(S402:Yes)、図28を参照して上述したように、モニター15に全てのQRコードに対して番号を表示すると共に、各QRコードを色分け表示することで作業者にQRコードを識別させる(S424)。ここで、例えば、図2に示される入力部16の図示しないテンキーで白色に相当する「1」が入力されることで、QRコードC1が指定された場合(406:Yes)、図29に示されるように、第1順位のコード(QRコードC1)をカーソルCUで特定する識別表示を行うと共に、QRコードに対して、読み取り及び調整結果を情報画像IF2として表示を行う(S408)。以降の処理は第1実施形態と同様である。 It is determined whether or not a plurality of QR codes are present in the image captured by the two-dimensional code reading device 110 (S402). Here, if a plurality of QR codes do not exist (S402: No), the process ends. On the other hand, when a plurality of QR codes exist (S402: Yes), as described above with reference to FIG. 28, the numbers are displayed on the monitor 15 for all the QR codes, and each QR code is displayed in different colors. This causes the worker to identify the QR code (S424). Here, for example, when the QR code C1 is specified by inputting "1" corresponding to white with the numeric keypad (not shown) of the input unit 16 shown in FIG. 2 (406: Yes), it is shown in FIG. 29. The first-order code (QR code C1) is identified by the cursor CU, and the reading and adjustment results are displayed as the information image IF2 on the QR code (S408). Subsequent processing is the same as that of the first embodiment.

第1実施形態の改変例では、個々の二次元コードを色分けして表示するので、容易に位置調整対象の二次元コードを指定できる。また、第1実施形態の改変例では、位置調整対象の二次元コードの指定を、色分けされた内の色選択により行わせる。容易に位置調整対象の二次元コードを指定できる。 In the modified example of the first embodiment, the individual two-dimensional codes are displayed in different colors, so that the two-dimensional code to be adjusted can be easily specified. Further, in the modified example of the first embodiment, the two-dimensional code to be adjusted is specified by color selection among the color-coded ones. You can easily specify the two-dimensional code to be adjusted.

[第2実施形態]
第2実施形態の二次元コード読取装置、設置位置調整装置は、二次元コード読取装置の初期位置設定では無く、初期位置設定の成された二次元コード読取装置が製造ラインのメンテナンス等のためいったん取り外された後、再度、初期位置設定に付け直す際の位置調整を行う。第2実施形態の二次元コード読取装置、設置位置調整装置のハードウエェア構成は、図2、図3で参照された第1実施形態の物と同様である。
[Second Embodiment]
The two-dimensional code reading device and the installation position adjusting device of the second embodiment are not the initial position setting of the two-dimensional code reading device, but the two-dimensional code reading device with the initial position setting is used for maintenance of the production line. After being removed, adjust the position when reattaching to the initial position setting. The hardware configuration of the two-dimensional code reading device and the installation position adjusting device of the second embodiment is the same as that of the first embodiment referred to in FIGS. 2 and 3.

第2実施形態では、画像中で画像特徴量が算出され、取り外し前の画像特徴量と取り外し後の一致度が高いか否かにより、二次元コードと二次元コード読取装置との相対位置が取り外し前と取り外し後で同じであるかが通知される。更に、調整中に一致方向に調整ができているかが、作業者に対してガイドが為される。 In the second embodiment, the image feature amount is calculated in the image, and the relative position between the two-dimensional code and the two-dimensional code reader is removed depending on whether the image feature amount before removal and the degree of agreement after removal are high. You will be notified if it is the same before and after removal. Further, the operator is guided to check whether the adjustment is made in the matching direction during the adjustment.

ここで、画像特徴量とは、コード位置情報から画像データの二次元コード、二次元コード周辺の情報から得られる。例えば、図9(A)に示されるQRコードに対して、にファインダパターン(切り出しシンボル)QSからQRコードの外形位置情報を得て、取り外し前の画像全体の中央にQRコードが入っている画像データに対して、画像全体に占めるQRコードの大きさを数値化し、画像特徴量とする。そして、取り外し後の画像全体の中央にQRコードが入っている画像データに対して、画像全体に占めるQRコードの大きさを数値化し、この一致度を算出し、一致度が高まるように作業者に対してガイドがなされる。ファインダパターン(切り出しシンボル)QSからQRコードの外形位置情報を得るため、適切に画像特徴量が得られる。 Here, the image feature amount is obtained from the code position information, the two-dimensional code of the image data, and the information around the two-dimensional code. For example, with respect to the QR code shown in FIG. 9A, an image in which the external position information of the QR code is obtained from the finder pattern (cutout symbol) QS and the QR code is contained in the center of the entire image before removal. The size of the QR code in the entire image is quantified with respect to the data and used as the image feature amount. Then, with respect to the image data in which the QR code is contained in the center of the entire image after removal, the size of the QR code occupying the entire image is quantified, the degree of matching is calculated, and the operator so as to increase the degree of matching. A guide is given to. Since the external position information of the QR code is obtained from the finder pattern (cutout symbol) QS, the image feature amount can be appropriately obtained.

画像特徴量としては、図9(B)に示されるように、二次元コードとしてデータマトリクスDMに対しては、アライメントパターンAPからデータマトリクスの外形位置情報が得られる。このため、適切に外形位置情報が得られる。また、図25中に示されるダイレクトマーキングのQRコードに対しては、QRコード内の輝度情報から得られる輝度勾配情報からQRコードの外形位置情報が得られる。このため、容易にダイレクトマーキングのQRコードから画像特徴量が得られる。 As the image feature amount, as shown in FIG. 9B, for the data matrix DM as a two-dimensional code, the external position information of the data matrix can be obtained from the alignment pattern AP. Therefore, the external position information can be appropriately obtained. Further, for the direct marking QR code shown in FIG. 25, the outer shape position information of the QR code can be obtained from the luminance gradient information obtained from the luminance information in the QR code. Therefore, the image feature amount can be easily obtained from the QR code of direct marking.

更に、第2実施形態では、二次元コードの外形位置情報のみならず、二次元コードの取り付けられた対象物Wの外形情報も画像特徴量として用いられる。図25(B)に示されるように、二次元コードの外形情報と、二次元コードの取り付けられた対象物Wの外形情報から、二次元コードの外形及び対象物Wの外形をなぞった枠Pが形成され、枠Pと二次元コードと対象物Wとを重ねるように二次元コード読取装置の微調整のガイドが成される。 Further, in the second embodiment, not only the outer shape position information of the two-dimensional code but also the outer shape information of the object W to which the two-dimensional code is attached is used as the image feature amount. As shown in FIG. 25B, a frame P that traces the outer shape of the two-dimensional code and the outer shape of the object W from the outer shape information of the two-dimensional code and the outer shape information of the object W to which the two-dimensional code is attached. Is formed, and a guide for fine adjustment of the two-dimensional code reader is made so as to overlap the frame P, the two-dimensional code, and the object W.

図22(A)は、任意タイミングでの画像特徴量を取得するたのためのサブルーチン処理を示す。
二次元コード読取装置、又は、設置位置調整装置は、画像データを撮像し(S222)、作業者が二次元コード読取装置の取り外し前の任意のタイミングで取得が指示された際に(S224:Yes)、画像データから画像特徴量を算出し(S226)、画像特徴量を記憶する(S228)。第2実施形態では、作業者は取り外し前に画像データを取得しておくことで、取り外し後に、容易に取り外し前の位置に二次元コード読取装置を付け直すことができる。
FIG. 22A shows a subroutine process for acquiring an image feature amount at an arbitrary timing.
The two-dimensional code reading device or the installation position adjusting device captures image data (S222), and when the operator is instructed to acquire the image data at an arbitrary timing before the removal of the two-dimensional code reading device (S224: Yes). ), The image feature amount is calculated from the image data (S226), and the image feature amount is stored (S228). In the second embodiment, by acquiring the image data before the removal, the operator can easily reattach the two-dimensional code reading device to the position before the removal after the removal.

図22(B)は、所定周期での画像特徴量を自動で取得するたのためのサブルーチン処理を示す。
二次元コード読取装置、又は、設置位置調整装置は、画像データを撮像し(S232)、設定された周期になると(S234:Yes)、画像データから画像特徴量を算出し(S236)、画像特徴量を比較し(S238)、高い特徴量の画像データを特定して、画像特徴量を記憶する(S240)。第2実施形態では、作業者は取り外し前に自動で取得された画像データに基づき、取り外し後に、容易に取り外し前の位置に二次元コード読取装置を付け直すことができる。
FIG. 22B shows a subroutine process for automatically acquiring an image feature amount in a predetermined cycle.
The two-dimensional code reader or the installation position adjusting device captures the image data (S232), and when the set cycle is reached (S234: Yes), the image feature amount is calculated from the image data (S236), and the image feature The amounts are compared (S238), image data with a high feature amount is specified, and the image feature amount is stored (S240). In the second embodiment, the operator can easily reattach the two-dimensional code reading device to the position before removal after removal based on the image data automatically acquired before removal.

図23(A)は、取り外された二次元コード読取装置を元の位置に付け直す際のサブルーチン処理を示す。
二次元コード読取装置は、作業者から取り付け作業開始の指示が成された際に(S252:Yes)、画像データを撮像し(S254)、画像データから画像特徴量を算出し(S256)、画像特徴量を記憶する(S258)。そして、二次元コード読取装置の取り外し前の複数の画像データの画像特徴量と、取り外し後の画像データの画像特徴量の一致度が算出され(S260)、一致度が高くなる読み取り環境が表示される(S262)。例えば、一致度が高くなる方向に二次元コード読取装置が調整されている際には、図3中に示されるLED43の点滅速度が速くなり、一致度が低くなる方向の二次元コード読取装置が調整されている際には、LED43の点滅速度が遅くなるである。この代わりに、図3中に示される液晶表示装置46による一致方向の表示も可能である。そして、一致度が所定閾値を超えたかいなか、即ち、ほぼ、取り外し前の位置に二次元コード読取装置を位置決めできた場合(S264:Yes)、一致が通知される(S266)。例えば、図3中に示されるブザー44により一致が通知される。S254〜S266の処理が、画像表示終了の指示があるまで(S268:No)、繰り替えされる。この第2実施形態では、ブザー44により一致が通知されたが、この代わりに、図3中に示されるLED43の発光、液晶表示装置46による一致表示も可能である。第2実施形態では、製造ラインの整備等で、二次元コード読取装置が取り外されても、作業者は容易に取り外し前の位置に二次元コード読取装置を付け直すことができる。
FIG. 23A shows a subroutine process for reattaching the removed two-dimensional code reader to its original position.
When the operator gives an instruction to start the installation work (S252: Yes), the two-dimensional code reading device captures the image data (S254), calculates the image feature amount from the image data (S256), and displays the image. The feature amount is stored (S258). Then, the degree of matching between the image feature amount of the plurality of image data before the removal of the two-dimensional code reading device and the image feature amount of the image data after the removal is calculated (S260), and the reading environment in which the degree of matching is high is displayed. (S262). For example, when the two-dimensional code reading device is adjusted in the direction of increasing the degree of matching, the blinking speed of the LED 43 shown in FIG. 3 becomes high, and the two-dimensional code reading device in the direction of decreasing the degree of matching becomes available. When adjusted, the blinking speed of the LED 43 slows down. Instead, the liquid crystal display device 46 shown in FIG. 3 can display the matching direction. Then, when the degree of coincidence exceeds a predetermined threshold value, that is, when the two-dimensional code reading device can be positioned at a position before removal (S264: Yes), the match is notified (S266). For example, the buzzer 44 shown in FIG. 3 notifies the match. The processes of S254 to S266 are repeated until there is an instruction to end the image display (S268: No). In this second embodiment, the buzzer 44 notifies the match, but instead, the LED 43 shown in FIG. 3 can emit light and the liquid crystal display device 46 can display the match. In the second embodiment, even if the two-dimensional code reading device is removed due to maintenance of the production line or the like, the operator can easily reattach the two-dimensional code reading device to the position before the removal.

図23(B)は、輝度情報に基づき画像特徴量が算出されるためのサブルーチン処理を示す。図25(A)中のダイレクトマーキングのQRコードに対しては、輝度情報が取得され(S272)、輝度情報から得られる輝度勾配情報からQRコードの画像特徴量が算出される(S274)。 FIG. 23B shows a subroutine process for calculating the image feature amount based on the luminance information. For the direct marking QR code in FIG. 25 (A), the luminance information is acquired (S272), and the image feature amount of the QR code is calculated from the luminance gradient information obtained from the luminance information (S274).

図23(C)はエイマー光り形状情報に基づき画像特徴量が算出されるためのサブルーチン処理を示す。二次元コード読取装置110は、十字状のエイマー光りの照射装置58を備え、対象物に十字状のエイマー光りを照射する。そして、エイマー光が検出され(S282)、エイマー光りの十字状の形状データから画像特徴量が算出される(S284)。第2実施形態で、画像特徴量はエイマー光形状情報であるであるため、適切に画像特徴量が得られる。 FIG. 23C shows a subroutine process for calculating the image feature amount based on the Aimer light shape information. The two-dimensional code reading device 110 includes a cross-shaped Aimer light irradiating device 58, and irradiates an object with a cross-shaped Aimer light. Then, the Aimer light is detected (S282), and the image feature amount is calculated from the cross-shaped shape data of the Aimer light (S284). In the second embodiment, since the image feature amount is the Aimer optical shape information, the image feature amount can be appropriately obtained.

図25(A)は、画像特徴量から作成されたQRコードの外枠画像(特徴画像)Pが、撮像画像に重ねられている画像の説明図である。図25(B)は、画像特徴量から作成されたQRコードの外枠画像、及び、対象物Wの外形画像(特徴画像)Pが、撮像画像に重ねられている画像の説明図である。 FIG. 25A is an explanatory diagram of an image in which the outer frame image (feature image) P of the QR code created from the image feature amount is superimposed on the captured image. FIG. 25B is an explanatory diagram of an image in which the outer frame image of the QR code created from the image feature amount and the external image (feature image) P of the object W are superimposed on the captured image.

図24(A)は、図25(A)、(B)を参照して上述した特徴画像が撮像画像に重ねられている画像を作成する際のサブルーチン処理を示している。
設置位置調整装置10は、特徴画像の表示指示があると(S302:Yes)、二次元コード読取装置110を介して画像データを撮像し(S304)、画像特徴量を算出(S306)し、図25(A)に示されるQRコードの外枠画像(特徴画像)P、又は、図25(B)に示されるQRコードの外枠画像、及び、対象物Wの外形画像(特徴画像)Pを作成し(S308)、モニター15に撮像画像上に特徴画像Pを重ねて表示する(S310)。S304〜S310の処理が表示終了の指示があるまで(S312:No)、繰り返される。二次元コード読取装置に接続された設置位置調整装置の作業者は、二次元コード読取装置側の作業者に、復元位置の指示を送ることができる。
ここでは、画像表示が設置位置調整装置側のモニター15で行われたが、この画像表示を二次元コード読取装置110側の図3中に示される液晶表示装置46で行われることも可能である。これにより、二次元コード読取装置単体で、作業者は、取り外し後に、容易に取り外し前の位置に二次元コード読取装置を付け直すことができる。
FIG. 24 (A) shows a subroutine process for creating an image in which the above-mentioned feature image is superimposed on the captured image with reference to FIGS. 25 (A) and 25 (B).
When the installation position adjusting device 10 receives an instruction to display a feature image (S302: Yes), the installation position adjusting device 10 captures image data via the two-dimensional code reading device 110 (S304), calculates an image feature amount (S306), and views the image. The outer frame image (feature image) P of the QR code shown in 25 (A), the outer frame image of the QR code shown in FIG. 25 (B), and the outer frame image (feature image) P of the object W. It is created (S308), and the feature image P is superimposed and displayed on the captured image on the monitor 15 (S310). The processing of S304 to S310 is repeated until there is an instruction to end the display (S312: No). The operator of the installation position adjusting device connected to the two-dimensional code reader can send an instruction of the restoration position to the operator on the two-dimensional code reader side.
Here, the image display is performed on the monitor 15 on the installation position adjusting device side, but this image display can also be performed on the liquid crystal display device 46 shown in FIG. 3 on the two-dimensional code reading device 110 side. .. As a result, with the two-dimensional code reading device alone, the operator can easily reattach the two-dimensional code reading device to the position before the removal after the removal.

第2実施形態では、特徴画像Pと、画像と重ねるように調整することで、作業者は、取り外し後に、容易に取り外し前の位置に二次元コード読取装置を付け直すことができる。 In the second embodiment, by adjusting the feature image P so as to overlap the image, the operator can easily reattach the two-dimensional code reading device to the position before the removal after the removal.

図26は、第2実施形態の改変例に係るマトリクス状に分割されたブロックで一致度が高いブロックを特定する画像の説明図である。画像中でマトリクス枠PSが画像に重ねて表示され、枠中で一致度の高い枠内に透過青色四角形色PPが表示される。 FIG. 26 is an explanatory diagram of an image that identifies blocks having a high degree of coincidence among the blocks divided into a matrix according to the modified example of the second embodiment. The matrix frame PS is displayed superimposed on the image in the image, and the transparent blue square color PP is displayed in the frame having a high degree of matching in the frame.

第2実施形態の改変例では、画像を局所領域に分割し、局所領域毎に予め保存してある画像特徴量に基づき、一致度が表示される。画像特徴量としては、輝度勾配情報を局所領域においてヒストグラム化するHOGが用いられる。コード領域およびコード周囲の局所領域毎のHOG情報により、予め保存してあったものと比較され、評価が成される。評価方法としてはHOGのコサイン類似度が使用される。表示方法としては、図26では、一致度の高い枠内に透過青色四角形色PPが表示されたが、この代わりにスコア表示することも可能である。 In the modified example of the second embodiment, the image is divided into local regions, and the degree of coincidence is displayed based on the image feature amount stored in advance for each local region. As the image feature amount, HOG that histograms the luminance gradient information in the local region is used. The HOG information for each code area and the local area around the code is compared with the one stored in advance and evaluated. The cosine similarity of HOG is used as the evaluation method. As a display method, in FIG. 26, the transparent blue square color PP is displayed in the frame having a high degree of agreement, but it is also possible to display the score instead.

図24(B)は、図26に示されたマトリクス状に分割されたブロックで一致度が高いブロックを特定する際のサブルーチン処理を示す。
設置位置調整装置10は、二次元コード読取装置110を介して取得した画像をブロックに分割し(S322)、ブロックHOG特徴量を算出し(S324)、記憶保存しているHOG特徴量とのコサイン類似度を評価する(S326)。そして、ブロック類似度が閾値以上かが判断され(S328)、閾値以上のブロックには、類似ブロックとして、図26中で示された透過青色四角形色PPが表示される(S330)。S322〜S330の処理が表示終了の指示があるまで(S332:No)、繰り返される。ここでは、画像表示が設置位置調整装置側のモニター15で行われたが、この画像表示を二次元コード読取装置110側の図3中に示される液晶表示装置46で行われることも可能である。
FIG. 24B shows a subroutine process for identifying a block having a high degree of matching among the blocks divided into the matrix shown in FIG. 26.
The installation position adjusting device 10 divides the image acquired via the two-dimensional code reading device 110 into blocks (S322), calculates the block HOG feature amount (S324), and cosines with the stored HOG feature amount. The degree of similarity is evaluated (S326). Then, it is determined whether the block similarity is equal to or higher than the threshold value (S328), and the transparent blue square color PP shown in FIG. 26 is displayed as a similar block in the block having the block similarity or higher value (S330). The processing of S322 to S330 is repeated until there is an instruction to end the display (S332: No). Here, the image display is performed on the monitor 15 on the installation position adjusting device side, but this image display can also be performed on the liquid crystal display device 46 shown in FIG. 3 on the two-dimensional code reading device 110 side. ..

更に、第2実施形態の第2改変例として、複数の読み取り画像の差分を取ることにより、読み取り試行に不変的な画像領域を抽出し、それを自動的に特徴量算出エリアとすることも可能である。 Further, as a second modification of the second embodiment, it is also possible to extract an image area that is invariant to a reading attempt by taking a difference between a plurality of read images and automatically use it as a feature amount calculation area. Is.

第2実施形態の第3改変例として、複数の対象物(ワーク)を取り替えて運用される場合に、画像の類似度を検定し、どのワークなのか自動で判別することも可能である。即ち、ワークの種類分、特徴量を自動登録する構成が備えられる。 As a third modification example of the second embodiment, when a plurality of objects (workpieces) are replaced and operated, it is also possible to test the similarity of images and automatically determine which work is which. That is, a configuration is provided in which features are automatically registered for each type of work.

第2実施形態の第4改変例として、オートフォーカス機能を利用し、フォーカス位置による(深度成分の)画像特徴を使用し、一致度を出力することも可能である。作業者は、取り外し後に、容易に取り外し前の距離に二次元コード読取装置を付け直すことができる。 As a fourth modification example of the second embodiment, it is also possible to use the autofocus function, use the image feature (of the depth component) depending on the focus position, and output the degree of agreement. After removal, the operator can easily reattach the two-dimensional code reader to the distance before removal.

第2実施形態の第5改変例として、固定式の二次元コード読取装置では無く、ハンディスキャナを固定し、表示LEDにより環境一致指示を行う。簡易な構成のハンディスキャナ単体で、作業者は、取り外し後に、取り外し前の位置にハンディスキャナを付け直すことができる。 As a fifth modification of the second embodiment, a handy scanner is fixed instead of a fixed two-dimensional code reader, and an environment matching instruction is given by a display LED. With a simple handy scanner alone, the operator can reattach the handy scanner to the position before removal after removal.

10…設置位置調整装置
11…CPU
13…RAM(メモリ)
15…モニター
21…OS(オペレーティングシステム)
46…液晶表示装置
53…撮像器
110…二次元コード読取装置
10 ... Installation position adjustment device 11 ... CPU
13 ... RAM (memory)
15 ... Monitor 21 ... OS (Operating System)
46 ... Liquid crystal display device 53 ... Imager 110 ... Two-dimensional code reader

Claims (41)

二次元コード読取装置の設置位置調整装置であって、
二次元コード読取装置が撮像した画像を取得する画像取得手段と、
取得した画像を表示する画像表示手段と、
予め設定された二次元コードの左右上下方向に対して、撮像された二次元コードの角度ずれを検出する角度ずれ検出手段と、
前記角度ずれ検出手段で検出された角度ずれを補正し、前記設定された左右上下方向で二次元コードを、前記画像表示手段で表示させる角度ずれ補正手段と、を備え、
前記画像表示手段は、前記二次元コードの付けられた読み取り対象物を、前記角度ずれ補正手段で二次元コードが回転された角度に対応して回転させて表示することを特徴とする設置位置調整装置。
It is an installation position adjustment device for a two-dimensional code reader,
An image acquisition means for acquiring an image captured by a two-dimensional code reader, and
An image display means for displaying the acquired image and
An angle deviation detecting means for detecting an angle deviation of the captured two-dimensional code in the left-right and up-down directions of the preset two-dimensional code, and
The angle deviation correcting means for correcting the angle deviation detected by the angle deviation detecting means and displaying the two-dimensional code in the set left / right / up / down direction by the image display means is provided.
The image display means is characterized in that the reading object to which the two-dimensional code is attached is rotated and displayed according to the angle at which the two-dimensional code is rotated by the angle deviation correction means. apparatus.
請求項1の二次元コード読取装置の設置位置調整装置であって、
表示される前記二次元コードを所定角度回転させる所定回転手段と、
表示される前記二次元コードを入力された角度回転させる角度回転手段と、を備えることを特徴とする設置位置調整装置。
The installation position adjusting device for the two-dimensional code reading device according to claim 1.
A predetermined rotating means for rotating the displayed two-dimensional code by a predetermined angle,
An installation position adjusting device comprising: an angle rotating means for rotating the displayed two-dimensional code by an input angle.
請求項1又は2の二次元コード読取装置の設置位置調整装置であって、
二次元コードに対する作業者の位置を入力する位置入力手段と、
前記作業者の位置から見える二次元コードの向きと、前記画像取得手段で表示される二次元コードの向きとを合わせる向き調整手段と、を備えることを特徴とする設置位置調整装置。
An installation position adjusting device for the two-dimensional code reading device according to claim 1 or 2.
A position input means for inputting the position of the worker with respect to the two-dimensional code, and
An installation position adjusting device comprising: an orientation adjusting means for matching the orientation of the two-dimensional code seen from the position of the worker with the orientation of the two-dimensional code displayed by the image acquisition means.
請求項3の二次元コード読取装置の設置位置調整装置であって、
前記位置入力手段は、撮像された二次元コードと、撮像された二次元コードに対する作業者の位置とを同時に前記画像表示手段で表示させることで位置を入力させることを特徴とする設置位置調整装置。
The installation position adjusting device for the two-dimensional code reading device according to claim 3.
The position input means is an installation position adjusting device characterized in that an imaged two-dimensional code and an operator's position with respect to the imaged two-dimensional code are simultaneously displayed by the image display means to input a position. ..
請求項1〜請求項4のいずれか1の二次元コード読取装置の設置位置調整装置であって、
前記角度ずれ検出手段は、撮像された二次元コードの特徴から角度ずれを検出することを特徴とする設置位置調整装置。
An installation position adjusting device for the two-dimensional code reading device according to any one of claims 1 to 4.
The angle deviation detecting means is an installation position adjusting device characterized by detecting an angle deviation from the characteristics of an imaged two-dimensional code.
請求項1〜請求項4のいずれか1の二次元コード読取装置の設置位置調整装置であって、
取得した二次元コードの画像から二次元コードの傾きを検出する傾き検出手段と、
前記検出された二次元コードの傾きを前記画像表示手段で表示するコード傾き表示手段と、を有することを特徴とする設置位置調整装置。
An installation position adjusting device for the two-dimensional code reading device according to any one of claims 1 to 4.
A tilt detecting means for detecting the tilt of the two-dimensional code from the acquired image of the two-dimensional code, and
An installation position adjusting device comprising: a code tilt display means for displaying the tilt of the detected two-dimensional code by the image display means.
請求項6の二次元コード読取装置の設置位置調整装置であって、
前記二次元コード読取装置は、地面からの傾きを取得する傾き取得手段を有し、
取得した傾きから二次元コード読取装置の傾きを前記画像表示手段で表示する装置傾き表示手段を有することを特徴とする設置位置調整装置。
The installation position adjusting device for the two-dimensional code reading device according to claim 6.
The two-dimensional code reading device has an inclination acquisition means for acquiring an inclination from the ground.
An installation position adjusting device comprising a device tilt display means for displaying the tilt of the two-dimensional code reading device from the acquired tilt by the image display means.
請求項6の二次元コード読取装置の設置位置調整装置であって、
前記傾き検出手段は、取得した二次元コードの画像から、上下の辺と左右の辺の長さを比較し、差が大きいか否かを判断する長さ差判断手段と、
前記長さ差判断手段が差を大きいと判断した際に、取得した二次元コードの画像を複数のセルに分割し、各セルの大きさを比較することで傾きを判定する傾き判定手段とを備えることを特徴とする設置位置調整装置。
The installation position adjusting device for the two-dimensional code reading device according to claim 6.
The inclination detecting means is a length difference determining means for comparing the lengths of the upper and lower sides and the left and right sides from the acquired image of the two-dimensional code and determining whether or not the difference is large.
When the length difference determining means determines that the difference is large, the acquired two-dimensional code image is divided into a plurality of cells, and the inclination determining means for determining the inclination is performed by comparing the sizes of the cells. An installation position adjusting device characterized by being provided.
請求項6の二次元コード読取装置の設置位置調整装置であって、
取得した二次元コードの傾きを3次元グラフとして前記画像表示手段で表示する3次元グラフ表示手段を備えることを特徴とする設置位置調整装置。
The installation position adjusting device for the two-dimensional code reading device according to claim 6.
An installation position adjusting device including a three-dimensional graph display means for displaying the inclination of the acquired two-dimensional code as a three-dimensional graph by the image display means.
請求項9の二次元コード読取装置の設置位置調整装置であって、
読み取りの焦点を合わせるオートフォーカス手段を備え、
前記3次元グラフ表示手段は、
取得した二次元コードの画像を複数のセルに分割し、
前記オートフォーカス手段を用いて分割したセルの内、焦点が最も合っているセルを検出し、そのセルを前記二次元コード読取装置との距離を焦点距離とし、
前記焦点距離のセルと、他の分割したセルとの大きさの比較から他の分割したセルまでの距離を推定し、前記3次元グラフとして前記画像表示手段で表示することを特徴とする設置位置調整装置。
The installation position adjusting device for the two-dimensional code reading device according to claim 9.
Equipped with an autofocus means to focus the reading
The three-dimensional graph display means
Divide the acquired 2D code image into multiple cells and
Among the cells divided by using the autofocus means, the cell that is most in focus is detected, and the distance between the cell and the two-dimensional code reading device is defined as the focal length.
An installation position characterized in that the distance to another divided cell is estimated from the size comparison between the cell having the focal length and another divided cell, and displayed as the three-dimensional graph by the image display means. Adjuster.
請求項1の二次元コード読取装置の設置位置調整装置であって、
読み取りの焦点を合わせるオートフォーカス手段と、
オートフォーカス中の各距離毎のオートフォーカス評価値をグラフ表示するグラフ表示手段と、
前記グラフ中に表示されるピークが選択された際に、当該ピークに対応する位置を、前記画像表示手段の表示画像中に表示するピーク位置表示手段と、を備えることを特徴とする設置位置調整装置。
The installation position adjusting device for the two-dimensional code reading device according to claim 1.
Autofocus means to focus the reading and
A graph display means that displays the autofocus evaluation value for each distance during autofocus as a graph,
An installation position adjustment characterized by comprising a peak position display means for displaying a position corresponding to the peak in the display image of the image display means when a peak displayed in the graph is selected. apparatus.
二次元コード読取装置の設置位置調整装置であって、
二次元コード読取装置が撮像した画像を取得する画像取得手段と、
取得した画像を表示する画像表示手段と、
二次元コードの左右上下方向に対して、撮像された二次元コードの角度ずれを検出する角度ずれ検出手段と、
前記角度ずれ検出手段で検出された角度ずれを、前記画像表示手段で表示させる角度ずれ表示手段と、
撮像した二次元コードに、マージンを付加して前記画像表示手段で表示させるマージン表示手段と、
を備えることを特徴とする設置位置調整装置。
It is an installation position adjustment device for a two-dimensional code reader,
An image acquisition means for acquiring an image captured by a two-dimensional code reader, and
An image display means for displaying the acquired image and
An angle deviation detecting means for detecting an angle deviation of the captured two-dimensional code in the horizontal and vertical directions of the two-dimensional code, and
An angle deviation display means for displaying the angle deviation detected by the angle deviation detecting means by the image display means, and an angle deviation display means.
A margin display means for adding a margin to the captured two-dimensional code and displaying it with the image display means,
An installation position adjusting device characterized by being provided with.
請求項12の二次元コード読取装置の設置位置調整装置であって、
検出された角度ずれが大きいか否かを判断する角度ずれ判断手段と、
前記角度ずれ判断手段が角度ずれが大きいと判断した際に、角度ずれが大きいことを指示する角度ずれ指示手段とを有することを特徴とする設置位置調整装置。
The installation position adjusting device for the two-dimensional code reading device according to claim 12.
An angle deviation determination means for determining whether or not the detected angle deviation is large,
An installation position adjusting device comprising an angle deviation indicating means for instructing that the angle deviation is large when the angle deviation determining means determines that the angle deviation is large.
請求項13の二次元コード読取装置の設置位置調整装置であって、
前記角度ずれ判断手段が角度ずれが大きいと判断した際に、前記角度ずれ指示手段が、角度ずれが大きいことを指示すると共に、撮像した二次元コードの位置合わせ用のマーカを前記画像表示手段に表示することを特徴とする設置位置調整装置。
The installation position adjusting device for the two-dimensional code reading device according to claim 13.
When the angle deviation determining means determines that the angle deviation is large, the angle deviation indicating means indicates that the angle deviation is large, and at the same time, a marker for aligning the captured two-dimensional code is used as the image display means. An installation position adjusting device characterized by displaying.
請求項12の二次元コード読取装置の設置位置調整装置であって、
前記マージンが撮像範囲内にあるか否かを判断する撮像範囲内判断手段と、
前記撮像範囲内判断手段が撮像範囲外であると判断した際に、マージンが撮像範囲外であることを指示するマージン撮像範囲外指示手段とを有することを特徴とする設置位置調整装置。
The installation position adjusting device for the two-dimensional code reading device according to claim 12.
An imaging range determination means for determining whether or not the margin is within the imaging range, and
An installation position adjusting device comprising a margin imaging range out-of-range indicating means for instructing that a margin is out of the imaging range when the in-imaging range determining means determines to be out of the imaging range.
請求項12の二次元コード読取装置の設置位置調整装置であって、
前記マージン内に二次元コード以外のデータがあるか否かを判断するデータ判断手段と、
前記データ判断手段が二次元コード以外のデータがあると判断した際に、二次元コード以外のデータがあることを指示するデータ存在指示手段とを有することを特徴とする設置位置調整装置。
The installation position adjusting device for the two-dimensional code reading device according to claim 12.
A data determination means for determining whether or not there is data other than a two-dimensional code in the margin, and
An installation position adjusting device comprising a data existence indicating means for instructing that there is data other than the two-dimensional code when the data determining means determines that there is data other than the two-dimensional code.
請求項12〜請求項16のいずれか1の二次元コード読取装置の設置位置調整装置であって、
前記角度ずれ検出手段で検出された角度ずれを補正し、設定された左右上下方向で二次元コードを、前記画像表示手段で表示させる角度ずれ補正手段を備え、
前記画像表示手段は、前記二次元コードの付けられた読み取り対象物を、前記角度ずれ補正手段で二次元コードが回転された角度に対応して回転させて表示することを特徴とする設置位置調整装置。
An installation position adjusting device for the two-dimensional code reading device according to any one of claims 12 to 16.
An angle deviation correcting means for correcting the angle deviation detected by the angle deviation detecting means and displaying a two-dimensional code in the set left / right / up / down direction by the image display means is provided.
The image display means is characterized in that the reading object to which the two-dimensional code is attached is rotated and displayed according to the angle at which the two-dimensional code is rotated by the angle deviation correction means. apparatus.
二次元コード読取装置であって、
画像データを撮像する撮像手段と、
前記画像データのコード位置情報から、前記画像データのコードもしくはコード周辺の画像特徴量を算出するコード画像特徴量算出手段と、
前記画像特徴量を記憶するコード画像特徴量記憶手段と、
前記コード画像特徴量記憶手段に記憶された複数の画像特徴量から、前記画像データの撮像された環境の一致度を算出する読み取り環境一致度算出手段と、
前記環境一致度算出手段により算出された一致度が高くなる前記画像データの撮像された環境を指示する環境一致指示手段と、を備える二次元コード読取装置。
It is a two-dimensional code reader
An imaging means for capturing image data and
A code image feature amount calculating means for calculating the code of the image data or an image feature amount around the code from the code position information of the image data, and
A code image feature storage means for storing the image feature and
A reading environment matching degree calculating means for calculating the matching degree of the imaged environment of the image data from a plurality of image feature amounts stored in the code image feature amount storage means, and
A two-dimensional code reading device including an environment matching instruction means for instructing an environment in which the image data is captured, which increases the matching degree calculated by the environment matching degree calculating means.
請求項1の設置位置調整装置の二次元コード読取装置であって、
画像データを撮像する撮像手段と、
前記画像データのコード位置情報から、前記画像データのコードもしくはコード周辺の画像特徴量を算出するコード画像特徴量算出手段と、
前記画像特徴量を記憶するコード画像特徴量記憶手段と、
前記コード画像特徴量記憶手段に記憶された複数の画像特徴量から、前記画像データの撮像された環境の一致度を算出する読み取り環境一致度算出手段と、
前記環境一致度算出手段により算出された一致度が高くなる前記画像データの撮像された環境を指示する環境一致指示手段と、を備える二次元コード読取装置。
The two-dimensional code reading device of the installation position adjusting device according to claim 1.
An imaging means for capturing image data and
A code image feature amount calculating means for calculating the code of the image data or an image feature amount around the code from the code position information of the image data, and
A code image feature storage means for storing the image feature and
A reading environment matching degree calculating means for calculating the matching degree of the imaged environment of the image data from a plurality of image feature amounts stored in the code image feature amount storage means, and
A two-dimensional code reading device including an environment matching instruction means for instructing an environment in which the image data is captured, which increases the matching degree calculated by the environment matching degree calculating means.
請求項18又は請求項19の二次元コード読取装置であって、
前記コード画像特徴量記憶手段は、任意のタイミングで前記撮像手段から画像データを取得し、前記画像特徴量を記憶できる画像特徴量記憶タイミング手段を備えることを特徴とする二次元コード読取装置。
The two-dimensional code reading device according to claim 18 or 19.
The code image feature amount storage means is a two-dimensional code reading device including an image feature amount storage timing means capable of acquiring image data from the image pickup means at an arbitrary timing and storing the image feature amount.
請求項18又は請求項19の二次元コード読取装置であって、
前記コード画像特徴量記憶手段は、設定されたタイミングで前記撮像手段から画像データを取得し、前記画像特徴量を記憶できる画像特徴量記憶タイミング手段を備え、
前記コード画像特徴量算出手段は、設定されたタイミングで取得された画像データの前記画像特徴量中で高い前記画像特徴量を選定する選定手段を備えることを特徴とする二次元コード読取装置。
The two-dimensional code reading device according to claim 18 or 19.
The code image feature amount storage means includes an image feature amount storage timing means capable of acquiring image data from the image pickup means at a set timing and storing the image feature amount.
The code image feature amount calculating means is a two-dimensional code reading device including a selection means for selecting a high image feature amount among the image feature amounts of image data acquired at a set timing.
請求項18〜請求項21のいずれか1の二次元コード読取装置であって、
前記環境の一致度が、設定された閾値を超えた場合に読み取り環境の一致を通知する環境の一致通知手段を備えることを特徴とする二次元コード読取装置。
The two-dimensional code reading device according to any one of claims 18 to 21.
A two-dimensional code reading device comprising an environment matching notification means for notifying the matching of reading environments when the matching degree of the environment exceeds a set threshold value.
請求項18〜請求項21のいずれか1の二次元コード読取装置であって、
前記画像特徴量は、前記コード位置情報から得られる外形位置情報であることを特徴とする二次元コード読取装置。
The two-dimensional code reading device according to any one of claims 18 to 21.
A two-dimensional code reading device characterized in that the image feature amount is external position information obtained from the code position information.
請求項23の二次元コード読取装置であって、
前記外形位置情報はQRコード(登録商標)のファインダパターンであることを特徴とする二次元コード読取装置。
The two-dimensional code reading device according to claim 23.
A two-dimensional code reading device characterized in that the external position information is a finder pattern of a QR code (registered trademark).
請求項23の二次元コード読取装置であって、
前記外形位置情報はコードないしコード周辺のエッジ情報であることを特徴とする二次元コード読取装置。
The two-dimensional code reading device according to claim 23.
A two-dimensional code reading device characterized in that the external position information is code or edge information around the code.
請求項18〜請求項21のいずれか1の二次元コード読取装置であって、
前記コード画像特徴量算出手段は、前記コードないしコード周辺の輝度情報から輝度勾配情報を取得する輝度勾配取得手段を備え、
前記画像特徴量は前記輝度勾配情報であるであることを特徴とする二次元コード読取装置。
The two-dimensional code reading device according to any one of claims 18 to 21.
The code image feature amount calculating means includes a luminance gradient acquiring means for acquiring luminance gradient information from the luminance information of the code or the periphery of the code.
A two-dimensional code reading device characterized in that the image feature amount is the luminance gradient information.
請求項18〜請求項21のいずれか1の二次元コード読取装置であって、
撮像視野方向を示すエイマー光照射装置を備え、
前記コード画像特徴量算出手段は、二次元コードの付けられた対象物に照射されたエイマー光を検出するエイマー光検出手段を備え、
前記画像特徴量はエイマー光形状情報であるであることを特徴とする二次元コード読取装置。
The two-dimensional code reading device according to any one of claims 18 to 21.
Equipped with an Aimer light irradiation device that indicates the imaging field of view
The code image feature amount calculating means includes an aimer light detecting means for detecting an aimer light irradiated to an object to which a two-dimensional code is attached.
A two-dimensional code reading device characterized in that the image feature amount is Aimer optical shape information.
請求項18〜請求項21のいずれか1の二次元コード読取装置であって、
オートフォーカス機能を備え、
前記コード画像特徴量算出手段は、前記オートフォーカス機能により二次元コードの付けられた対象物までの距離を測定する距離測定手段を備え、
前記画像特徴量は前記対象物までの距離情報であるであることを特徴とする二次元コード読取装置。
The two-dimensional code reading device according to any one of claims 18 to 21.
Equipped with an autofocus function
The code image feature amount calculating means includes a distance measuring means for measuring the distance to an object to which a two-dimensional code is attached by the autofocus function.
A two-dimensional code reading device characterized in that the image feature amount is distance information to the object.
請求項18〜請求項21のいずれか1の二次元コード読取装置であって、
撮像された画像データを表示する表示手段を備え、
環境一致指示手段は、前記画像特徴量に基づき作成した特徴画像を作成し、
前記表示手段は、前記画像データと重ねて前記特徴画像を表示する。
The two-dimensional code reading device according to any one of claims 18 to 21.
Equipped with a display means to display the captured image data
The environment matching instruction means creates a feature image created based on the image feature amount, and creates a feature image.
The display means displays the feature image on top of the image data.
請求項29の二次元コード読取装置であって、
前記表示手段が前記二次元コード読取装置に内蔵されていることを特徴とする二次元コード読取装置。
The two-dimensional code reader according to claim 29.
A two-dimensional code reading device, characterized in that the display means is built in the two-dimensional code reading device.
請求項29の二次元コード読取装置であって、
前記表示手段が前記二次元コード読取装置に接続された機器に備えられることを特徴とする二次元コード読取装置。
The two-dimensional code reader according to claim 29.
A two-dimensional code reading device, characterized in that the display means is provided in a device connected to the two-dimensional code reading device.
請求項18〜請求項21のいずれか1の二次元コード読取装置であって、
表示LEDを備え、
前記環境一致指示手段は、前記表示LEDにより環境一致指示を行うことを特徴とする二次元コード読取装置。
The two-dimensional code reading device according to any one of claims 18 to 21.
Equipped with a display LED
The environment matching instruction means is a two-dimensional code reading device characterized in that the environment matching instruction is given by the display LED.
二次元コードを光学的に読み取る二次元コード読取装置の位置調整を制御するコンピュータにより実行されるプログラムであって、
二次元コード読取装置が撮像した画像を取得するステップと、
取得した画像をモニターに表示するステップと、
予め設定された二次元コードの左右上下方向に対して、撮像された二次元コードの角度ずれを検出するステップと、
前記角度ずれを検出するステップで検出された角度ずれを補正し、前記設定された左右上下方向で二次元コードを前記モニターで表示させる角度ずれ補正のステップと、
前記二次元コードの付けられた読み取り対象物を、前記角度ずれ補正のステップで二次元コードが回転された角度に対応して回転させて前記モニターで表示するステップと、を前記コンピュータに実行させることを特徴とするプログラム。
A program executed by a computer that controls the position adjustment of a two-dimensional code reader that optically reads a two-dimensional code.
Steps to acquire the image captured by the 2D code reader,
Steps to display the acquired image on the monitor,
A step of detecting an angular deviation of the captured two-dimensional code with respect to the left-right and up-down directions of the preset two-dimensional code, and
An angle deviation correction step of correcting the angle deviation detected in the step of detecting the angle deviation and displaying a two-dimensional code on the monitor in the set left / right / up / down directions.
To have the computer execute the step of rotating the reading object to which the two-dimensional code is attached and displaying it on the monitor in the step of correcting the angle deviation by rotating the object corresponding to the angle at which the two-dimensional code is rotated. A program featuring.
二次元コード読取装置の設置位置調整装置であって、
二次元コード読取装置が撮像した画像を取得する画像取得手段と、
取得した画像を表示する画像表示手段と、
複数の二次元コードに対して、個々の二次元コードに識別情報を付して前記画像表示手段に表示する情報表示手段と、
前記二次元コード読取装置の位置調整対象に指定された二次元コードを特定して前記画像表示手段に表示する特定表示手段と、
前記位置調整対象に指定された以外の二次元コードの読み取り条件を個々に調整し、調整結果を保持することを特徴とする設置位置調整装置。
It is an installation position adjustment device for a two-dimensional code reader,
An image acquisition means for acquiring an image captured by a two-dimensional code reader, and
An image display means for displaying the acquired image and
An information display means for displaying a plurality of two-dimensional codes on the image display means by attaching identification information to each two-dimensional code.
A specific display means that identifies the two-dimensional code designated as the position adjustment target of the two-dimensional code reader and displays it on the image display means.
An installation position adjusting device characterized in that the reading conditions of a two-dimensional code other than those designated as the position adjusting target are individually adjusted and the adjustment result is held.
請求項1の二次元コード読取装置の設置位置調整装置であって、
複数の二次元コードに対して、個々の二次元コードに識別情報を付して前記画像表示手段に表示する情報表示手段と、
前記二次元コード読取装置の位置調整対象に指定された二次元コードを特定して前記画像表示手段に表示する特定表示手段と、
前記位置調整対象に指定された以外の二次元コードの読み取り条件を個々に調整し、調整結果を保持することを特徴とする設置位置調整装置。
The installation position adjusting device for the two-dimensional code reading device according to claim 1.
An information display means for displaying a plurality of two-dimensional codes on the image display means by attaching identification information to each two-dimensional code.
A specific display means that identifies the two-dimensional code designated as the position adjustment target of the two-dimensional code reader and displays it on the image display means.
An installation position adjusting device characterized in that the reading conditions of a two-dimensional code other than those designated as the position adjusting target are individually adjusted and the adjustment result is held.
請求項34又は請求項35の二次元コード読取装置の設置位置調整装置であって、
前記調整結果の保持を二次元コード読取装置に行わせ、
前記二次元コード読取装置は、位置調整対象に指定された以外の二次元コードの読み取りの際に、個々に保持した条件に調整することを特徴とする設置位置調整装置。
The installation position adjusting device for the two-dimensional code reading device according to claim 34 or 35.
Let the two-dimensional code reader hold the adjustment result.
The two-dimensional code reading device is an installation position adjusting device, characterized in that, when reading a two-dimensional code other than the one designated as a position adjusting target, the two-dimensional code reading device is adjusted to individually held conditions.
請求項34又は請求項35の二次元コード読取装置の設置位置調整装置であって、
前記個々の二次元コードの識別情報は、個々の二次元コードに付けた番号であり、
前記情報表示手段は、個々の二次元コードに番号を付して前記画像表示手段に表示することを特徴とする設置位置調整装置。
The installation position adjusting device for the two-dimensional code reading device according to claim 34 or 35.
The identification information of the individual two-dimensional code is a number assigned to each two-dimensional code.
The information display means is an installation position adjusting device characterized in that individual two-dimensional codes are numbered and displayed on the image display means.
請求項34又は請求項35の二次元コード読取装置の設置位置調整装置であって、
前記個々の二次元コードの識別情報は、個々の二次元コードに付けた色分けであり、
前記情報表示手段は、個々の二次元コードを色分けして前記画像表示手段に表示することを特徴とする設置位置調整装置。
The installation position adjusting device for the two-dimensional code reading device according to claim 34 or 35.
The identification information of the individual two-dimensional code is the color coding attached to each two-dimensional code.
The information display means is an installation position adjusting device characterized in that individual two-dimensional codes are color-coded and displayed on the image display means.
請求項38の二次元コード読取装置の設置位置調整装置であって、
前記位置調整対象の二次元コードの指定を、色分けされた内の色選択により行わせることを特徴とする設置位置調整装置。
The installation position adjusting device for the two-dimensional code reading device according to claim 38.
An installation position adjusting device characterized in that a two-dimensional code to be adjusted is designated by color selection within color coding.
請求項34又は請求項35の二次元コード読取装置の設置位置調整装置であって、
前記位置調整対象に指定された二次元コードの特定は、前記二次元コードに付され表示されるカーソルであることを特徴とする設置位置調整装置。
The installation position adjusting device for the two-dimensional code reading device according to claim 34 or 35.
An installation position adjusting device, characterized in that the identification of the two-dimensional code designated as the position adjusting target is a cursor attached to and displayed on the two-dimensional code.
請求項40の二次元コード読取装置の設置位置調整装置であって
前記位置調整対象に指定された二次元コードの読み取り条件を表示することを特徴とする設置位置調整装置。
The installation position adjusting device for the two-dimensional code reading device according to claim 40, which displays the reading conditions of the two-dimensional code designated as the position adjusting target.
JP2020069759A 2019-04-26 2020-04-08 Two-dimensional code reader, installation position adjustment device, program Active JP7469624B2 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2019084900 2019-04-26
JP2019084900 2019-04-26
JP2019140060 2019-07-30
JP2019140060 2019-07-30

Publications (2)

Publication Number Publication Date
JP2021015592A true JP2021015592A (en) 2021-02-12
JP7469624B2 JP7469624B2 (en) 2024-04-17

Family

ID=74531531

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020069759A Active JP7469624B2 (en) 2019-04-26 2020-04-08 Two-dimensional code reader, installation position adjustment device, program

Country Status (1)

Country Link
JP (1) JP7469624B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113128246A (en) * 2021-03-25 2021-07-16 维沃移动通信有限公司 Information processing method and device and electronic equipment
CN113489963A (en) * 2021-07-08 2021-10-08 宁波宝贝第一母婴用品有限公司 Method and device for guiding installation of cart
CN113720371A (en) * 2021-08-24 2021-11-30 神思电子技术股份有限公司 Two-dimensional code testing tool and method applied to new medical insurance equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3815564B2 (en) 2003-01-07 2006-08-30 オムロン株式会社 Two-dimensional code reader
JP6274097B2 (en) 2014-12-17 2018-02-07 カシオ計算機株式会社 Product identification device and product recognition navigation method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113128246A (en) * 2021-03-25 2021-07-16 维沃移动通信有限公司 Information processing method and device and electronic equipment
CN113489963A (en) * 2021-07-08 2021-10-08 宁波宝贝第一母婴用品有限公司 Method and device for guiding installation of cart
CN113489963B (en) * 2021-07-08 2024-02-23 宁波宝贝第一母婴用品有限公司 Cart installation guiding method and device
CN113720371A (en) * 2021-08-24 2021-11-30 神思电子技术股份有限公司 Two-dimensional code testing tool and method applied to new medical insurance equipment

Also Published As

Publication number Publication date
JP7469624B2 (en) 2024-04-17

Similar Documents

Publication Publication Date Title
JP7469624B2 (en) Two-dimensional code reader, installation position adjustment device, program
CN110580724B (en) Method and device for calibrating binocular camera set and storage medium
CN108297096B (en) Calibration device, calibration method, and computer-readable medium
CN108451536B (en) Method for automatically positioning an X-ray source of an X-ray system and X-ray system
JP4927021B2 (en) Cursor control device and control method for image display device, and image system
EP1513095B1 (en) Optical information reading apparatus and related information reading method
US20060210192A1 (en) Automatic perspective distortion detection and correction for document imaging
JP4710734B2 (en) Pointing device, pointing position detection method, and program
CN110570477A (en) Method, device and storage medium for calibrating relative attitude of camera and rotating shaft
TW201104508A (en) Stereoscopic form reader
EP1696383A2 (en) Automatic perspective distortion detection and correction for document imaging
JP4537143B2 (en) Image processing apparatus and method, imaging apparatus, and program
JP3690581B2 (en) POSITION DETECTION DEVICE AND METHOD THEREFOR, PLAIN POSITION DETECTION DEVICE AND METHOD THEREOF
US9924066B2 (en) Image processing apparatus, information processing method, and program
JP4644800B2 (en) 3D position input device
JP4111216B2 (en) Optical information reader
TWI680362B (en) Component handling assembly and method of adjusting a component handling assembly
JP2001166881A (en) Pointing device and its method
JP6390163B2 (en) Information processing apparatus, information processing method, and program
TWI504859B (en) Method for photographing and piecing together the images of an object
JP2013140053A (en) Image processor and image processing method
US20180130230A1 (en) Recognition apparatus, determination method, and article manufacturing method
JP4741943B2 (en) Inspection apparatus and inspection method
JP6108383B2 (en) Piping position measuring system and piping position measuring method
JP2005337870A (en) Detection system and labeled object

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230327

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20231219

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20231220

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240219

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20240305

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240318