JPH10261043A - Decoding method, decoder, and bar code processing system - Google Patents

Decoding method, decoder, and bar code processing system

Info

Publication number
JPH10261043A
JPH10261043A JP9066367A JP6636797A JPH10261043A JP H10261043 A JPH10261043 A JP H10261043A JP 9066367 A JP9066367 A JP 9066367A JP 6636797 A JP6636797 A JP 6636797A JP H10261043 A JPH10261043 A JP H10261043A
Authority
JP
Japan
Prior art keywords
code
character string
error correction
decoding
error
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP9066367A
Other languages
Japanese (ja)
Inventor
Yasuo Takahashi
保夫 高橋
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP9066367A priority Critical patent/JPH10261043A/en
Publication of JPH10261043A publication Critical patent/JPH10261043A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To enable a decorder to safely and easily decode at high speed, by decoding an encoded character string while combining the method of maximum likelihood estimation and the method of critical distance decoding. SOLUTION: A character string generating part 101 reads a postal code described in the postal code description column of mail and an address indication number through a scanner, performs character recognizing processing based on a provided image signal and extracts character information. At an error correct code (parity) adding part 102, a parity corresponding to a character string outputted from the character string generating part 101 is added and outputted to a bar coding and printing part 103. When the number of erroneous words in the code is less than a number based on the number of words in the parity added to the character string, the code is decoded by performing error correction based on the parity and when the number of erroneous words in the code is more than the number based on the parity added to the character string, the code is decoded by performing the error correction through maximum likelihood estimation so that the encoded character string can be decoded while combining the method of maximum likelihood estimation and the method of critical distance decoding.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、多重符号化方式の
復号方法および復号装置に関する。また、本発明は、例
えば、封書、葉書等の郵便物に印刷され、後の郵便物の
宛先別の区分に利用される郵便番号と住所の数字部分を
表すバーコードの符号化および復号化処理を行うバーコ
ード処理システムに関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a decoding method and a decoding device for a multiplex coding system. Also, the present invention provides a barcode encoding and decoding process for printing a postal code such as a sealed letter, postcard, and the like, and representing a postal code and a numeric part of an address, which are used for classification of each postal mail by destination. And a barcode processing system that performs

【0002】[0002]

【従来の技術】与えられた文字列を符号化復合化するシ
ステムにおいて、単一の符号のみに依らず複数の符号を
使ういわゆる多重符号化方式が用いられることがある。
多重符号化方式を用いることにより、簡単な符号の組合
せにより復号アルゴリズムの簡略化が図れるとともに、
高い性能を得ることができる。多重度をiとするとき、
まず最下位の第i段の符号化を行い、順次符号化された
結果のシンボルに上位の符号化を行って最後に第1段の
符号化をおこなうものである。
2. Description of the Related Art In a system for decoding and decoding a given character string, a so-called multiple coding system using a plurality of codes instead of a single code may be used.
By using the multiplex coding method, the decoding algorithm can be simplified by combining simple codes,
High performance can be obtained. When the multiplicity is i,
First, the lowermost i-th stage is encoded, the higher-order encoded symbols are sequentially encoded, and finally the first-stage encoding is performed.

【0003】多重符号化方式のシステムでの復合は通
常、符号化と逆順に行われる。例えばi=2のときは、
第1段の復号をまず行い、次に第2段の復号を行う。こ
のとき性能確保のためには第1段の復号情報を第2段で
利用したいが、それは一般に困難である(文献:今井
他、「2重符号化方式の復号法について」、信学論
(A)、’82.12、pp.1254−1261参
照)。
[0003] Decoding in a multiplex coding system is usually performed in the reverse order of coding. For example, when i = 2,
First stage decoding is performed first, and then second stage decoding is performed. At this time, in order to ensure the performance, it is desired to use the decoding information of the first stage in the second stage, but this is generally difficult (Refer to Imai et al., "Decoding method of double encoding method", IEICE A), '82 .12, pp. 1254-1261).

【0004】第1段の復号に限界距離復号法を用いた場
合、復号情報を第2段の復号にあまり利用できず、いわ
ば情報の損失が生じ、2重符号化法の本来の能力を十分
発揮できないという問題がある。
[0004] When the limit distance decoding method is used for the first-stage decoding, the decoded information cannot be used much for the second-stage decoding, so that information loss occurs, so to speak, and the original capability of the double encoding method is not sufficient. There is a problem that it cannot be demonstrated.

【0005】また第1段の復号に最尤推定法を用いその
結果をそのまま用いる方法もあるが、復号対象の候補が
多すぎて処理が複雑になりがちであった。多重符号化方
式を用いて文字列の符号化復号化を行うものの一例とし
て、郵便物処理に用いられるバーコード処理システムが
ある。
There is also a method of using the maximum likelihood estimation method for the first stage decoding and using the result as it is, but the processing tends to be complicated because there are too many candidates for decoding. A barcode processing system used for mail processing is an example of a system that performs encoding and decoding of a character string using a multiplex encoding method.

【0006】近年、郵便物上の郵便番号、住所を読み取
って、これらの情報に基づき郵便物の宛先別の区分を行
う郵便物処理において、現行とは異なる新郵便番号(宛
先地名情報等)、住所表示番号(宛先地番情報)等を葉
書や封書等の宛名表示面に専用のバーコード体系に従っ
たバーコードとして印字し、差出局や配達局でそのバー
コードを読み取って郵便物の宛先別の仕分け等を自動化
することにより、業務の効率化を図ることが検討されて
いる。
In recent years, in postal matter processing in which a postal code and an address on a postal matter are read and the postal matter is classified according to the destination based on the information, a new postal code (destination place name information, etc.) different from the present one, The address display number (destination lot number information) is printed as a barcode according to the special barcode system on the address display surface of postcards, postcards, etc., and the barcode is read at the sending office or the delivery office and classified according to the destination of the mail. It has been studied to increase the efficiency of business by automating the sorting of the items.

【0007】郵便物上に郵便番号やあて名の数字部分を
表すバーコードを、蛍光インク等の特殊インクで印刷す
ることが予定されている。7桁の数字からなる郵便番号
の符号化では第2段はリード・ソロモン符号(以下RS
符号)、第1段は情報桁の各数字及びRS符号の3桁の
各パリティともに図2のような6ビット構成で重み3の
重み一定符号が用いられている。
[0007] It is planned to print a barcode representing a postal code or a numerical part of a destination name on a mail using a special ink such as a fluorescent ink. In the encoding of a postal code consisting of seven digits, the second stage is a Reed-Solomon code (hereinafter referred to as RS).
The first stage uses a constant weight code of weight 3 with a 6-bit configuration as shown in FIG. 2 for each information digit and each 3-digit parity of the RS code.

【0008】このようなバーコードを読み取る際、郵便
物上の宛名文字とバーコードとの重なりといった原因
で、コードの読み取り時にバーの脱落という一方向の誤
りが発生することが多い。またインクのこすれや飛び散
りといった別の原因でバーの付加という一方向の誤りが
発生する。
When reading such a bar code, a one-way error such as dropping of a bar at the time of reading the code often occurs due to the overlap of the address character on the mail and the bar code. In addition, a one-way error of adding a bar occurs due to another cause such as rubbing or scattering of ink.

【0009】郵便物処理に用いられるバーコード処理シ
ステムでは、この方向性のある誤りを発生する重み一定
符号を用いることにより、復号の際には、元の文字列の
RS符号化の際に元の文字列に付加されるパリティの数
に等しい誤り訂正が行え、この特徴を利用して、バーコ
ードから元の文字列を復元するようになっていた。
In a bar code processing system used for mail processing, a constant weight code that generates this directional error is used, so that when decoding, the original character string is RS encoded and the original character string is encoded. Error correction equal to the number of parities added to the character string can be performed, and by utilizing this feature, the original character string is restored from the bar code.

【0010】[0010]

【発明が解決しようとする課題】このような2重符号化
方式を用いて符号化された文字列の復号化を行うバーコ
ード復号化処理においては、復号の精度、すなわち、誤
り訂正の精度の向上は符号の情報損失を防ぐため、また
信頼性の向上のために重要な課題となる。
In a bar code decoding process for decoding a character string encoded using such a double encoding method, the accuracy of decoding, that is, the accuracy of error correction, is reduced. Improvement is an important issue for preventing code information loss and improving reliability.

