JP2012018494A - Bar code symbol reader, bar code symbol reading method, and computer program - Google Patents

Bar code symbol reader, bar code symbol reading method, and computer program Download PDF

Info

Publication number
JP2012018494A
JP2012018494A JP2010154407A JP2010154407A JP2012018494A JP 2012018494 A JP2012018494 A JP 2012018494A JP 2010154407 A JP2010154407 A JP 2010154407A JP 2010154407 A JP2010154407 A JP 2010154407A JP 2012018494 A JP2012018494 A JP 2012018494A
Authority
JP
Japan
Prior art keywords
dimensional code
code
setting
image
tuning
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
JP2010154407A
Other languages
Japanese (ja)
Inventor
Manabu Kido
学 木戸
Masatatsu Shimodaira
真達 下平
Atsuhito Shigitani
篤人 鴫谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Keyence Corp
Original Assignee
Keyence Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Keyence Corp filed Critical Keyence Corp
Priority to JP2010154407A priority Critical patent/JP2012018494A/en
Publication of JP2012018494A publication Critical patent/JP2012018494A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a bar code symbol reader, a bar code symbol reading method, and a computer program, capable of surely reading a bar code symbol even if it is difficult to identify bar code symbols such as one-dimensional codes or two-dimensional codes to be read.SOLUTION: An image containing at least one bar code symbol is acquired, and the acquired image is displayed. On the image containing at least one bar code symbol, specification of a tuning area extracting setting parameters of setting items concerning the characteristics of the bar code symbol is received so as to surround one bar code symbol. Input of the setting parameters is partly received and the bar code symbol is detected within the tuning area of which the specification has been received. Determining whether the detected bar code symbol can be normally decoded, a setting parameter of the bar code symbol is extracted if it is determined that the bar code symbol can be normally decoded.

Description

本発明は、バーコード、QRコードのような二次元コードを読み取るバーコードシンボル読取装置、バーコードシンボル読取方法、及びコンピュータプログラムに関する。   The present invention relates to a barcode symbol reading device, a barcode symbol reading method, and a computer program for reading a two-dimensional code such as a barcode and a QR code.

従来、バーコード、QRコードのような二次元コードを読み取る各種のバーコードシンボル読取装置は、二次元コードそれぞれが有する固有の特徴を利用して二次元コードの位置決めを実行してから、デコードしている。読み取り対象となる二次元コードの存在する位置を検出するために、二次元コードの固有の特徴を示すパラメータの入力を直接受け付けても良いし、二次元コードの存在する位置を検出する領域(以下、サーチ領域)の指定を受け付けて、二次元コードが有する固有の特徴を示すパラメータを抽出しても良い。   Conventionally, various barcode symbol readers that read two-dimensional codes such as barcodes and QR codes perform positioning after performing positioning of the two-dimensional code using the unique characteristics of each two-dimensional code. ing. In order to detect the position where the two-dimensional code to be read is present, an input of a parameter indicating a unique characteristic of the two-dimensional code may be directly received, or an area for detecting the position where the two-dimensional code is present (hereinafter referred to as an area for detecting the position) , A search area) specification may be received, and a parameter indicating a unique characteristic of the two-dimensional code may be extracted.

特許文献1では所定のファインダーパターンを検出するためのサーチ領域の領域指定機能を有する二次元コード読取装置が開示されている。特許文献1では、QRコードのバージョン、種類等に固有の白黒パターンの幅の比率に関する情報等の特徴を示すパラメータを手動で設定することにより、読み取り対象となる二次元コードを検出してデコードする(読み取る)ことができる。   Patent Document 1 discloses a two-dimensional code reading device having an area designating function for a search area for detecting a predetermined finder pattern. In Patent Document 1, a two-dimensional code to be read is detected and decoded by manually setting parameters indicating characteristics such as information regarding the width ratio of the monochrome pattern specific to the version and type of QR code. (Read).

特許第4013027号公報Japanese Patent No. 4013027

二次元コード読み取りの安定性向上、高速性向上のために、読み取り対象となる二次元コードの特徴を示すパラメータを限定することが多い。この場合、二次元コードの特徴を示すパラメータは、例えばバーコードシンボルの色種別、シンボルサイズ等の情報として、ユーザの直接入力を受け付ける、又は二次元コードを撮像して取得した画像から抽出する。   In order to improve the stability and speed of two-dimensional code reading, parameters that indicate the characteristics of the two-dimensional code to be read are often limited. In this case, the parameters indicating the characteristics of the two-dimensional code are extracted from an image obtained by accepting a user's direct input or capturing an image of the two-dimensional code, for example, as information such as a barcode symbol color type and symbol size.

最近では、鋳肌表面に印刷する、鏡面に印刷する等、二次元コードを読み取ることが困難である印刷面に二次元コードが付与されていることも多い。斯かる印刷面から二次元コードを読み取る場合、特許文献1に開示されている二次元コード読取装置では、鏡面、鋳肌表面等でも確実に読み取ることができるよう各種の設定を行うことが非常に困難になるおそれがあるという問題点があった。   Recently, a two-dimensional code is often applied to a printing surface where it is difficult to read the two-dimensional code, such as printing on the surface of a casting surface or printing on a mirror surface. When reading a two-dimensional code from such a printing surface, the two-dimensional code reading device disclosed in Patent Document 1 is very likely to perform various settings so that it can be read reliably even on a mirror surface, a casting surface or the like. There was a problem that it might be difficult.

また、二次元コードを検出することができない場合、二次元コードの特徴を示すパラメータをユーザが直接入力する必要があり、作業が煩雑であった。さらに、鏡面反転等の見た目では判断できない特徴を示すパラメータは、ユーザが直接入力することが困難であるという問題点もあった。   Further, when the two-dimensional code cannot be detected, it is necessary for the user to directly input parameters indicating the characteristics of the two-dimensional code, and the work is complicated. Furthermore, there is a problem that it is difficult for a user to directly input a parameter indicating a feature that cannot be determined by appearance such as mirror reversal.

加えて、サーチ領域内に複数の二次元コードが存在する場合、チューニング処理の対象となる二次元コードを特定することが困難になる場合もあり、正しく二次元コードの特徴を示すパラメータを抽出することが困難であるという問題点もあった。   In addition, if there are multiple two-dimensional codes in the search area, it may be difficult to specify the two-dimensional code that is the target of the tuning process, and parameters that accurately indicate the characteristics of the two-dimensional code are extracted. There was also a problem that it was difficult.

本発明は上記事情に鑑みてなされたものであり、読み取り対象となる一次元コード、二次元コード等のバーコードシンボルを特定することが困難である場合であっても、確実にバーコードシンボルを読み取ることができるバーコードシンボル読取装置、バーコードシンボル読取方法、及びコンピュータプログラムを提供することを目的とする。   The present invention has been made in view of the above circumstances, and even when it is difficult to specify a barcode symbol such as a one-dimensional code or a two-dimensional code to be read, the barcode symbol is surely displayed. An object of the present invention is to provide a barcode symbol reading device, a barcode symbol reading method, and a computer program that can be read.

上記目的を達成するために第1発明に係るバーコードシンボル読取装置は、読み取り対象となる一次元コード又は二次元コードの特徴に関する特徴パラメータを画像から読み取り、一次元コード又は二次元コードを検出してデコードするバーコードシンボル読取装置において、少なくとも一の一次元コード又は二次元コードを含む画像を取得する取得手段と、取得した画像を表示する表示手段と、少なくとも一の一次元コード又は二次元コードを含む画像上で、前記一次元コード又は前記二次元コードの特徴に関する設定項目の設定パラメータを抽出するチューニング領域の指定を、一の一次元コード又は二次元コードを囲むように受け付ける領域指定受付手段と、前記設定パラメータの入力を部分的に受け付ける設定パラメータ入力受付手段と、指定を受け付けたチューニング領域内で前記一次元コード又は前記二次元コードを検出する検出手段と、検出した一次元コード又は二次元コードを正常にデコードすることができるか否かを判断する判断手段と、該判断手段が正常にデコードすることができると判断した場合、前記一次元コード又は前記二次元コードの設定パラメータを抽出する抽出手段とを備えることを特徴とする。   In order to achieve the above object, a barcode symbol reader according to a first aspect of the present invention reads a feature parameter relating to the characteristics of a one-dimensional code or two-dimensional code to be read from an image, and detects the one-dimensional code or two-dimensional code. In the barcode symbol reader for decoding, an acquisition means for acquiring an image including at least one one-dimensional code or two-dimensional code, a display means for displaying the acquired image, and at least one one-dimensional code or two-dimensional code An area designation accepting means for accepting a designation of a tuning area for extracting a setting parameter of a setting item relating to the feature of the one-dimensional code or the two-dimensional code on an image including the one-dimensional code or the two-dimensional code. And a setting parameter input acceptor that partially accepts the input of the setting parameter. And a detecting means for detecting the one-dimensional code or the two-dimensional code in the tuning region that has received the designation, and a determination for determining whether the detected one-dimensional code or the two-dimensional code can be normally decoded And an extraction means for extracting a setting parameter of the one-dimensional code or the two-dimensional code when the determination means determines that the decoding can be normally performed.

また、第2発明に係るバーコードシンボル読取装置は、第1発明において、少なくとも一の一次元コード又は二次元コードを含む画像上で、前記一次元コード又は前記二次元コードの位置と姿勢とを検出するサーチ領域の指定を受け付けるサーチ領域指定受付手段を備え、前記領域指定受付手段は、前記サーチ領域とは別個に、前記チューニング領域の指定を受け付けることを特徴とする。   Further, the barcode symbol reading device according to the second invention is the first invention, wherein the position and orientation of the one-dimensional code or the two-dimensional code are determined on an image including at least one one-dimensional code or two-dimensional code. Search area designation accepting means for accepting designation of a search area to be detected is provided, wherein the area designation accepting means accepts designation of the tuning area separately from the search area.

また、第3発明に係るバーコードシンボル読取装置は、第1又は第2発明において、前記領域指定受付手段は、指定を受け付けたチューニング領域において、前記一次元コード又は前記二次元コードに固有のシンボルを検出することができるか否かを判断するシンボル判断手段を備え、該シンボル判断手段で前記シンボルを検出することができないと判断した場合、再度前記チューニング領域の指定を受け付けるようにしてあることを特徴とする。   According to a third aspect of the present invention, there is provided the barcode symbol reader according to the first or second aspect, wherein the region designation receiving means is a symbol unique to the one-dimensional code or the two-dimensional code in the tuning region that has received the designation. Symbol determination means for determining whether or not the symbol can be detected, and when the symbol determination means determines that the symbol cannot be detected, the tuning region designation is received again. Features.

また、第4発明に係るバーコードシンボル読取装置は、第1乃至第3発明のいずれか1つにおいて、前記設定項目は、少なくとも前記二次元コードに固有のシンボルを構成するセルの大きさ、二次元コードのコード種別、コントラスト、印字の色種別、ミラー反転、基準角度、撮像条件、ピッチ角度、画像フィルタの種別のいずれかを含むことを特徴とする。   According to a fourth aspect of the present invention, there is provided the barcode symbol reading device according to any one of the first to third aspects, wherein the setting item includes at least a size of a cell constituting a symbol unique to the two-dimensional code, two It includes any one of the code type of the dimension code, contrast, print color type, mirror inversion, reference angle, imaging condition, pitch angle, and image filter type.

また、第5発明に係るバーコードシンボル読取装置は、第1乃至第4発明のいずれか1つにおいて、前記設定パラメータ入力受付手段は、各設定項目が前記抽出手段での設定パラメータの抽出対象であるか否かに関する情報の入力も受け付けるようにしてあることを特徴とする。   According to a fifth aspect of the present invention, there is provided the barcode symbol reading device according to any one of the first to fourth aspects, wherein the setting parameter input receiving means is a setting parameter extraction target in the extraction means. It is also characterized in that input of information regarding whether or not there is also accepted.

また、第6発明に係るバーコードシンボル読取装置は、第5発明において、前記抽出手段は、前記設定項目が設定パラメータの抽出対象ではない場合、設定パラメータを更新することなく、入力を受け付けた設定パラメータを使用し、前記設定項目が設定パラメータの抽出対象である場合、設定パラメータを抽出するようにしてあることを特徴とする。   According to a sixth aspect of the present invention, there is provided the barcode symbol reading device according to the fifth aspect, wherein the extracting means accepts an input without updating the setting parameter when the setting item is not a setting parameter extraction target. A parameter is used, and when the setting item is a setting parameter extraction target, the setting parameter is extracted.

また、第7発明に係るバーコードシンボル読取装置は、第1乃至第6発明のいずれか1つにおいて、前記設定パラメータ入力受付手段は、前記設定パラメータとして、前記設定パラメータの指定がない旨を示す入力を受け付けることを特徴とする。   According to a seventh aspect of the present invention, in the bar code symbol reading device according to any one of the first to sixth aspects, the setting parameter input receiving means indicates that the setting parameter is not specified as the setting parameter. It is characterized by accepting input.

また、第8発明に係るバーコードシンボル読取装置は、第1乃至第7発明のいずれか1つにおいて、前記チューニング領域の大きさに基づいて、前記一次元コード又は前記二次元コードを検出することが可能な最小の大きさまで前記チューニング領域内の画像を縮小する比率を算出し、算出した比率に応じて縮小した縮小画像を用いて前記一次元コード又は前記二次元コードを検出するようにしてあることを特徴とする。   According to an eighth aspect of the present invention, there is provided the barcode symbol reader according to any one of the first to seventh aspects, wherein the one-dimensional code or the two-dimensional code is detected based on a size of the tuning area. The ratio of reducing the image in the tuning area to the smallest possible size is calculated, and the one-dimensional code or the two-dimensional code is detected using a reduced image reduced according to the calculated ratio. It is characterized by that.

