JP2011008574A - Optical information reader - Google Patents

Optical information reader Download PDF

Info

Publication number
JP2011008574A
JP2011008574A JP2009152057A JP2009152057A JP2011008574A JP 2011008574 A JP2011008574 A JP 2011008574A JP 2009152057 A JP2009152057 A JP 2009152057A JP 2009152057 A JP2009152057 A JP 2009152057A JP 2011008574 A JP2011008574 A JP 2011008574A
Authority
JP
Japan
Prior art keywords
area
reading
code
information
codes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2009152057A
Other languages
Japanese (ja)
Inventor
Toshio Morimoto
敏生 森本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Wave Inc
Original Assignee
Denso Wave Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Wave Inc filed Critical Denso Wave Inc
Priority to JP2009152057A priority Critical patent/JP2011008574A/en
Publication of JP2011008574A publication Critical patent/JP2011008574A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide an optical information reader which reduces the load of reading processing when reading a plurality of division information codes obtained by dividing prescribed information and improves operability in the reading operation.SOLUTION: The region of a part of a pickup image F imaged by image pickup processing is set as a reading region D by processing for setting the reading region, and decoding is performed to the reading region D by decode processing, and whether or not the decoded QR code (R) Q is one of the division information codes is determined. Then, when it is determined that the QR code (R) is one of the division information, the region including all the respective division information is estimated by estimation processing based on a part of the respective division information codes in the reading region D, and the reading region D is reset by processing for resetting the reading region, based on the estimated estimation region, and decoding is performed to the reset reading region D by decode processing.

Description

本発明は、バーコード、QRコード等の情報コードを光学的に読み取る光学的情報読取装置に関するものである。   The present invention relates to an optical information reader that optically reads information codes such as bar codes and QR codes.

従来から、バーコード、QRコード等の情報コードを光学的に読み取る光学的情報読取装置に関する技術として、下記特許文献1に示す光学情報読取装置が知られている。この光学情報読取装置は、複数のコードが記された読取対象の画像を取込む撮像手段と、読取対象に対して読取位置を示すガイド光を照射するガイド光照射手段と、撮像手段の撮影画像からコードの読取処理を行う処理手段とを備えている。そして、読取対象に対してガイド光を照射し、ガイド光が示す二次元領域内に含まれる二次元コードのみを読取処理の対象とすることにより、複数存在する二次元コードのうちの使用者が読み取りたい二次元コードを選択して読み取ることができるように構成されている。   2. Description of the Related Art Conventionally, as a technique related to an optical information reading apparatus that optically reads an information code such as a barcode and a QR code, an optical information reading apparatus shown in Patent Document 1 below is known. The optical information reading apparatus includes an imaging unit that captures an image of a reading target on which a plurality of codes are written, a guide light irradiation unit that irradiates guide light indicating a reading position on the reading target, and a captured image of the imaging unit. And a processing means for performing a code reading process. Then, by irradiating the reading target with the guide light and only the two-dimensional code included in the two-dimensional area indicated by the guide light is the target of the reading process, the user among the plurality of two-dimensional codes can be obtained. A two-dimensional code to be read is selected and read.

特開2005−84890号公報JP 2005-84890 A

ところで、近年、受光センサなどの撮像手段は高性能化する傾向にあり、撮像される撮像画像は高画素であるため情報量が非常に多くなりやすい。このため、撮像画像の全ての領域を読取領域として読み取ろうとすると、読取処理の負荷が増加して処理時間が長くなってしまう。そのため、撮像画像に対して読取領域を適切に小さく設定することで、読取処理にかかる時間を短縮することが望まれる。   By the way, in recent years, image pickup means such as a light receiving sensor tend to have high performance, and since the picked-up image to be picked up has high pixels, the amount of information tends to be very large. For this reason, if all the areas of the captured image are read as reading areas, the load of the reading process increases and the processing time becomes long. Therefore, it is desired to shorten the time required for the reading process by appropriately setting the reading area with respect to the captured image.

しかしながら、使用者は小さく設定された読取領域内に情報コードが入るように当該情報コードに対する装置本体の位置や角度の調整を行う必要がある。とくに、所定の情報を分割してコード化された複数の分割情報コードを読み取る場合には、小さく設定された読取領域内に各分割情報コードの全てを入れる必要があるため、読取作業時の作業性が悪くなるといった問題があった。   However, it is necessary for the user to adjust the position and angle of the apparatus main body with respect to the information code so that the information code enters the reading area set to be small. In particular, when reading a plurality of divided information codes coded by dividing predetermined information, it is necessary to put all of the divided information codes in a small reading area. There was a problem that the sex became worse.

また、上記特許文献1に記載の読取装置により上述した各分割情報コードを1つずつ読み取る場合には、小さく設定された読取領域の中心部にそれぞれの各分割情報コードが来るように使用者が装置本体を移動させる必要がある。このため、読取作業時の作業性が悪くなり、全ての分割情報コードを読み取るのに時間がかかるといった問題があった。   Further, when each of the above-described division information codes is read one by one by the reading device described in Patent Document 1, the user can make sure that each division information code comes to the center of the reading area set to be small. It is necessary to move the device body. For this reason, there is a problem that workability at the time of reading work is deteriorated and it takes time to read all the division information codes.

本発明は、上述した課題を解決するためになされたものであり、その目的とするところは、所定の情報が分割された複数の分割情報コードを読み取る際の読取処理の負荷の軽減および読取作業時の作業性の向上を図り得る光学的情報読取装置を提供することにある。   The present invention has been made to solve the above-described problems, and the object of the present invention is to reduce the load of reading processing and read work when reading a plurality of divided information codes obtained by dividing predetermined information. It is an object of the present invention to provide an optical information reader capable of improving workability at the time.

上記目的を達成するため、特許請求の範囲に記載の請求項1の光学的情報読取装置では、所定の情報を分割してコード化された複数の分割情報コードを一括して光学的に読み取り可能な光学的情報読取装置であって、前記各分割情報コードを撮像する撮像手段と、前記撮像手段により撮像された撮像画像の一部の領域を読取領域として設定する読取領域設定手段と、前記読取領域設定手段にて設定される前記読取領域内の前記分割情報コードを含めた情報コードをデコードするデコード手段と、前記デコード手段によりデコードされた前記情報コードが前記分割情報コードの1つであるか否かを判定する判定手段と、前記判定手段によりデコードされた前記情報コードが前記分割情報コードの1つであると判定されるとき、前記読取領域内の前記各分割情報コードの一部に基づいて当該各分割情報コードの全てが含まれる領域を推定する推定手段と、前記推定手段により推定される推定領域に基づいて前記読取領域を再設定する読取領域再設定手段と、を備え、前記デコード手段は、前記読取領域再設定手段により前記読取領域が再設定されるとこの読取領域内の前記情報コードをデコードすることを特徴とする。   In order to achieve the above object, the optical information reading apparatus according to claim 1 according to the claims can optically read a plurality of divided information codes coded by dividing predetermined information. An optical information reader, an imaging unit that images each of the division information codes, a reading area setting unit that sets a partial area of a captured image captured by the imaging unit as a reading area, and the reading Decoding means for decoding the information code including the division information code in the reading area set by the area setting means, and whether the information code decoded by the decoding means is one of the division information codes A determination means for determining whether or not the information code decoded by the determination means is one of the divided information codes; An estimation means for estimating an area including all of the division information codes based on a part of each division information code, and a reading area for resetting the reading area based on the estimation area estimated by the estimation means Resetting means, and the decoding means decodes the information code in the reading area when the reading area is reset by the reading area resetting means.

請求項2の発明は、請求項1に記載の光学的情報読取装置において、前記推定手段は、前記読取領域内のデコードされた前記分割情報コードに基づいて、当該各分割情報コードの全てが含まれる領域を推定することを特徴とする。   According to a second aspect of the present invention, in the optical information reading device according to the first aspect, the estimation means includes all of the divided information codes based on the decoded divided information code in the reading area. It is characterized by estimating a region to be recorded.

請求項3の発明は、請求項1に記載の光学的情報読取装置において、前記推定手段は、前記読取領域内のデコードされた前記分割情報コードと異なる分割情報コードが占める領域である未読領域に基づいて、当該各分割情報コードの全てが含まれる領域を推定することを特徴とする。   According to a third aspect of the present invention, in the optical information reading apparatus according to the first aspect, the estimation means is provided in an unread area, which is an area occupied by a division information code different from the decoded division information code in the reading area. Based on this, a region including all of the respective division information codes is estimated.

