JP2009276947A - Code reading device and program - Google Patents

Code reading device and program Download PDF

Info

Publication number
JP2009276947A
JP2009276947A JP2008126572A JP2008126572A JP2009276947A JP 2009276947 A JP2009276947 A JP 2009276947A JP 2008126572 A JP2008126572 A JP 2008126572A JP 2008126572 A JP2008126572 A JP 2008126572A JP 2009276947 A JP2009276947 A JP 2009276947A
Authority
JP
Japan
Prior art keywords
decoding
parameter
combination
information
param
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2008126572A
Other languages
Japanese (ja)
Other versions
JP5195011B2 (en
Inventor
Toru Kitagawa
徹 北川
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2008126572A priority Critical patent/JP5195011B2/en
Publication of JP2009276947A publication Critical patent/JP2009276947A/en
Application granted granted Critical
Publication of JP5195011B2 publication Critical patent/JP5195011B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a technology for preventing a barcode read error. <P>SOLUTION: A code reading device comprises: a CPU 11 for decoding reading data output by a scanner section 16; a flash memory 17 for storing a grade of a decode parameter for each of a plurality of decode parameters to be used when decoding; a flash memory 17 for storing the combination information composed of a plurality of decode parameters; a CPU 11 for generating combination of a plurality of decode parameters; a CPU 11 for acquiring a grade of a decode parameter based on the generated combination and for computing the total grade of the decode parameter; a CPU 11 for acquiring the combination information corresponding to the generated combination and for computing the determination information for determining whether the read data is to be decoded or not based on the obtained combination information and the total grade; and a CPU 11 for controlling to execute decoding or not based on the determination information. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明はコード読取装置及びプログラムに関する The present invention relates to a code reader and a program.

従来から、バーコード又は2次元コードを示すデータコードを読取るコード読取装置(以下、バーコードリーダという)が知られている。   Conventionally, a code reading device (hereinafter referred to as a bar code reader) that reads a data code indicating a bar code or a two-dimensional code is known.

バーコードリーダにより読取られるバーコードは、黒バーと白スペースで構成され、それぞれの幅の組合せによって数値・文字が表現されている。印刷品質の良くないバーコード(以下、ダメージバーコード)は、これらの幅が規定値からかけ離れ、バーイメージの欠損、又は汚れ等によりゴミ(ノイズ)が含まれている。   The barcode read by the barcode reader is composed of a black bar and a white space, and numerical values and characters are expressed by combinations of the respective widths. Bar codes with poor print quality (hereinafter referred to as damage bar codes) have a width that is far from the specified value, and includes dust (noise) due to bar image defects or dirt.

そこで、バーコードリーダにより読取られたバーコードの読取データに対し、黒バー又は白スペースの幅を変化させてデコードを行う技術や、幅を判定する基準を変化させてデコードを行う技術などが知られている。
また、バーコードリーダからバーコードまでの距離が離れている場合、バーコードが読取可能範囲内に含まれるように、光ビームの走査幅を広げる技術も知られている(例えば、特許文献1参照)。
特開2005−63142号公報
Therefore, there are known techniques for decoding the barcode reading data read by the barcode reader by changing the width of the black bar or white space, and for decoding by changing the criteria for determining the width. It has been.
In addition, when the distance from the barcode reader to the barcode is long, a technique for increasing the scanning width of the light beam so that the barcode is included in the readable range is also known (see, for example, Patent Document 1). ).
JP 2005-63142 A

しかしながら、上記技術では、相反して誤読の発生する可能性も高くなってしまう。例えば、読取データの黒バー又は白スペースの幅を変化させた場合、読取データを変化させた状態でデコードを実行することとなり、バーコードを誤読する可能性も高くなってしまう。   However, with the above technique, there is a high possibility that misreading occurs. For example, when the width of the black bar or white space of the read data is changed, decoding is performed with the read data changed, and the possibility of misreading the barcode is increased.

バーコードの誤読を防止するためには、照合やチェックデジット計算を行う技術が知られている。ここで、照合とは、バーコードを読取り、文字や数値に変換したデータと以前(前回)読取ったバーコードを文字や数値に変換したデータとを照合することをいう。チェックデジット計算とは、読取ったバーコードを文字や数値に変換したデータの正確性を保つために使用される計算方法である。
しかし、照合を行う場合、連続して誤読するようなバーコードに対しては、照合を行っても効果はない。また、チェックデジット計算についても、チェックデジットに対応していない規格のバーコードが存在することや、チェックデジット自体を誤読してしまい、チェックデジット計算がたまたま一致してしまう可能性もある。このため、バーコードの誤読を防止できないという問題があった。
In order to prevent misreading of a barcode, a technique for performing collation and check digit calculation is known. Here, collation refers to collating data obtained by reading a barcode and converting it into characters and numerical values and data obtained by converting a previously (previous) read barcode into characters and numerical values. Check digit calculation is a calculation method used for maintaining the accuracy of data obtained by converting a read barcode into characters or numerical values.
However, when collation is performed, collation is not effective for barcodes that are misread continuously. In addition, regarding check digit calculation, there is a possibility that a bar code of a standard that does not support the check digit exists, or that the check digit itself is misread and the check digit calculation happens to coincide. For this reason, there was a problem that misreading of the barcode could not be prevented.

本発明の課題は、バーコードの誤読を防止する技術を提供することである。   The subject of this invention is providing the technique which prevents the misreading of a barcode.

以上の課題を解決するため、請求項1に記載の発明のコード読取装置は、
バーコード又は2次元コードを示すデータコードを読取り、読取られた読取データを出力する読取手段と、
前記読取手段により出力された読取データをデコードするデコード手段と、
前記デコード手段によるデコード時に使用される複数のデコードパラメータ毎に、デコードの信頼性を表す信頼性情報を記憶する信頼性情報記憶手段と、
前記複数のデコードパラメータが組合された組合せ情報を記憶する組合せ記憶手段と、
前記複数のデコードパラメータの組合せを生成する生成手段と、
前記生成手段により生成された組合せに基づいて、前記デコードパラメータ毎に対応する前記信頼性情報を前記信頼性情報記憶手段から取得し、当該取得された信頼性情報の合計を算出する算出手段と、
前記生成手段により生成された組合せに対応する前記組合せ情報を前記組合せ記憶手段から取得し、当該取得された組合せ情報と前記算出手段により算出された合計とに基づいて、前記読取手段により読取られた読取データをデコードするか否かを判断するための判断情報を算出する判断情報算出手段と、
前記判断情報算出手段により算出された判断情報に基づいて、前記デコード手段にデコードを実行させるか否かを制御する第1のデコード制御手段と、
を備える。
In order to solve the above-described problems, a code reading device according to a first aspect of the present invention provides:
Reading means for reading a data code indicating a bar code or a two-dimensional code and outputting the read read data;
Decoding means for decoding the read data output by the reading means;
Reliability information storage means for storing reliability information representing reliability of decoding for each of a plurality of decoding parameters used at the time of decoding by the decoding means;
Combination storage means for storing combination information in which the plurality of decoding parameters are combined;
Generating means for generating a combination of the plurality of decoding parameters;
Based on the combination generated by the generation unit, the reliability information corresponding to each decoding parameter is acquired from the reliability information storage unit, and a calculation unit that calculates the total of the acquired reliability information;
The combination information corresponding to the combination generated by the generation unit is acquired from the combination storage unit, and read by the reading unit based on the acquired combination information and the total calculated by the calculation unit. Determination information calculating means for calculating determination information for determining whether to decode the read data;
First decoding control means for controlling whether to cause the decoding means to execute decoding based on the judgment information calculated by the judgment information calculating means;
Is provided.

請求項2に記載の発明は、請求項1に記載のコード読取装置において、
前記第1のデコード制御手段は、
前記判断情報が予め決められた許容値を超える場合は、前記デコード手段にデコードを実行させず、前記判断情報が予め決められた許容値内の場合は、前記生成手段により生成された組合せに基づいて、前記デコード手段にデコードを実行させる。
The invention described in claim 2 is the code reader according to claim 1,
The first decoding control means includes:
When the determination information exceeds a predetermined allowable value, the decoding unit does not execute decoding. When the determination information is within the predetermined allowable value, the determination unit is based on the combination generated by the generation unit. Then, the decoding unit executes decoding.

請求項3に記載の発明は、請求項1又は2に記載のコード読取装置において、
前記信頼性情報記憶手段は、
前記デコードパラメータ毎に、複数のパラメータ設定段階を設け、当該各パラメータ設定段階に対応して前記信頼性情報を記憶する。
The invention described in claim 3 is the code reader according to claim 1 or 2,
The reliability information storage means includes
A plurality of parameter setting steps are provided for each decoding parameter, and the reliability information is stored corresponding to each parameter setting step.

請求項4に記載の発明は、請求項1から3のいずれか一項に記載のコード読取装置において、
前記組合せ情報は、
前記複数のデコードパラメータの組合せ毎に設定された倍率情報を含み、
前記判断情報算出手段は、
前記倍率情報と前記合計とを積算して前記判断情報を算出する。
According to a fourth aspect of the present invention, in the code reading device according to any one of the first to third aspects,
The combination information is
Including magnification information set for each combination of the plurality of decoding parameters;
The determination information calculation means includes
The determination information is calculated by adding the magnification information and the sum.

請求項5に記載の発明は、請求項1から4のいずれか一項に記載のコード読取装置において、
前記判断情報算出手段により算出された前記判断情報が予め決められた許容値を超える場合、前記デコード手段によりデコードされたデコード結果を出力する出力手段と、
前記出力手段により出力されたデコード結果に基づいて、前記信頼性情報及び前記組合せ情報を調整する第1の調整手段と、
前記第1の調整手段により調整された信頼性情報を前記信頼性情報記憶手段に記憶させ、前記第1の調整手段により調整された組合せ情報を前記組合せ情報記憶手段に記憶させる第1の記憶制御手段と、
を備える。
According to a fifth aspect of the present invention, in the code reader according to any one of the first to fourth aspects,
When the determination information calculated by the determination information calculation means exceeds a predetermined allowable value, output means for outputting a decoding result decoded by the decoding means;
First adjustment means for adjusting the reliability information and the combination information based on the decoding result output by the output means;
First storage control for storing reliability information adjusted by the first adjustment unit in the reliability information storage unit, and storing combination information adjusted by the first adjustment unit in the combination information storage unit Means,
Is provided.

請求項6に記載の発明は、請求項1から4のいずれか一項に記載のコード読取装置において、
前記生成手段により生成された組合せに基づいて、前記デコード手段にデコードを実行させるか否かを制御する第2のデコード制御手段と、
前記第2のデコード制御手段により前記デコード手段のデコードが実行された場合、当該デコードされたデコード結果とデータコードが正当にデコードされたデコード結果とが一致するか否かを比較し、当該比較結果に基づいて、前記信頼性情報及び前記組合せ情報を調整する第2の調整手段と、
前記第2の調整手段により調整された信頼性情報を前記信頼性情報記憶手段に記憶させ、前記第2の調整手段により調整された組合せ情報を前記組合せ情報記憶手段に記憶させる第2の記憶制御手段と、
を備えた請求項1から4のいずれか一項に記載のコード読取装置。
The invention according to claim 6 is the code reader according to any one of claims 1 to 4,
Second decoding control means for controlling whether to cause the decoding means to execute decoding based on the combination generated by the generating means;
When the decoding of the decoding means is executed by the second decoding control means, the decoded result is compared with whether or not the decoded result in which the data code is properly decoded matches, and the comparison result Based on the second adjustment means for adjusting the reliability information and the combination information;
Second storage control for storing reliability information adjusted by the second adjustment unit in the reliability information storage unit and storing combination information adjusted by the second adjustment unit in the combination information storage unit Means,
The code reading device according to any one of claims 1 to 4, further comprising:

請求項7に記載の発明のプログラムは、
コンピュータを、
バーコード又は2次元コードを示すデータコードを読取り、読取られた読取データを出力する読取手段、
前記読取手段により出力された読取データをデコードするデコード手段、
前記デコード手段によるデコード時に使用される複数のデコードパラメータ毎に、デコードの信頼性を表す信頼性情報を記憶する信頼性情報記憶手段、
前記複数のデコードパラメータが組合された組合せ情報を記憶する組合せ記憶手段、
前記複数のデコードパラメータの組合せを生成する生成手段、
前記生成手段により生成された組合せに基づいて、前記デコードパラメータ毎に対応する前記信頼性情報を前記信頼性情報記憶手段から取得し、当該取得された信頼性情報の合計を算出する算出手段、
前記生成手段により生成された組合せに対応する前記組合せ情報を前記組合せ記憶手段から取得し、当該取得された組合せ情報と前記算出手段により算出された合計とに基づいて、前記読取手段により読取られた読取データをデコードするか否かを判断するための判断情報を算出する判断情報算出手段、
前記判断情報算出手段により算出された判断情報に基づいて、前記デコード手段にデコードを実行させるか否かを制御する第1のデコード制御手段、
として機能させる。
The program of the invention described in claim 7 is:
Computer
Reading means for reading a data code indicating a bar code or a two-dimensional code and outputting the read data;
Decoding means for decoding the read data output by the reading means;
Reliability information storage means for storing reliability information representing reliability of decoding for each of a plurality of decoding parameters used at the time of decoding by the decoding means;
Combination storage means for storing combination information in which the plurality of decoding parameters are combined;
Generating means for generating a combination of the plurality of decoding parameters;
Calculation means for acquiring the reliability information corresponding to each decoding parameter from the reliability information storage means based on the combination generated by the generation means, and calculating the total of the acquired reliability information;
The combination information corresponding to the combination generated by the generation unit is acquired from the combination storage unit, and read by the reading unit based on the acquired combination information and the total calculated by the calculation unit. Determination information calculating means for calculating determination information for determining whether to decode the read data;
First decoding control means for controlling whether or not to cause the decoding means to perform decoding based on the judgment information calculated by the judgment information calculating means;
To function as.

本発明によれば、バーコードの誤読を防止する技術を提供することができる。   ADVANTAGE OF THE INVENTION According to this invention, the technique which prevents the misreading of a barcode can be provided.

以下、添付図面を参照して本発明に係る実施の形態の一例を詳細に説明する。ただし、発明の範囲は、図示例に限定されない。   Hereinafter, an example of an embodiment according to the present invention will be described in detail with reference to the accompanying drawings. However, the scope of the invention is not limited to the illustrated examples.

(第1の実施の形態)
図1〜図14を参照して、本発明に係る第1の実施の形態を説明する。以下、データコードとしてバーコードを読取るコード読取装置(以下、バーコードリーダ)を用いて説明する。先ず、図1を参照して、バーコードリーダ1がバーコードAを読取る際の動作について説明する。バーコードAは、黒バーと白スペースで構成され、それぞれの幅の組合せによって数値・文字が表現されたデータコードである。バーコードリーダ1は、バーコードAに対して、レーザー光を照射し、当該照射したレーザー光の反射光を受光する。そして、受光した反射光に基づいて、バーコードAの読取データ(2値データ)を取得し、取得した読取データに対してデコードを行い、バーコードAで表現された数値・文字を取得する。
(First embodiment)
A first embodiment according to the present invention will be described with reference to FIGS. Hereinafter, a description will be given using a code reader (hereinafter referred to as a barcode reader) that reads a barcode as a data code. First, the operation when the barcode reader 1 reads the barcode A will be described with reference to FIG. The bar code A is a data code composed of a black bar and a white space, and numerical values and characters are expressed by combinations of the respective widths. The barcode reader 1 irradiates the barcode A with laser light and receives reflected light of the irradiated laser light. Then, reading data (binary data) of the barcode A is acquired based on the received reflected light, the acquired reading data is decoded, and numerical values / characters expressed by the barcode A are acquired.