次に、上記目的を達成するために第9発明に係るバーコードシンボル読取方法は、読み取り対象となる一次元コード又は二次元コードの特徴に関する特徴パラメータを画像から読み取り、一次元コード又は二次元コードを検出してデコードするバーコードシンボル読取装置で実行することが可能なバーコードシンボル読取方法において、少なくとも一の一次元コード又は二次元コードを含む画像を取得するステップと、取得した画像を表示するステップと、少なくとも一の一次元コード又は二次元コードを含む画像上で、前記一次元コード又は前記二次元コードの特徴に関する設定項目の設定パラメータを抽出するチューニング領域の指定を、一の一次元コード又は二次元コードを囲むように受け付けるステップと、前記設定パラメータの入力を部分的に受け付けるステップと、指定を受け付けたチューニング領域内で前記一次元コード又は前記二次元コードを検出するステップと、検出した一次元コード又は二次元コードを正常にデコードすることができるか否かを判断するステップと、正常にデコードすることができると判断した場合、前記一次元コード又は前記二次元コードの設定パラメータを抽出するステップとを含むことを特徴とする。   Next, in order to achieve the above object, the barcode symbol reading method according to the ninth aspect of the present invention reads a feature parameter relating to the characteristics of the one-dimensional code or two-dimensional code to be read from the image, and the one-dimensional code or two-dimensional code. In a barcode symbol reading method that can be executed by a barcode symbol reading device that detects and decodes, a step of acquiring an image including at least one one-dimensional code or two-dimensional code, and displaying the acquired image Specifying a tuning region for extracting a setting parameter of a setting item relating to the feature of the one-dimensional code or the two-dimensional code on an image including at least one one-dimensional code or two-dimensional code; Or accepting the two-dimensional code so as to enclose it, and inputting the setting parameter A step of partially receiving the step, a step of detecting the one-dimensional code or the two-dimensional code in the tuning region that has received the designation, and whether the detected one-dimensional code or the two-dimensional code can be normally decoded And a step of extracting a setting parameter of the one-dimensional code or the two-dimensional code when it is determined that the decoding can be normally performed.

次に、上記目的を達成するために第10発明に係るコンピュータプログラムは、読み取り対象となる一次元コード又は二次元コードの特徴に関する特徴パラメータを画像から読み取り、一次元コード又は二次元コードを検出してデコードするバーコードシンボル読取装置で実行することが可能なコンピュータプログラムにおいて、前記バーコードシンボル読取装置を、少なくとも一の一次元コード又は二次元コードを含む画像を取得する取得手段、取得した画像を表示する表示手段、少なくとも一の一次元コード又は二次元コードを含む画像上で、前記一次元コード又は前記二次元コードの特徴に関する設定項目の設定パラメータを抽出するチューニング領域の指定を、一の一次元コード又は二次元コードを囲むように受け付ける領域指定受付手段、前記設定パラメータの入力を部分的に受け付ける設定パラメータ入力受付手段、指定を受け付けたチューニング領域内で前記一次元コード又は前記二次元コードを検出する検出手段、検出した一次元コード又は二次元コードを正常にデコードすることができるか否かを判断する判断手段、及び該判断手段が正常にデコードすることができると判断した場合、前記一次元コード又は前記二次元コードの設定パラメータを抽出する抽出手段として機能させることを特徴とする。   Next, in order to achieve the above object, the computer program according to the tenth aspect of the invention reads feature parameters relating to the characteristics of the one-dimensional code or two-dimensional code to be read from the image, and detects the one-dimensional code or two-dimensional code. In the computer program that can be executed by the barcode symbol reader that decodes the barcode, the barcode symbol reader is configured to acquire at least one one-dimensional code or an image including a two-dimensional code. The display means for displaying, specifying the tuning area for extracting the setting parameters of the setting items relating to the features of the one-dimensional code or the two-dimensional code on the image including at least one one-dimensional code or two-dimensional code, Accepting area designation to enclose original code or 2D code Means, a setting parameter input receiving means for partially receiving the input of the setting parameter, a detecting means for detecting the one-dimensional code or the two-dimensional code in the tuning region where the specification is received, the detected one-dimensional code or two-dimensional code Means for determining whether or not can be decoded normally, and extraction for extracting setting parameters of the one-dimensional code or the two-dimensional code when the determining means determines that the decoding can be normally performed It is made to function as a means.

第1発明、第9発明及び第10発明では、少なくとも一の一次元コード又は二次元コードを含む画像を取得し、取得した画像を表示する。少なくとも一の一次元コード又は二次元コードを含む画像上で、一次元コード又は二次元コードの特徴に関する設定項目の設定パラメータを抽出するチューニング領域の指定を、一の一次元コード又は二次元コードを囲むように受け付ける。設定パラメータの入力を部分的に受け付け、指定を受け付けたチューニング領域内で一次元コード又は二次元コードを検出する。検出した一次元コード又は二次元コードを正常にデコードすることができるか否かを判断し、正常にデコードすることができると判断した場合、一次元コード又は二次元コードの設定パラメータを抽出する。読み取り対象となる一の一次元コード又は二次元コードを囲むようにチューニング領域の指定を受け付けることにより、一次元コード又は二次元コードを検出するまでの時間を短縮することができ、チューニング処理の対象となる一次元コード又は二次元コードを確実に特定することが可能となる。   In the first invention, the ninth invention, and the tenth invention, an image including at least one one-dimensional code or two-dimensional code is acquired, and the acquired image is displayed. Specify the tuning area to extract the setting parameters of the setting items related to the features of the one-dimensional code or two-dimensional code on the image including at least one one-dimensional code or two-dimensional code. Accept to enclose. A part of the input of the setting parameter is received, and a one-dimensional code or a two-dimensional code is detected in the tuning region where the specification is received. It is determined whether or not the detected one-dimensional code or two-dimensional code can be normally decoded. When it is determined that the detected one-dimensional code or two-dimensional code can be normally decoded, the setting parameters of the one-dimensional code or the two-dimensional code are extracted. By accepting the specification of the tuning area so as to enclose the one-dimensional code or two-dimensional code to be read, the time until the detection of the one-dimensional code or the two-dimensional code can be shortened, and the target of the tuning process It becomes possible to specify the one-dimensional code or the two-dimensional code to be surely.

第2発明では、少なくとも一の一次元コード又は二次元コードを含む画像上で、一次元コード又は二次元コードの位置と姿勢とを検出するサーチ領域の指定を受け付ける。サーチ領域とは別個に、チューニング領域の指定を受け付けることにより、チューニング処理の対象領域を一次元コード又は二次元コードの近傍に限定することができ、一次元コード又は二次元コードを検出するまでの時間を短縮することができる。   In the second invention, designation of a search area for detecting the position and orientation of the one-dimensional code or the two-dimensional code on an image including at least one one-dimensional code or two-dimensional code is accepted. By receiving designation of the tuning area separately from the search area, the target area of the tuning process can be limited to the vicinity of the one-dimensional code or the two-dimensional code, and until the one-dimensional code or the two-dimensional code is detected. Time can be shortened.

第3発明では、指定を受け付けたチューニング領域において、一次元コード又は二次元コードに固有のシンボルを検出することができるか否かを判断し、シンボルを検出することができないと判断した場合、再度チューニング領域の指定を受け付ける。これにより、チューニング領域の指定に誤りがあった場合であっても、事前に確認してチューニング領域の指定を受け付け直すことができ、チューニング領域に一の一次元コード又は二次元コードを確実に含ませることが可能となる。   In the third invention, it is determined whether or not a symbol specific to the one-dimensional code or the two-dimensional code can be detected in the tuning region that has received the designation, and if it is determined that the symbol cannot be detected, Accepts specification of tuning area. As a result, even if there is an error in the specification of the tuning area, it is possible to confirm in advance and accept the specification of the tuning area, and one tuning code is surely included in the tuning area. It becomes possible to make it.

第4発明では、設定項目は、少なくとも二次元コードに固有のシンボルを構成するセルの大きさ、二次元コードのコード種別、コントラスト、印字の色種別、ミラー反転、基準角度、撮像条件、ピッチ角度、画像フィルタの種別のいずれかを含むことにより、データマトリクス(DM)コード、QRコード等の代表的な二次元コードをより効率よく検出することができる。   In the fourth invention, the setting items include at least the size of a cell constituting a symbol unique to the two-dimensional code, the code type of the two-dimensional code, the contrast, the color type of printing, the mirror inversion, the reference angle, the imaging condition, and the pitch angle. By including any of the image filter types, representative two-dimensional codes such as a data matrix (DM) code and a QR code can be detected more efficiently.

第5発明では、各設定項目が設定パラメータの抽出対象であるか否かに関する情報の入力も受け付けることにより、抽出対象ではない特徴に関する設定項目の設定パラメータを抽出する処理を回避することができ、一次元コード又は二次元コード検出処理の演算処理負荷を軽減することができる。   In the fifth invention, by accepting the input of information regarding whether or not each setting item is a setting parameter extraction target, it is possible to avoid the process of extracting the setting parameter of the setting item related to the feature that is not the extraction target, The calculation processing load of the one-dimensional code or two-dimensional code detection process can be reduced.

第6発明では、設定項目が設定パラメータの抽出対象である場合、設定パラメータを抽出する。設定項目が設定パラメータの抽出対象ではない場合、設定パラメータを更新することなく、入力を受け付けた設定パラメータに限定し、チューニング処理を実行する。これにより、より安定したチューニング処理を実行することが可能になる。   In the sixth invention, when the setting item is a setting parameter extraction target, the setting parameter is extracted. If the setting item is not a setting parameter extraction target, the tuning process is executed by limiting to the setting parameter that has received the input without updating the setting parameter. As a result, a more stable tuning process can be executed.

第7発明では、設定パラメータとして、設定パラメータの指定がない旨を示す入力を受け付けることにより、特定の一次元コード又は二次元コードに限定することなく、広く一次元コード又は二次元コードを検出することができる。   In the seventh invention, by accepting an input indicating that no setting parameter is specified as a setting parameter, a one-dimensional code or two-dimensional code is widely detected without being limited to a specific one-dimensional code or two-dimensional code. be able to.

第8発明では、チューニング領域の大きさに基づいて、一次元コード又は二次元コードを検出することが可能な最小の大きさまでチューニング領域内の画像を縮小する比率を算出し、算出した比率に応じて縮小した縮小画像を用いて一次元コード又は二次元コードを検出する。これにより、一次元コード又は二次元コードの検出時に必要な最低限の縮小画像での処理に限定できるので一次元コード又は二次元コード検出処理の演算処理負荷を大きく軽減することができる。   In the eighth invention, based on the size of the tuning area, a ratio for reducing the image in the tuning area to a minimum size capable of detecting the one-dimensional code or the two-dimensional code is calculated, and the ratio is calculated according to the calculated ratio. A one-dimensional code or a two-dimensional code is detected using the reduced image reduced in this way. Thereby, since it can be limited to the processing with the minimum reduced image required when detecting the one-dimensional code or the two-dimensional code, the processing load of the one-dimensional code or the two-dimensional code detection processing can be greatly reduced.

本発明によれば、一の一次元コード又は二次元コードを囲むようにチューニング領域の指定を受け付けることにより、一次元コード又は二次元コードを検出するまでの時間を短縮することができ、チューニング処理の対象となる一次元コード又は二次元コードを確実に特定することが可能となる。   According to the present invention, by accepting the designation of the tuning area so as to surround one one-dimensional code or two-dimensional code, the time until detecting the one-dimensional code or the two-dimensional code can be shortened, and the tuning process It is possible to reliably specify the one-dimensional code or the two-dimensional code that is the target of the above.

本発明の実施の形態1に係るバーコードシンボル読取装置の構成を模式的に示すブロック図である。It is a block diagram which shows typically the structure of the barcode symbol reader which concerns on Embodiment 1 of this invention. 本発明の実施の形態1に係る画像処理装置の特徴パラメータ記憶部のデータ構成の例示図である。It is an illustration figure of the data structure of the characteristic parameter memory | storage part of the image processing apparatus which concerns on Embodiment 1 of this invention. 本発明の実施の形態1に係るバーコードシンボル読取装置の一構成例を示す機能ブロック図である。It is a functional block diagram which shows the example of 1 structure of the barcode symbol reader which concerns on Embodiment 1 of this invention. チューニング領域の概念を説明するための模式図である。It is a schematic diagram for demonstrating the concept of a tuning area | region. 本発明の実施の形態1に係るバーコードシンボル読取装置の領域指定受付手段の機能ブロック図である。It is a functional block diagram of the area | region designation | designated reception means of the barcode symbol reader which concerns on Embodiment 1 of this invention. 本発明の実施の形態1に係るバーコードシンボル読取装置の設定パラメータ受付画面の例示図である。It is an illustration figure of the setting parameter reception screen of the barcode symbol reader which concerns on Embodiment 1 of this invention. 設定項目「コード種別」の設定パラメータが「指定なし」の場合を示す画面例示図である。FIG. 11 is a screen example showing a case where a setting parameter of a setting item “code type” is “no specification”. チューニング処理により、二次元コードがDMコードである旨が抽出された場合を示す画面例示図である。It is a screen illustration figure which shows the case where the fact that a two-dimensional code is DM code is extracted by the tuning process. 本発明の実施の形態1に係る画像処理装置の主制御部の二次元コード読み取り処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the two-dimensional code reading process of the main control part of the image processing apparatus which concerns on Embodiment 1 of this invention. 本発明の実施の形態2に係るバーコードシンボル読取装置の構成を模式的に示すブロック図である。It is a block diagram which shows typically the structure of the barcode symbol reader which concerns on Embodiment 2 of this invention. 本発明の実施の形態2に係るバーコードシンボル読取装置の一構成例を示す機能ブロック図である。It is a functional block diagram which shows the example of 1 structure of the barcode symbol reader which concerns on Embodiment 2 of this invention. 本発明の実施の形態2に係るPCのCPUの二次元コード読み取り処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the two-dimensional code reading process of CPU of PC which concerns on Embodiment 2 of this invention. 本発明の実施の形態2に係るバーコードシンボル読取装置の、チューニング処理を画像処理装置で実行する場合の、一構成例を示す機能ブロック図である。It is a functional block diagram which shows one structural example in the case of performing the tuning process of the barcode symbol reader which concerns on Embodiment 2 of this invention with an image processing apparatus.

