JPH09212569A - Method and device for processing bar code - Google Patents

Method and device for processing bar code

Info

Publication number
JPH09212569A
JPH09212569A JP8180716A JP18071696A JPH09212569A JP H09212569 A JPH09212569 A JP H09212569A JP 8180716 A JP8180716 A JP 8180716A JP 18071696 A JP18071696 A JP 18071696A JP H09212569 A JPH09212569 A JP H09212569A
Authority
JP
Japan
Prior art keywords
code
character string
error
weight
constant weight
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
JP8180716A
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 JP8180716A priority Critical patent/JPH09212569A/en
Publication of JPH09212569A publication Critical patent/JPH09212569A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To decode a bar code capable of securing high accuracy and reliability. SOLUTION: Disappearing correction form is obtained at the time of using a fixed weight code when errors are in the same direction, a decoding part 6 by a parity can correct the number of characters twice as many as the case of unfixed weight code and narrowing the object candidate of decoding by the combination of the content of the parity and the restoring position of a bar in an erroneous bar code with respect to the parity having a certain number of characters. However, the processing mentioned above follows an encoding system in which decoding is limited within the range of the shape of the bar code, satisfactory performance is not attained. Then, a part 7 decoding by means of a rule and a part 8 decoding by means of a data base respectively refer to rules depending on the object of coding, a new zip code book, etc., stored in a data base 8a to narrow the candidate of an original character string.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、例えば、封書、葉
書等の郵便物に印刷され、後の郵便物の宛先別の区分に
利用される郵便番号と住所の数字部分を表すバーコード
の符号化および復号化処理を行うバーコード処理方法及
びバーコード処理システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is, for example, a bar code code representing a postal code and a numeric part of an address, which is printed on a postal matter such as a letter or postcard and is used later for sorting the postal matter by destination. The present invention relates to a bar code processing method and a bar code processing system that perform encoding and decoding processing.

【0002】[0002]

【従来の技術】従来郵便物上のコードとしては文字で表
記された3桁または5桁の郵便番号があり、郵便番号自
動読取区分機にて光学的に読み取られた画像を基に文字
認識することにより、郵便番号が読み取られていた。ま
た、宛名、住所は郵便物宛名自動読取区分機にて同じく
光学的に読み取られた画像を基に文字認識することによ
り読み取られていた。そして、これらの読み取られた郵
便番号、住所の情報により郵便物の宛先別の区分が行わ
れていた。
2. Description of the Related Art Conventionally, there is a three-digit or five-digit postal code represented by characters as a code on a postal matter, and characters are recognized based on an image optically read by a postal code automatic reading / sorting machine. As a result, the zip code was read. Further, the address and the address were read by character recognition based on the image optically read by the automatic mail address sorting machine. Then, according to the information of the read zip code and address, the mail is classified according to the destination.

【0003】このように、従来の技術は文字で記載され
た郵便番号、住所を読み取る、いわゆる文字認識の技術
によっていた。しかし文字認識の性能、速度、必要な機
械類のコストは、郵便物の宛先別の区分に利用するのに
満足できるものではなかった。
As described above, the conventional technique is based on the so-called character recognition technique of reading the zip code and address written in characters. However, the character recognition performance, speed, and cost of machinery required were not satisfactory for use in sorting mail by destination.

【0004】そこで、近年、文字をバーコードに符号化
することにより、より高性能、高速度、低コストな郵便
物の区分系を構成することが検討されている。具体的に
は、中央局において、現行とは異なる新郵便番号(宛先
地名情報等)、住所表示番号(宛先地番情報)等を葉書
や封書等の宛名表示面に専用のバーコード体系に従った
バーコードとして印字し、差出局や配達局でそのバーコ
ードを読み取って郵便物の宛先別の仕分け等を自動化す
ることにより、業務の効率化を図ることが検討されてい
る。
Therefore, in recent years, it has been studied to construct a mail sorting system with higher performance, higher speed and lower cost by encoding characters into a bar code. Specifically, at the Central Office, new postal codes (destination place name information, etc.), address display numbers (destination place number information, etc.) different from the current ones were used in accordance with the dedicated bar code system on the address display surface of postcards, envelopes, etc. It has been considered to improve the efficiency of work by printing as a bar code and reading the bar code at a sending station or a delivery station to automate sorting of mail items by destination.

【0005】なお、バーコードに符号化される文字列
は、例えば、7桁の数字からなる新郵便番号と、丁目、
番、号などからなる住所表示番号で、1丁目2番3号の
アパートA号棟405号室は1−2−3−A−405と
いうように表現し、また、バーコードの新郵便番号部
分、住所表示番号部分それぞれに汎用的なリードソロモ
ン符号などによる複数のパリティを付加して符号の誤り
訂正を行うようになっている。
The character string encoded in the bar code is, for example, a new postal code consisting of 7 digits, a chome,
It is an address display number consisting of a number, a number, etc., and is expressed as 1-2-3-A-405 in the room No. 405 of the apartment building No. 1-3 of 1-chome, and the new postal code part of the barcode and the address. A plurality of parities such as a general-purpose Reed-Solomon code are added to each display number portion to perform code error correction.

【0006】[0006]

【発明が解決しようとする課題】郵便物と住所表示番号
を表すバーコードは宛先表示面の予め定められた位置に
印刷されるが、郵便物の差出人により書かれる宛先など
の文字の位置は不規則である。従って、特に、郵便局内
で郵便物の汚損を少なくするために蛍光等の特殊インク
で印刷されるバーコード(局内バーコード)において
は、宛名文字との重なり、郵便物の地色、模様や絵によ
るインクの発光量の低下等により、バーコードの読み取
り時にバーが脱落する場合がある。
The mail and the bar code indicating the address display number are printed at a predetermined position on the address display surface, but the position of the letter such as the address written by the sender of the mail is not correct. It's a rule. Therefore, especially in the case of barcodes printed with special ink such as fluorescent light (in-office barcodes) in order to reduce contamination of the mail in the post office, overlap with the address letter, background color of the mail, pattern or picture When the barcode is read, the bar may fall off due to a decrease in the amount of light emitted from the ink.

【0007】この場合、一般の符号化方式で符号化され
たコードに誤り訂正を行う場合、通常2キャラクタのパ
リティ符号に対して1キャラクタのみの誤りの訂正が可
能であるが、これでは、バーコード復号化処理の精度と
信頼性に欠けるという問題点があった。
In this case, when error correction is performed on a code coded by a general coding method, it is usually possible to correct an error of only one character with respect to a parity code of two characters. There is a problem that the accuracy and reliability of the code decoding process are lacking.

【0008】そこで、本発明は、このようにバーが脱落
する(あるいは、インクのこすれ、飛び散り等によりバ
ーが付加される)ような誤りに方向性のある場合の消失
訂正に適した重み一定符号によりバーのキャラクタを構
成し、従来のパリティの能力を越える誤りに対し容易に
消失訂正が行えるように、消失訂正用の規則、データベ
ースを利用して、バーコードの復号化時にできるだけ訂
正ができるバーコード処理方法およびバーコード処理シ
ステムを提供することを目的とする。
Therefore, according to the present invention, a constant weight code suitable for erasure correction in the case where there is directionality in the error such that the bar is dropped (or the bar is added due to ink rubbing, scattering, etc.). The character of the bar is composed by the bar, and the bar that can be corrected as much as possible at the time of decoding the bar code by using the rule and the database for the erasure correction so that the erasure correction can be easily performed for the error exceeding the conventional parity. An object is to provide a code processing method and a bar code processing system.

【0009】[0009]

【課題を解決するための手段】本発明のバーコード処理
方法は、文字列に誤り訂正符号を付加して、方向性のあ
る誤りを発生する重み一定符号に符号化して得られた符
号語をバーコードに変換して所定の印刷対象物上に印刷
し、この印刷対象物からバーコードを読み取って、元の
文字列を復元するバーコード処理方法において、前記印
刷対象物から読み取られたバーコードを符号語に変換し
て、前記誤り訂正符号に基づき消失訂正を行い、この誤
り訂正符号に基づき消失訂正ができないとき、予め定め
られた前記元の文字列に依存した条件を基に、前記重み
一定符号の特徴と前記誤り訂正符号に基づき抽出された
前記元の文字列の文字列候補から前記元の文字列を検出
することにより、高い精度と信頼性が確保できるバーコ
ードの復号化が可能となる。
According to the bar code processing method of the present invention, an error correction code is added to a character string, and a code word obtained by encoding into a constant weight code that produces a directional error is obtained. In the barcode processing method of converting to a barcode and printing on a predetermined print object, reading the barcode from the print object, and restoring the original character string, the barcode read from the print object Is converted into a code word, erasure correction is performed based on the error correction code, and when erasure correction cannot be performed based on the error correction code, the weight is determined based on a predetermined condition depending on the original character string. By detecting the original character string from the character string candidates of the original character string extracted based on the characteristics of a constant code and the error correction code, it is possible to decode a barcode that can ensure high accuracy and reliability. To become.

【0010】また、本発明のバーコード処理方法は、文
字列に誤り訂正符号を付加して、方向性のある誤りを発
生する重み一定符号に符号化して得られた符号語をバー
コードに変換して所定の印刷対象物上に印刷し、この印
刷対象物からバーコードを読み取って、元の文字列を復
元するバーコード処理方法において、前記印刷対象物か
ら読み取られたバーコードを符号語に変換して、前記誤
り訂正符号に基づき消失訂正を行い、この誤り訂正符号
に基づき消失訂正ができないとき、予め定められた前記
元の文字列の規則に基づき、前記重み一定符号の特徴と
前記誤り訂正符号に基づき抽出された前記元の文字列の
文字列候補から前記元の文字列を検出し、この元の文字
列が検出できないとき、前記元の文字列の規則に基づき
限定された文字列候補の中から、前記元の文字列の表現
範囲内の文字列を検出することにより、高い精度と信頼
性が確保できるバーコードの復号化が可能となる。
Further, in the bar code processing method of the present invention, an error correction code is added to a character string, and a code word obtained by encoding into a constant weight code that generates a directional error is converted into a bar code. Then, the barcode is printed on a predetermined print object, the barcode is read from the print object, and in the barcode processing method of restoring the original character string, the barcode read from the print object is used as a code word. When the erasure correction is performed by performing the conversion and the erasure correction cannot be performed based on the error correction code, the characteristics of the constant weight code and the error are determined based on a predetermined rule of the original character string. The original character string is detected from the character string candidates of the original character string extracted based on the correction code, and when the original character string cannot be detected, the character string limited based on the rule of the original character string From the accessory, by detecting a character string within the representation range of the source string, high accuracy and reliability it becomes possible to decode the bar code can be ensured.

【0011】また、本発明のバーコード処理システム
は、文字列に誤り訂正符号を付加して、方向性のある誤
りを発生する重み一定符号に符号化して得られた符号語
をバーコードに変換して所定の印刷対象物上に印刷し、
この印刷対象物からバーコードを読み取って、元の文字
列を復元するバーコード処理システムにおいて、前記印
刷対象物から読み取られたバーコードを符号語に変換
し、前記誤り訂正符号に基づき消失訂正を行う訂正手段
と、この訂正手段で消失訂正できないとき、予め定めら
れた前記元の文字列に依存した条件をもとに、前記重み
一定符号の特徴と前記誤り訂正符号に基づき抽出された
前記元の文字列の文字列候補から前記元の文字列を検出
する検出手段とを具備することにより、高い精度と信頼
性が確保できるバーコードの復号化が可能となる。
Further, the bar code processing system of the present invention converts a code word obtained by adding an error correction code to a character string and encoding it into a constant weight code which produces a directional error into a bar code. And print on the specified print target,
In a barcode processing system that reads a barcode from the print object and restores the original character string, the barcode read from the print object is converted into a code word, and erasure correction is performed based on the error correction code. When the erasure correction cannot be performed by the correction means and the correction means to be performed, the element extracted based on the characteristics of the constant weight code and the error correction code is based on a predetermined condition depending on the original character string. By including the detection unit that detects the original character string from the character string candidates of the character string of 1, the barcode can be decoded with high accuracy and reliability.

【0012】さらに、本発明のバーコード処理システム
は、文字列に誤り訂正符号を付加して、方向性のある誤
りを発生する重み一定符号に符号化して得られた符号語
をバーコードに変換して所定の印刷対象物上に印刷し、
この印刷対象物からバーコードを読み取って、元の文字
列を復元するバーコード処理システムにおいて、前記印
刷対象物から読み取られたバーコードを符号語に変換
し、前記誤り訂正符号に基づき消失訂正を行う訂正手段
と、この訂正手段で消失訂正できないとき、予め定めら
れた前記元の文字列の規則に基づき、前記重み一定符号
の特徴と前記誤り訂正符号に基づき抽出された前記元の
文字列の文字列候補の中から前記元の文字列を検出する
第1の検出手段と、この第1の検出手段で前記元の文字
列が検出できないとき、前記予め定められた前記元の文
字列の規則に基づき限定された文字列候補の中から前記
元の文字列の表現範囲内の文字列を検出する第2の検出
手段とを具備することにより、高い精度と信頼性が確保
できるバーコードの復号化が可能となる。
Further, in the bar code processing system of the present invention, an error correction code is added to a character string, and a code word obtained by encoding into a constant weight code which generates a directional error is converted into a bar code. And print on the specified print target,
In a barcode processing system that reads a barcode from the print object and restores the original character string, the barcode read from the print object is converted into a code word, and erasure correction is performed based on the error correction code. When the erasure correction cannot be performed by the correcting unit and the correcting unit that performs the correction, the original character string extracted based on the characteristics of the constant weight code and the error correction code is determined based on a predetermined rule of the original character string. First detecting means for detecting the original character string from character string candidates; and when the original character string cannot be detected by the first detecting means, the predetermined rule of the original character string And a second detecting means for detecting a character string within the expression range of the original character string from the character string candidates limited based on No. of it is possible.

【0013】また、本発明のバーコード処理方法は、文
字列に誤り訂正符号を付加して、方向性のある誤りを発
生する重み一定符号に符号化して得られた符号語をバー
コードに変換して所定の印刷対象物上に印刷し、この印
刷対象物からバーコードを読み取って、元の文字列を復
元するバーコード処理方法において、前記印刷対象物か
ら読み取られたバーコードを符号語に変換して、前記誤
り訂正符号に基づき消失訂正を行い、この誤り訂正符号
に基づき消失訂正ができないとき、消失誤りのある符号
語の重みに基づき誤りの方向性を判断し、その結果、前
記符号語の誤りの方向が一方向である可能性が高いと判
断されたとき、予め定められた前記元の文字列に依存し
た条件を基に、前記重み一定符号の特徴と前記誤り訂正
符号に基づき抽出された前記元の文字列の文字列候補か
ら前記元の文字列を検出することにより、高い精度と信
頼性が確保できるバーコードの復号化が可能となる。さ
らに、誤訂正が重大な影響を及ぼすシステムにおいて
も、方向性のない誤りが発生したときには元の文字列に
依存した条件に基づく復号化を行わないことにより誤訂
正を低減することができ、従って、システムの信頼性が
向上する。
Further, in the bar code processing method of the present invention, an error correction code is added to a character string, and a code word obtained by encoding into a constant weight code that generates a directional error is converted into a bar code. Then, the barcode is printed on a predetermined print object, the barcode is read from the print object, and in the barcode processing method of restoring the original character string, the barcode read from the print object is used as a code word. When the erasure correction is performed based on the error correction code after conversion, and the erasure correction cannot be performed based on the error correction code, the directionality of the error is determined based on the weight of the code word having the erasure error, and as a result, the code When it is determined that the direction of the error of the word is likely to be one direction, based on the predetermined constant character string dependent condition, based on the characteristics of the constant weight code and the error correction code. Extraction By detecting the original string from the candidate of the original string, high accuracy and reliability becomes possible to decode the bar code can be ensured. Furthermore, even in a system in which miscorrection has a significant effect, it is possible to reduce miscorrection by not performing decoding based on the condition depending on the original character string when an error having no directionality occurs, and thus, , System reliability is improved.

【0014】また、本発明のバーコード処理方法は、文
字列に誤り訂正符号を付加して、方向性のある誤りを発
生する重み一定符号に符号化して得られた符号語をバー
コードに変換して所定の印刷対象物上に印刷し、この印
刷対象物からバーコードを読み取って、元の文字列を復
元するバーコード処理方法において、前記印刷対象物か
ら読み取られたバーコードを符号語に変換して、前記誤
り訂正符号に基づき消失訂正を行い、この誤り訂正符号
に基づき消失訂正ができないとき、消失誤りのある符号
語の重みに基づき誤りの方向性を判断し、その結果、前
記符号語の誤りの方向が一方向である可能性が高いと判
断されたとき、予め定められた前記元の文字列の規則に
基づき、前記重み一定符号の特徴と前記誤り訂正符号に
基づき抽出された前記元の文字列の文字列候補から前記
元の文字列を検出し、この元の文字列が検出できないと
き、前記元の文字列の規則に基づき限定された文字列候
補の中から、前記元の文字列の表現範囲内の文字列を検
出することにより、高い精度と信頼性が確保できるバー
コードの復号化が可能となる。さらに、誤訂正が重大な
影響を及ぼすシステムにおいても、方向性のない誤りが
発生したときには元の文字列に依存した条件に基づく復
号化を行わないことにより誤訂正を低減することがで
き、従って、システムの信頼性が向上する。
Further, in the bar code processing method of the present invention, an error correction code is added to a character string, and a code word obtained by encoding into a constant weight code that generates a directional error is converted into a bar code. Then, the barcode is printed on a predetermined print object, the barcode is read from the print object, and in the barcode processing method of restoring the original character string, the barcode read from the print object is used as a code word. When the erasure correction is performed based on the error correction code after conversion, and the erasure correction cannot be performed based on the error correction code, the directionality of the error is determined based on the weight of the code word having the erasure error, and as a result, the code When it is determined that there is a high possibility that the error direction of the word is one direction, it is extracted based on the characteristic of the constant weight code and the error correction code based on the rule of the original character string set in advance. The original character string is detected from the character string candidates of the original character string, and when the original character string cannot be detected, from the character string candidates limited based on the rule of the original character string, the original By detecting the character string within the expression range of the character string, it is possible to decode the barcode with high accuracy and reliability. Furthermore, even in a system in which miscorrection has a significant effect, it is possible to reduce miscorrection by not performing decoding based on the condition depending on the original character string when an error having no directionality occurs, and thus, , System reliability is improved.

【0015】また、本発明のバーコード処理システム
は、文字列に誤り訂正符号を付加して、方向性のある誤
りを発生する重み一定符号に符号化して得られた符号語
をバーコードに変換して所定の印刷対象物上に印刷し、
この印刷対象物からバーコードを読み取って、元の文字
列を復元するバーコード処理システムにおいて、前記印
刷対象物から読み取られたバーコードを符号語に変換
し、前記誤り訂正符号に基づき消失訂正を行う訂正手段
と、この訂正手段で消失訂正ができないとき、消失誤り
のある符号語の重みに基づき誤りの方向性を判断する判
断手段と、この判断手段で前記符号語の誤りの方向が一
方向である可能性が高いと判断されたとき、予め定めら
れた前記元の文字列に依存した条件をもとに、前記重み
一定符号の特徴と前記誤り訂正符号に基づき抽出された
前記元の文字列の文字列候補から前記元の文字列を検出
する検出手段と、を具備することにより、高い精度と信
頼性が確保できるバーコードの復号化が可能となる。さ
らに、誤訂正が重大な影響を及ぼすシステムにおいて
も、方向性のない誤りが発生したときには元の文字列に
依存した条件に基づく復号化を行わないことにより誤訂
正を低減することができ、従って、システムの信頼性が
向上する。
Further, the bar code processing system of the present invention converts a code word obtained by adding an error correction code to a character string and coding it into a constant weight code which produces a directional error into a bar code. And print on the specified print target,
In a barcode processing system that reads a barcode from the print object and restores the original character string, the barcode read from the print object is converted into a code word, and erasure correction is performed based on the error correction code. Correcting means to be performed, judging means for judging the directionality of the error based on the weight of the code word having an erasure error when the erasure correction cannot be performed by the correcting means, and the direction of the error of the code word is one direction by this judging means. When it is determined that there is a high possibility that the original character extracted based on the characteristics of the constant weight code and the error correction code, based on a condition that depends on the predetermined original character string. By including the detection unit that detects the original character string from the character string candidates of the string, it becomes possible to decode the barcode with high accuracy and reliability. Furthermore, even in a system in which miscorrection has a significant effect, it is possible to reduce miscorrection by not performing decoding based on the condition depending on the original character string when an error having no directionality occurs, and thus, , System reliability is improved.

【0016】また、本発明のバーコード処理システム
は、文字列に誤り訂正符号を付加して、方向性のある誤
りを発生する重み一定符号に符号化して得られた符号語
をバーコードに変換して所定の印刷対象物上に印刷し、
この印刷対象物からバーコードを読み取って、元の文字
列を復元するバーコード処理システムにおいて、前記印
刷対象物から読み取られたバーコードを符号語に変換
し、前記誤り訂正符号に基づき消失訂正を行う訂正手段
と、この訂正手段で消失訂正ができないとき、消失誤り
のある符号語の重みに基づき誤りの方向性を判断する判
断手段と、この判断手段で前記符号語の誤りの方向が一
方向である可能性が高いと判断されたとき、予め定めら
れた前記元の文字列の規則に基づき、前記重み一定符号
の特徴と前記誤り訂正符号に基づき抽出された前記元の
文字列の文字列候補の中から前記元の文字列を検出する
第1の検出手段と、この第1の検出手段で前記元の文字
列が検出できないとき、前記予め定められた前記元の文
字列の規則に基づき限定された文字列候補の中から前記
元の文字列の表現範囲内の文字列を検出する第2の検出
手段と、を具備することにより、高い精度と信頼性が確
保できるバーコードの復号化が可能となる。さらに、誤
訂正が重大な影響を及ぼすシステムにおいても、方向性
のない誤りが発生したときには元の文字列に依存した条
件に基づく復号化を行わないことにより誤訂正を低減す
ることができ、従って、システムの信頼性が向上する。
Further, the bar code processing system of the present invention converts a code word obtained by adding an error correction code to a character string and coding it into a constant weight code which produces a directional error into a bar code. And print on the specified print target,
In a barcode processing system that reads a barcode from the print object and restores the original character string, the barcode read from the print object is converted into a code word, and erasure correction is performed based on the error correction code. Correcting means to be performed, judging means for judging the directionality of the error based on the weight of the code word having an erasure error when the erasure correction cannot be performed by the correcting means, and the direction of the error of the code word is one direction by this judging means. When it is determined that there is a high possibility that the character string of the original character string extracted based on the characteristics of the constant weight code and the error correction code, based on a predetermined rule of the original character string. First detecting means for detecting the original character string from among the candidates, and based on the predetermined rule of the original character string when the original character string cannot be detected by the first detecting means. Decoding a barcode that can ensure high accuracy and reliability by including a second detection unit that detects a character string within the expression range of the original character string from the determined character string candidates. Is possible. Furthermore, even in a system in which miscorrection has a significant effect, it is possible to reduce miscorrection by not performing decoding based on the condition depending on the original character string when an error having no directionality occurs, and thus, , System reliability is improved.

【0017】[0017]

【発明の実施の形態】以下、本発明の実施の形態につい
て、図面を参照して説明する。まず、図2を参照して、
重み一定符号について説明する。図2(a)〜(c)
は、2ビット4状態(上下、上、下、無し)のバー3本
で構成される1つの符号に対し、1キャラクタを割り当
てた、符号語数15の場合の割当例である。なお、図2
では、重み一定符号のバーコードに対応させて示してい
る。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. First, referring to FIG.
The constant weight code will be described. FIG. 2 (a) to (c)
Is an allocation example in the case where the number of code words is 15, in which one character is allocated to one code composed of three bars of 2 bits 4 states (upper, lower, upper, lower). Note that FIG.
In the figure, a bar code having a constant weight is shown.

【0018】図2(a)は、重み(バーのあるビットの
数)4の場合、図2(b)は、重み3の場合、図2
(c)は重み2の場合である。符号化の対象となる語
(キャラクタ)として、0から9までの数字、−(ハイ
フォン)、コントロールコード数種(例えば、C1、C
2、C3などと呼ぶこととする)の十数語を想定してい
る。コントロールコードは数字などと組合わせることに
より、住所におけるアパート棟番号の英字等を表したり
するためのものである。例えば、「C1」+「0」で
「A」を表すとすると、C1、C2、C3を用いれば、
英字26文字を表せることになる。なお、C4は後に述
べる拡張用のコントロールコードである。すなわち、拡
張用のコントロールコードC4、C5…を用いることに
より、より多くの語が符号化できることになる。
2A shows the case of weight (the number of bits having a bar) of 4, and FIG. 2B shows the case of weight 3 of FIG.
(C) is a case of weight 2. The words (characters) to be encoded are numbers from 0 to 9, − (hyphen), and several control codes (for example, C1, C
2, C3, etc.) are assumed. The control code is used in combination with numbers to represent the English letters of the apartment building number in the address. For example, if "A" is represented by "C1" + "0", using C1, C2, and C3,
It will be able to represent 26 English characters. C4 is a control code for extension described later. That is, by using the extension control codes C4, C5 ..., More words can be encoded.

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

【0020】ここで、符号化対象となる文字列は7キャ
ラクタの数字からなる新郵便番号とし、図3に示すよう
に、7キャラクタの新郵便番号に1キャラクタのパリテ
ィが付加されて、符号化されるものとする。2ビット4
状態のバー3本で1キャラクタを表すのであるから、1
キャラクタは6ビットで構成され、パリティもまた6ビ
ットで構成されることになる。
Here, the character string to be encoded is a new zip code consisting of 7-character numbers, and as shown in FIG. 3, a 1-character parity is added to the 7-character new zip code for encoding. Shall be done. 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.

【0021】重み一定符号を用いることにより、消失訂
正になれば、1キャラクタのパリティによって1キャラ
クタの誤り訂正ができる。例えば、7+1=8キャラク
タのバーコード全体で1ビットの擾乱が起こってもたか
だか1キャラクタの消失誤りが発生するだけであり、重
みの値によらず訂正される。
By using the constant weight code, if the erasure correction is performed, the error correction of one character can be performed by the parity of one character. For example, even if a 1-bit disturbance occurs in the entire bar code of 7 + 1 = 8 characters, at most, an erasure error of one character occurs, and the error is corrected regardless of the weight value.

【0022】次に、2ビットのバーを脱落させる方向の
擾乱が発生した場合について説明する。この場合、発生
箇所がバーの有るビットであるかどうかにより、誤りの
キャラクタ数、誤ったキャラクタの誤りビット数が異な
る。例えば重み4の符号のときは、48C2 (注:6ビッ
ト/キャラクタ×8キャラクタ=48ビット)=112
8通りの擾乱のうち、2キャラクタが1ビットずつ誤る
場合は、8 C2 ×4 C1 ×4 C1 =448通りとなる。
他はたかだか1キャラクタの誤りでありパリティにより
訂正される。
Next, a case where a disturbance in the direction of dropping the 2-bit bar occurs will be described. In this case, the number of erroneous characters and the number of erroneous character error bits differ depending on whether or not the occurrence location is a bit with a bar. For example, for a code with a weight of 4, 48C2 (Note: 6 bits / character x 8 characters = 48 bits) = 112
Of the eight disturbances, if two characters are erroneous by one bit, then 8 C2 × 4 C1 × 4 C1 = 448.
The others are at most one character error and are corrected by the parity.

【0023】2キャラクタの誤りは従来の機械的方法に
よれば訂正が難しいが、重み4の符号の場合、1つのキ
ャラクタではバーの復元位置の候補が3通りであるの
で、448通りの2キャラクタの誤りのそれぞれに3×
3=9通りのいずれであるかが特定できれば訂正でき
る。
It is difficult to correct an error of 2 characters by a conventional mechanical method, but in the case of a code with a weight of 4, there are 3 candidates of bar restoration positions in one character, so there are 448 2 characters. 3 × for each of the errors
If it can be specified which of 3 = 9 ways, it can be corrected.

【0024】重み3の符号では1128通りのうち2キ
ャラクタが1ビットづつ誤るのは、8 C2 ×3 C1 ×3
C1 =252通りで、それぞれにつき、4×4=16通
りの候補が存在することになる。
In the code of weight 3, two characters out of 1128 are erroneous by one bit because 8 C2 × 3 C1 × 3
With C1 = 252, there are 4 × 4 = 16 candidates for each.

【0025】重み2の符号では1128通りのうち、2
キャラクタが1ビットづつ誤るのは8 C2 ×2 C1 ×2
C1 =112通りで、それぞれにつき、5×5=25通
りの候補が存在することになる。
With the code of weight 2, 2 out of 1128 ways
Characters are erroneous bit by bit 8 C2 × 2 C1 × 2
With C1 = 112 ways, there are 5 × 5 = 25 ways for each.

【0026】次に、復元候補の特定方法について説明す
る。新郵便番号は数字で構成されるとすると、図2に示
したような全部で符号語数15の重み一定符号の場合、
例えばパリティも数字とすると、「−」「C1」「C
2」「C3」「C4」は候補から省かれるので、総じて
各キャラクタにつき15分の5の候補は対象外となる。
また新郵便番号は7キャラクタで表現される数字の一部
しか使われないと考えられるので、新郵便番号簿という
ものがあれば、それをデータベースとしてより候補を絞
り込むことができる。候補の絞り込みの程度により重み
4の符号と重み2の符号のいずれが、また場合によって
は重み3の符号が、最も性能が良くなるかが変わる。
Next, a method of specifying restoration candidates will be described. Assuming that the new postal code is composed of numbers, in the case of a code with a constant weight of 15 code words as shown in FIG.
For example, if the parity is also a number, "-""C1""C
Since "2", "C3", and "C4" are omitted from the candidates, generally, 5/15 candidates for each character are excluded.
Further, since it is considered that the new postal code uses only part of the numbers expressed by 7 characters, if there is a new postal code list, it is possible to further narrow down the candidates by using it as a database. Depending on the degree of narrowing down the candidates, which of the code of weight 4 and the code of weight 2, and in some cases, the code of weight 3 has the best performance changes.

【0027】住所表示番号部分についても有効な絞り込
みの手段が想定できる。先頭や末尾にはハイフォンが来
ないということやハイフォンが2つ以上続かないといっ
た規則を使うことができる。また住所表示番号のデータ
ベースがあれば、例えばある丁目の街区番号は1番から
15番までしかないなどの情報を用いることができる可
能性がある。
An effective narrowing-down means can be assumed for the address display number portion. You can use rules such as no hyphens at the beginning or the end, and no more than two hyphens in a row. If there is a database of address display numbers, there is a possibility that it is possible to use information such that the block number of a certain street is only 1 to 15.

【0028】3ビット以上の擾乱は一般にはより発生頻
度が低いので説明を省略するが、原理は上述の2ビット
の場合と同様に消失訂正が可能である。このように、一
方向の誤りの発生する場合は重み一定符号を用いること
により、どのキャラクタも他のキャラクタに化けること
がないので、このようにパリティの訂正能力を越えた数
のキャラクタ誤りに対して候補の絞り込みにより訂正に
専念できる。また訂正ができなかったときも誤訂正は発
生せず、符号全体をリジェクトとして扱えるという利点
がある。
The disturbance of 3 bits or more generally has a lower frequency of occurrence, and therefore its explanation is omitted, but the principle is that erasure correction is possible as in the case of 2 bits described above. In this way, when a one-way error occurs, by using a constant weight code, no character can be transformed into another character. Therefore, even if the number of character errors exceeds the parity correction capability, You can concentrate on the correction by narrowing down the candidates. Further, even if the correction cannot be made, no erroneous correction occurs and the entire code can be treated as a reject.

【0029】次に拡張用のコントロールコードについて
述べる。一般に符号語数は必要最小限とするのが性能上
は望ましい。本実施形態の場合、15語から14語にす
るとバーの復元位置の候補が総じて15分の14となる
と考えられる。ただし将来の数字、英字以外の文字の表
現への対応などの拡張を考えC4を設けて、キャラクタ
数を15語としている。
Next, the control code for extension will be described. In general, it is desirable in terms of performance that the number of code words is set to the minimum necessary. In the case of the present embodiment, if the number of words is changed from 15 to 14, it is considered that the candidates for the bar restoration position are 14/15 in total. However, the number of characters is set to 15 with the provision of C4 in consideration of future expansion such as support for numbers and characters other than English letters.

【0030】どの符号をC4にするか、言いかえれば1
4語に符号語数を限るときは省くようにするかについて
も、性能の観点からの選択が有りうる。図2の例では、
バーコードの上半分にバーが多い符号をC4としてい
る。これは次のことを想定している。
Which code is to be C4, in other words 1
Whether to omit the code word when the number of code words is limited to four may be selected from the viewpoint of performance. In the example of FIG.
The code having many bars in the upper half of the bar code is C4. This assumes the following:

【0031】図4は郵便物P上のバーコードが印刷され
ることが予定されている位置の具体例を示している。図
4に示す位置に左から右に図2に示したようなバーコー
ドが並べて印刷され、下端近くに下端と平行に印刷され
るようになっている。印刷位置の評価をするときに予想
されることは、下端からの位置によってあて名の文字な
どによる擾乱の受けやすさが異なることである。例えば
下端に極く近いところでは、郵便物Pの内側(下端から
離れる方向)にいくほど擾乱が大きい傾向があると考え
られる。よってバーコードの上半分にバーが多い符号は
より擾乱を受けやすいと考えられる。なお重み3の符号
は20語まで表現できるが、図2(b)ではバーコード
の上半分にのみバーの有る符号を含む5つの符号を対象
外としている。重み2、重み4の符号はそれぞれちょう
ど15語を表現できる。重み1以下、5以上の符号も有
りうるがここで必要と思われる14語を表現できないの
で考慮外とする。なおバーが4本以上の場合も同様に重
み一定符号を構成しうる。可能な重みの値はバーが3本
の場合とは異なるが説明は省略する。
FIG. 4 shows a specific example of the position where the bar code on the mail P is scheduled to be printed. Bar codes as shown in FIG. 2 are printed side by side at positions shown in FIG. 4 from left to right, and are printed near the lower end in parallel with the lower end. What is expected when evaluating the printing position is that the susceptibility to disturbance due to the letters of the address etc. differs depending on the position from the bottom edge. For example, at a position very close to the lower end, it is considered that the disturbance tends to be greater toward the inside of the mail P (in the direction away from the lower end). Therefore, it is considered that a code having many bars in the upper half of the bar code is more likely to be disturbed. Note that the code of weight 3 can be expressed up to 20 words, but in FIG. 2B, five codes including a code having a bar only in the upper half of the bar code are excluded. The codes of weight 2 and weight 4 can express exactly 15 words, respectively. Codes with a weight of 1 or less and 5 or more are possible, but they cannot be expressed because 14 words considered necessary here cannot be expressed. When the number of bars is four or more, the constant weight code can be similarly constructed. The possible weight values are different from those in the case of three bars, but the description is omitted.

【0032】この擾乱を受けやすい位置の考え方は14
語内の割当にも用いることができる。すなわち、図2で
は、数字、特に若い番号が使用頻度が高いという想定の
もとにそれらに上半分にバーがより少ない符号を割り当
てている。なお、図2(b)はそれに加えて、ハイフォ
ンがより使用頻度が高いという想定のもとに上半分にバ
ーの無い符号を割り当てている例である。
The concept of the position susceptible to this disturbance is 14
It can also be used for intra-word assignment. That is, in FIG. 2, numbers, especially young numbers, are assigned to the upper half of them with fewer bars under the assumption that they will be used frequently. In addition to that, FIG. 2B is an example in which a bar-free code is assigned to the upper half under the assumption that the hyphen is used more frequently.

【0033】他の考え方としてはバーコードを並べたと
きにバーの無い位置の連続を少なくするというものもあ
る。バーコード全体の印刷位置の特定、ピッチの抽出な
どに悪影響がある場合もあるからである。図2(a)の
場合では左から数字「7」、「9」に対応するバーコー
ドが並ぶとバーの無い位置が、バーの全落誤りが無くと
も、2つ連続する。これをなるべく避けるために「9」
と「C4」の符号を入れ替えるということも考えられ
る。
Another way of thinking is to reduce the number of consecutive bar-free positions when arranging bar codes. This is because the print position of the entire barcode and the extraction of the pitch may be adversely affected. In the case of FIG. 2A, when the bar codes corresponding to the numbers “7” and “9” are arranged from the left, two bar-free positions continue without any bar drop error. "9" to avoid this as much as possible
It is also conceivable to replace the signs of "C4" with ".

【0034】なお、このような文字表現を拡張するため
のコントロールコードは、少なくとも英文字を表現でき
るように、C1、C2、C3は必要であり、従って、符
号語数は少なくとも14語(ハイフォン(−)を含む)
は必要となる。すなわち、数字、英文字以外の文字表現
を可能とするために、C4、C5…と追加していき、符
号語数は14語以上必要である。
Note that the control code for expanding such character representation needs C1, C2, and C3 so that at least English letters can be represented. Therefore, the number of code words is at least 14 (hyphen (- )including)
Is required. That is, C4, C5, etc. are added in order to enable representation of characters other than numbers and English characters, and the number of code words must be 14 or more.

【0035】次に、以上説明したような重み一定符号を
用いて、新郵便番号、住所表示番号を符号化して郵便物
上にバーコードを印刷する符号化処理と、郵便物上から
印刷されたバーコードを読み取り、パリティにより復
号、重みの値によりあらかじめ定められた規則による復
号、データベースに記憶された内容を基にした復号を行
う復号化処理を行うバーコード処理システムについて説
明する。
Next, using the constant weight code as described above, an encoding process of encoding a new postal code and an address display number and printing a bar code on a mail piece, and a printing process from the mail piece A bar code processing system that performs a decoding process of reading a bar code, decoding with a parity, decoding according to a predetermined rule with a weight value, and decoding based on the contents stored in a database will be described.

【0036】図1は、本発明の第1の実施形態に係る、
例えば、郵便物処理に用いられるバーコード処理システ
ムの構成を概略的に示したものである。図1(a)にお
いて、文字列発生部1は、例えば、葉書、封書などの郵
便物(バーコード印刷対象物)の郵便番号記入欄に記入
された郵便番号と、宛名住所内の住所表示番号をスキャ
ナで読み取り、得られた画像信号を基に、文字認識処理
を行い、文字情報を抽出する。そして、その抽出された
文字情報から、住所表示番号の場合なら、1丁目2番3
号のアパートA号棟405号室は「1−2−3−A−4
05」というように表現するシステム上の取り決めによ
る文字列の拡張(変更)と、「A」を「C1+0」とす
る符号語による拡張(変更)を行い、また、郵便番号の
場合なら、例えば、「123−4567」という郵便番
号を「1234567」とするシステム上の文字列の拡
張(変更)を行う。
FIG. 1 shows a first embodiment of the present invention.
For example, it schematically shows the configuration of a bar code processing system used for mail processing. In FIG. 1A, the character string generating unit 1 is, for example, a postal code entered in a postal code entry field of a postal matter (bar code print target) such as a postcard or a letter of mail, and an address display number in the addressee. Is read by a scanner, character recognition processing is performed based on the obtained image signal, and character information is extracted. Then, from the extracted character information, if it is an address display number, 1-2 chome
No. 405, Apartment A Building No. 405 is “1-2-3-A-4
For example, in the case of a zip code, for example, in the case of a zip code, the character string is expanded (changed) by a system agreement expressed as "05" The character string on the system in which the postal code "123-4567" is "1234567" is expanded (changed).

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

【0038】一方、図1(b)において、バーコード読
取部5は、郵便物上に印刷されたバーコードをスキャナ
で読み取り、読み取られたバーコードの情報を基に各文
字単位の符号に変換して、バーの脱落が認められたきに
は、脱落したバーの把握(例えば、脱落したバーの位置
と数等の把握)がなされ、さらに、重み一定符号の特徴
に基づき、元の文字列の候補を抽出する。
On the other hand, in FIG. 1 (b), the bar code reading section 5 reads the bar code printed on the postal matter with a scanner and converts it into a code for each character based on the read bar code information. Then, when the dropping of the bar is recognized, the dropping bar is grasped (for example, the position and the number of the dropping bar are grasped), and based on the feature of the constant weight code, the original character string Extract candidates.

【0039】パリティによる復号化部6は、消失訂正に
よりバーコード読取部5で読み取られたバーコードの情
報と復元文字の候補(以下、復元候補とも呼ぶ)を元
に、元の文字列に復号化する。
The parity decoding unit 6 decodes the original character string based on the information of the barcode read by the barcode reading unit 5 by the erasure correction and the candidate of the restored character (hereinafter also referred to as the restoration candidate). Turn into.

【0040】規則による復号化部7は、例えば、「元の
文字列は数字のみで構成されている」という規則に従
い、復元文字の候補を絞り込み、バーコードの情報から
元の文字列に復号化する。
The decoding unit 7 according to the rule narrows down the candidates for the restored character and decodes the bar code information into the original character string, for example, according to the rule that "the original character string is composed of only numbers". To do.

【0041】データベースによる復号化部8は、予め用
意された新郵便番号簿、住所表示番号簿のデータベース
8aを参照して復元文字候補をさらに絞り込み、バーコ
ードの情報から元の文字列に復号化する。
The database decoding unit 8 further narrows down the restored character candidates by referring to the database 8a of the new postal code book and address display number book prepared in advance, and decodes the bar code information into the original character string. To do.

【0042】次に、図5に示すフローチャートを参照し
て、図1のバーコード処理システムのパリティによる復
号化部6におけるバーコード(新郵便番号部分)の復号
化の処理手順について説明する。
Next, with reference to the flow chart shown in FIG. 5, the procedure of decoding the barcode (new zip code portion) in the decoding unit 6 by the parity of the barcode processing system of FIG. 1 will be described.

【0043】ここでは、重み一定符号を用いているの
で、パリティによる復号化部6では、消失訂正により通
常の2倍のキャラクタ数の復号ができる。さらにキャラ
クタのバーの復元位置の候補、すなわち、符号語の復元
候補をある程度絞ることができる。例えば、「227−
0048」という新郵便番号があったとする。ハイフォ
ンを除いた数字7桁がバーコードに符号化されるが、重
み4の符号で15を法とするパリティを1つ付加(例え
ばパリティを加えた合計が5となるようにすると、この
例の場合はパリティの値は12、対応語はC2)すると
する。
Since the constant weight code is used here, the parity decoding unit 6 can decode the number of characters twice the normal number by erasure correction. Further, it is possible to narrow down the candidates for the restoration position of the bar of the character, that is, the restoration candidates of the code word to some extent. For example, "227-
It is assumed that there is a new postal code "0048". 7 digits excluding hyphens are encoded into a bar code, but with the addition of one parity modulo 15 with a code of weight 4 (for example, if the total sum of parity is 5), In this case, the parity value is 12 and the corresponding word is C2).

【0044】先に述べた448通りの誤りのうち先頭2
桁が誤る16通りの誤りのうち4通りについては3×3
の復元候補のうち各1通りずつ、具体的には正しい候補
「2270048C2」の他に「0470048C
2」、「4070048C2」、「8C170048C
2」、「C1870048C2」の間違った候補が残
る。
The first 2 of the 448 errors described above
3 out of 4 out of 16 inaccurate digits
Each of the restoration candidates of “0470048C” in addition to the correct candidate “2270048C2”.
2 "," 4070048C2 "," 8C170048C
2 "," C1870048C2 "wrong candidates remain.

【0045】さて、図5に示すフローチャートにおい
て、16通りのうちの一つで間違った候補「04700
48」を生ずる擾乱を例にとり、パリティによる復号処
理を説明する。バーコード読取部5で読み取られたバー
コードの情報から、8桁の読み取ったキャラクタについ
てパリティチェックを行い(ステップS10〜ステップ
S11)、合っていれば読み取り内容を結果として出力
する(ステップS15)。 ここでは、1キャラクタ分
のパリティを用いていているので、もし1キャラクタ消
失誤りがあればパリティを用いてそれを訂正し結果を出
力する(ステップS12、ステップS15)。なお、こ
のパリティを用いた消失訂正処理は、公知の技術であ
る。もし2キャラクタ以上消失誤りがあれば(ステップ
S12)、各々のキャラクタのバーの復元位置候補の組
合せの中からパリティを満たす符号語を選び皆出力する
(ステップS14、ステップS15)。この例では、消
失誤りは2キャラクタである。一番左の桁の左上と2桁
目の左下とが数字2を表すコードから脱落すると、それ
ぞれ0、1、2と2、4、6の3通りずつの復元候補が
生じる。この3×3通りの候補のうちパリティを満たす
組合せを調べると「0470048」と「227004
8」(正解)との2つとなる。これらを結果として出力
する。
Now, in the flow chart shown in FIG. 5, one of the 16 wrong candidates "04700
The decoding process by parity will be described by taking the disturbance that causes "48" as an example. From the barcode information read by the barcode reading unit 5, a parity check is performed on the 8-digit read character (steps S10 to S11), and if they match, the read content is output as a result (step S15). Since the parity for one character is used here, if there is a one-character loss error, the parity is used to correct it and the result is output (steps S12 and S15). The erasure correction process using this parity is a known technique. If there is an erasure error of two or more characters (step S12), code words satisfying the parity are selected from the combinations of the bar restoration position candidates of each character, and all are output (steps S14 and S15). In this example, the erasure error is 2 characters. When the upper left of the leftmost digit and the lower left of the second digit drop out from the code representing the numeral 2, three restoration candidates of 0, 1, 2 and 2, 4, 6 are generated respectively. When a combination that satisfies the parity is examined among the 3 × 3 candidates, “0470048” and “227004”
8 ”(correct answer). These are output as a result.

【0046】以上述べたパリティによる復号だけでは、
候補の絞り込みはここまでであるのでコードをリジェク
トせざるを得ない。次に、規則による復号化部6におい
て、例えば、数字のみという規則に従うと、前記した1
6通りの場合、全体で生ずる4つの間違った候補を「0
470048」、「4070048」の2つにまで絞る
ことができる。
With only the above-mentioned decoding by parity,
Up to this point, we have to reject the code. Next, when the rule-based decryption unit 6 follows the rule that only numbers are used,
In the case of 6 cases, "0
It can be narrowed down to two, "470048" and "4070048".

【0047】新郵便番号簿のデータベースが無ければこ
の例ではやはり絞り込みはここまでであるが、一般には
絞り込みによって間違った候補が無くなり復号できる可
能性はパリティによる復号のみより原理的に高い。なお
パリティにも、パリティ付加部2において、パリティを
付加する時点で規則を適用し、例えば、「10」を法と
するパリティにすると、一般にはよりパリティによる復
号の性能が高まる。
If there is no new postal code book database, narrowing down is done up to this point in this example, but in general, the possibility that the wrong candidates will be eliminated by the narrowing down and decoding is possible is higher in principle than only decoding by parity. If the parity is applied to the parity at the time of adding the parity in the parity adding unit 2, and the parity is modulo “10”, for example, the decoding performance by the parity is generally improved.

【0048】更に、データベースによる復号化部8にお
いて、新郵便番号簿のデータベースを用いて、この残っ
た2つの間違った候補を排除できる可能性が高い。すな
わち、新郵便番号は、7桁の数字列つまり「00000
00」から「9999999」の1000万通りのう
ち、実際に用いられるもののみを新郵便番号簿としてデ
ータべース8aにあらかじめ記憶しておき、データべー
スによる復号化部8において、このデータベース8aに
記憶されていない数字列を候補から削除するという処理
を行う。
Furthermore, it is highly possible that the remaining two erroneous candidates can be eliminated by the database of the new postal code book in the database decoding unit 8. That is, the new postal code is a 7-digit number string, that is, "00000
Of the 10 million sets from "00" to "9999999", only those actually used are stored in advance in the database 8a as a new postal code list, and the database decoding unit 8 uses this database. A process of deleting from the candidates a number string that is not stored in 8a is performed.

【0049】図6は、データベース8aにおける新郵便
番号簿の記憶例を示したものである。ある行政区におけ
る町名(丁目部分は含まれない)に対応させて、新郵便
番号を記憶するようになっている。ここでは、町名で五
十音順に並んでいるものとするが、検索の高速化のため
に新郵便番号をキーとしてソートされていてもよい。
FIG. 6 shows an example of storage of the new postal code book in the database 8a. The new postal code is stored in association with the town name (not including the chome portion) in a certain administrative district. Here, it is assumed that the town names are arranged in the order of the Japanese syllabary, but they may be sorted using the new postal code as a key in order to speed up the search.

【0050】また、図6では、前述の例であげた新郵便
番号の部分を示しているが、例えば、候補として、「2
270048」と「0470048」が残っているな
ら、データベースによる複合化部8では、このデータベ
ース8aに、「0470048」という数字列が無いこ
とからこれを候補から削除する処理を行う。
Further, FIG. 6 shows the part of the new postal code mentioned in the above-mentioned example.
If "270048" and "0470048" remain, the database compounding unit 8 performs a process of deleting the number string "0470048" from the candidate because the database 8a does not have a number string "0470048".

【0051】なお、図1(b)のパリティ復号化部6、
規則による復号化部7、データベースによる復号化部8
のそれぞれの処理段階で、ただ1つの候補が絞れて復号
化がなされた場合は以後の処理を打ちきるものとする。
また最後の段階の復号(図1のデータベースによる復号
化部8)でも復号がなされなかった場合はリジェクトと
する。
The parity decoding unit 6 of FIG.
Decoding section 7 by rule, decoding section 8 by database
At each processing step, if only one candidate is narrowed down and decoded, the subsequent processing is terminated.
Also, if the decryption is not performed even in the final stage decryption (decoding section 8 by the database in FIG. 1), it is rejected.

【0052】また、データベースによる復号化部8はよ
り前の段階、例えば、規則による復号化部7の前に移動
することもできる。また、データベース8aは、新郵便
番号簿、住所表示番号簿とともに、規則による復号化部
7で参照されるあらかじめ定められた規則をも記憶する
ようにしてもよい。さらに、データベース8aを新郵便
番号簿の参照用に使える場合でアクセス速度に問題がな
い場合や、規則だけで復号ができないことが多い場合
は、規則による復号化部7における復号を省くことも可
能である。
The database decryption unit 8 can also be moved to an earlier stage, for example, before the rule decryption unit 7. Further, the database 8a may store not only the new postal code book and the address display number book but also a predetermined rule referred to by the rule decryption unit 7. Further, when the database 8a can be used for referring to the new postal code book, if there is no problem in the access speed, or if the decryption by the rule alone is not possible in many cases, the decryption by the decryption unit 7 by the rule can be omitted. Is.

【0053】以上は、新郵便番号部分について述べたが
住所表示番号部分についても、図1、図5を参照して説
明したのと同様に、パリティ、規則、データベースを用
いて復号を行う。
Although the new zip code portion has been described above, the address display number portion is also decrypted using the parity, the rule and the database in the same manner as described with reference to FIGS.

【0054】図7は、データベース8aにおける住所表
示番号簿の記憶例を示したものである。例えば、東京都
××区△△の丁目、番地、号の数値の場合、図7に示し
た様に、例えば、1丁目は1番からb1 番まであり、そ
のi(1≦i≦b1 )番では1号からg2号まであると
している。かならずしも1号から始まらなかったり欠番
がある場合もあるが、適宜工夫するものとし本質的では
ないので詳しくは述べない。また住居表示未実施地域で
は番地の数字の並びはより複雑であるが同様の考え方を
用いればよい。
FIG. 7 shows an example of storage of the address display number book in the database 8a. For example, in the case of the numerical values of the chome, address, and number of the xxx ward of Tokyo, as shown in FIG. 7, for example, the chome is from 1 to b1 and its i (1≤i≤b1) The number says that there are from No. 1 to No. g2. Although it may not always start from No. 1 or there may be a missing number, it will not be described in detail because it is not essential as it is devised appropriately. Also, in the area where the house display is not implemented, the arrangement of numbers in the address is more complicated, but the same idea may be used.

【0055】なお、実際は文字認識機能を持った装置の
なかでバーコードの復号が行われることもある。その場
合、図1に示したようなバーコード処理システムの復号
化処理を行い、リジェクトになった場合でも、宛名や新
郵便番号の文字の読み取り結果と突き合わせることによ
って候補の削減が期待できる。
In reality, the bar code may be decoded in a device having a character recognition function. In that case, even if the bar code processing system as shown in FIG. 1 is subjected to the decoding process and a rejection occurs, the candidates can be expected to be reduced by matching with the reading result of the characters of the address and the new postal code.

【0056】以上説明したように、誤りが一方向である
場合に重み一定符号を使うと消失訂正の形になり、パリ
ティによる復号化部6では、あるキャラクタ数のパリテ
ィに対して、重み一定符号でない場合の、通常最高で2
倍の数のキャラクタの訂正ができ、さらにパリティの内
容と誤ったバーコードのバーの復元位置との組合せによ
り復号の対象候補を絞ることができる。ただしここまで
は符号化方式、バーコードの形状の範囲に限った復号で
あり、充分な性能を得ているとはいえない。そこで、さ
らに、規則による復号化部7、データベースによる復号
化部8のそれぞれにおいて、符号化の対象に依存した規
則(例えば、データベース8aに予め記憶されているも
のとしてもよい)やデータベース8aを用いることによ
って初めて簡易に高い性能の復号化を達成することがで
きる。
As described above, if the constant weight code is used when the error is unidirectional, erasure correction is performed. In the parity decoding unit 6, the constant weight code is applied to a certain number of characters of parity. If not, usually a maximum of 2
Double the number of characters can be corrected, and the candidates for decoding can be narrowed down by combining the content of parity and the restoration position of the bar of the wrong barcode. However, the decoding up to this point is limited to the encoding system and the range of the shape of the barcode, and it cannot be said that sufficient performance is obtained. Therefore, each of the rule-based decoding unit 7 and the database-based decoding unit 8 uses a rule (for example, may be stored in advance in the database 8a) or a database 8a depending on the target of encoding. Only then can high performance decoding be achieved easily.

【0057】なお、もし重み一定符号以外の符号を用い
た場合は、キャラクタ化けの存在可能性により、単純な
規則やデータベースの適用による候補の絞り込みができ
ず、規則やデータベースの有効な利用が困難である。
If a code other than the constant weight code is used, it is impossible to narrow down the candidates by applying a simple rule or database due to the possibility of garbled characters, and it is difficult to effectively use the rule or database. Is.

【0058】さて、バーの脱落の原因とバーの付加の原
因とが同時に発生した場合、または何らかの一方向性で
ない誤りを起こす原因が発生した場合に、完全には一方
向でない誤りが起こりうる。このとき前述したように、
パリティによる復号化部6、規則による復号化部7、デ
ータベースによる復号化部8において、元の文字列に依
存した条件による誤り訂正を行うと、符号論理の範囲で
あるパリティの個数に対応した誤り訂正のみを行った場
合よりも悪い結果となる場合がある。
Now, when the cause of the dropout of the bar and the cause of the addition of the bar occur at the same time, or the cause of some non-unidirectional error occurs, an error that is not completely unidirectional can occur. At this time, as described above,
When error correction is performed in the parity decoding unit 6, the rule decoding unit 7, and the database decoding unit 8 according to the condition depending on the original character string, an error corresponding to the number of parities, which is the range of the code logic, is generated. The result may be worse than if only correction was made.

【0059】誤訂正が重大な影響を及ぼすシステムにお
いては、リジェクトが増えても誤訂正が少ない方が良
い。よってそのようなシステムでは、誤りの方向性が一
方向でない度合いにより、符号理論で保証された範囲ま
での訂正に留めるかどうか判定することが有効である。
例えば、郵便では、郵便番号に誤りが生じると目的地と
遠く離れた郵便局に郵便物が送られてしまい、遅配の原
因となる不具合がある。
In a system where erroneous correction has a significant effect, it is better that erroneous correction is small even if the number of rejects increases. Therefore, in such a system, it is effective to judge whether or not the correction is limited to the range guaranteed by the code theory, depending on the degree of the error directionality not being one direction.
For example, in the case of postal mail, if an error occurs in the postal code, the postal matter will be sent to a post office far away from the destination, causing a delay in delivery.

【0060】そこで、このような場合に、図8に示した
ような構成の復号化部を有するバーコード処理システム
が有効である。図8は、本発明の第2の実施形態に係る
バーコード処理システムのバーコード復号化部の構成を
概略的に示したもので、バーコードの読み取り時に誤り
が発生したときに、その誤りの方向性を判断して、符号
理論で保証された範囲までの訂正に留めるか、元の文字
列に依存した条件による誤り訂正を行うかを選択するも
のである。なお、図1と同一部分には同一符号を付し、
異なる部分についてのみ説明する。
Therefore, in such a case, the bar code processing system having the decoding unit having the configuration shown in FIG. 8 is effective. FIG. 8 schematically shows the configuration of the barcode decoding unit of the barcode processing system according to the second embodiment of the present invention. When an error occurs when reading the barcode, The directionality is judged and the correction is limited to the range guaranteed by the code theory or the error correction is performed under the condition depending on the original character string. The same parts as those in FIG.
Only different parts will be described.

【0061】図8において、バーコード読取部5、パリ
ティによる復号化部6、規則による復号化部7、データ
ベースによる復号化部8の機能および動作は、図1と同
様である。すなわち、バーコード読取部5で例えば郵便
物上のバーコードが読みとられると、パリティによる復
号化部6の前半で従来の符号理論で保証された誤り文字
数の範囲での誤り訂正を行うことにより復号化する。そ
して、パリティによる復号化部6の後半と、規則による
復号化部7とデータベースによる復号化部8とデータべ
ース8aから構成される元の文字列に依存した復号化部
10では、誤り方向性判断部11からの出力に応じて、
パリティによる復号化部6の前半で誤りの訂正できなか
ったものにつき訂正を行い、あるいは行わない。
In FIG. 8, the functions and operations of the barcode reading unit 5, the parity decoding unit 6, the rule decoding unit 7, and the database decoding unit 8 are the same as those in FIG. That is, when the bar code reading unit 5 reads a bar code on a mail, for example, the first half of the parity decoding unit 6 performs error correction within the range of the number of error characters guaranteed by the conventional code theory. Decrypt. Then, in the latter half of the decoding unit 6 by parity, the decoding unit 10 by the rule, the decoding unit 8 by the database, and the decoding unit 10 which depends on the original character string composed of the database 8a, According to the output from the sex determination unit 11,
The error which could not be corrected in the first half of the parity decoding unit 6 is corrected or not corrected.

【0062】以下、上下に区分されたバー3本、6ビッ
トよりなる重み(ビットの立っている数)3の文字で構
成された図9に示すようなコードを例にとり説明する。
ここでは、特に、新郵便番号7桁とパリティ1桁との合
計8桁、48ビットで構成されるコードに4ビットの擾
乱が起こったとして説明する。
An example of a code as shown in FIG. 9 which is composed of three vertically divided bars and a character having a weight of 6 bits (number of bits) 3 will be described below.
Here, in particular, it is assumed that a 4-bit disturbance occurs in a code composed of 48 bits, which is a total of 8 digits including a new zip code 7 digits and a parity 1 digit.

【0063】擾乱がバーの脱落あるいは付加のいずれか
一方、すなわち、誤りの方向が一方向ならば、48C4 =
194580通りのパターンのうち数え上げると128
562通りに2文字以上の消失誤り(位置のわかってい
る誤り)が生じ、符号理論の範囲ではこれらのコードは
リジェクトとして扱わざるを得ない。しかし、前述の第
1の実施形態のバーコード処理方法を用いると、そのう
ちの多くのものが訂正できる。
If the disturbance is either the dropout or the addition of the bar, that is, the error direction is one direction, then 48C4 =
128 out of 194580 patterns
There are 562 erasure errors of two or more characters (errors whose position is known), and these codes must be treated as rejects within the scope of code theory. However, many of them can be corrected by using the barcode processing method of the first embodiment described above.

【0064】一方で、擾乱が一方向ではなく、例えばバ
ーの脱落3ビットと付加1ビットの場合では、同方法に
よってはより良い結果を得られないことがある。例えば
1文字の誤り(文字化け)と2文字の消失誤りがある場
合である。2文字の消失誤りのみを補正するために、元
の文字列に依存した条件を用いた誤り訂正を行うと、誤
った文字列候補の中から訂正結果を選ぶことになる。そ
の結果誤訂正が生じることがある。それらは符号理論で
保証された範囲までの訂正ではリジェクトができるもの
である。また1文字またはそれ以上の文字化けを仮定し
て文字列候補を設定するのは、候補数が著しく増大して
実用になりにくい。
On the other hand, when the disturbance is not unidirectional, for example, when the bar is missing 3 bits and additional 1 bit, better results may not be obtained by the same method. For example, there is an error of 1 character (garbled character) and a deletion error of 2 characters. If error correction is performed using a condition depending on the original character string in order to correct only the erasure error of two characters, the correction result will be selected from the erroneous character string candidates. As a result, erroneous correction may occur. They can be rejected by correction up to the range guaranteed by the code theory. Further, it is difficult to set a character string candidate on the assumption that one or more characters are garbled, because the number of candidates is significantly increased.

【0065】例えば、図9のようにバーコードに文字が
割り当てられるとする。10個の数字(「0」から
「9」)とハイフォン(「−」)と文字の拡張用のコン
トロールコード(「C1」〜「C5」)である。
For example, assume that characters are assigned to the barcode as shown in FIG. They are ten numbers (“0” to “9”), hyphens (“−”), and control codes (“C1” to “C5”) for expanding characters.

【0066】ここで、第1の実施形態と同様「2270
048」という新郵便番号の例をとりあげる。パリティ
の数値は、例えば16を法とするチェックサムが「0」
となるようにすれば、「9」となり、そのとき各桁の数
値を合計すると「32」である。擾乱により最初の文字
「2」の初めの2ビットにバーの付加と脱落が加わると
文字「8」に化ける。また、次の文字「2」とその次の
文字「7」のそれぞれ初めのバーのあるビットのバーが
脱落すると、両方ともに1ビットバーが脱落したものと
判断され、消失誤りとなる。それぞれは、4通りのバー
のビットの脱落の復元候補位置が生じる。
Here, as in the first embodiment, "2270" is set.
Take the example of the new postal code "048". For the numerical value of parity, for example, the checksum modulo 16 is "0".
Then, the value becomes "9", and the numerical value of each digit at that time is "32". Due to the disturbance, the addition and removal of the bar to the first 2 bits of the first character "2" causes the character to become "8". Further, when the bar of the bit having the first bar of the next character "2" and the bar of the next character "7" is dropped, it is determined that the 1-bit bar is dropped for both of them, resulting in an erasure error. For each, there are four possible bit restoration candidate positions.

【0067】文字で表すと、文字「2」のバーの脱落し
たものの復元候補文字は、4通りのうちの2つである
「2」と「8」である。また文字「7」のバーの脱落し
たものの復元候補文字は、「1」、「3」、「5」、
「7」である。最初の文字「2」が「8」に化けた状態
でパリティ条件を満たす候補を選ぶと、新郵便番号全体
は「8210048」と誤った番号に復号されてしま
う。
In terms of characters, there are two of the four characters, "2" and "8", which are the restoration candidate characters when the bar of the character "2" is missing. In addition, the restoration candidate characters of the missing character "7" bar are "1", "3", "5",
It is "7". If the first character “2” is garbled to “8” and a candidate satisfying the parity condition is selected, the entire new postal code will be decoded into an incorrect number “8210048”.

【0068】符号理論で保証された範囲までの訂正にと
どめることにすると、バーの脱落した文字が2文字ある
ことがわかるので、パリティ1文字では訂正不可能とし
てコード全体をリジェクトすることができる。
If the correction is limited to the range guaranteed by the code theory, it can be seen that there are two characters with missing bars, so that the entire code can be rejected as being uncorrectable with one parity character.

【0069】次に、図8の誤りの方向性判断部11にお
ける誤りの方向性の強さを判断する方法として、例え
ば、消失誤りの誤り方向を判断する場合について説明す
る。コードの重みをwとすると、通常は今の例ではw=
3であり、「3」でないときはその文字に消失誤りが発
生したことがわかる。wが「2」以下の消失誤りが起こ
る場合はバーの脱落方向、wが「4」以上の消失誤りが
起こる場合はバーの付加方向であり、消失の文字数や1
文字の消失数で方向の強さが判る。
Next, as a method of determining the strength of the error directionality in the error directionality determining unit 11 of FIG. 8, a case of determining the error direction of an erasure error will be described. If the weight of the code is w, normally w =
It is 3 and when it is not "3", it can be seen that an erasure error has occurred in the character. When an erasure error of w is "2" or less occurs, it is the dropout direction of the bar, and when an erasure error of w is "4" or more is the addition direction of the bar.
The strength of the direction can be determined by the number of letters lost.

【0070】例えば、3文字消失誤りがあって、そのそ
れぞれ重み、すなわち、バーの数がそれぞれ「0」、
「2」、「4」だったとする。平均は「2」である。こ
のとき、誤りの方向性判断部11では、例えば、消失が
起きた文字の重みの平均が「2」以下なら脱落方向の誤
りが強いと判断し、また、重みの平均が「4」以上な
ら、付加方向の誤りが強いと判断して、第1の実施形態
で説明したように、元の文字列に依存した復号化部10
で誤り訂正を行うようにする。重みの平均が「3」のと
きは、誤りの方向性が弱いと判断し、このときは、パリ
ティによる復号化部6での符号理論で保証された範囲ま
での訂正に留め、その範囲を越える場合はリジェクトす
ることが可能である。
For example, there is a three-character loss error, and the weight, that is, the number of bars, is "0",
Suppose they were "2" and "4". The average is "2". At this time, the error directionality determining unit 11 determines that the error in the dropping direction is strong if the average weight of the lost characters is “2” or less, and if the average weight is “4” or more, for example. , It is determined that the error in the addition direction is strong, and as described in the first embodiment, the decoding unit 10 that depends on the original character string.
Error correction. When the average of the weights is "3", it is determined that the directionality of the error is weak, and in this case, the correction is performed up to the range guaranteed by the code theory in the decoding unit 6 by the parity, and the range is exceeded. In case, it is possible to reject.

【0071】次に、図10に示すフローチャートを参照
して、図8のバーコード処理システムの復号化部におけ
るバーコード(新郵便番号部分)の復号化の処理手順に
ついて説明する。なお、図5と同一部分には同一符号を
付し、異なる部分について説明する。
Next, with reference to the flow chart shown in FIG. 10, the procedure of decoding the barcode (new postal code portion) in the decoding section of the barcode processing system of FIG. 8 will be described. The same parts as those in FIG. 5 are designated by the same reference numerals, and different parts will be described.

【0072】まず、バーコード読取部5で読み取られた
バーコードの情報から、例えば、8桁の読み取ったキャ
ラクタについてパリティチェックを行い(ステップS1
0〜ステップS11)、合っていれば読み取り内容を結
果として出力する(ステップS25)。ここでは、1キ
ャラクタ分のパリティを用いていているので、もし1キ
ャラクタ消失誤りがあればパリティを用いてそれを訂正
し結果を出力し、処理を終了する(ステップS20、ス
テップS25)。
First, a parity check is performed on the read character of, for example, 8 digits from the information of the bar code read by the bar code reading section 5 (step S1).
0 to step S11), and if they match, the read content is output as a result (step S25). Since the parity for one character is used here, if there is a one-character loss error, the error is corrected using the parity, the result is output, and the process ends (steps S20 and S25).

【0073】ステップS21で、パリティの数に対応し
た訂正ができなかった場合はステップS22以下の処理
を行う。ステップS22では、誤り方向性判断部11に
おいて、上述したように方法にて、消失が起きた文字の
重みをの平均を求め、その値と、誤りの方向性が強いと
判断される閾値(例えば、コードの重みw=3のとき、
付加方向の誤りが強いと判断される閾値は「4」、脱落
方向の誤りが強いと判断される閾値「2」)とを比較し
て、消失が起きた文字の重みの平均値が、付加方向の誤
りが強いと判断される閾値以上か、あるいは、脱落方向
の誤りが強いと判断される閾値以下であるかをチェック
する(ステップS23)。
If the correction corresponding to the number of parities cannot be made in step S21, the processes in and after step S22 are performed. In step S22, the error directionality determination unit 11 obtains the average of the weights of the lost characters by the method as described above, and calculates the average value and the threshold value that determines that the error directionality is strong (for example, , When the code weight w = 3,
The threshold value for judging that the error in the addition direction is strong is “4”, and the threshold value for judging that the error in the drop direction is strong is “2”), and the average value of the weights of the lost characters is added. It is checked whether it is equal to or more than a threshold value at which it is determined that the error in the direction is strong, or less than or equal to a threshold value at which the error in the drop direction is determined to be strong (step S23).

【0074】誤りの方向性が強いと判断されたときは、
元の文字列に依存した復号化部10にて、第1の実施形
態で説明したように、元の文字列に依存した条件による
誤り訂正を行い、その結果を出力する(ステップS24
〜ステップS25)。
When it is judged that the direction of error is strong,
As described in the first embodiment, the decoding unit 10 that depends on the original character string performs error correction based on the condition that depends on the original character string, and outputs the result (step S24).
-Step S25).

【0075】ステップS23で、誤りの方向性が弱いと
判断されたとき(例えば、コードの重みw=3で、付加
方向の誤りが強いと判断される閾値は「4」、脱落方向
の誤りが強いと判断される閾値「2」のとき、消失が起
きた文字の重みの平均値が「3」であるとき、パリティ
による復号化部6での符号理論で保証された範囲までの
訂正により復号化された結果出力するか、あるいは、そ
のバーコードをリジェクトする(ステップS25)。
In step S23, when it is determined that the error directionality is weak (for example, when the code weight w = 3, the threshold value determined to be strong in the addition direction error is "4", and the drop direction error is When the threshold value that is judged to be strong is “2”, and when the average value of the weights of the lost characters is “3”, decoding is performed by the parity decoding unit 6 by correction up to the range guaranteed by the code theory. The converted result is output or the barcode is rejected (step S25).

【0076】誤りの方向性判断部11における誤りの方
向性の強さを判断する他の方法として、例えば、次のよ
うなものも考えられる。すなわち、コードのもともとの
重みwを基準値として、この基準値と消失誤りのある文
字の重みとの差を累積加算してた結果を、予め定められ
た誤りの方向性が強いと判断される閾値と比較して上記
同様に誤りの方向性を判断する。
As another method for judging the strength of the error directionality in the error directionality judging section 11, for example, the following method can be considered. That is, the original weight w of the code is used as a reference value, and the result of cumulative addition of the difference between this reference value and the weight of the character with the erasure error is determined to have a strong predetermined error directionality. The directionality of the error is determined in the same manner as above by comparing with the threshold value.

【0077】上記同様、コードの重みw=3で、3文字
に消失誤りがあって、その重みがそれぞれ「0」、
「2」、「4」である場合を例にとり具体的に説明す
る。すなわち、消失誤りのある文字の重みと基準値
「3」との誤差を累積加算して(3−0)+(3−2)
=3となる。このとき、例えば、付加方向の誤りが強い
と判断される閾値は「−3」、脱落方向の誤りが強いと
判断される閾値「3」とすると、脱落方向の誤りが強い
と判断されるので、第1の実施形態で説明したように、
元の文字列に依存した復号化部10で誤り訂正を行うよ
うにする。
Similarly to the above, the code weight w = 3, there is an erasure error in three characters, and the weights are "0", respectively.
A specific description will be given by taking the case of "2" and "4" as an example. That is, the error between the weight of the character having the erasure error and the reference value “3” is cumulatively added to obtain (3-0) + (3-2).
= 3. At this time, for example, if the threshold for determining that the error in the addition direction is strong is “−3” and the threshold for determining that the error in the drop direction is strong is “3”, it is determined that the error in the drop direction is strong. , As described in the first embodiment,
The decoding unit 10 depending on the original character string performs error correction.

【0078】また、ステップS23において誤りの方向
性の強さを判断するには、郵便物1通毎に行うようにし
てもよいし、複数の郵便物毎に行うようにしてもよい。
すなわち、連続して郵便物を処理するとき、最近のある
通数毎に、消失誤りのある文字の重みの平均、あるい
は、基準となる重みwとの誤差の累積加算値を求め、そ
れらの値を基準に誤りの方向を判断するということが可
能である。その変動が大きいときは、より少ない通数で
頻繁に判定を切り替えることもできる。そして、予め性
質が一定の郵便物をまとめて処理するような場合には、
その間だけ適当などちらかの条件、すなわち1通毎か、
あるいは、あるまとまった通数毎かを設定することが可
能である。
Further, in step S23, the strength of the directionality of the error may be determined for each mail piece or for a plurality of mail pieces.
That is, when the mail pieces are continuously processed, the average of the weights of the characters having the erasure error or the cumulative addition value of the error with the reference weight w is calculated for each certain number of recent mails, and those values are calculated. It is possible to judge the direction of error based on. When the fluctuation is large, it is possible to switch the judgment frequently with a smaller number of copies. Then, in the case of collectively processing mail items with a certain property in advance,
Either condition that is appropriate only during that time, that is, one by one,
Alternatively, it is possible to set a certain number of copies.

【0079】さらに、地域の顧客の電力料金の連絡用の
はがきといったフォーマットが決まっているものがあ
る。その誤りの性質については経験的な把握も可能であ
る。よって、そのはがきを処理している間はどちらの方
法を使うか、すなわち、パリティによる復号化部6での
符号理論で保証された範囲までの訂正により復号化され
た結果出力するか、あるいは、元の文字列に依存した復
号化部10にて、元の文字列に依存した条件による誤り
訂正までを行った結果を出力するかを予め決めておくこ
とも可能である。
Further, there is a fixed format such as a postcard for contacting the electricity charges of local customers. It is also possible to empirically understand the nature of the error. Therefore, which method is used while processing the postcard, that is, whether the decoded result is output by the correction to the range guaranteed by the code theory in the decoding unit 6 by the parity, or It is also possible to determine in advance whether the decoding unit 10 that depends on the original character string outputs the result of performing error correction under the condition that depends on the original character string.

【0080】図9に示したコード体系では、消失誤りが
合った場合、それがバーの脱落方向と、付加方向との両
方が同時に発生したものであるのかが判別できる場合も
ある。例えば、バーのもともとの重みwが「3」である
とき、消失誤りのあった文字の重みが「2」であると
き、それは、単に1つのバーが脱落(−1)したもので
はないと判別できるのは、6 C3 =20通りのうちのコ
ードが割り当てられなかった残りの4つのバーパターン
のいずれかにバーを4つの脱落の復元候補位置に複写す
るときにどれもなる場合である。この場合、誤りの方向
を判断する際に、このような判別結果をも考慮して、消
失誤りのある文字の重みの平均、あるいは、基準となる
重みwとの誤差の累積加算値を求めるようにしてもよ
い。
In the code system shown in FIG. 9, when the erasure error is matched, it may be possible to determine whether the erasure error occurs in both the bar drop direction and the addition direction at the same time. For example, when the original weight w of the bar is "3" and the weight of the character with the erasure error is "2", it is determined that one bar is not dropped (-1). What can be done is when copying a bar to any of the four lost recovery candidate positions in any of the remaining four bar patterns of 6 C3 = 20 unassigned codes. In this case, when determining the error direction, the average of the weights of the characters having the erasure error or the cumulative addition value of the error with the reference weight w is calculated in consideration of such a determination result. You may

【0081】以上説明したように、上記第2の実施形態
によれば、バーコード読取部5で印刷対象物から読み取
られたバーコードを符号語に変換して、パリティによる
復号化部6で誤り訂正符号に基づき消失訂正を行い、こ
の誤り訂正符号に基づき消失訂正ができないとき、誤り
の方向性判断部11で消失誤りのある符号語の重みに基
づき誤りの方向性を判断し、その結果、前記符号語の誤
りの方向が一方向である可能性が高いと判断されたと
き、元の文字列に依存した復号化部10で、予め定めら
れた元の文字列に依存した条件を基に、重み一定符号の
特徴と誤り訂正符号に基づき抽出された元の文字列の文
字列候補から前記元の文字列を検出することにより、例
えば、誤訂正が重大な影響を及ぼすシステムにおいて、
方向性のない誤りが発生したときには元の文字列に依存
した条件に基づく復号化を行わないことにより誤訂正を
低減することができ、従って、システムの信頼性が向上
する。
As described above, according to the second embodiment, the barcode read by the barcode reading unit 5 is converted into a code word, and the parity decoding unit 6 makes an error. When the erasure correction is performed based on the correction code and the erasure correction cannot be performed based on the error correction code, the error directionality determination unit 11 determines the error directionality based on the weight of the codeword having the erasure error, and as a result, When it is determined that there is a high possibility that the error direction of the codeword is one direction, the decoding unit 10 that depends on the original character string uses a predetermined condition that depends on the original character string. , By detecting the original character string from the character string candidates of the original character string extracted based on the characteristics of the constant weight code and the error correction code, for example, in a system in which miscorrection has a significant effect,
When a non-directional error occurs, erroneous correction can be reduced by not performing the decoding based on the condition depending on the original character string, and therefore the reliability of the system is improved.

【0082】第2の実施形態は、1対の誤り(文字化
け)と2文字の消失誤りがある場合に元の文字列に依存
した条件を用いて誤り訂正を行うと不利になるという前
提に基づいた処理である。一方、例えば、文字の誤り
(文字化け)と1文字の消失誤りがある場合には、従来
の復号化法により通常エラーとなる。これを防ぐために
は、むしろ消失誤りの個数がパリティ数と等しい場合に
さえも元の文字列に依存した条件に基づく復号化を行う
ことが有利な場合もある。後者は、必ずしもエラーとは
ならないからである。方向性の他に誤り率、バースト性
等の条件によっては、このように処理を変えることが有
効である。
The second embodiment is premised on that it is disadvantageous to perform error correction using a condition depending on the original character string when there is a pair of errors (garbled characters) and an erasure error of two characters. It is based on the processing. On the other hand, for example, when there is a character error (garbled character) and one character disappearance error, a conventional decoding method causes a normal error. In order to prevent this, it may be advantageous to perform decoding based on the condition depending on the original character string even when the number of erasure errors is equal to the number of parity. The latter is not necessarily an error. It is effective to change the processing in this way depending on conditions such as error rate and burst property in addition to the directivity.

【0083】[0083]

【発明の効果】以上説明したように、本発明によれば、
高い精度と信頼性が確保できるバーコードの復号化が可
能となるバーコード処理方法およびバーコード処理シス
テムを提供できる。
As described above, according to the present invention,
A barcode processing method and a barcode processing system capable of decoding a barcode with high accuracy and reliability can be provided.

【0084】すなわち、誤りが一方向であるとき重み一
定符号を用いることにより、消失訂正の形になり、パリ
ティの個数だけ即ち通常の誤りの2倍の個数のキャラク
タ誤りが訂正でき、どのキャラクタも他のキャラクタに
化けることがなく、パリティの訂正能力を越えた数のキ
ャラクタ誤りに対して規則、データベースによる訂正に
専念でき、しかも、訂正ができなかったときも誤訂正は
発生せず、バーコード全体をリジェクトとして扱える。
That is, by using the constant weight code when the error is unidirectional, the form of erasure correction can be achieved, and as many character errors as the number of parity, that is, twice the normal error can be corrected. It cannot be transformed into another character, and can be dedicated to the correction by the rules and the database for the number of character errors exceeding the parity correction ability. Moreover, even if the correction cannot be made, no erroneous correction occurs, and the barcode is The whole can be treated as a reject.

【0085】また、誤訂正が重大な影響を及ぼすシステ
ムにおいては、リジェクトが増えても誤訂正が少ない方
が良い。よってそのようなシステムでは、誤りの方向性
が一方向でない度合いにより、符号理論で保証された範
囲までの訂正に留めるかどうか判定することにより誤訂
正を減らし、システムの信頼性の向上が図れる。
Further, in a system in which erroneous correction has a significant effect, it is better that erroneous correction is small even if the number of rejects increases. Therefore, in such a system, it is possible to improve the reliability of the system by reducing erroneous correction by determining whether or not the correction is limited to the range guaranteed by the code theory, depending on the degree to which the error directionality is not unidirectional.

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

【図1】本発明の第1の実施形態に係るバーコード処理
システムの構成を概略的に示したもので、(a)図は符
号化部、(b)図は復号化部の構成を示したものであ
る。
FIG. 1 schematically shows a configuration of a bar code processing system according to a first embodiment of the present invention, in which (a) is a coding section and (b) is a decoding section. It is a thing.

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

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

【図4】郵便物上のバーコードが印刷されることが予定
されている位置の具体例を示した図。
FIG. 4 is a diagram showing a specific example of a position where a bar code on a mail piece is scheduled to be printed.

【図5】図1のバーコード処理システムのパリティによ
る復号化部におけるバーコードの復号化の処理手順につ
いて説明するためのフローチャート。
5 is a flowchart for explaining a barcode decoding process procedure in a parity decoding unit of the barcode processing system of FIG. 1;

【図6】データベースの新郵便番号簿の記憶例を示した
図。
FIG. 6 is a diagram showing an example of storage of a new postal code book in a database.

【図7】データベースの住所表示番号簿の記憶例を示し
た図。
FIG. 7 is a diagram showing a storage example of an address display number book of a database.

【図8】第2の実施形態に係るバーコード処理システム
の復号化部の構成を概略的に示した図。
FIG. 8 is a diagram schematically showing a configuration of a decoding unit of the barcode processing system according to the second embodiment.

【図9】重み一定符号の他の例について説明するための
図で、1キャラクタに対し、2ビット4状態(上下、
上、下、無し)のバー3本で構成される1つのコードを
割り当てた、符号語(コード)数16の場合の割当例で
ある。
FIG. 9 is a diagram for explaining another example of the constant weight code, where 2 bits and 4 states (upper, lower,
This is an allocation example in the case where the number of codewords (codes) is 16, to which one code composed of three bars (upper, lower, none) is allocated.

【図10】図8のバーコード処理システムの処理動作を
説明するためのフローチャート。
10 is a flowchart for explaining the processing operation of the barcode processing system in FIG.

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

1…文字列発生部、2…パリティ付加部、3…バーコー
ド化及び印刷部、5…バーコード読取部、6…パリティ
による復号化部、7…規則による復号化部、8…データ
ベースによる復号化部、8a…データベース、10…元
の文字列に依存した復号化部、11…誤りの方向性判断
部。
DESCRIPTION OF SYMBOLS 1 ... Character string generation part, 2 ... Parity addition part, 3 ... Bar code conversion and printing part, 5 ... Bar code reading part, 6 ... Parity decoding part, 7 ... Rule decoding part, 8 ... Database decoding Database, 8a ... database, 10 ... decoding section depending on original character string, 11 ... error direction determining section.

Claims (30)

【特許請求の範囲】[Claims] 【請求項1】 文字列に誤り訂正符号を付加して、方向
性のある誤りを発生する重み一定符号に符号化して得ら
れた符号語をバーコードに変換して所定の印刷対象物上
に印刷し、この印刷対象物からバーコードを読み取っ
て、元の文字列を復元するバーコード処理方法におい
て、 前記印刷対象物から読み取られたバーコードを符号語に
変換して、前記誤り訂正符号に基づき消失訂正を行い、
この誤り訂正符号に基づき消失訂正ができないとき、予
め定められた前記元の文字列に依存した条件を基に、前
記重み一定符号の特徴と前記誤り訂正符号に基づき抽出
された前記元の文字列の文字列候補から前記元の文字列
を検出することを特徴とするバーコード処理方法。
1. A code word obtained by adding an error correction code to a character string and encoding the code into a constant weight code that produces a directional error is converted into a bar code and printed on a predetermined print object. In a barcode processing method of printing, reading a barcode from the print target, and restoring the original character string, converting the barcode read from the print target into a code word to obtain the error correction code. Erasure correction based on
When erasure correction cannot be performed based on this error correction code, the characteristics of the constant weight code and the original character string extracted based on the error correction code are determined based on the conditions that depend on the predetermined original character string. A method of processing a barcode, wherein the original character string is detected from the character string candidates.
【請求項2】 文字列に誤り訂正符号を付加して、方向
性のある誤りを発生する重み一定符号に符号化して得ら
れた符号語をバーコードに変換して所定の印刷対象物上
に印刷し、この印刷対象物からバーコードを読み取っ
て、元の文字列を復元するバーコード処理方法におい
て、 前記印刷対象物から読み取られたバーコードを符号語に
変換して、前記誤り訂正符号に基づき消失訂正を行い、
この誤り訂正符号に基づき消失訂正ができないとき、予
め定められた前記元の文字列の規則に基づき、前記重み
一定符号の特徴と前記誤り訂正符号に基づき抽出された
前記元の文字列の文字列候補から前記元の文字列を検出
し、この元の文字列が検出できないとき、前記元の文字
列の規則に基づき限定された文字列候補の中から、前記
元の文字列の表現範囲内の文字列を検出することを特徴
とするバーコード処理方法。
2. A codeword obtained by adding an error correction code to a character string and encoding the code into a constant weight code that generates a directional error is converted into a bar code and printed on a predetermined print object. In a barcode processing method of printing, reading a barcode from the print target, and restoring the original character string, converting the barcode read from the print target into a code word to obtain the error correction code. Erasure correction based on
When erasure correction cannot be performed based on this error correction code, the character string of the original character string extracted based on the characteristics of the constant weight code and the error correction code based on a predetermined rule of the original character string. The original character string is detected from the candidates, and when the original character string cannot be detected, from among the character string candidates limited based on the rule of the original character string, within the expression range of the original character string A bar code processing method characterized by detecting a character string.
【請求項3】 文字列に誤り訂正符号を付加して、方向
性のある誤りを発生する重み一定符号に符号化して得ら
れた符号語をバーコードに変換して所定の印刷対象物上
に印刷し、この印刷対象物からバーコードを読み取っ
て、元の文字列を復元するバーコード処理方法におい
て、 前記印刷対象物から読み取られたバーコードを符号語に
変換して、前記誤り訂正符号に基づき消失訂正を行い、
この誤り訂正符号に基づき消失訂正ができないとき、消
失誤りのある符号語の重みに基づき誤りの方向性を判断
し、その結果、前記符号語の誤りの方向が一方向である
可能性が高いと判断されたとき、予め定められた前記元
の文字列に依存した条件を基に、前記重み一定符号の特
徴と前記誤り訂正符号に基づき抽出された前記元の文字
列の文字列候補から前記元の文字列を検出することを特
徴とするバーコード処理方法。
3. A code word obtained by adding an error correction code to a character string and encoding the code into a constant weight code that generates a directional error is converted into a bar code and printed on a predetermined print object. In a barcode processing method of printing, reading a barcode from the print target, and restoring the original character string, converting the barcode read from the print target into a code word to obtain the error correction code. Erasure correction based on
When erasure correction cannot be performed based on this error correction code, the directionality of the error is determined based on the weight of the codeword having the erasure error, and as a result, the error direction of the codeword is highly likely to be unidirectional. When determined, based on a predetermined condition depending on the original character string, from the character string candidates of the original character string extracted based on the characteristics of the constant weight code and the error correction code to the original A barcode processing method characterized by detecting a character string of.
【請求項4】 文字列に誤り訂正符号を付加して、方向
性のある誤りを発生する重み一定符号に符号化して得ら
れた符号語をバーコードに変換して所定の印刷対象物上
に印刷し、この印刷対象物からバーコードを読み取っ
て、元の文字列を復元するバーコード処理方法におい
て、 前記印刷対象物から読み取られたバーコードを符号語に
変換して、前記誤り訂正符号に基づき消失訂正を行い、
この誤り訂正符号に基づき消失訂正ができないとき、消
失誤りのある符号語の重みに基づき誤りの方向性を判断
し、その結果、前記符号語の誤りの方向が一方向である
可能性が高いと判断されたとき、予め定められた前記元
の文字列の規則に基づき、前記重み一定符号の特徴と前
記誤り訂正符号に基づき抽出された前記元の文字列の文
字列候補から前記元の文字列を検出し、この元の文字列
が検出できないとき、前記元の文字列の規則に基づき限
定された文字列候補の中から、前記元の文字列の表現範
囲内の文字列を検出することを特徴とするバーコード処
理方法。
4. A code word obtained by adding an error correction code to a character string and encoding the code into a constant weight code that produces a directional error is converted into a bar code and printed on a predetermined print object. In a barcode processing method of printing, reading a barcode from the print target, and restoring the original character string, converting the barcode read from the print target into a code word to obtain the error correction code. Erasure correction based on
When erasure correction cannot be performed based on this error correction code, the directionality of the error is determined based on the weight of the codeword having the erasure error, and as a result, the error direction of the codeword is highly likely to be unidirectional. When judged, the original character string is selected from the character string candidates of the original character string extracted based on the characteristic of the constant weight code and the error correction code based on a predetermined rule of the original character string. When the original character string cannot be detected, it is possible to detect a character string within the expression range of the original character string from the character string candidates limited based on the rule of the original character string. Characteristic barcode processing method.
【請求項5】 消失誤りのある符号語の重みの平均と前
記重み一定符号に予め定められた重みとを比較して、誤
りの方向性を判断することを特徴とする請求項3および
請求項4のいずれか1つに記載のバーコード処理方法。
5. The directionality of the error is determined by comparing an average of weights of code words having an erasure error with a predetermined weight for the constant weight code. 4. The barcode processing method according to any one of 4 above.
【請求項6】 消失誤りのある符号語の重みと前記重み
一定符号に予め定められた重みとの誤差を累積加算し、
その累積加算値と前記重み一定符号に予め定められた重
みとを比較して、誤りの方向性を判断することを特徴と
する請求項3および請求項4のいずれか1つに記載のバ
ーコード処理方法。
6. An error between a weight of a code word having an erasure error and a predetermined weight of the constant weight code is cumulatively added,
The bar code according to any one of claims 3 and 4, wherein the cumulative addition value is compared with a weight predetermined to the constant weight code to determine the directionality of the error. Processing method.
【請求項7】 前記重み一定符号は、重み2で符号語数
が14の請求項1〜請求項4のいずれか1つに記載のバ
ーコード処理方法。
7. The bar code processing method according to claim 1, wherein the constant weight code has a weight of 2 and a number of code words of 14.
【請求項8】 前記重み一定符号は、重み3で符号語数
が14の請求項1〜請求項4のいずれか1つに記載のバ
ーコード処理方法。
8. The bar code processing method according to claim 1, wherein the constant weight code has a weight of 3 and a code word number of 14.
【請求項9】 前記重み一定符号は、重み4で符号語数
が14の請求項1〜請求項4のいずれか1つに記載のバ
ーコード処理方法。
9. The barcode processing method according to claim 1, wherein the constant weight code has a weight of 4 and a number of code words of 14.
【請求項10】 前記重み一定符号は、重み2で符号語
数が15の請求項1〜請求項4のいずれか1つに記載の
バーコード処理方法。
10. The bar code processing method according to claim 1, wherein the constant weight code has a weight of 2 and a number of code words of 15.
【請求項11】 前記重み一定符号は、重み3で符号語
数が15の請求項1〜請求項4のいずれか1つに記載の
バーコード処理方法。
11. The bar code processing method according to claim 1, wherein the constant weight code has a weight of 3 and a code word number of 15.
【請求項12】 前記重み一定符号は、重み4で符号語
数が15の請求項1〜請求項4のいずれか1つに記載の
バーコード処理方法。
12. The bar code processing method according to claim 1, wherein the constant weight code has a weight of 4 and a code word number of 15.
【請求項13】 前記重み一定符号は、重み2で符号語
数が14以上の請求項1〜請求項4のいずれか1つに記
載のバーコード処理方法。
13. The bar code processing method according to claim 1, wherein the constant weight code has a weight of 2 and the number of code words is 14 or more.
【請求項14】 前記重み一定符号は、重み3で符号語
数が14以上の請求項1〜請求項4のいずれか1つに記
載のバーコード処理方法。
14. The bar code processing method according to claim 1, wherein the constant weight code has a weight of 3 and the number of code words is 14 or more.
【請求項15】 前記重み一定符号は、重み4で符号語
数が14以上の請求項1〜請求項4のいずれか1つに記
載のバーコード処理方法。
15. The bar code processing method according to claim 1, wherein the constant weight code has a weight of 4 and a code word number of 14 or more.
【請求項16】 文字列に誤り訂正符号を付加して、方
向性のある誤りを発生する重み一定符号に符号化して得
られた符号語をバーコードに変換して所定の印刷対象物
上に印刷し、この印刷対象物からバーコードを読み取っ
て、元の文字列を復元するバーコード処理システムにお
いて、 前記印刷対象物から読み取られたバーコードを符号語に
変換し、前記誤り訂正符号に基づき消失訂正を行う訂正
手段と、 この訂正手段で消失訂正できないとき、予め定められた
前記元の文字列に依存した条件をもとに、前記重み一定
符号の特徴と前記誤り訂正符号に基づき抽出された前記
元の文字列の文字列候補から前記元の文字列を検出する
検出手段と、 を具備したことを特徴とするバーコード処理システム。
16. A code word obtained by adding an error correction code to a character string and encoding the code into a constant weight code for generating a directional error, and converting the code word into a bar code on a predetermined print object. In a barcode processing system that prints, reads a barcode from this print object, and restores the original character string, converts the barcode read from the print object into a code word, and based on the error correction code When the erasure correction cannot be performed by the erasure correction and the erasure correction cannot be performed by the erasure correction, it is extracted based on the characteristic of the constant weight code and the error correction code based on a predetermined condition depending on the original character string. And a detection unit that detects the original character string from a character string candidate of the original character string.
【請求項17】 文字列に誤り訂正符号を付加して、方
向性のある誤りを発生する重み一定符号に符号化して得
られた符号語をバーコードに変換して所定の印刷対象物
上に印刷し、この印刷対象物からバーコードを読み取っ
て、元の文字列を復元するバーコード処理システムにお
いて、 前記印刷対象物から読み取られたバーコードを符号語に
変換し、前記誤り訂正符号に基づき消失訂正を行う訂正
手段と、 この訂正手段で消失訂正できないとき、予め定められた
前記元の文字列の規則に基づき、前記重み一定符号の特
徴と前記誤り訂正符号に基づき抽出された前記元の文字
列の文字列候補の中から前記元の文字列を検出する第1
の検出手段と、 この第1の検出手段で前記元の文字列が検出できないと
き、前記予め定められた前記元の文字列の規則に基づき
限定された文字列候補の中から前記元の文字列の表現範
囲内の文字列を検出する第2の検出手段と、 を具備したことを特徴とするバーコード処理システム。
17. A code word obtained by adding an error correction code to a character string and encoding the code into a constant weight code that produces a directional error is converted into a bar code and printed on a predetermined print object. In a barcode processing system that prints, reads a barcode from this print object, and restores the original character string, converts the barcode read from the print object into a code word, and based on the error correction code When the erasure correction cannot be performed by the erasure correction, when the erasure correction cannot be performed by the erasure correction, based on a predetermined rule of the original character string, the characteristic of the constant weight code and the original extracted based on the error correction code First to detect the original character string from character string candidates of the character string
And the first detecting means cannot detect the original character string, the original character string is selected from character string candidates limited based on the predetermined rule of the original character string. And a second detecting means for detecting a character string within the expression range of the bar code processing system.
【請求項18】 文字列に誤り訂正符号を付加して、方
向性のある誤りを発生する重み一定符号に符号化して得
られた符号語をバーコードに変換して所定の印刷対象物
上に印刷し、この印刷対象物からバーコードを読み取っ
て、元の文字列を復元するバーコード処理システムにお
いて、 前記印刷対象物から読み取られたバーコードを符号語に
変換し、前記誤り訂正符号に基づき消失訂正を行う訂正
手段と、 この訂正手段で消失訂正ができないとき、消失誤りのあ
る符号語の重みに基づき誤りの方向性を判断する判断手
段と、 この判断手段で前記符号語の誤りの方向が一方向である
可能性が高いと判断されたとき、予め定められた前記元
の文字列に依存した条件をもとに、前記重み一定符号の
特徴と前記誤り訂正符号に基づき抽出された前記元の文
字列の文字列候補から前記元の文字列を検出する検出手
段と、 を具備したことを特徴とするバーコード処理システム。
18. A code word obtained by adding an error correction code to a character string and encoding the code into a constant weight code for generating a directional error, and converting the code word into a bar code on a predetermined print object. In a barcode processing system that prints, reads a barcode from this print object, and restores the original character string, converts the barcode read from the print object into a code word, and based on the error correction code A erasing correction means, a deciding means for deciding the directionality of the error based on the weight of the codeword having an erasure error when the erasure correction cannot be performed by the erasing correction means, and the deciding means for the error direction of the codeword. When it is determined that there is a high possibility that it is one-way, based on the condition depending on the predetermined original character string, the characteristics extracted by the constant weight code and the error correction code. Ex And a detection unit that detects the original character string from the character string candidates of the character string.
【請求項19】 文字列に誤り訂正符号を付加して、方
向性のある誤りを発生する重み一定符号に符号化して得
られた符号語をバーコードに変換して所定の印刷対象物
上に印刷し、この印刷対象物からバーコードを読み取っ
て、元の文字列を復元するバーコード処理システムにお
いて、 前記印刷対象物から読み取られたバーコードを符号語に
変換し、前記誤り訂正符号に基づき消失訂正を行う訂正
手段と、 この訂正手段で消失訂正ができないとき、消失誤りのあ
る符号語の重みに基づき誤りの方向性を判断する判断手
段と、 この判断手段で前記符号語の誤りの方向が一方向である
可能性が高いと判断されたとき、予め定められた前記元
の文字列の規則に基づき、前記重み一定符号の特徴と前
記誤り訂正符号に基づき抽出された前記元の文字列の文
字列候補の中から前記元の文字列を検出する第1の検出
手段と、 この第1の検出手段で前記元の文字列が検出できないと
き、前記予め定められた前記元の文字列の規則に基づき
限定された文字列候補の中から前記元の文字列の表現範
囲内の文字列を検出する第2の検出手段と、 を具備したことを特徴とするバーコード処理システム。
19. A code word obtained by adding an error correction code to a character string and encoding the code into a constant weight code that generates a directional error is converted into a bar code and printed on a predetermined print object. In a barcode processing system that prints, reads a barcode from this print object, and restores the original character string, converts the barcode read from the print object into a code word, and based on the error correction code A erasing correction means, a deciding means for deciding the directionality of the error based on the weight of the codeword having an erasure error when the erasure correction cannot be performed by the erasing correction means, and the deciding means for the error direction of the codeword. When it is determined that there is a high possibility of being unidirectional, the original character string extracted based on the characteristic of the constant weight code and the error correction code is determined based on the rule of the original character string determined in advance. First detecting means for detecting the original character string from among the character string candidates, and when the original character string cannot be detected by the first detecting means, the predetermined original character string A bar code processing system comprising: a second detection unit that detects a character string within the expression range of the original character string from character string candidates limited based on a rule.
【請求項20】 前記判断手段は、消失誤りのある符号
語の重みの平均と前記重み一定符号に予め定められた重
みとを比較して、誤りの方向性を判断することを特徴と
する請求項16〜請求項19のいずれか1つに記載のバ
ーコード処理システム。
20. The determination means compares the average of the weights of code words having an erasure error with a predetermined weight for the constant weight code to determine the directionality of the error. Item 20. The barcode processing system according to any one of items 16 to 19.
【請求項21】 前記判断手段は、消失誤りのある符号
語の重みと、前記重み一定符号に予め定められた重みと
の誤差を累積加算し、その累積加算値と前記重み一定符
号に予め定められた重みとを比較して、誤りの方向性を
判断することを特徴とする請求項16〜請求項19のい
ずれか1つに記載のバーコード処理システム。
21. The determining means cumulatively adds an error between a weight of a code word having an erasure error and a predetermined weight of the constant weight code, and determines the cumulative addition value and the constant weight code in advance. The bar code processing system according to any one of claims 16 to 19, wherein the bar code processing system compares the weight with the determined weight to determine the direction of the error.
【請求項22】 前記重み一定符号は、重み2で符号語
数が14の請求項16〜請求項19のいずれか1つに記
載のバーコード処理システム。
22. The bar code processing system according to claim 16, wherein the constant weight code has a weight of 2 and the number of code words is 14.
【請求項23】 前記重み一定符号は、重み3で符号語
数が14の請求項16〜請求項19のいずれか1つに記
載のバーコード処理システム。
23. The bar code processing system according to claim 16, wherein the constant weight code has a weight of 3 and a number of code words of 14.
【請求項24】 前記重み一定符号は、重み4で符号語
数が14の請求項16〜請求項19のいずれか1つに記
載のバーコード処理システム。
24. The bar code processing system according to claim 16, wherein the constant weight code has a weight of 4 and a code word number of 14.
【請求項25】 前記重み一定符号は、重み2で符号語
数が15の請求項16〜請求項19のいずれか1つに記
載のバーコード処理システム。
25. The bar code processing system according to claim 16, wherein the constant weight code has a weight of 2 and the number of code words is 15.
【請求項26】 前記重み一定符号は、重み3で符号語
数が15の請求項16〜請求項19のいずれか1つに記
載のバーコード処理システム。
26. The bar code processing system according to claim 16, wherein the constant weight code has a weight of 3 and a number of code words of 15.
【請求項27】 前記重み一定符号は、重み4で符号語
数が15の請求項16〜請求項19のいずれか1つに記
載のバーコード処理システム。
27. The bar code processing system according to claim 16, wherein the constant weight code has a weight of 4 and a code word number of 15.
【請求項28】 前記重み一定符号は、重み2で符号語
数が14以上の請求項16〜請求項19のいずれか1つ
に記載のバーコード処理システム。
28. The bar code processing system according to claim 16, wherein the constant weight code has a weight of 2 and the number of code words is 14 or more.
【請求項29】 前記重み一定符号は、重み3で符号語
数が14以上の請求項16〜請求項19のいずれか1つ
に記載のバーコード処理システム。
29. The bar code processing system according to claim 16, wherein the constant weight code has a weight of 3 and the number of code words is 14 or more.
【請求項30】 前記重み一定符号は、重み4で符号語
数が14以上の請求項16〜請求項19のいずれか1つ
に記載のバーコード処理システム。
30. The bar code processing system according to claim 16, wherein the constant weight code has a weight of 4 and the number of code words is 14 or more.
JP8180716A 1995-11-29 1996-07-10 Method and device for processing bar code Pending JPH09212569A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8180716A JPH09212569A (en) 1995-11-29 1996-07-10 Method and device for processing bar code

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP7-311052 1995-11-29
JP31105295 1995-11-29
JP8180716A JPH09212569A (en) 1995-11-29 1996-07-10 Method and device for processing bar code

Publications (1)

Publication Number Publication Date
JPH09212569A true JPH09212569A (en) 1997-08-15

Family

ID=26500142

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8180716A Pending JPH09212569A (en) 1995-11-29 1996-07-10 Method and device for processing bar code

Country Status (1)

Country Link
JP (1) JPH09212569A (en)

Similar Documents

Publication Publication Date Title
AU685352B2 (en) Bar code encoding system using four-state codes
KR960706146A (en) Apparatus and method for 16-bit and numeric data collection using bar code symbalogies
DE69904621D1 (en) METHOD FOR RESTORING LOST INFORMATION PACKAGES IN PACKET TRANSFER PROTOCOLS
EP0083420B1 (en) Full word coding for information processing
JPH01171081A (en) Document reading system
CN1360770A (en) Method for processing transmission errors in digital communication system
US5996111A (en) Identification sequence issuing device and identification sequence verification device
US5136290A (en) Message expansion decoder and decoding method for a communication channel
WO1990014638A1 (en) Reading method and apparatus for bar code
US5034742A (en) Message compression encoder and encoding method for a communication channel
JPH10261043A (en) Decoding method, decoder, and bar code processing system
JPH09212569A (en) Method and device for processing bar code
KR100336719B1 (en) System and its Method for creating delivery information of mail
JP5310502B2 (en) Two-dimensional code, two-dimensional code reader, and two-dimensional code generator
KR20000007820A (en) Four-phase four-bar code print system and method therefor, and error correction system and methode therefor
KR100310832B1 (en) Four-state three-bar code device and its control method
EP0291961A2 (en) Method of and device for decoding block-coded messages affected by symbol substitutions, insertions and deletions
JP3392596B2 (en) Mail barcode processing system
JP3272919B2 (en) Barcode printing system
JPS5955548A (en) Recognition coding and decoding system
US6301307B1 (en) Methods and apparatuses for the transmission and receipt of digital data modulated using quadrature amplitude modulation, and communication devices utilizing such apparatuses and methods
US6542553B1 (en) Device and method for transmitting digital data, device and method for receiving digital data and communication devices using them
JPH0944586A (en) Bar code encoding/decoding system
Gulliver et al. Reed-Solomon bar codes for mail processing
JPH09253586A (en) Method for printing bar code of delivery matter and method for reading bar code