【0011】さらに、大量の郵便物を処理することを鑑
みれば、より高速な処理が要求される。そこで、本発明
は、最尢推定法と限界距離復号法を組み合わせて符号化
された文字列を復号することにより、限界距離復号法で
保証されたパリティの個数に対応した訂正可能な誤り数
を上回るような誤りの多い場合でも符号の情報損失を防
ぎ、安全かつ容易にしかも高速に復号できる復号方法お
よび復号装置およびそれを用いたバーコード処理システ
ムを提供することを目的とする。
Furthermore, in view of processing a large amount of mail, higher speed processing is required. Therefore, the present invention decodes a character string coded by combining the maximum estimating method and the limit distance decoding method to obtain a correctable error number corresponding to the number of parities guaranteed by the limit distance decoding method. It is an object of the present invention to provide a decoding method and a decoding device capable of preventing loss of information of a code even in a case where the number of errors exceeds the above, and performing safe, easy and high-speed decoding, and a barcode processing system using the same.

【0012】[0012]

【課題を解決するための手段】本発明の復号方法は、文
字列に誤り訂正符号を付加して符号化して得られた符号
を復号する復号方法において、前記符号の誤り語数が前
記文字列に付加された誤り訂正符号の語数に基づく数よ
り少ないとき、前記誤り訂正符号に基づき誤り訂正を行
って前記符号を復号し、前記符号の誤り語数が前記文字
列に付加された誤り訂正符号の語数に基づく数より大き
いとき、最尢推定して誤り訂正を行い前記符号を復号す
ることにより、最尢推定法と限界距離復号法を組み合わ
せて符号化された文字列を復号することにより、限界距
離復号法で保証されたパリティの個数に対応した訂正可
能な誤り数を上回るような誤りの多い場合でも符号の情
報損失を防ぎ、安全かつ容易にしかも高速に復号でき
る。
According to a decoding method of the present invention, in a decoding method for decoding a code obtained by adding an error correction code to a character string and decoding the code, the number of error words of the code is added to the character string. When the number is smaller than the number based on the number of words of the added error correction code, the code is decoded by performing error correction based on the error correction code, and the number of error words of the code is the number of words of the error correction code added to the character string. When the number is larger than the number based on the minimum distance, the maximum distance estimation is performed, error correction is performed, and the code is decoded. Even when there are many errors exceeding the number of correctable errors corresponding to the number of parities guaranteed by the decoding method, loss of code information can be prevented, and decoding can be performed safely, easily and at high speed.

【0013】また、本発明の復号方法は、文字列に誤り
訂正符号を付加して符号化して得られた符号を復号する
復号方法において、前記符号の誤り語数が前記文字列に
付加された誤り訂正符号の語数に基づく数より少ないと
き、前記誤り訂正符号に基づき誤り訂正を行い前記符号
を復号し、前記符号の誤り語数が前記文字列に付加され
た誤り訂正符号の語数に基づく数より大きいとき、前記
符号の特徴に基づき抽出された元の文字列の文字列候補
のそれぞれの誤り訂正符号を生成し、この生成された各
文字列候補の誤り訂正符号と、前記符号の特徴に基づき
抽出された元の文字列の誤り訂正符号の候補を比較し
て、その比較結果に基づき元の文字列を検出することに
より、最尢推定法と限界距離復号法を組み合わせて符号
化された文字列を復号することにより、限界距離復号法
で保証されたパリティの個数に対応した訂正可能な誤り
数を上回るような誤りの多い場合でも符号の情報損失を
防ぎ、安全かつ容易にしかも高速に復号できる。
The decoding method according to the present invention is a decoding method for decoding a code obtained by adding an error correction code to a character string and decoding the code. When the number is smaller than the number based on the number of words of the correction code, the error is corrected based on the error correction code to decode the code, and the number of error words of the code is larger than the number based on the number of words of the error correction code added to the character string. When generating an error correction code for each of the character string candidates of the original character string extracted based on the characteristics of the code, extracting the error correction code for each of the generated character string candidates and extracting the error correction code based on the characteristics of the code By comparing the error correction code candidates of the original character string and detecting the original character string based on the comparison result, the character string encoded by combining the foremost estimation method and the limit distance decoding method Restore By prevent information loss of a code even if an error with many such exceed the correctable number of errors corresponding to guaranteed number of parity bounded distance decoding method, safely and easily yet can be decoded at high speed.

【0014】本発明の復号装置は、文字列に誤り訂正符
号を付加して符号化して得られた符号を復号する復号装
置において、前記符号の誤り語数が前記文字列に付加さ
れた誤り訂正符号の語数に基づく数より少ないとき、前
記誤り訂正符号に基づき誤り訂正を行って前記符号を復
号する第1の復号手段手段と、前記符号の誤り語数が前
記文字列に付加された誤り訂正符号の語数に基づく数よ
り大きいとき、最尢推定して誤り訂正を行い前記符号を
復号する第2の復号手段と、を具備したことにより、最
尢推定法と限界距離復号法を組み合わせて符号化された
文字列を復号することにより、限界距離復号法で保証さ
れたパリティの個数に対応した訂正可能な誤り数を上回
るような誤りの多い場合でも符号の情報損失を防ぎ、安
全かつ容易にしかも高速に復号できる。
[0014] The decoding apparatus according to the present invention is a decoding apparatus for decoding a code obtained by adding an error correction code to a character string and encoding the error correction code in which the number of error words of the code is added to the character string. First decoding means for performing error correction based on the error correction code and decoding the code when the number is smaller than the number based on the number of words of the error correction code; When the number is larger than the number based on the number of words, second decoding means for estimating the error and performing error correction and decoding the code is provided. By decoding the character string, even if there are many errors that exceed the number of correctable errors corresponding to the number of parities guaranteed by the marginal distance decoding method, loss of code information can be prevented and safe and easy. It can be decoded at high speed.

【0015】また、本発明の復号装置は、文字列に誤り
訂正符号を付加して符号化して得られた符号を復号する
復号装置において、前記符号の誤り語数が前記文字列に
付加された誤り訂正符号の語数に基づく数より少ないと
き、前記誤り訂正符号に基づき誤り訂正を行い前記符号
を復号する復号手段と、前記符号の誤り語数が前記文字
列に付加された誤り訂正符号の語数に基づく数より大き
いとき、前記符号の特徴に基づき抽出された元の文字列
の文字列候補のそれぞれの誤り訂正符号を生成する生成
手段と、この生成手段で生成された各文字列候補の誤り
訂正符号と、前記符号の特徴に基づき抽出された元の文
字列の誤り訂正符号の候補を比較して、その比較結果に
基づき元の文字列を検出する検出手段と、を具備したこ
とにより、最尢推定法と限界距離復号法を組み合わせて
符号化された文字列を復号することにより、限界距離復
号法で保証されたパリティの個数に対応した訂正可能な
誤り数を上回るような誤りの多い場合でも符号の情報損
失を防ぎ、安全かつ容易にしかも高速に復号できる。
Further, the decoding device of the present invention decodes a code obtained by adding an error correction code to a character string and decoding the code. When the number is smaller than the number based on the number of words of the correction code, a decoding unit that performs error correction based on the error correction code and decodes the code, and the number of error words of the code is based on the number of words of the error correction code added to the character string. Generating means for generating an error correction code for each of the character string candidates of the original character string extracted based on the characteristics of the code when the number is larger than the number, and an error correction code for each of the character string candidates generated by the generation means. And detecting means for comparing error correction code candidates of the original character string extracted based on the characteristics of the code and detecting the original character string based on the comparison result. Push Decodes a character string coded using a combination of the limit distance decoding method and the limit distance decoding method, so that even if there are many errors that exceed the number of correctable errors corresponding to the number of parity guaranteed by the limit distance decoding method, Can be safely and easily and quickly decoded.