請求項4の発明は、請求項3に記載の光学的情報読取装置において、前記未読領域が前記分割情報コードの位置を検出するための位置検出パターンを含んでいるか否かを判定する位置検出パターン有無判定手段を備え、前記推定手段は、前記位置検出パターン有無判定手段により前記未読領域が前記位置検出パターンを含んでいると判定されるとき、この位置検出パターンの占める領域に基づいて当該各分割情報コードの全てが含まれる領域を推定することを特徴とする。   According to a fourth aspect of the present invention, in the optical information reading device according to the third aspect, a position detection pattern for determining whether or not the unread area includes a position detection pattern for detecting the position of the divided information code. Presence / absence determination means, and when the position detection pattern presence / absence determination means determines that the unread area includes the position detection pattern, the estimation means determines each division based on the area occupied by the position detection pattern. A region including all of the information code is estimated.

請求項5の発明は、請求項1〜4のいずれか一項に記載の光学的情報読取装置において、前記読取領域再設定手段は、前記推定領域に対してデコードされた前記分割情報コードを除いて前記読取領域を再設定することを特徴とする。   According to a fifth aspect of the present invention, in the optical information reading device according to any one of the first to fourth aspects, the read area resetting unit excludes the division information code decoded for the estimated area. The reading area is reset.

請求項6の発明は、請求項1〜5のいずれか一項に記載の光学的情報読取装置において、前記読取領域再設定手段により再設定される前記読取領域を記憶する記憶手段を備え、前記デコード手段は、前記記憶手段により前記読取領域が記憶されると、前記撮像手段により撮像された撮像画像に対して前記記憶手段により記憶された当該読取領域内の情報コードをデコードすることを特徴とする。   A sixth aspect of the present invention is the optical information reading apparatus according to any one of the first to fifth aspects, further comprising storage means for storing the reading area reset by the reading area resetting means, The decoding means, when the reading area is stored by the storage means, decodes the information code in the reading area stored by the storage means with respect to the captured image captured by the imaging means. To do.

請求項1の発明では、撮像手段により撮像された撮像画像の一部の領域を読取領域設定手段により読取領域として設定し、この読取領域内の分割情報コードを含めた情報コードをデコード手段によりデコードし、デコードされた情報コードが分割情報コードの1つであるか否かを判定手段により判定する。そして、当該情報コードが分割情報コードの1つであると判定されるとき、読取領域内の各分割情報コードの一部に基づいて各分割情報コードの全てが含まれる領域を推定手段により推定し、推定される推定領域に基づいて読取領域再設定手段により読取領域を再設定し、この再設定された読取領域内の情報コードをデコード手段によりデコードするように構成されている。   According to the first aspect of the present invention, a partial area of the captured image picked up by the image pickup means is set as a read area by the read area setting means, and an information code including the division information code in the read area is decoded by the decode means. The determination unit determines whether the decoded information code is one of the divided information codes. Then, when it is determined that the information code is one of the division information codes, an estimation unit estimates an area including all of the division information codes based on a part of each division information code in the reading area. Based on the estimated area, the reading area is reset by the reading area resetting means, and the information code in the reset reading area is decoded by the decoding means.

このように、デコードされた情報コードが分割情報コードの1つでない通常のコード、または、複数の分割情報コードの全てである場合には、読取領域を再設定する必要がなく、さらに、読取領域が撮像画像のうち一部の領域のみであることから、撮像画像の全ての領域を読取領域とする場合と比較して、読取処理の負荷の軽減を図ることができる。また、デコードされた情報コードが分割情報コードの1つであっても、各分割情報コードの全てが含まれると推定される推定領域に基づいて撮像画像に対する読取領域が適切に小さくなるように再設定されてデコードされるので、上記と同様に、撮像画像の全ての領域を読取領域とする場合と比較して、読取処理の負荷の軽減を図ることができる。   In this way, when the decoded information code is a normal code that is not one of the division information codes or all of the plurality of division information codes, there is no need to reset the reading area. Since only a part of the captured image is a region, the load of the reading process can be reduced as compared with the case where all the regions of the captured image are read regions. Further, even if the decoded information code is one of the division information codes, the read area for the captured image is regenerated so as to be appropriately reduced based on the estimation area estimated to include all of the division information codes. Since it is set and decoded, the load of the reading process can be reduced as compared with the case where all the areas of the captured image are set as the reading areas as described above.

さらに、設定された読取領域内に各分割情報コードの全てが含まれない場合でも撮像画像内に各分割情報コードの全てが含まれていれば、各分割情報コードを撮像し直すことなく自動的に各分割情報コードの全てが含まれるように読取領域が再設定されることとなる。このため、使用者は読取領域内に複数の分割情報コードが全て入るように当該各分割情報コードに対する装置本体の位置や角度の調整を行う必要がないため、読取作業時の作業性を向上させることができる。
したがって、分割情報コードを読み取る際の読取処理の負荷の軽減および読取作業時の作業性の向上を図ることができる。
Furthermore, even if not all of the division information codes are included in the set reading area, if all of the division information codes are included in the captured image, the division information codes are automatically captured without re-imaging. Thus, the reading area is reset so that all of the division information codes are included. For this reason, the user does not need to adjust the position and angle of the apparatus main body with respect to each divided information code so that all of the divided information codes are included in the reading area, thereby improving the workability during the reading operation. be able to.
Therefore, it is possible to reduce the load of the reading process when reading the division information code and improve the workability during the reading operation.

請求項2の発明では、デコードされた分割情報コードの1つに基づいて各分割情報コードの全てが含まれる領域を推定するように構成されている。すなわち、デコードされた分割情報コードに他の分割情報コードの位置や大きさを特定するための情報、例えば、コードの外形サイズやコード間距離等が含まれる場合には、この情報に基づいて他の分割情報コードの占める領域を精度よく推定することができる。そして、このように精度よく推定される各分割情報コードの全てに基づいて読取領域が再設定されることにより、複数の分割情報コードを確実に読み取ることができる。   The invention according to claim 2 is configured to estimate a region including all of the division information codes based on one of the decoded division information codes. That is, when the decoded division information code includes information for specifying the position and size of another division information code, for example, the outer size of the code, the distance between codes, etc. It is possible to accurately estimate the area occupied by the division information code. Then, the reading area is reset based on all of the division information codes estimated with high accuracy as described above, whereby a plurality of division information codes can be reliably read.

請求項3の発明では、読取領域内のデコードされた分割情報コードと異なる分割情報コードが占める領域である未読領域に基づいて、各分割情報コードの全てが含まれる領域を推定するように構成されている。すなわち、上記未読領域の外形サイズおよび位置や各明色領域および暗色領域のセルサイズ等から、読取領域内のデコードされた分割情報コードと異なる分割情報コードの外形サイズや位置等が概算されて、各分割情報コードの全てが含まれる領域が精度よく推定されるので、たとえ各分割情報コードの外形サイズやコード種別等がそれぞれ異なっていても、複数の分割情報コードを確実に読み取ることができる。   The invention according to claim 3 is configured to estimate an area including all of the division information codes based on an unread area that is an area occupied by a division information code different from the decoded division information code in the reading area. ing. That is, from the outer size and position of the unread area and the cell size of each bright color area and dark color area, the outer size and position of the division information code different from the decoded division information code in the reading area are estimated, Since an area including all of the division information codes is accurately estimated, a plurality of division information codes can be reliably read even if the external size and code type of each division information code are different.

請求項4の発明では、推定手段は、位置検出パターン有無判定手段により未読領域が位置検出パターンを含んでいると判定されると、この位置検出パターンの占める領域に基づいて各分割情報コードの全てが含まれる領域を推定するように構成されている。位置検出パターンは、それを含む情報コードの読取方向等を確定するため当該情報コードの所定の位置に所定の形状および大きさでそれぞれ設けられているので、この位置検出パターンの占める各領域に基づいて読取領域内のデコードされた分割情報コードと異なる分割情報コードの外形サイズや位置等を概算することで、各分割情報コードの全てが含まれる領域が精度よく推定される。これにより、たとえ各分割情報コードの外形サイズ等がそれぞれ異なっていても、複数の分割情報コードを確実に読み取ることができる。また、位置検出パターンは、上述のように構成されていることから容易に検出されやすいため、この位置検出パターンを推定処理に用いることで当該処理時間を短縮でき、読取処理の負荷をより軽減することができる。とくに、未読領域に占める位置検出パターンが複数ある場合には、より精度よく各分割情報コードの全てが含まれる領域が推定される。   In the invention of claim 4, when the position detection pattern presence / absence determination means determines that the unread area includes the position detection pattern, the estimation means determines all of the divided information codes based on the area occupied by the position detection pattern. It is comprised so that the area | region containing may be estimated. Since the position detection pattern is provided at a predetermined position of the information code in a predetermined shape and size in order to determine the reading direction of the information code including the position detection pattern, the position detection pattern is based on each region occupied by the position detection pattern. By roughly estimating the outer size, position, etc., of the division information code different from the decoded division information code in the reading area, an area including all of the division information codes can be accurately estimated. As a result, even if the division information codes have different outer sizes and the like, a plurality of division information codes can be reliably read. In addition, since the position detection pattern is configured as described above, it is easy to detect the position detection pattern. Therefore, by using the position detection pattern for the estimation process, the processing time can be shortened, and the load of the reading process is further reduced. be able to. In particular, when there are a plurality of position detection patterns occupying the unread area, an area including all of the divided information codes is estimated with higher accuracy.

