JPH0950480A - Two-dimensional code reader - Google Patents

Two-dimensional code reader

Info

Publication number
JPH0950480A
JPH0950480A JP7200805A JP20080595A JPH0950480A JP H0950480 A JPH0950480 A JP H0950480A JP 7200805 A JP7200805 A JP 7200805A JP 20080595 A JP20080595 A JP 20080595A JP H0950480 A JPH0950480 A JP H0950480A
Authority
JP
Japan
Prior art keywords
sequence
symbol
line
pattern
read
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
JP7200805A
Other languages
Japanese (ja)
Inventor
Katsushi Horibatake
勝史 堀畑
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.)
Kyocera Mita Industrial Co Ltd
Original Assignee
Mita Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mita Industrial Co Ltd filed Critical Mita Industrial Co Ltd
Priority to JP7200805A priority Critical patent/JPH0950480A/en
Publication of JPH0950480A publication Critical patent/JPH0950480A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To correct reading without rearranging the recording carrier of original, etc., in which the symbol of a two-dimensional bar code is recorded when the symbol is placed obliquely to the scanning direction of a line sensor. SOLUTION: When the two-dimensional bar code of a PDF-417 is decoded by utilizing the scanner of a digital copying machine, the buffer generating the T sequence of the symbol of the two-dimensional bar code for every scanning line is prepared for left and right T sequences. After this symbol is stored in a line buffer 3 for read data, a left T sequence is selected at a point of time when the starting pattern of the symbol is detected by a starting pattern detection means 6. At the point of time when the starting pattern is not detected by a left and right switching selection means 7, the sequence is switched to a right T sequence. The left and right T sequences are stored in a total T sequence memory 8 in a format that the sequences coexist, stitchings are performed for these sequences and decoding processings are performed for the sequences.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、主としてディジタ
ル複写機、ファクシミリ装置、ファイリングシステム等
のディジタル画像入出力装置のスキャナを利用してPD
F−417の二次元バーコードを解号する二次元コード
読取装置に係り、特に二次元コードの斜め読取補正に関
するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention mainly uses a scanner of a digital image input / output device such as a digital copying machine, a facsimile device, a filing system, etc.
The present invention relates to a two-dimensional code reader for decoding a two-dimensional bar code of F-417, and more particularly to a diagonal reading correction of a two-dimensional code.

【0002】[0002]

【従来の技術】従来、データを符号化された情報として
機械読取可能な図形画像で表現し、また、それを認識す
る目的で提案された先行技術例として、特開平5−29
0204号公報や特開平6−12515号公報等には、
ハンディスキャナ等のラインセンサによって記録担体上
に記録された二次元バーコードを光学的に読み取り、そ
の解号を実行する装置が開示されている。
2. Description of the Related Art Conventionally, as a prior art example proposed for the purpose of expressing data as a machine-readable graphic image as encoded information and recognizing it, Japanese Patent Laid-Open No. 5-29 is known.
No. 0204 and Japanese Patent Laid-Open No. 6-12515,
An apparatus is disclosed which optically reads a two-dimensional bar code recorded on a record carrier by a line sensor such as a handy scanner and executes the decoding.

【0003】ところで、二次元バーコードはシンボル・
テクノロジーズ社の開発によるPDF−417をその代
表として挙げることができる。以下、二次元バーコード
としてPDF−417を使用したものとして説明する。
なお、PDF−417の詳細は1990年1月5日付U
SP07/461881号に記載され、そのアルゴリズ
ムも既に公開されている。
By the way, a two-dimensional bar code is a symbol
A representative example is PDF-417 developed by Technologies. Hereinafter, description will be made assuming that PDF-417 is used as the two-dimensional barcode.
For details of PDF-417, refer to U on January 5, 1990.
It is described in SP07 / 461881, and its algorithm has already been published.

【0004】図12はPDF−417シンボルの種々サ
イズの異なるパターンを例示している。図12(B)(C)
に示すように、PDF−417シンボルは、30×60mil
s、24×24milsの2種類のサイズを示しているが、その
いずれも構成は共通している。すなわち図12に示すよ
うに、PDF−417シンボルはバーコード化されたデ
ータ行を上下に積み重ねて正立しており、シンボル内の
各行は左端から順に開始パターンS、左行標識パターン
RL、コードワードのデータ領域D、右行標識パターンR
R、停止パターンTを一連に構成している。
FIG. 12 illustrates different patterns of various sizes of PDF-417 symbols. 12 (B) (C)
As shown in, PDF-417 symbol is 30 × 60mil
There are two sizes, s and 24 × 24 mils, both of which have the same configuration. That is, as shown in FIG. 12, the PDF-417 symbol is erect by stacking bar coded data rows vertically, and each row in the symbol has a start pattern S and a left row indicator pattern in order from the left end.
RL, codeword data area D, right row indicator pattern R
An R and a stop pattern T are constructed in series.

【0005】開始パターンS及び停止パターンTはシン
ボルの各行の開始点と終了点とを識別する。また、左行
と右行の標識パターンRL,RRは記号の行番号と行数、デ
ータ列数、または安全保護水準のいずれかとを含んでい
る。さらに、コードワードは数、文字、その他の記号ま
たはこれらに関連する値を符号化するための基本単位で
あって、各行内のコードワードは集合的にデータ列を形
成する。Cはコードワードを数字化して示すものであ
る。なお、シンボル中の黒色部分をバーと呼び、白色部
分をスペースと呼ぶ。
The start pattern S and stop pattern T identify the start and end points of each row of symbols. The left and right line indicator patterns RL and RR include the line number and the number of symbols, the number of data columns, or the security level of the symbol. Further, codewords are the basic units for encoding numbers, letters, other symbols or their associated values, and the codewords within each row collectively form a data string. C represents the codeword in a digitized form. The black part in the symbol is called a bar and the white part is called a space.

【0006】図13にPDF−417二次元バーコード
のシンボル構成の基となるパターンを示す。この図のパ
ターンから明らかなように、セルaはデータ列を構成す
る最小単位のブロックのことである。また、各セルを黒
で塗り潰した部分をバーと呼び、白のままの部分をスペ
ースと呼び、これらバーとスペースの間隔によってデー
タがコード化されている。
FIG. 13 shows a basic pattern of the symbol structure of the PDF-417 two-dimensional bar code. As is clear from the pattern of this figure, the cell a is a minimum unit block that constitutes a data string. Further, a portion in which each cell is filled with black is called a bar, and a portion that remains white is called a space, and data is coded by the interval between these bars and spaces.

【0007】なお、このコードワード内で交番するバー
及びスペースの集合をコードワードのXシーケンスと定
義し、このXシーケンスはデータをエンコードする際に
生成するものである。これに対しデコードする際に、コ
ード化されたデータのバーとスペースの間隔データを求
めるシーケンスをTシーケンスと定義する。
The set of alternating bars and spaces within this codeword is defined as an X-sequence of codewords, and this X-sequence is generated when data is encoded. On the other hand, when decoding, a sequence for obtaining the bar data and space interval data of coded data is defined as a T sequence.

【0008】以上のような構成のPDF−417二次元
バーコードを対象として構成された従来の読取装置で
は、ハンディスキャナ等のラインセンサによって上記P
DF−417シンボルを読み取るときは、開始パターン
Sと停止パターンTを同時に検出することが前提となっ
ており、読み取りを開始すると、開始及び停止パターン
S,Tに隣接する左行及び右行標識パターンRL,RRを解
号し、これによって初めて、コードワードのデータ領域
Dの解号を実行することができるようになっている。
In the conventional reading device constructed for the PDF-417 two-dimensional bar code having the above-mentioned configuration, the P sensor is used by a line sensor such as a handy scanner.
When reading the DF-417 symbol, it is premised that the start pattern S and the stop pattern T are detected at the same time, and when the reading is started, the left and right row marking patterns adjacent to the start and stop patterns S and T Only by solving RL and RR, the decoding of the code word data area D can be executed.

【0009】[0009]

【発明が解決しようとする課題】上述のように従来装置
の場合、PDF−417シンボルは通常、ハンディスキ
ャナで読み取られ、その解号が実行されており、そのと
きの条件として開始及び停止の両パターンS,Tが見い
だせることを前提にしているため、シンボルを斜め読み
した場合、解号不能となるという問題点があった。
As described above, in the case of the conventional apparatus, the PDF-417 symbol is usually read by the handy scanner and its decoding is executed, and the conditions at that time are both start and stop. Since it is premised that the patterns S and T can be found, there is a problem that the symbol cannot be decoded when the symbol is read diagonally.

【0010】すなわち、この二次元コードをラインセン
サで読み取る場合、シンボルがラインセンサの走査方向
に平行に置かれていれば、走査ラインの第1番目から開
始パターンSと停止パターンTとを同時に検出すること
ができるので、解号が不能になるという問題は生じない
が、通常はラインセンサの走査方向に対して若干の傾斜
角度をもってシンボルをセットする場合が日常的に起こ
り得るものである。
That is, when reading the two-dimensional code with the line sensor, if the symbol is placed in parallel with the scanning direction of the line sensor, the start pattern S and the stop pattern T are simultaneously detected from the first scanning line. Therefore, there is no problem that the decoding is disabled, but it is usually possible to set a symbol at a slight inclination angle with respect to the scanning direction of the line sensor on a daily basis.

【0011】しかしながら、従来装置では、このように
傾いた形でシンボルをセットすると、走査ラインのいず
れかにおいて、開始パターンSのみ、あるいは停止パタ
ーンTのみしか読み取ることができない範囲が必然的に
発生する。この走査ラインの範囲においては、開始及び
停止パターンの両パターンS,Tが同時に検出されない
ため、解号エラーとなってしまい、シンボルが記録され
た記録担体、例えば原稿を正確に置き直すことが必要と
なる。
However, in the conventional apparatus, when the symbols are set in such a tilted shape, a range in which only the start pattern S or only the stop pattern T can be read inevitably occurs in any of the scanning lines. . In this scan line range, both the start and stop patterns S and T are not detected at the same time, resulting in a decoding error, and it is necessary to correctly reposition the record carrier on which the symbols are recorded, for example, the document. Becomes

【0012】このようにシンボルをラインセンサの走査
方向に平行に、例えばディジタル複写機の場合、シンボ
ルがコンタクトガラス面の辺縁に平行に配置しなければ
ならないという作業条件を有する従来装置の場合、ユー
ザーのシンボル解号作業に煩雑な手間を負わせるという
不利、不具合があった。
As described above, in the case of the conventional apparatus having the working condition that the symbols must be arranged parallel to the scanning direction of the line sensor, for example, in the case of a digital copying machine, the symbols must be arranged parallel to the edge of the contact glass surface. There was a disadvantage and trouble that it took a lot of trouble to the user's symbolic work.

【0013】本発明は、上記のような問題点を解決する
ためになされたもので、二次元バーコードのシンボルが
ラインセンサの走査方向に対して斜めに置かれている場
合であっても、そのシンボルが記録された原稿等の記録
担体を置き直すことなく読み取りを補正することができ
る機能を備えた二次元コードの読取装置を提供すること
を目的とするものである。
The present invention has been made in order to solve the above problems, and even when a symbol of a two-dimensional bar code is placed obliquely to the scanning direction of the line sensor, It is an object of the present invention to provide a two-dimensional code reading device having a function of correcting reading without repositioning a record carrier such as a document on which the symbol is recorded.

【0014】[0014]

【課題を解決するための手段】上記目的を達成するため
に、本発明では第1の構成として、記録担体上の二次元
バーコードを光学的に読み取るラインセンサと、このラ
インセンサにより読み取られた二次元バーコードのシン
ボルを格納する読取データ用のラインバッファと、前記
シンボルを左側から読むTシーケンスを各走査ライン毎
に生成する左Tシーケンス生成バッファと、前記シンボ
ルを右側から読むTシーケンスを各走査ライン毎に生成
する右Tシーケンス生成バッファと、前記シンボルの左
端に設けられている開始パターンを検出する開始パター
ン検出手段と、この開始パターン検出手段によって前記
開始パターンが検出された時点で前記左Tシーケンスを
選択し、読み取られるシンボルが依然存在し且つ前記開
始パターンが検出されなくなった時点で前記右Tシーケ
ンスに切り換える左右切換選択手段と、前記左右のTシ
ーケンスが混在する走査ラインのデータをデコード処理
するデコード処理手段とを具備するものとしている。
In order to achieve the above object, according to the first aspect of the present invention, a line sensor for optically reading a two-dimensional bar code on a record carrier, and a line sensor for reading the line sensor are read. A line buffer for read data that stores a symbol of a two-dimensional bar code, a left T sequence generation buffer that generates a T sequence that reads the symbol from the left side for each scan line, and a T sequence that reads the symbol from the right side A right T-sequence generation buffer that generates each scan line, a start pattern detection unit that detects a start pattern provided at the left end of the symbol, and the left when the start pattern is detected by the start pattern detection unit. Select the T sequence, the symbol to be read is still present and the starting pattern is detected Left and right switching selecting means for switching to the right T sequence at the time when no longer, the left and right T sequence is assumed that and a decoding means for decoding the data of the scan lines to be mixed.

【0015】上記第1の構成によると、予めラインセン
サの各走査ライン毎にシンボルを左読みする左Tシーケ
ンスと、右読みする右Tシーケンスを準備しておき、T
シーケンスを切換混在させるタイミングを、開始パター
ンの有無により行うようにしているため、二次元バーコ
ードのシンボル全体がラインセンサの走査方向に対して
斜めに配置されているとき、シンボルを読み込んだ後、
開始パターンを検出してから開始パターンが検出されな
くなるまでの期間、左Tシーケンスを生成し、開始パタ
ーンが検出されなくなった後、右Tシーケンス生成に切
り換える。
According to the first configuration, a left T sequence for left-reading a symbol and a right T-sequence for right reading are prepared in advance for each scanning line of the line sensor.
Since the timing to switch and mix the sequences is performed depending on the presence or absence of the start pattern, when the entire two-dimensional barcode symbol is obliquely arranged with respect to the scanning direction of the line sensor, after reading the symbol,
The left T sequence is generated during the period from the detection of the start pattern until the start pattern is not detected, and after the start pattern is not detected, the process is switched to the right T sequence generation.

【0016】そして、前記左右のTシーケンスが混在す
る走査ラインのデータのコードワード変換を行い、さら
に左右Tシーケンスを並び替えて斜め補正を行うステッ
チング処理を施して文書コードを作成する。
Then, the code word conversion of the data of the scanning line in which the left and right T sequences are mixed is performed, and the left and right T sequences are rearranged to perform the stitching process for performing the diagonal correction to create the document code.

【0017】また、本発明では第2の構成として、前記
と同様のラインバッファに格納された各走査ライン毎に
前記シンボル左端に設けられている開始パターンの有無
を照合する開始パターン照合手段と、前記ラインバッフ
ァに格納された各走査ライン毎に前記シンボル右端に設
けられている停止パターンの有無を照合する停止パター
ン照合手段と、前記開始パターン及び停止パターンのう
ち照合により先に検出された一方のパターン側から読む
シンボルのTシーケンスを各走査ライン毎に生成し且つ
そのTシーケンスの生成中に他方のパターンが検出され
た時点で該他方のパターン側から読むシンボルのTシー
ケンスを各走査ライン毎に生成するTシーケンス生成バ
ッファと、前記左右のTシーケンスが混在する走査ライ
ンのデータをデコード処理するデコード処理手段とを具
備するものとしている。
As a second configuration of the present invention, start pattern matching means for matching the presence or absence of a start pattern provided at the left end of the symbol for each scanning line stored in the same line buffer as described above, For each scanning line stored in the line buffer, a stop pattern collating means for collating the presence or absence of a stop pattern provided at the right end of the symbol, and one of the start pattern and the stop pattern detected first by collation A T sequence of symbols to be read from the pattern side is generated for each scanning line, and when the other pattern is detected during the generation of the T sequence, a T sequence of symbols to be read from the other pattern side is generated for each scanning line. The T-sequence generation buffer to generate and the data of the scanning line in which the left and right T-sequences are mixed are decoded. It is assumed that and a decoding means for de processing.

【0018】また、上記第2の構成において、Tシーケ
ンス生成バッファは、開始パターンと停止パターンとが
同時に検出された場合、つまりシンボルが平行に置かれ
ている場合、シンボル左端、つまり開始パターン側から
読む左Tシーケンスのみを生成するものとすることがで
きる。
Further, in the above-mentioned second configuration, the T sequence generation buffer is arranged such that when the start pattern and the stop pattern are detected at the same time, that is, when the symbols are arranged in parallel, from the left end of the symbol, that is, the start pattern side. Only the left T sequence to read may be generated.

【0019】上記第2の構成によると、予め各ライン毎
に開始または停止パターンを照合するため、二次元バー
コードのシンボル全体がラインセンサの走査方向に対し
て斜めに配置されているとき、シンボルを読み込んだ
後、最初に開始パターンが検出されたときは、まず、左
からシンボルを読んで左Tシーケンスを発生させる。各
走査ライン毎の左Tシーケンスの生成が進み、停止パタ
ーンが検出されると、その時点で右からシンボルを読ん
で、右Tシーケンスを発生させる。
According to the second configuration, since the start or stop pattern is collated for each line in advance, when the entire symbol of the two-dimensional bar code is obliquely arranged with respect to the scanning direction of the line sensor, the symbol When the starting pattern is first detected after reading, the symbol is read from the left to generate the left T sequence. When the generation of the left T sequence for each scan line progresses and a stop pattern is detected, the symbol is read from the right at that time point and the right T sequence is generated.

【0020】この場合、最初に停止パターンが来るとき
は、上記とは逆の順序となる。そして、上記第1の構成
と同様に前記左右のTシーケンスが混在する走査ライン
のデータのコードワード変換を行い、さらに左右Tシー
ケンスを並び替えて斜め補正を行うステッチング処理を
施して文書コードを作成する。
In this case, when the stop pattern comes first, the order is reversed. Then, similar to the first configuration, the codeword conversion of the data of the scanning line in which the left and right T sequences are mixed is performed, and the left and right T sequences are rearranged to perform the stitching process for performing the diagonal correction to obtain the document code. create.

【0021】[0021]

【発明の実施の形態】図1〜図6は本発明を実施した二
次元コードの読取装置の一形態を示している。図1に示
すように、この読取装置は、ディジタル複写機の中央制
御装置に構成された解号装置1を備え、その複写機に付
設のスキャナ2を利用してPDF−417シンボルの読
み取りを行うように構成されている。スキャナ2はCC
Dラインセンサにより構成され、記録担体としての原稿
上に記録された二次元バーコードを光学的に読み取り、
その読取データを解号装置1へ出力する。
1 to 6 show an embodiment of a two-dimensional code reading apparatus embodying the present invention. As shown in FIG. 1, this reading device includes a decoding device 1 which is configured in a central control unit of a digital copying machine, and reads a PDF-417 symbol using a scanner 2 attached to the copying machine. Is configured. Scanner 2 is CC
A two-dimensional bar code, which is composed of a D line sensor and is recorded on an original as a record carrier, is optically read,
The read data is output to the decoding apparatus 1.

【0022】解号装置1は前掲の図12に示した二次元
バーコードのシンボルを読み込んだ後のTシーケンスを
発生させるところで、スキャナ2の走査方向に対する原
稿の傾きによるシンボルの斜め補正を行うもので、図2
に示すように、読取データ用のラインバッファ3、左T
シーケンス生成バッファ4、右Tシーケンス生成バッフ
ァ5、開始パターン検出手段6、左右切換選択手段7、
全Tシーケンスメモリ8及び並び替え(ステッチング)
手段9により構成され、その解号(デコード)はシンボル
入力→Tシーケンス生成→コードワード変換→ステッチ
ング→文書コード出力の順に行われ、前記斜め補正はT
シーケンス生成時に行われる。
The decoding device 1 performs the skew correction of the symbol due to the inclination of the document with respect to the scanning direction of the scanner 2 when the T sequence is generated after the symbol of the two-dimensional bar code shown in FIG. 12 is read. Then, Fig. 2
As shown in, the line buffer 3 for read data, left T
Sequence generation buffer 4, right T sequence generation buffer 5, start pattern detection means 6, left / right switching selection means 7,
All T sequence memory 8 and rearrangement (stitching)
The decoding is performed in the order of symbol input → T sequence generation → code word conversion → stitching → document code output, and the diagonal correction is performed by T.
It is performed when the sequence is generated.

【0023】ラインバッファ3はスキャナ2により読み
取られた二次元バーコードのシンボルを格納する。左T
シーケンス生成バッファ4はシンボルを左側から読むT
シーケンス(以下、左Tシーケンスと呼ぶ)を各走査ライ
ン毎に生成する左Tシーケンス生成する。同様に右Tシ
ーケンス生成バッファ5はシンボルを右側から読むTシ
ーケンス(以下、右Tシーケンスと呼ぶ)を各走査ライン
毎に生成する。
The line buffer 3 stores the symbols of the two-dimensional bar code read by the scanner 2. Left T
The sequence generation buffer 4 reads the symbol from the left side T
A left T sequence for generating a sequence (hereinafter referred to as a left T sequence) is generated for each scanning line. Similarly, the right T sequence generation buffer 5 generates a T sequence (hereinafter referred to as a right T sequence) for reading symbols from the right side for each scanning line.

【0024】開始パターン検出手段6はシンボルの左端
に設けられている開始パターンSを検出する。左右切換
選択手段7は開始パターン検出手段6によって開始パタ
ーンSが検出された時点で左Tシーケンスを選択すると
ともに、読み取られるシンボルが依然存在し且つ開始パ
ターンSが検出されなくなった時点で右Tシーケンスに
切り換える。全Tシーケンスメモリ8は生成された左右
Tシーケンスを格納する。並び替え手段9は全Tシーケ
ンスメモリ8に格納された左右Tシーケンスが混在する
走査ラインのデータをデコード処理するために、これら
を並べ替えて合成し、正しい読取データを作成する。
The start pattern detecting means 6 detects the start pattern S provided at the left end of the symbol. The left / right switching selection means 7 selects the left T sequence at the time when the start pattern S is detected by the start pattern detection means 6, and the right T sequence at the time when the symbol to be read is still present and the start pattern S is no longer detected. Switch to. The entire T sequence memory 8 stores the generated left and right T sequences. The rearrangement means 9 rearranges and combines the data of the scanning lines in which the left and right T sequences stored in the entire T sequence memory 8 are mixed, and creates correct read data.

【0025】次に、図3のフローチャートを参照しなが
ら、読取装置によるPDF−417シンボルの読取動作
を説明すると、ステップ#5でPDF−417シンボル
の読取動作を開始する。ここで、Lはスキャナ2の走査
ライン番号を示している。
Next, referring to the flowchart of FIG. 3, the reading operation of the PDF-417 symbol by the reading device will be described. In step # 5, the reading operation of the PDF-417 symbol is started. Here, L indicates the scanning line number of the scanner 2.

【0026】このシンボルの読取を開始すると、読取デ
ータ用ラインバッファ3はその読み取ったシンボルのデ
ータを一時的に格納し、次いでステップ#10でシンボ
ルLラインの左Tシーケンス及び右Tシーケンスを生成
し、これらを左右Tシーケンス生成バッファ4,5に格
納する。ステップ#15では開始パターン検出手段6に
より生成されたLラインの左右のTシーケンスから開始
パターンSの有無を照合する。
When the reading of the symbol is started, the read data line buffer 3 temporarily stores the data of the read symbol, and then in step # 10, the left T sequence and the right T sequence of the symbol L line are generated. , These are stored in the left and right T sequence generation buffers 4 and 5. In step # 15, the presence or absence of the start pattern S is checked from the T sequences on the left and right of the L line generated by the start pattern detecting means 6.

【0027】このとき開始パターンSが検出されたとき
は、ステップ#20で左Tシーケンスを選択し、以後、
ステップ#30でLラインのTシーケンスを発生させ
て、それを全Tシーケンスメモリ8に格納する。そして
ステップ#35でシンボルの最終ラインに到達したか、
否かを判定し、到達していないときは次の走査ラインに
ついて、ステップ#5〜ステップ#30までのプロセス
を繰り返し、以後、同様にしてステップ#40でシンボ
ル全体のTシーケンスの生成が終了するまで、各走査ラ
インについて上記プロセスを繰り返す。
At this time, when the start pattern S is detected, the left T sequence is selected in step # 20, and thereafter,
In step # 30, an L line T sequence is generated and stored in the entire T sequence memory 8. Then, in step # 35, did you reach the last line of the symbol?
If not, the process from step # 5 to step # 30 is repeated for the next scan line, and thereafter, in step # 40, the generation of the T sequence for the entire symbol is similarly completed. Repeat the above process until each scan line.

【0028】以上は、原稿に記録されたPDF−417
シンボルがスキャナ2の走査ラインと平行に配置されて
いる場合であって、上記のようにしてTシーケンスの生
成が終了すると、そのデータをコードワード変換し、さ
らに後述するように並び替えが行われ、最終的に文書コ
ード化される。
The above is the PDF-417 recorded on the original.
When the symbols are arranged parallel to the scanning line of the scanner 2 and the generation of the T sequence is completed as described above, the data is converted into a codeword and rearranged as described later. , Finally document coded.

【0029】これに対し、原稿に記録されたPDF−4
17シンボルがスキャナ2の走査ラインに対して若干の
傾き角をもって斜めに配置される場合がある。図4及び
図5は、シンボルが走査ラインに対して斜めにセットさ
れた場合のTシーケンスの並び方(図4)及び読み取り方
(図5)の一例を示している。
On the other hand, the PDF-4 recorded on the document
The 17 symbols may be obliquely arranged with a slight inclination angle with respect to the scanning line of the scanner 2. 4 and 5 show how the T-sequences are arranged (Fig. 4) and how to read when the symbols are set diagonally to the scanning line.
An example (FIG. 5) is shown.

【0030】すなわち、図5に示すようにシンボルBが
走査ラインに対して斜めに配置されているときは、図4
に示すようにスキャナ2によってシンボルBの走査を開
始した1ライン目(L=1)の時点から開始パターンSが
現れる直前(L=n−1)までの間はTシーケンスデータ
はなく、余白部分として認識される。なお、1つのセル
の走査は走査ライン5本分に相当する。
That is, when the symbols B are obliquely arranged with respect to the scanning line as shown in FIG.
There is no T sequence data from the time of the first line (L = 1) when the scanning of the symbol B is started by the scanner 2 to immediately before the start pattern S appears (L = n−1), as shown in Is recognized as Note that scanning one cell corresponds to five scanning lines.

【0031】開始パターンSが現れるnライン目に達す
ると、ステップ#15でそのことが認識され、ステップ
#20で左Tシーケンスが選択される。このときのTシ
ーケンスデータは例えば図4に示すように、92222247
422…となる。このTシーケンスデータは図12(B)の
PDF−417シンボルとの対照から明らかなように、
92222247が左端の開始パターンSであり、422…が左行
標識パターンRLであり、そして、nライン目では、デー
タ中に開始パターンSと左行標識パターンRLの一部のみ
しか存在していないことが分かる。
When the nth line in which the start pattern S appears appears, this is recognized in step # 15, and the left T sequence is selected in step # 20. The T sequence data at this time is, for example, as shown in FIG.
422 ... This T sequence data is, as is clear from the comparison with the PDF-417 symbol of FIG.
92222247 is the leftmost start pattern S, 422 ... Is the left row indicator pattern RL, and on the nth line, only the start pattern S and a part of the left row indicator pattern RL are present in the data. I understand.

【0032】次に(n+1)ライン目では、9222247 422
… 223…となり、ここで初めてコードワードのデータ
領域Dの一部が現れるので、ステップ#30で左Tシー
ケンスデータを生成する。(n+2)ライン目以降も開始
パターンSを検出できる状態にある間は、開始パターン
検出後、左Tシーケンスデータを生成していく。
Next, in the (n + 1) th line, 9222247 422
.. 223. Since a part of the code word data area D appears here for the first time, left T sequence data is generated in step # 30. While the start pattern S can be detected even after the (n + 2) th line, the left T sequence data is generated after the start pattern is detected.

【0033】そして、mライン目に至ると、左Tシーケ
ンスの基準となる開始パターンSがなくなる。このため
ステップ#15で開始パターンSが無いと認識し、ステ
ップ#25で左右切換選択手段7の動作により既にデー
タ中に存在している停止パターンTから読む、いわゆる
右Tシーケンスを選択し、ステップ#30で逆読みの形
でmライン目のTシーケンスを生成する。したがって、
図4に示す824422は停止パターンTのTシーケンスデー
タ、324…は右行標識パターンRRのTシーケンスデー
タ、587…はデータ領域Dの右端のTシーケンスデータ
である。この時点からTシーケンスデータは左Tシーケ
ンスと右Tシーケンスとが混在する形となる。
At the m-th line, the starting pattern S which is the reference of the left T sequence disappears. Therefore, in step # 15, it is recognized that there is no start pattern S, and in step # 25, the so-called right T sequence, which is read from the stop pattern T already existing in the data by the operation of the left / right switching selection means 7, is selected, In # 30, the T sequence of the m-th line is generated in the form of reverse reading. Therefore,
4, 824422 is the T sequence data of the stop pattern T, 324 ... Is the T sequence data of the right row indicator pattern RR, and 587 ... Is the T sequence data of the right end of the data area D. From this point, the T sequence data is in a form in which the left T sequence and the right T sequence are mixed.

【0034】そして、最終ラインまで読み終わると、全
Tシーケンスメモリ17から出力された各行のTシーケ
ンスの並び替え、つまりステッチングが行われる。図6
にステッチング処理の一例を示す。この図において、S
は開始パターン、Rは左右行の標識パターンRL,RR、T
は停止パターンのことである。
When the reading up to the last line is completed, the T sequences of the respective rows output from the entire T sequence memory 17 are rearranged, that is, stitching is performed. Figure 6
Shows an example of the stitching process. In this figure, S
Is a start pattern, R is a left / right row marking pattern RL, RR, T
Is a stop pattern.

【0035】並び替え手段9では、各Tシーケンスから
クラスタやコードワードを演算し、属性データから斜め
補正を行う。なお、クラスタは相互に排他的な3つの部
分集合に区切られたコードワードの集合であって、PD
F−417シンボルでは、各行は3つのクラスタの1つ
だけを使用してデータを符号化し、各クラスタは3行目
毎に順次に繰り返す。任意の2つの隣接する行は異なる
クラスタを使用するから、デコーダは同一走査ライン内
の異なる行からのクラスタを区別することができる。
The rearranging means 9 computes clusters and codewords from each T sequence and performs diagonal correction from the attribute data. A cluster is a set of codewords divided into three mutually exclusive subsets.
For the F-417 symbol, each row encodes data using only one of the three clusters, with each cluster repeating in sequence every third row. Since any two adjacent rows use different clusters, the decoder can distinguish clusters from different rows within the same scan line.

【0036】この斜め補正では、コードワードマトリク
スを作成するときに、図6(A)に示すような[1][2]等
の行情報からテーブルを埋めて行く形をとる。開始パタ
ーンSを示す[S]が最初に存在する場合はそのまま左か
らデータを埋めていき、停止パターンTを示す[T]が存
在する場合は右から順次データを埋めていくようにし、
これによって斜めに読み取られた行情報を基準にして、
図6(B)に示すように欠落なしに補正することができ
る。
In this diagonal correction, when a codeword matrix is created, the table is filled with row information such as [1] [2] as shown in FIG. 6 (A). When [S] indicating the start pattern S first exists, the data is filled from the left as it is, and when [T] indicating the stop pattern T exists, the data is sequentially filled from the right,
Based on the line information read diagonally by this,
As shown in FIG. 6 (B), the correction can be performed without omission.

【0037】図7〜図11は本発明を実施した二次元コ
ードの読取装置の他の形態を示している。この実施の形
態においても、解号装置はディジタル複写機の中央制御
装置に構成され、そのスキャナを利用してPDF−41
7シンボルの解号を行うように構成され、CCDライン
センサからなるスキャナによって、原稿上に記録された
二次元バーコードを光学的に読み取り、その読取データ
を解号装置へ出力する点で前記実施の形態と同様であ
る。
7 to 11 show another embodiment of the two-dimensional code reading apparatus embodying the present invention. Also in this embodiment, the decrypting device is constructed in the central control unit of the digital copying machine, and the scanner thereof is used to operate the PDF-41.
It is configured to perform 7-symbol decoding, and the above-mentioned implementation is performed in that a scanner including a CCD line sensor optically reads a two-dimensional bar code recorded on an original and outputs the read data to a decoding apparatus. It is similar to the form.

【0038】解号装置は前掲の図12に示した二次元バ
ーコードのシンボルを読み込んだ後のTシーケンスを発
生させるところで、スキャナ2の走査方向に対する原稿
の傾きによるシンボルの斜め補正を行うもので、図7に
示すように、読取データ用のラインバッファ13、開始
パターン照合手段14、停止パターン照合手段15、T
シーケンス生成バッファ16、全Tシーケンスメモリ1
7及び並び替え(ステッチング)手段18により構成さ
れている。
The decoding apparatus performs the skew correction of the symbol due to the inclination of the document with respect to the scanning direction of the scanner 2 when the T sequence is generated after the symbol of the two-dimensional bar code shown in FIG. 12 is read. As shown in FIG. 7, a line buffer 13 for read data, a start pattern matching means 14, a stop pattern matching means 15, T
Sequence generation buffer 16, all-T sequence memory 1
7 and rearranging (stitching) means 18.

【0039】ラインバッファ13はスキャナで読み取ら
れたPDF−417シンボルを格納する。開始パターン
照合手段14はラインバッファ13に格納された各走査
ライン毎に開始パターンSの有無を照合する。停止パタ
ーン照合手段15はラインバッファ13に格納された各
走査ライン毎に停止パターンTの有無を照合する。
The line buffer 13 stores the PDF-417 symbols read by the scanner. The start pattern matching means 14 matches the presence or absence of the start pattern S for each scanning line stored in the line buffer 13. The stop pattern collating means 15 collates the presence or absence of the stop pattern T for each scanning line stored in the line buffer 13.

【0040】Tシーケンス生成バッファ16は開始パタ
ーンS及び停止パターンTのうち照合により先に検出さ
れた一方のパターン側から読むシンボルのTシーケンス
を各走査ライン毎に生成し、且つ、そのTシーケンスの
生成中に他方のパターンが検出された時点で他方のパタ
ーン側から読むシンボルのTシーケンスを各走査ライン
毎に生成する。また、開始パターンSと停止パターンT
とが同時に検出された場合、シンボル左端から読む左T
シーケンスのみを生成する。
The T-sequence generation buffer 16 generates, for each scanning line, a T-sequence of symbols to be read from one of the start pattern S and the stop pattern T, which is detected first by collation, and the T-sequence of the T-sequence is generated. When the other pattern is detected during generation, a T sequence of symbols read from the other pattern side is generated for each scanning line. In addition, the start pattern S and the stop pattern T
If and are detected simultaneously, the left T read from the left edge of the symbol
Generate only sequences.

【0041】全Tシーケンスメモリ17は生成されたT
シーケンスを格納する。並び替え手段18は全Tシーケ
ンスメモリ17に格納された左右Tシーケンスが混在す
る走査ラインのデータをデコード処理するために、これ
らを並べ替えて合成し、正しい読取データを作成する。
The all-T sequence memory 17 stores the generated T
Store the sequence. The rearrangement unit 18 rearranges and combines the data of the scanning lines in which the left and right T sequences stored in the entire T sequence memory 17 are mixed, and correct read data is created.

【0042】次に、図8のフローチャートを参照しなが
ら、読取装置によるPDF−417シンボルの読取動作
を説明すると、ステップ#105でPDF−417シン
ボルの読取動作を開始する。このシンボルの読取を開始
すると、読取データ用ラインバッファ13はその読み取
ったシンボルのデータを一時的に格納する。次いで、ス
テップ#110ではシンボルLラインの左先端のTシー
ケンスを演算し、ステップ#115でその結果が特定デ
ータである開始パターンデータであるか、否かを照合す
る。
Next, referring to the flowchart of FIG. 8, the reading operation of the PDF-417 symbol by the reading device will be described. In step # 105, the reading operation of the PDF-417 symbol is started. When the reading of this symbol is started, the read data line buffer 13 temporarily stores the data of the read symbol. Next, in step # 110, the T sequence at the left end of the symbol L line is calculated, and in step # 115 it is checked whether or not the result is start pattern data which is the specific data.

【0043】図9及び図10は、シンボルが走査ライン
に対して斜めにセットされた場合のTシーケンスの並び
方(図9)及び読み取り方(図10)の一例を示している。
図10に示すようにシンボルBが走査ラインに対して斜
めに配置されているときは、図9に示すようにシンボル
Bの走査を開始した1ライン目(L=1)の時点から開始
パターンSが現れる直前(L=n−1)までの間はTシー
ケンスデータはなく、余白部分として認識される。
FIGS. 9 and 10 show an example of how the T-sequences are arranged (FIG. 9) and how they are read (FIG. 10) when the symbols are set obliquely with respect to the scanning line.
When the symbols B are obliquely arranged with respect to the scanning line as shown in FIG. 10, the start pattern S is started from the time of the first line (L = 1) when the scanning of the symbols B is started as shown in FIG. There is no T sequence data until just before (L = n-1) appears, and it is recognized as a blank part.

【0044】開始パターンSが現れるnライン目に達す
ると、ステップ#115でそのことが認識され、ステッ
プ#120で左Tシーケンスが生成される。この場合、
開始パターンSが現れないときは、シンボルが斜めに配
置されている関係から、最初は必ず停止パターンTが現
れることになる。そのときはステップ#135へ進み右
Tシーケンスを発生させる。つまり、データを逆読みし
ていく。
When the nth line in which the start pattern S appears appears, this is recognized in step # 115, and the left T sequence is generated in step # 120. in this case,
When the start pattern S does not appear, the stop pattern T always appears at first because of the diagonal arrangement of the symbols. In that case, the process proceeds to step # 135 to generate the right T sequence. That is, the data is read backward.

【0045】その後、(n+1)ライン目から以降も開始
パターンSまたは停止パターンTを検出できる状態にあ
る間は、それらのパターンを検出後、左または右のTシ
ーケンスデータを生成し、それを全Tシーケンスメモリ
17に格納する。
After that, while the start pattern S or the stop pattern T can be detected from the (n + 1) th line onward, the left or right T sequence data is generated after detecting those patterns and all of them are generated. It is stored in the T sequence memory 17.

【0046】そして、ステップ#120で左Tシーケン
ス生成がmライン目に至ると、開始パターンSとともに
右Tシーケンスの基準となる停止パターンTが現れる。
そこで、ステップ#125ではこの停止パターンTが現
れた判定すると、ステップ#130で、そのラインから
Tシーケンスの生成を右Tシーケンスに、つまり停止パ
ターンTから逆読みしていく。この時点からTシーケン
スデータは左Tシーケンスと右Tシーケンスとが混在す
る形となる。
When the left T sequence is generated at the m-th line in step # 120, the start pattern S and the stop pattern T serving as the reference of the right T sequence appear.
Therefore, when it is determined that the stop pattern T appears in step # 125, the generation of the T sequence is read back from the line to the right T sequence, that is, from the stop pattern T in step # 130. From this point, the T sequence data is in a form in which the left T sequence and the right T sequence are mixed.

【0047】また、mライン目においてステップ#13
5で右Tシーケンスを生成している場合は、停止パター
ンTとともに左Tシーケンスの基準となる開始パターン
Sが現れるので、ステップ#140で開始パターンSが
現れたと判定し、ステップ#145で左Tシーケンスを
発生させることになる。
In the m-th line, step # 13
When the right T sequence is generated in step 5, since the start pattern S that serves as the reference of the left T sequence appears together with the stop pattern T, it is determined in step # 140 that the start pattern S has appeared, and in step # 145, the left T sequence is generated. Will generate a sequence.

【0048】そして、ステップ#150でシンボルの最
終ラインに到達したか、否かを判定し、到達していない
ときは次の走査ラインについて、ステップ#105〜ス
テップ#150までのプロセスを繰り返し、以後、同様
にしてステップ#155でシンボル全体のTシーケンス
の生成が終了するまで、各走査ラインについて上記プロ
セスを繰り返す。
Then, in step # 150, it is determined whether or not the final line of the symbol is reached. If not, the process from step # 105 to step # 150 is repeated for the next scanning line, and thereafter. Similarly, the above process is repeated for each scan line until the generation of the T sequence for the entire symbol is completed in step # 155.

【0049】このようにして、最終ラインまで読み終わ
ると、全Tシーケンスメモリ17から出力された各行の
Tシーケンスの並び替え、つまりステッチングが行われ
る。図11にこの場合のステッチング処理の一例を示
す。並び替え手段18では、各Tシーケンスからクラス
タやコードワードを演算し、属性データから斜め補正を
行う。
In this way, when the reading up to the last line is completed, the T sequences of the respective rows output from the entire T sequence memory 17 are rearranged, that is, stitching is performed. FIG. 11 shows an example of the stitching process in this case. The rearrangement unit 18 calculates a cluster or a codeword from each T sequence and performs diagonal correction from the attribute data.

【0050】この斜め補正では、コードワードマトリク
スを作成するときに[1][2]等の行情報からテーブルを
埋めて行く形をとる。開始パターンSを示す[S]が最初
に存在する場合はそのまま左からデータを埋めていき、
停止パターンTを示す[T]が存在する場合は右から順次
データを埋めていくようにし、これによって斜めに読み
取られた行情報を基準にして、欠落なしに補正すること
ができる。その結果は前掲の図6(B)と同じになる。
In this diagonal correction, when a codeword matrix is created, the table is filled with row information such as [1] [2]. When [S] indicating the start pattern S is present first, the data is filled in from the left as it is,
When there is [T] indicating the stop pattern T, the data is sequentially filled from the right side, whereby the line information read obliquely can be used as a reference and correction can be performed without omission. The result is the same as that shown in FIG. 6 (B).

【0051】なお、上記本発明の実施の形態では、ディ
ジタル複写機のスキャナを利用して読み取る読取装置の
構成について説明したが、その他、本発明では解号装置
を複写機から独立して設置することができることは勿論
のこと、複写機以外のスキャナを有するファクシミリ等
の機器を利用した形態とすることも可能である。
In the above-described embodiment of the present invention, the configuration of the reading device for reading by using the scanner of the digital copying machine has been described. However, in the present invention, the decoding device is installed independently of the copying machine. Of course, it is also possible to use a device such as a facsimile machine having a scanner other than the copying machine.

【0052】[0052]

【発明の効果】以上説明したように本発明の請求項1に
よるときは、例えばPDF−417の二次元バーコード
をディジタル複写機等のスキャナを利用して解号する場
合において、シンボル全体が走査ラインに対して斜めに
読み取られたとき、予め各ライン毎に、シンボルを左読
みしていく左Tシーケンスと、右読みしていく右Tシー
ケンスを準備し、シンボルを読み込んだ後、開始パター
ンを検出してから開始パターンが検出されなくなるまで
の期間、左Tシーケンスを生成し、Tシーケンスを切換
混在させるタイミングを開始パターンの有無により行っ
て、開始パターンが検出されなくなった後、右Tシーケ
ンス生成に切り換えるようにしているので、二次元バー
コードが記録された記録担体がスキャナ上に斜めに置か
れた場合にも、その記録担体を置き換えなくとも、斜め
補正することができる。
As described above, according to claim 1 of the present invention, when a two-dimensional bar code of PDF-417 is decoded by using a scanner such as a digital copying machine, the entire symbol is scanned. When read diagonally with respect to a line, prepare a left T sequence for left-reading a symbol and a right T-sequence for right reading for each line in advance, and after reading a symbol, set a start pattern. During the period from the detection to the time when the start pattern is no longer detected, the left T sequence is generated, and the timing to switch and mix the T sequences is performed depending on the presence or absence of the start pattern. Since it is switched to, even if the record carrier on which the two-dimensional barcode is recorded is placed on the scanner at an angle, Without replacing the record carrier, it is possible to skew correction.

【0053】また、左Tシーケンスから右Tシーケンス
への切換をリアルタイムで行うことができるので、高速
処理が可能となる。さらに、Tシーケンス生成の時点で
補正を行うものであるため、Tシーケンス以降の処理は
開始パターンまたは停止パターンを判断して解号するこ
とができる。したがってPDF−417の基本アルゴリ
ズムに何等の影響も与えることがないので、汎用性に富
む。
Further, since the left T sequence can be switched to the right T sequence in real time, high speed processing is possible. Further, since the correction is performed at the time of generating the T sequence, it is possible to determine the start pattern or the stop pattern in the process after the T sequence and to interpret the signal. Therefore, since it does not affect the basic algorithm of PDF-417, it is versatile.

【0054】請求項2によるときは、シンボル全体が走
査ラインに対して斜めに読み取られたとき、最初に開始
パターンのみがあれば、左読みTシーケンスを生成さ
せ、且つ、停止パターンが出て来た時点で逆の右読みT
シーケンスを最終ラインまで生成し、シンボルを読み込
んだ後、最初に開始パターンが検出されたときは、ま
ず、左からシンボルを読んで左Tシーケンスを生成し、
Tシーケンスの混在させるタイミングを停止パターンの
検出により行って各走査ライン毎の左Tシーケンスの生
成が進み、停止パターンが検出されると、その時点で右
からシンボルを読んで、右Tシーケンスを発生させる。
あるいは最初に停止パターンのみがあれば、左Tシーケ
ンスと右Tシーケンスを上記とは逆に生成するようにし
ているので、請求項1と同様に、原稿がスキャナ上に斜
めに置かれた場合に、原稿の置き換えなしに補正するこ
とができる。
According to the second aspect, when the entire symbol is read obliquely with respect to the scanning line, if there is only the start pattern first, the left reading T sequence is generated and the stop pattern appears. Reverse right reading T when
After the sequence is generated to the last line and the symbols are read, the first time the starting pattern is detected, the symbols are read from the left to generate the left T sequence,
The generation of the left T sequence for each scanning line proceeds by detecting the stop pattern at the timing of mixing the T sequences, and when the stop pattern is detected, the symbol is read from the right at that point to generate the right T sequence. Let
Alternatively, if there is only the stop pattern at the beginning, the left T-sequence and the right T-sequence are generated in the reverse order to the above. Therefore, in the same manner as in claim 1, when the original is placed on the scanner at an angle. , Can be corrected without replacing the original.

【0055】また、請求項1では左右別々のTシーケン
ス生成用バッファを要するが、請求項2では1個のライ
ンバッファで同様の効果を奏するものとなる。さらに、
処理の切換は停止パターンの現れたときに行うものであ
り、切換時期も請求項1の構成と比較して早いので全体
的に高速処理に対応することができる。
In the first aspect, separate right and left T sequence generation buffers are required, but in the second aspect, the same effect can be obtained with one line buffer. further,
The switching of processing is performed when a stop pattern appears, and the switching timing is earlier than that of the structure of claim 1, so that high-speed processing can be generally supported.

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

【図1】 本発明の第1の実施形態に係る読取装置を示
す概略ブロック図。
FIG. 1 is a schematic block diagram showing a reading device according to a first embodiment of the present invention.

【図2】 解号装置の構成を示す概略ブロック図。FIG. 2 is a schematic block diagram showing a configuration of a decoding apparatus.

【図3】 その動作を示すフローチャート。FIG. 3 is a flowchart showing the operation.

【図4】 Tシーケンスの並び方の一例を示す模式図。FIG. 4 is a schematic diagram showing an example of how T sequences are arranged.

【図5】 Tシーケンスの読み取り方の一例を示す模式
図。
FIG. 5 is a schematic diagram showing an example of how to read a T sequence.

【図6】 ステッチング処理の一例を示す模式図。FIG. 6 is a schematic diagram showing an example of stitching processing.

【図7】 本発明の第2の実施形態に係る読取装置の構
成を示す概略ブロック図。
FIG. 7 is a schematic block diagram showing a configuration of a reading device according to a second embodiment of the present invention.

【図8】 その動作を示すフローチャート。FIG. 8 is a flowchart showing the operation.

【図9】 Tシーケンスの並び方の一例を示す模式図。FIG. 9 is a schematic diagram showing an example of how T sequences are arranged.

【図10】 Tシーケンスの読み取り方の一例を示す模
式図。
FIG. 10 is a schematic diagram showing an example of how to read a T sequence.

【図11】 ステッチング処理の一例を示す模式図。FIG. 11 is a schematic view showing an example of stitching processing.

【図12】 サイズの異なる複数のPDF−417シン
ボルのパターンを示す図。
FIG. 12 is a diagram showing patterns of a plurality of PDF-417 symbols having different sizes.

【図13】 PDF−417二次元バーコードのシンボ
ル構成の基となるパターンを示す図。
FIG. 13 is a diagram showing a pattern that is a basis of a symbol configuration of a PDF-417 two-dimensional barcode.

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

1 解号装置 2 ラインセンサ 3 読取データ用ラインバッファ 4 左Tシーケンス生成バッファ 5 右Tシーケンス生成バッファ 6 開始パターン検出手段 7 左右切換選択手段 8 全Tシーケンスメモリ 9 並び替え手段 13 読取データ用ラインバッファ 14 開始パターン照合手段 15 停止パターン照合手段 16 Tシーケンス生成バッファ 17 全Tシーケンスメモリ 18 並び替え手段 DESCRIPTION OF SYMBOLS 1 Signaling device 2 Line sensor 3 Line buffer for read data 4 Left T sequence generation buffer 5 Right T sequence generation buffer 6 Start pattern detection means 7 Left / right switching selection means 8 All T sequence memory 9 Sorting means 13 Line buffer for read data 14 Start Pattern Matching Means 15 Stop Pattern Matching Means 16 T Sequence Generation Buffer 17 All T Sequence Memory 18 Sorting Means

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 記録担体上の二次元バーコードを光学的
に読み取るラインセンサと、このラインセンサにより読
み取られた二次元バーコードのシンボルを格納する読取
データ用のラインバッファと、前記シンボルを左側から
読むTシーケンスを各走査ライン毎に生成する左Tシー
ケンス生成バッファと、前記シンボルを右側から読むT
シーケンスを各走査ライン毎に生成する右Tシーケンス
生成バッファと、前記シンボルの左端に設けられている
開始パターンを検出する開始パターン検出手段と、この
開始パターン検出手段によって前記開始パターンが検出
された時点で前記左Tシーケンスを選択し、読み取られ
るシンボルが依然存在し且つ前記開始パターンが検出さ
れなくなった時点で前記右Tシーケンスに切り換える左
右切換選択手段と、前記左右のTシーケンスが混在する
走査ラインのデータをデコード処理するデコード処理手
段とを具備することを特徴とする二次元コードの読取装
置。
1. A line sensor for optically reading a two-dimensional bar code on a record carrier, a line buffer for read data for storing a two-dimensional bar code symbol read by the line sensor, and the symbol on the left side. A T sequence generating buffer for generating a T sequence for each scan line and a T sequence for reading the symbol from the right side.
A right T sequence generation buffer that generates a sequence for each scanning line, a start pattern detection unit that detects a start pattern provided at the left end of the symbol, and a time point when the start pattern is detected by the start pattern detection unit. Of the left T-sequence, the left-right switching selection means for switching to the right T-sequence at the time when the symbol to be read is still present and the start pattern is no longer detected, and the scanning line in which the left and right T-sequences are mixed. A two-dimensional code reading device, comprising: a decoding processing unit that decodes data.
【請求項2】 記録担体上の二次元バーコードを光学的
に読み取るラインセンサと、このラインセンサにより読
み取られた二次元バーコードのシンボルを格納する読取
データ用のラインバッファと、このラインバッファに格
納された各走査ライン毎に前記シンボル左端に設けられ
ている開始パターンの有無を照合する開始パターン照合
手段と、前記ラインバッファに格納された各走査ライン
毎に前記シンボル右端に設けられている停止パターンの
有無を照合する停止パターン照合手段と、前記開始パタ
ーン及び停止パターンのうち照合により先に検出された
一方のパターン側から読むシンボルのTシーケンスを各
走査ライン毎に生成し且つそのTシーケンスの生成中に
他方のパターンが検出された時点で該他方のパターン側
から読むシンボルのTシーケンスを各走査ライン毎に生
成するTシーケンス生成バッファと、前記左右のTシー
ケンスが混在する走査ラインのデータをデコード処理す
るデコード処理手段とを具備することを特徴とする二次
元コードの読取装置。
2. A line sensor for optically reading a two-dimensional bar code on a record carrier, a line buffer for read data for storing a two-dimensional bar code symbol read by the line sensor, and a line buffer for the line buffer. Start pattern matching means for matching the presence or absence of a start pattern provided at the left end of the symbol for each stored scan line, and a stop provided at the right end of the symbol for each scan line stored in the line buffer. A stop pattern matching means for checking the presence / absence of a pattern and a T sequence of symbols to be read from one of the start pattern and the stop pattern, which is detected first by the matching, is generated for each scanning line and the T sequence The symbol read from the other pattern side when the other pattern is detected during generation A two-dimensional code reader comprising a T sequence generation buffer for generating a T sequence for each scanning line, and a decoding processing means for decoding the data of the scanning lines in which the left and right T sequences are mixed. .
【請求項3】 Tシーケンス生成バッファは、開始パタ
ーンと停止パターンとが同時に検出された場合、シンボ
ル左端から読む左Tシーケンスのみを生成するように構
成されている請求項2の二次元コードの読取装置。
3. The reading of the two-dimensional code according to claim 2, wherein the T sequence generation buffer is configured to generate only a left T sequence read from the left end of the symbol when the start pattern and the stop pattern are detected at the same time. apparatus.
JP7200805A 1995-08-07 1995-08-07 Two-dimensional code reader Pending JPH0950480A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7200805A JPH0950480A (en) 1995-08-07 1995-08-07 Two-dimensional code reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7200805A JPH0950480A (en) 1995-08-07 1995-08-07 Two-dimensional code reader

Publications (1)

Publication Number Publication Date
JPH0950480A true JPH0950480A (en) 1997-02-18

Family

ID=16430491

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7200805A Pending JPH0950480A (en) 1995-08-07 1995-08-07 Two-dimensional code reader

Country Status (1)

Country Link
JP (1) JPH0950480A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7380718B2 (en) 2004-12-21 2008-06-03 Nidec Sankyo Corporation Method for reading out symbol information and device for reading out symbol information
CN109359999A (en) * 2018-08-21 2019-02-19 同济大学 The decoding method of two-dimensional line segment figure for commodity outer packing

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7380718B2 (en) 2004-12-21 2008-06-03 Nidec Sankyo Corporation Method for reading out symbol information and device for reading out symbol information
CN109359999A (en) * 2018-08-21 2019-02-19 同济大学 The decoding method of two-dimensional line segment figure for commodity outer packing
CN109359999B (en) * 2018-08-21 2021-10-29 同济大学 Encoding and decoding method for two-dimensional line segment graph of commodity outer package

Similar Documents

Publication Publication Date Title
KR930012137B1 (en) Reading apparatus of dynamically variable machine readable binary code and deciding apparatus of size and density of binary code
US6070805A (en) Distortion resistant double-data correcting color transition barcode and method of generating and using same
US6115508A (en) Clock free two-dimensional barcode and method for printing and reading the same
US7028911B2 (en) Methods and systems for encoding and decoding data in 2D symbology
EP1158456B1 (en) Barcode system
US7478746B2 (en) Two-dimensional color barcode and method of generating and decoding the same
KR100960786B1 (en) Methods and systems for encoding and decoding data in 2d symbology
US5337361A (en) Record with encoded data
US5553084A (en) Error correction enhancement for code one and other machine-readable symbologies
JP4752413B2 (en) Two-dimensional code division display method, two-dimensional code reading method, and two-dimensional code reading apparatus
JP2004530227A (en) Reference mark pattern of graphical barcode
US20070158420A1 (en) Code pattern, printed matter, image generating apparatus, image processing apparatus, image generating method, and information identifying method
JP4893643B2 (en) Detection method and detection apparatus
JPH0950480A (en) Two-dimensional code reader
US6330972B1 (en) Error correction enhancement for code 93i and other machine-readable symbologies
JPH0950481A (en) Two-dimensional code reader
JP5592234B2 (en) Two-dimensional code generation device, two-dimensional code reading device, two-dimensional code, two-dimensional code generation method, two-dimensional code reading method, and program
JP4032236B2 (en) Image processing apparatus, image processing method, and image processing program
KR19980702077A (en) Voice recording and playback device
JPH04270569A (en) Data compression system for picture processor
JP3009325B2 (en) How to analyze Karla code
JP2826229B2 (en) Barcode label scanning position detection method
JP2849000B2 (en) Barcode label scanning interval determination method
JPS58138178A (en) Picture signal encoding system
JPH0244183B2 (en)