【0016】本発明のバーコード処理システムは、文字
列に誤り訂正符号を付加して符号化して得られた符号を
バーコードに変換して所定の印刷対象物に印刷し、この
印刷対象物からバーコードを読み取って元の文字列を復
元するバーコード処理システムにおいて、前記印刷対象
物から読み取られたバーコードを符号語に変換する変換
手段と、この変換手段で変換された符号語の誤り語数が
前記文字列に付加された誤り訂正符号の語数に基づく数
より少ないとき、前記誤り訂正符号に基づき誤り訂正を
行って前記符号を復号する第1の復号手段手段と、前記
変換手段で変換された符号語の誤り語数が前記文字列に
付加された誤り訂正符号の語数に基づく数より大きいと
き、最尢推定して誤り訂正を行い前記符号を復号する第
2の復号手段と、を具備したことにより、最尢推定法と
限界距離復号法を組み合わせて符号化された文字列を復
号することにより、限界距離復号法で保証されたパリテ
ィの個数に対応した訂正可能な誤り数を上回るような誤
りの多い場合でも符号の情報損失を防ぎ、安全かつ容易
にしかも高速に復号できる。
A bar code processing system according to the present invention converts a code obtained by adding an error correction code to a character string into a bar code, prints the bar code on a predetermined print target, and prints the bar code from the print target. In a bar code processing system for reading a bar code and restoring an original character string, a conversion means for converting a bar code read from the printing object into a code word, and the number of error words of the code word converted by the conversion means When the number is smaller than the number based on the number of words of the error correction code added to the character string, first decoding means for performing error correction based on the error correction code and decoding the code, When the number of erroneous code words is larger than the number based on the number of error correction codes added to the character string, second decoding means for estimating the error and correcting the error and decoding the code, With the provision, the number of correctable errors corresponding to the number of parities guaranteed by the limit distance decoding method is exceeded by decoding the encoded character string by combining the maximum length estimation method and the limit distance decoding method. Even in the case of such a large number of errors, loss of code information is prevented, and decoding can be performed safely, easily, and at high speed.

【0017】また、本発明のバーコード処理システム
は、文字列に誤り訂正符号を付加して符号化して得られ
た符号をバーコードに変換して所定の印刷対象物に印刷
し、この印刷対象物からバーコードを読み取って元の文
字列を復元するバーコード処理システムにおいて、前記
印刷対象物から読み取られたバーコードを符号に変換す
る変換手段と、この変換手段で変換された符号の誤り語
数が前記文字列に付加された誤り訂正符号の語数に基づ
く数より少ないとき、前記誤り訂正符号に基づき誤り訂
正を行って前記符号を復号する復号手段と、前記変換手
段で変換された符号の誤り語数が前記文字列に付加され
た誤り訂正符号の語数に基づく数より大きいとき、前記
符号の特徴に基づき抽出された元の文字列の文字列候補
のそれぞれの誤り訂正符号を生成する生成手段と、この
生成手段で生成された各文字列候補の誤り訂正符号と、
前記符号の特徴に基づき抽出された元の文字列の誤り訂
正符号の候補を比較して、その比較結果に基づき元の文
字列を検出する検出手段と、を具備したことにより、最
尢推定法と限界距離復号法を組み合わせて符号化された
文字列を復号することにより、限界距離復号法で保証さ
れたパリティの個数に対応した訂正可能な誤り数を上回
るような誤りの多い場合でも符号の情報損失を防ぎ、安
全かつ容易にしかも高速に復号できる。
Further, the bar code processing system of the present invention converts a code obtained by adding an error correction code to a character string into a bar code, prints the bar code on a predetermined print target, and prints the print target. In a bar code processing system for reading a bar code from an object and restoring an original character string, a conversion means for converting the bar code read from the printing object into a code, and the number of error words of the code converted by the conversion means When the number is smaller than the number based on the number of words of the error correction code added to the character string, a decoding unit that performs error correction based on the error correction code to decode the code, and an error of the code converted by the conversion unit. When the number of words is larger than the number based on the number of words of the error correction code added to the character string, each error correction of the character string candidates of the original character string extracted based on the characteristics of the code is performed. Generating means for generating a code, and an error correction code for each character string candidates generated by the generating means,
Detecting means for comparing error correction code candidates of the original character string extracted based on the characteristics of the code, and detecting the original character string based on the comparison result. By decoding a coded character string by combining with the limit distance decoding method, even if there are many errors that exceed the number of correctable errors corresponding to the number of parities guaranteed by the limit distance decoding method, the code Information loss can be prevented, and decryption can be performed safely, easily, and at high speed.

【0018】[0018]

【発明の実施の形態】以下、本発明の実施形態について
図面を参照して説明する。なお、以下の説明において、
例えば郵便物処理に用いられるバーコード処理システム
を例にとり、本発明の符号化復号化方法について説明す
る。
Embodiments of the present invention will be described below with reference to the drawings. In the following description,
For example, the encoding / decoding method of the present invention will be described by taking a barcode processing system used for mail processing as an example.

【0019】郵便物処理に用いられるバーコード処理シ
ステムの符号化装置は、例えば、図1に示すように構成
されている。図1において、文字列発生部101は、例
えば、葉書、封書などの郵便物(バーコード印刷対象
物)の郵便番号記入欄に記入された郵便番号と、宛名住
所内の住所表示番号をスキャナで読み取り、得られた画
像信号を基に、文字認識処理を行い、文字情報を抽出す
る。そして、その抽出された文字情報から、住所表示番
号の場合なら、1丁目2番3号のアパートA号棟405
号室は「1−2−3−A−405」というように表現す
るシステム上の取り決めによる文字列の拡張(変更)
と、「A」を「C1+0」とする符号語による拡張(変
更)を行い、また、郵便番号の場合なら、例えば、「1
23−4567」という郵便番号を「1234567」
とするシステム上の文字列の拡張(変更)を行う。
An encoding device of a barcode processing system used for mail processing is configured, for example, as shown in FIG. In FIG. 1, for example, a character string generation unit 101 scans a postal code entered in a postal code entry field of a postal matter (a barcode print target) such as a postcard or a sealed letter, and an address display number in an addressee with a scanner. Character recognition processing is performed based on the read and obtained image signals to extract character information. Then, from the extracted character information, if it is an address display number, the apartment A building 405 of 1-3-2, 1-chome
The room is expanded (changed) according to a system convention that expresses it as "1-2-3-A-405".
Is extended (changed) with a code word that replaces "A" with "C1 + 0". In the case of a postal code, for example, "1"
The postal code "23-4567" is "1234567"
Is extended (changed) on the system.

【0020】パリティ付加部102では、文字列発生部
101から出力された文字列に対応するパリティを付加
し、バーコード化及び印刷部103に出力される。バー
コード化及び印刷部103では、入力された文字列を文
字単位に重み一定符号の各符号語に変換し(図2参
照)、バーコードパターンに変換した後、そのバーコー
ドパターンに従って、対応の郵便物の宛名表示面上の所
定位置に郵便番号および住所表示番号を表すバーコード
をバーコードのスタート・ストップ検出用のバーととも
に、例えば蛍光インクにより印字する。
In the parity adding section 102, a parity corresponding to the character string output from the character string generating section 101 is added, and is output to the bar coding and printing section 103. The bar-coding and printing unit 103 converts the input character string into each code word of a constant weight code on a character basis (see FIG. 2), converts the code string into a bar code pattern, and according to the bar code pattern, A bar code representing a zip code and an address display number is printed at a predetermined position on the address display surface of the mail, together with a bar for detecting start / stop of the bar code, for example, using fluorescent ink.

【0021】このように、郵便物上にバーコードとして
印刷される例えば7桁の数字からなる郵便番号の符号化
では、第2段はリード・ソロモン符号(以下RS符
号)、第1段は情報桁の各数字及びRS符号の3桁の各
パリティともに図2のような6ビット構成で重み「3」
の重み一定符号が用いられる、多重度が「2」の多重化
符号方式が採用されている。
As described above, in the encoding of a postal code consisting of, for example, seven digits, printed as a bar code on a mail, the second stage is a Reed-Solomon code (hereinafter referred to as an RS code), and the first stage is an information code. Each digit and each 3-digit parity of the RS code have a 6-bit configuration as shown in FIG.
And a multiplexing coding scheme with a multiplicity of “2” using a constant weighting code.

【0022】ここで、図3を参照して、重み一定符号に
ついて説明する。図3は、2ビット4状態(上下、上、
下、無し)のバー3本で構成される1つの符号に対し、
1キャラクタを割り当てた、符号語数15の場合の割当
例である。なお、図3では、重み「3」の重み一定符号
のバーコードに対応させて示している。
Here, the constant weight code will be described with reference to FIG. FIG. 3 shows a 2-bit 4-state (up, down, up,
For one code composed of three bars (under, no),
This is an example of allocation in the case where the number of code words is 15, to which one character is allocated. In FIG. 3, the barcodes are shown corresponding to barcodes with a constant weight code of weight “3”.

【0023】誤りに方向性があるとき、重み一定符号で
は、誤り位置がわかる、いわゆる消失誤りの訂正(消失
訂正)の形になることにより、パリティの個数だけ即ち
通常の誤りの2倍の個数のキャラクタ誤りが訂正できる
という利点がある。
When the error has directionality, the fixed weight code is used to determine the error position, that is, in the form of so-called erasure error correction (erasure correction). There is an advantage that the character error can be corrected.

【0024】ここで、符号化対象となる文字列は7キャ
ラクタの数字からなる新郵便番号とし、図2に示すよう
に、7キャラクタの新郵便番号に3キャラクタのパリテ
ィが付加されて、符号化されるものとする。2ビット4
状態のバー3本で1キャラクタを表すのであるから、1
キャラクタは6ビットで構成され、パリティもまた6ビ
ットで構成されることになる。
Here, the character string to be encoded is a new postal code consisting of seven-character numbers, and as shown in FIG. 2, a parity of three characters is added to the new postal code of seven characters to perform encoding. Shall be performed. 2 bits 4
Since one character is represented by three bars in the state, 1
The character is composed of 6 bits, and the parity is also composed of 6 bits.

【0025】重み一定符号を用いることにより、消失訂
正になれば、1キャラクタのパリティによって1キャラ
クタの誤り訂正ができる。次に、郵便物処理に用いられ
るバーコード処理システムの符号化方法について説明す
る。
If erasure correction is performed by using a constant weight code, one character error correction can be performed with one character parity. Next, an encoding method of the barcode processing system used for mail processing will be described.

【0026】バーコードを読み取る際、郵便物上の宛名
文字とバーコードとの重なりといった原因で、コードの
読み取り時にバーの脱落という一方向の誤りが発生する
ことが多い。またインクのこすれや飛び散りといった別
の原因でバーの付加という一方向の誤りが発生する。
When reading a bar code, a one-way error such as dropping of a bar often occurs at the time of reading the code due to the overlap of the address character on the mail and the bar code. In addition, a one-way error of adding a bar occurs due to another cause such as rubbing or scattering of ink.

【0027】これら方向性のある誤りが発生するときに
は、バーコードの構成文字を重み一定符号で構成する
と、第1段の誤り形態として消失誤り(誤り位置が特定
できる限り)が発生する。第2段では限界距離復号法で
保証されたパリティの個数に対応した誤り文字数の範囲
で消失訂正(消失誤りの訂正)ができる。これは誤り文
字の復元対象候補を10数字等の符号語すべてであると
仮定した従来手法による訂正法である。
When such directional errors occur, if the constituent characters of the barcode are composed of a constant weight code, an erasure error (as long as the error position can be specified) will occur as the error form of the first stage. In the second stage, erasure correction (correction of erasure error) can be performed within the range of the number of error characters corresponding to the number of parities guaranteed by the limit distance decoding method. This is a correction method according to the conventional method, assuming that error character restoration target candidates are all code words such as 10 digits.

【0028】一般的に一方向誤りを検出する符号をAU
ED符号(all−unidirectional−e
rror−detecting code)と呼ぶ。そ
の一例として、重み一定符号を例にとり本実施形態では
説明を行うものとする。
Generally, a code for detecting a one-way error is AU
ED code (all-unidirectional-e
rror-detecting code). As an example, the present embodiment will be described by taking a constant weight code as an example.

【0029】一般的に、例えば、多重度「2」の符号化
方式の復号法では、それら復元対象候補に第1段で尤度
(出力からみた入力の確からしさ)を付けて第2段の復
号に用いることも行われている。更なる改良としては、
尤度の高い候補のみで復号を行うことにより処理を簡単
にすることが可能である。この場合、特に大きな尤度差
を生じる符号を選ぶとより効果的である。
In general, for example, in a decoding method of an encoding method with a multiplicity of “2”, likelihood (the likelihood of an input as viewed from the output) is added to the candidates for restoration in the first stage, and It is also used for decryption. Further improvements include:
Processing can be simplified by decoding only with candidates having a high likelihood. In this case, it is more effective to select a code that produces a large likelihood difference.

【0030】例えば、3本のバーのうちの1本が脱落し
ている文字の場合(例えば、符号語の1ビットが脱落し
た場合)、1本脱落しかつ脱落位置の候補が4ケ所のい
ずれかであるとした場合が、2本脱落し1本付加したと
した場合等とくらべ尤度が大きいとする。この場合、脱
落位置の候補4カ所より生じる最高で4文字のみが尤度
の大きな候補として残る。具体的には、図2の符号
「0」の最初のバーが脱落すると文字候補は「0」また
は「C2」のみが残り、2番目のバーが脱落すると文字
候補は「0」、「6」、「8」、「9」の4文字のみが
残る。
For example, in the case of a character in which one of the three bars is missing (for example, when one bit of the code word is missing), one of the bars is missing and any of the candidates for the missing position is one of four. It is assumed that the likelihood is larger than that in the case where two are dropped and one is added. In this case, only a maximum of four characters generated from the four drop-out position candidates remain as candidates with high likelihood. Specifically, when the first bar of the symbol “0” in FIG. 2 is dropped, only the character candidates “0” or “C2” remain, and when the second bar is dropped, the character candidates are “0” and “6”. , "8" and "9" remain.

【0031】このように、重み一定符号は、元の文字列
候補を絞り込むことができるということで最尤推定法に
適した復号を行うことができる符号であるといえる。こ
こで、最尢推定法による復号方法とは、出力からみた入
力の最も確からしいものを認識して復号化するもので、
例えば、重み「3」の重み一定符号を用いた場合、誤り
の方向性(符号語のビットの脱落あるいは付加)と重み
「3」という特徴から誤りのあった符号語の候補を限定
して(その際、尢度が得られることもある)、その限定
された候補の中から最も元の文字列として確からしいも
のを復号結果として出力するものである。
As described above, the constant weight code can be said to be a code capable of performing decoding suitable for the maximum likelihood estimation method because the original character string candidates can be narrowed down. Here, the decoding method by the maximum likelihood estimation method is a method of recognizing and decoding the most probable input from the viewpoint of output.
For example, when a constant weight code having a weight of “3” is used, a candidate of a code word having an error is limited based on the directionality of an error (dropping or addition of bits of a code word) and the feature of a weight of “3” ( At that time, the degree of brilliance may be obtained), and a character string that is most likely to be the original character string among the limited candidates is output as a decoding result.

【0032】以上は、上位段の復号を最尤推定法のみで
行うものとした場合であるが、誤りが少ない場合、例え
ば簡単に計数できる消失誤りがパリティ数(ここでは、
3桁)以下のときは限界距離復号法を、それ以外のとき
は最尤推定法を用いる方がより確実な処理が可能であ
る。誤りが少ない場合、限界距離復号法は一意な復号が
保証されているためである。
The above is a case where the decoding of the upper stage is performed only by the maximum likelihood estimation method. When the error is small, for example, the erasure error which can be easily counted is the number of parity (here,
In the case of 3 digits or less, it is possible to perform more reliable processing by using the marginal distance decoding method and in other cases by using the maximum likelihood estimation method. This is because when there are few errors, the limit distance decoding method guarantees unique decoding.

【0033】本発明は、このような観点から2重符号化
方式の復号法を提供するもである。なお、消失誤り以外
の誤りも多いシステムでは、パリティ数に適当な正負の
バイアスを加えた数より消失誤りの数が大きければ最尤
推定法を、それ以外は限界距離復号法を用いるようにす
ればよい。
The present invention provides a decoding method of the double encoding system from such a viewpoint. In a system where there are many errors other than erasure errors, the maximum likelihood estimation method is used if the number of erasure errors is larger than the number obtained by adding an appropriate positive / negative bias to the number of parities, and the limit distance decoding method is used for other cases. I just need.

【0034】図4に、本発明の2重化復号方式の復号法
を用いた、例えば、バーコード処理システム等に用いら
れる復号装置の構成例を示す。バーコード読取部(図示
せず)は、郵便物上に印刷されたバーコードをスキャナ
で読み取り、誤り数判定部1で、読み取られたバーコー
ドの情報を基に各文字単位の符号に変換して、バーの脱
落(符号語のビットの脱落)が認められたきには、脱落
したバー(ビット)の把握(例えば、脱落したバーの位
置と数等の把握)がなされ、さらに、重み一定符号の特
徴に基づき、元の文字列の候補を抽出する。このとき、
誤り数が多い場合は文字列候補と尤度の情報12が最尤
推定法を用いた復号部2に入力され、少ない場合は文字
列と消失の情報13が限界距離復号法による復号部3に
入力される。
FIG. 4 shows an example of the configuration of a decoding apparatus used in a bar code processing system or the like, for example, using the decoding method of the duplex decoding method of the present invention. A bar code reading unit (not shown) reads the bar code printed on the mail using a scanner, and the error number determination unit 1 converts the bar code information into a code for each character based on the read bar code information. When a dropout of a bar (dropout of a bit of a code word) is recognized, the dropped bar (bit) is grasped (for example, the position and the number of the dropped bar are grasped). The original character string candidates are extracted based on the characteristics of (1). At this time,
When the number of errors is large, the character string candidate and likelihood information 12 are input to the decoding unit 2 using the maximum likelihood estimation method. When the number of errors is small, the character string and erasure information 13 are input to the decoding unit 3 using the limit distance decoding method. Is entered.

【0035】最尢推定法を用いた復号部2の復号結果1
4および限界距離復号法による復号部3の復号結果15
は出力部4に入力され、元の文字列に変換されて復号結
果16として出力される。
The decoding result 1 of the decoding unit 2 using the maximum likelihood estimation method
4 and the decoding result 15 of the decoding unit 3 by the limit distance decoding method
Is input to the output unit 4, converted into an original character string, and output as a decoding result 16.

【0036】図5に示すフローチャートは、図4の復号
化装置の全体の処理動作を概略的に示したものである。
誤り数判定部1では、符号の誤り数とパリティの数に基
づく値(例えばパリティの数「3」そのもの)との比較
を行い(ステップS1)、その比較結果から、符号の誤
り数がパリティ数相当以下の場合は、文字列と消失の情
報13に基づき限界距離復号法による復号処理を行う
(ステップS2)。またそれ以外の場合は、文字列候補
と尤度の情報12に基づき最尤推定法を用いた復号処理
を行う(ステップS3)。
The flowchart shown in FIG. 5 schematically shows the overall processing operation of the decoding device shown in FIG.
The error number determination unit 1 compares the number of code errors with a value based on the number of parities (for example, the number of parities “3” itself) (step S1). If not, the decoding process is performed by the limit distance decoding method based on the character string and the erasure information 13 (step S2). In other cases, a decoding process using the maximum likelihood estimation method is performed based on the character string candidates and the likelihood information 12 (step S3).

【0037】最尤推定法の用い方の例としては、尤度が
ある閾値より高い復号文字列候補があればそれを復号結
果とし、無ければ復号不能、即ちリジェクトとして扱う
方法がある。
As an example of the method of using the maximum likelihood estimation method, there is a method in which if there is a decoded character string candidate having a likelihood higher than a certain threshold, it is treated as a decoding result.

【0038】なお上位段の符号は最尤推定法による復号
が可能な符号でなければならない。また、誤りが多く従
って最尤推定法による処理が多い系では相対的に、限界
距離復号法において高性能な符号よりも、最尤推定法に
おいて高性能な符号を選んで用いるのが効果的である。
The code in the upper stage must be a code that can be decoded by the maximum likelihood estimation method. Further, in a system having many errors and thus many processes by the maximum likelihood estimation method, it is relatively effective to select and use a high-performance code in the maximum likelihood estimation method rather than a high-performance code in the limit distance decoding method. is there.

【0039】次に、復号を最尤推定法で行うときの尤度
の下位段での利用法、すなわち、尤度が高い候補が複数
あるときの下位段との協調による復号法について説明す
る。ここでは最尤推定法による復号を行うときに、尤度
の高い候補についての下位段のRS符号の復号化に代表
される限界距離復号化等の通常の復号は、一般にパリテ
ィの能力を超えているために誤訂正を招くので、行わな
いものとする。替わって尤度の高い候補を符号化して下
位段のパリティ条件が満たされるもののみを候補として
残す符号化による復号化なる手法を採る。候補が単一な
らば即ち復号化が行われたものとしてその候補を採用
し、また単一候補にならない場合はリジェクトとする。
Next, a description will be given of a method of using the likelihood at the lower stage when decoding is performed by the maximum likelihood estimation method, that is, a decoding method in cooperation with the lower stage when there are a plurality of candidates having high likelihood. Here, when performing decoding by the maximum likelihood estimation method, ordinary decoding such as limit distance decoding represented by decoding of a lower-stage RS code for a candidate having a high likelihood generally exceeds the capability of parity. This will not be done because it will cause erroneous correction. Instead, a decoding method is adopted in which a candidate having a high likelihood is coded and only the one that satisfies the parity condition of the lower stage is left as a candidate. If there is a single candidate, that is, the candidate is adopted as having been decoded, and if it is not a single candidate, it is rejected.

【0040】図6は、このような処理を行う最尢推定法
を用いた復号部2の構成例を示したものである。以下、
図7に示すフローチャートを参照しながら図6の各構成
部の説明を行う。
FIG. 6 shows a configuration example of the decoding unit 2 using the maximum estimating method for performing such processing. Less than,
6 will be described with reference to the flowchart shown in FIG.

【0041】尤度の高い文字列候補のうちコードの情報
部分(図2参照)の候補を情報部候補設定部51に一時
格納し(ステップS10)、これら各候補61のそれぞ
れを符号化部52で符号化しパリティ部候補62を発生
する(ステップS11)。
Of the character string candidates having a high likelihood, candidates for the code information part (see FIG. 2) are temporarily stored in the information part candidate setting section 51 (step S10), and each of these candidates 61 is encoded. To generate a parity part candidate 62 (step S11).

【0042】一方、尤度の高い文字列候補のうちコード
のパリティ部分(図2参照)の候補はパリティ部候補設
定部53に一時格納される(ステップS12)。比較部
54で、パリティ部候補設定部53に一時格納されたパ
リティ部分の候補63と、符号化部52で発生されたパ
リティとを比較し、一致したら一致信号64を情報部候
補セーブ部55に出力する(ステップS13)。
On the other hand, among the character string candidates with a high likelihood, candidates for the parity part of the code (see FIG. 2) are temporarily stored in the parity part candidate setting unit 53 (step S12). The comparing unit 54 compares the parity part candidate 63 temporarily stored in the parity part candidate setting unit 53 with the parity generated by the encoding unit 52, and when they match, sends a match signal 64 to the information part candidate saving unit 55. Output (Step S13).

【0043】情報部候補セーブ部55は一致信号64が
入力されると、それに対応する文字列候補61を正解候
補のひとつとしてセーブする(ステップS14)。情報
部候補設定部51に設定された全ての文字列候補に対
し、符号化およびそれにより発生したパリティとパリテ
ィ候補との比較が終了した後(ステップS15、ステッ
プS16)、情報部候補セーブ部55にセーブされた候
補が単一ならば(ステップS17)、それを復号結果1
4として出力し、単一でない場合はジェクトという結果
を出力する。
When the match signal 64 is input, the information part candidate saving section 55 saves the corresponding character string candidate 61 as one of the correct answer candidates (step S14). After the encoding of all the character string candidates set in the information part candidate setting part 51 and the comparison between the parity generated thereby and the parity candidate are completed (steps S15 and S16), the information part candidate saving part 55 If there is only one candidate saved in (1) (step S17), the
4 is output, and if not a single result is output.

【0044】以下、最尢推定法を用いた復号部2の処理
動作を具体的に説明する。例えば「2790001」と
いう郵便番号の図3に示したような重み一定符号におい
て、頭から4番目の「0」の最初のビットと5番目の
「0」の2番目のビットが脱落した場合であれば、7桁
全体として2×4=8通りの文字列候補ができる。
Hereinafter, the processing operation of the decoding unit 2 using the maximum estimating method will be specifically described. For example, in the case where the first bit of the fourth “0” and the second bit of the fifth “0” from the beginning are dropped in the constant weight code as shown in FIG. 3 of the postal code “2790001”, For example, there are 2 × 4 = 8 character string candidates for the entire 7 digits.

【0045】それぞれを符号化すると一般には8通りに
異なった3桁で表現できる値のパリティに符号化される
(図7のステップS10〜ステップS11)。ここえ、
例えば、「2790001」のパリティの値は「C17
0」という値とする。
When each is coded, it is generally coded into a parity of a value that can be represented by eight different three digits (steps S10 to S11 in FIG. 7). Here,
For example, the parity value of “2790001” is “C17
0 ”.

【0046】一方、本来は「C170」というパリティ
の最後の「0」の2番目のビットが脱落すると「C17
0」、「C176」、「C178」、「C179」と4
通りの候補ができる。その各々を8通りの文字列候補を
符号化して得られたパリティの値と比較する(図7のス
テップS13)。
On the other hand, when the second bit of the last “0” of the parity “C170” is dropped, “C17
0 ”,“ C176 ”,“ C178 ”,“ C179 ”and 4
There are street candidates. Each of them is compared with a parity value obtained by encoding eight different character string candidates (step S13 in FIG. 7).

【0047】まず、「2790001」の符号化結果の
パリティの値は、パリティの候補の1つである「C17
0」に一致するので「2790001」は情報部候補セ
ーブ部55にセーブされる(図7のステップS14)。
このとき残りのパリティ候補と比較するのは省略する。
First, the parity value of the encoding result of “2790001” is “C17” which is one of the parity candidates.
Since it matches "0", "2790001" is saved in the information part candidate saving part 55 (step S14 in FIG. 7).
At this time, comparison with the remaining parity candidates is omitted.

【0048】情報部候補設定部51に設定された次の文
字列候補が「2790601」とすると、これを符号化
して4通りのパリティ候補と比較し一致すれば同様にセ
ーブを行う。また、4通りとも一致しなければセーブは
行わない。
Assuming that the next character string candidate set in the information part candidate setting part 51 is "2790601", this is encoded, compared with four kinds of parity candidates, and saved if they match. If none of the four matches, save is not performed.

【0049】情報部候補設定部51に設定された8通り
の文字列候補で、この処理を終えると(図7のステップ
S15、S16)、情報部候補セーブ部55にセーブさ
れている情報部候補の個数を確かめ、1つのみならその
候補を復号結果とし、複数あるならリジェクトという結
果にする(図7のステップS17)。
When this processing is completed with the eight character string candidates set in the information part candidate setting part 51 (steps S15 and S16 in FIG. 7), the information part candidates saved in the information part candidate saving part 55 Is confirmed, and if there is only one, the candidate is determined as a decoding result, and if there are a plurality of candidates, the result is rejected (step S17 in FIG. 7).

【0050】さらに、図8に示すように、情報源に関す
る規則、知識が記憶されたデータベース71の利用が可
能な場合は、リジェクトになった復号結果の複数の情報
部候補(図6の情報部候補セーブ部55にセーブされて
いるもの)を対象として、データベース71に記憶され
ている、例えば郵便番号コードの情報部分は10数字で
あるといった情報源の規則、また郵便番号簿といった知
識を用いて同様に候補を絞り、結果が単一候補なら復号
が行われたものとしてその候補を採用し、また単一候補
にならない場合はリジェクトとしてもよい。
Further, as shown in FIG. 8, when a database 71 in which rules and knowledge concerning information sources are stored can be used, a plurality of information section candidates of the rejected decoding result (the information section in FIG. 6) The information stored in the database 71, for example, the information portion of the zip code is 10 digits, and the knowledge of the zip code book is used for the information stored in the candidate save section 55). Similarly, the candidates are narrowed down, and if the result is a single candidate, the candidate is adopted as that having been decoded, and if it is not a single candidate, it may be rejected.

【0051】符号化による復号化、規則、知識の各処理
の適用順序は各々の処理時間、性能即ち候補の絞り込み
の度合いに応じて入れ替えても良い。また、郵便物処理
に用いられるバーコード処理システムに限らず、応用対
象に応じて、候補数の多さ、処理経過時間によって適宜
処理を打ち切り、リジェクトという結果を出力してもよ
い。
The order of application of each process of decoding by decoding, rules, and knowledge may be changed according to each processing time, performance, that is, the degree of narrowing down candidates. Further, the processing is not limited to the barcode processing system used for mail processing, and the processing may be appropriately terminated depending on the number of candidates and the processing elapsed time according to the application object, and a result of rejection may be output.

【0052】また尤度情報は下位段だけでなく同じ段の
異なる位置の文字の復号に相互に利用してもかまわな
い。なお、以上の多重復号化方式の復号方法は、バーコ
ード処理システムに限られるものではない。
The likelihood information may be used not only for the lower stage but also for decoding characters at different positions in the same stage. The decoding method of the multiplex decoding method described above is not limited to the barcode processing system.

【0053】[0053]

【発明の効果】最尢推定法と限界距離復号法を組み合わ
せて符号化された文字列を復号することにより、限界距
離復号法で保証されたパリティの個数に対応した訂正可
能な誤り数を上回るような誤りの多い場合でも符号の情
報損失を防ぎ、安全かつ容易にしかも高速に復号でき
る。また最尤推定法を採ったとき、下位段では通常の復
号化は行わないことにより誤訂正を抑え安全、簡単に復
号化を行うことができる。
By decoding a character string coded by combining the maximum estimating method and the limit distance decoding method, the number of correctable errors corresponding to the number of parities guaranteed by the limit distance decoding method is exceeded. Even in the case of such a large number of errors, loss of code information is prevented, and decoding can be performed safely, easily, and at high speed. Further, when the maximum likelihood estimation method is employed, normal decoding is not performed in the lower stage, so that erroneous correction can be suppressed and decoding can be performed safely and easily.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施形態に係るバーコード処理システ
ムの符号化装置の構成例を概略的に示した図。
FIG. 1 is a diagram schematically illustrating a configuration example of an encoding device of a barcode processing system according to an embodiment of the present invention.

【図2】7桁のキャラクタから構成される文字列と3桁
のキャラクタから構成されるパリティを符号化したとき
のデータ構成例を示した図。
FIG. 2 is a diagram showing a data configuration example when a character string composed of 7-digit characters and a parity composed of 3-digit characters are encoded.

【図3】重み3の重み一定符号の具体例について説明す
るための図で、1キャラクタに対し、2ビット4状態
(上下、上、下、無し)のバー3本で構成される1つの
コードを割り当てた、符号語(コード)数15の場合の
割当例である。
FIG. 3 is a diagram for explaining a specific example of a constant weight code having a weight of 3; one code composed of three bars of two bits and four states (up, down, up, down, no) for one character; Is an example of allocation in the case where the number of codewords (codes) is 15.

【図4】本発明の実施形態に係る復号装置の構成例を概
略的に示した図。
FIG. 4 is a diagram schematically illustrating a configuration example of a decoding device according to an embodiment of the present invention.

【図5】図4の復号装置の処理動作の概略を説明するた
めのフローチャート。
FIG. 5 is a flowchart for explaining the outline of the processing operation of the decoding device in FIG. 4;

【図6】図4の復号装置の最尢推定法を用いた復号部の
構成例を概略的に示した図。
6 is a diagram schematically illustrating a configuration example of a decoding unit using the maximum estimating method of the decoding device in FIG. 4;

【図7】図6の復号部の処理動作の概略を説明するため
のフローチャート。
FIG. 7 is a flowchart for explaining the outline of the processing operation of the decoding unit in FIG. 6;

【図8】復号装置の他の構成例を概略的に示した図。FIG. 8 is a diagram schematically illustrating another configuration example of a decoding device.

【符号の説明】[Explanation of symbols]

1…誤り数判定部 2…最尢推定法を用いた復号部 3…限界距離復号法による復号部 4…出力部 51…情報部候補設定部 52…符号化部 53…パリティ部候補設定部 54…比較部 55…情報部候補セーブ部 DESCRIPTION OF SYMBOLS 1 ... Error number determination part 2 ... Decoding part using the maximum estimating method 3 ... Decoding part by limiting distance decoding method 4 ... Output part 51 ... Information part candidate setting part 52 ... Encoding part 53 ... Parity part candidate setting part 54 … Comparing part 55… Information part candidate saving part

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 文字列に誤り訂正符号を付加して符号化
して得られた符号を復号する復号方法において、 前記符号の誤り語数が前記文字列に付加された誤り訂正
符号の語数に基づく数より少ないとき、前記誤り訂正符
号に基づき誤り訂正を行って前記符号を復号し、前記符
号の誤り語数が前記文字列に付加された誤り訂正符号の
語数に基づく数より大きいとき、最尢推定して誤り訂正
を行い前記符号を復号することを特徴とする復号方法。
1. A decoding method for decoding a code obtained by adding an error correction code to a character string and encoding the code, wherein the number of error words of the code is a number based on the number of error correction codes added to the character string. When the number is smaller, the code is decoded by performing error correction based on the error correction code, and when the number of erroneous words of the code is larger than the number based on the number of words of the error correction code added to the character string, the maximum is estimated. A decoding method for performing error correction on the code and decoding the code.
【請求項2】 文字列に誤り訂正符号を付加して符号化
して得られた符号を復号する復号方法において、 前記符号の誤り語数が前記文字列に付加された誤り訂正
符号の語数に基づく数より少ないとき、前記誤り訂正符
号に基づき誤り訂正を行い前記符号を復号し、前記符号
の誤り語数が前記文字列に付加された誤り訂正符号の語
数に基づく数より大きいとき、前記符号の特徴に基づき
抽出された元の文字列の文字列候補のそれぞれの誤り訂
正符号を生成し、この生成された各文字列候補の誤り訂
正符号と、前記符号の特徴に基づき抽出された元の文字
列の誤り訂正符号の候補を比較して、その比較結果に基
づき元の文字列を検出することを特徴とする復号方法。
2. A decoding method for decoding a code obtained by adding an error correction code to a character string and encoding the code, wherein the number of error words of the code is a number based on the number of error correction codes added to the character string. When the number is smaller, the code is decoded by performing error correction based on the error correction code, and when the number of error words of the code is larger than the number based on the number of error correction codes added to the character string, the characteristic of the code is An error correction code is generated for each of the character string candidates of the original character string extracted based on the error correction code of each of the generated character string candidates and the original character string extracted based on the characteristics of the code. A decoding method comprising comparing error correction code candidates and detecting an original character string based on the comparison result.
【請求項3】 前記生成された各文字列候補の誤り訂正
符号のいずれか1つのみが、前記符号の特徴に基づき抽
出された元の文字列の誤り訂正符号の候補のいずれか1
つに一致するとき、その誤り訂正符号に対応する文字列
候補を元の文字列として検出することを特徴とする請求
項2記載の復号方法。
3. A method according to claim 1, wherein only one of the generated error correction codes of each character string candidate is any one of the error correction code candidates of the original character string extracted based on the characteristics of the code.
3. The decoding method according to claim 2, wherein when the numbers match, a character string candidate corresponding to the error correction code is detected as an original character string.
【請求項4】 前記符号は、方向性のある誤りを検出す
る重み一定符号であることを特徴とする請求項1または
請求項2記載の復号方法。
4. The decoding method according to claim 1, wherein the code is a constant weight code for detecting a directional error.
【請求項5】 文字列に誤り訂正符号を付加して符号化
して得られた符号を復号する復号装置において、 前記符号の誤り語数が前記文字列に付加された誤り訂正
符号の語数に基づく数より少ないとき、前記誤り訂正符
号に基づき誤り訂正を行って前記符号を復号する第1の
復号手段手段と、 前記符号の誤り語数が前記文字列に付加された誤り訂正
符号の語数に基づく数より大きいとき、最尢推定して誤
り訂正を行い前記符号を復号する第2の復号手段と、 を具備したことを特徴とする復号装置。
5. A decoding apparatus for decoding a code obtained by adding an error correction code to a character string and encoding the code, wherein the number of error words of the code is a number based on the number of error correction codes added to the character string. When the number is smaller, first decoding means for performing error correction based on the error correction code and decoding the code, the number of error words of the code being greater than the number based on the number of error correction codes added to the character string. And a second decoding means for performing error correction by estimating the maximum value when the value is larger and decoding the code.
【請求項6】 文字列に誤り訂正符号を付加して符号化
して得られた符号を復号する復号装置において、 前記符号の誤り語数が前記文字列に付加された誤り訂正
符号の語数に基づく数より少ないとき、前記誤り訂正符
号に基づき誤り訂正を行い前記符号を復号する復号手段
と、 前記符号の誤り語数が前記文字列に付加された誤り訂正
符号の語数に基づく数より大きいとき、前記符号の特徴
に基づき抽出された元の文字列の文字列候補のそれぞれ
の誤り訂正符号を生成する生成手段と、 この生成手段で生成された各文字列候補の誤り訂正符号
と、前記符号の特徴に基づき抽出された元の文字列の誤
り訂正符号の候補を比較して、その比較結果に基づき元
の文字列を検出する検出手段と、 を具備したことを特徴とする復号装置。
6. A decoding device for decoding a code obtained by adding an error correction code to a character string and encoding the code, wherein the number of error words of the code is a number based on the number of error correction codes added to the character string. When the number is smaller, decoding means for performing error correction based on the error correction code and decoding the code, and when the number of error words of the code is larger than the number based on the number of error correction codes added to the character string, the code Generating means for generating an error correction code for each of the character string candidates of the original character string extracted based on the characteristics of: an error correction code for each character string candidate generated by the generation means; Detecting means for comparing the error correction code candidates of the original character string extracted based on the extracted character string, and detecting the original character string based on the comparison result.
【請求項7】 前記生成手段で生成された各文字列候補
の誤り訂正符号のいずれか1つのみが、前記符号の特徴
に基づき抽出された元の文字列の誤り訂正符号の候補の
いずれか1つに一致するとき、その誤り訂正符号に対応
する文字列候補を元の文字列として検出することを特徴
とする請求項6記載の復号装置。
7. A method according to claim 1, wherein only one of the error correction codes of each character string candidate generated by said generating means is one of the error correction code candidates of the original character string extracted based on the characteristics of said code. 7. The decoding device according to claim 6, wherein, when one of them matches, a character string candidate corresponding to the error correction code is detected as an original character string.
【請求項8】 前記符号は、方向性のある誤りを検出す
る重み一定符号であることを特徴とする請求項5または
請求項6記載の復号装置。
8. The decoding apparatus according to claim 5, wherein the code is a constant weight code for detecting a directional error.
【請求項9】 文字列に誤り訂正符号を付加して符号化
して得られた符号をバーコードに変換して所定の印刷対
象物に印刷し、この印刷対象物からバーコードを読み取
って元の文字列を復元するバーコード処理システムにお
いて、 前記印刷対象物から読み取られたバーコードを符号語に
変換する変換手段と、 この変換手段で変換された符号語の誤り語数が前記文字
列に付加された誤り訂正符号の語数に基づく数より少な
いとき、前記誤り訂正符号に基づき誤り訂正を行って前
記符号を復号する第1の復号手段手段と、 前記変換手段で変換された符号語の誤り語数が前記文字
列に付加された誤り訂正符号の語数に基づく数より大き
いとき、最尢推定して誤り訂正を行い前記符号を復号す
る第2の復号手段と、 を具備したことを特徴とするバーコード処理システム。
9. A code obtained by adding an error correction code to a character string and encoding it, converts the code into a barcode, prints it on a predetermined print target, reads the barcode from the print target, and reads the original barcode. In a bar code processing system for restoring a character string, conversion means for converting a bar code read from the printing object into a code word, and the number of error words of the code word converted by the conversion means is added to the character string. First decoding means for performing error correction based on the error correction code to decode the code when the number is smaller than the number based on the number of error correction codes, Second decoding means for estimating the maximum error and correcting the error and decoding the code when the number is larger than the number based on the number of words of the error correction code added to the character string. Over-de-processing system.
【請求項10】 文字列に誤り訂正符号を付加して符号
化して得られた符号をバーコードに変換して所定の印刷
対象物に印刷し、この印刷対象物からバーコードを読み
取って元の文字列を復元するバーコード処理システムに
おいて、 前記印刷対象物から読み取られたバーコードを符号語に
変換する変換手段と、 この変換手段で変換された符号語の誤り語数が前記文字
列に付加された誤り訂正符号の語数に基づく数より少な
いとき、前記誤り訂正符号に基づき誤り訂正を行って前
記符号を復号する復号手段と、 前記変換手段で変換された符号語の誤り語数が前記文字
列に付加された誤り訂正符号の語数に基づく数より大き
いとき、前記符号の特徴に基づき抽出された元の文字列
の文字列候補のそれぞれの誤り訂正符号を生成する生成
手段と、 この生成手段で生成された各文字列候補の誤り訂正符号
と、前記符号の特徴に基づき抽出された元の文字列の誤
り訂正符号の候補を比較して、その比較結果に基づき元
の文字列を検出する検出手段と、 を具備したことを特徴とするバーコード処理システム。
10. A code obtained by adding an error correction code to a character string and converting the code to a barcode, printing the barcode on a predetermined print target, reading the barcode from the print target, and reading the original barcode. In a bar code processing system for restoring a character string, conversion means for converting a bar code read from the printing object into a code word, and the number of error words of the code word converted by the conversion means is added to the character string. Decoding means for performing error correction based on the error correction code and decoding the code when the number is smaller than the number based on the number of error correction codes, and the number of error words of the code word converted by the conversion means is included in the character string. Generating means for generating each error correction code of a character string candidate of the original character string extracted based on the characteristics of the code, when the number is larger than the number based on the number of words of the added error correction code, The error correction code of each character string candidate generated by the generation means is compared with the error correction code candidate of the original character string extracted based on the characteristics of the code, and the original character string is determined based on the comparison result. A bar code processing system comprising: a detection unit configured to detect a bar code.
【請求項11】 前記生成手段で生成された各文字列候
補の誤り訂正符号のいずれか1つのみが、前記符号の特
徴に基づき抽出された元の文字列の誤り訂正符号の候補
のいずれか1つに一致するとき、その誤り訂正符号に対
応する文字列候補を元の文字列として検出することを特
徴とする請求項10記載のバーコード処理システム。
11. A method according to claim 1, wherein only one of the error correction codes of each character string candidate generated by said generating means is one of the error correction code candidates of the original character string extracted based on the characteristics of said code. 11. The barcode processing system according to claim 10, wherein when one of them matches, a character string candidate corresponding to the error correction code is detected as an original character string.
【請求項12】 前記符号は、方向性のある誤りを検出
する重み一定符号であることを特徴とする請求項9また
は請求項10記載のバーコード処理システム。
12. The bar code processing system according to claim 9, wherein the code is a constant weight code for detecting a directional error.
JP9066367A 1997-03-19 1997-03-19 Decoding method, decoder, and bar code processing system Pending JPH10261043A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9066367A JPH10261043A (en) 1997-03-19 1997-03-19 Decoding method, decoder, and bar code processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9066367A JPH10261043A (en) 1997-03-19 1997-03-19 Decoding method, decoder, and bar code processing system

Publications (1)

Publication Number Publication Date
JPH10261043A true JPH10261043A (en) 1998-09-29

Family

ID=13313813

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9066367A Pending JPH10261043A (en) 1997-03-19 1997-03-19 Decoding method, decoder, and bar code processing system

Country Status (1)

Country Link
JP (1) JPH10261043A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6981196B2 (en) 2001-07-25 2005-12-27 Hewlett-Packard Development Company, L.P. Data storage method for use in a magnetoresistive solid-state storage device
US7077322B2 (en) 2003-02-21 2006-07-18 Fujitsu Limited Bar-code reader
US7107508B2 (en) 2001-07-25 2006-09-12 Hewlett-Packard Development Company, L.P. Manufacturing test for a fault tolerant magnetoresistive solid-state storage device
US7149949B2 (en) 2001-07-25 2006-12-12 Hewlett-Packard Development Company, L.P. Method for error correction decoding in a magnetoresistive solid-state storage device
JP2009157817A (en) * 2007-12-27 2009-07-16 Toshiba Corp Bar code processing apparatus, sorting apparatus and bar code processing method
JP2014191755A (en) * 2013-03-28 2014-10-06 Nidec Sankyo Corp Stack type bar code reading device and stack type bar code reading method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6981196B2 (en) 2001-07-25 2005-12-27 Hewlett-Packard Development Company, L.P. Data storage method for use in a magnetoresistive solid-state storage device
US7107508B2 (en) 2001-07-25 2006-09-12 Hewlett-Packard Development Company, L.P. Manufacturing test for a fault tolerant magnetoresistive solid-state storage device
US7107507B2 (en) 2001-07-25 2006-09-12 Hewlett-Packard Development Company, L.P. Magnetoresistive solid-state storage device and data storage methods for use therewith
US7149948B2 (en) 2001-07-25 2006-12-12 Hewlett-Packard Development Company, L.P. Manufacturing test for a fault tolerant magnetoresistive solid-state storage device
US7149949B2 (en) 2001-07-25 2006-12-12 Hewlett-Packard Development Company, L.P. Method for error correction decoding in a magnetoresistive solid-state storage device
US7077322B2 (en) 2003-02-21 2006-07-18 Fujitsu Limited Bar-code reader
JP2009157817A (en) * 2007-12-27 2009-07-16 Toshiba Corp Bar code processing apparatus, sorting apparatus and bar code processing method
JP2014191755A (en) * 2013-03-28 2014-10-06 Nidec Sankyo Corp Stack type bar code reading device and stack type bar code reading method

Similar Documents

Publication Publication Date Title
CA2171886C (en) Bar code encoding system using four-state codes
US5455414A (en) Simplified bar code decoding with dynamically loadable data character sets
US5995118A (en) Data coding system and decoding circuit of compressed code
EP0304146A2 (en) Method of decoding a binary scan signal
WO1996013803A1 (en) Bar code for mail processing
JPH0340433B2 (en)
KR960706146A (en) Apparatus and method for 16-bit and numeric data collection using bar code symbalogies
US3651459A (en) Character distance coding
AU593235B2 (en) Method and system for binary-to-decimal interconversion
JPS58119032A (en) Information processing system
ATE412270T1 (en) ACCEPTANCE / REJECTION OF CODE WORDS OF A REPEAT CODE DEPENDING ON THE NUMBER OF CORRECTIONS PERFORMED
JPH10261043A (en) Decoding method, decoder, and bar code processing system
WO2001071701A3 (en) Selected data compression for digital pictorial information
CA2192515C (en) Identification number issuing device and identification number verification device
US4573155A (en) Maximum likelihood sequence decoder for linear cyclic codes
KR100336719B1 (en) System and its Method for creating delivery information of mail
US5887072A (en) Full address reading apparatus
Subpratatsavee et al. An implementation of a high capacity 2D barcode
KR100310832B1 (en) Four-state three-bar code device and its control method
JPH09212569A (en) Method and device for processing bar code
JPS57146380A (en) Address reader
JP3272919B2 (en) Barcode printing system
JP3392596B2 (en) Mail barcode processing system
JPH07175632A (en) Bar code reader
JPS61267139A (en) Memory control circuit