請求項5の発明では、推定領域に対してデコードされた分割情報コードを除いて読取領域再設定手段により読取領域を再設定するように構成されている。すなわち、一度デコードされた分割情報コードを再び読み取ることなく、再設定された読取領域内の未だデコードされていない分割情報コードのみが読み取られるため、読取処理の負荷を確実に軽減することができる。   According to the fifth aspect of the present invention, the reading area is reset by the reading area resetting means except for the division information code decoded for the estimated area. That is, only the division information code that has not been decoded in the reset reading area is read without reading the division information code that has been decoded once, so that the load of the reading process can be surely reduced.

請求項6の発明では、読取領域再設定手段により再設定される読取領域を記憶手段により記憶し、撮像画像に対して記憶された読取領域内の情報コードをデコードするように構成されている。このため、例えば固定式の光学的情報読取装置など、読取作業を繰り返し実施するときに装置本体と情報コードとの位置関係の変化が小さい場合には、再設定された読取領域を次の読取作業時の読取領域として用いることで、繰り返しの読取作業に適応した読取領域が設定されることとなる。そしてこの場合、各分割情報コードの全てが含まれる領域を推定することなく全ての分割情報コードを読み取ることが可能となり、読取処理の負荷を確実に軽減することができる。   According to the sixth aspect of the invention, the reading area reset by the reading area resetting means is stored by the storage means, and the information code in the reading area stored for the captured image is decoded. For this reason, for example, when the reading operation is repeatedly performed, such as a fixed optical information reading device, if the change in the positional relationship between the apparatus main body and the information code is small, the reset reading area is set to the next reading operation. By using as a reading area at the time, a reading area suitable for repeated reading work is set. In this case, all the division information codes can be read without estimating an area including all the division information codes, and the load of the reading process can be surely reduced.

本第1実施形態に係る光学的情報読取装置10の電気的構成を示すブロック図である。1 is a block diagram showing an electrical configuration of an optical information reading apparatus 10 according to the first embodiment. 本第1実施形態に係る制御回路40における読取処理の流れを例示するフローチャートである。4 is a flowchart illustrating the flow of a reading process in the control circuit 40 according to the first embodiment. 撮像画像Fの一部の領域が読取領域Dとして設定された状態を示す図である。6 is a diagram illustrating a state in which a partial area of a captured image F is set as a reading area D. FIG. QRコードQ〜Qの全てが含まれる領域の推定処理を説明するための図である。Is a diagram for explaining the estimation process areas included all of the QR code Q 1 to Q 3 it is. QRコードQ〜Qの全てが含まれる領域が読取領域Dとして再設定された状態を示す図である。6 is a diagram illustrating a state in which an area including all of the QR codes Q 1 to Q 3 is reset as a reading area D. FIG. QRコードQおよびQRコードQの外形全体が含まれる領域Q’,Q’のみを読取領域Dとして設定された状態を示す図である。FIG. 10 is a diagram showing a state where only areas Q 1 ′ and Q 3 ′ including the entire outer shape of QR code Q 1 and QR code Q 3 are set as a reading area D; 本第2実施形態に係る制御回路40における読取処理の流れを例示するフローチャートである。It is a flowchart which illustrates the flow of the reading process in the control circuit 40 which concerns on this 2nd Embodiment. QRコードQ〜Qの全てが含まれる領域の推定処理を説明するための図である。Is a diagram for explaining the estimation process areas included all of the QR code Q 1 to Q 3 it is. 本第2実施形態における変形例に係る制御回路40における読取処理の流れを例示するフローチャートである。It is a flowchart which illustrates the flow of the reading process in the control circuit 40 which concerns on the modification in this 2nd Embodiment. QRコードQ〜Qの全てが含まれる領域の推定処理を説明するための図である。Is a diagram for explaining the estimation process areas included all of the QR code Q 1 to Q 3 it is. 本第3実施形態に係る制御回路40における読取処理の流れを例示するフローチャートである。10 is a flowchart illustrating a flow of a reading process in a control circuit 40 according to the third embodiment.

以下、本発明に係る光学的情報読取装置の実施形態について図を参照して説明する。
[第1実施形態]
図1に示すように、光学的情報読取装置10は、対象物に表示されたQRコード等の情報コード(以下、単に「QRコードQ」ともいう)を読み取る装置として構成されている。この光学的情報読取装置10は、図示しないケースの内部に回路部20が収容されてなるものであり、回路部20は、主に、照明光源21、受光センサ28、結像レンズ27等の光学系と、メモリ35、制御回路40、トリガースイッチ42等のマイクロコンピュータ(以下「マイコン」という)系と、から構成されている。なお、受光センサ28等の光学系は、特許請求の範囲に記載の「撮像手段」の一例に相当し、メモリ35は、特許請求の範囲に記載の「記憶手段」の一例に相当する。
Embodiments of an optical information reading apparatus according to the present invention will be described below with reference to the drawings.
[First Embodiment]
As shown in FIG. 1, the optical information reader 10 is configured as a device that reads an information code such as a QR code (hereinafter simply referred to as “QR code Q”) displayed on an object. The optical information reading apparatus 10 includes a circuit unit 20 housed in a case (not shown). The circuit unit 20 mainly includes an illumination light source 21, a light receiving sensor 28, an imaging lens 27, and the like. And a microcomputer (hereinafter referred to as “microcomputer”) system such as a memory 35, a control circuit 40, and a trigger switch 42. The optical system such as the light receiving sensor 28 corresponds to an example of “imaging means” recited in the claims, and the memory 35 corresponds to an example of “storage means” recited in the claims.

光学系は、投光光学系と、受光光学系とに分かれている。投光光学系を構成する照明光源21は、照明光Lfを発光可能な照明光源として機能するもので、例えば、赤色のLEDとこのLEDの出射側に設けられるレンズとから構成されている。なお、図1では、QRコードQが表示された対象物Rに向けて照明光Lfを照射する例を概念的に示している。   The optical system is divided into a light projecting optical system and a light receiving optical system. The illumination light source 21 constituting the light projecting optical system functions as an illumination light source capable of emitting the illumination light Lf, and includes, for example, a red LED and a lens provided on the emission side of the LED. In addition, in FIG. 1, the example which irradiates the illumination light Lf toward the target object R with which QR code Q was displayed is shown notionally.

受光光学系は、受光センサ28、結像レンズ27、反射鏡(図示略)などによって構成されている。受光センサ28は、CCDエリアセンサとして構成されるものであり、QRコードQまたは対象物Rに照射されて反射した反射光Lrを受光可能に構成されている。この受光センサ28は、結像レンズ27を介して入射する入射光を受光可能にプリント配線板(図示略)に実装されている。   The light receiving optical system includes a light receiving sensor 28, an imaging lens 27, a reflecting mirror (not shown), and the like. The light receiving sensor 28 is configured as a CCD area sensor, and is configured to be able to receive the reflected light Lr irradiated and reflected on the QR code Q or the object R. The light receiving sensor 28 is mounted on a printed wiring board (not shown) so as to be able to receive incident light incident through the imaging lens 27.

結像レンズ27は、外部から読取口(図示略)を介して入射する入射光を集光して受光センサ28の受光面28aに像を結像可能な結像光学系として機能するものである。本第1実施形態では、照明光源21から照射された照明光LfがQRコードQにて反射した後、この反射光Lrを結像レンズ27で集光し、受光センサ28の受光面28aにコード像を結像させている。   The imaging lens 27 functions as an imaging optical system capable of condensing incident light incident from the outside via a reading port (not shown) and forming an image on the light receiving surface 28a of the light receiving sensor 28. . In the first embodiment, the illumination light Lf emitted from the illumination light source 21 is reflected by the QR code Q, and then the reflected light Lr is collected by the imaging lens 27 and is applied to the light receiving surface 28a of the light receiving sensor 28. An image is formed.

マイコン系は、増幅回路31、A/D変換回路33、メモリ35、アドレス発生回路36、同期信号発生回路38、制御回路40、トリガースイッチ42、発光部43、ブザー44、バイブレータ45、液晶表示器46、通信インタフェース48等から構成されている。   The microcomputer system includes an amplification 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 trigger switch 42, a light emitting unit 43, a buzzer 44, a vibrator 45, and a liquid crystal display. 46, a communication interface 48, and the like.

光学系の受光センサ28から出力される画像信号(アナログ信号)は、増幅回路31に入力されることで所定ゲインで増幅された後、A/D変換回路33に入力されると、アナログ信号からディジタル信号に変換される。そして、ディジタル化された画像信号、つまり画像データ(画像情報)は、生成されてメモリ35に入力されると、所定のコード画像情報格納領域に蓄積される。なお、同期信号発生回路38は、受光センサ28およびアドレス発生回路36に対する同期信号を発生可能に構成されており、またアドレス発生回路36は、この同期信号発生回路38から供給される同期信号に基づいて、メモリ35に格納される画像データの格納アドレスを発生可能に構成されている。   The image signal (analog signal) output from the light receiving sensor 28 of the optical system is amplified by a predetermined gain by being input to the amplifier circuit 31, and then input from the analog signal when input to the A / D conversion circuit 33. Converted into a digital signal. When the digitized image signal, that is, image data (image information) is generated and input to the memory 35, it is stored in a predetermined code image information storage area. The synchronization signal generation circuit 38 is configured to generate a synchronization signal for the light receiving sensor 28 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. Thus, the storage address of the image data stored in the memory 35 can be generated.

制御回路40は、光学的情報読取装置10全体を制御可能なマイコンによって構成されており、CPU、システムバス、入出力インタフェース等を有するとともに、情報処理機能を備えており、メモリ35とともに情報処理装置を構成している。本実施形態では、制御回路40に対し、トリガースイッチ42、発光部43、ブザー44、バイブレータ45、液晶表示器46、通信インタフェース48等が接続されている。   The control circuit 40 is configured by a microcomputer that can control the entire optical information reader 10, has a CPU, a system bus, an input / output interface, and the like, has an information processing function, and has an information processing device together with the memory 35. Is configured. In the present embodiment, a trigger switch 42, a light emitting unit 43, a buzzer 44, a vibrator 45, a liquid crystal display 46, a communication interface 48, and the like are connected to the control circuit 40.

これにより、制御回路40は、例えば、トリガースイッチ42の監視や管理、QRコードQの読み取りに関する情報を報知するインジケータとして機能する発光部43の点灯・消灯、ビープ音やアラーム音を発生可能なブザー44の鳴動のオンオフ、当該光学的情報読取装置10の使用者に伝達し得る振動を発生可能なバイブレータ45の駆動制御、液晶表示器46の表示制御や外部装置とのシリアル通信を可能にする通信インタフェース48の通信制御等を可能にしている。   Thereby, for example, the control circuit 40 can be used to turn on / off the light emitting unit 43 that functions as an indicator for notifying the monitoring and management of the trigger switch 42 and reading information about the QR code Q, and to generate a beep sound and an alarm sound. Communication that enables ON / OFF of ringing 44, drive control of the vibrator 45 capable of generating vibration that can be transmitted to the user of the optical information reader 10, display control of the liquid crystal display 46, and serial communication with an external device Communication control of the interface 48 is enabled.

次に、上述のように構成される光学的情報読取装置10において、所定の情報が分割された複数の分割情報コードを含んだ情報コードを読み取る場合に制御回路40により実施される読取処理について図2〜図5を参照して説明する。   Next, in the optical information reading apparatus 10 configured as described above, a reading process performed by the control circuit 40 when reading an information code including a plurality of divided information codes obtained by dividing predetermined information is illustrated. A description will be given with reference to FIGS.

まず、図2のステップS101において、撮像処理がなされ、作業者のトリガースイッチ42の操作に応じて照明光源21から照明光Lfが、QRコードQが表示された対象物Rに向けて照射される。そして、図1に示すように、対象物Rにて反射された反射光Lrが受光センサ28にて受光されることにより受光センサ28から出力される信号に基づいて撮像画像Fが取得される。ここで、撮像画像Fの画素数は、例えば、2048×1536に設定されている。   First, in step S101 of FIG. 2, an imaging process is performed, and the illumination light Lf is emitted from the illumination light source 21 toward the object R on which the QR code Q is displayed according to the operation of the trigger switch 42 by the operator. . Then, as shown in FIG. 1, the captured image F is acquired based on the signal output from the light receiving sensor 28 when the reflected light Lr reflected by the object R is received by the light receiving sensor 28. Here, the number of pixels of the captured image F is set to 2048 × 1536, for example.

そして、ステップS103にて読取領域設定処理がなされ、撮像された撮像画像Fにおける中央の一部の領域が読取領域Dとして設定される。ここで、読取領域設定処理により設定される読取領域Dの画素数は、例えば、1024×768とすることができる。なお、ステップS103の読取領域設定処理を実行する制御回路40は、特許請求の範囲に記載の「読取領域設定手段」の一例に相当する。   In step S <b> 103, a reading area setting process is performed, and a partial area at the center of the captured image F is set as the reading area D. Here, the number of pixels of the reading area D set by the reading area setting process can be set to 1024 × 768, for example. The control circuit 40 that executes the reading area setting process in step S103 corresponds to an example of “reading area setting means” recited in the claims.

次に、ステップS105にてデコード処理がなされる。この処理では、ステップS103にて設定される読取領域Dに対して上述したデコード処理が実施される。そして、このデコード処理によりデコードされたQRコードQが上述した分割情報コードの1つでない通常のQRコードである場合には、ステップS107にてNoと判定されて、後述するように読取領域Dが再設定されることなく当該読取処理を終了する。また、ステップS105にてデコード処理が失敗した場合も同様に、ステップS107にてNoと判定されることとなる。なお、ステップS105,S107の処理を実行する制御回路40は、特許請求の範囲に記載の「デコード手段」,「判定手段」の一例に相当する。   Next, a decoding process is performed in step S105. In this process, the decoding process described above is performed on the reading area D set in step S103. If the QR code Q decoded by this decoding process is a normal QR code that is not one of the division information codes described above, it is determined No in step S107, and the reading area D is set as described later. The reading process is terminated without being reset. Similarly, if the decoding process fails in step S105, it is determined No in step S107. The control circuit 40 that executes the processes of steps S105 and S107 corresponds to an example of “decoding means” and “determination means” recited in the claims.

一方、例えば、所定の情報を3つに分割した分割情報コード(以下「QRコードQ〜Q」という)が読取対象であり、図3に示すように設定された読取領域D内に分割情報コードの1つであるQRコードQのみその外形全体が含まれることからこのQRコードQがデコードされた場合には、ステップS107にてYesと判定される。 On the other hand, for example, a divided information code obtained by dividing predetermined information into three (hereinafter referred to as “QR codes Q 1 to Q 3 ”) is a reading target, and is divided into a reading area D set as shown in FIG. If this QR code Q 2 from being included the entire contour of the QR code Q 2 miso which is one of the information code is decoded, it is determined as Yes at step S107.

次に、ステップS109にて推定処理がなされ、デコードされたQRコードQに基づいて3つのQRコードQ〜Qの全てが含まれる領域が推定される。
具体的に、本第1実施形態における推定処理では、デコードされたQRコードQに他のQRコードQ,Qの位置や大きさを特定するための情報、例えば、コードの外形サイズやコード間距離(図4中の距離X,X)等の情報が含まれることを前提に、これらの情報とQRコードQの外形(図4中太線)に基づいてQRコードQ,Qの占める領域を推定する。これにより、QRコードQ,Qの占める領域(図4中のQ’,Q’)が推定されることから、3つのQRコードQ〜Qの全てが含まれる領域が推定される。なお、QRコードQに他のQRコードQ,Qの位置を特定するための情報が含まれない場合、または、撮像画像F内にQRコードQおよびQRコードQの外形全体が含まれない場合には、デコード失敗として処理される。また、ステップS109の推定処理を実行する制御回路40は、特許請求の範囲に記載の「推定手段」の一例に相当する。
Next, an estimation process is performed in step S109, and an area including all three QR codes Q 1 to Q 3 is estimated based on the decoded QR code Q 2 .
Specifically, in the estimation process in the first embodiment, information for specifying the positions and sizes of the other QR codes Q 1 and Q 3 in the decoded QR code Q 2 , for example, the outer size of the code, Assuming that information such as the distance between cords (distances X 1 and X 2 in FIG. 4) is included, the QR code Q 1 , based on these information and the outer shape of the QR code Q 2 (thick line in FIG. 4) to estimate the area occupied by the Q 3. As a result, the region occupied by the QR codes Q 1 and Q 3 (Q 1 ′ and Q 3 ′ in FIG. 4) is estimated, so that the region including all three QR codes Q 1 to Q 3 is estimated. Is done. When the QR code Q 2 does not include information for specifying the positions of the other QR codes Q 1 and Q 3 , or the entire outline of the QR code Q 1 and the QR code Q 3 is included in the captured image F. If not included, it is processed as a decoding failure. The control circuit 40 that executes the estimation process in step S109 corresponds to an example of an “estimation unit” described in the claims.

そして、上述のように3つのQRコードQ〜Qの全てが含まれる領域が推定されると、この推定領域に基づいて、ステップS111にて読取領域再設定処理がなされる。この処理では、図5に示すように、3つのQRコードQ〜Qの全てが含まれる領域が読取領域Dとして再設定され、上述のステップS105にて、この再設定された読取領域Dに対してデコード処理がなされることとなる。このように、本第1実施形態では、各分割情報コードの全てが含まれると推定される推定領域に基づいて撮像画像Fに対する読取領域Dが適切に小さくなるように再設定されてデコードされるので、撮像画像Fの全ての領域を読取領域とする場合と比較して、読取処理の負荷の軽減を図ることができる。なお、ステップS111の読取領域再設定処理を実行する制御回路40は、特許請求の範囲に記載の「読取領域再設定手段」の一例に相当する。 When an area including all three QR codes Q 1 to Q 3 is estimated as described above, a reading area reset process is performed in step S111 based on the estimated area. In this process, as shown in FIG. 5, an area including all of the three QR codes Q 1 to Q 3 is reset as the reading area D, and the reset reading area D is set in step S105 described above. Will be decoded. As described above, in the first embodiment, the read area D with respect to the captured image F is reset and decoded based on the estimated area estimated to include all of the division information codes. Therefore, compared with the case where all the areas of the captured image F are read areas, the load of the reading process can be reduced. The control circuit 40 that executes the reading area resetting process in step S111 corresponds to an example of “reading area resetting unit” recited in the claims.

以上説明したように、本第1実施形態に係る光学的情報読取装置10では、撮像処理により撮像された撮像画像Fの一部の領域を読取領域設定処理により読取領域Dとして設定し、この読取領域Dに対してデコード処理によりデコードし、デコードされたQRコードQが分割情報コードの1つであるか否かを判定する。そして、当該QRコードが分割情報コードの1つであると判定されるとき、読取領域D内の各分割情報コードの一部に基づいて各分割情報コードの全てが含まれる領域が推定処理により推定され、この推定される推定領域に基づいて読取領域再設定処理により読取領域Dを再設定し、この再設定された読取領域Dに対してデコード処理によりデコードするように構成されている。   As described above, in the optical information reading apparatus 10 according to the first embodiment, a partial area of the captured image F captured by the imaging process is set as the reading area D by the reading area setting process, and this reading is performed. The region D is decoded by the decoding process, and it is determined whether or not the decoded QR code Q is one of the division information codes. When it is determined that the QR code is one of the division information codes, an area including all of the division information codes is estimated by the estimation process based on a part of each division information code in the reading area D. Then, the reading area D is reset by the reading area resetting process based on the estimated area to be estimated, and the reset reading area D is decoded by the decoding process.

このように、デコードされたQRコードQが分割情報コードの1つでない通常のコード、または、複数の分割情報コードの全てである場合には、読取領域Dを再設定する必要がなく、さらに、読取領域Dが撮像画像Fのうち一部の領域のみであることから、撮像画像Fの全ての領域を読取領域とする場合と比較して、読取処理の負荷の軽減を図ることができる。また、デコードされたQRコードQが分割情報コードの1つであるQRコードQであっても、各分割情報コード(QRコードQ〜Q)の全てが含まれると推定される推定領域に基づいて撮像画像Fに対する読取領域Dが適切に小さくなるように再設定されてデコードされるので、上記と同様に、撮像画像Fの全ての領域を読取領域とする場合と比較して、読取処理の負荷の軽減を図ることができる。 Thus, when the decoded QR code Q is a normal code that is not one of the division information codes or all of the plurality of division information codes, there is no need to reset the reading area D, Since the reading area D is only a part of the captured image F, the load of the reading process can be reduced as compared to the case where all the areas of the captured image F are the reading areas. In addition, even if the decoded QR code Q is one of the division information codes, QR code Q 2 , an estimation region in which it is estimated that all of the division information codes (QR codes Q 1 to Q 3 ) are included. Therefore, the reading area D for the captured image F is reset and decoded so as to be appropriately reduced, so that, as described above, the reading area D is compared with the case where all the areas of the captured image F are set as the reading areas. The processing load can be reduced.

さらに、設定された読取領域D内に各分割情報コードの全てが含まれない場合でも撮像画像F内に各分割情報コードの全てが含まれていれば、各分割情報コードを撮像し直すことなく自動的に各分割情報コードの全てが含まれるように読取領域Dが再設定されることとなる。このため、使用者は読取領域D内に各分割情報コードが全て入るように当該各分割情報コードに対する装置本体の位置や角度の調整を行う必要がないため、読取作業時の作業性を向上させることができる。
したがって、分割情報コードを読み取る際の読取処理の負荷の軽減および読取作業時の作業性の向上を図ることができる。
Furthermore, even if not all the division information codes are included in the set reading area D, if all the division information codes are included in the captured image F, the respective division information codes are not imaged again. The reading area D is reset so that all the division information codes are automatically included. For this reason, the user does not need to adjust the position and angle of the apparatus main body with respect to each divided information code so that all the divided information codes are included in the reading area D, thereby improving the workability during the reading operation. be able to.
Therefore, it is possible to reduce the load of the reading process when reading the division information code and improve the workability during the reading operation.

とくに、本第1実施形態では、デコードされた分割情報コードの1つであるQRコードQに含まれる他の分割情報コード(QRコードQ,Q)の位置や大きさを特定するための情報に基づいて各QRコードQ〜Qの全てが含まれる領域を推定するように構成されている。これにより、各QRコードQ〜Qの全てが含まれる領域が精度よく推定されるので、この推定領域に基づいて読取領域Dが再設定されることにより、各QRコードQ〜Qを確実に読み取ることができる。 In particular, in the first embodiment, the position and size of other division information codes (QR codes Q 1 and Q 3 ) included in the QR code Q 2 that is one of the decoded division information codes are specified. Based on the information, the region including all of the QR codes Q 1 to Q 3 is estimated. As a result, since an area including all of the QR codes Q 1 to Q 3 is accurately estimated, the reading area D is reset based on the estimated area, whereby each of the QR codes Q 1 to Q 3 is set. Can be read reliably.

次に、本発明の第1実施形態における変形例に係る光学的情報読取装置10について、図6を参照して説明する。本第1実施形態における変形例では、上述した読取領域再設定処理において、デコードされていないQRコードQおよびQRコードQの外形全体が含まれる領域Q’,Q’のみを読取領域Dとして再設定する点が主に異なる。したがって、上述した第1実施形態の光学的情報読取装置10と実質的に同一の構成部分には同一符号を付し、説明を省略する。 Next, an optical information reading apparatus 10 according to a modification example of the first embodiment of the present invention will be described with reference to FIG. In the modified example of the first embodiment, only the areas Q 1 ′ and Q 3 ′ including the entire undecoded QR code Q 1 and QR code Q 3 are read in the reading area resetting process described above. The main difference is that it is reset as D. Therefore, substantially the same components as those of the optical information reader 10 of the first embodiment described above are denoted by the same reference numerals, and description thereof is omitted.

本変形例では、上述したステップS111において、図6に示すように、デコードされたQRコードQの領域を除いて、デコードされていないQRコードQおよびQRコードQの外形全体が含まれる領域Q’,Q’のみが読取領域Dとして再設定される。そして、上述のステップS105にて、この再設定された読取領域Dに対してデコード処理がなされることとなる。 In this modification, in step S111 described above, as shown in FIG. 6, except for the decoded region of the QR code Q 2 are, include the entire outline of the QR code Q 1 and QR code Q 3 undecoded Only the areas Q 1 ′ and Q 3 ′ are reset as the reading area D. In step S105 described above, the reset read area D is decoded.

このように、本変形例では、一度デコードされたQRコードQを再び読み取ることなく、再設定された読取領域D内の未だデコードされていない分割情報コードであるQRコードQ,Qのみが読み取られるため、読取処理の負荷を確実に軽減することができる。なお、後述する第2実施形態においても、デコードされていない分割情報コードの外形全体が含まれる領域のみを読取領域Dとして再設定することで、読取処理の負荷を確実に軽減することができる。 As described above, in the present modification, only the QR codes Q 1 and Q 3 that are the division information codes that have not been decoded yet in the read area D that has been reset without reading the once decoded QR code Q 2 again. Therefore, the load of the reading process can be surely reduced. In the second embodiment to be described later, it is possible to reliably reduce the load of the reading process by resetting only the area including the entire outline of the division information code that has not been decoded as the reading area D.

[第2実施形態]
次に、本発明の第2実施形態に係る光学的情報読取装置10について、図7および図8を参照して説明する。本第2実施形態では、読取領域D内のデコードされていない分割情報コードの領域(以下、「未読領域U」ともいう)に基づいて、各分割情報コードの全てが含まれる領域が推定される点が主に異なる。したがって、上述した第1実施形態の光学的情報読取装置10と実質的に同一の構成部分には同一符号を付し、説明を省略する。
[Second Embodiment]
Next, an optical information reading apparatus 10 according to a second embodiment of the present invention will be described with reference to FIGS. In the second embodiment, based on an undecoded division information code area in the reading area D (hereinafter also referred to as “unread area U”), an area including all of the division information codes is estimated. The point is mainly different. Therefore, substantially the same components as those of the optical information reader 10 of the first embodiment described above are denoted by the same reference numerals, and description thereof is omitted.

以下、本第2実施形態に係る制御回路40による読取処理について図7および図8を用いて説明する。
まず、上記第1実施形態と同様に、分割情報コードの1つであるQRコードQがデコードされたことから図7のステップS107にてYesと判定されると、ステップS113にて読取領域D内に未読領域Uが含まれるか否かについて判定される。未読領域Uは、図8に示すように、読取領域D内においてデコードされたQRコードQとは異なる領域であり、明色領域および暗色領域が複数集合していることからQRコードの一部として判断されうる領域(図8中太線枠内)である。
Hereinafter, reading processing by the control circuit 40 according to the second embodiment will be described with reference to FIGS. 7 and 8.
First, the as in the first embodiment, when the QR code Q 2 which is one of the divided information code is judged Yes in step S107 of FIG. 7 that the decoded region D read at step S113 Whether or not the unread area U is included is determined. Unread region U, as shown in FIG. 8, the QR code Q 2 to which is decoded in the reading area D are different areas, some of the QR code from the bright areas and dark areas are multiple sets Is a region that can be determined as (in the bold line frame in FIG. 8).

そして、図8に示すように、読取領域D内に未読領域Uが含まれると判定される場合には(S113でYes)、ステップS109aにて推定処理がなされ、未読領域Uに基づいて3つのQRコードQ〜Qの全てが含まれる領域が推定される。具体的には、未読領域Uの外形サイズおよび位置や各明色領域および暗色領域のセルサイズ等から、QRコードQおよびQRコードQの外形サイズや位置等がそれぞれ概算されて、QRコードQ,Qの占める領域(図8中のQ’,Q’)が推定されることから、3つのQRコードQ〜Qの全てが含まれる領域が推定される。なお、本第2実施形態では各分割情報コードが全てQRコードであることを前提に説明しているが、分割情報コードの少なくとも1つが他の種別のコード、例えば、バーコードであっても、未読領域Uのセルサイズ等から分割情報コードの種別や外形サイズが推定されるので、分割情報コードの全てが含まれる領域を推定することができる。また、さらに未読領域Uのセルサイズとデコード成功したQRコードQのセルサイズとを比較することによりQRコードQ,Qの占める領域の推定精度を向上させてもよい。また、読取領域D内に未読領域Uが含まれない場合には、ステップS113にてNoと判定されて、後述するように読取領域Dが再設定されることなく当該読取処理を終了する。 Then, as shown in FIG. 8, when it is determined that the unread area U is included in the read area D (Yes in S113), an estimation process is performed in step S109a. A region including all of the QR codes Q 1 to Q 3 is estimated. More specifically, the QR code Q 1 and QR code Q 3 have their external sizes and positions estimated from the external size and position of the unread area U, the cell sizes of the light and dark areas, and the QR code. Since the area occupied by Q 1 and Q 3 (Q 1 ′ and Q 3 ′ in FIG. 8) is estimated, an area including all three QR codes Q 1 to Q 3 is estimated. In the second embodiment, the description is made on the assumption that all the division information codes are QR codes. However, even if at least one of the division information codes is another type of code, for example, a barcode, Since the type and outline size of the division information code are estimated from the cell size and the like of the unread area U, an area including all of the division information code can be estimated. Furthermore, the estimation accuracy of the area occupied by the QR codes Q 1 and Q 3 may be improved by comparing the cell size of the unread area U with the cell size of the QR code Q 2 that has been successfully decoded. If the unread area U is not included in the reading area D, it is determined No in step S113, and the reading process is terminated without resetting the reading area D as described later.

そして、このように推定された領域に基づいてステップS111にて読取領域Dが再設定されて、上記第1実施形態と同様にステップS105からの処理がなされる。   Then, the reading area D is reset in step S111 based on the area thus estimated, and the processing from step S105 is performed in the same manner as in the first embodiment.

このように、本第2実施形態では、QRコードの一部として判断されうる未読領域Uから、読取領域D内のデコードされた分割情報コードと異なる分割情報コードの外形サイズや位置等がそれぞれ概算されて、各分割情報コードの全てが含まれる領域が精度よく推定されるので、たとえ各分割情報コードの外形サイズやコード種別等がそれぞれ異なっていても、複数の分割情報コードを確実に読み取ることができる。   As described above, in the second embodiment, the outline size and position of the division information code different from the decoded division information code in the reading area D are estimated from the unread area U that can be determined as a part of the QR code. In addition, since an area including all of the division information codes is accurately estimated, even if the division information codes have different external sizes, code types, etc., it is possible to reliably read a plurality of division information codes. Can do.

次に、本発明の第2実施形態における変形例に係る光学的情報読取装置10について、図9および図10を参照して説明する。本第2実施形態における変形例では、未読領域U内の位置検出パターンFPの占める領域に基づいて、3つのQRコードQ〜Qの全てが含まれる領域が推定される点が主に異なる。したがって、上述した第2実施形態の光学的情報読取装置10と実質的に同一の構成部分には同一符号を付し、説明を省略する。 Next, an optical information reading apparatus 10 according to a modification example of the second embodiment of the present invention will be described with reference to FIGS. The modification in the second embodiment is mainly different in that an area including all three QR codes Q 1 to Q 3 is estimated based on the area occupied by the position detection pattern FP in the unread area U. . Therefore, substantially the same components as those of the optical information reading apparatus 10 of the second embodiment described above are denoted by the same reference numerals and description thereof is omitted.

以下、本変形例に係る制御回路40による読取処理について図9および図10を用いて説明する。
まず、上記第2実施形態と同様に、分割情報コードの1つであるQRコードQがデコードされたことから図9のステップS107にてYesと判定されると、ステップS115にて未読領域U内にQRコードQの位置等を検出するためのパターンである位置検出パターンFPが含まれるか否かについて判定される。
Hereinafter, the reading process by the control circuit 40 according to the present modification will be described with reference to FIGS. 9 and 10.
First, the as in the second embodiment, when the QR code Q 2 which is one of the divided information code is judged Yes in step S107 of FIG. 9 that has been decoded, the unread region U at step S115 It is determined whether or not a position detection pattern FP that is a pattern for detecting the position of the QR code Q is included therein.

そして、図10に示すように、未読領域U内に位置検出パターンFP(図10中太線)が含まれる場合には(S115でYes)、ステップS109bにて推定処理がなされ、位置検出パターンFPが未読領域U内にて占める領域に基づいて、3つのQRコードQ〜Qの全てが含まれる領域が推定される。例えば、位置検出パターンFPの大きさおよび位置や位置検出パターンFP間の距離等に基づいて、QRコードQおよびQRコードQの外形サイズや位置等がそれぞれ概算されて、図10中一点鎖線で示す部分が、QRコードQおよびQRコードQの外形全体が含まれる領域Q’,Q’と推定されて、3つのQRコードQ〜Qの全てが含まれる領域が推定される。 As shown in FIG. 10, when the position detection pattern FP (thick line in FIG. 10) is included in the unread area U (Yes in S115), an estimation process is performed in step S109b, and the position detection pattern FP is Based on the area occupied in the unread area U, an area including all of the three QR codes Q 1 to Q 3 is estimated. For example, based on the size and position of the position detection pattern FP, the distance between the position detection patterns FP, and the like, the outer sizes and positions of the QR code Q 1 and the QR code Q 3 are approximated, respectively, and are shown by a one-dot chain line in FIG. Are estimated as areas Q 1 ′ and Q 3 ′ including the entire outline of the QR code Q 1 and the QR code Q 3 , and an area including all the three QR codes Q 1 to Q 3 is estimated. Is done.

位置検出パターンFPは、それを含むQRコードQ〜Qの読取方向等を確定するため当該QRコードQ〜Qの所定の位置に所定の形状および大きさでそれぞれ設けられているので、この位置検出パターンFPの占める各領域に基づいて読取領域D内のデコードされたQRコードQと異なるQRコードQおよびQRコードQの外形サイズや位置等を概算することで、3つのQRコードQ〜Qの全てが含まれる領域を精度よく推定することができる。また、位置検出パターンFPは、上述のように構成されていることから容易に検出されやすいため、この位置検出パターンFPを推定処理に用いることで当該処理時間を短縮でき、読取処理の負荷をより軽減することができる。 The position detection pattern FP is provided in a predetermined shape and size at a predetermined position of the QR codes Q 1 to Q 3 in order to determine the reading direction of the QR codes Q 1 to Q 3 including the position detection pattern FP. Based on the respective areas occupied by the position detection pattern FP, the approximate size, position, etc. of the QR code Q 1 and QR code Q 3 different from the decoded QR code Q 2 in the reading area D are approximated. A region including all of the QR codes Q 1 to Q 3 can be estimated with high accuracy. Moreover, since the position detection pattern FP is easily detected because it is configured as described above, the processing time can be shortened by using the position detection pattern FP for the estimation process, and the load of the reading process can be further increased. Can be reduced.

なお、未読領域U内に位置検出パターンFPが含まれない場合には、ステップS115にてNoと判定されて、後述するように読取領域Dが再設定されることなく当該読取処理を終了する。また、ステップS115,S109bの処理を実行する制御回路40は、特許請求の範囲に記載の「位置検出パターン有無判定手段」,「推定手段」の一例に相当する。   If the position detection pattern FP is not included in the unread area U, it is determined No in step S115, and the reading process is terminated without resetting the reading area D as described later. The control circuit 40 that executes the processes of steps S115 and S109b corresponds to an example of “position detection pattern presence / absence determination means” and “estimation means” recited in the claims.

そして、このように推定された領域に基づいてステップS111にて読取領域Dが再設定されて、上記第2実施形態と同様にステップS105からの処理がなされる。   Then, the reading area D is reset in step S111 based on the area estimated in this way, and the processing from step S105 is performed in the same manner as in the second embodiment.

このように、本変形例では、位置検出パターンFPの占める領域に基づいて各分割情報コードの全てが含まれる領域が推定されるように構成されている。すなわち、位置検出パターンFPの占める各領域に基づいて読取領域内のデコードされた分割情報コードと異なる分割情報コードの外形サイズや位置等をそれぞれ概算することで、各分割情報コード(QRコードQ〜Q)の全てが含まれる領域が精度よく推定される。これにより、たとえ各分割情報コードの外形サイズ等がそれぞれ異なっていても、複数の分割情報コードを確実に読み取ることができる。また、位置検出パターンFPは、上述のように容易に検出されやすいため、この位置検出パターンFPを推定処理に用いることで当該処理時間を短縮でき、読取処理の負荷をより軽減することができる。とくに、未読領域Uに占める位置検出パターンFPが複数ある場合には、より精度よく各分割情報コードの全てが含まれる領域が推定される。 As described above, the present modification is configured such that a region including all the division information codes is estimated based on the region occupied by the position detection pattern FP. That is, each division information code (QR code Q 1) is estimated by roughly estimating the outer size and position of the division information code different from the decoded division information code in the reading area based on each area occupied by the position detection pattern FP. region included all to Q 3) is is accurately estimated. As a result, even if the division information codes have different outer sizes and the like, a plurality of division information codes can be reliably read. Further, since the position detection pattern FP is easily detected as described above, the processing time can be shortened by using the position detection pattern FP for the estimation process, and the load of the reading process can be further reduced. In particular, when there are a plurality of position detection patterns FP occupying the unread area U, an area including all of the divided information codes is estimated with higher accuracy.

[第3実施形態]
次に、本発明の第3実施形態に係る光学的情報読取装置10について図11に示すフローチャートを参照して説明する。本第3実施形態では、前回再設定された読取領域Dに対してデコード処理がなされる点が主に異なる。したがって、上述した第1実施形態の光学的情報読取装置10と実質的に同一の構成部分には同一符号を付し、説明を省略する。
[Third Embodiment]
Next, an optical information reading apparatus 10 according to a third embodiment of the present invention will be described with reference to the flowchart shown in FIG. The third embodiment is mainly different in that the decoding process is performed on the read area D reset last time. Therefore, substantially the same components as those of the optical information reader 10 of the first embodiment described above are denoted by the same reference numerals, and description thereof is omitted.

以下、第3実施形態に係る制御回路40による読取処理について図11を用いて説明する。
まず、図11のステップS101にて上記第1実施形態と同様に撮像画像Fが取得されると、ステップS102において、後述する領域情報がメモリ35に記憶されているか否かについて判定される。ここで、読取処理を開始した直後であり、領域情報がメモリ35に記憶されていないと判定されると(S102でNo)、上記第1実施形態と同様に、ステップS103にて読取領域設定処理がなされ、撮像された撮像画像Fにおける中央の一部の領域が読取領域Dとして設定される。
Hereinafter, reading processing by the control circuit 40 according to the third embodiment will be described with reference to FIG.
First, when the captured image F is acquired in step S101 of FIG. 11 as in the first embodiment, it is determined in step S102 whether or not area information to be described later is stored in the memory 35. If it is determined that the area information is not stored in the memory 35 immediately after the reading process is started (No in S102), the reading area setting process is performed in Step S103 as in the first embodiment. And a partial area at the center of the captured image F is set as the reading area D.

次に、ステップS105にてデコード処理がなされ、このデコードされたQRコードQが分割情報コードの1つであると判定されると、上記第1実施形態と同様にステップS109にて各分割情報コードの全てが含まれる領域が推定される。   Next, decoding processing is performed in step S105, and when it is determined that the decoded QR code Q is one of the division information codes, each division information code is determined in step S109 as in the first embodiment. An area including all of the above is estimated.

そして、この推定領域に基づいてステップS111にて各分割情報コードの全てが含まれる領域が読取領域Dとして再設定されると、ステップS117において、記憶処理がなされ、上述のように再設定された読取領域Dに対応する領域情報がメモリ35に記憶される。そして、上述のステップS105にて、この再設定された読取領域Dに対してデコード処理がなされることとなる。   Then, when an area including all of the division information codes is reset as the reading area D in step S111 based on the estimated area, a storage process is performed in step S117, and the area is reset as described above. Area information corresponding to the reading area D is stored in the memory 35. In step S105 described above, decoding processing is performed on the reset reading area D.

上述のように読取領域Dがメモリ35に記憶されている状態において、ステップS101にて撮像処理がなされると、ステップS102にてYesと判定されて、ステップS102aにて、領域情報読出処理がなされる。この処理では上述のようにメモリ35に記憶された領域情報が読み出されて、ステップS103にてこのように読み出された領域情報に対応する読取領域Dが設定される。   In the state where the reading area D is stored in the memory 35 as described above, if an imaging process is performed in step S101, it is determined Yes in step S102, and an area information reading process is performed in step S102a. The In this process, the area information stored in the memory 35 is read as described above, and the reading area D corresponding to the area information read in this way is set in step S103.

次に、ステップS105にてデコード処理がなされ、前回設定された読取領域Dに対して上述したデコード処理が実施される。このとき、前回の読取作業時と今回の読取作業時とを比較して装置本体と各QRコードQ〜Qとの位置関係の変化が小さい場合、例えば、固定式の光学的情報読取装置を採用するには、読取領域D内に各QRコードQ〜Qの全てが含まれる可能性が高くなるため、読取領域Dを推定して再設定することなく各QRコードQ〜Qを1回のデコード処理で全て読み取ることができる。そして、このように各QRコードQ〜Qが読取領域Dに全て含まれることから、ステップS107にてNoと判定されて、読取処理が終了する。 Next, decoding processing is performed in step S105, and the above-described decoding processing is performed on the previously set reading area D. At this time, if the change in the positional relationship between the apparatus main body and each of the QR codes Q 1 to Q 3 is small compared with the time of the previous reading work and the time of the current reading work, for example, a fixed optical information reading device to adopt, since the possibility that all contained within the reading area D of each QR code Q 1 to Q 3 is increases, the QR code Q 1 without resetting by estimating the reading area D to Q All 3 can be read in one decoding process. Since the QR codes Q 1 to Q 3 are all included in the reading area D as described above, it is determined No in step S107, and the reading process ends.

以上説明したように、本第3実施形態に係る光学的情報読取装置10では、読取領域再設定処理により再設定される読取領域Dに対応する領域情報を、記憶処理によりメモリ35に記憶し、撮像画像Fに対して記憶された領域情報に対応する読取領域D内のQRコードQをデコードするように構成されている。このため、例えば固定式の光学的情報読取装置10など、読取作業を繰り返し実施するときに装置本体と情報コードとの位置関係の変化が小さい場合には、再設定された読取領域Dを次の読取作業時の読取領域Dとして用いることで、繰り返しの読取作業に適応した読取領域Dが設定されることとなる。そしてこの場合、各分割情報コードの全てが含まれる領域を推定することなく全ての分割情報コードを読み取ることが可能となり、読取処理の負荷を確実に軽減することができる。   As described above, in the optical information reading apparatus 10 according to the third embodiment, the area information corresponding to the reading area D that is reset by the reading area resetting process is stored in the memory 35 by the storing process. The QR code Q in the reading area D corresponding to the area information stored for the captured image F is decoded. For this reason, when the positional relationship between the apparatus main body and the information code is small when the reading operation is repeatedly performed, such as the fixed optical information reading apparatus 10, for example, the reset reading area D is set as the next reading area D. By using it as the reading area D at the time of reading work, a reading area D adapted to repeated reading work is set. In this case, all the division information codes can be read without estimating an area including all the division information codes, and the load of the reading process can be surely reduced.

なお、本発明は上記各実施形態に限定されるものではなく、以下のように具体化してもよく、その場合でも、上記各実施形態と同等の作用・効果が得られる。
(1)光学的情報読取装置10は、分割情報コードとして複数のQRコードQを読み取り対象とすることに限らず、例えば、バーコードなどの一次元コードや他の二次元コードを読み取り対象とする場合でも上記作用効果を奏する。
(2)光学的情報読取装置10により読み取られる分割情報コードは3つに限らず、2つもしくは4つ以上でも上記作用効果を奏する。
The present invention is not limited to the above embodiments, and may be embodied as follows. Even in this case, the same operations and effects as those of the above embodiments can be obtained.
(1) The optical information reading apparatus 10 is not limited to reading a plurality of QR codes Q as division information codes, and for example, reads a one-dimensional code such as a barcode or another two-dimensional code. Even in the case, the above-described effects are exhibited.
(2) The division information code read by the optical information reading apparatus 10 is not limited to three, and two or four or more can achieve the above-described effects.

10…光学的情報読取装置
21…照明光源
28…受光センサ(撮像手段)
35…メモリ(記憶手段)
40…制御回路(読取領域設定手段,デコード手段,判定手段,推定手段,読取領域再設定手段,位置検出パターン有無判定手段)
D…読取領域
F…撮像画像
FP…位置検出パターン
〜Q…QRコード(情報コード)
R…対象物
U…未読領域
DESCRIPTION OF SYMBOLS 10 ... Optical information reader 21 ... Illumination light source 28 ... Light receiving sensor (imaging means)
35 ... Memory (storage means)
40. Control circuit (reading area setting means, decoding means, determination means, estimation means, reading area resetting means, position detection pattern presence / absence determination means)
D: Reading area F: Captured image FP: Position detection pattern Q 1 to Q 3 ... QR code (information code)
R ... Object U ... Unread area

Claims (6)

所定の情報を分割してコード化された複数の分割情報コードを一括して光学的に読み取り可能な光学的情報読取装置であって、
前記各分割情報コードを撮像する撮像手段と、
前記撮像手段により撮像された撮像画像の一部の領域を読取領域として設定する読取領域設定手段と、
前記読取領域設定手段にて設定される前記読取領域内の前記分割情報コードを含めた情報コードをデコードするデコード手段と、
前記デコード手段によりデコードされた前記情報コードが前記分割情報コードの1つであるか否かを判定する判定手段と、
前記判定手段によりデコードされた前記情報コードが前記分割情報コードの1つであると判定されるとき、前記読取領域内の前記各分割情報コードの一部に基づいて当該各分割情報コードの全てが含まれる領域を推定する推定手段と、
前記推定手段により推定される推定領域に基づいて前記読取領域を再設定する読取領域再設定手段と、を備え、
前記デコード手段は、前記読取領域再設定手段により前記読取領域が再設定されるとこの読取領域内の前記情報コードをデコードすることを特徴とする光学的情報読取装置。
An optical information reader capable of optically reading a plurality of divided information codes coded by dividing predetermined information,
Imaging means for imaging each division information code;
A reading area setting means for setting a partial area of the captured image captured by the imaging means as a reading area;
Decoding means for decoding an information code including the division information code in the reading area set by the reading area setting means;
Determining means for determining whether the information code decoded by the decoding means is one of the divided information codes;
When it is determined that the information code decoded by the determination unit is one of the divided information codes, all of the divided information codes are based on a part of the divided information codes in the reading area. An estimation means for estimating an included area;
Reading area resetting means for resetting the reading area based on the estimation area estimated by the estimation means,
The optical information reading apparatus characterized in that the decoding means decodes the information code in the reading area when the reading area is reset by the reading area resetting means.
前記推定手段は、前記読取領域内のデコードされた前記分割情報コードに基づいて、当該各分割情報コードの全てが含まれる領域を推定することを特徴とする請求項1に記載の光学的情報読取装置。   The optical information reading apparatus according to claim 1, wherein the estimation unit estimates an area including all the division information codes based on the decoded division information code in the reading area. apparatus. 前記推定手段は、前記読取領域内のデコードされた前記分割情報コードと異なる分割情報コードが占める領域である未読領域に基づいて、当該各分割情報コードの全てが含まれる領域を推定することを特徴とする請求項1に記載の光学的情報読取装置。   The estimation means estimates an area including all of the division information codes based on an unread area that is an area occupied by a division information code different from the decoded division information code in the reading area. The optical information reader according to claim 1. 前記未読領域が前記分割情報コードの位置を検出するための位置検出パターンを含んでいるか否かを判定する位置検出パターン有無判定手段を備え、
前記推定手段は、前記位置検出パターン有無判定手段により前記未読領域が前記位置検出パターンを含んでいると判定されるとき、この位置検出パターンの占める領域に基づいて当該各分割情報コードの全てが含まれる領域を推定することを特徴とする請求項3に記載の光学的情報読取装置。
A position detection pattern presence / absence determining means for determining whether or not the unread area includes a position detection pattern for detecting the position of the division information code;
When the position detection pattern presence / absence determination unit determines that the unread area includes the position detection pattern, the estimation unit includes all of the division information codes based on the area occupied by the position detection pattern. The optical information reading device according to claim 3, wherein a region to be read is estimated.
前記読取領域再設定手段は、前記推定領域に対してデコードされた前記分割情報コードを除いて前記読取領域を再設定することを特徴とする請求項1〜4のいずれか一項に記載の光学的情報読取装置。   5. The optical according to claim 1, wherein the reading area resetting unit resets the reading area except for the division information code decoded with respect to the estimation area. Information reader. 前記読取領域再設定手段により再設定される前記読取領域を記憶する記憶手段を備え、
前記デコード手段は、前記記憶手段により前記読取領域が記憶されると、前記撮像手段により撮像された撮像画像に対して前記記憶手段により記憶された当該読取領域内の情報コードをデコードすることを特徴とする請求項1〜5のいずれか一項に記載の光学的情報読取装置。
Storage means for storing the reading area reset by the reading area resetting means;
The decoding means, when the reading area is stored by the storage means, decodes the information code in the reading area stored by the storage means with respect to the captured image captured by the imaging means. An optical information reader according to any one of claims 1 to 5.
JP2009152057A 2009-06-26 2009-06-26 Optical information reader Pending JP2011008574A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009152057A JP2011008574A (en) 2009-06-26 2009-06-26 Optical information reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009152057A JP2011008574A (en) 2009-06-26 2009-06-26 Optical information reader

Publications (1)

Publication Number Publication Date
JP2011008574A true JP2011008574A (en) 2011-01-13

Family

ID=43565143

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009152057A Pending JP2011008574A (en) 2009-06-26 2009-06-26 Optical information reader

Country Status (1)

Country Link
JP (1) JP2011008574A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014071722A (en) * 2012-09-28 2014-04-21 Denso Wave Inc Information code, and reading system of the same
JP7347188B2 (en) 2019-12-13 2023-09-20 株式会社デンソーウェーブ reading device
JP7402088B2 (en) 2020-03-19 2023-12-20 株式会社キーエンス optical reader

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014071722A (en) * 2012-09-28 2014-04-21 Denso Wave Inc Information code, and reading system of the same
JP7347188B2 (en) 2019-12-13 2023-09-20 株式会社デンソーウェーブ reading device
JP7402088B2 (en) 2020-03-19 2023-12-20 株式会社キーエンス optical reader

Similar Documents

Publication Publication Date Title
US7503492B2 (en) Optical information reading apparatus and related information reading method
JP4389812B2 (en) Optical information reader
JP2010086182A (en) Optical information reader
JP2011008574A (en) Optical information reader
JP4175358B2 (en) Optical information reader
JP2009076031A (en) Optical information reader
JP5218316B2 (en) Optical information reader
JP4650138B2 (en) Optical information reader
JP5240124B2 (en) Optical information reader
JP5104713B2 (en) Optical information reader
JP5888199B2 (en) Bar code reader
JP5104557B2 (en) Optical information reader
JP2019071045A (en) Two-dimensional code
JP4378491B2 (en) Code image output device
JP5152086B2 (en) Bar code reading method and bar code reading apparatus
JP2013206129A (en) Information code reader
JP2010097317A (en) Bar code reading method and bar code reading device
JP5115131B2 (en) Optical information reader
JP5240161B2 (en) Optical information reader
JP5825141B2 (en) Optical information reader
JP2016170599A (en) Information code reading device
JP4873312B2 (en) Optical information reader
JP2012118779A (en) Code analysis system
JP2012194853A (en) Optical information reader
JP2014157451A (en) Optical information reader