以下、本発明の実施の形態に係るバーコードシンボル読取装置について、図面を参照しながら説明する。なお、参照する図面を通じて、同一又は同様の構成又は機能を有する要素については、同一又は同様の符号を付して、詳細な説明を省略する。   A barcode symbol reader according to an embodiment of the present invention will be described below with reference to the drawings. Throughout the drawings to be referred, elements having the same or similar configuration or function are denoted by the same or similar reference numerals, and detailed description thereof is omitted.

(実施の形態1)
図1は、本発明の実施の形態1に係るバーコードシンボル読取装置の構成を模式的に示すブロック図である。図1に示すように本実施の形態1に係るバーコードシンボル読取装置1は、画像処理装置2、カメラ3、コンソール4、PLC6で構成されている。
(Embodiment 1)
FIG. 1 is a block diagram schematically showing a configuration of a bar code symbol reading apparatus according to Embodiment 1 of the present invention. As shown in FIG. 1, the barcode symbol reading apparatus 1 according to the first embodiment includes an image processing apparatus 2, a camera 3, a console 4, and a PLC 6.

画像処理装置2は、少なくともCPU(中央演算装置)、LSI等で構成された主制御部21、メモリ22、記憶装置23、ビデオインタフェース24、入出力インタフェース25、可搬型ディスクドライブ26、通信インタフェース27及び上述したハードウェアを接続する内部バス28で構成されている。主制御部21は、内部バス28を介して画像処理装置2の上述したようなハードウェア各部と接続されており、上述したハードウェア各部の動作を制御するとともに、記憶装置23に記憶されているコンピュータプログラム100に従って、種々のソフトウェア的機能を実行する。メモリ22は、SRAM、SDRAM等の揮発性メモリで構成され、コンピュータプログラム100の実行時にロードモジュールが展開され、コンピュータプログラム100の実行時に発生する一時的なデータ等を記憶する。   The image processing apparatus 2 includes at least a CPU (central processing unit), a main control unit 21 configured by an LSI, a memory 22, a storage device 23, a video interface 24, an input / output interface 25, a portable disk drive 26, a communication interface 27. And an internal bus 28 for connecting the hardware described above. The main control unit 21 is connected to each hardware unit as described above of the image processing apparatus 2 via the internal bus 28, and controls the operation of each hardware unit described above and is stored in the storage device 23. Various software functions are executed according to the computer program 100. The memory 22 is composed of a volatile memory such as SRAM or SDRAM, and a load module is expanded when the computer program 100 is executed, and stores temporary data generated when the computer program 100 is executed.

記憶装置23は、内蔵される固定型記憶装置(ハードディスク、フラッシュメモリ)、ROM等で構成されている。記憶装置23に記憶されているコンピュータプログラム100は、プログラム及びデータ等の情報を記録したDVD、CD−ROM、フラッシュメモリ等の可搬型記録媒体90から、可搬型ディスクドライブ26によりダウンロードされ、実行時には記憶装置23からメモリ22へ展開して実行される。もちろん、通信インタフェース27を介して外部のコンピュータからダウンロードされたコンピュータプログラムであっても良い。   The storage device 23 includes a built-in fixed storage device (hard disk, flash memory), ROM, and the like. The computer program 100 stored in the storage device 23 is downloaded by a portable disk drive 26 from a portable recording medium 90 such as a DVD, CD-ROM, or flash memory in which information such as programs and data is recorded. It is expanded from the storage device 23 to the memory 22 and executed. Of course, a computer program downloaded from an external computer via the communication interface 27 may be used.

記憶装置23は、一次元コード又は二次元コードの特徴に関する設定項目、設定項目ごとの設定パラメータ、及び各設定項目がチューニング処理による設定パラメータの抽出対象であるか否かに関する情報を記憶する特徴パラメータ記憶部231を備えている。図2は、本発明の実施の形態1に係る画像処理装置2の特徴パラメータ記憶部231のデータ構成の例示図である。   The storage device 23 stores setting items relating to features of the one-dimensional code or the two-dimensional code, setting parameters for each setting item, and information relating to whether or not each setting item is a setting parameter extraction target by the tuning process. A storage unit 231 is provided. FIG. 2 is an exemplary diagram of a data configuration of the feature parameter storage unit 231 of the image processing apparatus 2 according to the first embodiment of the present invention.

図2に示すように、一次元コード又は二次元コードの特徴に関する設定項目は、例えば二次元コードの場合には、少なくともシンボルを構成するセルの大きさ、二次元コードのコード種別、シンボルサイズ、コントラスト、印字の色種別、ミラー反転、基準角度、撮像条件、ピッチ角度、画像フィルタの種別のいずれかを含む。   As shown in FIG. 2, the setting items related to the characteristics of the one-dimensional code or the two-dimensional code are, for example, in the case of a two-dimensional code, at least the size of a cell constituting a symbol, the code type of the two-dimensional code, the symbol size, It includes any of contrast, print color type, mirror inversion, reference angle, imaging condition, pitch angle, and image filter type.

「シンボルを構成するセルの大きさ」には、例えば二次元コードに固有のシンボルを構成するセルの縦の個数、横の個数及び1個当たりのセルの大きさを記憶する。すなわち、シンボルサイズを縦のセルの個数及び横のセルの個数で示し、1個当たりのセルの大きさを併せて記憶しておくことで、検出した二次元コードをより正確にデコードすることができる。本実施の形態1では、1個当たりのセルの大きさをPPC(Pixel Per Cell)として「ピクセル」単位で記憶しているが、実長に即して「インチ」単位で記憶しても良いし、「mm」単位で記憶しても良い。なお、バーコードのような一次元コードの場合、最も細いバー、スペース等の間隔に基づいて1モジュール当たりの大きさを同じように「ピクセル」単位で記憶しても良いし、実長に即して「インチ」単位で記憶しても良いし、「mm」単位で記憶しても良い。   In the “size of cells constituting a symbol”, for example, the vertical number, the horizontal number, and the size of each cell constituting a symbol unique to the two-dimensional code are stored. That is, the symbol size is indicated by the number of vertical cells and the number of horizontal cells, and by storing the size of each cell together, the detected two-dimensional code can be decoded more accurately. it can. In the first embodiment, the size of each cell is stored as a PPC (Pixel Per Cell) in “pixel” units, but may be stored in “inch” units according to the actual length. However, it may be stored in units of “mm”. In the case of a one-dimensional code such as a bar code, the size per module may be stored in the same “pixel” unit based on the interval of the thinnest bar, space, etc. Then, it may be stored in units of “inch” or may be stored in units of “mm”.

「コード種別」には、二次元コードのコード種別、例えばDM(データマトリクス)コード、QRコード等の種別を記憶する。「シンボルサイズ」には、例えば二次元コードのコード種別がDM(DataMatrix)コードである場合、10×10から144×144までのサイズを記憶する。なお、一次元コードのコード種別としては、JANコード、インターリーブド2オブ5、コード39等の種別を記憶する。   In the “code type”, a code type of a two-dimensional code, for example, a DM (data matrix) code, a QR code, or the like is stored. In the “symbol size”, for example, when the code type of the two-dimensional code is a DM (DataMatrix) code, a size from 10 × 10 to 144 × 144 is stored. As the code type of the one-dimensional code, the type such as JAN code, interleaved 2 of 5, code 39, etc. is stored.

「コントラスト」には、二次元コードの背景と前景との画素値の変動を、階調で表した数値を記憶する。「印字の色種別」には、黒シンボルからなる二次元コード又は白黒反転したシンボルからなる二次元コードの色種別を記憶する。「ミラー反転」には、二次元コードをガラス表面に印刷して反対側から撮像した二次元コードであるか否かを記憶する。   In the “contrast”, a numerical value representing a change in pixel value between the background and the foreground of the two-dimensional code in terms of gradation is stored. The “printing color type” stores the color type of a two-dimensional code consisting of a black symbol or a two-dimensional code consisting of a black and white inverted symbol. In “mirror inversion”, whether or not the two-dimensional code is obtained by printing the two-dimensional code on the glass surface and picking up an image from the opposite side is stored.

「基準角度」には、正立した状態を0度とし、時計回りを正とした場合の、撮像された二次元コードの角度を記憶する。「撮像条件」としては、「露光時間」、「照明パターン」、「カメラゲイン」等を少なくとも含む撮像時の条件を記憶する。「ピッチ角度」には、二次元コードの印刷面に対するイメージセンサの面の相対角度を記憶する。「画像フィルタの種別」には、メディアンフィルタ等のフィルタリング処理を実行する場合に用いる画像フィルタの種別を記憶する。   The “reference angle” stores the angle of the imaged two-dimensional code when the upright state is 0 degree and the clockwise direction is positive. As “imaging conditions”, conditions at the time of imaging including at least “exposure time”, “illumination pattern”, “camera gain”, and the like are stored. In the “pitch angle”, the relative angle of the surface of the image sensor with respect to the printing surface of the two-dimensional code is stored. The “image filter type” stores the type of image filter used when executing filtering processing such as median filter.

設定パラメータの入力を受け付けた場合には、設定項目ごとに特徴パラメータ記憶部231に記憶される。なお、図2の例のように、入力を受け付けていない場合には、設定パラメータは「指定なし」となる。   When the input of the setting parameter is accepted, it is stored in the feature parameter storage unit 231 for each setting item. As in the example of FIG. 2, when no input is accepted, the setting parameter is “not specified”.

すなわち、設定項目ごとに、チューニング処理による設定パラメータの抽出対象であるか否かに関する情報を記憶しておき、チューニング処理による設定パラメータの抽出対象である設定項目については、チューニング処理により抽出された設定パラメータが指定される。また、チューニング処理による設定パラメータの抽出対象ではない設定項目については、設定パラメータの入力を受け付ける必要がある。これにより、全ての設定項目についてチューニング処理により抽出する必要がなくなるので、チューニング処理の演算処理負荷を軽減することができる。また、チューニング処理を実行する時に、入力を受け付けた設定パラメータに限定してチューニング処理を実行するので、より安定したチューニング処理を実行することが可能となる。   That is, for each setting item, information regarding whether or not the setting parameter is to be extracted by the tuning process is stored, and the setting item that is to be extracted by the tuning process is the setting extracted by the tuning process. A parameter is specified. For setting items that are not subject to setting parameter extraction by tuning processing, it is necessary to accept input of setting parameters. As a result, it is not necessary to extract all setting items by the tuning process, so that the calculation processing load of the tuning process can be reduced. Further, when executing the tuning process, the tuning process is executed only for the set parameters for which the input has been accepted, so that a more stable tuning process can be executed.

図1に戻って、通信インタフェース27は内部バス28に接続されており、インターネット、LAN、WAN等の外部のネットワークに接続されることにより、外部のコンピュータ等とデータ送受信を行うことが可能となっている。すなわち、上述した記憶装置23は、画像処理装置2に内蔵される構成に限定されるものではなく、通信インタフェース27を介して接続されている外部のサーバコンピュータ等に設置されているハードディスク等の外部記録媒体であっても良い。   Returning to FIG. 1, the communication interface 27 is connected to an internal bus 28, and by connecting to an external network such as the Internet, a LAN, or a WAN, data can be transmitted / received to / from an external computer or the like. ing. That is, the above-described storage device 23 is not limited to the configuration built in the image processing device 2, and is not limited to an external device such as a hard disk installed in an external server computer connected via the communication interface 27. It may be a recording medium.

ビデオインタフェース24は、内部バス28に接続されており、コンソール4の表示装置401に接続されることにより、所望の画像を表示する。入出力インタフェース25は、内部バス28に接続されており、コンソール4のキーボード402を介してデータの入力を受け付ける。なお、コンソール4は、表示装置401とキーボード402とが一体になっている構成に限定されるものではなく、別個に構成されていても良いし、液晶パネル等と一体になったタッチパネル等の入力情報を取得する装置全般を含む広い概念である。   The video interface 24 is connected to the internal bus 28 and displays a desired image by being connected to the display device 401 of the console 4. The input / output interface 25 is connected to the internal bus 28 and accepts data input via the keyboard 402 of the console 4. Note that the console 4 is not limited to a configuration in which the display device 401 and the keyboard 402 are integrated, and may be configured separately, or an input such as a touch panel integrated with a liquid crystal panel or the like. It is a broad concept that includes all devices that acquire information.

カメラ3は、CCD撮像素子を備えたCCDカメラ等であり、少なくとも一の二次元コード5を含む画像を撮像して取得する。画像処理装置2は、二次元コードの読み取り処理だけでなく、さまざまな画像処理を実行する。PLC6は、画像処理装置2を含む各種の装置からデータを受信し、受信した内容に応じて画像処理装置2及び/又は各種の装置へ指示を送信する装置である。   The camera 3 is a CCD camera or the like provided with a CCD imaging device, and captures and acquires an image including at least one two-dimensional code 5. The image processing apparatus 2 executes not only a two-dimensional code reading process but also various image processes. The PLC 6 is a device that receives data from various devices including the image processing device 2 and transmits instructions to the image processing device 2 and / or various devices according to the received contents.

図3は、本発明の実施の形態1に係るバーコードシンボル読取装置1の一構成例を示す機能ブロック図である。図3において、本実施の形態1に係るバーコードシンボル読取装置1は、カメラ3と、画像処理装置2と、コンソール4と記憶装置23とで構成される。以下、二次元コードのバーコードシンボルを読み取る場合について説明する。   FIG. 3 is a functional block diagram showing a configuration example of the bar code symbol reading apparatus 1 according to Embodiment 1 of the present invention. In FIG. 3, the barcode symbol reading device 1 according to the first embodiment includes a camera 3, an image processing device 2, a console 4, and a storage device 23. Hereinafter, a case where a barcode symbol of a two-dimensional code is read will be described.

画像取得手段(取得手段)201は、少なくとも一の二次元コードを含む画像を、カメラ3で撮像することにより取得する。画像を取得する方法は、カメラ3による撮像に限定されるものではなく、過去に撮像された画像を画像データとして記憶装置23に記憶しておき、所望の画像データを読み出すことで取得しても良い。また、外部のコンピュータに記憶してある画像データを通信インタフェース27を介して読み出すことで取得しても良い。取得した画像の画像データは記憶装置23に記憶される。   The image acquisition unit (acquisition unit) 201 acquires an image including at least one two-dimensional code by capturing the image with the camera 3. The method for acquiring an image is not limited to the image capturing by the camera 3, and an image captured in the past may be stored as image data in the storage device 23 and acquired by reading out desired image data. good. Alternatively, image data stored in an external computer may be acquired by reading out via the communication interface 27. The image data of the acquired image is stored in the storage device 23.

画像表示手段(表示手段)202は、取得した画像をコンソール4の表示装置401に表示する。表示された画像全体を、二次元コードの位置と姿勢とを検出するためのサーチ領域としても良いし、図示しないサーチ領域指定受付手段にてサーチ領域の指定を受け付けても良い。   The image display unit (display unit) 202 displays the acquired image on the display device 401 of the console 4. The entire displayed image may be used as a search area for detecting the position and orientation of the two-dimensional code, or a search area designation accepting unit (not shown) may accept designation of the search area.

領域指定受付手段203は、少なくとも一の二次元コードを含む画像上で、二次元コードの特徴に関する設定項目の設定パラメータを抽出するチューニング領域の指定を、一の二次元コードを囲むような位置にて受け付ける。チューニング領域の指定を受け付けることにより、不要な領域を含めてチューニング処理を実行する必要がなく、チューニング処理の演算処理負荷を軽減することができる。   The region designation receiving unit 203 designates the tuning region for extracting the setting parameter of the setting item related to the feature of the two-dimensional code on the image including at least one two-dimensional code at a position surrounding the one two-dimensional code. And accept. By accepting the specification of the tuning area, it is not necessary to execute the tuning process including unnecessary areas, and the calculation processing load of the tuning process can be reduced.

また、二次元コードの位置と姿勢とを検出するためのサーチ領域とは別個に、チューニング領域の指定を受け付けることが好ましい。チューニング領域を二次元コードの近傍に限定することができ、二次元コードを検出するまでの時間を短縮することができるからである。   Further, it is preferable to accept the designation of the tuning area separately from the search area for detecting the position and orientation of the two-dimensional code. This is because the tuning region can be limited to the vicinity of the two-dimensional code, and the time until the two-dimensional code is detected can be shortened.

図4は、チューニング領域の概念を説明するための模式図である。図4に示すように、カメラ3で撮像された画像を表示している画面上において、二次元コードの位置と姿勢とを検出(サーチ)するためのサーチ領域41の指定を受け付ける。図4の例では、サーチ領域41内に2つのDMコード42、43が存在するので、このままDMコードの検出処理を開始した場合、どちらのDMコードが検出されるか不明である。また、複数のDMコード42、43に対して検出処理が実行されることから、サーチ領域41が比較的広く、DMコードを検出するまでの時間を短縮することが困難となる。   FIG. 4 is a schematic diagram for explaining the concept of the tuning region. As shown in FIG. 4, designation of a search area 41 for detecting (searching) the position and orientation of a two-dimensional code on a screen displaying an image captured by the camera 3 is accepted. In the example of FIG. 4, since two DM codes 42 and 43 exist in the search area 41, when the DM code detection process is started as it is, it is unclear which DM code is detected. Further, since the detection process is executed for the plurality of DM codes 42 and 43, the search area 41 is relatively wide, and it is difficult to shorten the time until the DM code is detected.

そこで、本実施の形態1では、シンボルサイズの小さいDMコード42を確実に検出することができるよう、DMコード42を囲むようにチューニング領域44の指定を受け付ける。これにより、読み取り対象をDMコード42に特定することができ、DMコード42の特徴に関する設定項目の設定パラメータを確実に抽出することができる。また、チューニング領域44がサーチ領域41よりも狭いことから、DMコード42を検出するまでの時間を短縮することもできる。   Therefore, in the first embodiment, the specification of the tuning area 44 is received so as to surround the DM code 42 so that the DM code 42 with a small symbol size can be reliably detected. As a result, the reading target can be specified as the DM code 42, and the setting parameters of the setting items relating to the features of the DM code 42 can be reliably extracted. Further, since the tuning area 44 is narrower than the search area 41, the time until the DM code 42 is detected can be shortened.

さらに、例えばチューニング領域44として回転可能な矩形領域の指定を受け付けることができる場合、二次元コードに固有のシンボルの傾斜角度に合わせてチューニング領域44の指定を受け付けることができるので、シンボルの傾斜角度の検出処理において、検出角度は指定を受け付けた回転可能な矩形領域の回転角度に近いことが期待できるので検出角度の探索範囲を狭めることができ、全体としてDMコード42を検出するまでの時間を短縮することができる。   Furthermore, for example, when the designation of a rotatable rectangular area can be accepted as the tuning area 44, the designation of the tuning area 44 can be accepted according to the inclination angle of the symbol specific to the two-dimensional code. In this detection process, since the detection angle can be expected to be close to the rotation angle of the rotatable rectangular area that has received the designation, the search range of the detection angle can be narrowed, and the time until the DM code 42 is detected as a whole can be reduced. It can be shortened.

なお、チューニング領域44が矩形領域である場合、例えば矩形領域の左上の座標値及び右下の座標値の指定を受け付ける。また、チューニング領域44が回転可能な矩形領域である場合、例えば矩形領域が正立している状態(基準角度が0度の状態)での幅、高さ、矩形領域の中心座標及び回転角度の指定を受け付ける。   When the tuning area 44 is a rectangular area, for example, designation of the upper left coordinate value and the lower right coordinate value of the rectangular area is accepted. Further, when the tuning area 44 is a rotatable rectangular area, for example, the width, height, center coordinates of the rectangular area, and the rotation angle when the rectangular area is upright (the reference angle is 0 degree) Accept specification.

さらに、チューニング領域44として指定を受け付ける領域の形状は矩形に限定されるものではなく、円形、楕円形等、二次元コードに固有のシンボルを囲むことができる形状であれば特に限定されるものではない。また、複数の形状を用いることができ、チューニング領域44の指定を受け付ける場合に、どの形状を用いて指定を受け付けるかの選択を受け付けるようにしても良い。   Furthermore, the shape of the region that accepts the designation as the tuning region 44 is not limited to a rectangle, and is not particularly limited as long as it is a shape that can surround a symbol unique to the two-dimensional code, such as a circle or an ellipse. Absent. Also, a plurality of shapes can be used, and when receiving designation of the tuning area 44, selection of which shape to use for accepting designation may be accepted.

また、チューニング領域44が適切に指定されず、例えばチューニング領域44内に読み取り対象となる二次元コードに固有のシンボルが一部しか含まれない位置にてチューニング領域44の指定を受け付けた場合、二次元コードのコード種別を正しく抽出することができない。そこで、チューニング領域の指定を受け付けた時点で、二次元コードに固有のシンボルを検出することができるか否かを判断することが好ましい。   Further, when the tuning area 44 is not properly specified, for example, when the designation of the tuning area 44 is received at a position where only a part of the unique symbol is included in the two-dimensional code to be read in the tuning area 44, The code type of the dimension code cannot be extracted correctly. Therefore, it is preferable to determine whether or not a symbol specific to the two-dimensional code can be detected when the designation of the tuning area is received.

図5は、本発明の実施の形態1に係るバーコードシンボル読取装置1の領域指定受付手段203の機能ブロック図である。図5において、シンボル判断手段501は、二次元コードに固有のシンボルを検出することができるか否かを判断する。   FIG. 5 is a functional block diagram of the area designation receiving unit 203 of the barcode symbol reading apparatus 1 according to Embodiment 1 of the present invention. In FIG. 5, a symbol determination unit 501 determines whether or not a symbol unique to the two-dimensional code can be detected.

例えば二次元コードがQRコードである場合、二次元コードの四隅のうち三か所にある矩形シンボルを検出することが必要となる。指定を受け付けたチューニング領域44が上下方向又は左右方向にシフトしている場合、矩形シンボルの一部を検出することができず、設定パラメータとして「コード種別」がQRコードであると抽出することができない。   For example, when the two-dimensional code is a QR code, it is necessary to detect rectangular symbols at three positions among the four corners of the two-dimensional code. When the tuning area 44 that has received the designation is shifted in the vertical direction or the horizontal direction, a part of the rectangular symbol cannot be detected, and it is extracted that the “code type” is a QR code as a setting parameter. Can not.

領域再指定受付手段502は、シンボル判断手段501にて二次元コードに固有のシンボルを検出することができないと判断した場合、再度チューニング領域44の指定を受け付ける。これにより、チューニング領域44に一の二次元コードを確実に含ませることができる、すなわちチューニング処理の対象となる一の二次元コードが確実にチューニング領域44内に存在することを担保することができる。   The area redesignation receiving unit 502 receives the designation of the tuning area 44 again when the symbol determination unit 501 determines that a symbol unique to the two-dimensional code cannot be detected. Thereby, the one two-dimensional code can be surely included in the tuning area 44, that is, it can be ensured that the one two-dimensional code to be subjected to the tuning process exists in the tuning area 44 reliably. .

図3に戻って、設定パラメータ入力受付手段204は、二次元コードの特徴に関する設定項目の設定パラメータの入力を部分的に受け付ける。二次元コードの特徴に関する設定項目の設定パラメータのうち、既知の設定パラメータのみの入力を受け付けることにより、入力を受け付けた設定パラメータによっては読み取り対象となる二次元コードのコード種別が何であるのか判断することができ、あるいは未知の設定パラメータの抽出を容易にすることができる。   Returning to FIG. 3, the setting parameter input receiving unit 204 partially receives the input of the setting parameters of the setting items related to the characteristics of the two-dimensional code. By accepting input of only the known setting parameters among the setting parameters of the setting items related to the characteristics of the two-dimensional code, it is determined what the code type of the two-dimensional code to be read is, depending on the setting parameters accepted. Or it can facilitate the extraction of unknown configuration parameters.

図6は、本発明の実施の形態1に係るバーコードシンボル読取装置1の設定パラメータ受付画面の例示図である。まず、チューニング処理の対象となる画像を、カメラ3で撮像した「入力画像」にするか、記憶装置23に記憶してある「登録画像」にするかの指定を、対象画像設定領域61にて受け付ける。図6の例では、「登録画像」の指定を受け付けている。   FIG. 6 is an exemplary view of a setting parameter reception screen of the bar code symbol reading apparatus 1 according to Embodiment 1 of the present invention. First, in the target image setting area 61, designation is made as to whether the image to be tuned is an “input image” captured by the camera 3 or a “registered image” stored in the storage device 23. Accept. In the example of FIG. 6, designation of “registered image” is accepted.

次に、上述したようにチューニング領域44の指定を受け付ける。そして、設定パラメータ指定領域62にて、必要な設定項目について設定パラメータの入力を受け付ける。図6の例では、設定パラメータ指定領域62の設定項目ごとに、チューニング処理による設定パラメータの抽出対象であるか否かに関する情報の入力を受け付けるチェックボックスを設けている。   Next, the designation of the tuning area 44 is accepted as described above. Then, the setting parameter designation area 62 accepts input of setting parameters for necessary setting items. In the example of FIG. 6, for each setting item in the setting parameter designation area 62, a check box is provided that accepts input of information regarding whether or not the setting parameter is to be extracted by the tuning process.

チェックボックスにチェックが入力されている設定項目については、チューニング処理により自動的に設定パラメータが指定される。チェックが入力されていない設定項目については、設定パラメータの入力を受け付ける。図6の例では、設定項目「ミラー反転」のみチェックが入力されていない。したがって、設定パラメータとして「反転なし」を入力している。他の設定項目については、チューニング処理前は空欄であり「自動チューニング」ボタン63の選択を受け付けた場合、チューニング処理が実行され、抽出された設定項目ごとの設定パラメータが指定される。   For setting items whose check boxes are checked, setting parameters are automatically specified by the tuning process. For setting items for which no check is input, input of setting parameters is accepted. In the example of FIG. 6, only the setting item “mirror inversion” is not checked. Therefore, “no inversion” is input as the setting parameter. Other setting items are blank before the tuning process, and when the selection of the “automatic tuning” button 63 is accepted, the tuning process is executed and the setting parameters for each extracted setting item are designated.

このように、設定項目が設定パラメータの抽出対象であるか否かに関する情報の入力を受け付けることにより、設定項目が設定パラメータの抽出対象ではない場合、設定パラメータを更新することなく、入力を受け付けた設定パラメータに限定してチューニング処理を実行することができる。したがって、チューニング処理の演算処理負荷を軽減することができ、より安定したチューニング処理を実行することが可能になる。   In this way, by accepting input of information regarding whether or not a setting item is a setting parameter extraction target, if the setting item is not a setting parameter extraction target, the input is accepted without updating the setting parameter. Tuning processing can be executed only for setting parameters. Therefore, the calculation processing load of the tuning process can be reduced, and a more stable tuning process can be executed.

なお、設定パラメータ入力受付手段204は、設定パラメータとして、設定パラメータの指定がない旨を示す「指定なし」の入力を受け付けることが好ましい。例えば設定項目「コード種別」の設定パラメータとして「指定なし」の入力を受け付けることができる場合、さまざまな種別の二次元コードを検出することができ、二次元コードの種別が未知である場合に効果的である。   The setting parameter input receiving unit 204 preferably receives an input of “no specification” indicating that no setting parameter is specified as the setting parameter. For example, when “None” input can be accepted as a setting parameter for the setting item “Code type”, various types of two-dimensional codes can be detected, and this is effective when the type of the two-dimensional code is unknown Is.

図7は、設定項目「コード種別」の設定パラメータが「指定なし」の場合を示す画面例示図である。コード種別設定領域71にて、DMコード、QRコード等ではなく、「指定なし」の入力を受け付けている。この場合、チューニング領域44内の二次元コードのコード種別がチューニング処理により抽出されるまで、その他の設定項目の設定パラメータの入力を受け付ける設定パラメータ指定領域72には、その他の設定項目が表示されない。もちろん、設定項目「コード種別」には、チューニング処理による設定パラメータの抽出対象であるか否かに関する情報の入力を受け付けるチェックボックスを設けてあり、チェックボックスにチェックが入力されている。   FIG. 7 is an exemplary screen showing a case where the setting parameter of the setting item “code type” is “not specified”. In the code type setting area 71, not “DM code”, “QR code”, etc. but “undesignated” input is accepted. In this case, until the code type of the two-dimensional code in the tuning area 44 is extracted by the tuning process, the other setting items are not displayed in the setting parameter designation area 72 that receives the input of the setting parameters of the other setting items. Of course, the setting item “code type” is provided with a check box for accepting input of information regarding whether or not the setting parameter is to be extracted by the tuning process, and a check is input to the check box.

図7の状態で「自動チューニング」ボタン73の選択を受け付けた場合、チューニング処理が実行され、まず二次元コードのコード種別が抽出される。コード種別を抽出する方法は特に限定されるものではなく、各二次元コードに固有のシンボルについてパターンマッチングして抽出しても良い。図8は、チューニング処理により、二次元コードのコード種別がDMコードである旨が抽出された場合を示す画面例示図である。   When the selection of the “automatic tuning” button 73 is accepted in the state of FIG. 7, the tuning process is executed, and the code type of the two-dimensional code is first extracted. The method for extracting the code type is not particularly limited, and the symbol unique to each two-dimensional code may be extracted by pattern matching. FIG. 8 is an exemplary screen showing a case where it is extracted that the code type of the two-dimensional code is DM code by the tuning process.

図8に示すように、コード種別設定領域71の設定項目「コード種別」には、抽出した設定パラメータ「DataMatrix」が指定されており、設定パラメータ指定領域72には、「コード種別」がDMコードである場合に設定パラメータの入力を受け付ける設定項目が表示されている。この時点で、各設定項目にはチューニング処理の結果が指定されている。この状態で、図6と同様にチェックボックスや設定項目の内容を変更して「自動チューニング」ボタン73の選択を受け付けた場合、変更した内容に従ってチューニング処理が実行され、変更した内容に従って抽出された設定項目ごとの設定パラメータが指定される。   As shown in FIG. 8, the extracted setting parameter “DataMatrix” is specified in the setting item “code type” of the code type setting area 71, and “code type” is DM code in the setting parameter specification area 72. In this case, setting items for receiving input of setting parameters are displayed. At this point, the result of tuning processing is specified for each setting item. In this state, when the contents of the check boxes and setting items are changed and the selection of the “automatic tuning” button 73 is accepted as in FIG. 6, the tuning process is executed according to the changed contents and extracted according to the changed contents. Setting parameters for each setting item are specified.

なお、チューニング領域44は、サーチ領域41とは表示が異なることが好ましい。例えばチューニング領域44を示す枠の色とサーチ領域41を示す枠の色とを異なる色にする、チューニング領域44を示す枠の線種とサーチ領域41を示す枠の線種とを異なる線種(実線と破線、太線と細線等)にする等、視覚的に容易に区別することができるようにすることで、読み取り対象となる二次元コードを確実に特定することができる。   The tuning area 44 is preferably displayed differently from the search area 41. For example, the color of the frame indicating the tuning area 44 and the color of the frame indicating the search area 41 are different from each other. The line type of the frame indicating the tuning area 44 is different from the line type of the frame indicating the search area 41 ( The two-dimensional code to be read can be surely specified by making it possible to easily distinguish visually, such as a solid line and a broken line, and a thick line and a thin line.

図3に戻って、二次元コード検出手段(検出手段)205は、領域指定受付手段203にて指定を受け付けたチューニング領域内で二次元コードを検出する。従来は、二次元コードを検出(サーチ)するためのサーチ領域内で二次元コードを検出していた。本実施の形態1では、サーチ領域とは別個に指定を受け付けたチューニング領域にて二次元コードに固有のシンボルを検出することにより、チューニング領域内の二次元コードを検出する。   Returning to FIG. 3, the two-dimensional code detection means (detection means) 205 detects the two-dimensional code in the tuning region that has been designated by the region designation acceptance means 203. Conventionally, a two-dimensional code is detected within a search area for detecting (searching) a two-dimensional code. In the first embodiment, the two-dimensional code in the tuning area is detected by detecting a symbol specific to the two-dimensional code in the tuning area that has received designation separately from the search area.

デコード判断手段(判断手段)206は、検出した二次元コードを正常にデコードすることができるか否かを判断する。正常にデコードすることができるか否かを判断する方法は、特に限定されるものではない。例えば二次元コード自体を検出することができない場合、明らかに正常にデコードすることができないと判断することができる。   A decoding determination unit (determination unit) 206 determines whether or not the detected two-dimensional code can be normally decoded. The method for determining whether or not decoding can be performed normally is not particularly limited. For example, when the two-dimensional code itself cannot be detected, it can be determined that obviously it cannot be decoded normally.

また、一の二次元コードに固有のシンボルが存在すると推定した領域を囲むようにチューニング領域の指定を受け付け、二次元コード自体は検出することができたものの、白黒パターンに誤りが含まれている場合も、正常にデコードすることができないと判断することができる。通常、二次元コードに固有のシンボルには誤り検出機能又は誤り検出訂正機能が付与されている。誤り検出機能しか付与されていない場合、誤りを検出したときに正常にデコードすることができないと判断することができる。一方、誤り検出訂正機能が付与されている場合、誤りを検出して、正常に誤り訂正をすることができなかったときに正常にデコードすることができないと判断することができる。   In addition, the specification of the tuning area is accepted so as to surround the area estimated to have a unique symbol in one two-dimensional code, and the two-dimensional code itself can be detected, but the monochrome pattern contains an error. In this case, it can be determined that the decoding cannot be performed normally. Usually, an error detection function or an error detection / correction function is added to a symbol unique to the two-dimensional code. When only the error detection function is provided, it can be determined that normal decoding cannot be performed when an error is detected. On the other hand, when an error detection / correction function is provided, it is possible to determine that an error is detected and decoding cannot be performed normally when error correction cannot be performed normally.

正常にデコードすることができると判断した場合、設定パラメータ抽出手段(抽出手段)207は、入力を受け付けた設定パラメータを使用して、検出した二次元コードの、抽出対象である設定項目の設定パラメータを抽出する。抽出した設定パラメータは、記憶装置23の特徴パラメータ記憶部231に記憶される。これにより、二次元コードの内容を正しく読み取ることができる。   When it is determined that the decoding can be normally performed, the setting parameter extraction unit (extraction unit) 207 uses the setting parameter that has received the input to set the setting parameter of the setting item that is the extraction target of the detected two-dimensional code. To extract. The extracted setting parameters are stored in the feature parameter storage unit 231 of the storage device 23. Thereby, the contents of the two-dimensional code can be read correctly.

正常にデコードすることができないと判断した場合、二次元コードの読み取りに失敗した旨を示す情報(メッセージ等)をコンソール4の表示装置401に表示することが好ましい。カメラ3との相対位置を変更して二次元コードを撮像しなおす、チューニング領域44の指定を改めて受け付ける等、再度試行することができるからである。   When it is determined that decoding cannot be performed normally, information (message or the like) indicating that the reading of the two-dimensional code has failed is preferably displayed on the display device 401 of the console 4. This is because it is possible to try again, such as changing the position relative to the camera 3 and re-imaging the two-dimensional code, or accepting the designation of the tuning area 44 again.

図9は、本発明の実施の形態1に係る画像処理装置2の主制御部21の二次元コード読み取り処理の手順を示すフローチャートである。画像処理装置2の主制御部21は、カメラ3で撮像した、少なくとも一の二次元コードを含む画像を、カメラ3で撮像することにより取得する(ステップS901)。画像を取得する方法は、カメラ3による撮像に限定されるものではなく、過去に撮像された画像を画像データとして記憶装置23に記憶しておき、所望の画像データを読み出すことで取得しても良い。また、外部のコンピュータに記憶してある画像データを通信インタフェース27を介して読み出すことで取得しても良い。取得した画像の画像データは記憶装置23に記憶される。   FIG. 9 is a flowchart showing the procedure of the two-dimensional code reading process of the main control unit 21 of the image processing apparatus 2 according to the first embodiment of the present invention. The main control unit 21 of the image processing apparatus 2 acquires the image including at least one two-dimensional code captured by the camera 3 by capturing the image using the camera 3 (step S901). The method for acquiring an image is not limited to the image capturing by the camera 3, and an image captured in the past may be stored as image data in the storage device 23 and acquired by reading out desired image data. good. Alternatively, image data stored in an external computer may be acquired by reading out via the communication interface 27. The image data of the acquired image is stored in the storage device 23.

主制御部21は、取得した画像をコンソール4の表示装置401に表示する(ステップS902)。表示された画像全体を、二次元コードの位置と姿勢とを検出(サーチ)するためのサーチ領域としても良いし、図示しないサーチ領域指定受付手段にてサーチ領域の指定を受け付けても良い。   The main control unit 21 displays the acquired image on the display device 401 of the console 4 (step S902). The entire displayed image may be used as a search area for detecting (searching) the position and orientation of the two-dimensional code, or a search area designation accepting unit (not shown) may accept designation of the search area.

主制御部21は、少なくとも一の二次元コードを含む画像上で、二次元コードの位置と姿勢とを検出するためのサーチ領域とは別個に、二次元コードの特徴に関する設定項目の設定パラメータを抽出するチューニング領域の指定を、一の二次元コードを囲むように受け付ける(ステップS903)。主制御部21は、二次元コードの特徴に関する設定項目の設定パラメータの入力を部分的に受け付ける(ステップS904)。二次元コードの特徴に関する設定項目の設定パラメータのうち、既知の設定パラメータのみの入力を受け付けることにより、入力を受け付けた設定パラメータによっては読み取り対象となる二次元コードのコード種別が何であるのか判断することができ、あるいは未知の設定パラメータの抽出を容易にすることができる。   The main control unit 21 sets setting parameters of setting items related to the characteristics of the two-dimensional code separately from the search area for detecting the position and orientation of the two-dimensional code on the image including at least one two-dimensional code. The specification of the tuning area to be extracted is received so as to surround one two-dimensional code (step S903). The main control unit 21 partially receives input of setting parameters of setting items relating to the characteristics of the two-dimensional code (step S904). By accepting input of only the known setting parameters among the setting parameters of the setting items related to the characteristics of the two-dimensional code, it is determined what the code type of the two-dimensional code to be read is, depending on the setting parameters accepted. Or it can facilitate the extraction of unknown configuration parameters.

主制御部21は、指定を受け付けたチューニング領域内で二次元コードを検出する(ステップS905)。主制御部21は、二次元コードを検出することができたか否かを判断する(ステップS906)。   The main control unit 21 detects a two-dimensional code in the tuning region that has received the designation (step S905). The main control unit 21 determines whether or not the two-dimensional code has been detected (step S906).

主制御部21が、二次元コードを検出することができたと判断した場合(ステップS906:YES)、主制御部21は、検出した二次元コードを正常にデコードすることができるか否かを判断する(ステップS907)。主制御部21が、正常にデコードすることができると判断した場合(ステップS907:YES)、主制御部21は、入力を受け付けた設定パラメータを使用して、検出した二次元コードの、抽出対象である設定項目の設定パラメータを抽出する(ステップS908)。抽出した設定パラメータは、記憶装置23の特徴パラメータ記憶部231に記憶される。これにより、二次元コードの内容を正しく読み取ることができる。   When the main control unit 21 determines that the two-dimensional code can be detected (step S906: YES), the main control unit 21 determines whether the detected two-dimensional code can be normally decoded. (Step S907). When the main control unit 21 determines that it can be normally decoded (step S907: YES), the main control unit 21 uses the setting parameter that has received the input to extract the detected two-dimensional code. The setting parameter of the setting item is extracted (step S908). The extracted setting parameters are stored in the feature parameter storage unit 231 of the storage device 23. Thereby, the contents of the two-dimensional code can be read correctly.

主制御部21が、二次元コードを検出することができなかったと判断した場合(ステップS906:NO)、又は正常にデコードすることができないと判断した場合(ステップS907:NO)、主制御部21は、チューニング処理に失敗した旨を示すメッセージをコンソール4の表示装置401に表示する(ステップS909)。   When the main control unit 21 determines that the two-dimensional code cannot be detected (step S906: NO), or when the main control unit 21 determines that it cannot be normally decoded (step S907: NO), the main control unit 21 Displays a message indicating that the tuning process has failed on the display device 401 of the console 4 (step S909).

以上のように本実施の形態1によれば、一の二次元コードを囲むようにチューニング領域の指定を受け付けることにより、二次元コードを検出するまでの時間を短縮することができ、チューニング領域に一の二次元コードを含ませることにより、チューニング処理の対象となる二次元コードを確実に特定することが可能となる。また、サーチ領域とは別個にチューニング領域の指定を受け付けることにより、二次元コードを検出するまでの時間を短縮することができる。   As described above, according to the first embodiment, by accepting the designation of the tuning area so as to surround one two-dimensional code, the time until the two-dimensional code is detected can be shortened. By including one two-dimensional code, it is possible to reliably specify the two-dimensional code to be subjected to the tuning process. In addition, by receiving the designation of the tuning area separately from the search area, the time until the two-dimensional code is detected can be shortened.

なお、二次元コードに固有のシンボルを検出する処理の処理速度を早めるために、カメラ3で撮像した画像を縮小した画像を用いてシンボルを検出しても良い。ただし、縮小した画像(縮小画像)の解像度は低くなるので、二次元コードに固有のファインダーパターンを検出するためには画像を縮小する比率に限界が生じる。   Note that the symbol may be detected using an image obtained by reducing the image captured by the camera 3 in order to increase the processing speed of the process for detecting the symbol specific to the two-dimensional code. However, since the resolution of the reduced image (reduced image) is lowered, there is a limit to the ratio of reducing the image in order to detect a finder pattern unique to the two-dimensional code.

通常、チューニング領域は、一の二次元コードを囲み、余白領域が可能な限り少なくなるように指定する。したがって、例えばDMコードの場合はシンボルサイズ、QRコードの場合はバージョンが既知の場合、指定を受け付けたチューニング領域の大きさとの比率から最大の縮小度を算出することができる。   Normally, the tuning area is specified so as to enclose one two-dimensional code and to minimize the margin area. Therefore, for example, in the case of a DM code, when the symbol size is known, and in the case of a QR code, when the version is known, the maximum reduction degree can be calculated from the ratio to the size of the tuning area that has received the designation.

そこで、本実施の形態1では、チューニング領域の大きさに基づいて二次元コードに固有のファインダーパターンを検出することが可能な最小の大きさまでチューニング領域内の画像を縮小する比率(最大の縮小度)を算出し、算出した比率に応じて縮小した縮小画像を用いて二次元コードを検出する。二次元コードに固有のファインダーパターンを検出することが可能な最小の大きさは、二次元コードのセルの大きさ(あるいはPPC。一次元コードである場合には、最も細いバー又はスペース等の間隔)に依存する。   Therefore, in the first embodiment, the ratio of reducing the image in the tuning area to the minimum size that can detect the finder pattern unique to the two-dimensional code based on the size of the tuning area (the maximum reduction degree). ) And a two-dimensional code is detected using a reduced image reduced according to the calculated ratio. The minimum size at which a finder pattern specific to a two-dimensional code can be detected is the cell size of the two-dimensional code (or PPC. In the case of a one-dimensional code, the interval such as the narrowest bar or space) ).

例えばDMコードの場合はシンボルサイズ、QRコードの場合はバージョンが既知の場合、指定を受け付けたチューニング領域の大きさとの比率からセルの大きさを推定することができるので、チューニング領域をどこまで縮小することができるか、最大の縮小度を推定することができる。また、QRコードのバージョンが不明である場合等には、最小のバージョンであると仮定することにより、最大の縮小度を推定することができる。   For example, in the case of a DM code, if the symbol size is known, and in the case of a QR code, if the version is known, the size of the cell can be estimated from the ratio to the size of the tuning region that has received the designation. Or the maximum reduction can be estimated. Further, when the QR code version is unknown, the maximum reduction degree can be estimated by assuming that the QR code version is the minimum version.

推定した最大の縮小度に基づいてチューニング領域内の画像、すなわち二次元コードの画像を縮小し、縮小した画像から二次元コードを検出する。これにより、二次元コードに固有のファインダーパターンの検出に縮小画像を用いることができるので、二次元コード検出処理の演算処理負荷を大きく軽減することができる。   Based on the estimated maximum degree of reduction, the image in the tuning area, that is, the image of the two-dimensional code is reduced, and the two-dimensional code is detected from the reduced image. As a result, the reduced image can be used for the detection of the finder pattern specific to the two-dimensional code, so that the processing load of the two-dimensional code detection process can be greatly reduced.

また、最大の縮小度で縮小した縮小画像から段階的な縮小画像を準備しておき、まず最大の縮小度で縮小した縮小画像を用いてシンボルの検出処理を実行する。正常に検出することができた場合は、引き続きデコード処理を実行する。デコード処理が正常に終了した場合は、縮小画像に対するシンボルの検出処理及びデコード処理の演算処理負荷は大きく軽減されているので、処理時間も大きく短縮することができる。   A stepwise reduced image is prepared from a reduced image reduced at the maximum reduction degree, and symbol detection processing is first executed using the reduced image reduced at the maximum reduction degree. If it can be detected normally, the decoding process is continued. When the decoding process is normally completed, the calculation processing load of the symbol detection process and the decoding process for the reduced image is greatly reduced, so that the processing time can be greatly reduced.

また、デコード処理が異常終了した場合、順次縮小度が小さい縮小画像を用いてシンボルの検出処理及びデコード処理を同様に実行することで、場合によっては、縮小前の画像を用いたシンボルの検出処理及びデコード処理の処理時間よりも処理時間が短くなる場合も生じる。これは、縮小画像に対するシンボルの検出処理及びデコード処理の演算処理負荷が大きく軽減されるからである。   In addition, when the decoding process ends abnormally, the symbol detection process and the decoding process are executed in the same manner using the reduced images with the sequentially small reduction degrees. In some cases, the symbol detection process using the image before the reduction is performed. In some cases, the processing time is shorter than the processing time of the decoding process. This is because the calculation processing load of symbol detection processing and decoding processing on the reduced image is greatly reduced.

(実施の形態2)
図10は、本発明の実施の形態2に係るバーコードシンボル読取装置1の構成を模式的に示すブロック図である。図10に示すように本実施の形態2に係るバーコードシンボル読取装置1は、画像処理装置2、カメラ3、PLC6、PC7で構成されている。
(Embodiment 2)
FIG. 10 is a block diagram schematically showing the configuration of the bar code symbol reading apparatus 1 according to the second embodiment of the present invention. As shown in FIG. 10, the barcode symbol reading apparatus 1 according to the second embodiment includes an image processing apparatus 2, a camera 3, a PLC 6, and a PC 7.

画像処理装置2、カメラ3の構成は実施の形態1と同様であることから、同一の符号を付することにより詳細な説明は省略する。   Since the configurations of the image processing apparatus 2 and the camera 3 are the same as those in the first embodiment, detailed description thereof will be omitted by attaching the same reference numerals.

PC7は、少なくともCPU(中央演算装置)71、メモリ72、記憶装置73、ビデオインタフェース74、入出力インタフェース75、可搬型ディスクドライブ76、通信インタフェース77及び上述したハードウェアを接続する内部バス78で構成されている。CPU71は、内部バス78を介してPC7の上述したようなハードウェア各部と接続されており、上述したハードウェア各部の動作を制御するとともに、記憶装置73に記憶されているコンピュータプログラム101に従って、種々のソフトウェア的機能を実行する。メモリ72は、SRAM、SDRAM等の揮発性メモリで構成され、コンピュータプログラム101の実行時にロードモジュールが展開され、コンピュータプログラム101の実行時に発生する一時的なデータ等を記憶する。   The PC 7 includes at least a CPU (central processing unit) 71, a memory 72, a storage device 73, a video interface 74, an input / output interface 75, a portable disk drive 76, a communication interface 77, and an internal bus 78 for connecting the hardware described above. Has been. The CPU 71 is connected to the above-described hardware units of the PC 7 via the internal bus 78, controls the operation of the above-described hardware units, and performs various operations according to the computer program 101 stored in the storage device 73. Execute the software function of. The memory 72 is composed of a volatile memory such as SRAM or SDRAM, and a load module is expanded when the computer program 101 is executed, and stores temporary data generated when the computer program 101 is executed.

記憶装置73は、内蔵される固定型記憶装置(ハードディスク、フラッシュメモリ)、ROM等で構成されている。記憶装置73に記憶されているコンピュータプログラム101は、プログラム及びデータ等の情報を記録したDVD、CD−ROM、フラッシュメモリ等の可搬型記録媒体91から、可搬型ディスクドライブ76によりダウンロードされ、実行時には記憶装置73からメモリ72へ展開して実行される。もちろん、通信インタフェース77を介して外部のコンピュータからダウンロードされたコンピュータプログラムであっても良い。   The storage device 73 is configured by a built-in fixed storage device (hard disk, flash memory), ROM, or the like. The computer program 101 stored in the storage device 73 is downloaded by a portable disk drive 76 from a portable recording medium 91 such as a DVD, CD-ROM, or flash memory in which information such as programs and data is recorded. The program is expanded from the storage device 73 to the memory 72 and executed. Of course, a computer program downloaded from an external computer via the communication interface 77 may be used.

通信インタフェース77は内部バス78に接続されており、インターネット、LAN、WAN等の外部のネットワークに接続されることにより、画像処理装置2等とデータ送受信を行うことが可能となっている。   The communication interface 77 is connected to an internal bus 78, and is connected to an external network such as the Internet, a LAN, or a WAN, so that data can be transmitted / received to / from the image processing apparatus 2 or the like.

ビデオインタフェース74は、内部バス78に接続されており、表示装置81に接続されることにより、所望の画像を表示する。入出力インタフェース75は、内部バス78に接続されており、キーボード、マウス等の入力装置82を介してデータの入力を受け付ける。   The video interface 74 is connected to the internal bus 78 and displays a desired image by being connected to the display device 81. The input / output interface 75 is connected to the internal bus 78 and accepts data input via an input device 82 such as a keyboard or a mouse.

図11は、本発明の実施の形態2に係るバーコードシンボル読取装置1の一構成例を示す機能ブロック図である。図11において、本実施の形態2に係るバーコードシンボル読取装置1は、カメラ3と、画像処理装置2と、PC7とから構成される。   FIG. 11 is a functional block diagram showing a configuration example of the barcode symbol reading apparatus 1 according to Embodiment 2 of the present invention. In FIG. 11, the barcode symbol reading device 1 according to the second embodiment includes a camera 3, an image processing device 2, and a PC 7.

画像取得手段(取得手段)701は、少なくとも一の二次元コードを含む画像を、画像処理装置2から取得する。画像表示手段(表示手段)702は、取得した画像を表示装置81に表示する。表示された画像全体を、二次元コードの位置と姿勢とを検出(サーチ)するためのサーチ領域としても良いし、図示しないサーチ領域指定受付手段にてサーチ領域の指定を受け付けても良い。   An image acquisition unit (acquisition unit) 701 acquires an image including at least one two-dimensional code from the image processing apparatus 2. The image display unit (display unit) 702 displays the acquired image on the display device 81. The entire displayed image may be used as a search area for detecting (searching) the position and orientation of the two-dimensional code, or a search area designation accepting unit (not shown) may accept designation of the search area.

領域指定受付手段703は、少なくとも一の二次元コードを含む画像上で、二次元コードの特徴に関する設定項目の設定パラメータを抽出するチューニング領域の指定を、一の二次元コードを囲むような位置にて受け付ける。チューニング領域の指定を受け付けることにより、不要な領域を含めてチューニング処理を実行する必要がなく、チューニング処理の演算処理負荷を軽減することができる。   The region designation receiving means 703 designates the tuning region for extracting the setting parameter of the setting item relating to the feature of the two-dimensional code on the image including at least one two-dimensional code at a position surrounding the one two-dimensional code. And accept. By accepting the specification of the tuning area, it is not necessary to execute the tuning process including unnecessary areas, and the calculation processing load of the tuning process can be reduced.

また、サーチ領域とは別個にチューニング領域の指定を受け付けることが好ましい。チューニング領域を二次元コードの近傍に限定することができ、二次元コードを検出するまでの時間を短縮することができるからである。   Further, it is preferable to accept the specification of the tuning area separately from the search area. This is because the tuning region can be limited to the vicinity of the two-dimensional code, and the time until the two-dimensional code is detected can be shortened.

設定パラメータ入力受付手段704は、二次元コードの特徴に関する設定項目の設定パラメータの入力を部分的に受け付ける。二次元コードの特徴に関する設定項目の設定パラメータのうち、既知の設定パラメータのみの入力を受け付けることにより、入力を受け付けた設定パラメータによっては読み取り対象となる二次元コードのコード種別が何であるのか判断することができ、あるいは未知の設定パラメータの抽出を容易にすることができる。   The setting parameter input receiving unit 704 partially receives input of setting parameters for setting items related to the characteristics of the two-dimensional code. By accepting input of only the known setting parameters among the setting parameters of the setting items related to the characteristics of the two-dimensional code, it is determined what the code type of the two-dimensional code to be read is, depending on the setting parameters accepted. Or it can facilitate the extraction of unknown configuration parameters.

二次元コード検出手段(検出手段)705は、領域指定受付手段703にて指定を受け付けたチューニング領域内で二次元コードを検出する。従来は、二次元コードを検出(サーチ)するためのサーチ領域内で二次元コードを検出していた。本実施の形態2では、指定を受け付けたチューニング領域にて二次元コードに固有のシンボルを検出することにより、チューニング領域内の二次元コードを検出する。   A two-dimensional code detection unit (detection unit) 705 detects a two-dimensional code in the tuning region that has been designated by the region designation acceptance unit 703. Conventionally, a two-dimensional code is detected within a search area for detecting (searching) a two-dimensional code. In the second embodiment, the two-dimensional code in the tuning area is detected by detecting a symbol unique to the two-dimensional code in the tuning area that has received the designation.

デコード判断手段(判断手段)706は、検出した二次元コードを正常にデコードすることができるか否かを判断する。正常にデコードすることができるか否かを判断する方法は、特に限定されるものではない。   A decoding determination unit (determination unit) 706 determines whether or not the detected two-dimensional code can be normally decoded. The method for determining whether or not decoding can be performed normally is not particularly limited.

正常にデコードすることができると判断した場合、設定パラメータ抽出手段(抽出手段)707は、入力を受け付けた設定パラメータを使用して、検出した二次元コードの、抽出対象である設定項目の設定パラメータを抽出する。抽出した設定パラメータは、画像処理装置2の設定パラメータ取得手段208にて受信され、画像処理装置2の記憶装置23の特徴パラメータ記憶部231に記憶される。これにより、二次元コードの内容を正しく読み取ることができる。   When it is determined that the decoding can be normally performed, the setting parameter extraction unit (extraction unit) 707 uses the setting parameter that has received the input to set the setting parameter of the setting item that is the extraction target of the detected two-dimensional code. To extract. The extracted setting parameters are received by the setting parameter acquisition unit 208 of the image processing apparatus 2 and stored in the feature parameter storage unit 231 of the storage device 23 of the image processing apparatus 2. Thereby, the contents of the two-dimensional code can be read correctly.

正常にデコードすることができないと判断した場合、二次元コードの読み取りに失敗した旨を示す情報(メッセージ等)を表示装置81に表示することが好ましい。カメラ3との相対位置を変更して二次元コードを撮像しなおす、チューニング領域の指定を改めて受け付ける等、再度試行することができるからである。   When it is determined that decoding cannot be performed normally, it is preferable to display information (message or the like) indicating that reading of the two-dimensional code has failed on the display device 81. This is because it is possible to try again, such as changing the position relative to the camera 3 and re-imaging the two-dimensional code, or accepting the specification of the tuning area again.

図12は、本発明の実施の形態2に係るPC7のCPU71の二次元コード読み取り処理の手順を示すフローチャートである。PC7のCPU71は、画像処理装置2から少なくとも一の二次元コードを含む画像を取得する(ステップS1201)。   FIG. 12 is a flowchart showing the procedure of the two-dimensional code reading process of the CPU 71 of the PC 7 according to the second embodiment of the present invention. The CPU 71 of the PC 7 acquires an image including at least one two-dimensional code from the image processing apparatus 2 (step S1201).

CPU71は、取得した画像を表示装置81に表示する(ステップS1202)。表示された画像全体を、二次元コードの位置と姿勢とを検出(サーチ)するためのサーチ領域としても良いし、図示しないサーチ領域指定受付手段にてサーチ領域の指定を受け付けても良い。   The CPU 71 displays the acquired image on the display device 81 (step S1202). The entire displayed image may be used as a search area for detecting (searching) the position and orientation of the two-dimensional code, or a search area designation accepting unit (not shown) may accept designation of the search area.

CPU71は、少なくとも一の二次元コードを含む画像上で、二次元コードの位置と姿勢とを検出するためのサーチ領域とは別個に、二次元コードの特徴に関する設定項目の設定パラメータを抽出するチューニング領域の指定を、一の二次元コードを囲むように受け付ける(ステップS1203)。CPU71は、二次元コードの特徴に関する設定項目の設定パラメータの入力を部分的に受け付ける(ステップS1204)。二次元コードの特徴に関する設定項目の設定パラメータのうち、既知の設定パラメータのみの入力を受け付けることにより、入力を受け付けた設定パラメータによっては読み取り対象となる二次元コードのコード種別が何であるのか判断することができ、あるいは未知の設定パラメータの抽出を容易にすることができる。   Tuning for extracting setting parameters of setting items relating to features of a two-dimensional code separately from a search region for detecting the position and orientation of the two-dimensional code on an image including at least one two-dimensional code The designation of the area is accepted so as to surround one two-dimensional code (step S1203). The CPU 71 partially accepts input of setting parameters of setting items relating to the characteristics of the two-dimensional code (step S1204). By accepting input of only the known setting parameters among the setting parameters of the setting items related to the characteristics of the two-dimensional code, it is determined what the code type of the two-dimensional code to be read is, depending on the setting parameters accepted. Or it can facilitate the extraction of unknown configuration parameters.

CPU71は、指定を受け付けたチューニング領域内で二次元コードを検出する(ステップS1205)。CPU71は、二次元コードを検出することができたか否かを判断する(ステップS1206)。   The CPU 71 detects a two-dimensional code within the tuning region that has received the designation (step S1205). The CPU 71 determines whether or not the two-dimensional code has been detected (step S1206).

CPU71が、二次元コードを検出することができたと判断した場合(ステップS1206:YES)、CPU71は、検出した二次元コードを正常にデコードすることができるか否かを判断する(ステップS1207)。CPU71が、正常にデコードすることができると判断した場合(ステップS1207:YES)、CPU71は、入力を受け付けた設定パラメータを使用して、検出した二次元コードの、抽出対象である設定項目の設定パラメータを抽出する(ステップS1208)。CPU71は、抽出した設定パラメータを画像処理装置2へ送信し(ステップS1209)、送信された設定パラメータは、画像処理装置2の記憶装置23の特徴パラメータ記憶部231に記憶される。これにより、二次元コードの内容を正しく読み取ることができる。   When the CPU 71 determines that the two-dimensional code can be detected (step S1206: YES), the CPU 71 determines whether or not the detected two-dimensional code can be normally decoded (step S1207). When the CPU 71 determines that the decoding can be normally performed (step S1207: YES), the CPU 71 sets the setting item that is the extraction target of the detected two-dimensional code by using the setting parameter that has received the input. A parameter is extracted (step S1208). The CPU 71 transmits the extracted setting parameters to the image processing apparatus 2 (step S1209), and the transmitted setting parameters are stored in the feature parameter storage unit 231 of the storage device 23 of the image processing apparatus 2. Thereby, the contents of the two-dimensional code can be read correctly.

CPU71が、二次元コードを検出することができなかったと判断した場合(ステップS1206:NO)、又は正常にデコードすることができないと判断した場合(ステップS1207:NO)、CPU71は、チューニング処理に失敗した旨を示すメッセージを表示装置81に表示する(ステップS1210)。   When the CPU 71 determines that the two-dimensional code cannot be detected (step S1206: NO), or when it is determined that the two-dimensional code cannot be normally decoded (step S1207: NO), the CPU 71 fails in the tuning process. A message indicating that it has been displayed is displayed on the display device 81 (step S1210).

以上のように本実施の形態2によれば、一の二次元コードを囲むようにチューニング領域の指定を受け付けることにより、二次元コードを検出するまでの時間を短縮することができ、チューニング領域に一の二次元コードを含ませることにより、チューニング処理の対象となる二次元コードを確実に特定することが可能となる。また、PC7が二次元コードの読み取り処理機能を有することから、画像処理装置2と接続されていない場合であっても、独立してチューニング領域の指定を受け付けることができ、設定パラメータの入力を受け付けることができる。   As described above, according to the second embodiment, by accepting the designation of the tuning area so as to surround one two-dimensional code, the time until the two-dimensional code is detected can be shortened. By including one two-dimensional code, it is possible to reliably specify the two-dimensional code to be subjected to the tuning process. Further, since the PC 7 has a two-dimensional code reading processing function, it is possible to accept the designation of the tuning area independently even when not connected to the image processing apparatus 2 and accept the input of the setting parameters. be able to.

なお、チューニング処理機能は、画像処理装置2が有していても良い。図13は、本発明の実施の形態2に係るバーコードシンボル読取装置1の、チューニング処理を画像処理装置2で実行する場合の、一構成例を示す機能ブロック図である。   The tuning processing function may be included in the image processing apparatus 2. FIG. 13 is a functional block diagram showing an example of the configuration of the barcode symbol reader 1 according to Embodiment 2 of the present invention when tuning processing is executed by the image processing device 2.

画像取得手段(取得手段)701は、少なくとも一の二次元コードを含む画像を、画像処理装置2から取得する。画像表示手段(表示手段)702は、取得した画像を表示装置81に表示する。表示された画像全体を、二次元コードの位置と姿勢とを検出(サーチ)するためのサーチ領域としても良いし、図示しないサーチ領域指定受付手段にてサーチ領域の指定を受け付けても良い。   An image acquisition unit (acquisition unit) 701 acquires an image including at least one two-dimensional code from the image processing apparatus 2. The image display unit (display unit) 702 displays the acquired image on the display device 81. The entire displayed image may be used as a search area for detecting (searching) the position and orientation of the two-dimensional code, or a search area designation accepting unit (not shown) may accept designation of the search area.

領域指定受付手段703は、少なくとも一の二次元コードを含む画像上で、二次元コードの特徴に関する設定項目の設定パラメータを抽出するチューニング領域の指定を、一の二次元コードを囲むような位置にて受け付ける。チューニング領域の指定を受け付けることにより、不要な領域を含めてチューニング処理を実行する必要がなく、チューニング処理の演算処理負荷を軽減することができる。   The region designation receiving means 703 designates the tuning region for extracting the setting parameter of the setting item relating to the feature of the two-dimensional code on the image including at least one two-dimensional code at a position surrounding the one two-dimensional code. And accept. By accepting the specification of the tuning area, it is not necessary to execute the tuning process including unnecessary areas, and the calculation processing load of the tuning process can be reduced.

また、二次元コードの位置と姿勢とを検出するためのサーチ領域とは別個にチューニング領域の指定を受け付けることが好ましい。チューニング領域を二次元コードの近傍に限定することができ、二次元コードを検出するまでの時間を短縮することができるからである。   In addition, it is preferable to accept the designation of the tuning area separately from the search area for detecting the position and orientation of the two-dimensional code. This is because the tuning region can be limited to the vicinity of the two-dimensional code, and the time until the two-dimensional code is detected can be shortened.

設定パラメータ入力受付手段704は、二次元コードの特徴に関する設定項目の設定パラメータの入力を部分的に受け付ける。二次元コードの特徴に関する設定項目の設定パラメータのうち、既知の設定パラメータのみの入力を受け付けることにより、入力を受け付けた設定パラメータによっては読み取り対象となる二次元コードのコード種別が何であるのか判断することができ、あるいは未知の設定パラメータの抽出を容易にすることができる。   The setting parameter input receiving unit 704 partially receives input of setting parameters for setting items related to the characteristics of the two-dimensional code. By accepting input of only the known setting parameters among the setting parameters of the setting items related to the characteristics of the two-dimensional code, it is determined what the code type of the two-dimensional code to be read is, depending on the setting parameters accepted. Or it can facilitate the extraction of unknown configuration parameters.

設定情報送信手段708は、領域指定受付手段703で指定を受け付けたチューニング領域に関する情報、設定パラメータ入力受付手段704で入力を受け付けた情報を含む設定情報を、画像処理装置2へ送信する。   The setting information transmitting unit 708 transmits to the image processing apparatus 2 setting information including information related to the tuning area received by the area specification receiving unit 703 and information received by the setting parameter input receiving unit 704.

設定情報を受信した画像処理装置2の二次元コード検出手段(検出手段)205、デコード判断手段(判断手段)206、及び設定パラメータ抽出手段(抽出手段)207は、実施の形態1の図9のステップS905乃至ステップS909の処理を実行する。   The two-dimensional code detection unit (detection unit) 205, the decode determination unit (determination unit) 206, and the setting parameter extraction unit (extraction unit) 207 of the image processing apparatus 2 that has received the setting information are the same as those in FIG. Steps S905 to S909 are executed.

このようにすることで、演算処理負荷が大きいチューニング処理をPC7にて実行する必要がないことから、PC7にて稼働するコンピュータプログラム101が簡易で済み、コンピュータプログラム101自体を安価に提供することができる。   By doing in this way, it is not necessary to execute tuning processing with a large calculation processing load on the PC 7, so that the computer program 101 operating on the PC 7 can be simplified, and the computer program 101 itself can be provided at low cost. it can.

なお、本発明は上記実施例に限定されるものではなく、本発明の趣旨の範囲内であれば多種の変更、改良等が可能である。例えば「自動チューニング」ボタンの選択を受け付けた時点で二次元コードの検出処理、デコード処理を開始しているが、チューニング領域の指定を受け付けた時点で開始しても良いし、設定パラメータの入力を受け付ける都度、開始しても良い。   The present invention is not limited to the above-described embodiments, and various changes and improvements can be made within the scope of the present invention. For example, the two-dimensional code detection process and the decoding process are started when the selection of the “automatic tuning” button is received, but may be started when the specification of the tuning area is received, or the setting parameter input You may start each time you accept.

1 バーコードシンボル読取装置
2 画像処理装置
3 カメラ(撮像手段)
4 コンソール
5 二次元コード
6 PLC
7 PC
21 主制御部
22、72 メモリ
23、73 記憶装置
24、74 ビデオインタフェース
25、75 入出力インタフェース
26、76 可搬型ディスクドライブ
27、77 通信インタフェース
28、78 内部バス
71 CPU
90、91 可搬型記録媒体
100、101 コンピュータプログラム
1 Barcode symbol reader 2 Image processing device 3 Camera (imaging means)
4 Console 5 Two-dimensional code 6 PLC
7 PC
21 Main control unit 22, 72 Memory 23, 73 Storage device 24, 74 Video interface 25, 75 Input / output interface 26, 76 Portable disk drive 27, 77 Communication interface 28, 78 Internal bus 71 CPU
90, 91 Portable recording medium 100, 101 Computer program

Claims (10)

読み取り対象となる一次元コード又は二次元コードの特徴に関する特徴パラメータを画像から読み取り、一次元コード又は二次元コードを検出してデコードするバーコードシンボル読取装置において、
少なくとも一の一次元コード又は二次元コードを含む画像を取得する取得手段と、
取得した画像を表示する表示手段と、
少なくとも一の一次元コード又は二次元コードを含む画像上で、前記一次元コード又は前記二次元コードの特徴に関する設定項目の設定パラメータを抽出するチューニング領域の指定を、一の一次元コード又は二次元コードを囲むように受け付ける領域指定受付手段と、
前記設定パラメータの入力を部分的に受け付ける設定パラメータ入力受付手段と、
指定を受け付けたチューニング領域内で前記一次元コード又は前記二次元コードを検出する検出手段と、
検出した一次元コード又は二次元コードを正常にデコードすることができるか否かを判断する判断手段と、
該判断手段が正常にデコードすることができると判断した場合、前記一次元コード又は前記二次元コードの設定パラメータを抽出する抽出手段と
を備えることを特徴とするバーコードシンボル読取装置。
In a barcode symbol reader that reads a feature parameter relating to a feature of a one-dimensional code or a two-dimensional code to be read from an image, detects and decodes the one-dimensional code or the two-dimensional code,
An acquisition means for acquiring an image including at least one one-dimensional code or two-dimensional code;
Display means for displaying the acquired image;
On the image including at least one one-dimensional code or two-dimensional code, a tuning area for extracting a setting parameter of a setting item related to the feature of the one-dimensional code or the two-dimensional code is designated as one one-dimensional code or two-dimensional code. An area designation receiving means for receiving the code so as to surround the code;
Setting parameter input receiving means for partially receiving the input of the setting parameter;
Detecting means for detecting the one-dimensional code or the two-dimensional code in a tuning region that has received a designation;
Determining means for determining whether or not the detected one-dimensional code or two-dimensional code can be normally decoded;
A bar code symbol reading apparatus comprising: an extracting unit that extracts a setting parameter of the one-dimensional code or the two-dimensional code when the determining unit determines that the decoding can be normally performed.
少なくとも一の一次元コード又は二次元コードを含む画像上で、前記一次元コード又は前記二次元コードの位置と姿勢とを検出するサーチ領域の指定を受け付けるサーチ領域指定受付手段を備え、
前記領域指定受付手段は、前記サーチ領域とは別個に、前記チューニング領域の指定を受け付けることを特徴とする請求項1記載のバーコードシンボル読取装置。
A search area designation receiving means for receiving designation of a search area for detecting the position and orientation of the one-dimensional code or the two-dimensional code on an image including at least one one-dimensional code or two-dimensional code;
2. The bar code symbol reading apparatus according to claim 1, wherein the area designation accepting unit accepts designation of the tuning area separately from the search area.
前記領域指定受付手段は、
指定を受け付けたチューニング領域において、前記一次元コード又は前記二次元コードに固有のシンボルを検出することができるか否かを判断するシンボル判断手段を備え、
該シンボル判断手段で前記シンボルを検出することができないと判断した場合、再度前記チューニング領域の指定を受け付けるようにしてあることを特徴とする請求項1又は2記載のバーコードシンボル読取装置。
The area designation receiving means
In the tuning region that has received the designation, the symbol determination means for determining whether or not a symbol unique to the one-dimensional code or the two-dimensional code can be detected,
3. The bar code symbol reading apparatus according to claim 1, wherein when the symbol judging means judges that the symbol cannot be detected, the designation of the tuning area is accepted again.
前記設定項目は、少なくとも前記二次元コードに固有のシンボルを構成するセルの大きさ、二次元コードのコード種別、コントラスト、印字の色種別、ミラー反転、基準角度、撮像条件、ピッチ角度、画像フィルタの種別のいずれかを含むことを特徴とする請求項1乃至3のいずれか一項に記載のバーコードシンボル読取装置。   The setting items include at least the size of a cell constituting a symbol unique to the two-dimensional code, the code type of the two-dimensional code, contrast, the color type of printing, mirror inversion, reference angle, imaging condition, pitch angle, and image filter 4. The bar code symbol reading device according to claim 1, wherein the bar code symbol reading device includes any one of the following types. 前記設定パラメータ入力受付手段は、各設定項目が前記抽出手段での設定パラメータの抽出対象であるか否かに関する情報の入力も受け付けるようにしてあることを特徴とする請求項1乃至4のいずれか一項に記載のバーコードシンボル読取装置。   5. The setting parameter input accepting unit is configured to accept an input of information regarding whether or not each setting item is a setting parameter extraction target in the extracting unit. The barcode symbol reader according to one item. 前記抽出手段は、前記設定項目が設定パラメータの抽出対象ではない場合、設定パラメータを更新することなく、入力を受け付けた設定パラメータを使用し、前記設定項目が設定パラメータの抽出対象である場合、設定パラメータを抽出するようにしてあることを特徴とする請求項5記載のバーコードシンボル読取装置。   If the setting item is not a setting parameter extraction target, the extraction unit uses the setting parameter that has received an input without updating the setting parameter, and if the setting item is a setting parameter extraction target, 6. The bar code symbol reading apparatus according to claim 5, wherein a parameter is extracted. 前記設定パラメータ入力受付手段は、
前記設定パラメータとして、前記設定パラメータの指定がない旨を示す入力を受け付けることを特徴とする請求項1乃至6のいずれか一項に記載のバーコードシンボル読取装置。
The setting parameter input receiving means
The barcode symbol reading device according to claim 1, wherein an input indicating that the setting parameter is not specified is received as the setting parameter.
前記チューニング領域の大きさに基づいて、前記一次元コード又は前記二次元コードを検出することが可能な最小の大きさまで前記チューニング領域内の画像を縮小する比率を算出し、算出した比率に応じて縮小した縮小画像を用いて前記一次元コード又は前記二次元コードを検出するようにしてあることを特徴とする請求項1乃至7のいずれか一項に記載のバーコードシンボル読取装置。   Based on the size of the tuning area, calculate a ratio for reducing the image in the tuning area to a minimum size capable of detecting the one-dimensional code or the two-dimensional code, and according to the calculated ratio 8. The bar code symbol reading apparatus according to claim 1, wherein the one-dimensional code or the two-dimensional code is detected using a reduced reduced image. 読み取り対象となる一次元コード又は二次元コードの特徴に関する特徴パラメータを画像から読み取り、一次元コード又は二次元コードを検出してデコードするバーコードシンボル読取装置で実行することが可能なバーコードシンボル読取方法において、
少なくとも一の一次元コード又は二次元コードを含む画像を取得するステップと、
取得した画像を表示するステップと、
少なくとも一の一次元コード又は二次元コードを含む画像上で、前記一次元コード又は前記二次元コードの特徴に関する設定項目の設定パラメータを抽出するチューニング領域の指定を、一の一次元コード又は二次元コードを囲むように受け付けるステップと、
前記設定パラメータの入力を部分的に受け付けるステップと、
指定を受け付けたチューニング領域内で前記一次元コード又は前記二次元コードを検出するステップと、
検出した一次元コード又は二次元コードを正常にデコードすることができるか否かを判断するステップと、
正常にデコードすることができると判断した場合、前記一次元コード又は前記二次元コードの設定パラメータを抽出するステップと
を含むことを特徴とするバーコードシンボル読取方法。
Bar code symbol reading that can be executed by a bar code symbol reading device that reads characteristic parameters related to the characteristics of a one-dimensional code or two-dimensional code to be read from an image, and detects and decodes the one-dimensional code or two-dimensional code. In the method
Obtaining an image comprising at least one one-dimensional code or two-dimensional code;
Displaying the acquired image; and
On the image including at least one one-dimensional code or two-dimensional code, a tuning area for extracting a setting parameter of a setting item related to the feature of the one-dimensional code or the two-dimensional code is designated as one one-dimensional code or two-dimensional code. A step of accepting to enclose the code,
Partially accepting input of the setting parameters;
Detecting the one-dimensional code or the two-dimensional code in a tuning region that has received a designation;
Determining whether the detected one-dimensional code or two-dimensional code can be normally decoded; and
Extracting the setting parameters of the one-dimensional code or the two-dimensional code when it is determined that the decoding can be normally performed.
読み取り対象となる一次元コード又は二次元コードの特徴に関する特徴パラメータを画像から読み取り、一次元コード又は二次元コードを検出してデコードするバーコードシンボル読取装置で実行することが可能なコンピュータプログラムにおいて、
前記バーコードシンボル読取装置を、
少なくとも一の一次元コード又は二次元コードを含む画像を取得する取得手段、
取得した画像を表示する表示手段、
少なくとも一の一次元コード又は二次元コードを含む画像上で、前記一次元コード又は前記二次元コードの特徴に関する設定項目の設定パラメータを抽出するチューニング領域の指定を、一の一次元コード又は二次元コードを囲むように受け付ける領域指定受付手段、
前記設定パラメータの入力を部分的に受け付ける設定パラメータ入力受付手段、
指定を受け付けたチューニング領域内で前記一次元コード又は前記二次元コードを検出する検出手段、
検出した一次元コード又は二次元コードを正常にデコードすることができるか否かを判断する判断手段、及び
該判断手段が正常にデコードすることができると判断した場合、前記一次元コード又は前記二次元コードの設定パラメータを抽出する抽出手段
として機能させることを特徴とするコンピュータプログラム。
In a computer program that can be executed by a barcode symbol reader that reads a feature parameter related to a feature of a one-dimensional code or a two-dimensional code to be read from an image, and detects and decodes the one-dimensional code or the two-dimensional code,
The bar code symbol reader;
An acquisition means for acquiring an image including at least one one-dimensional code or two-dimensional code;
Display means for displaying the acquired image;
On the image including at least one one-dimensional code or two-dimensional code, a tuning area for extracting a setting parameter of a setting item related to the feature of the one-dimensional code or the two-dimensional code is designated as one one-dimensional code or two-dimensional code. Area designation accepting means for accepting the code so as to surround it,
Setting parameter input receiving means for partially receiving the input of the setting parameter;
Detecting means for detecting the one-dimensional code or the two-dimensional code in a tuning region that has received a designation;
Determining means for determining whether or not the detected one-dimensional code or two-dimensional code can be normally decoded; and when the determining means determines that it can be normally decoded, the one-dimensional code or the two-dimensional code A computer program which functions as an extracting means for extracting a setting parameter of a dimension code.
JP2010154407A 2010-07-07 2010-07-07 Bar code symbol reader, bar code symbol reading method, and computer program Pending JP2012018494A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010154407A JP2012018494A (en) 2010-07-07 2010-07-07 Bar code symbol reader, bar code symbol reading method, and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010154407A JP2012018494A (en) 2010-07-07 2010-07-07 Bar code symbol reader, bar code symbol reading method, and computer program

Publications (1)

Publication Number Publication Date
JP2012018494A true JP2012018494A (en) 2012-01-26

Family

ID=45603711

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010154407A Pending JP2012018494A (en) 2010-07-07 2010-07-07 Bar code symbol reader, bar code symbol reading method, and computer program

Country Status (1)

Country Link
JP (1) JP2012018494A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014127061A (en) * 2012-12-27 2014-07-07 Riso Kagaku Corp Print control device
WO2014161395A1 (en) * 2013-11-22 2014-10-09 中兴通讯股份有限公司 Parameter processing method for mobile terminal and mobile terminal
CN104408645A (en) * 2014-11-28 2015-03-11 天津联云网络技术有限公司 Data interaction system based on printed two-dimensional code
JP2019144793A (en) * 2018-02-20 2019-08-29 富士ゼロックス株式会社 Information processing device and program
JP2021002392A (en) * 2016-01-28 2021-01-07 アリババ・グループ・ホールディング・リミテッドAlibaba Group Holding Limited Method and device for initializing two-dimensional code
CN113051950A (en) * 2019-12-27 2021-06-29 华为技术有限公司 Multi-code identification method and related equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0922437A (en) * 1995-07-06 1997-01-21 Fujitsu Ltd Bar code recognition device
JPH09319815A (en) * 1996-05-28 1997-12-12 Tec Corp Code reader
JP2004053966A (en) * 2002-07-19 2004-02-19 Keyence Corp Method, device and program for setting two-dimensional code reader, and computer-readable recording medium
JP2004110670A (en) * 2002-09-20 2004-04-08 Denso Wave Inc Information code reader
JP2004213061A (en) * 2002-12-26 2004-07-29 Toshiba Corp Optical character reader and reading method of two-dimensional code
JP2007122229A (en) * 2005-10-26 2007-05-17 Casio Comput Co Ltd Code reader and program
JP2009151446A (en) * 2007-12-19 2009-07-09 Denso Wave Inc Optical information reading device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0922437A (en) * 1995-07-06 1997-01-21 Fujitsu Ltd Bar code recognition device
JPH09319815A (en) * 1996-05-28 1997-12-12 Tec Corp Code reader
JP2004053966A (en) * 2002-07-19 2004-02-19 Keyence Corp Method, device and program for setting two-dimensional code reader, and computer-readable recording medium
JP2004110670A (en) * 2002-09-20 2004-04-08 Denso Wave Inc Information code reader
JP2004213061A (en) * 2002-12-26 2004-07-29 Toshiba Corp Optical character reader and reading method of two-dimensional code
JP2007122229A (en) * 2005-10-26 2007-05-17 Casio Comput Co Ltd Code reader and program
JP2009151446A (en) * 2007-12-19 2009-07-09 Denso Wave Inc Optical information reading device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014127061A (en) * 2012-12-27 2014-07-07 Riso Kagaku Corp Print control device
WO2014161395A1 (en) * 2013-11-22 2014-10-09 中兴通讯股份有限公司 Parameter processing method for mobile terminal and mobile terminal
CN104408645A (en) * 2014-11-28 2015-03-11 天津联云网络技术有限公司 Data interaction system based on printed two-dimensional code
CN104408645B (en) * 2014-11-28 2018-04-27 天津联云网络技术有限公司 Data interaction system based on printing Quick Response Code
JP2021002392A (en) * 2016-01-28 2021-01-07 アリババ・グループ・ホールディング・リミテッドAlibaba Group Holding Limited Method and device for initializing two-dimensional code
JP2019144793A (en) * 2018-02-20 2019-08-29 富士ゼロックス株式会社 Information processing device and program
CN113051950A (en) * 2019-12-27 2021-06-29 华为技术有限公司 Multi-code identification method and related equipment
CN113051950B (en) * 2019-12-27 2023-07-18 华为技术有限公司 Multi-bar code identification method and related equipment

Similar Documents

Publication Publication Date Title
US9785815B2 (en) Imaging terminal, imaging sensor to determine document orientation based on bar code orientation and methods for operating the same
KR102514483B1 (en) Custom functional patterns for optical barcodes
US9319548B2 (en) Interactive user interface for capturing a document in an image signal
US9892300B2 (en) Two-dimensional code
JP2012018494A (en) Bar code symbol reader, bar code symbol reading method, and computer program
JP6264965B2 (en) Image processing apparatus, image processing method, and image processing program
TWI570629B (en) Dimensional code, two-dimensional code of the analytical system and the two-dimensional code of the system
JP2011513809A (en) Method and apparatus for reading information contained in bar code
JP4574503B2 (en) Image processing apparatus, image processing method, and program
KR101322953B1 (en) Image processing device, image processing method, and recording medium
JP4271097B2 (en) Automatic correction of machine readable code during image processing
JP6564136B2 (en) Image processing apparatus, image processing method, and program
JP2007122500A (en) Character recognition device, character recognition method and character data
US20190147238A1 (en) Information processing apparatus, information processing method, and storage medium
JP2007094584A (en) Method for detecting two dimensional code, detecting device, and detecting program
CN113971738A (en) Image detection method, image detection device, electronic equipment and storage medium
JP5223739B2 (en) Portable character recognition device, character recognition program, and character recognition method
JP6600090B2 (en) Image processing apparatus, image processing method, and program
JP2012015957A (en) Image processing device, image processing method and computer program
JP2007328672A (en) Two-dimensional code decoder, two-dimensional code decoding method, and program
JP2005227929A (en) Processing method for photography image of object, image display system, program and recording medium
JP7223198B1 (en) Meter reading device, meter reading method, and meter reading program
JP6815712B1 (en) Image processing system, image processing method, image processing program, image processing server, and learning model
EP4332761A2 (en) Scanning method, electronic device and processing system for multiple barcodes
JP5445056B2 (en) Two-dimensional code reading device and two-dimensional code reading method for reading data from two-dimensional code

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130409

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131008

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131022

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20140311