JP3618405B2 - Bar code information reader - Google Patents

Bar code information reader Download PDF

Info

Publication number
JP3618405B2
JP3618405B2 JP17233995A JP17233995A JP3618405B2 JP 3618405 B2 JP3618405 B2 JP 3618405B2 JP 17233995 A JP17233995 A JP 17233995A JP 17233995 A JP17233995 A JP 17233995A JP 3618405 B2 JP3618405 B2 JP 3618405B2
Authority
JP
Japan
Prior art keywords
barcode
reading
read
code
code word
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.)
Expired - Fee Related
Application number
JP17233995A
Other languages
Japanese (ja)
Other versions
JPH0922438A (en
Inventor
小島  隆
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.)
Olympus Corp
Original Assignee
Olympus Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Olympus Corp filed Critical Olympus Corp
Priority to JP17233995A priority Critical patent/JP3618405B2/en
Publication of JPH0922438A publication Critical patent/JPH0922438A/en
Application granted granted Critical
Publication of JP3618405B2 publication Critical patent/JP3618405B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、2次元バーコード等に書き込まれた情報を読取る情報読取り装置に関する。
【0002】
【従来の技術】
従来、物品を流通させる分野において、流通の迅速化及び作業に掛かる手間の低減等、種々の手法によりその合理化が求められていた。その手法の1つとして、その物品に関する物品名や区分のための番号や価格等の情報をバーとスペースでパターン号化されたバーコードの採用がある。
【0003】
従来のバーコードは、JANコードに代表される1次元バーコードと呼ばれ、10〜20桁の情報を格納する事ができる。これに対し、現在では、1,000桁以上の情報が格納できる2次元バーコードが実用化されつつあるが、その1つに、PDF−417と呼ばれるバーコード体系がある。
【0004】
このPDF−417バーコードに関しては、特開平3−204793号公報「高密度2次元記号表示法での不揮発性電気光学式読み取り専用メモリ」及び、特開平5−290204号公報「データを機械読み取り可能な図形の形状に符号化し、解号する装置および方法」等が公知技術として知られている。
【0005】
これらの公報によれば、PDF−417の特徴は、図11に示すような2次元バーコードであり、バーコードの左右に開始/停止(スタート/ストップ)と呼ばれる特定パターンを有すると共に、上記開始/停止(スタート/ストップ)パターンのそれぞれ右/左隣りに、左/右行標識(左/右ローインディケータ)を有する。但し、スタート/ストップパターンを除いたバーコードは、列と行から成り、コードワードと呼ばれる最小ブロックによって構成される。スタート/ストップパターンを除いたバーコードの大きさは、上記コードワード単位で、列は最小1列、最大30列(スタートからストップパターンの方向)、行は最小3行、最大90行(スタートおよびストップパターンに沿う方向)と規定されている。
【0006】
上記左/右ローインディケータには、当該ローインディケータの行数を示す行番号、当該バーコードの総行数を示す行の数、当該バーコードの総列数を示す列の数、誤り訂正のレベルを示す安全保護水準の情報が、3行毎に繰り返し格納されている。これを以下に示す。
【0007】
当該ローインディケータの行数をNとした時、「N mod3」が、Nを3で除した剰余を表すとすると、
(N mod3=0)行目の左ローインディケータには、行番号と行の数
(N mod3=0)行目の右ローインディケータには、行番号と列の数
(N mod3=1)行目の左ローインディケータには、行番号と安全保護水準の情報
(N mod3=1)行目の右ローインディケータには、行番号と行の数
(N mod3=2)行目の左ローインディケータには、行番号と列の数
(N mod3=2)行目の右ローインディケータには、行番号と安全保護水準の情報
また、バーコード全体からスタート/ストップパターンを除いた、左/右ローインディケータ、データコードワード域および誤り訂正域では、図12に示すように、各行は、上から順番にクラスタ0,3,6と呼ばれる相互に排他的な3つの部分集合に区切られ、各行では、3つのクラスタのうち1つだけを使用してデータを符号化し、バーコード表現する。これにより、任意の隣接する行どうしは異なるクラスタに属するため、明瞭に区別できる。
【0008】
さらに、図13に示すように、各安全保護水準に従った誤り訂正符号が、上記誤り訂正域に格納され、バーコードラベルが汚れ等によって情報が失われても、安全保護水準に対応した誤り訂正コードワード数以内なら、誤り訂正する事ができる。
【0009】
各スタートパターン、ストップパターン、左/右ローインディケータ、データコードワード/誤り訂正コードワード共に、4ケのバーと4ケのスペースから成り、例えば、「31111136」のような8桁の数字で表現する。この各数字は、バー(通常黒)またはスペース(通常下地のまま)の幅を示し、上記「31111136」は、図3(a)に示すバーコードパターンを表現する。なお、各数字の合計は「17」と成る。これによれば、スタートパターンは「81111113」、ストップパターンは「71131112」と表現される。
【0010】
PDF−417バーコードの解析は、以下の通り行なわれる。
各スキャンでは、バーおよびスペースの組み合わせのなかから、スタートまたはストップパターンを検出する処理が行なわれる。スタート/ストップパターンの検出は、図3(b),(c)に示す上記「81111113」また、「71131112」と一致するか否かチェックする。
【0011】
以降、ローインディケータ及びコードワードを検出する。各ローインディケータには、上記に示す通り当該行を示す行番号が格納されており、隣接するコードワードの行番号も知る事ができる。万一、バーコードと撮像部のずれにより、隣接する行のコードワードを読み取った場合でも、上記に示す通り行毎にクラスタが異なるため、各スキャンからコードワードを連続して読取る場合には、行を正しく認識する事ができる。また、各列は、スタートおよびストップパターンの幅からデータコードワードの列数を、正しく認識する事ができる。
【0012】
以上より、各データコードワードの列と行を認識する事ができる。
上記特開平5−290204号公報「データを機械読取り可能な図形の形状に符号化し、解号する装置および方法」によれば、読取られたコードワード数が、左/右ローインディケータに格納された当該バーコードの安全保護水準に基づく、誤り訂正可能なコードワード数以上を読み取った時に、ただちに誤り訂正処理を行ない、訂正に失敗した場合には、コードワードの読み取りを継続して行ない、最終的にバーコードを読み取る。
4.発明が解決しようとする問題点(本発明の目的)
【0013】
【発明が解決しようとする課題】
しかし、前述した公報によれば、コードワード認識および誤り訂正処理をCPUによりプログラム処理されるが、コードワードの認識処理に比較して、誤り訂正処理に時間を要し、且つ読取ったコードワード数が少ない程多くの時間を要する。
【0014】
従って、読取ったコードワード数が誤り訂正可能な数を超えた直後に誤り訂正を行なうと、誤り訂正ができずにコードワードの読取りと誤り訂正処理を繰り返す可能性が高くなる。そのため、バーコード読取り処理に多大な時間を必要とする。
【0015】
そこで本発明は、取込まれたバーコードを含む画像からコードワードを読取り、読取りが不能な状態であれば、一定時間を越えると読取り処理を打ち切り、バーコード読取りの高速化を図るバーコード情報読取り装置を提供することを目的とする。
【0016】
【課題を解決するための手段】
本発明は上記目的を達成するために、PDF−417によるバーコードを含む画像を撮像する撮像部と、上記撮像部により撮像した画像信号を記憶する記憶部と、上記記憶部から読出した画像信号からバーコードのコードワードを読取り、誤り訂正を施すバーコード解読部とを有する処理装置において、読取るべきバーコードを構成する全コードワード数と読取りに成功したコードワード数を比較して、上記誤り訂正により復元される情報の正確さに基づき、予め設定した比率以上のコードワード数を読取った時には誤り訂正を施し、上記読取に成功したコードワード数が上記比率以下の時には、撮像部から新たな画像を撮像し読取り、上記比率以上のコードワードを読取れるまで繰り返し行う読取り比較手段を有するバーコード情報読取り装置を提供する。
【0017】
また、バーコードが記載された媒体を搬送する搬送系と、PDF−417によるバーコードを含む画像を撮像する撮像部と、上記撮像部により撮像した画像信号からコードワードを読取って、誤り訂正を施すバーコード解読部とを有する処理装置において、読取るべきバーコードを構成する全コードワード数と読取りに成功したコードワード数を比較して、上記誤り訂正により復元される情報の正確さに基づき予め設定した比率以上のコードワードを読取った時には、誤り訂正を施し、上記読取りに成功したコードワード数が上記比率以下の時には、上記搬送系を駆動して媒体のバーコードを撮像部で新たな画像として撮像し、上記コードワードを読取り、上記比率以上のコードワードが読取れるまで繰り返し行う読取り比較手段を有するバーコード情報読取り装置を提供する。
【0018】
以上のようなバーコード情報読取り装置により、従来技術のように読取ったコードワード数が誤り訂正可能な数を超えた直後に誤り訂正するのではなく、可能な限りコードワードの読み取りを行なってから誤り訂正処理を行い、バーコード読み取りに要する時間を短縮される。また、読取りが不能な状態であれば、予め設定した時間を越えると読取り処理が打ち切られる。
【0019】
【発明の実施の形態】
以下、図面を参照して本発明の実施形態について詳細に説明する。
図1には、第1の実施形態としてのバーコード情報読取り装置の概要を示す。このバーコード情報読取り装置は、PDF−417等のバーコード2を読取る2次元撮像部1と、読取られたバーコードの解析(デコード処理)を行うデータ処理部3と、該データ処理部3と通信回線4を介して接続され、解析により解読された情報を処理するパーソナルコンピュータ等からなるホスト装置5とで構成される。
【0020】
上記バーコード2は、2次元撮像部1により2次元的に読取られて画像信号として生成され、データ処理部3に送られバーコードの解析が行なわれる。上記解析により解読された情報は、通信回線4を介してホスト装置5へ送られる。但し、読取りの際に必要となる場合もあるバーコード2の照明手段に関しては、説明を省略する。
【0021】
次に、上記データ処理部3の構成について説明する。
上記2次元撮像部1により撮像された画像信号を一時的に格納するフレームメモリ6と、上記フレームメモリから読出し解読するCPU7と、解読された情報や解読に必要なデータ等を記憶するRAM8と、CPU7が行う処理のプロクラムを格納するプログラムメモリ9と、読取り終了の指示を行うスイッチ10と、CPU7に組み込まれたタイマとで構成される。
【0022】
このような構成により、上記2次元撮像部1により逐次撮像された画像信号は、信号の内容を変更する事なくフレームメモリ6に格納され、該フレームメモリ6から画像信号を読出す時には、CPU7の制御により、ランダムに読み出す事ができるものとする。
【0023】
次に、本実施形態におけるPDF−417によるバーコードの一例を図2(a),(b)に示す。このバーコードは、バーコードの上下方向側に連続したスタートパターン11、ストップパターン12、コードワード単位でブロック化されている左ローインディケータ13、右ローインディケータ14、およびデータコードワード/誤り訂正コードワード部15より構成されている。
【0024】
従来技術で述べた通り、各スタートパターン、ストップパターン、左/右ローインディケータ、データコードワード/誤り訂正コードワード共に、4個のバーと4個のスペースから成り、例えば、「31111136」のような8桁の数字で表現する。この各数字は、バー(通常黒)またはスペース(通常下地のまま)の幅を示し、上記「31111136」は、図3(a)に示すバーコードパターンを表現する。なお、各数字の合計は「17」と成る。これによれば、スタートパターンは「81111113」、ストップパターンは「71131112」と表され、そのパターンは、図3(b),(c)に示すように成る。2次元撮像部1により撮像された画像は、図2に示す通りであるが、各スキャンは左から右へ、上から下方向に行なわれ画面を構成する。ここで、ある瞬間のスキャン位置をスキャン100として示す。
【0025】
そして読取られたPDF−417のバーコードの解析は、次のように解読される。各スキャンでは、バーおよびスペースの組み合わせの中から、スタートまたはストップパターンを検出する処理が行なわれる。
【0026】
スタート/ストップパターンの検出は、例えばスタートパターンであれば、スキャン上に出現したバーを、上記「81111113」の先頭の8であると仮定し、この8の幅から推定した幅に従って以降の「1111113」パターンと一致するか否かチェックする事により達成される。以降のパターンが一致しなかった場合には、順次出現したバーを8と仮定し上記パターンチェックを繰り返す。
【0027】
ストップパターンの場合は、前述したと同様に「71131112」と一致するか否かチェックする。以降、ローインディケータ及びデータコードワード共に、例えば、上記スタート/ストップパターンの幅を17等分して得られる、バーコードの最小モジュール寸法(上記バーコードを表す数字の1に相当する)から検出されるものとする。
【0028】
以下、図4に示すフローチャートを参照してバーコードの読取り動作について、詳細に説明する。
まず、2次元撮像装置1により撮像された画像1をフレームメモリ6に格納し(ステップS1)、その後に、同様に撮像された画像2をフレームメモリ6に格納する(ステップS2)。但し、これらの画像1,2は、フレームメモリ6の異なったエリアに格納されるものとする。なお、本実施形態では画像1,2の2画像を取り込んだが、勿論、2つ以上の画像を取り込んでもかまわない。
【0029】
次に、上記画像の取り込みが終了すると、画像1からスタートおよびストップパターンの検出を行ない(ステップS3,4)、さらに左/右ローインディケータの検出を行なう(ステップS5,6)。この検出によって、取り込まれた画像にPDF−417バーコードが確実に取り込まれているものと認識して、次の処理に移行する。上記ステップS3〜6の処理のうち、1つでも検出できない時には、ステップS1に戻り、画像1の取り込みから処理し直す。
【0030】
次に、上記4つのパターンの存在が認識されると、画像1に含まれるコードワードの取り込みを行ない(ステップS7)、図5に示すようなマトリクスに、コードワードを当該列行に格納する。各ローインディケータには、上記に示す通り当該行を示す行番号が格納されており、隣接するコードワードの行番号も知る事ができる。万一、バーコードと撮像部のずれにより、隣接する行のデータコードを読取った場合でも、上記に示す通り行毎にクラスタが異なるため、各スキャンからコードワードを連続して読取る場合には、行を正しく認識する事ができる。また、各列は、スタートおよびストップパターンの幅からデータコードワードの列数を、正しく認識する事ができる。
【0031】
次に、上記コードワードの読取りが終了すると(ステップS8)、読取られたコードワード数の判定を行い(ステップS9)、そのコードワード数が本来バーコードに含まれる全コードワード数の一定割合以上、例えば、90%以上であれば、誤り訂正処理を行なう(ステップS12)。しかし、90%に達しない場合には(NO)、画像2からコードワードの読み取りを行ない(ステップS10)、その後、画像1と同様な処理を行い(ステップS11,S15〜S17)、上記ステップS12の誤り訂正を行なう。
【0032】
なお、本実施形態では、画像1の処理前に画像2を予め取り込んでいるが、ステップS9の画像1を処理した後に、取込んでも構わない。また、この時、ステッフS3〜ステップS6と同様なバーコード確認処理を行なってもかまわない。
【0033】
上記ステップS9において、一定割合として90%を基準としてが、限定されるものではなく、90%以外の状況にあった数値に設定してもよい。また、画像2からコードワードを読取るのに、何ら制限を加えていないが、例えば、画像1および2から読み取ったコードワード数の合計が、上記90%を超えた場合に誤り訂正を行なってもかまわない。
【0034】
次に上記ステップS8の判定において、読取り終了していない場合に(NO)、読取り終了指示がスイッチ10により指示されると、この信号をCPU7に送り、該CPU7はバーコードの読み取り処理を打ち切る(ステップS13,S15)。
【0035】
しかし、ステップS13,S15においては、読取り終了の指示がなく(NO)、読取りが完了しなければ、上記コードワードの読取りを予め定めた一定時間まで継続させて(ステップS14,S16)、一定時間以上、例えば10秒以上続行しても、全コードワード数の一定割合以上読取れなかった場合には(YES)、)、読取り動作を打ち切る。
【0036】
以上の過程により、バーコードの読み取りが達成される。
次に図6には、本発明による第2の実施形態としてのバーコード読取り装置の概要について示し説明する。
【0037】
このバーコード情報読取り装置は、情報読取り装置本体21と、通信回線4を介して接続され、解析により解読された情報を処理するパーソナルコンピュータ等からなるホスト装置5とで構成される。上記情報読取り装置本体21は、PDF−417等のバーコード2を読取る1次元撮像部22と、バーコード2が記載されるラベル等を読取るために1次元撮像部22の前方で搬送する搬送系23と、1次元撮像部22を挟んで搬送系23の前後(上流、下流)に設けられた挿入検知センサ(上流側)24と、バーコード2の終端を検出する終端検知センサ(下流側)25と、各センサ24,25の検出値の入力及び1次元撮像部22を駆動制御及び読取ったデータの解読処理を行うデータ処理部26と、読取り終了を指示するためのスイッチ32と、CPU27に組込まれたタイマとで構成される。
【0038】
上記データ処理部26は、上記1次元撮像部22により撮像された画像信号を読出し解読するCPU27と、解読された情報や解読に必要なデータ等を記録するRAM28と、CPU27が行う処理のプログラムを格納するプログラムメモリ29とで構成される。
【0039】
上記バーコード2は、1次元撮像部22により1次元的に読み取られて画像信号として生成され、データ処理部22に送られてバーコードの解析が行われる。上記解析により解読された情報は、通信回線4を介してホスト装置5へ送られる。但し、読取る際に必要となる場合もあるバーコード2の照明手段に関しては、説明を省略する。
【0040】
このように構成されたバーコード読取り装置の読取り動作について説明する。1次元撮像部22により撮像されたバーコード2を含む画像信号は、データ処理部26に送られる。送られた画像信号は、基本的には、RAM28等の記録部に記憶される事なく、画像信号の発生順序に処理され、新たな画像信号が発生すると、以前の画像信号に関する情報は、失われていくものとする。勿論、処理方法によってはRAM28等の記録部に撮像された画像信号を記憶する場合もある。
【0041】
本実施形態におけるバーコード2は、PDF−417によるバーコードであり、第1の実施形態と同等である。そして、1次元撮像部22により撮像し読み込まれた画像は、仮想的には図2に示す形態であるが、各スキャンは左から右方向に行なわれるものとする。
【0042】
以下、図7,図8に示すフローチャートを参照して、読取り動作について詳細について説明する。
まず、バーコード2が記載される媒体(物品等)がバーコード読取り装置本体21の挿入口30から挿入されると、挿入検知センサ24が検知し、その旨の信号をCPU27に送出する(ステップS21)。上記CPPU27は、搬送系23の媒体搬送モータ31を駆動して、上記バーコード2を1次元撮像部22の読取り位置(撮像位置)を通過させる(ステップS22)。
【0043】
上記バーコード2の搬送中に、1次元撮像部22により、スタートおよびストップパターンの検出を行なう(ステップS23,S24)。次に、左/右ローインディケータの検出を行なう(ステップS25,S26)。
【0044】
上記ステップによって、取り込んだ画像内に、PDF−417バーコードが確実に取り込まれているものと認識して(YES)、次の処理に移行する。しかし、上記4つのうち、1つでも存在が確認できない時には(NO)、後述するステップS32において、媒体の排出を行なう。
【0045】
そして上記4つのパターンの存在が確認された後、コードワードの取り込みを行ない(ステップS27)、第1の実施形態と同様、図5に示すマトリクスに、コードワードを当該列行に格納する。
【0046】
上記コードワードの読取が終了すると、読取られたコードワード数について比較を行う(ステップS28)。コードワード数が、本来バーコードに含まれる全コードワード数の一定割合以上、例えば、90%以上であれば(YES)、誤り訂正処理を行ない(ステップS33)、90%に達しない場合には(NO)、コードワードの読み取りを行ない、90%以上となるまで読み取りを行う。
【0047】
次に、再度、読取りを行ってもコードワード数が90%に達しない場合には、媒体(バーコード)を搬送しつつ、終端検知センサ25により搬送路94の終端にバーコード2が達したか検知し(ステップS29)、終端が検知されると(YES)、終端検知センサ25から、その信号をCPU27に送出し、CPU27は、媒体搬送モータ31を反転させて(ステップS34)、上記ステップS”´に移行し、コードワードの読み取りを続行する。次に反転したバーコード2が挿入口30方向の終端に達した場合には、挿入検知センサ21側で検知し、上記と同様に再度反転して読み取りを続行する。
【0048】
前記ステップS29において、バーコード2が終端に達しないうちに読取り終了指示がスイッチ32により指示されると(ステップS30)、この信号をCPU27に送り、CPU27は、媒体を排出して、バーコードの読取り動作を打ち切る。
【0049】
しかし、ステップS30で読取り終了指示がなく(NO)、読取りが完了しなければ、上記コードワードの読取りを予め設定した一定時間まで継続させて(ステップS31)、一定時間以上、例えば、10秒以上続行しても、全コードワード数の一定割合以上読み取れなかった場合には(YES)、バーコードを排出して読み取り処理を打ち切る。以上の過程により、バーコードの読み取りが達成される。
【0050】
次に図9には、本発明による第3の実施形態としてのバーコード情報読取り装置の概略を示し説明する。このバーコード情報読取り装置は、撮像部を収納する装置本体を手動により移動させてバーコードを読み取るものである。
【0051】
バーコード情報読取り装置本体39は、PDF−417等のバーコード2を読取る1次元撮像部33と、読取られたバーコードの解析・解読を行うデータ処理部34と、該データ処理部34と通信回線4を介して接続され、解析により解読された情報を処理するパーソナルコンピュータ等からなるホスト装置5とを収納し、手持ち可能に一体化されている。
【0052】
上記データ処理部34は、上記1次元撮像部33により撮像された画像信号を解読するCPU35と、解読された情報や解読に必要なデータ等を記憶するRAM36と、CPU35が行う処理のプログラムを格納するプログラムメモリ37と、読取り終了の指示を行うスイッチ38と、CPU35に組み込まれたタイマとで構成される。
【0053】
上記1次元撮像部ああにより画像信号として読取られたバーコード2は、データ処理部35により解読され、その結果は通信回線4を介してホスト装置5に送られる。ここで、バーコードを読取る際に、必要となる場合がある照明手段に関しては、説明を省略する。
【0054】
このように構成されたバーコード情報読取り装置の読取り動作について説明する。
1次元撮像部33により撮像された画像信号は、データ処理部34に送出される。送られた画像信号は、基本的にRAM36等のメモリに記憶される事なく、読取った画像信号の発生順序に処理され、新たな画像信号が入力されると、以前の画像信号に関する情報と、失われるものとする。ここで、上記バーコード2は、第1の実施形態と同様であるものとする。
【0055】
以下、図10に記すフローチャートを参照して、バーコードの読取り動作について説明する。ここで、本実施形態において、読み取り用の光の出射は、常時行なわれているものする。
【0056】
まず、上記1次元撮像部33をバーコード2に接近させて読取りを開始し、スタートおよびストップパターンの検出を行なう(ステップS41,S42)。さらに、左/右ローインディケータの検出を行なう(ステップS43,S44)。上記ステップにパターンおよびローインディケータがあれば(YES)、取り込んだ画像内に、バーコード2が確実に取り込まれているものと認識して、次の処理過程に移行する。上記4つのうち、1つでも存在が確認できない時に(NO)、4つ全てを検出するまで処理を続行するものとする。
【0057】
上記4つのパターンの存在が確認されると、コードワードの取り込みを行ない(ステップS45)、第1の実施形態と同様に、図5に示したマトリクスに、コードワードを当該列行に格納する。次に上記コードワードの読取が終了すると、読み取られたコードワード数を判定する(ステップS46)。読み取られたコードワード数が、本来バーコードに含まれる全コードワード数の一定割合以上、例えば、90%以上であれば(YES)、誤り訂正処理を行なう(ステップS49)。しかし、90%に達しない場合には(NO)、90%以上となるまで読み取りを行う。
【0058】
読取ったコードワード数が90%に達しないまま、読み取り終了指示がスイッチ95により指示されると(ステップS47)、この指示信号をCPU35に送り、該CPU35はバーコードの読取りを中断する。
【0059】
また、上記ステップS47において、コードワード数が90%に達せず、且つ読取り終了指示がない場合(NO)、ステップS48において、予め設定した一定時間まで読取りを継続させ、例えば5秒以上バーコードが読み取れないか(NO)、ステップS50において、同一コードワードの読取りが連続して発生した場合には(NO)、バーコードの読み取りを打ち切る。以上の処理過程により、バーコードの読取りが達成される。
【0060】
以上の実施形態に基づいて説明したが、本明細書には、以下のような発明も含まれる。
(1)PDF−417によるバーコードを読み取る撮像部と撮像部により読み取った画像信号を記憶する記憶部と上記信号よりコードワードを読み取って誤り訂正するバーコード解読部とから成る処理装置において、
読み取ろうとするバーコードを構成する全コードワード数と読み取りに成功したコードワード数を比較して、あらかじめ定められた比率以上のコードワード数を比較して、あらかじめ定められた比率以上のコードワードを読み取った時に誤り訂正を行ない、読み取ったコードワード数があらかじめ定められた比率以下の時に、撮像部から新たな画像を読み取ってコードワードを読み取る処理を繰り返す手段を設けた事を特徴とするバーコード情報読取装置。
(2) 撮像部から新たな画像を読み取ってコードワードを読み取る時に、あらかじめ定められた時間が経過するとバーコード読み取り処理を打ち切る手段を設けた事を特徴とする、上記(1)項記載のバーコード情報読取装置。
(3) 読み取り打ち切り指示が有った時にバーコード読み取り処理を打ち切る手段を設けた事を特徴とする、上記(1)項記載のバーコード情報読取装置。
(4) 読み取り打ち切り指示が有った時にバーコード読み取り処理を打ち切る手段を設けた事を特徴とする上記(2)項記載のバーコード情報読取装置。
(5) バーコードが書込まれた媒体を搬送する搬送部とPDF−417によるバーコードを読み取る撮像部により読み取った画像信号を記憶する記憶部と上記信号よりコードワードを読み取って誤り訂正するバーコード解読部とから成る処理装置において、
読み取ろうとするバーコードを構成する全コードワード数と読み取りに成功したコードワード数を比較して、あらかじめ定められた比率以上のコードワードを読み取った時に誤り訂正を行ない、読み取ったコードワード数があらかじめ定められた比率以下の時に、撮像部から新たな画像を読み取ってコードワードを読み取る処理を繰り返す手段を設けた事を特徴とするバーコード情報読取装置。
(6) 撮像部から新たな画像を読み取ってコードワードを読み取る時に、あらかじめ定められた時間を経過するとバーコード読み取り処理を打ち切る手段を設けた事を特徴とする、上記(5)項記載のバーコード情報読取装置。
(7) 読み取り打ち切り指示が有った時にバーコード読み取り処理を打ち切る手段を設けた事を特徴とする、上記(5)項記載のバーコード情報読取装置。
(8) 読み取り打ち切りバーコード情報読取装置。
示が有った時にバーコード読み取り処理を打ち切る手段を設けた事を特徴とする上記(6)項記載のバーコード情報読取装置。
(9) 撮像部から新たな画像を読み取ってコードワードを読み取る時に、あらかじめ定められた時間の間に有効なコードワードが読み取れなかったときにバーコード読み取り処理を打ち切る手段を設けた事を特徴とする上記(5)項記載のバーコード情報読取装置。
(10) 撮像部から新たな画像を読み取ってコードワードを読み取る時に、あらかじめ定められた時間の間に有効なコードワードが読み取れなかったときにバーコード読み取り処理を打ち切る手段を設けた事を特徴とする上記(6)項記載のバーコード情報読取装置。
(11) 撮像部から新たな画像を読み取ってコードワードを読み取る時に、あらかじめ定められた時間の間に有効なコードワードが読み取れなかったときにバーコード読み取り処理を打ち切る手段を設けた事を特徴とする上記(7)項記載のバーコード情報読取装置。
(12) 撮像部から新たな画像を読み取ってコードワードを読み取る時に、あらかじめ定められた時間の間に有効なコードワードが読み取れなかったときにバーコード読み取り処理を打ち切る手段を設けた事を特徴とする上記(8)項記載のバーコード情報読取装置。
【0061】
【発明の効果】
以上詳述したように本発明により、バーコード読み取りに要する時間を短縮する事ができ、一定時間以上読み取り処理を続けた場合には、読み取りを打ち切るのでムダを省く事ができる。さらに読取り処理を打ち切る手段を備えたことにより、操作性を向上させることができる。
【0062】
本発明によれば、取込まれたバーコードを含む画像からコードワードを読取り、読取りが不能な状態であれば、予め設定した一定時間を越えると読取り処理を打ち切り、バーコード読取りの高速化を図るバーコード情報読取り装置を提供することができる。
【図面の簡単な説明】
【図1】本発明の第1の実施形態としてのバーコード情報読取り装置の概要を示す図である。
【図2】PDF−417によるバーコードの一例を示す図である。
【図3】バーコードパターンの例を示す図である。
【図4】第1の実施形態のバーコード情報読取り装置によるバーコードの読取り動作について説明するためのフローチャートである。
【図5】コードワードを格納するマトリクスを示す図である。
【図6】本発明による第2の実施形態としてのバーコード情報読取り装置の概要を示す図である。
【図7】第2の実施形態のバーコード情報読取り装置によるバーコードの読取り動作について説明するためのフローチャートの前半部である。
【図8】第2の実施形態のバーコード情報読取り装置によるバーコードの読取り動作について説明するためのフローチャートの後半部である。
【図9】本発明による第3の実施形態としてのバーコード情報読取り装置の概要を示す図である。
【図10】第3の実施形態のバーコード情報読取り装置によるバーコードの読取り動作について説明するためのフローチャートである。
【図11】PDF−417による2次元バーコードの一例を示す図である。
【図12】バーコードにおける左/右ローインディケータ、データコードワード域及び誤り訂正域の配置例を示す図である。
【図13】各安全水準に対応した誤り訂正コードワード数の関係を示す図である。
【符号の説明】
1…2次元撮像部、2…バーコード、3…データ処理部、4…通信回線、5…ホスト装置、6…フレームメモリ、7…CPU、8…RAM、9…プログラムメモリ、10…スイッチ。
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an information reading apparatus that reads information written on a two-dimensional barcode or the like.
[0002]
[Prior art]
Conventionally, in the field of distributing goods, there has been a demand for rationalization by various methods such as speeding up of the distribution and reduction of labor involved in work. As one of the techniques, there is an adoption of a bar code in which information such as an article name, a classification number, and a price regarding the article is pattern-coded with bars and spaces.
[0003]
A conventional barcode is called a one-dimensional barcode represented by a JAN code, and can store information of 10 to 20 digits. On the other hand, two-dimensional barcodes capable of storing information of 1,000 digits or more are now being put into practical use. One of them is a barcode system called PDF-417.
[0004]
Regarding this PDF-417 bar code, Japanese Patent Laid-Open No. 3-204793 “Nonvolatile Electro-Optical Read-Only Memory with High-Density Two-dimensional Symbol Display Method” and Japanese Patent Laid-Open No. 5-290204 “Data can be read mechanically” An apparatus and method for encoding and decoding a simple graphic shape "is known as a known technique.
[0005]
According to these publications, PDF-417 is characterized by a two-dimensional barcode as shown in FIG. 11, having a specific pattern called start / stop (start / stop) on the left and right sides of the barcode, and the above start A left / right row indicator (left / right low indicator) is located on the right / left side of each of the / stop (start / stop) patterns. However, the bar code excluding the start / stop pattern is composed of columns and rows, and is composed of a minimum block called a code word. The bar code size excluding the start / stop pattern is the above-mentioned codeword unit, with a minimum of 1 column and a maximum of 30 columns (start to stop pattern direction), a minimum of 3 rows, and a maximum of 90 rows (start and stop). Direction along the stop pattern).
[0006]
The left / right row indicator includes a row number indicating the number of rows of the row indicator, a number of rows indicating the total number of rows of the barcode, a number of columns indicating the total number of columns of the barcode, and an error correction level. Is stored repeatedly every three rows. This is shown below.
[0007]
Assuming that the number of rows of the row indicator is N, “N mod 3” represents a remainder obtained by dividing N by 3.
The left row indicator on the (N mod3 = 0) line has a line number and the number of lines.
The right row indicator on the (N mod3 = 0) line has a row number and the number of columns.
(N mod3 = 1) The left row indicator on the line has the line number and information on the security level.
The right row indicator on the (N mod3 = 1) line has a line number and the number of lines.
(N mod3 = 2) The left row indicator of the row has a row number and the number of columns.
(N mod3 = 2) The right row indicator on the line shows the line number and safety level information.
Further, in the left / right low indicator, the data code word area, and the error correction area excluding the start / stop pattern from the entire barcode, each row has clusters 0, 3, 6 in order from the top as shown in FIG. Is partitioned into three mutually exclusive subsets, each of which uses only one of the three clusters to encode the data for bar code representation. Thereby, since arbitrary adjacent rows belong to different clusters, they can be clearly distinguished.
[0008]
Furthermore, as shown in FIG. 13, even if an error correction code according to each security protection level is stored in the error correction area and information is lost due to dirt on the bar code label, an error corresponding to the safety protection level is obtained. If it is within the number of correction code words, errors can be corrected.
[0009]
Each start pattern, stop pattern, left / right row indicator, data code word / error correction code word is composed of 4 bars and 4 spaces, and is expressed by an 8-digit number such as “31111136”, for example. . Each number indicates the width of a bar (usually black) or a space (usually the base), and the “3111136” represents the barcode pattern shown in FIG. The sum of the numbers is “17”. According to this, the start pattern is expressed as “81111113” and the stop pattern is expressed as “71131112”.
[0010]
PDF-417 barcode analysis is performed as follows.
In each scan, processing for detecting a start or stop pattern is performed from a combination of bars and spaces. In the detection of the start / stop pattern, it is checked whether or not it coincides with “81111113” or “71131112” shown in FIGS.
[0011]
Thereafter, the low indicator and the code word are detected. Each row indicator stores the line number indicating the corresponding line as described above, and the line number of the adjacent code word can be known. Even if the code word of the adjacent row is read due to the deviation between the barcode and the imaging unit, the cluster is different for each row as shown above, so when reading the code word continuously from each scan, You can recognize the line correctly. Each column can correctly recognize the number of columns of the data code word from the width of the start and stop patterns.
[0012]
As described above, the column and row of each data code word can be recognized.
According to the above-mentioned Japanese Patent Application Laid-Open No. 5-290204 “Device and Method for Encoding and Decoding Data into Machine-Readable Graphical Shape”, the number of codewords read is stored in the left / right row indicator. When reading more than the number of code words that can be corrected based on the security protection level of the barcode, error correction processing is performed immediately. If the correction fails, the code word is continuously read and finally read. Read the barcode.
4). Problems to be solved by the invention (object of the present invention)
[0013]
[Problems to be solved by the invention]
However, according to the above-mentioned publication, the code word recognition and error correction processing is programmed by the CPU, but the error correction processing takes time compared to the code word recognition processing, and the number of code words read. The less it takes, the more time it takes.
[0014]
Therefore, if error correction is performed immediately after the number of read code words exceeds the number that can be corrected, there is a high possibility that error correction cannot be performed and that code word reading and error correction processing are repeated. Therefore, a great deal of time is required for the barcode reading process.
[0015]
Therefore, the present invention reads bar code information from an image including a bar code that has been taken in, and if the reading is impossible, the bar code information that speeds up bar code reading by aborting the reading process after a certain period of time. An object is to provide a reader.
[0016]
[Means for Solving the Problems]
In order to achieve the above object, the present invention provides an image capturing unit that captures an image including a barcode by PDF-417, a storage unit that stores an image signal captured by the image capturing unit, and an image signal read from the storage unit. In a processing apparatus having a barcode decoding unit for reading a barcode code word from the barcode and performing error correction, the total number of code words constituting the barcode to be read is compared with the number of code words successfully read, and the error Based on the accuracy of the information restored by correction, error correction is performed when the number of code words equal to or higher than a preset ratio is read, and when the number of code words successfully read is equal to or lower than the ratio, a new value is acquired from the imaging unit. Bar code information reading having reading and comparing means that picks up and reads an image and repeats until a code word exceeding the above ratio can be read To provide a location.
[0017]
In addition, an error correction is performed by reading a code word from an image signal captured by the imaging system, an imaging unit that captures an image including a barcode by PDF-417, a conveyance system that conveys a medium on which a barcode is described, and the like. In a processing apparatus having a barcode decoding unit to be applied, the total number of code words constituting the barcode to be read is compared with the number of code words that have been successfully read, and based on the accuracy of information restored by the error correction in advance. When a codeword exceeding the set ratio is read, error correction is performed. When the number of codewords successfully read is equal to or less than the ratio, the transport system is driven and a barcode on the medium is read by the imaging unit. And a reading comparison means that reads the code word and repeats until a code word exceeding the above ratio is read. Providing code information reading device.
[0018]
With the barcode information reader as described above, the code word is read as much as possible instead of error correction immediately after the number of code words read exceeds the number that can be corrected as in the prior art. Error correction processing is performed, and the time required for barcode reading is shortened. If the reading is impossible, the reading process is terminated when a preset time is exceeded.
[0019]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 1 shows an outline of a barcode information reading apparatus as a first embodiment. The barcode information reading apparatus includes a two-dimensional imaging unit 1 that reads a barcode 2 such as PDF-417, a data processing unit 3 that analyzes (decodes) the read barcode, and the data processing unit 3 The host device 5 is composed of a personal computer or the like that is connected via the communication line 4 and processes information decoded by analysis.
[0020]
The barcode 2 is read two-dimensionally by the two-dimensional imaging unit 1 and generated as an image signal, which is sent to the data processing unit 3 where the barcode is analyzed. The information decoded by the above analysis is sent to the host device 5 through the communication line 4. However, the description of the illumination means of the barcode 2 that may be necessary when reading is omitted.
[0021]
Next, the configuration of the data processing unit 3 will be described.
A frame memory 6 for temporarily storing image signals picked up by the two-dimensional image pickup unit 1; a CPU 7 for reading out and decoding from the frame memory; a RAM 8 for storing decoded information and data necessary for decoding; It comprises a program memory 9 for storing a program for processing performed by the CPU 7, a switch 10 for instructing the end of reading, and a timer incorporated in the CPU 7.
[0022]
With such a configuration, the image signal sequentially captured by the two-dimensional imaging unit 1 is stored in the frame memory 6 without changing the signal content, and when the image signal is read from the frame memory 6, the CPU 7 It can be read out randomly by control.
[0023]
Next, an example of the barcode by PDF-417 in this embodiment is shown in FIGS. The bar code includes a start pattern 11 and a stop pattern 12 which are continuous in the vertical direction of the bar code, a left row indicator 13 and a right row indicator 14 which are blocked in units of code words, and a data code word / error correction code word. The unit 15 is configured.
[0024]
As described in the prior art, each start pattern, stop pattern, left / right low indicator, data code word / error correction code word is composed of 4 bars and 4 spaces, such as “3111136”. Expressed with 8-digit numbers. Each number indicates the width of a bar (usually black) or a space (usually the base), and the “3111136” represents the barcode pattern shown in FIG. The sum of the numbers is “17”. According to this, the start pattern is represented as “81111113” and the stop pattern is represented as “71131112”, and the patterns are as shown in FIGS. An image picked up by the two-dimensional image pickup unit 1 is as shown in FIG. 2, but each scan is performed from left to right and from top to bottom to form a screen. Here, a scan position at a certain moment is indicated as a scan 100.
[0025]
Then, the barcode analysis of the read PDF-417 is decoded as follows. In each scan, processing for detecting a start or stop pattern from a combination of bars and spaces is performed.
[0026]
In the detection of the start / stop pattern, for example, in the case of the start pattern, it is assumed that the bar appearing on the scan is the first 8 of the above “81111113”, and the subsequent “11111113” is determined according to the width estimated from the width of 8. This is accomplished by checking whether the pattern matches. If the subsequent patterns do not match, the above-described pattern check is repeated assuming that the sequentially appearing bar is 8.
[0027]
In the case of the stop pattern, it is checked whether or not it matches “71131112” as described above. Thereafter, both the low indicator and the data code word are detected from the minimum module size of the barcode (corresponding to the number 1 representing the barcode) obtained by dividing the width of the start / stop pattern into 17 equal parts, for example. Shall.
[0028]
Hereinafter, the barcode reading operation will be described in detail with reference to the flowchart shown in FIG.
First, the image 1 imaged by the two-dimensional imaging device 1 is stored in the frame memory 6 (step S1), and then the image 2 imaged similarly is stored in the frame memory 6 (step S2). However, these images 1 and 2 are stored in different areas of the frame memory 6. In the present embodiment, the two images 1 and 2 are captured. Of course, two or more images may be captured.
[0029]
Next, when the above-described image capture is completed, start and stop patterns are detected from image 1 (steps S3 and S4), and left / right low indicators are further detected (steps S5 and S6). By this detection, it is recognized that the PDF-417 barcode is surely captured in the captured image, and the process proceeds to the next process. If even one of the processes in steps S3 to S6 cannot be detected, the process returns to step S1 and the process starts again from the capture of the image 1.
[0030]
Next, when the presence of the four patterns is recognized, the code word included in the image 1 is taken in (step S7), and the code word is stored in the matrix row as shown in FIG. Each row indicator stores the line number indicating the corresponding line as described above, and the line number of the adjacent code word can be known. Even if the data code of the adjacent row is read due to the deviation between the barcode and the imaging unit, the cluster is different for each row as shown above, so when reading the code word continuously from each scan, You can recognize the line correctly. Each column can correctly recognize the number of columns of the data code word from the width of the start and stop patterns.
[0031]
Next, when the reading of the code word is completed (step S8), the number of code words read is determined (step S9), and the number of code words is more than a certain percentage of the total number of code words originally included in the barcode. For example, if it is 90% or more, error correction processing is performed (step S12). However, if it does not reach 90% (NO), the code word is read from the image 2 (step S10), and then the same processing as that for the image 1 is performed (steps S11, S15 to S17), and the above step S12. Error correction.
[0032]
In the present embodiment, the image 2 is captured in advance before the processing of the image 1, but may be captured after the processing of the image 1 in step S9. At this time, the same barcode confirmation processing as in steps S3 to S6 may be performed.
[0033]
In step S9, 90% is set as a fixed ratio as a reference, but it is not limited and may be set to a value that is in a situation other than 90%. In addition, there is no restriction on reading codewords from image 2, but error correction may be performed when the total number of codewords read from images 1 and 2 exceeds 90%, for example. It doesn't matter.
[0034]
Next, in the determination of step S8, when reading is not finished (NO), when a reading end instruction is instructed by the switch 10, this signal is sent to the CPU 7, and the CPU 7 aborts the barcode reading process ( Steps S13 and S15).
[0035]
However, in steps S13 and S15, there is no instruction to end reading (NO), and if the reading is not completed, reading of the code word is continued for a predetermined time (steps S14 and S16). As described above, for example, if the code word cannot be read more than a certain percentage of the total number of code words even after continuing for 10 seconds or more (YES), the reading operation is terminated.
[0036]
Through the above process, barcode reading is achieved.
Next, FIG. 6 shows and describes an outline of a barcode reading apparatus as a second embodiment according to the present invention.
[0037]
This bar code information reading device is composed of an information reading device main body 21 and a host device 5 which is connected via a communication line 4 and is composed of a personal computer or the like for processing information decoded by analysis. The information reader main body 21 includes a one-dimensional imaging unit 22 that reads a barcode 2 such as PDF-417, and a conveyance system that conveys in front of the one-dimensional imaging unit 22 to read a label or the like on which the barcode 2 is written. 23, an insertion detection sensor (upstream side) 24 provided before and after (upstream and downstream) of the conveyance system 23 across the one-dimensional imaging unit 22, and a termination detection sensor (downstream side) for detecting the end of the barcode 2 25, input of detection values of the sensors 24 and 25, drive control of the one-dimensional imaging unit 22 and decoding of the read data, a switch 32 for instructing the end of reading, and the CPU 27 It consists of a built-in timer.
[0038]
The data processing unit 26 includes a CPU 27 that reads and decodes an image signal picked up by the one-dimensional image pickup unit 22, a RAM 28 that records the decoded information and data necessary for the decoding, and a program for processing performed by the CPU 27. And a program memory 29 to be stored.
[0039]
The barcode 2 is read one-dimensionally by the one-dimensional imaging unit 22 and generated as an image signal, which is sent to the data processing unit 22 where the barcode is analyzed. The information decoded by the above analysis is sent to the host device 5 through the communication line 4. However, the description of the illumination means of the barcode 2 that may be necessary when reading is omitted.
[0040]
The reading operation of the barcode reader configured in this way will be described. The image signal including the barcode 2 imaged by the one-dimensional imaging unit 22 is sent to the data processing unit 26. The sent image signal is basically not stored in the recording unit such as the RAM 28, but is processed in the order of generation of the image signal. When a new image signal is generated, the information about the previous image signal is lost. Shall be broken. Of course, depending on the processing method, an image signal captured in a recording unit such as the RAM 28 may be stored.
[0041]
The barcode 2 in the present embodiment is a barcode based on PDF-417, and is equivalent to the first embodiment. The image captured and read by the one-dimensional imaging unit 22 is virtually in the form shown in FIG. 2, but each scan is performed from left to right.
[0042]
Hereinafter, the reading operation will be described in detail with reference to the flowcharts shown in FIGS.
First, when a medium (article or the like) in which the barcode 2 is described is inserted from the insertion port 30 of the barcode reader main body 21, the insertion detection sensor 24 detects it and sends a signal to that effect to the CPU 27 (step). S21). The CPPU 27 drives the medium transport motor 31 of the transport system 23 to pass the barcode 2 through the reading position (imaging position) of the one-dimensional imaging unit 22 (step S22).
[0043]
While the barcode 2 is being transported, the start and stop patterns are detected by the one-dimensional imaging unit 22 (steps S23 and S24). Next, the left / right low indicator is detected (steps S25 and S26).
[0044]
By the above steps, it is recognized that the PDF-417 barcode is surely captured in the captured image (YES), and the process proceeds to the next process. However, if even one of the above four cannot be confirmed (NO), the medium is discharged in step S32 described later.
[0045]
Then, after the presence of the four patterns is confirmed, the code word is taken in (step S27), and the code word is stored in the column row in the matrix shown in FIG. 5 as in the first embodiment.
[0046]
When the reading of the code word is completed, the number of code words read is compared (step S28). If the number of code words is more than a certain percentage of the total number of code words originally included in the barcode, for example, 90% or more (YES), error correction processing is performed (step S33), and if it does not reach 90% (NO), the code word is read and is read until it reaches 90% or more.
[0047]
Next, when the number of code words does not reach 90% even after reading again, the bar code 2 reaches the end of the transport path 94 by the end detection sensor 25 while transporting the medium (bar code). If the end is detected (YES), the signal is sent from the end detection sensor 25 to the CPU 27, and the CPU 27 reverses the medium transport motor 31 (step S34). The process proceeds to S ″ ′ to continue reading the code word. Next, when the inverted barcode 2 reaches the end in the direction of the insertion slot 30, it is detected by the insertion detection sensor 21, and again in the same manner as described above. Invert and continue reading.
[0048]
In step S29, if the reading end instruction is instructed by the switch 32 before the barcode 2 reaches the end (step S30), this signal is sent to the CPU 27, and the CPU 27 ejects the medium and reads the barcode. Abort the reading operation.
[0049]
However, if there is no instruction to end reading in step S30 (NO) and reading is not completed, the code word reading is continued for a predetermined time (step S31), for a predetermined time or longer, for example, 10 seconds or longer. If reading continues beyond a certain percentage of the total number of code words (YES), the barcode is discharged and the reading process is terminated. Through the above process, barcode reading is achieved.
[0050]
Next, FIG. 9 shows an outline of a barcode information reading apparatus according to a third embodiment of the present invention. This bar code information reading apparatus reads a bar code by manually moving the apparatus main body that houses the imaging unit.
[0051]
The barcode information reading device main body 39 includes a one-dimensional imaging unit 33 that reads a barcode 2 such as PDF-417, a data processing unit 34 that analyzes and decodes the read barcode, and a communication with the data processing unit 34. A host apparatus 5 made of a personal computer or the like that is connected via the line 4 and processes information decoded by analysis is accommodated and integrated so as to be handheld.
[0052]
The data processing unit 34 stores a CPU 35 that decodes an image signal captured by the one-dimensional imaging unit 33, a RAM 36 that stores decoded information, data necessary for decoding, and the like, and a program for processing performed by the CPU 35. Program memory 37, a switch 38 for instructing the end of reading, and a timer incorporated in the CPU 35.
[0053]
The barcode 2 read as an image signal by the one-dimensional imaging unit a is decoded by the data processing unit 35 and the result is sent to the host device 5 through the communication line 4. Here, description of illumination means that may be necessary when reading a barcode is omitted.
[0054]
The reading operation of the barcode information reading apparatus configured as described above will be described.
The image signal captured by the one-dimensional imaging unit 33 is sent to the data processing unit 34. The sent image signal is basically stored in a memory such as the RAM 36 and processed in the order of generation of the read image signal. When a new image signal is input, information on the previous image signal, Shall be lost. Here, it is assumed that the barcode 2 is the same as that in the first embodiment.
[0055]
The barcode reading operation will be described below with reference to the flowchart shown in FIG. Here, in the present embodiment, the emission of the reading light is always performed.
[0056]
First, the one-dimensional imaging unit 33 is brought close to the barcode 2 to start reading, and start and stop patterns are detected (steps S41 and S42). Further, the left / right low indicator is detected (steps S43 and S44). If there is a pattern and a low indicator in the above step (YES), it is recognized that the barcode 2 is reliably captured in the captured image, and the process proceeds to the next process. When even one of the above four cannot be confirmed (NO), the process is continued until all four are detected.
[0057]
When the presence of the four patterns is confirmed, the code word is fetched (step S45), and the code word is stored in the column row in the matrix shown in FIG. 5 as in the first embodiment. Next, when the reading of the code word is completed, the number of code words read is determined (step S46). If the number of code words read is more than a certain percentage of the total number of code words originally included in the barcode, for example, 90% or more (YES), error correction processing is performed (step S49). However, if it does not reach 90% (NO), reading is performed until it reaches 90% or more.
[0058]
If the reading end instruction is instructed by the switch 95 without the number of code words read reaching 90% (step S47), this instruction signal is sent to the CPU 35, and the CPU 35 interrupts the reading of the bar code.
[0059]
If the number of code words does not reach 90% in step S47 and there is no instruction to end reading (NO), in step S48, the reading is continued until a predetermined time is set. If reading is not possible (NO), or if reading of the same code word occurs continuously in step S50 (NO), reading of the bar code is terminated. Bar code reading is achieved by the above process.
[0060]
Although described based on the above embodiments, the present invention includes the following inventions.
(1) In a processing apparatus comprising an imaging unit that reads a barcode by PDF-417, a storage unit that stores an image signal read by the imaging unit, and a barcode decoding unit that reads a code word from the signal and corrects an error.
Compare the total number of codewords that make up the barcode to be read with the number of successfully read codewords, compare the number of codewords with a predetermined ratio or more, and select the codeword with a predetermined ratio or more. A bar code characterized by providing means for performing error correction at the time of reading and repeating the process of reading a new image from the imaging unit and reading the code word when the number of code words read is less than a predetermined ratio Information reader.
(2) The bar according to (1) above, characterized in that when reading a new image from the imaging unit and reading a code word, a means for aborting the barcode reading process is provided when a predetermined time has elapsed. Code information reader.
(3) The barcode information reader according to (1) above, characterized in that means for aborting the barcode reading process is provided when there is a reading termination instruction.
(4) The barcode information reader according to (2) above, characterized in that means for aborting the barcode reading process is provided when there is a reading termination instruction.
(5) A bar for carrying out error correction by reading a code word from the above signal and a storage part for storing an image signal read by an image pickup part for reading a barcode by PDF-417, a conveying part for conveying a medium on which a barcode is written In a processing device comprising a code decoding unit,
Comparing the total number of code words constituting the barcode to be read with the number of successfully read code words, error correction is performed when code words exceeding a predetermined ratio are read. A bar code information reading apparatus comprising means for repeating a process of reading a new image from an imaging unit and reading a code word when the ratio is equal to or less than a predetermined ratio.
(6) The bar described in (5) above, characterized in that when reading a code word by reading a new image from the image pickup unit, means for stopping the barcode reading process when a predetermined time has elapsed is provided. Code information reader.
(7) The barcode information reader according to (5) above, characterized in that means for aborting the barcode reading process is provided when there is a reading termination instruction.
(8) Reading censored bar code information reading device.
The bar code information reading device according to the above item (6), characterized in that means for canceling the bar code reading process when provided is provided.
(9) When reading a new image from the image pickup unit and reading a code word, there is provided means for aborting the barcode reading process when a valid code word cannot be read during a predetermined time. The barcode information reading device according to (5) above.
(10) It is characterized in that when reading a code word by reading a new image from the imaging unit, a means for aborting the barcode reading process is provided when a valid code word cannot be read during a predetermined time. The barcode information reading device according to the above item (6).
(11) The present invention is characterized in that when reading a code word by reading a new image from the image pickup unit, a means for aborting the barcode reading process is provided when a valid code word cannot be read during a predetermined time. The barcode information reading device according to item (7).
(12) When reading a new image from the imaging unit and reading a code word, there is provided means for aborting the barcode reading process when a valid code word cannot be read during a predetermined time. The barcode information reading device according to the above item (8).
[0061]
【The invention's effect】
As described above in detail, according to the present invention, the time required for barcode reading can be shortened, and when reading processing is continued for a certain period of time, reading is aborted and waste can be omitted. Furthermore, the operability can be improved by providing means for aborting the reading process.
[0062]
According to the present invention, if a code word is read from an image including a captured bar code and cannot be read, the reading process is terminated when a predetermined time is exceeded, and the bar code reading speed is increased. A bar code information reading device can be provided.
[Brief description of the drawings]
FIG. 1 is a diagram showing an outline of a barcode information reading apparatus as a first embodiment of the present invention.
FIG. 2 is a diagram illustrating an example of a barcode by PDF-417.
FIG. 3 is a diagram illustrating an example of a barcode pattern.
FIG. 4 is a flowchart for explaining a barcode reading operation by the barcode information reading apparatus according to the first embodiment;
FIG. 5 is a diagram illustrating a matrix for storing codewords.
FIG. 6 is a diagram showing an outline of a barcode information reading apparatus as a second embodiment according to the present invention.
FIG. 7 is a first half of a flowchart for explaining a barcode reading operation by the barcode information reading apparatus according to the second embodiment;
FIG. 8 is a second half of a flowchart for explaining a barcode reading operation by the barcode information reading apparatus according to the second embodiment;
FIG. 9 is a diagram showing an outline of a barcode information reading apparatus as a third embodiment according to the present invention.
FIG. 10 is a flowchart for explaining a barcode reading operation by the barcode information reading apparatus according to the third embodiment.
FIG. 11 is a diagram illustrating an example of a two-dimensional barcode by PDF-417.
FIG. 12 is a diagram illustrating an arrangement example of a left / right low indicator, a data codeword area, and an error correction area in a barcode.
FIG. 13 is a diagram showing the relationship of the number of error correction codewords corresponding to each safety level.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 ... Two-dimensional imaging part, 2 ... Bar code, 3 ... Data processing part, 4 ... Communication line, 5 ... Host apparatus, 6 ... Frame memory, 7 ... CPU, 8 ... RAM, 9 ... Program memory, 10 ... Switch.