次に、図2を参照して、バーコードリーダ1の内部構成を説明する。図2に示すように、バーコードリーダ1は、デコード手段、生成手段、算出手段、判断情報算出手段、第1のデコード手段としてのCPU(Central Processing Unit)11と、入力部12と、RAM13(Random Access Memory)と、表示部14と、ROM(Read Only Memory)15と、読取手段としてのスキャナ部16と、信頼性情報記憶手段、組合わせ記憶手段としてのフラッシュメモリ17と、を備え、各部はバス19を介して接続されている。また、各部は、電源部18からの電力供給を受けている。   Next, the internal configuration of the barcode reader 1 will be described with reference to FIG. As shown in FIG. 2, the barcode reader 1 includes a decoding unit, a generating unit, a calculating unit, a determination information calculating unit, a CPU (Central Processing Unit) 11 as a first decoding unit, an input unit 12, and a RAM 13 ( A random access memory (Random Access Memory), a display unit 14, a ROM (Read Only Memory) 15, a scanner unit 16 as a reading unit, a reliability information storage unit, and a flash memory 17 as a combination storage unit. Are connected via a bus 19. Each unit is supplied with power from the power supply unit 18.

CPU11は、バーコードリーダ1の各部を中央制御する。CPU11は、ROM15に記憶されているシステムプログラム及び各種アプリケーションプログラムの中から指定されたプログラムをRAM13に展開し、RAM13に展開されたプログラムとの協働で、各種処理を実行する。   The CPU 11 centrally controls each part of the barcode reader 1. The CPU 11 develops a program specified from the system program and various application programs stored in the ROM 15 in the RAM 13 and executes various processes in cooperation with the program expanded in the RAM 13.

CPU11は、ROM15に記憶された第1のプログラムとの協働により、複数のデコードパラメータの組合せを生成し、生成された組合せに基づいて、デコードパラメータ毎に対応する信頼性情報をパラメータ点数テーブル90が記憶されているフラッシュメモリ17から取得し、当該取得された信頼性情報の合計を算出し、生成された組合せに対応する組合せ情報を組合せ点数テーブル91が記憶されているフラッシュメモリ17から取得し、当該取得された組合せ情報と算出された信頼性情報の合計とに基づいて、スキャナ部16により読取られた読取データをデコードするか否かを判断するための判断情報を算出し、算出された判断情報に基づいて、読取データのデコードを制御する。   The CPU 11 generates a combination of a plurality of decoding parameters in cooperation with the first program stored in the ROM 15, and sets reliability information corresponding to each decoding parameter based on the generated combination in the parameter score table 90. Is obtained from the flash memory 17 in which is stored, the total of the obtained reliability information is calculated, and the combination information corresponding to the generated combination is obtained from the flash memory 17 in which the combination score table 91 is stored. Based on the acquired combination information and the calculated reliability information, determination information for determining whether to decode the read data read by the scanner unit 16 is calculated and calculated. Based on the determination information, decoding of the read data is controlled.

デコードパラメータとは、スキャナ部16により読取られたバーコードの読取データのデコード時に使用するパラメータのことをいう。デコードパラメータは、後述するparam−1〜param−10に該当する。
デコードパラメータの組合せを生成するとは、デコードパラメータ毎に、デコードパラメータの設定段階数を設定し、各デコードパラメータで設定された設定段階数の中から規則にしたがって1つの段階を選択し、全デコードパラメータ(param−1〜param−10)で選択する段階数の組合せを生成することをいう。デコードパラメータの設定段階数とは、デコードパラメータの内容に応じて設けられた段階数のことをいう。デコードパラメータ設定段階数は、後述する「set1」等に該当する。デコードパラメータの組合せの生成は、例えば、param−1は「set−1」、param−2は「set−2」・・・param−10は「set−1」というように、各デコードパラメータで設定された設定段階数の中から1つの段階を選択し、全デコードパラメータ(param−1〜param−10)で選択する段階数の組合せを生成することにより実行される。
信頼性情報とは、デコードの信頼性を表す情報であり、後述するデコードパラメータの点数に該当する。信頼性情報の合計とは、デコードパラメータの点数の合計である。
組合せ情報とは、各デコードパラメータを組合せた情報であり、後述する組合せ点数テーブル91の組合せNo、各デコードパラメータの設定段階数の組合せ、及び点数倍率のことをいう。
生成された組合せに対応する組合せ情報を取得するとは、生成されたデコードパラメータの組合せと一致する組合せ情報を組合せ点数テーブル91から検索し、検索された組合せ情報を取得することをいう。具体的には、組合せ点数テーブル91を参照し、生成された組合せ(各デコードパラメータで選択された設定段階数の組合せ)に一致する各デコードパラメータの設定段階数の組合せを組合せ点数テーブル91から検索し、検索された組合せに対応する点数倍率を取得することをいう。
判断情報とは、スキャナ部16により読取られた読取データをデコードするか否かを判断するための情報であり、取得された点数倍率と算出されたデコードパラメータの点数の合計とを積算した情報のことをいう。判断情報は、後述する合計値に該当する。
The decode parameter is a parameter used when decoding the read data of the barcode read by the scanner unit 16. The decode parameters correspond to param-1 to param-10 described later.
To generate a combination of decoding parameters, the number of decoding parameter setting steps is set for each decoding parameter, one step is selected from the number of setting steps set by each decoding parameter according to the rule, and all decoding parameters are set. It means generating a combination of the number of steps selected in (param-1 to param-10). The number of decoding parameter setting stages refers to the number of stages provided according to the contents of the decoding parameters. The number of decoding parameter setting steps corresponds to “set1” to be described later. Decoding parameter combinations are generated by setting each decoding parameter, for example, “param-1” is “set-1”, param-2 is “set-2”, and param-10 is “set-1”. This is executed by selecting one stage from the set number of stages and generating a combination of stages selected by all the decoding parameters (param-1 to param-10).
The reliability information is information representing the reliability of decoding, and corresponds to the number of decoding parameters described later. The total reliability information is the total number of decoding parameters.
The combination information is information obtained by combining the decode parameters, and refers to a combination number in a combination score table 91, which will be described later, a combination of the number of steps set for each decode parameter, and a score magnification.
Acquiring combination information corresponding to the generated combination means searching for combination information that matches the generated combination of decode parameters from the combination score table 91 and acquiring the searched combination information. Specifically, referring to the combination score table 91, the combination score table 91 is searched for a combination of the set number of steps of each decoding parameter that matches the generated combination (a combination of the number of setting steps selected by each decode parameter). In this case, the score magnification corresponding to the searched combination is acquired.
The determination information is information for determining whether or not the read data read by the scanner unit 16 is to be decoded, and is information obtained by integrating the acquired score magnification and the total score of the calculated decoding parameters. That means. The determination information corresponds to a total value described later.

入力部12は、バーコード読取を指示するためのトリガキー、数字・文字入力キー、各種機能キー等の各種キーを含み、操作者から押下入力された各キーのキー入力信号をCPU11に出力する。また、入力部12は、表示部14と一体的にタッチパネルが構成されることとしてもよい。   The input unit 12 includes various keys such as a trigger key for instructing barcode reading, numeric / character input keys, and various function keys, and outputs a key input signal of each key pressed by the operator to the CPU 11. The input unit 12 may be configured as a touch panel integrally with the display unit 14.

RAM13は、情報を一時的に格納する揮発性のメモリであり、実行される各種プログラムやこれら各種プログラムに係るデータ等を格納する複数のワークエリアを有する。   The RAM 13 is a volatile memory that temporarily stores information, and has a plurality of work areas that store various programs to be executed and data related to these various programs.

表示部14は、LCD(Liquid Crystal Display)、ELD(ElectroLuminescent Display)等で構成され、CPU11からの表示信号に従って各種表示を行う。   The display unit 14 includes an LCD (Liquid Crystal Display), an ELD (ElectroLuminescent Display), and the like, and performs various displays according to a display signal from the CPU 11.

ROM15は、各種プログラム、各種データが予め読み出し専用に記憶される記憶部である。ROM15は、後述する第1のプログラムを記憶する。   The ROM 15 is a storage unit in which various programs and various data are stored in advance for reading only. The ROM 15 stores a first program described later.

スキャナ部16は、CPU11の制御信号に従い、バーコードを読取り、読取った読取データ(二値データ)をCPU11に出力する。   The scanner unit 16 reads a barcode in accordance with a control signal from the CPU 11 and outputs the read data (binary data) read to the CPU 11.

フラッシュメモリ17は、各種データ等の情報が読み出し及び書き込み可能な記憶部である。フラッシュメモリ17は、後述するパラメータテーブル30、パラメータ点数テーブル90、組合せ点数テーブル91を記憶する。   The flash memory 17 is a storage unit that can read and write information such as various data. The flash memory 17 stores a parameter table 30, a parameter score table 90, and a combination score table 91 described later.

次に、図3を参照して、パラメータテーブル30について説明する。パラメータテーブル30は、デコードパラメータ毎に、設定段階数に応じたデコードパラメータの設定内容を定めたテーブルである。param−1〜param−10は、読取データのデコード時に使用する各デコードパラメータを示す。set−1〜set−8は、各デコードパラメータの設定段階数を示す。デコードパラメータの設定段階数に応じて、各デコードパラメータ(param−1〜param−10)が設定される。また、設定段階数は、設定段階数値が大きくなるほど、誤読の可能性が高くなることを示す。   Next, the parameter table 30 will be described with reference to FIG. The parameter table 30 is a table that defines the setting contents of the decoding parameter corresponding to the number of setting steps for each decoding parameter. param-1 to param-10 indicate each decoding parameter used when decoding the read data. set-1 to set-8 indicate the number of setting stages of each decoding parameter. Each decoding parameter (param-1 to param-10) is set according to the number of decoding parameter setting stages. The number of setting stages indicates that the higher the setting stage value, the higher the possibility of misreading.

param−1(マージンチェックパラメータ)は、読取られた読取データ(バーコードを構成する黒バー及び白スペースの幅、及び左右のマージン幅の2値化されたデータ)の左右マージン幅について、どこまで小さくても読取りOKと判定するか、その最小値を倍率で表すデコードパラメータである。左右マージン幅が小さいバーコードを読取り可能とするためには、倍率も小さくする必要がある。例えば、「set−1」の場合、マージンチェックパラメータは「6倍」、「set−2」の場合、マージンチェックパラメータは「4倍」に設定される。   param-1 (margin check parameter) is reduced to what extent the left and right margin widths of the read data (the binarized data of the black bar and white space constituting the barcode and the left and right margin widths) are reduced. Even if it is determined that reading is OK, this is a decoding parameter that represents the minimum value by a magnification. In order to be able to read a barcode with a small left and right margin width, it is necessary to reduce the magnification. For example, in the case of “set-1”, the margin check parameter is set to “6 times”, and in the case of “set-2”, the margin check parameter is set to “4 times”.

param−2(キャラクタ間ギャップパラメータ)は、キャラクタ(数本の黒バー及び白スペースで構成されるグループ)間のギャップ(スペース)の大きさのチェックによる読取りOK(成功)かNG(失敗)の判定を有効又は無効に設定するデコードパラメータである。例えば、「set−1」の場合、キャラクタ間ギャップパラメータは「有効」に設定される。この場合、予め定められたキャラクタ間ギャップに基づいて、バーコードの読取データの読取りがOKかNGかについて判定される。例えば、読取られた読取データのキャラクタ間ギャップが予め定められたキャラクタ間ギャップよりも大きい場合、読取りはNGと判定される。
また、「set−2」の場合、キャラクタ間ギャップパラメータは「無効」に設定される。この場合、キャラクタ間ギャップに基づいて、読取りOKかNGかについての判定は実行されない。
param-2 (inter-character gap parameter) indicates whether the reading is OK (success) or NG (failure) by checking the size of the gap (space) between characters (a group consisting of several black bars and white space). This is a decoding parameter for setting the determination to be valid or invalid. For example, in the case of “set-1”, the inter-character gap parameter is set to “valid”. In this case, it is determined whether the reading of the barcode reading data is OK or NG based on a predetermined gap between characters. For example, when the gap between characters of the read data read is larger than a predetermined gap between characters, the reading is determined as NG.
In the case of “set-2”, the inter-character gap parameter is set to “invalid”. In this case, the determination as to whether reading is OK or NG is not performed based on the gap between characters.

param−3(デリネータパラメータ)は、デリネータ及びガードバーを構成する黒バー幅と白スペース幅の比率のチェックによる読取りOKかNGの判定を有効又は無効に設定するデコードパラメータである。ここで、図4及び図5を参照して、デリネータについて説明する。図4(A)は、アドオンを示す図である。アドオンとは、EANコードなどの後ろに付加される2桁又は5桁の補足コードのことをいう。図4(A)は、5桁のアドオンを示している。図4(B)は、デリネータを示す図である。デリネータとは、図4(B)に示すように、アドオン内においてキャラクタとキャラクタとの間に存在する1本の白スペース、1本の黒バーにより構成されるバーのグループのことをいう。白スペースと黒バーの比率はほぼ1:1となる。チェックを行うときは、例えば、白スペースの大きさに対して、黒バーの大きさが±25%の範囲内なら読取りOK、範囲外なら読取りNGという判定を行う。図5(A)(B)は、ガードバーを示す図である。ガードバーとは、EANコード、JANコード、UPC−Aコード、UPC−Eにおいて、バーコードの左端と右端に存在するバーのグループのことをいう。コードの種類によりガードバーを構成するバーの本数が異なる。例えば、EANコード、JANコード、UPC−Aコードの場合、図5(A)に示すように、黒バー2本と白スペース1本により構成される。これらのバーの比率は、ほぼ1:1:1となる。また、UPC−Eコードの場合、図5(B)に示すように、左端のガードバーは、黒バー2本と白スペース1本により構成される。これらのバーの比率はほぼ1:1:1となる。また、右端のガードバーは、黒バー3本と白スペース2本により構成される。これらのバーの比率は、ほぼ1:1:1:1:1となる。チェックを行うときは、例えば、白スペースの大きさに対して、黒バーの大きさが±25%の範囲内なら読取りOK、範囲外なら読取りNGという判定を行う。
例えば、「set−1」の場合、デリネータパラメータは「有効」に設定される。この場合、アドオンの中に含まれているデリネータを構成する黒バー幅と白スペース幅の比率がチェックされ、読取りがOKかNGかについて判定される。さらに、この場合、ガードバーの左右の比率が予め定められた比率よりも大きいか否かが判別される。例えば、デリネータを構成する黒バーと白スペースについて、白スペース幅に対して黒バー幅が予め定められた許容比率の範囲を超える場合、読取りはNGと判定される。また、ガードバーの比率が予め定められた閾値よりも大きい場合、読取りはNGと判定される。
また、「set−2」の場合、デリネータパラメータは「無効」に設定される。この場合、デリネータ及びガードバーに基づいて、読取りがOKかNGかの判定は実行されない。
param-3 (a delineator parameter) is a decoding parameter for setting whether the read OK or NG determination is valid or invalid by checking the ratio of the black bar width to the white space width constituting the delimiter and the guard bar. Here, the delineator will be described with reference to FIGS. 4 and 5. FIG. 4A shows an add-on. An add-on refers to a 2-digit or 5-digit supplementary code added after an EAN code or the like. FIG. 4A shows a 5-digit add-on. FIG. 4B is a diagram showing a delineator. As shown in FIG. 4B, the delineator refers to a group of bars composed of one white space and one black bar existing between characters in the add-on. The ratio of white space to black bar is approximately 1: 1. When the check is performed, for example, determination is made that reading is OK when the size of the black bar is within a range of ± 25% with respect to the size of the white space, and reading NG is performed when the size is out of the range. 5A and 5B are diagrams showing guard bars. The guard bar refers to a group of bars existing at the left end and the right end of the bar code in the EAN code, JAN code, UPC-A code, and UPC-E. The number of bars constituting the guard bar varies depending on the type of cord. For example, in the case of an EAN code, a JAN code, and a UPC-A code, as shown in FIG. 5A, the code is composed of two black bars and one white space. The ratio of these bars is approximately 1: 1: 1. In the case of the UPC-E code, as shown in FIG. 5B, the leftmost guard bar is composed of two black bars and one white space. The ratio of these bars is approximately 1: 1: 1. The rightmost guard bar is composed of three black bars and two white spaces. The ratio of these bars is approximately 1: 1: 1: 1: 1. When the check is performed, for example, determination is made that reading is OK when the size of the black bar is within a range of ± 25% with respect to the size of the white space, and reading NG is performed when the size is out of the range.
For example, in the case of “set-1”, the delineator parameter is set to “valid”. In this case, the ratio between the black bar width and the white space width constituting the delineator included in the add-on is checked to determine whether reading is OK or NG. Further, in this case, it is determined whether or not the left / right ratio of the guard bar is larger than a predetermined ratio. For example, regarding the black bar and white space constituting the delineator, if the black bar width exceeds the predetermined allowable range with respect to the white space width, the reading is determined to be NG. If the guard bar ratio is larger than a predetermined threshold, the reading is determined as NG.
In the case of “set-2”, the delineator parameter is set to “invalid”. In this case, whether the reading is OK or NG is not executed based on the delineator and the guard bar.

param−4(閾値(倍率)パラメータ)は、黒バー及び白スペースの幅が太いか細いかを識別するための閾値を変化させるデコードパラメータである。例えば、「set―1」の場合、閾値(倍率)パラメータは、「黒×1.5 白×1.5」に設定される。この場合、黒バーの閾値(倍率)は、「1.5」、白スペースの閾値(倍率)は、「1.5」に設定される。   param-4 (threshold (magnification) parameter) is a decoding parameter for changing the threshold for identifying whether the width of the black bar and the white space is thick or thin. For example, in the case of “set-1”, the threshold (magnification) parameter is set to “black × 1.5 white × 1.5”. In this case, the threshold value (magnification) for the black bar is set to “1.5”, and the threshold value (magnification) for the white space is set to “1.5”.

param−5(閾値(基準位置)パラメータ)は、バーコード全体における黒バーと白スペースの幅の太り細り傾向を算出するために、黒バーの基準となる幅と白スペースの基準となる幅を取得する際に参照する基準位置を切り替えるためのデコードパラメータである。黒バーの基準幅と白スペースの基準幅を比較し、黒白の太り細り傾向を算出し、その傾向に基づいた補正を行ってデコードを行う。図6〜図8に各コードと基準位置との関係を示す。先ず、図6に各バーコードにおける基準位置を図示する。図6(A)は、EAN、JAN、UPC−Aコードの基準位置(レフトガードバー、センターバー)を示す図である。図6(B)は、UPC−Eコードの基準位置(レフトガードバー、ライトガードバー)を示す図である。図6(C)は、アドオンコードの基準位置(スタートパターン)を示す図である。次に、図7及び図8に、バーコード(解析コード)と基準位置との関係を示す。図7(A)は、閾値(基準位置)パラメータが「set−1」(LeftGB:(白+黒)/2 StartPattern)におけるバーコードと基準位置との関係を示している。図7(B)は、閾値(基準位置)パラメータが「set−2」(CenterGB StartPattern)におけるバーコードと基準位置との関係を示している。図7(C)は、閾値(基準位置)パラメータが「set−3」(LeftGB:(白+黒) StartPattern)におけるバーコードと基準位置との関係を示している。図8(A)は、閾値(基準位置)パラメータが「set−4」(LeftGB:(白+黒)/2 WPC部)におけるバーコードと基準位置との関係を示している。図8(B)は、閾値(基準位置)パラメータが「set−5」(CenterGB: WPC部)におけるバーコードと基準位置との関係を示している。図8(C)は、閾値(基準位置)パラメータが「set−6」(LeftGB:(白+黒):WPC部)におけるバーコードと基準位置との関係を示している。
例えば、「set−1」の場合、閾値(基準位置)パラメータは、「LeftGB:(白+黒)/2StartPattern」に設定される。この場合、EAN、JAN、UPC−A、UPC−Eコードの解析において、黒バー・白スペースの太り細り傾向を算出するため基準位置はレフトガードバーとなり、さらに光学的特性に対する補正を行って傾向の算出を行う。また、アドオンコードの解析において、黒バー・白スペースの太り細り傾向を算出するための基準位置はスタートパターンとなる。
また、「set−2」の場合、閾値(基準位置)パラメータは、「(CenterGB StartPattern)」に設定される。この場合、EAN、JAN、UPC−A,UPC−Eコードの解析において、黒バー・白スペースの太り細り傾向を算出するための基準位置はセンターバーとなる。また、アドオンコード解析において、黒バー・白スペースの太り細り傾向を算出するための基準位置はスタートパターンとなる。
param-5 (threshold (reference position) parameter) is used to calculate the black bar and white space reference width and the white space reference width in order to calculate the tendency of the black bar and white space width to increase in the entire barcode. This is a decoding parameter for switching a reference position to be referred to when acquiring. The reference width of the black bar and the reference width of the white space are compared, the black and white fatness tendency is calculated, and the correction is performed based on the tendency to perform decoding. 6 to 8 show the relationship between each code and the reference position. First, FIG. 6 shows a reference position in each barcode. FIG. 6A is a diagram illustrating reference positions (left guard bar, center bar) of EAN, JAN, and UPC-A codes. FIG. 6B is a diagram showing the reference position (left guard bar, right guard bar) of the UPC-E code. FIG. 6C is a diagram illustrating a reference position (start pattern) of the add-on code. Next, FIGS. 7 and 8 show the relationship between the barcode (analysis code) and the reference position. FIG. 7A shows the relationship between the barcode and the reference position when the threshold (reference position) parameter is “set-1” (LeftGB: (white + black) / 2 StartPattern). FIG. 7B shows the relationship between the barcode and the reference position when the threshold (reference position) parameter is “set-2” (CenterGB StartPattern). FIG. 7C shows the relationship between the barcode and the reference position when the threshold (reference position) parameter is “set-3” (LeftGB: (white + black) StartPattern). FIG. 8A shows the relationship between the barcode and the reference position when the threshold (reference position) parameter is “set-4” (LeftGB: (white + black) / 2 WPC section). FIG. 8B shows the relationship between the barcode and the reference position when the threshold (reference position) parameter is “set-5” (CenterGB: WPC section). FIG. 8C shows the relationship between the barcode and the reference position when the threshold (reference position) parameter is “set-6” (LeftGB: (white + black): WPC section).
For example, in the case of “set−1”, the threshold (reference position) parameter is set to “LeftGB: (white + black) / 2 StartPattern”. In this case, in the analysis of the EAN, JAN, UPC-A, and UPC-E codes, the reference position becomes the left guard bar to calculate the tendency of the black bar and white space to become thicker, and the optical characteristics are corrected and corrected. Perform the calculation. In addition, in the analysis of the add-on code, the reference position for calculating the thinning tendency of the black bar / white space is the start pattern.
In the case of “set-2”, the threshold (reference position) parameter is set to “(CenterGB StartPattern)”. In this case, in the analysis of the EAN, JAN, UPC-A, and UPC-E codes, the reference position for calculating the tendency of the black bar / white space to become thicker is the center bar. In addition, in the add-on code analysis, the reference position for calculating the tendency of the black bar / white space to become thicker is a start pattern.

param−6(閾値(白黒)パラメータ)は、黒バーと白スペースとの2値化(または4値化)をまとめて行うか否かを設定するデコードパラメータである。例えば、「set−1」の場合、閾値(白黒)パラメータは、「白黒混合計算」に設定される。この場合、黒バーと白スペースとはまとめて2値化(又は4値化)が実行される。また、「set−2」の場合、閾値(白黒)パラメータは、「白黒分離計算」に設定される。この場合、黒バーと白スペースとは別々に2値化(又は4値化)が実行される。   param-6 (threshold (monochrome) parameter) is a decoding parameter for setting whether or not binarization (or quaternarization) of black bars and white spaces is performed collectively. For example, in the case of “set-1”, the threshold (monochrome) parameter is set to “monochrome mixture calculation”. In this case, the black bar and the white space are collectively binarized (or binarized). In the case of “set-2”, the threshold (monochrome) parameter is set to “monochrome separation calculation”. In this case, the black bar and the white space are binarized (or binarized) separately.

param−7(太り細り補正パラメータ)は、黒バー又は白スペースの幅を太くするか細くするか否かを設定するデコードパラメータである。例えば、「set−1」の場合、太り細り補正パラメータは「補正なし」に設定される。この場合、黒バー又は白スペースの太り細り補正は実行されない。また、「set−2」の場合、太り細り補正パラメータは「白太0.6module」に設定される。この場合、白スペースの幅が0.6モジュール補正される。モジュールとは、バーコード内の全ての黒バーと白スペースの中で、最も小さなバー、またはスペース幅の単位である。   param-7 (thickening / thinning correction parameter) is a decoding parameter for setting whether to increase or decrease the width of the black bar or white space. For example, in the case of “set-1”, the fat / thin correction parameter is set to “no correction”. In this case, thickening / thinning correction of the black bar or white space is not executed. In the case of “set-2”, the thinning correction parameter is set to “white thickness 0.6 module”. In this case, the white space width is corrected by 0.6 modules. The module is a unit of the smallest bar or space width among all black bars and white spaces in the barcode.

param−8(ノイズパラメータ)は、ノイズ除去を行う際に、ノイズとみなすバーの幅を設定するデコードパラメータである。例えば、「set−1」の場合、ノイズパラメータは「無効」に設定される。この場合、ノイズ除去は実行されない。また、「set−2」の場合、ノイズパラメータは「40Count」に設定される。この場合、ノイズ除去を行う際にノイズとみなすバーの幅は40カウントに設定される。カウントとは、クロックカウント数である。   param-8 (noise parameter) is a decoding parameter for setting the width of a bar regarded as noise when performing noise removal. For example, in the case of “set-1”, the noise parameter is set to “invalid”. In this case, noise removal is not performed. In the case of “set-2”, the noise parameter is set to “40 Count”. In this case, the width of the bar regarded as noise when performing noise removal is set to 40 counts. The count is a clock count number.

param−9(キャラクタ間差異パラメータ)は、連続するキャラクタ幅の差の判定を有効又は無効にするデコードパラメータである。例えば、「set−1」の場合、キャラクタ間差異パラメータは、「有効」に設定される。この場合、連続するキャラクタ幅の差分値に基づいて、読取りがOKかNGかについての判定が行われる。また、「set−2」の場合、キャラクタ間差異パラメータは「無効」に設定される。この場合、キャラクタ間幅の差分値に基づいて、読取りがOKかNGかの判定は実行されない。   param-9 (character difference parameter) is a decoding parameter that enables or disables the determination of the difference between successive character widths. For example, in the case of “set-1”, the character difference parameter is set to “valid”. In this case, based on the difference value between successive character widths, a determination is made as to whether reading is OK or NG. In the case of “set-2”, the character difference parameter is set to “invalid”. In this case, whether the reading is OK or NG is not executed based on the difference value between the character widths.

param−10(最大最小チェックパラメータ)は、キャラクタ内において、幅が最小である最小バーと幅が最大である最大バーとの比率の判定を有効又は無効にするデコードパラメータである。例えば、「set−1」の場合、最大最小チェックパラメータは「有効」に設定される。この場合、キャラクタ内において、最小バーと最大バーとの比率に基づいて、読取りがOKかNGかについての判定が行われる。また、「set−2」の場合、最大最小チェックパラメータは「無効」に設定される。この場合、最小バーと最大バーとの比率に基づいて、読取りがOKかNGかの判定は実行されない。   param-10 (maximum / minimum check parameter) is a decoding parameter that enables or disables the determination of the ratio between the minimum bar having the minimum width and the maximum bar having the maximum width in the character. For example, in the case of “set-1”, the maximum / minimum check parameter is set to “valid”. In this case, a determination is made as to whether reading is OK or NG based on the ratio between the minimum bar and the maximum bar in the character. In the case of “set-2”, the maximum / minimum check parameter is set to “invalid”. In this case, whether the reading is OK or NG is not performed based on the ratio between the minimum bar and the maximum bar.

次に図9を参照して、パラメータ点数テーブル90について説明する。パラメータ点数テーブル90の各数値は、各デコードパラメータ(param1〜param10)におけるパラメータ設定段階数に応じたパラメータの点数を示す。例えば、param1(マージンチェックパラメータ)の「set−1」におけるデコードパラメータの点数は「0」、「set−2」におけるデコードパラメータの点数は「2」、「set−3」におけるデコードパラメータの点数は「4」であることを示している。   Next, the parameter score table 90 will be described with reference to FIG. Each numerical value of the parameter score table 90 indicates a parameter score corresponding to the number of parameter setting steps in each decoding parameter (param1 to param10). For example, the decode parameter score in “set-1” of param1 (margin check parameter) is “0”, the decode parameter score in “set-2” is “2”, and the decode parameter score in “set-3” is “4” is shown.

次に図10を参照して、組合せ点数テーブル91について説明する。
組合せ点数テーブル91は、組合せNo、各デコードパラメータ(「param−1」〜「param−10」)の設定段階数、「ratio」(点数倍率)により構成される。組合せNoは、各デコードパラメータの組合せの識別番号である。各デコードパラメータの設定段階数は、各デコードパラメータ「param−1」〜「param−10」で選択された1つの設定段階数である。例えば、組合せNo.1における各デコードパラメータの設定段階数は、「param−1」(マージンチェックパラメータ):「set2」、「param−2」(キャラクタ間ギャップパラメータ):「set2」、「param−3」(デリネータパラメータ):「set1」、「param−4」(閾値(倍率)パラメータ):「set1」、「param−5」(閾値(基準位置)パラメータ):「set1」、「param−6」(閾値(白黒)パラメータ):「set1」、「param−7」(太り細り補正パラメータ):「set1」、「param−8」(ノイズパラメータ):「set1」、「param−9」(キャラクタ間差異パラメータ):「set1」、「param−10」(最大最小パラメータ):「set1」となる。すなわち、組合せNo.1には、マージンチェックパラメータ「6倍」、キャラクタ間ギャップパラメータ「無効」、デリネータ「有効」、閾値(倍率)パラメータ「黒*1、5、白*1.5」、閾値(基準位置)パラメータ「LeftGB(白+黒)/2 StartPattern」、閾値(白黒)パラメータ「白黒混合計算」、太り細り補正パラメータ「補正なし」、ノイズパラメータ「無効」、キャラクタ間差異パラメータ「有効」、最大最小チェックパラメータ「有効」であり、これら各デコードパラメータが組み合わされることを示している。
「ratio」は、点数倍率を示す。点数倍率とは、デコードパラメータの組合せに応じて割り当てられた倍率値である。点数倍率の倍率値が高くなるほど、その組合せに対応する各デコードパラメータを使用してバーコードの読取りを行った時に誤読の可能性が高くなることを示している。
また、パラメータ点数テーブル90における各デコードパラメータの点数及び組合せ倍率テーブル91における点数倍率は、様々なダメージバーコードに対して、各デコードパラメータをカスタマイズさせながら読取評価を行い、誤読の発生傾向を調査した結果に基づき、予め設定された値であることを示している。
Next, the combination score table 91 will be described with reference to FIG.
The combination score table 91 includes a combination No, the number of steps set for each decoding parameter ("param-1" to "param-10"), and "ratio" (score magnification). The combination No. is an identification number of each decoding parameter combination. The number of setting stages of each decoding parameter is one setting stage number selected by each decoding parameter “param-1” to “param-10”. For example, combination No. The number of setting stages of each decoding parameter in 1 is “param-1” (margin check parameter): “set2”, “param-2” (inter-character gap parameter): “set2”, “param-3” (delineator) Parameter): “set1”, “param-4” (threshold (magnification) parameter): “set1”, “param-5” (threshold (reference position) parameter): “set1”, “param-6” (threshold ( (Black and white) parameters): “set1”, “param-7” (thickness correction parameter): “set1”, “param-8” (noise parameter): “set1”, “param-9” (character difference parameter) : “Set1”, “param-10” (maximum and minimum parameters): “set1”. That is, the combination No. 1 includes a margin check parameter “6 times”, an inter-character gap parameter “invalid”, a delineator “valid”, a threshold (magnification) parameter “black * 1, 5, white * 1.5”, and a threshold (reference position) parameter. “LeftGB (white + black) / 2 StartPattern”, threshold (black and white) parameter “black and white mixed calculation”, thickening correction parameter “no correction”, noise parameter “invalid”, character difference parameter “valid”, maximum and minimum check parameter “Valid”, indicating that these decoding parameters are combined.
“Ratio” indicates a point magnification. The point magnification is a magnification value assigned according to a combination of decoding parameters. It indicates that the higher the magnification value of the point magnification, the higher the possibility of misreading when reading the barcode using each decoding parameter corresponding to the combination.
Further, the score of each decode parameter in the parameter score table 90 and the score magnification in the combination magnification table 91 were read and evaluated while customizing each decode parameter for various damage barcodes, and the tendency of misreading was investigated. Based on the result, the value is set in advance.

次に、バーコードリーダ1の動作を説明する。
先ず、図11〜図14を参照して、バーコードリーダ1で実行される第1の処理を説明する。図11に示す第1の処理は、各デコードパラメータの設定段階に対応するデコードパラメータの点数を取得し、取得したデコードパラメータの点数の合計点数と点数倍率とを積算し、算出された積算値に基づいてデコードを実行するか否かを制御する処理である。
Next, the operation of the barcode reader 1 will be described.
First, the first process executed by the barcode reader 1 will be described with reference to FIGS. In the first process shown in FIG. 11, the score of the decode parameter corresponding to each decoding parameter setting stage is acquired, the total score of the acquired decode parameter score and the score magnification are integrated, and the calculated integrated value is obtained. This is a process for controlling whether or not to execute decoding based on this.

例えば、入力部12を介して第1の処理の実行指示が入力されたことをトリガとして、ROM15から読み出されて適宜RAM13に展開された第1のプログラムとCPU11との協働で、図11に示す第1の処理が実行される。   For example, when the execution instruction of the first process is input via the input unit 12 as a trigger, the first program read from the ROM 15 and appropriately expanded in the RAM 13 and the CPU 11 cooperate with each other in FIG. The first process shown in FIG.

予め、RAM13の任意のワークエリア(作業領域)に、各デコードパラメータに対する設定段階数の上限値(パラメータテーブル30における各デコードパラメータの一番右端の設定段階数)が記憶されているものとする。具体的には、param−1(マージンチェックパラメータ)は、「set−3」、param−2(キャラクタ間ギャップパラメータ)は、「set−2」、・・・param−10(キャラクタ間ギャップパラメータ)は、「set−2」がRAM13の作業領域に記憶されているものとする。   It is assumed that an upper limit value of the number of setting stages for each decoding parameter (the number of setting stages at the right end of each decoding parameter in the parameter table 30) is stored in an arbitrary work area (working area) of the RAM 13 in advance. Specifically, param-1 (margin check parameter) is “set-3”, param-2 (character gap parameter) is “set-2”,... Param-10 (character gap parameter) “Set-2” is stored in the work area of the RAM 13.

先ず、スキャナ部16を介して読取られた読取データが取得される(ステップS11)。そして、現在のデコードパラメータ(パラメータ)の組合せが初期化される(ステップS12)。初期化とは、現在のデコードパラメータの設定段階数を「set−1」に設定することをいう。このとき、初期化された設定段階数は、RAM13の任意の作業領域に記憶される。そして、ステップS11において初期化された現在のデコードパラメータ(パラメータ)の組合せを反映してデコードが実行される(ステップS13)。デコードとは、ステップS11において取得された読取データを文字や数値等のデータに変換することをいう。   First, read data read via the scanner unit 16 is acquired (step S11). Then, the current combination of decoding parameters (parameters) is initialized (step S12). Initialization means setting the number of setting stages of the current decoding parameter to “set−1”. At this time, the initialized number of set stages is stored in an arbitrary work area of the RAM 13. Then, decoding is executed by reflecting the combination of the current decoding parameters (parameters) initialized in step S11 (step S13). Decoding refers to converting the read data acquired in step S11 into data such as characters and numerical values.

そして、デコード結果がOKか否かが判別される(ステップS14)。具体的には、ステップS13において実行されたデコード結果を解析し、なんらかの文字や数値への変換が完了したか否かに基づいて、デコード結果がOKか否かが判別される。デコード結果がOKと判別された場合(ステップS14;YES)、第1の処理は終了される。デコード結果がNGと判別された場合(ステップS14;NO)、パラメータカスタマイズ処理が実行される(ステップS15)。 Then, it is determined whether or not the decoding result is OK (step S14). Specifically, the decoding result executed in step S13 is analyzed, and it is determined whether or not the decoding result is OK based on whether or not the conversion to some character or numerical value is completed. When it is determined that the decoding result is OK (step S14; YES), the first process is terminated. When the decoding result is determined to be NG (step S14; NO), parameter customization processing is executed (step S15).

ここで、図12及び図13を参照して、パラメータカスタマイズ処理について説明する。先ず、第1の処理のステップS14の実行後、param−1(マージンチェックパラメータ)の設定段階数が+1される(ステップS151)。設定段階数が+1されると、ステップS12においてRAM13に記憶された設定段階数が更新記憶される。例えば、param−1(マージンチェックパラメータ)の設定段階数が「set−1」から「set−2」に更新記憶される。   Here, the parameter customization process will be described with reference to FIGS. 12 and 13. First, after the execution of step S14 of the first process, the number of setting stages of param-1 (margin check parameter) is incremented by 1 (step S151). When the number of setting stages is incremented by 1, the number of setting stages stored in the RAM 13 is updated and stored in step S12. For example, the set stage number of param-1 (margin check parameter) is updated and stored from “set-1” to “set-2”.

そして、param−1(マージンチェックパラメータ)の設定段階数がset−3を超えているか否かが判別される(ステップS152)。本ステップの判別は、予め、RAM13に記憶されている各デコードパラメータの設定段階数の上限値と、ステップS151においてRAM13に更新記憶された各デコードパラメータの設定段階数とが比較されることにより行われる。ステップS155、S157、S159、S161、S163、S165、S167、S169、S171においても同様の処理が行われる。例えば、本ステップにおいては、予めRAM13に記憶されているparam−1(マージンチェックパラメータ)の設定段階数の上限値(「set−3」)と、ステップS152においてRAM13に更新記憶された設定段階数「set−2」とが比較される。この場合、「set−2」は「set−3」を超えないので、判別結果は「NO」となり、以降の処理が行われる。そして、パラメータカスタマイズ処理が繰り返し実行され(例えば、後述するステップS19;NO又はステップS21;NOの場合は、パラメータカスタマイズ処理が繰り返し実行される)、param−1(マージンチェックパラメータ)の設定段階数が「set−4」となると、判別結果は「YES」となり、ステップS154に移行することとなる。   Then, it is determined whether or not the number of setting stages of param-1 (margin check parameter) exceeds set-3 (step S152). The determination in this step is performed by comparing the upper limit value of the number of setting stages of each decoding parameter stored in the RAM 13 in advance with the number of setting stages of each decoding parameter updated and stored in the RAM 13 in step S151. Is called. Similar processing is performed in steps S155, S157, S159, S161, S163, S165, S167, S169, and S171. For example, in this step, the upper limit value (“set-3”) of the number of setting stages of param-1 (margin check parameter) stored in advance in the RAM 13 and the number of setting stages updated and stored in the RAM 13 in step S152. “Set-2” is compared. In this case, since “set-2” does not exceed “set-3”, the determination result is “NO”, and the subsequent processing is performed. Then, the parameter customization process is repeatedly executed (for example, step S19 described later; NO or step S21; if NO, the parameter customization process is repeatedly executed), and the number of setting stages of param-1 (margin check parameter) is set. When “set-4” is set, the determination result is “YES”, and the process proceeds to step S154.

param−1(マージンチェックパラメータ)の設定段階数がset−3を超えていないと判別された場合(ステップS152;NO)、パラメータカスタマイズは成功と設定される(ステップS153)。ステップS153の実行後、第1の処理のステップS16に移行される。param−1(マージンチェックパラメータ)の設定段階数がset−3を超えていると判別された場合(ステップS152;YES)、param−2(キャラクタ間ギャップパラメータ)の設定段階数が+1され、param−1(マージンチェックパラメータ)がset−1にセット(設定)される(ステップS154)。   If it is determined that the number of setting stages of param-1 (margin check parameter) does not exceed set-3 (step S152; NO), parameter customization is set as successful (step S153). After execution of step S153, the process proceeds to step S16 of the first process. If it is determined that the number of setting stages of param-1 (margin check parameter) exceeds set-3 (step S152; YES), the number of setting stages of param-2 (inter-character gap parameter) is incremented by one, and param -1 (margin check parameter) is set (set) to set-1 (step S154).

ステップS154の実行後、param−2(キャラクタ間ギャップパラメータ)の設定段階数がset−2を超えているか否かが判別される(ステップS155)。param−2(キャラクタ間ギャップパラメータ)の設定段階数がset−2を超えていないと判別された場合(ステップS155;NO)、ステップS153に移行される。param−2(キャラクタ間ギャップパラメータ)の設定段階数がset−2を超えていると判別された場合(ステップS155;YES)、param−3(デリネータパラメータ)の設定段階数が+1され、param−2(キャラクタ間ギャップパラメータ)がset−1に設定される(ステップS156)。   After execution of step S154, it is determined whether or not the number of steps set for param-2 (inter-character gap parameter) exceeds set-2 (step S155). If it is determined that the setting stage number of param-2 (inter-character gap parameter) does not exceed set-2 (step S155; NO), the process proceeds to step S153. If it is determined that the number of setting stages of param-2 (inter-character gap parameter) exceeds set-2 (step S155; YES), the number of setting stages of param-3 (delineator parameter) is incremented by one, and param -2 (gap parameter between characters) is set to set-1 (step S156).

ステップS156の実行後、param−3(デリネータパラメータ)の設定段階数がset−2を超えているか否かが判別される(ステップS157)。param−3(デリネータパラメータ)の設定段階数がset−2を超えていないと判別された場合(ステップS157;NO)、ステップS153に移行される。param−3(デリネータパラメータ)の設定段階数がset−2を超えていると判別された場合(ステップS157;YES)、param−4(閾値(倍率)パラメータ)の設定段階数が+1され、param−3(デリネータパラメータ)がset−1に設定される(ステップS158)。   After execution of step S156, it is determined whether or not the number of setting stages of param-3 (a delineator parameter) exceeds set-2 (step S157). If it is determined that the number of setting stages of param-3 (a delineator parameter) does not exceed set-2 (step S157; NO), the process proceeds to step S153. If it is determined that the number of setting stages of param-3 (delineator parameter) exceeds set-2 (step S157; YES), the number of setting stages of param-4 (threshold (magnification) parameter) is incremented by 1, param-3 (a delineator parameter) is set to set-1 (step S158).

ステップS158の実行後、param−4(閾値(倍率)パラメータ)の設定段階数がset−8を超えているか否かが判別される(ステップS159)。param−4(閾値(倍率)パラメータ)の設定段階数がset−8を超えていないと判別された場合(ステップS159;NO)、ステップS153に移行される。param−4(閾値(倍率)パラメータ)の設定段階数がset−8を超えていると判別された場合(ステップS159;YES)、param−5(閾値(基準位置)パラメータ)の設定段階数が+1され、param−4(閾値(倍率)パラメータ)がset−1に設定される(ステップS160)。   After execution of step S158, it is determined whether or not the number of setting stages of param-4 (threshold (magnification) parameter) exceeds set-8 (step S159). When it is determined that the number of setting stages of param-4 (threshold (magnification) parameter) does not exceed set-8 (step S159; NO), the process proceeds to step S153. When it is determined that the number of setting stages of param-4 (threshold (magnification) parameter) exceeds set-8 (step S159; YES), the number of setting stages of param-5 (threshold (reference position) parameter) is +1 and param-4 (threshold (magnification) parameter) is set to set-1 (step S160).

ステップS160の実行後、param−5(閾値(基準位置)パラメータ)の設定段階数がset−6を超えているか否かが判別される(ステップS161)。param−5(閾値(基準位置)パラメータ)の設定段階数がset−6を超えていないと判別された場合(ステップS161;NO)、ステップS153に移行される。param−5(閾値(基準位置)パラメータ)の設定段階数がset−6を超えていると判別された場合(ステップS161;YES)、param−6(閾値(白黒)パラメータ)の設定段階数が+1され、param−5(閾値(基準位置)パラメータ)がset−1に設定される(ステップS162)。   After execution of step S160, it is determined whether or not the number of steps set for param-5 (threshold (reference position) parameter) exceeds set-6 (step S161). When it is determined that the number of setting stages of param-5 (threshold (reference position) parameter) does not exceed set-6 (step S161; NO), the process proceeds to step S153. When it is determined that the number of setting stages of param-5 (threshold (reference position) parameter) exceeds set-6 (step S161; YES), the number of setting stages of param-6 (threshold (monochrome) parameter) is +1 and param-5 (threshold (reference position) parameter) is set to set-1 (step S162).

ステップS162の実行後、param−6(閾値(白黒)パラメータ)の設定段階数がset−2を超えているか否かが判別される(ステップS163)。param−6(閾値(白黒)パラメータ)の設定段階数がset−2を超えていないと判別された場合(ステップS163;NO)、ステップS153に移行される。param−6(閾値(白黒)パラメータ)の設定段階数がset−2を超えていると判別された場合(ステップS163;YES)、param−7(太り細り補正パラメータ)の設定段階数が+1され、param−6(閾値(白黒)パラメータ)がset−1に設定される(ステップS164)。   After execution of step S162, it is determined whether or not the number of steps set for param-6 (threshold (monochrome) parameter) exceeds set-2 (step S163). If it is determined that the number of setting stages of param-6 (threshold (monochrome) parameter) does not exceed set-2 (step S163; NO), the process proceeds to step S153. If it is determined that the number of setting steps of param-6 (threshold (monochrome) parameter) exceeds set-2 (step S163; YES), the number of setting steps of param-7 (thickening correction parameter) is incremented by one. , Param-6 (threshold (monochrome) parameter) is set to set-1 (step S164).

ステップS164の実行後、param−7(太り細り補正パラメータ)の設定段階数がset−5を超えているか否かが判別される(ステップS165)。param−7(太り細り補正パラメータ)の設定段階数がset−5を超えていないと判別された場合(ステップS165;NO)、ステップS153に移行される。param−7(太り細り補正パラメータ)の設定段階数がset−5を超えていると判別された場合(ステップS165;YES)、param−8(ノイズパラメータ)の設定段階数が+1され、param−7(太り細り補正パラメータ)がset−1に設定される(ステップS166)。   After the execution of step S164, it is determined whether or not the number of steps set for param-7 (thickness correction parameter) exceeds set-5 (step S165). When it is determined that the number of setting stages of param-7 (thickening / thinning correction parameter) does not exceed set-5 (step S165; NO), the process proceeds to step S153. If it is determined that the number of setting stages of param-7 (thickness correction parameter) exceeds set-5 (step S165; YES), the number of setting stages of param-8 (noise parameter) is incremented by 1 and param- 7 (thickness / thinning correction parameter) is set to set-1 (step S166).

ステップS166の実行後、param−8(ノイズパラメータ)の設定段階数がset−5を超えているか否かが判別される(ステップS167)。param−8(ノイズパラメータ)の設定段階数がset−5を超えていないと判別された場合(ステップS167;NO)、ステップS153に移行される。param−8(ノイズパラメータ)の設定段階数がset−5を超えていると判別された場合(ステップS167;YES)、param−9(キャラクタ間差異パラメータ)の設定段階数が+1され、param−8(ノイズパラメータ)がset−1に設定される(ステップS168)。   After execution of step S166, it is determined whether or not the number of setting steps of param-8 (noise parameter) exceeds set-5 (step S167). When it is determined that the number of setting stages of param-8 (noise parameter) does not exceed set-5 (step S167; NO), the process proceeds to step S153. If it is determined that the number of setting steps of param-8 (noise parameter) exceeds set-5 (step S167; YES), the number of setting steps of param-9 (character difference parameter between characters) is incremented by 1 and param- 8 (noise parameter) is set to set-1 (step S168).

ステップS168の実行後、param−9(キャラクタ間差異パラメータ)の設定段階数がset−2を超えているか否かが判別される(ステップS169)。param−9(キャラクタ間差異パラメータ)の設定段階数がset−2を超えていないと判別された場合(ステップS169;NO)、ステップS153に移行される。param−9(キャラクタ間差異パラメータ)の設定段階数がset−2を超えていると判別された場合(ステップS169;YES)、param−10(最大最小チェックパラメータ)の設定段階数が+1され、param−9(キャラクタ間差異パラメータ)がset−1に設定される(ステップS170)。   After execution of step S168, it is determined whether or not the number of steps set for param-9 (character difference parameter) exceeds set-2 (step S169). If it is determined that the number of setting stages of param-9 (character difference parameter) does not exceed set-2 (step S169; NO), the process proceeds to step S153. When it is determined that the number of setting stages of param-9 (character difference parameter) exceeds set-2 (step S169; YES), the number of setting stages of param-10 (maximum / minimum check parameter) is incremented by 1, param-9 (character difference parameter) is set to set-1 (step S170).

ステップS170の実行後、param−10(最大最小チェックパラメータ)の設定段階数がset−2を超えているか否かが判別される(ステップS171)。param−10(最大最小チェックパラメータ)の設定段階数がset−2を超えていないと判別された場合(ステップS171;NO)、ステップS153に移行される。param−10(最大最小チェック)の設定段階数がset−2を超えていると判別された場合(ステップS171;YES)、パラメータカスタマイズが失敗したと判断される(ステップS172)。ステップS172の実行後、第1の処理のステップS16に移行される。   After execution of step S170, it is determined whether or not the number of setting stages of param-10 (maximum / minimum check parameter) exceeds set-2 (step S171). If it is determined that the number of setting stages of param-10 (maximum / minimum check parameter) does not exceed set-2 (step S171; NO), the process proceeds to step S153. If it is determined that the number of setting stages of param-10 (maximum / minimum check) exceeds set-2 (step S171; YES), it is determined that parameter customization has failed (step S172). After execution of step S172, the process proceeds to step S16 of the first process.

そして、ステップS15で実行されたパラメータカスタマイズ処理の結果に基づいて、パラメータ組合せのカスタマイズが失敗したか否かが判別される(ステップS16)。パラメータ組合せのカスタマイズが失敗したと判別された場合(ステップS16;YES)、読取はNGであると判断される(ステップS17)。パラメータ組合せのカスタマイズが成功したと判別された場合(ステップS16;NO)、合計値算出処理が実行される(ステップS18)。   Then, based on the result of the parameter customization process executed in step S15, it is determined whether or not the parameter combination customization has failed (step S16). If it is determined that the parameter combination customization has failed (step S16; YES), it is determined that the reading is NG (step S17). When it is determined that the parameter combination has been successfully customized (step S16; NO), a total value calculation process is executed (step S18).

次に、図14を参照して、合計値算出処理について説明する。
先ず、パラメータカスタマイズ処理において設定された各デコードパラメータの設定段階数がRAM13から取得される。そして、パラメータ点数テーブル90が検索され、param−1(マージンチェックパラメータ)の現在の設定段階数(設定数)に対応する点数が取得される(ステップS181)。そして、パラメータ点数テーブル90が検索され、param−2(キャラクタ間ギャップパラメータ)の現在の設定数に対応する点数が取得される(ステップS182)。そして、パラメータ点数テーブル90が検索され、param−3(デリネータパラメータ)の現在の設定数に対応する点数が取得される(ステップS183)。そして、パラメータ点数テーブル90が検索され、param−4(閾値(倍率)パラメータ)の現在の設定数に対応する点数が取得される(ステップS184)。そして、パラメータ点数テーブル90が検索され、param−5(閾値(基準位置)パラメータ)の現在の設定数に対応する点数が取得される(ステップS185)。そして、パラメータ点数テーブル90が検索され、param−6(閾値(白黒パラメータ)の現在の設定数に対応する点数が取得される(ステップS186)。そして、パラメータ点数テーブル90が検索され、param−7(太り細り補正パラメータ)の現在の設定数に対応する点数が取得される(ステップS187)。そして、パラメータ点数テーブル90が検索され、param−8(ノイズパラメータ)の現在の設定数に対応する点数が取得される(ステップS188)。そして、パラメータ点数テーブル90が検索され、param−9(キャラクタ間ギャップパラメータ)の現在の設定数に対応する点数が取得される(ステップS189)。そして、パラメータ点数テーブル90が検索され、param−10(最大最小チェックパラメータ)の現在の設定数に対応する点数が取得される(ステップS190)。
Next, the total value calculation process will be described with reference to FIG.
First, the number of setting stages of each decoding parameter set in the parameter customization process is acquired from the RAM 13. Then, the parameter score table 90 is searched, and a score corresponding to the current set stage number (set number) of param-1 (margin check parameter) is obtained (step S181). Then, the parameter score table 90 is searched, and the score corresponding to the current set number of param-2 (inter-character gap parameter) is acquired (step S182). Then, the parameter score table 90 is searched, and a score corresponding to the current set number of param-3 (a delineator parameter) is acquired (step S183). Then, the parameter score table 90 is searched, and the score corresponding to the current set number of param-4 (threshold (magnification) parameter) is acquired (step S184). Then, the parameter score table 90 is searched, and a score corresponding to the current set number of param-5 (threshold (reference position) parameter) is acquired (step S185). Then, the parameter score table 90 is searched, and the score corresponding to the current set number of param-6 (threshold value (monochrome parameter) is obtained (step S186), and the parameter score table 90 is searched and param-7. The score corresponding to the current set number of (thickness correction parameter) is acquired (step S187), and the parameter score table 90 is searched, and the score corresponding to the current set number of param-8 (noise parameter). (Step S188) The parameter score table 90 is searched, and the score corresponding to the current set number of param-9 (inter-character gap parameter) is acquired (Step S189). Table 90 is searched and param-10 (maximum minimum Tsu number corresponding to the current set number of click parameters) is acquired (step S190).

ステップS190の実行後、ステップS181〜ステップS190において取得された点数が合計される(ステップS191)。そして、組合せ点数テーブル91が検索され、param−1〜param−10の各設定段階数の組合せに対応する点数倍率が取得される(ステップS192)。具体的には、設定された各デコードパラメータの設定段階数と一致する組合せNo.が組合せ点数テーブル91の中から検索され、検索された組合せNo.に対応する点数倍率が取得される。そして、ステップS191において合計された合計点数に対し、ステップS192において取得された点数倍率の積算が行われる(ステップS193)。ステップS193の実行後、図11に示す第1の処理のステップS19に移行される。   After execution of step S190, the points acquired in steps S181 to S190 are summed (step S191). Then, the combination score table 91 is searched, and the score magnification corresponding to each combination of the set stage numbers of param-1 to param-10 is acquired (step S192). Specifically, the combination No. that matches the set number of steps of each decoding parameter is set. Is retrieved from the combination score table 91, and the retrieved combination No. The score magnification corresponding to is acquired. Then, the score multiplication obtained in step S192 is added to the total score totaled in step S191 (step S193). After execution of step S193, the process proceeds to step S19 of the first process shown in FIG.

そして、ステップS18の合計値算出処理により算出された合計値(合計点数と点数倍率との積算値)が許容値よりも小さいか否かが判別される(ステップS19)。ここで、許容値とは、カスタマイズパラメータの設定段階数でデコードを行うか否かを判別するための閾値であり、フラッシュメモリ17に予め記憶されている値である。例えば、許容値が10であり、合計値算出処理のステップS192において、組合せ点数テーブル91の組合せNo.2が検索されたとする。この場合、param−1(マージンチェックパラメータ)は「set−2」(点数2)、param−2(キャラクタ間ギャップパラメータ)は「set−1」(点数0)、param−3(デリネータパラメータ)は、「set−2」(点数2)、param−4(閾値(倍率)パラメータ)は、「set−1」(点数0)、param−5(閾値(基準位置)パラメータ)は、「set−1」(点数0)、param−6(閾値(白黒)パラメータ)は、「set−1」(点数0)、param−7(太り細り補正パラメータ)は、「set−1」(点数0)、param−8(ノイズパラメータ)は、「set−1」(点数0)、param−9(キャラクタ間差異パラメータ)は、「set−1」(点数0)、param−10(最大最小チェックパラメータ)は、「set−1」(点数0)となる。したがって、合計点数は、「4」となる。また、組合せNo.2における点数倍率は、1.0であるので、合計値=4×1.0=4となる。この場合、許容値「10」よりも合計値「4」は、小さい値であるので、信頼できるデコードパラメータの組合せと判断され、デコード可能と判断される。   Then, it is determined whether or not the total value calculated by the total value calculation process of step S18 (the integrated value of the total score and the score magnification) is smaller than the allowable value (step S19). Here, the allowable value is a threshold value for determining whether or not to perform decoding based on the number of customization parameter setting steps, and is a value stored in advance in the flash memory 17. For example, the allowable value is 10, and in step S192 of the total value calculation process, the combination No. in the combination score table 91 is set. 2 is searched. In this case, param-1 (margin check parameter) is “set-2” (2 points), param-2 (character gap parameter) is “set-1” (0 points), and param-3 (delineator parameter). "Set-2" (point 2), param-4 (threshold (magnification) parameter) is "set-1" (point 0), param-5 (threshold (reference position) parameter) is "set-" 1 ”(score 0), param-6 (threshold (monochrome) parameter) is“ set-1 ”(score 0), param-7 (thickness correction parameter) is“ set-1 ”(score 0), param-8 (noise parameter) is “set-1” (point 0), param-9 (character difference parameter) is “set-1” (point 0), param-10 ( Large minimum check parameter) is "set-1" (score 0). Therefore, the total score is “4”. In addition, combination No. Since the point magnification in 2 is 1.0, the total value = 4 × 1.0 = 4. In this case, since the total value “4” is smaller than the allowable value “10”, it is determined as a reliable combination of decoding parameters, and is determined to be decodable.

また、例えば、合計値算出処理のステップS192において、組合せ点数テーブル91の組合せNo.26が検索されたとする。この場合、param−1(マージンチェックパラメータ)は「set−3」(点数4)、param−2(キャラクタ間ギャップパラメータ)は「set−2」(点数3)、param−3(デリネータパラメータ)は、「set−1」(点数0)、param−4(閾値(倍率)パラメータ)は、「set−1」(点数0)、param−5(閾値(基準位置)パラメータ)は、「set−1」(点数0)、param−6(閾値(白黒)パラメータ)は、「set−1」(点数0)、param−7(太り細り補正パラメータ)は、「set−1」(点数0)、param−8(ノイズパラメータ)は、「set−1」(点数0)、param−9(キャラクタ間差異パラメータ)は、「set−1」(点数0)、param−10(最大最小チェックパラメータ)は、「set−1」(点数0)となる。したがって、合計点数は、「7」となる。また、組合せNo.26における点数倍率は、2.0であるので、合計値=7×2.0=14となる。この場合、許容値「10」よりも合計値「14」は、大きい値であるので、誤読のリスクが高いデコードパラメータの組合せと判断され、デコード不可と判断される。   For example, in step S192 of the total value calculation process, the combination No. in the combination score table 91 is set. Suppose that 26 is retrieved. In this case, param-1 (margin check parameter) is “set-3” (score 4), param-2 (character gap parameter) is “set-2” (score 3), param-3 (delineator parameter). "Set-1" (point 0), param-4 (threshold (magnification) parameter) is "set-1" (point 0), param-5 (threshold (reference position) parameter) is "set-" 1 ”(score 0), param-6 (threshold (monochrome) parameter) is“ set-1 ”(score 0), param-7 (thickness correction parameter) is“ set-1 ”(score 0), param-8 (noise parameter) is “set-1” (point 0), param-9 (character difference parameter) is “set-1” (point 0), param-10 ( Large minimum check parameter) is "set-1" (score 0). Therefore, the total score is “7”. In addition, combination No. Since the point magnification at 26 is 2.0, the total value = 7 × 2.0 = 14. In this case, since the total value “14” is larger than the allowable value “10”, it is determined that the combination of decoding parameters has a high risk of misreading, and it is determined that decoding is impossible.

ステップS19の実行後、カスタマイズされたパラメータを反映してデコードが実行される(ステップS20)。具体的には、各デコードパラメータで選択された設定段階数に対応する設定内容に応じてデコードが実行される。例えば、各デコードパラメータの組合せが組合せ点数テーブル91における組合せNo.2に該当したとする。この場合、param−1(マージンチェックパラメータ)の設定内容は「set−2」より「4倍」、param−2(キャラクタ間ギャップパラメータ)の設定内容は「set−1」より「無効」、param−3(デリネータパラメータ)の設定内容は、「set−2」より「無効」、param−4(閾値(倍率)パラメータ)の設定内容は、「set−1」より「黒*1.5 白*1.5」、param−5(閾値(基準位置)パラメータ)の設定内容は、「set−1」より「LeftGB:(白+黒)/2」、param−6(閾値(白黒)パラメータ)の設定内容は、「set−1」より「白黒混合計算」、param−7(太り細り補正パラメータ)の設定内容は、「set−1」より「補正なし」、param−8(ノイズパラメータ)の設定内容は、「set−1」より「無効」、param−9(キャラクタ間差異パラメータ)の設定内容は、「set−1」より「有効」、param−10(最大最小チェックパラメータ)の設定内容は、「set−1」より「有効」となる。この各デコードパラメータの設定内容で本ステップのデコードが実行される。   After execution of step S19, decoding is performed reflecting the customized parameters (step S20). Specifically, decoding is executed according to the setting content corresponding to the number of setting steps selected by each decoding parameter. For example, the combination of each decoding parameter is the combination No. Suppose that it corresponds to 2. In this case, the setting content of param-1 (margin check parameter) is “4 times” from “set-2”, and the setting content of param-2 (inter-character gap parameter) is “invalid” from “set-1”. -3 (Delineator parameter) is set to “invalid” from “set-2”, and param-4 (threshold (magnification) parameter) is set to “black * 1.5 white” from “set-1”. * 1.5 ”and param-5 (threshold (reference position) parameter) are set from“ set-1 ”to“ LeftGB: (white + black) / 2 ”, param-6 (threshold (monochrome) parameter) The setting content of “black and white mixed calculation” from “set-1” and the setting content of param-7 (thickening / thinning correction parameter) are set to “no correction” and param-8 from “set-1”. The setting content of “parameter” is “invalid” from “set-1”, and the setting content of param-9 (character difference parameter) is “valid” from “set-1”, and param-10 (maximum / minimum check parameter). ) Is “valid” from “set-1”. The decoding of this step is executed with the setting contents of each decoding parameter.

そして、デコード結果がOKか否かが判別される(ステップS21)。具体的には、ステップS20において実行されたデコードが完了したか否か(すなわち、なんらかの文字や数値への変換が完了したか否か)に基づいて、デコード結果がOKか否かが判別される。デコード結果がOKでないと判別された場合(ステップS21;NO)、ステップS15に移行される。デコード結果がOKであると判別された場合(ステップS21;YES)、読取OKであると判断される(ステップS22)。ステップS22の実行後、第1の処理は終了される。   Then, it is determined whether or not the decoding result is OK (step S21). Specifically, it is determined whether or not the decoding result is OK based on whether or not the decoding executed in step S20 has been completed (that is, whether or not conversion to any character or numerical value has been completed). . When it is determined that the decoding result is not OK (step S21; NO), the process proceeds to step S15. When it is determined that the decoding result is OK (step S21; YES), it is determined that the reading is OK (step S22). After execution of step S22, the first process is terminated.

以上、本実施の形態によれば、デコードパラメータの合計点数と点数倍率との積算値に基づいて、スキャナ部16により読取データのデコードを実行する。これにより、例えば、印刷品質が悪いバーコードであっても、デコードパラメータの合計点数と点数倍率との積算値に基づいて読取データのデコードが実行されるので、デコードの信頼性を向上させることができ、バーコードの誤読を防止することができる。また、バーコードの誤読を防止することができるので、より多くのバーコードの読取りを行うことが可能となる。   As described above, according to the present embodiment, the scanner unit 16 decodes the read data based on the integrated value of the total score and the score magnification of the decode parameters. Thereby, for example, even for a barcode with poor print quality, the read data is decoded based on the integrated value of the total score and the score magnification of the decode parameter, so that the reliability of decoding can be improved. It is possible to prevent erroneous reading of the barcode. Further, since misreading of bar codes can be prevented, more bar codes can be read.

また、デコードパラメータの合計点数と点数倍率との積算値が許容値を超える場合は、デコードを実行せず、デコードパラメータの合計点数と点数倍率との積算値が予め決められた許容値内の場合は、生成された組合せに基づいてデコードを実行する。これにより、デコードの信頼性の低いバーコード(すなわち、誤読の可能性の高いバーコード)のデコードは実行されないので、デコードの信頼性を向上させることができ、バーコードの誤読を防止することができる。   Also, if the integrated value of the total score and the point magnification of the decode parameter exceeds the allowable value, the decoding is not executed, and the integrated value of the total score and the point magnification of the decode parameter is within a predetermined allowable value Performs decoding based on the generated combination. As a result, since the decoding of the barcode with low reliability of decoding (that is, the barcode with high possibility of misreading) is not executed, the reliability of decoding can be improved and the misreading of the barcode can be prevented. it can.

また、各デコードパラメータ設定段階に対応してデコードパラメータの点数をフラッシュメモリ17に記憶する。これにより、設定段階に応じて、各デコードパラメータの点数を設定しているので、各デコードパラメータに応じたデコードの信頼性を合計値(合計点数と点数倍率との積算値)に反映することができる。その結果、デコードの信頼性を保持しつつ、デコードパラメータをカスタマイズする(デコードパラメータを組合せる)自由度を向上させることができる。   Further, the decoding parameter score is stored in the flash memory 17 in correspondence with each decoding parameter setting stage. Thereby, since the score of each decoding parameter is set according to the setting stage, the reliability of decoding according to each decoding parameter can be reflected in the total value (the integrated value of the total score and the score multiplication factor). it can. As a result, it is possible to improve the degree of freedom for customizing the decoding parameters (combining the decoding parameters) while maintaining the decoding reliability.

また、合計点数と点数倍率とを積算して合計値を算出する。これにより、デコードパラメータの組合せ毎に設定された点数倍率を用いて合計値を算出するので、正確な合計値の算出が可能となる。したがって、デコードの信頼性を向上させることができる。   Also, the total value is calculated by integrating the total score and the score magnification. Thereby, since the total value is calculated using the point magnification set for each combination of the decoding parameters, it is possible to accurately calculate the total value. Therefore, the reliability of decoding can be improved.

(第2の実施の形態)
図15〜図18を参照して、本発明に係る第2の実施の形態を説明する。以下、バーコードリーダ1と同様な部分には同一の符号を付し、その詳細な説明を援用し、異なる部分について説明する。
(Second Embodiment)
A second embodiment according to the present invention will be described with reference to FIGS. Hereafter, the same code | symbol is attached | subjected to the part similar to the barcode reader 1, and the detailed description is used and a different part is demonstrated.

バーコードリーダ1において、ROM15に第2のプログラムが記憶される。   In the barcode reader 1, the second program is stored in the ROM 15.

出力手段、第1の調整手段、第1の記憶制御手段としてのCPU11は、ROM15に記憶された第2のプログラムとの協働により、点数倍率とデコードパラメータの合計点数との積算値が許容値を超える場合に、デコードされたデコード結果を出力し、出力されたデコード結果に基づいて、デコードパラメータの点数及び点数倍率を調整し、調整されたデコードパラメータの点数をパラメータ点数テーブル90に記憶させ、調整された点数倍率を組合せ点数テーブル91に記憶させる。
デコード結果を出力するとは、読取データのデコード結果を表示部14に表示することをいう。出力されたデコード結果に基づいてデコードパラメータの点数及び点数倍率を調整するとは、具体的には、表示されたデコード結果が正常なデータである場合、表示されたデコード結果のデコード時におけるデコードパラメータの点数及び点数倍率を下げることをいう。
The CPU 11 serving as the output means, the first adjustment means, and the first storage control means, in cooperation with the second program stored in the ROM 15, allows the integrated value of the point magnification and the total score of the decode parameters to be an allowable value. The decoded decoding result is output, and based on the output decoding result, the score and the score magnification of the decoding parameter are adjusted, and the adjusted decoding parameter score is stored in the parameter score table 90, The adjusted score magnification is stored in the combined score table 91.
Outputting the decoding result means displaying the decoding result of the read data on the display unit 14. Specifically, adjusting the decoding parameter score and the point magnification based on the output decoding result means that when the displayed decoding result is normal data, the decoding parameter of the decoding parameter at the time of decoding the displayed decoding result is It means lowering the score and the score magnification.

図15及び図16に第2の処理の流れを示す。第2の処理は、デコード結果を表示部14に表示し、表示されたデータが正常なデータであるとの入力があった場合、デコードパラメータの点数及び点数倍率を調整する処理である。   15 and 16 show the flow of the second process. The second process is a process of displaying the decoding result on the display unit 14 and adjusting the decoding parameter score and the score magnification when there is an input that the displayed data is normal data.

例えば、入力部12を介して第2の処理の実行指示が入力されたことをトリガとして、ROM15から読み出されて適宜RAM13に展開された第2のプログラムとCPU11との協働で、第2の処理が実行される。   For example, the second program read out from the ROM 15 and loaded in the RAM 13 as appropriate is triggered by the input of the execution instruction of the second process via the input unit 12, and the CPU 11 performs the second operation. The process is executed.

ステップS61〜S69は、第1の処理のステップS11〜S19と同様である。また、ステップS65において実行されるパラメータカスタマイズ処理は、第1の処理のステップS151〜S172で実行される処理と同様である。また、ステップS68において実行される合計値算出処理は、第1の処理のステップS181〜S193で実行される処理と同様である。   Steps S61 to S69 are the same as steps S11 to S19 of the first process. The parameter customization process executed in step S65 is the same as the process executed in steps S151 to S172 of the first process. The total value calculation process executed in step S68 is the same as the process executed in steps S181 to S193 of the first process.

ステップS69において、合計値が許容値よりも小さいと判別された場合(ステップS69;YES)、カスタマイズされたパラメータを反映してデコードが実行される(ステップS70)。そして、デコード結果がOKであるか否かが判別される(ステップS71)。デコード結果がOKでないと判別された場合(ステップS71;NO)、ステップS65に移行される。デコード結果がOKであると判別された場合(ステップS71;YES)、読取OKと判断される(ステップS72)。ステップS72の実行後、第2の処理は終了される。   If it is determined in step S69 that the total value is smaller than the allowable value (step S69; YES), decoding is performed by reflecting the customized parameters (step S70). Then, it is determined whether or not the decoding result is OK (step S71). When it is determined that the decoding result is not OK (step S71; NO), the process proceeds to step S65. If it is determined that the decoding result is OK (step S71; YES), it is determined that the reading is OK (step S72). After execution of step S72, the second process is terminated.

ステップS69において、合計値が許容値よりも大きい値であると判別された場合(ステップS69;NO)、カスタマイズされたパラメータを反映してデコードが実行される(ステップS73)。そして、デコード結果がOKか否かが判別される(ステップS74)。デコード結果がOKでないと判別された場合(ステップS74;NO)、ステップS65に移行される。デコード結果がOKであると判別された場合(ステップS74;YES)、デコードデータが表示部14に表示される(ステップS75)。例えば、デコードされた文字や数値等が表示部14に表示される。   If it is determined in step S69 that the total value is larger than the allowable value (step S69; NO), decoding is performed by reflecting the customized parameters (step S73). Then, it is determined whether or not the decoding result is OK (step S74). When it is determined that the decoding result is not OK (step S74; NO), the process proceeds to step S65. When it is determined that the decoding result is OK (step S74; YES), the decoded data is displayed on the display unit 14 (step S75). For example, decoded characters and numerical values are displayed on the display unit 14.

ステップS74の実行後、表示部14に表示された表示データに対して、正常なデータであるか、それとも間違ったデータであるか、ユーザによる入力を待機する待機状態となる(ステップS76)。そして、正常なデータであるとの入力があるか否かが判別される(ステップS77)。例えば、ユーザにより、ステップS76において表示部14に表示された表示データが参照され、正常な値であると判断された場合は、正常な結果であるとの入力が入力部12を介して受け付けられる。一方、ユーザにより表示データが正常な値でないと判断された場合は、正常な値でないとの入力が入力部12を介して受け付けられる。   After execution of step S74, the display data displayed on the display unit 14 is in a standby state waiting for input by the user as to whether it is normal data or incorrect data (step S76). Then, it is determined whether or not there is an input indicating normal data (step S77). For example, when the display data displayed on the display unit 14 in step S76 is referred to by the user and is determined to be a normal value, an input indicating a normal result is received via the input unit 12. . On the other hand, when the user determines that the display data is not a normal value, an input indicating that the display data is not a normal value is received via the input unit 12.

ステップS77において、正常な結果であるとの入力がないと判別された場合(ステップS77;NO)、ステップS65に移行される。ステップS77において、正常な結果であるとの入力の受付があると判別された場合(ステップS77;YES)、使用中のパラメータ組合せに対する点数及び点数倍率が下げられる(ステップS78)。例えば、ステップS68の合計値算出処理において、組合せNo.26の組合せが検索されたとする。この場合において、ステップS77で正常な結果であるとの入力があると判別されると、使用中のデコードパラメータの組合せに対する点数及び点数倍率が下げられる。例えば、デコード時において、図17(A)に示すように、パラメータ点数テーブル90のparam−1(マージンチェックパラメータ)の設定段階数set−3における点数が「4」、param−2(キャラクタ間ギャップパラメータ)の設定段階数set−2における点数が「3」であったとする。この場合、図17(B)に示すように、パラメータ点数テーブル90のparam−1(マージンチェックパラメータ)の設定段階数set−3における点数が「3」、param−2(キャラクタ間ギャップパラメータ)の設定段階数set−2における点数が「2」に調整される。また、図18に示すように、組合せ倍率テーブル91の組合せNo.26における点数倍率が2.0から1.9に調整される。調整されたデコードパラメータ点数はパラメータ点数テーブル90、点数倍率は組合せ点数テーブル91にそれぞれ反映され、更新記憶される。調整後のパラメータ点数テーブル90及び組合せ点数テーブル91は、以後のバーコードの読取り時に使用される。そして、ステップS78の実行後、ステップS65に移行される。   If it is determined in step S77 that there is no input that the result is normal (step S77; NO), the process proceeds to step S65. In step S77, when it is determined that there is an input indicating that the result is normal (step S77; YES), the score and the score magnification for the parameter combination in use are lowered (step S78). For example, in the total value calculation process in step S68, the combination No. Suppose that 26 combinations are retrieved. In this case, if it is determined in step S77 that there is an input indicating that the result is normal, the score and the score magnification for the combination of decoding parameters in use are lowered. For example, at the time of decoding, as shown in FIG. 17A, the score in the set stage number set-3 of param-1 (margin check parameter) in the parameter score table 90 is “4”, param-2 (inter-character gap). It is assumed that the number of points in the setting stage number set-2 of “parameter” is “3”. In this case, as shown in FIG. 17B, the number of points in the set stage number set-3 of param-1 (margin check parameter) in the parameter score table 90 is “3” and param-2 (inter-character gap parameter). The score in the set stage number set-2 is adjusted to “2”. In addition, as shown in FIG. The point magnification at 26 is adjusted from 2.0 to 1.9. The adjusted decoding parameter score is reflected in the parameter score table 90 and the score magnification is reflected in the combination score table 91, and updated. The adjusted parameter score table 90 and the combined score table 91 are used for subsequent barcode reading. And after execution of step S78, it transfers to step S65.

以上、本実施の形態によれば、合計値が許容値を超える場合、デコード結果を表示部14に表示する。これにより、ユーザは、表示部14に表示されたデコード結果を確認し、デコードを行うか否かを判断することができる。したがって、ユーザの判断に応じてデコードを行うことができる。また、ユーザの判断に応じてデコードを行うことができるので、例えば、正常なデコード結果が得られているのに、算出された合計値が許容値を超えている場合の読取データに対してもデコードを行うことが可能となり、バーコードの読取り範囲を広げることが可能となる。   As described above, according to the present embodiment, when the total value exceeds the allowable value, the decoding result is displayed on the display unit 14. As a result, the user can confirm the decoding result displayed on the display unit 14 and determine whether or not to perform decoding. Therefore, decoding can be performed according to the user's judgment. In addition, since decoding can be performed according to the user's judgment, for example, even when read data is obtained when the calculated total value exceeds the allowable value even though a normal decoding result is obtained. Decoding can be performed, and the barcode reading range can be expanded.

また、デコードパラメータの点数及び点数倍率の調整後は、調整されたデコードパラメータの点数及び点数倍率を用いてデコードを行うことができる。これにより、デコードパラメータの点数及び点数倍率の調整後は、ユーザの判断が反映されたデコードパラメータの点数及び点数倍率を用いてデコードを行うことが可能となる。   In addition, after the decoding parameter score and the point magnification are adjusted, decoding can be performed using the adjusted decoding parameter score and the point magnification. As a result, after adjustment of the decoding parameter score and the score magnification, it is possible to perform decoding using the decoding parameter score and the score magnification reflecting the user's judgment.

(第3の実施の形態)
図19を参照して、本発明に係る第3の実施の形態を説明する。以下、バーコードリーダ1と同様な部分には同一の符号を付し、その詳細な説明を援用し、異なる部分について説明する。
(Third embodiment)
A third embodiment according to the present invention will be described with reference to FIG. Hereafter, the same code | symbol is attached | subjected to the part similar to the barcode reader 1, and the detailed description is used and a different part is demonstrated.

バーコードリーダ1において、ROM15に第3のプログラムが記憶される。   In the barcode reader 1, the third program is stored in the ROM 15.

第2のデコード制御手段、第2の調整手段、第2の記憶制御手段としてのCPU11は、ROM15に記憶された第3のプログラムとの協働により、生成された組合せに基づいて、読取データのデコードを実行させるか否かを制御し、読取データのデコードが実行された場合、当該デコードされたデコード結果とバーコードが正当にデコードされたデコード結果とが一致するか否かを比較し、当該比較結果に基づいて、デコードパラメータの点数及び点数倍率を調整し、調整されたデコードパラメータの点数をパラメータ点数テーブル90に記憶させ、調整された点数倍率を組合せ点数テーブル91に記憶させる。
バーコードが正当にデコードされたデコード結果とは、ダメージバーコードのサンプルであるサンプルバーコードが正しく読めた時(デコードできた時)の正しいデコード結果のことをいう。
比較結果に基づいて、デコードパラメータの点数及び点数倍率を調整するとは、例えば、読取データがデコードされたデコード結果と、サンプルバーコードが正しく読めたときの正しいデコード結果とが一致する場合、読取データのデコード時におけるデコードパラメータの点数及び点数倍率を下げることをいう。また、読取データがデコードされたデコード結果と、サンプルバーコードが正しく読めたときの正しいデコード結果とが一致しない場合、読取データのデコード時におけるデコードパラメータの点数及び点数倍率を上げることをいう。
The CPU 11 serving as the second decoding control means, the second adjustment means, and the second storage control means, based on the generated combination in cooperation with the third program stored in the ROM 15, Control whether or not to execute decoding, and when decoding of read data is executed, compare whether or not the decoded decoding result and the decoding result obtained by properly decoding the barcode match, Based on the comparison result, the score and the score magnification of the decoding parameter are adjusted, the adjusted score of the decoding parameter is stored in the parameter score table 90, and the adjusted score magnification is stored in the combination score table 91.
The decoding result obtained by properly decoding the barcode means a correct decoding result when the sample barcode that is a damaged barcode sample can be read correctly (when decoded).
Based on the comparison result, adjusting the decode parameter score and the score multiplication factor is, for example, when the decode result obtained by decoding the read data matches the correct decode result obtained when the sample barcode is read correctly. This means that the decoding parameter score and the point magnification are reduced at the time of decoding. Further, when the decode result obtained by decoding the read data does not match the correct decode result when the sample bar code is read correctly, it means that the decode parameter score and the score magnification at the time of decoding the read data are increased.

図19に第3の処理の流れを示す。第3の処理は、デコードパラメータのカスタマイズ(組合せ)が成功したか否かに基づいて、デコード実行を制御し、デコードを実行した場合、デコード結果とサンプルコードのデコード結果とを比較してデコードパラメータの点数及び点数倍率を調整する処理である。   FIG. 19 shows the flow of the third process. The third process controls the decoding execution based on whether or not the decoding parameter customization (combination) has succeeded. When decoding is executed, the decoding parameter is compared with the decoding result of the sample code. Is a process of adjusting the score and the score magnification.

例えば、入力部12を介して第3の処理の実行指示が入力されたことをトリガとして、ROM15から読み出されて適宜RAM13に展開された第3のプログラムとCPU11との協働で、第3の処理が実行される。   For example, the third program read from the ROM 15 and appropriately expanded in the RAM 13 is triggered by the input of the execution instruction of the third process via the input unit 12 and the CPU 11 and the third process is executed. The process is executed.

先ず、ダメージバーコードのサンプルであるサンプルバーコードが正しく読めた時の正しいデコード結果(文字又は数値)をフラッシュメモリ17に記憶させる(ステップS81)。そして、ユーザから入力部12を介してバーコード読取りの開始キーが入力されることにより、バーコードの読取りが開始される(ステップS82)。そして、ステップS82により読取られた読取データが取得される(ステップS83)。そして、現在のカスタマイズパラメータの組合せが初期化される(ステップS84)。そして、パラメータカスタマイズ処理が実行される(ステップS85)。パラメータカスタマイズ処理は、第1の処理のステップS151〜S172で実行される処理と同様である。   First, a correct decoding result (characters or numerical values) when a sample barcode as a damage barcode sample is correctly read is stored in the flash memory 17 (step S81). Then, a barcode reading start key is input from the user via the input unit 12, whereby barcode reading is started (step S82). Then, the read data read in step S82 is acquired (step S83). Then, the current combination of customization parameters is initialized (step S84). Then, parameter customization processing is executed (step S85). The parameter customization process is the same as the process executed in steps S151 to S172 of the first process.

ステップS85の実行後、カスタマイズが失敗したか否かが判別される(ステップS86)。カスタマイズが失敗したと判別された場合(ステップS86;YES)、第3の処理は終了される。   After execution of step S85, it is determined whether or not customization has failed (step S86). When it is determined that the customization has failed (step S86; YES), the third process is terminated.

ステップS86において、カスタマイズが成功したと判別された場合(ステップS86;NO)、カスタマイズされたパラメータを反映してデコードが実行される(ステップS87)。そして、デコード結果がOKか否かが判別される(ステップS88)。デコード結果がOKでないと判別された場合(ステップS88;NO)、ステップS85に移行される。デコード結果がOKであると判別された場合(ステップS88;YES)、ステップS87においてデコードされたデコード結果がステップS81において記憶された正しいデコード結果と一致するか否かが判別される(ステップS89)。具体的には、ステップS87においてデコードされた結果(例えば、文字や数値のデータ)がステップS81においてフラッシュメモリ17に記憶された正しいデコード結果(例えば、文字や数値のデータ)と一致するか否かが判別される。   If it is determined in step S86 that the customization has been successful (step S86; NO), decoding is performed by reflecting the customized parameters (step S87). Then, it is determined whether or not the decoding result is OK (step S88). If it is determined that the decoding result is not OK (step S88; NO), the process proceeds to step S85. If it is determined that the decoding result is OK (step S88; YES), it is determined whether or not the decoding result decoded in step S87 matches the correct decoding result stored in step S81 (step S89). . Specifically, whether the result decoded in step S87 (for example, character or numerical data) matches the correct decoding result (for example, character or numerical data) stored in the flash memory 17 in step S81. Is determined.

ステップS89において、デコード結果が正しいデコード結果と一致すると判別された場合(ステップS89;YES)、使用中のパラメータ組合せに対する点数及び倍率が下げられる(ステップS90)。例えば、図17及び図18で説明したように、デコードパラメータの点数及び点数倍率が下げられる。ステップS90の実行後、ステップS85に移行される。ステップS89において、デコード結果が正しいデコード結果と一致しないと判別された場合(ステップS89;NO)、使用中のパラメータ組合せに対する点数及び倍率が上げられる(ステップS91)。すなわち、デコードパラメータの点数及び点数倍率が上げられる。デコードパラメータ点数及び点数倍率が調整(すなわち、デコードパラメータ点数及び点数倍率を上げたり下げたり)されると、調整後のデコードパラメータ点数はパラメータ点数テーブル90、点数倍率は組合せ点数テーブル91にそれぞれ反映され、更新記憶される。調整後のパラメータ点数テーブル90及び組合せ点数テーブル91は、以後のバーコードの読取り時に使用される。そして、ステップS91の実行後、ステップS85に移行される。   If it is determined in step S89 that the decoding result matches the correct decoding result (step S89; YES), the score and magnification for the parameter combination in use are lowered (step S90). For example, as described with reference to FIGS. 17 and 18, the decode parameter score and the score multiplication factor are lowered. After execution of step S90, the process proceeds to step S85. If it is determined in step S89 that the decoding result does not match the correct decoding result (step S89; NO), the score and magnification for the parameter combination in use are increased (step S91). That is, the decode parameter score and the score magnification are increased. When the decode parameter score and the score magnification are adjusted (that is, the decode parameter score and the score magnification are increased or decreased), the adjusted decode parameter score is reflected in the parameter score table 90 and the score magnification is reflected in the combination score table 91, respectively. The update is stored. The adjusted parameter score table 90 and the combined score table 91 are used for subsequent barcode reading. And after execution of step S91, it transfers to step S85.

以上、本実施の形態によれば、デコードされたデコード結果と予め読取られたバーコード(サンプルコード)の正しいデコード結果とが一致するか否かを比較して、デコードパラメータの点数及び組点数倍率を調整するので、正確なデコードを行うことができ、バーコードの誤読を防止することができる。また、バーコードの誤読を防止できるので、バーコードの読取り範囲を広げることができる。   As described above, according to the present embodiment, it is compared whether or not the decoded decoding result matches the correct decoding result of the barcode (sample code) read in advance, and the decoding parameter score and set score multiplication factor Therefore, accurate decoding can be performed, and misreading of bar codes can be prevented. In addition, since misreading of the bar code can be prevented, the bar code reading range can be expanded.

また、デコードパラメータの点数及び点数倍率の調整後は、調整されたデコードパラメータの点数及び点数倍率を用いてデコードを行うことができる。これにより、デコードパラメータの点数及び点数倍率の調整後は、調整されたデコードパラメータの点数及び点数倍率を用いてデコードを行うことが可能となる。   In addition, after the decoding parameter score and the point magnification are adjusted, decoding can be performed using the adjusted decoding parameter score and the point magnification. As a result, after adjustment of the decode parameter score and the score magnification, it is possible to perform decoding using the adjusted decode parameter score and score magnification.

なお、上記実施の形態における記述は、本発明に係るコード読取装置及びプログラムの一例であり、これに限定されるものではない。   The description in the above embodiment is an example of the code reading apparatus and the program according to the present invention, and the present invention is not limited to this.

例えば、上記実施の形態では、デコードパラメータカスタマイズ処理において、設定段階数を変換させる際、設定段階数を「+1」(すなわち、デコードの判定を緩く)することとしたがこれに限定されるものではない。例えば、設定段階数を「−1」(すなわち、デコードの判定を厳しく)こととしてもよい。
具体的には、例えば、パラメータテーブル30のparam−1(マージンチェックパラメータ)における設定段階数に「set−2A」、「set−3A」を新たに設け、「set−2A」における左右マージン幅を「8倍」、「set−3A」における左右マージン幅を「10倍」とする。また、パラメータ点数テーブル90の「set−2A」における点数を「−2」、「set−3A」における点数を「−4」とする。この場合、デコードの判定を厳しくするように変化させると、「set−1」→「set−2A」→「set−3A」となる。したがって、左右マージン幅を表す倍率は6倍→8倍→10倍となり、判定はより厳しい方向にシフトする。また、デコードパラメータの点数は0→−2→−4となるので、結果として算出されるデコードパラメータの点数の合計値は減少する。このとき、デコードパラメータの合計点数が減少すると、他のデコードパラメータの設定段階数を上げる余裕が生まれるので、他のデコードパラメータを緩く設定できるようにしても良い。
For example, in the above embodiment, when the number of setting stages is converted in the decoding parameter customization process, the number of setting stages is set to “+1” (that is, the decoding judgment is loosened). However, the present invention is not limited to this. Absent. For example, the number of set stages may be “−1” (that is, the determination of decoding is strict).
Specifically, for example, “set-2A” and “set-3A” are newly provided in the number of setting stages in param-1 (margin check parameter) of the parameter table 30, and the left and right margin widths in “set-2A” are set. The left and right margin widths in “8 times” and “set-3A” are set to “10 times”. In the parameter score table 90, the score in “set-2A” is “−2”, and the score in “set-3A” is “−4”. In this case, if the decoding decision is changed to be strict, “set-1” → “set-2A” → “set-3A”. Therefore, the magnification representing the left and right margin width is 6 times → 8 times → 10 times, and the determination shifts in a more severe direction. Further, since the score of the decoding parameter is 0 → −2 → −4, the total value of the decoding parameter score calculated as a result decreases. At this time, if the total number of decode parameters is reduced, there is a room for increasing the number of steps for setting other decode parameters. Therefore, other decode parameters may be set loosely.

また、図9に示したパラメータ点数テーブル90における設定段階数は一例であり、これに限定されるものではない。例えば、デコードパラメータ毎に、設定段階数を増やしたり、減らしたりしてもよい。   Further, the number of setting stages in the parameter score table 90 shown in FIG. 9 is an example, and the present invention is not limited to this. For example, the number of setting steps may be increased or decreased for each decoding parameter.

また、許容値を予め決められた値としたが、これに限定されるものではない。例えば、ユーザにより許容値の設定が可能となるようにしてもよい。   Further, although the allowable value is a predetermined value, it is not limited to this. For example, an allowable value may be set by the user.

また、各テーブルにおけるデコードパラメータの値は、一例でありこれに限定されるものではない。例えば、バーコードリーダ1の性能や読取り環境、バーコードの印字条件に応じて最適化した値を使用してもよい。   In addition, the value of the decoding parameter in each table is an example and is not limited thereto. For example, a value optimized according to the performance and reading environment of the barcode reader 1 and the barcode printing conditions may be used.

また、パラメータの種類は、一例でありこれに限定されるものではない。例えば、読取り性能を向上させる可能性のあるデコードパラメータが他にある場合は、それらのデコードパラメータを追加してもよい。   Also, the types of parameters are examples and are not limited thereto. For example, if there are other decoding parameters that may improve the reading performance, these decoding parameters may be added.

また、上記実施の形態では、バーコードリーダ1はバーコードを読取ることとしたが、これに限定されるものではない。例えば、2次元コードを読取ることとしてもよい。   In the above embodiment, the barcode reader 1 reads a barcode, but the present invention is not limited to this. For example, a two-dimensional code may be read.

その他、上記の実施の形態におけるバーコードリーダ1の細部構成及び詳細動作に関しても、本発明の趣旨を逸脱しない範囲で適宜変更可能である。   In addition, the detailed configuration and detailed operation of the barcode reader 1 in the above embodiment can be changed as appropriate without departing from the spirit of the present invention.

本発明に係るバーコードリーダがバーコードを読取る際の動作を説明する図である。It is a figure explaining operation | movement at the time of the barcode reader which concerns on this invention reads a barcode. バーコードリーダの内部構成を示すブロック図である。It is a block diagram which shows the internal structure of a barcode reader. パラメータテーブルを示す図である。It is a figure which shows a parameter table. (A)は、アドオンを示す図である。(B)は、デリネータを示す図である。(A) is a figure showing an add-on. (B) is a diagram showing a delineator. (A)は、EANコード、JANコード、UPC−Aコードの場合におけるガードバーを示す図である。(B)は、UPC−Eコードの場合におけるガードバーを示す図である。(A) is a figure which shows the guard bar in the case of an EAN code, a JAN code, and a UPC-A code. (B) is a figure which shows the guard bar in the case of a UPC-E code | cord | chord. (A)は、EAN、JAN、UPC−Aコードの基準位置(レフトガードバー、センターバー)を示す図である。(B)は、UPC−Eコードの基準位置(レフトガードバー、ライトガードバー)を示す図である。(C)は、アドオンコードの基準位置(スタートパターン)を示す図である。(A) is a figure which shows the reference position (left guard bar, center bar) of EAN, JAN, and UPC-A code | cord | chord. (B) is a figure which shows the reference position (left guard bar, right guard bar) of a UPC-E code. (C) is a figure which shows the reference position (start pattern) of an add-on code. (A)は、閾値(基準位置)パラメータが「set−1」(LeftGB:(白+黒)/2 StartPattern)におけるコードと基準位置との関係を示した図である。(B)は、閾値(基準位置)パラメータが「set−2」(CenterGB StartPattern)におけるコードと基準位置との関係を示した図である。(C)は、閾値(基準位置)パラメータが「set−3」(LeftGB:(白+黒) StartPattern)におけるコードと基準位置との関係を示した図である。(A) is a diagram showing the relationship between the code and the reference position when the threshold (reference position) parameter is “set-1” (LeftGB: (white + black) / 2 StartPattern). (B) is a diagram showing the relationship between the code and the reference position when the threshold (reference position) parameter is “set-2” (CenterGB StartPattern). (C) is a diagram showing the relationship between codes and reference positions when the threshold (reference position) parameter is “set-3” (LeftGB: (white + black) StartPattern). (A)は、閾値(基準位置)パラメータが「set−4」(LeftGB:(白+黒)/2 WPC部)におけるコードと基準位置との関係を示した図である。(B)は、閾値(基準位置)パラメータが「set−5」(CenterGB: WPC部)におけるコードと基準位置との関係を示した図である。(C)は、閾値(基準位置)パラメータが「set−6」(LeftGB:(白+黒):WPC部)におけるコードと基準位置との関係を示した図である。(A) is a diagram showing the relationship between codes and reference positions when the threshold (reference position) parameter is “set-4” (LeftGB: (white + black) / 2 WPC section). (B) is a diagram showing the relationship between the code and the reference position when the threshold (reference position) parameter is “set-5” (CenterGB: WPC section). (C) is a diagram showing the relationship between the code and the reference position when the threshold (reference position) parameter is “set-6” (LeftGB: (white + black): WPC section). パラメータ点数テーブルを示す図である。It is a figure which shows a parameter score table. 組合せ点数テーブルを示す図である。It is a figure which shows a combination score table. 第1の処理を示すフローチャートである。It is a flowchart which shows a 1st process. パラメータカスタマイズ処理を示すフローチャートである。It is a flowchart which shows a parameter customization process. パラメータカスタマイズ処理を示すフローチャートである。It is a flowchart which shows a parameter customization process. 合計値算出処理を示すフローチャートである。It is a flowchart which shows a total value calculation process. 第2の処理を示すフローチャートである。It is a flowchart which shows a 2nd process. 第2の処理を示すフローチャートである。It is a flowchart which shows a 2nd process. (A)は、パラメータ調整前のパラメータ点数テーブルを示す図である。(B)は、パラメータ調整後のパラメータ点数テーブルを示す図である。(A) is a figure which shows the parameter score table before parameter adjustment. (B) is a figure which shows the parameter score table after parameter adjustment. 点数倍率が調整されたことを示す図である。It is a figure which shows that the point magnification was adjusted. 第3の処理を示すフローチャートである。It is a flowchart which shows a 3rd process.

符号の説明Explanation of symbols

1 バーコードリーダ
11 CPU
12 入力部
13 RAM
14 表示部
15 ROM
16 スキャナ部
17 フラッシュメモリ
18 電源部
19 バス
1 Bar code reader 11 CPU
12 Input unit 13 RAM
14 Display 15 ROM
16 Scanner 17 Flash memory 18 Power supply 19 Bus

Claims (7)

バーコード又は2次元コードを示すデータコードを読取り、読取られた読取データを出力する読取手段と、
前記読取手段により出力された読取データをデコードするデコード手段と、
前記デコード手段によるデコード時に使用される複数のデコードパラメータ毎に、デコードの信頼性を表す信頼性情報を記憶する信頼性情報記憶手段と、
前記複数のデコードパラメータが組合された組合せ情報を記憶する組合せ記憶手段と、
前記複数のデコードパラメータの組合せを生成する生成手段と、
前記生成手段により生成された組合せに基づいて、前記デコードパラメータ毎に対応する前記信頼性情報を前記信頼性情報記憶手段から取得し、当該取得された信頼性情報の合計を算出する算出手段と、
前記生成手段により生成された組合せに対応する前記組合せ情報を前記組合せ記憶手段から取得し、当該取得された組合せ情報と前記算出手段により算出された合計とに基づいて、前記読取手段により読取られた読取データをデコードするか否かを判断するための判断情報を算出する判断情報算出手段と、
前記判断情報算出手段により算出された判断情報に基づいて、前記デコード手段にデコードを実行させるか否かを制御する第1のデコード制御手段と、
を備えたコード読取装置。
Reading means for reading a data code indicating a bar code or a two-dimensional code and outputting the read read data;
Decoding means for decoding the read data output by the reading means;
Reliability information storage means for storing reliability information representing reliability of decoding for each of a plurality of decoding parameters used at the time of decoding by the decoding means;
Combination storage means for storing combination information in which the plurality of decoding parameters are combined;
Generating means for generating a combination of the plurality of decoding parameters;
Based on the combination generated by the generation unit, the reliability information corresponding to each decoding parameter is acquired from the reliability information storage unit, and a calculation unit that calculates the total of the acquired reliability information;
The combination information corresponding to the combination generated by the generation unit is acquired from the combination storage unit, and read by the reading unit based on the acquired combination information and the total calculated by the calculation unit. Determination information calculating means for calculating determination information for determining whether to decode the read data;
First decoding control means for controlling whether to cause the decoding means to execute decoding based on the judgment information calculated by the judgment information calculating means;
A code reader comprising:
前記第1のデコード制御手段は、
前記判断情報が予め決められた許容値を超える場合は、前記デコード手段にデコードを実行させず、前記判断情報が予め決められた許容値内の場合は、前記生成手段により生成された組合せに基づいて、前記デコード手段にデコードを実行させる請求項1に記載のコード読取装置。
The first decoding control means includes:
When the determination information exceeds a predetermined allowable value, the decoding unit does not execute decoding. When the determination information is within the predetermined allowable value, the determination unit is based on the combination generated by the generation unit. The code reading device according to claim 1, wherein the decoding unit executes decoding.
前記信頼性情報記憶手段は、
前記デコードパラメータ毎に、複数のパラメータ設定段階を設け、当該各パラメータ設定段階に対応して前記信頼性情報を記憶する請求項1又は2に記載のコード読取装置。
The reliability information storage means includes
The code reading device according to claim 1, wherein a plurality of parameter setting steps are provided for each decoding parameter, and the reliability information is stored corresponding to each parameter setting step.
前記組合せ情報は、
前記複数のデコードパラメータの組合せ毎に設定された倍率情報を含み、
前記判断情報算出手段は、
前記倍率情報と前記合計とを積算して前記判断情報を算出する請求項1から3のいずれか一項に記載のコード読取装置。
The combination information is
Including magnification information set for each combination of the plurality of decoding parameters;
The determination information calculation means includes
The code reading device according to claim 1, wherein the determination information is calculated by integrating the magnification information and the total.
前記判断情報算出手段により算出された前記判断情報が予め決められた許容値を超える場合、前記デコード手段によりデコードされたデコード結果を出力する出力手段と、
前記出力手段により出力されたデコード結果に基づいて、前記信頼性情報及び前記組合せ情報を調整する第1の調整手段と、
前記第1の調整手段により調整された信頼性情報を前記信頼性情報記憶手段に記憶させ、前記第1の調整手段により調整された組合せ情報を前記組合せ情報記憶手段に記憶させる第1の記憶制御手段と、
を備える請求項1から4のいずれか一項に記載のコード読取装置。
When the determination information calculated by the determination information calculation means exceeds a predetermined allowable value, output means for outputting a decoding result decoded by the decoding means;
First adjustment means for adjusting the reliability information and the combination information based on the decoding result output by the output means;
First storage control for storing reliability information adjusted by the first adjustment unit in the reliability information storage unit, and storing combination information adjusted by the first adjustment unit in the combination information storage unit Means,
The code reading device according to claim 1, further comprising:
前記生成手段により生成された組合せに基づいて、前記デコード手段にデコードを実行させるか否かを制御する第2のデコード制御手段と、
前記第2のデコード制御手段により前記デコード手段のデコードが実行された場合、当該デコードされたデコード結果とデータコードが正当にデコードされたデコード結果とが一致するか否かを比較し、当該比較結果に基づいて、前記信頼性情報及び前記組合せ情報を調整する第2の調整手段と、
前記第2の調整手段により調整された信頼性情報を前記信頼性情報記憶手段に記憶させ、前記第2の調整手段により調整された組合せ情報を前記組合せ情報記憶手段に記憶させる第2の記憶制御手段と、
を備えた請求項1から4のいずれか一項に記載のコード読取装置。
Second decoding control means for controlling whether to cause the decoding means to execute decoding based on the combination generated by the generating means;
When the decoding of the decoding means is executed by the second decoding control means, the decoded result is compared with whether or not the decoded result in which the data code is properly decoded matches, and the comparison result Based on the second adjustment means for adjusting the reliability information and the combination information;
Second storage control for storing reliability information adjusted by the second adjustment unit in the reliability information storage unit and storing combination information adjusted by the second adjustment unit in the combination information storage unit Means,
The code reading device according to any one of claims 1 to 4, further comprising:
コンピュータを、
バーコード又は2次元コードを示すデータコードを読取り、読取られた読取データを出力する読取手段、
前記読取手段により出力された読取データをデコードするデコード手段、
前記デコード手段によるデコード時に使用される複数のデコードパラメータ毎に、デコードの信頼性を表す信頼性情報を記憶する信頼性情報記憶手段、
前記複数のデコードパラメータが組合された組合せ情報を記憶する組合せ記憶手段、
前記複数のデコードパラメータの組合せを生成する生成手段、
前記生成手段により生成された組合せに基づいて、前記デコードパラメータ毎に対応する前記信頼性情報を前記信頼性情報記憶手段から取得し、当該取得された信頼性情報の合計を算出する算出手段、
前記生成手段により生成された組合せに対応する前記組合せ情報を前記組合せ記憶手段から取得し、当該取得された組合せ情報と前記算出手段により算出された合計とに基づいて、前記読取手段により読取られた読取データをデコードするか否かを判断するための判断情報を算出する判断情報算出手段、
前記判断情報算出手段により算出された判断情報に基づいて、前記デコード手段にデコードを実行させるか否かを制御する第1のデコード制御手段、
として機能させるためのプログラム。
Computer
Reading means for reading a data code indicating a bar code or a two-dimensional code and outputting the read data;
Decoding means for decoding the read data output by the reading means;
Reliability information storage means for storing reliability information representing reliability of decoding for each of a plurality of decoding parameters used at the time of decoding by the decoding means;
Combination storage means for storing combination information in which the plurality of decoding parameters are combined;
Generating means for generating a combination of the plurality of decoding parameters;
Calculation means for acquiring the reliability information corresponding to each decoding parameter from the reliability information storage means based on the combination generated by the generation means, and calculating the total of the acquired reliability information;
The combination information corresponding to the combination generated by the generation unit is acquired from the combination storage unit, and read by the reading unit based on the acquired combination information and the total calculated by the calculation unit. Determination information calculating means for calculating determination information for determining whether to decode the read data;
First decoding control means for controlling whether or not to cause the decoding means to perform decoding based on the judgment information calculated by the judgment information calculating means;
Program to function as.
JP2008126572A 2008-05-14 2008-05-14 Code reader and program Active JP5195011B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008126572A JP5195011B2 (en) 2008-05-14 2008-05-14 Code reader and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008126572A JP5195011B2 (en) 2008-05-14 2008-05-14 Code reader and program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2013020965A Division JP5534053B2 (en) 2013-02-06 2013-02-06 Code reader and program

Publications (2)

Publication Number Publication Date
JP2009276947A true JP2009276947A (en) 2009-11-26
JP5195011B2 JP5195011B2 (en) 2013-05-08

Family

ID=41442333

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008126572A Active JP5195011B2 (en) 2008-05-14 2008-05-14 Code reader and program

Country Status (1)

Country Link
JP (1) JP5195011B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2369501A2 (en) 2009-12-04 2011-09-28 Sony Corporation Information processing apparatus, information processing method, data management server and data synchronization system
JP2012053693A (en) * 2010-09-01 2012-03-15 Toshiba Tec Corp Code reader and program

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005063142A (en) * 2003-08-12 2005-03-10 Casio Comput Co Ltd Code read device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005063142A (en) * 2003-08-12 2005-03-10 Casio Comput Co Ltd Code read device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2369501A2 (en) 2009-12-04 2011-09-28 Sony Corporation Information processing apparatus, information processing method, data management server and data synchronization system
JP2012053693A (en) * 2010-09-01 2012-03-15 Toshiba Tec Corp Code reader and program

Also Published As

Publication number Publication date
JP5195011B2 (en) 2013-05-08

Similar Documents

Publication Publication Date Title
US8374383B2 (en) Systems, devices, and/or methods for managing images
US10509933B2 (en) Method and apparatus for optically reading out information stored in a barcode
JP4531809B2 (en) Code image processing method
JP4752413B2 (en) Two-dimensional code division display method, two-dimensional code reading method, and two-dimensional code reading apparatus
JP3115003B2 (en) Method and apparatus for decoding barcode symbols using module size ratio analysis
JP5195011B2 (en) Code reader and program
CN107403123B (en) Image analysis device for identifying barcode image in target image
JP5534053B2 (en) Code reader and program
CN107609450B (en) Bar code identification method
JP5233276B2 (en) Bar code reader and program
EP3754579A1 (en) Barcode generation device and barcode generation method
JP2007299098A (en) Qr code reader
EP2088533A1 (en) Apparatus and methods for decoding digital codes
US9519817B1 (en) Method for digitizing barcode image by using dynamic threshold
JP6575158B2 (en) Information processing apparatus and information processing program
JP5092732B2 (en) Code recognition apparatus and program
JP2020107272A (en) Information processing apparatus, information processing method, and program
JP2006134159A (en) Optical information reading device
JP5482340B2 (en) Bar code reading apparatus, bar code reading method, and bar code reading program
JP2006134160A (en) Optical information reading device
JP2001307013A (en) Bar code reader
JP5115124B2 (en) Bar code reader and program
JP2005050094A (en) Optical character reader
JP2012093971A (en) Two-dimensional code generating device, two-dimensional code reading device, two-dimensional code, two-dimensional code generation method, two-dimensional code reading method, and program
WO2014203905A2 (en) Reference symbol extraction method, reference symbol extraction device and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110414

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20110414

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121228

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130108

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130121

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20160215

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5195011

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150