Claims (3)

PDF−417によるバーコードを含む画像を撮像する撮像部と、上記撮像部により撮像した画像信号を記憶する記憶部と、上記記憶部から読出した画像信号からバーコードのコードワードを読取り、誤り訂正を施すバーコード解読部とを有する処理装置において、
読取るべきバーコードを構成する全コードワード数と読取りに成功したコードワード数を比較して、上記誤り訂正により復元される情報の正確さに基づき、予め設定した比率以上のコードワード数を読取った時には誤り訂正を施し、上記読取に成功したコードワード数が上記比率以下の時には、撮像部から新たな画像を撮像し読取り、上記比率以上のコードワードを読取れるまで繰り返し行う読取り比較手段を、
さらに具備することを特徴とするバーコード情報読取り装置。
An image capturing unit that captures an image including a barcode by PDF-417, a storage unit that stores an image signal captured by the image capturing unit, a barcode code word is read from the image signal read from the storage unit, and error correction is performed. In a processing apparatus having a barcode decoding unit for performing
The total number of code words constituting the barcode to be read was compared with the number of code words that were successfully read, and based on the accuracy of the information restored by the error correction, the number of code words greater than a preset ratio was read. Sometimes error correction is performed, and when the number of code words that have been successfully read is less than or equal to the ratio, a reading comparison unit that captures and reads a new image from the imaging unit and repeats until a code word greater than or equal to the ratio can be read,
A barcode information reading device further comprising:
上記読取り比較手段において、
読取りに成功したコードワード数が上記比率以下の時に繰り返し行う新たな画像の撮像及び読み取られたコードワードと設定された比率との比較処理にかかる時間が、予め設定された時間を経過すると、新たな画像の撮像及び比較処理を打ち切る手段を、
さらに具備することを特徴とする請求項1記載のバーコード情報読取り装置。
In the reading comparison means,
When the number of code words that have been successfully read is less than or equal to the above ratio, the time taken to capture a new image and to compare the read code word with the set ratio becomes a new value after a preset time has elapsed. Means for canceling the image capture and comparison process,
The barcode information reader according to claim 1, further comprising:
バーコードが記載された媒体を搬送する搬送系と、PDF−417によるバーコードを含む画像を撮像する撮像部と、上記撮像部により撮像した画像信号からコードワードを読取って、誤り訂正を施すバーコード解読部とを有する処理装置において、
読取るべきバーコードを構成する全コードワード数と読取りに成功したコードワード数を比較して、上記誤り訂正により復元される情報の正確さに基づき予め設定した比率以上のコードワードを読取った時には、誤り訂正を施し、上記読取りに成功したコードワード数が上記比率以下の時には、上記搬送系を駆動して媒体のバーコードを撮像部で新たな画像として撮像し、上記コードワードを読取り、上記比率以上のコードワードが読取れるまで繰り返し行う読取り比較手段を、さらに具備することを特徴とするバーコード情報読取り装置。
A conveyance system that conveys a medium on which a barcode is described, an imaging unit that captures an image including a barcode by PDF-417, and a bar that performs error correction by reading a code word from an image signal captured by the imaging unit. In a processing apparatus having a code decoding unit,
Comparing the total number of code words constituting the barcode to be read with the number of code words that have been successfully read, and when reading a code word that exceeds a preset ratio based on the accuracy of information restored by the error correction, When error correction is performed and the number of code words that have been successfully read is less than or equal to the above ratio, the transport system is driven and the barcode of the medium is captured as a new image by the imaging unit, and the code word is read and the ratio is A bar code information reading apparatus, further comprising reading comparison means for repeatedly performing the above code word reading.
JP17233995A 1995-07-07 1995-07-07 Bar code information reader Expired - Fee Related JP3618405B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17233995A JP3618405B2 (en) 1995-07-07 1995-07-07 Bar code information reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17233995A JP3618405B2 (en) 1995-07-07 1995-07-07 Bar code information reader

Publications (2)

Publication Number Publication Date
JPH0922438A JPH0922438A (en) 1997-01-21
JP3618405B2 true JP3618405B2 (en) 2005-02-09

Family

ID=15940078

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17233995A Expired - Fee Related JP3618405B2 (en) 1995-07-07 1995-07-07 Bar code information reader

Country Status (1)

Country Link
JP (1) JP3618405B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5379626B2 (en) 2009-09-29 2013-12-25 日本電産サンキョー株式会社 Stack bar code information reading method and stack bar code information reading device
CN104559875A (en) * 2013-10-10 2015-04-29 江苏肯帝亚木业有限公司 Melamine modified urea-formaldehyde resin adhesive and preparation method thereof
JP6294085B2 (en) * 2014-01-10 2018-03-14 キヤノンメディカルシステムズ株式会社 Clinical laboratory equipment

Also Published As

Publication number Publication date
JPH0922438A (en) 1997-01-21

Similar Documents

Publication Publication Date Title
EP0978087B1 (en) System and method for ocr assisted bar code decoding
EP1815402B1 (en) Self-optimizing symbology reader
EP1519298A2 (en) Symbol-controlled image data reading system
JP3115003B2 (en) Method and apparatus for decoding barcode symbols using module size ratio analysis
US6606396B1 (en) Method and apparatus for detecting forgery
US6941026B1 (en) Method and apparatus using intensity gradients for visual identification of 2D matrix symbols
JPH11110476A (en) Issuing and reading devices of recording carrier recording digital code signal and recording carrier
JP2748257B2 (en) Barcode reader for 2D code reading
JP2017151969A (en) Enhanced matrix symbol error correction method
US6964373B2 (en) Recording medium and coded image reader apparatus
JP2746501B2 (en) Barcode reader
JP3618405B2 (en) Bar code information reader
JP3064632B2 (en) Barcode reader
JP2005052226A (en) Card reader utilizing bar code
JP5482340B2 (en) Bar code reading apparatus, bar code reading method, and bar code reading program
JP4058883B2 (en) Optical information reader
JP3658972B2 (en) Bar code reading device, bar code reading method and recording medium
JP3332972B2 (en) Barcode symbol reader
JP3253733B2 (en) Barcode symbol reader
JPH06266881A (en) Bar code symbol reader
JP2838040B2 (en) Media processing device
JPH0757037A (en) Bar code symbol reader
JP4207367B2 (en) Bar code reader
JP3730716B2 (en) Bar code reader
JP2002216072A (en) Two-dimensional code reader and two-dimensional code analyzing system

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20041004

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20041110

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

Free format text: PAYMENT UNTIL: 20071119

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20081119

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20091119

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees