JPH10198753A - Two-dimensional code reader - Google Patents

Two-dimensional code reader

Info

Publication number
JPH10198753A
JPH10198753A JP9000675A JP67597A JPH10198753A JP H10198753 A JPH10198753 A JP H10198753A JP 9000675 A JP9000675 A JP 9000675A JP 67597 A JP67597 A JP 67597A JP H10198753 A JPH10198753 A JP H10198753A
Authority
JP
Japan
Prior art keywords
dimensional image
image
dimensional
decoding
image data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP9000675A
Other languages
Japanese (ja)
Other versions
JP3804140B2 (en
Inventor
Hisashi Shigekusa
久志 重草
Motoaki Watabe
元秋 渡部
Masahiro Hara
昌宏 原
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.)
Denso Corp
Original Assignee
Denso 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 Denso Corp filed Critical Denso Corp
Priority to JP00067597A priority Critical patent/JP3804140B2/en
Publication of JPH10198753A publication Critical patent/JPH10198753A/en
Application granted granted Critical
Publication of JP3804140B2 publication Critical patent/JP3804140B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a two-dimensional(2D) code reader that can read bast while suppressing the loss of time to the minimum when reading of image data has to be tried again. SOLUTION: A CCD can perform processing M2 and M3 for detecting the next 2D image without waiting for judging processing S1 or decoding processing D1 due to a control circuit and storing it in the other image memory and address memory which are not processing objects. Therefore, even when the reading of 2D code is failed by any factor, the image is detected before the failure becomes clear by the judging/decoding processing of control circuit so that the judging/decoding processing of the next frame can be speedily started and the control circuit can repeat the judging/decoding processing at a high speed. Accordingly, the high-speed read of 2D code is enabled while suppressing the loss of time caused by the failure of read to the minimum. As a result, the conveying speed of load can be accelerated.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、2進コードで表さ
れるデータをセル化して、2次元のマトリックス上にパ
ターンとして配置した2次元コードを読み取るための2
次元コード読取装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a two-dimensional code for reading data represented by a binary code and reading a two-dimensional code arranged as a pattern on a two-dimensional matrix.
The present invention relates to a dimension code reader.

【0002】[0002]

【従来の技術】2次元コードは、バーコードに比べ、大
量の情報を記録でき、情報が2次元的な広がりを持って
いるため、画像データの読み取りに、より大きな時間を
必要とする。このような2次元コードの読取装置の例と
しては、特開平8−180125号公報に記載されてい
るようなものが存在する。
2. Description of the Related Art A two-dimensional code can record a larger amount of information and has a two-dimensional spread as compared with a bar code. Therefore, it takes a longer time to read image data. As an example of such a two-dimensional code reading device, there is one described in Japanese Patent Application Laid-Open No. 8-180125.

【0003】この2次元コードの読取装置は図9のよう
な構成であり、図10(a)のような手順で2次元コー
ドの読み取りを実行する。すなわち、2次元コードの画
像を検出したCCDセンサ502からの画像信号を受け
て、2値化回路504にて所定の基準レベルで2値化を
行い、これを画像データとして一旦画像メモリー506
に記憶した後、制御回路508が画像メモリー506に
記憶された画像データに基づいて2次元コードの解読を
実行する。なお、画像メモリー506には、クロック回
路510およびアドレス設定回路512により、画像の
2次元位置に応じたアドレスに、それぞれ2値化された
データが記憶されている。
[0003] The two-dimensional code reading device has a configuration as shown in FIG. 9 and reads a two-dimensional code in a procedure as shown in FIG. That is, upon receiving an image signal from the CCD sensor 502 that has detected the image of the two-dimensional code, the binarization circuit 504 binarizes the image at a predetermined reference level, and temporarily converts the binarized image data into an image memory 506.
After that, the control circuit 508 decodes the two-dimensional code based on the image data stored in the image memory 506. The image memory 506 stores binarized data at addresses corresponding to the two-dimensional position of the image by the clock circuit 510 and the address setting circuit 512.

【0004】なお、2次元コードの解読を実行するため
には、2次元コードの位置を確定させる必要があり、前
記従来技術では、その一つの手法として、最初に特徴的
な形状を持つ位置決めシンボルの存在を検査している。
この位置決めシンボルの中心付近の画像データは、画像
メモリー506に送られる時に、変化点検出回路514
および特定寸法比率を検出する比検出回路516により
検出され、その都度、位置決めシンボルが記憶される画
像メモリー506のアドレスがアドレス記憶メモリー5
18に記憶されている。したがって、制御回路508
は、その位置決めシンボルのアドレス付近の画像データ
をを優先的に検査する。
In order to execute decoding of a two-dimensional code, it is necessary to determine the position of the two-dimensional code. In the prior art, as one of the methods, a positioning symbol having a characteristic shape is first used. To check for the presence of
When the image data near the center of the positioning symbol is sent to the image memory 506, the change point detection circuit 514
And a ratio detection circuit 516 for detecting a specific dimensional ratio. Each time, the address of the image memory 506 in which the positioning symbol is stored is stored in the address storage memory 5.
18 is stored. Therefore, the control circuit 508
Inspects the image data near the address of the positioning symbol preferentially.

【0005】位置決めシンボルが存在することが判った
ら、制御回路508は、その個数が所定個数、例えば3
個であるかどうか調べる。位置決めシンボルの数が3個
である場合は、制御回路508は、それぞれの位置決め
シンボルの中心を求めることで2次元コードの位置を確
定した後、データが記録されている領域の解読を実行す
る。
When it is determined that the positioning symbol exists, the control circuit 508 determines that the number of the positioning symbol is a predetermined number, for example, three.
Check if it is an individual. When the number of positioning symbols is three, the control circuit 508 determines the position of the two-dimensional code by obtaining the center of each positioning symbol, and then decodes the area where the data is recorded.

【0006】位置決めシンボルの数が3個でない場合
は、2次元コードの画像の明るさに対して、画像データ
を2値化する基準となる閾値の設定が適切でないなどの
理由により、メモリー上の画像データが2次元コードの
画像を正しく表現していないと判断されるので、制御回
路508は、データ処理を中止して、再びCCDセンサ
からの画像データの検出を実行することになる。
When the number of positioning symbols is not three, the threshold value as a reference for binarizing image data is not appropriate for the brightness of an image of a two-dimensional code. Since it is determined that the image data does not correctly represent the image of the two-dimensional code, the control circuit 508 stops the data processing and executes the detection of the image data from the CCD sensor again.

【0007】1回目、2回目は画像データの読み取りに
失敗し、3回目の画像データの検出で正しく2次元コー
ドの読み取りが行われた場合の例を図10(b)に示
す。
FIG. 10B shows an example in which the first and second image data readings have failed, and the two-dimensional code has been correctly read in the third image data detection.

【0008】[0008]

【発明が解決しようとする課題】しかし、バーコードな
どに比較して、2次元コードは、画像データ量が大きい
ので、画像データの読み取りに失敗した場合、時間のロ
スが大きい。実際に種々の原因により、2次元コードの
読み取りが1回では成功せず、2回、3回と読み取りを
やり直すことがかなりの頻度で発生する。
However, compared to a bar code or the like, a two-dimensional code has a large amount of image data, and if reading of the image data fails, a large amount of time is lost. In fact, due to various causes, the reading of the two-dimensional code is not successful once, and the reading is repeated twice or three times at a considerable frequency.

【0009】このため、搬送中の荷物に付着されている
2次元コードを読み取り、その情報により搬送制御を行
うような場合、2次元コードの読み取りに失敗しても再
度読み取りを行う時間的な余裕を持った速度で搬送する
ことが必要となるが、2次元コードは画像データの読み
取りに要する時間が長いということが不利に作用して、
搬送速度を低く抑えなければならないなどの不都合が生
じていた。
For this reason, when the two-dimensional code attached to the baggage being transported is read and the transport control is performed based on the information, even if the reading of the two-dimensional code fails, there is a time margin for re-reading. It is necessary to convey at a speed with the two-dimensional code, but the disadvantage that the time required for reading the image data is long,
There have been inconveniences such as the need to keep the transport speed low.

【0010】本発明は、画像データの読み取りのやり直
しが発生した時に発生する時間のロスを最小限に抑え、
高速読み取りが可能な2次元コード読取装置を提供する
ことを目的とする。
The present invention minimizes the time loss that occurs when re-reading of image data occurs,
An object of the present invention is to provide a two-dimensional code reader capable of high-speed reading.

【0011】[0011]

【課題を解決するための手段及び発明の効果】ここに
は、1つまたはそれ以上の発明が記載され、それぞれ以
下に述べるような構成および効果を有する。本発明の2
次元コード読取装置は、2進コードで表されるデータを
セル化して、2次元のマトリックス上にパターンとして
配置した2次元コードを読み取るための2次元コード読
取装置であって、繰り返し2次元画像を検出する2次元
画像検出手段と、前記2次元画像検出手段にて検出され
た2次元画像をフレーム毎に記憶する複数の画像記憶手
段と、前記複数の画像記憶手段の内から1つの画像記憶
手段を順次選択して、該選択された画像記憶手段に、前
記2次元画像検出手段から繰り返し検出される2次元画
像を記憶する画像記憶制御手段と、記憶された順番に、
前記複数の画像記憶手段から2次元画像データを読み出
して該2次元画像データが表しているコードを解読する
解読手段と、を備えたことを特徴とする。
Means for Solving the Problems and Effects of the Invention Here, one or more inventions are described, each having the structure and effect described below. 2 of the present invention
The two-dimensional code reader is a two-dimensional code reader for reading data represented by a binary code into cells and reading a two-dimensional code arranged as a pattern on a two-dimensional matrix. Two-dimensional image detecting means for detecting, a plurality of image storing means for storing a two-dimensional image detected by the two-dimensional image detecting means for each frame, and one image storing means from among the plurality of image storing means Sequentially, and in the selected image storage means, an image storage control means for storing a two-dimensional image repeatedly detected from the two-dimensional image detection means, and in the order stored,
Decoding means for reading two-dimensional image data from the plurality of image storage means and decoding a code represented by the two-dimensional image data.

【0012】前記2次元画像検出手段は、繰り返し2次
元画像を検出するとともに、画像記憶制御手段は、繰り
返し得られる2次元画像を複数の画像記憶手段に記憶し
ている。この記憶に際しては、複数の画像記憶手段の内
から1つの画像記憶手段を順次選択して、その選択され
た画像記憶手段に2次元画像を記憶している。すなわ
ち、連続するフレームを同一の前記画像記憶手段に記憶
しないようにしている。
The two-dimensional image detection means repeatedly detects a two-dimensional image, and the image storage control means stores the repeatedly obtained two-dimensional image in a plurality of image storage means. At the time of this storage, one image storage means is sequentially selected from a plurality of image storage means, and a two-dimensional image is stored in the selected image storage means. That is, consecutive frames are not stored in the same image storage unit.

【0013】このことにより、2次元画像検出手段が繰
り返し画像を検出しても、画像記憶制御手段が他の画像
記憶手段に記憶させている間に、解読手段は、既に2次
元画像データが記憶されている画像記憶手段について、
解読処理を行うことができる。
Thus, even if the two-dimensional image detection means repeatedly detects an image, the decoding means can store the two-dimensional image data while the image storage control means stores the image in another image storage means. Image storage means
Decryption processing can be performed.

【0014】したがって、2次元画像検出手段は、解読
手段の解読を待つことなく、次の2次元画像を検出し
て、その時に解読の対象となっていない画像記憶手段に
記憶することができる。このため、何等かの原因、例え
ば、外乱光やノイズ等により2次元コードの読み取りに
失敗しても、失敗したことが解読手段の解読により判明
するまで待つことなく、次の2次元画像データは他の画
像記憶手段に記憶されるので、解読手段は、大きなロス
時間を間に置くことなく、迅速に次のフレームの2次元
画像の解読処理に移ることができる。
Therefore, the two-dimensional image detecting means can detect the next two-dimensional image without waiting for decoding by the decoding means, and can store the next two-dimensional image in the image storage means which is not targeted for decoding at that time. For this reason, even if the reading of the two-dimensional code fails due to some cause, for example, disturbance light or noise, the next two-dimensional image data can be read without waiting until the failure is determined by the decoding means. Since it is stored in another image storage means, the decoding means can quickly proceed to the decoding processing of the two-dimensional image of the next frame without a large loss time.

【0015】このため、2次元コードが付着された荷物
が高速に移動している場合でも、繰り返し取得した画像
に基づいて高速に読み取り処理を繰り返すことができ、
解読の失敗による2次元画像データ読み取りのやり直し
が発生した時にも、発生する時間のロスを最小限に抑え
ることができ、2次元コードの高速な読み取りが可能と
なる。
Therefore, even when the package to which the two-dimensional code is attached is moving at a high speed, the reading process can be repeated at a high speed based on the repeatedly obtained image.
Even when re-reading of two-dimensional image data due to decoding failure occurs, the loss of time that occurs can be minimized, and high-speed reading of two-dimensional codes becomes possible.

【0016】この結果、荷物の搬送速度を高速にするこ
とが可能となる。更に、前記2次元画像検出手段にて検
出された2次元画像から所定の位置決めシンボルのパタ
ーンの存在を検出する位置決めシンボルパターン検出手
段と、前記シンボルパターン検出手段にて検出された位
置決めシンボルのパターンの位置をフレーム毎に記憶す
る複数のシンボルパターン記憶手段と、を備えるととも
に、前記解読手段は、前記シンボルパターン記憶手段に
記憶されている位置決めシンボルのパターンの位置に基
づいて、記憶された順番に、前記複数の画像記憶手段か
ら2次元画像データを読み出して該2次元画像データが
表しているコードを解読する構成とすることが、解読自
体の高速な処理上好ましい。
As a result, it is possible to increase the transport speed of the load. Further, a positioning symbol pattern detecting means for detecting the presence of a predetermined positioning symbol pattern from the two-dimensional image detected by the two-dimensional image detecting means, and a positioning symbol pattern detected by the symbol pattern detecting means. A plurality of symbol pattern storage means for storing the position for each frame, and the decoding means, based on the position of the pattern of the positioning symbol stored in the symbol pattern storage means, in the order of storage, It is preferable in terms of high-speed processing of the decoding itself that the two-dimensional image data is read from the plurality of image storage units and the code represented by the two-dimensional image data is decoded.

【0017】なお、前記画像記憶制御手段としては、前
記2次元画像検出手段から繰り返し検出される2次元画
像を、閾値を用いて2値化する2値化処理手段と、前記
複数の画像記憶手段の内から1つの画像記憶手段を順次
選択して、該選択された画像記憶手段に、前記2値化処
理手段にて2値化された2次元画像を記憶する記憶処理
手段とを備えた構成とすることができる。
The image storage control means includes a binarization processing means for binarizing a two-dimensional image repeatedly detected by the two-dimensional image detection means using a threshold value, and the plurality of image storage means. And a storage processing means for sequentially selecting one image storage means from among the storage means and storing the two-dimensional image binarized by the binarization processing means in the selected image storage means. It can be.

【0018】そして、この2値化処理手段としては、2
次元画像検出手段から繰り返し検出される2次元画像
を、1フレーム毎に変化する閾値を用いて2値化するよ
うに構成することができる。このように構成することに
より、例えば、2次元コードへの照明光が変化して、2
次元画像を2値化するための閾値が不適切となることに
よる読み取りの失敗が生じたとしても、繰り返し検出さ
れる2次元画像を閾値を変化させつつ、2値化している
ため、いずれかの閾値にて2値化が適切に行われる。し
かも、上述のごとくの作用により、発生する時間のロス
を最小限に抑えることができるので、その結果、2次元
コードの高速な読み取りが可能となる。
As the binarization processing means, 2
The two-dimensional image repeatedly detected by the two-dimensional image detecting means may be configured to be binarized using a threshold value that changes every frame. With this configuration, for example, the illumination light to the two-dimensional code changes,
Even if reading failure due to an inappropriate threshold for binarizing a two-dimensional image occurs, the two-dimensional image that is repeatedly detected is binarized while changing the threshold. Binarization is appropriately performed with a threshold value. In addition, the above-described operation can minimize the time loss that occurs, thereby enabling high-speed reading of the two-dimensional code.

【0019】なお、前記2値化処理手段は、2次元画像
検出手段から繰り返し検出される2次元画像を、記憶さ
れる前記画像記憶手段に応じて設定された異なる閾値を
用いて2値化するように構成しても良い。前述した1フ
レーム毎に変化する閾値を用いて2値化する場合と同様
な効果を生じる。
The binarization processing means binarizes the two-dimensional image repeatedly detected by the two-dimensional image detection means using different thresholds set according to the stored image storage means. It may be configured as follows. The same effect as in the case of binarization using the threshold value that changes for each frame described above is obtained.

【0020】また、前記2値化処理手段は、固定した閾
値を用いる以外に、例えば、2次元画像検出手段から繰
り返し検出される2次元画像を、該2次元画像の信号を
なまし処理することにより得た閾値を用いて2値化する
こととしても良い。この場合、なまし処理による2次元
画像の信号に対する追従の速さを、1フレーム毎に変化
させても良い。このように閾値の追従性の速さを変更し
ても、前述したごとく、2次元コードへの照明光が変化
した場合の効果として、類似の効果が得られる。
Further, the binarization processing means may use, for example, a smoothing process on a two-dimensional image repeatedly detected by the two-dimensional image detection means, by using a signal of the two-dimensional image, in addition to using a fixed threshold value. The binarization may be performed using the threshold value obtained by the above. In this case, the speed of following the two-dimensional image signal by the smoothing process may be changed for each frame. As described above, even when the speed of the following of the threshold value is changed, a similar effect can be obtained as an effect when the illumination light to the two-dimensional code changes.

【0021】また、なまし処理による2次元画像の信号
に対する追従の速さを、記憶される画像記憶手段に応じ
て変化させる構成としても、同様である。また、2次元
コード読取装置は、2次元画像を検出する2次元画像検
出手段と、前記2次元画像検出手段にて検出された2次
元画像をフレーム毎に記憶する複数の画像記憶手段と、
前記2次元画像検出手段から繰り返し検出される2次元
画像の同一フレームを、前記画像記憶手段の数の種類の
閾値を用いてそれぞれ2値化して、複数の2次元画像デ
ータを得る2値化処理手段と、前記2値化手段にて2値
化して得られた複数の2次元画像データを前記複数の画
像記憶手段にそれぞれ記憶する記憶処理手段と、前記複
数の画像記憶手段から順番に2次元画像データを読み出
して該2次元画像データが表しているコードを解読する
解読手段と、前記解読手段による全ての画像記憶手段に
記憶されている2次元画像データの解読が終了した場合
に、前記2次元画像検出手段に次の画像を検出させる画
像検出制御手段と、を備えたものとして構成しても良
い。
The same applies to a configuration in which the speed of following the two-dimensional image signal by the smoothing process is changed in accordance with the stored image storage means. Further, the two-dimensional code reading device includes a two-dimensional image detection unit that detects a two-dimensional image, a plurality of image storage units that store the two-dimensional image detected by the two-dimensional image detection unit for each frame,
Binarization processing for obtaining a plurality of two-dimensional image data by binarizing the same frame of the two-dimensional image repeatedly detected by the two-dimensional image detection unit using each of a plurality of threshold values of the image storage unit Means, storage processing means for storing a plurality of two-dimensional image data obtained by binarization by the binarization means in the plurality of image storage means, respectively, and two-dimensional image data sequentially from the plurality of image storage means. Decoding means for reading out the image data and decoding the code represented by the two-dimensional image data; and when the decoding means has finished decoding the two-dimensional image data stored in all the image storage means, An image detection control unit for causing the two-dimensional image detection unit to detect the next image may be provided.

【0022】すなわち、この2次元コード読取装置で
は、一つの2次元画像データを複数の画像記憶手段に、
異なる閾値にて2値化して格納している。したがって、
解読手段は、複数の画像記憶手段に一度に2次元画像デ
ータが記憶されるので、これらの2次元画像データを連
続的に処理することが可能となる。しかも、それぞれ2
値化の閾値が異なるため、一つの閾値により2値化され
た2次元画像データの読み取りに失敗しても、他の閾値
による解読が成功する確率が非常に高い。このため、2
次元コードの読み取りを高速に行うことが可能となる。
That is, in this two-dimensional code reader, one two-dimensional image data is stored in a plurality of image storage means.
It is binarized at different thresholds and stored. Therefore,
Since the decoding means stores the two-dimensional image data at once in a plurality of image storage means, it becomes possible to continuously process the two-dimensional image data. And 2 each
Since the thresholds for the binarization are different, even if the reading of the two-dimensional image data binarized by one threshold has failed, the probability of succeeding the decryption by another threshold is very high. Therefore, 2
Reading of the dimensional code can be performed at high speed.

【0023】この場合も、前述した位置決めシンボルパ
ターン検出手段および複数のシンボルパターン記憶手段
を備えて、解読手段に位置決めシンボルのパターンの位
置に基づいて2次元画像データが表しているコードを解
読させる構成としても良く、同様な効果が得られる。
Also in this case, a configuration is provided in which the above-mentioned positioning symbol pattern detection means and a plurality of symbol pattern storage means are provided, and the decoding means decodes the code represented by the two-dimensional image data based on the position of the pattern of the positioning symbol. The same effect can be obtained.

【0024】前記2値化処理手段としては、2次元画像
の信号に対する追従の速さを、記憶される画像記憶手段
に応じて変化させたなまし処理を、2次元画像の信号に
実施することにより得た閾値を用いて、2次元画像検出
手段から繰り返し検出される2次元画像の同一フレーム
を、それぞれ2値化して、複数の2次元画像データを得
るものとしても良く、前述したごとく、2次元コードへ
の照明光が変化した場合の効果として、類似の効果が得
られる。
[0024] As the binarization processing means, the smoothing processing in which the speed of following the signal of the two-dimensional image is changed according to the stored image storage means is performed on the signal of the two-dimensional image. The same frame of the two-dimensional image repeatedly detected by the two-dimensional image detecting means may be binarized using the threshold value obtained by the above to obtain a plurality of two-dimensional image data. A similar effect is obtained as an effect when the illumination light to the dimensional code changes.

【0025】なお、解読手段は、一つの画像記憶手段に
記憶されている2次元画像データの解読が終了した場合
に、次の2次元画像を前記2次元画像検出手段が検出し
ていない場合には、その検出を待つように構成しても良
い。また、解読手段による全ての画像記憶手段に記憶さ
れている2次元画像データの解読が終了した場合に、前
記2次元画像検出手段に次の画像を検出させるように指
示する画像検出制御手段を設けても良い。
When the decoding of the two-dimensional image data stored in one of the image storage means is completed, the decoding means determines that the next two-dimensional image has not been detected by the two-dimensional image detection means. May be configured to wait for the detection. Further, an image detection control means for instructing the two-dimensional image detection means to detect the next image when the decoding of the two-dimensional image data stored in all the image storage means is completed is provided. May be.

【0026】この場合も、前述した位置決めシンボルパ
ターン検出手段および複数のシンボルパターン記憶手段
を備えて、解読手段に位置決めシンボルのパターンの位
置に基づいて2次元画像データが表しているコードを解
読させる構成としても良く、同様な効果が得られる。
Also in this case, a configuration is provided in which the above-mentioned positioning symbol pattern detection means and a plurality of symbol pattern storage means are provided, and the decoding means decodes the code represented by the two-dimensional image data based on the position of the pattern of the positioning symbol. The same effect can be obtained.

【0027】なお、解読手段は、解読が成功した場合に
は、解読が成功したときと同じ閾値または解読が成功し
たときと同じなまし処理の追従の速さを用いて得られた
2次元画像を、次回の複数の2次元画像の解読において
最初に処理する対象とするように学習制御しても良く、
このような学習制御を行うことにより、読み取りがより
迅速にできるようになる。
The decoding means, if the decoding is successful, the two-dimensional image obtained using the same threshold value as when the decoding was successful or the same speed of the smoothing process as when the decoding was successful. May be subjected to learning control so as to be processed first in the decoding of the next plurality of two-dimensional images,
By performing such learning control, reading can be performed more quickly.

【0028】なお、このような2次元コード読取装置の
各手段をコンピュータシステムにて実現するを実行する
機能は、例えば、コンピュータシステム側で起動するプ
ログラムとして備えられる。このようなプログラムの場
合、例えば、フロッピーディスク、光磁気ディスク、C
D−ROM等の記憶媒体に記憶し、必要に応じてコンピ
ュータシステムにロードして起動することにより用いる
ことができる。この他、ROMやバックアップRAM
(不揮発性RAMも含む)を記憶媒体として前記プログ
ラムを記憶しておき、このROMあるいはバックアップ
RAMをコンピュータシステムに組み込んで用いても良
い。
The function of executing each unit of the two-dimensional code reader in a computer system is provided, for example, as a program activated on the computer system side. In the case of such a program, for example, a floppy disk, a magneto-optical disk,
It can be used by storing it in a storage medium such as a D-ROM, loading it into a computer system as needed, and starting up. In addition, ROM and backup RAM
The above program may be stored as a storage medium (including a nonvolatile RAM), and the ROM or the backup RAM may be incorporated in a computer system and used.

【0029】[0029]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

[実施の形態1]図1のブロック図に、上述した発明の
いくつかが適用された2次元コード読取装置2の概略構
成を示す。
[Embodiment 1] FIG. 1 is a block diagram showing a schematic configuration of a two-dimensional code reader 2 to which some of the above-mentioned inventions are applied.

【0030】2次元コード読取装置2は、CCD4、2
値化回路6、画像メモリ8,10,12、クロック信号
出力回路14、アドレス発生回路16、変化点検出回路
18、比検出回路20、アドレス記憶メモリ22,2
4,26および制御回路28から構成されている。
The two-dimensional code reader 2 includes CCDs 4, 2
Value conversion circuit 6, image memories 8, 10, 12, clock signal output circuit 14, address generation circuit 16, change point detection circuit 18, ratio detection circuit 20, address storage memories 22, 2.
4 and 26 and a control circuit 28.

【0031】制御回路28は、CPU、ROM、RA
M、I/O等を備えたコンピュータシステムとして構成
され、ROMに記憶されているプログラムに従って、2
次元コード読取装置2の各構成を制御している。なお、
ROMの代りに不揮発性RAMにプログラムを記憶して
おいても良い。
The control circuit 28 includes a CPU, ROM, RA
It is configured as a computer system having M, I / O, and the like.
Each component of the dimensional code reader 2 is controlled. In addition,
The program may be stored in a nonvolatile RAM instead of the ROM.

【0032】ここで、2次元コード読取装置2にて検出
される2次元コードの一例を図2に示す。この2次元コ
ード52は、白色の台紙53の上に印刷されており、3
個の位置決め用シンボル54、データ領域56、原点セ
ルCstから構成されている。これら全体はセル数が縦横
同数(21セル×21セル)の正方形状に配置されてい
る。各セルは、光学的に異なった2種類のセルから選ば
れており、図および説明上では白(明)・黒(暗)で区
別して表す。なお、図2では便宜上、データ領域56の
データセルのパターンは省略している。
Here, an example of a two-dimensional code detected by the two-dimensional code reader 2 is shown in FIG. The two-dimensional code 52 is printed on a white mount 53,
It comprises a plurality of positioning symbols 54, a data area 56, and an origin cell Cst. All of them are arranged in a square shape having the same number of cells vertically and horizontally (21 cells × 21 cells). Each cell is selected from two types of cells that are optically different from each other, and is distinguished between white (bright) and black (dark) in the drawings and description. In FIG. 2, the pattern of the data cell in the data area 56 is omitted for convenience.

【0033】位置決め用シンボル54は、2次元コード
52の4つの頂点の内、3つに配置されている。そのセ
ルの明暗配置は、黒部からなる枠状正方形54a内の中
心に白部からなる縮小した枠状正方形54bが形成さ
れ、その内の中心に黒部からなる更に縮小した正方形5
4cが形成されているパターンである。
The positioning symbols 54 are arranged at three of the four vertices of the two-dimensional code 52. The light / dark arrangement of the cells is such that a reduced frame-shaped square 54b composed of a white portion is formed at the center of a frame-shaped square 54a composed of a black portion, and a further reduced square 5 composed of a black portion is formed at the center thereof.
4c is a pattern formed.

【0034】制御回路28は、以下に述べるごとくの読
み取り制御を行う。まず制御回路28からの指示によ
り、CCD4が2次元コード52が通過する位置の2次
元画像を検出する。CCD4は、2次元画像を検出する
と、図4(a)に示すごとくの多段階のレベルからなる
信号にて2次元画像データを出力する。この2次元画像
データを、2値化回路6が制御回路28から指示された
閾値にて2値化して、図4(b)に示すごとくの1(ハ
イ)/0(ロー)の2つのレベルからなる信号に変換す
る。
The control circuit 28 performs reading control as described below. First, according to an instruction from the control circuit 28, the CCD 4 detects a two-dimensional image of a position where the two-dimensional code 52 passes. When detecting the two-dimensional image, the CCD 4 outputs two-dimensional image data by a signal having multiple levels as shown in FIG. The two-dimensional image data is binarized by the binarization circuit 6 using a threshold value specified by the control circuit 28, and has two levels of 1 (high) / 0 (low) as shown in FIG. Into a signal consisting of

【0035】一方、CCD4から出力される同期パルス
に応じて、クロック信号出力回路14がCCD4が出力
する2次元画像データの画素より細かいクロックパルス
を出力する。アドレス発生回路16はこのクロックパル
スをカウントして、画像メモリ8,10,12に対する
アドレスを発生させる。2値化回路6からの2値化され
た2次元画像データは、制御回路28がアドレスのオフ
セット値をアドレス発生回路16に与えることにより、
画像メモリ8,10,12の内の1番目の画像メモリ8
のアドレスをアドレス発生回路16に発生させることに
より、2次元画像データを8ビット単位で1番目の画像
メモリ8に書き込ませる。
On the other hand, in response to the synchronization pulse output from the CCD 4, the clock signal output circuit 14 outputs a clock pulse finer than the pixels of the two-dimensional image data output from the CCD 4. The address generation circuit 16 counts this clock pulse and generates an address for the image memories 8, 10, and 12. The two-dimensional image data binarized from the binarization circuit 6 is supplied from the control circuit 28 with an address offset value to the address generation circuit 16.
First image memory 8 of image memories 8, 10, and 12
Is generated by the address generation circuit 16 so that the two-dimensional image data is written into the first image memory 8 in 8-bit units.

【0036】一方、2値化回路6からの信号の「1」か
ら「0」への変化あるいは「0」から「1」への変化時
に、変化点検出回路18は、比検出回路20にパルス信
号を出力する。比検出回路20は、変化点検出回路18
からのパルス信号入力から次のパルス信号入力までに、
クロック信号出力回路14から出力されたクロックパル
スをカウントすることにより、2次元画像の中の明
(1)の連続する長さおよび暗(0)の連続する長さを
求める。この長さの比から、2次元コード52の位置決
め用シンボル54に該当するパターンを検出する。
On the other hand, when the signal from the binarization circuit 6 changes from "1" to "0" or from "0" to "1", the change point detection circuit 18 outputs a pulse to the ratio detection circuit 20. Output a signal. The ratio detection circuit 20 includes a change point detection circuit 18.
Between the pulse signal input from
By counting the clock pulses output from the clock signal output circuit 14, the continuous length of light (1) and the continuous length of dark (0) in the two-dimensional image are obtained. From this length ratio, a pattern corresponding to the positioning symbol 54 of the two-dimensional code 52 is detected.

【0037】図3(A)に示すように、位置決め用シン
ボル54のほぼ中心を代表的な角度で横切るCCD4の
走査線(a),(b),(c)での明暗パターンは、図
3(B)に示すごとく、すべて同じ明暗成分比を持つ構
造になっている。すなわち、位置決め用シンボル54の
中心を横切るそれぞれの走査線(a),(b),(c)
の明暗成分比は暗:明:暗:明:暗=1:1:3:1:
1となっている。勿論、走査線(a),(b),(c)
の中間の角度の走査線においても比率は1:1:3:
1:1である。また、図3(A)の図形が、CCD4側
から斜めの面に配置されていたとしても、前記走査線
(a),(b),(c)の明暗成分比は暗:明:暗:
明:暗=1:1:3:1:1となる。なお、図3(B)
は、2値化回路6からの2値化された信号に該当する。
As shown in FIG. 3A, the light and dark patterns of the scanning lines (a), (b) and (c) of the CCD 4 which cross the substantially center of the positioning symbol 54 at a representative angle are shown in FIG. As shown in (B), all have a structure having the same light-dark component ratio. That is, each scanning line (a), (b), (c) crossing the center of the positioning symbol 54
Is a dark: bright: dark: bright: dark = 1: 1: 3: 1:
It is 1. Of course, the scanning lines (a), (b), (c)
The ratio is also 1: 1: 3:
1: 1. Further, even if the figure of FIG. 3A is arranged on a plane oblique from the CCD 4 side, the light-dark component ratio of the scanning lines (a), (b) and (c) is dark: light: dark:
Light: dark = 1: 1: 3: 1: 1. FIG. 3B
Corresponds to the binarized signal from the binarization circuit 6.

【0038】したがって、比検出回路20は、この
「1:1:3:1:1」なる明暗成分比を検出し、検出
した場合は、そのタイミングにアドレス発生回路16に
て指示されている1番目の画像メモリ8のアドレスを1
番目のアドレス記憶メモリ22に記憶する。
Therefore, the ratio detection circuit 20 detects the light-dark component ratio of "1: 1: 3: 1: 1", and when the ratio is detected, the ratio indicated by the address generation circuit 16 at that timing. The address of the second image memory 8 is 1
The address is stored in the second address storage memory 22.

【0039】したがって、CCD4が1フレーム分の2
次元画像データを検出すると、1番目の画像メモリ8に
2値化された2次元画像データが記憶され、1番目のア
ドレス記憶メモリ22には、位置決め用シンボル54が
検出されれば、その時にアドレス発生回路16が出力し
ている1番目の画像メモリ8のアドレスが記憶されてい
る。
Therefore, the CCD 4 has two frames for one frame.
When detecting the two-dimensional image data, the first image memory 8 stores the binarized two-dimensional image data. The first address storage memory 22 stores the address when the positioning symbol 54 is detected. The address of the first image memory 8 output from the generation circuit 16 is stored.

【0040】なお、最初の2次元画像の1フレーム分が
CCD4により検出されて2値化回路6へ出力されたこ
とが、CCD4からの信号により制御回路28が判断す
ると、制御回路28は、続けて、CCD4に次の1フレ
ームの2次元画像の検出を指示する。したがって、CC
D4からは、繰り返して2次元画像が2値化回路6に出
力され、上述したごとくの記憶処理が行われる。
When the control circuit 28 determines from the signal from the CCD 4 that the one frame of the first two-dimensional image has been detected by the CCD 4 and output to the binarization circuit 6, the control circuit 28 continues. Then, it instructs the CCD 4 to detect the next one-frame two-dimensional image. Therefore, CC
From D4, the two-dimensional image is repeatedly output to the binarization circuit 6, and the storage processing is performed as described above.

【0041】ただし、制御回路28は、CCD4に2次
元画像の検出を指示する毎に、アドレス発生回路16へ
のオフセット値を切り替えて、1フレーム毎に順次、1
番目の画像メモリ8、2番目の画像メモリ10、3番目
の画像メモリ12へと、2次元画像を記憶する画像メモ
リを切り替える。3番目の画像メモリ12への2次元画
像の記憶が終了すれば、1番目の画像メモリ8に戻り、
この順序で切り替えを繰り返す。同様にして、アドレス
記憶メモリ22〜26についても切り替える。なお、制
御回路28は、アドレス発生回路16へのオフセット値
を切り替える毎に、2値化回路6に対しても、2値化に
使用される閾値を切り替えている。すなわち、異なる値
の3つの閾値を準備して、記憶対象となる画像メモリ8
〜12に応じて3つの閾値から選択して切り替えてい
る。このことにより、画像メモリ8〜12毎に異なる2
値化レベルで2値化された2次元画像データが記憶され
る。
However, every time the control circuit 28 instructs the CCD 4 to detect a two-dimensional image, the control circuit 28 switches the offset value to the address generation circuit 16 and sequentially shifts one by one for each frame.
The image memory for storing the two-dimensional image is switched to the second image memory 8, the second image memory 10, and the third image memory 12. When the storage of the two-dimensional image in the third image memory 12 is completed, the process returns to the first image memory 8, and
Switching is repeated in this order. Similarly, the address storage memories 22 to 26 are switched. Each time the control circuit 28 switches the offset value to the address generation circuit 16, the control circuit 28 also switches the threshold value used for the binarization for the binarization circuit 6. That is, three thresholds having different values are prepared, and the image memory 8 to be stored is prepared.
In this case, three thresholds are selected and switched according to the values of .about.12. As a result, different 2 for each of the image memories 8 to 12
Two-dimensional image data binarized at the binarization level is stored.

【0042】制御回路28は、最初に、1番目の画像メ
モリ8に2次元画像データが記憶され、1番目のアドレ
ス記憶メモリ22に位置決め用シンボル54のアドレス
が記憶された後、CCD4に対して次の2次元画像の検
出を指示し、続いて1番目の画像メモリ8および1番目
のアドレス記憶メモリ22に対する判定・解読処理を開
始する。
The control circuit 28 first stores two-dimensional image data in the first image memory 8 and stores the address of the positioning symbol 54 in the first address storage memory 22. The detection of the next two-dimensional image is instructed, and then the determination / decoding process for the first image memory 8 and the first address storage memory 22 is started.

【0043】すなわち、図5(a)のタイミングチャー
トに示すごとく、ハード的に行われる1番目の画像メモ
リ8および1番目のアドレス記憶メモリ22への記憶処
理M1が終了すると、制御回路28の指示により直ちに
2番目の画像メモリ10および2番目のアドレス記憶メ
モリ24への記憶処理M2が開始されるが、この記憶処
理M2と並行して、制御回路28は、1番目の画像メモ
リ8および1番目のアドレス記憶メモリ22に対してア
クセスし、その記憶内容から位置決め用シンボル54が
適切な位置に、3つ存在しているか否かの判定処理S1
を行う。
That is, as shown in the timing chart of FIG. 5A, when the storage processing M1 in the first image memory 8 and the first address storage memory 22, which is performed in hardware, is completed, the instruction of the control circuit 28 is issued. Immediately starts the storage processing M2 in the second image memory 10 and the second address storage memory 24. In parallel with the storage processing M2, the control circuit 28 controls the first image memory 8 and the first To determine whether or not three positioning symbols 54 are present at appropriate positions based on the stored contents.
I do.

【0044】2次元画像データ内に、適切に3つの位置
決め用シンボル54が存在していれば、引き続いて、制
御回路28は、位置決め用シンボル54の位置に基づい
て、1番目の画像メモリ8の2次元画像データ内の各セ
ル位置を決定し、その位置から1/0を判断し、2次元
コード52が表しているコード内容を読み取る解読処理
D1を行う。
If three positioning symbols 54 are properly present in the two-dimensional image data, the control circuit 28 subsequently proceeds to the first image memory 8 based on the position of the positioning symbols 54. The position of each cell in the two-dimensional image data is determined, 1/0 is determined from the position, and a decoding process D1 for reading the code content represented by the two-dimensional code 52 is performed.

【0045】この解読処理D1の間に、次の2番目の画
像メモリ10および2番目のアドレス記憶メモリ24へ
の記憶処理M2が終了しているが、この2番目の画像メ
モリ10および2番目のアドレス記憶メモリ24に対す
る判定処理S2は、図示するごとく解読処理D1の終了
後に行われる。また、3番目の画像メモリ12および3
番目のアドレス記憶メモリ26への記憶処理M3のため
の、CCD4への指示は、解読処理D1の間に、割り込
み処理にて行われるが、指示処理は短い処理であり、解
読処理D1の処理速度にほとんど影響しない。
During the decryption processing D1, the storage processing M2 to the next second image memory 10 and the second address storage memory 24 has been completed, but the second image memory 10 and the second The determination process S2 for the address storage memory 24 is performed after the completion of the decryption process D1 as shown. Further, the third image memories 12 and 3
The instruction to the CCD 4 for the storage process M3 in the second address storage memory 26 is performed by an interrupt process during the decryption process D1, but the instruction process is a short process and the processing speed of the decryption process D1 Has little effect on

【0046】図5(a)にて示す例は、最初の解読処理
D1にて読み取りに成功した例を示しており、記憶処理
M2,M3,M11にて記憶された2次元画像データに
対しては、判定処理S2,S3,S11のみで終了す
る。この判定処理S2,S3,S11を実行するのは、
荷物に付着されてCCD4の前を通過してゆく2次元コ
ード52の2次元画像は、1フレームで終わるのではな
く、複数フレーム分が連続して、CCD4にて検出され
るためである。
The example shown in FIG. 5A shows an example in which reading has been successfully performed in the first decryption processing D1, and the two-dimensional image data stored in the storage processing M2, M3, and M11 is stored. Ends only in the determination processes S2, S3, and S11. The execution of the determination processing S2, S3, S11
This is because the two-dimensional image of the two-dimensional code 52 attached to the package and passing in front of the CCD 4 does not end in one frame, but is detected by the CCD 4 for a plurality of frames continuously.

【0047】すなわち、解読処理D1の成功の後、判定
処理S2,S3,S11にて連続して位置決め用シンボ
ル54が検出されていることで、同一の2次元コード5
2を捉え続けていることが判断できるので、判定処理S
2,S3,S11のみ行い、解読処理D2,D3,D1
1は行わないのである。
That is, since the positioning symbols 54 are continuously detected in the determination processes S2, S3, and S11 after the success of the decryption process D1, the same two-dimensional code 5 is obtained.
2 can be determined to continue to be captured.
2, S3 and S11 are performed, and decryption processing D2, D3 and D1 is performed.
1 is not performed.

【0048】この後に、記憶処理にて得られた2次元画
像データに基づいて、解読処理まで行われるのは、判定
処理にて、ある数のフレーム分、しばらく、位置決め用
シンボル54が検出されなかった後である。しばらく、
位置決め用シンボル54が検出されないと、2次元コー
ド52が付着された荷物がCCD4の前を通過して検出
されなくなったことが判り、その後、位置決め用シンボ
ル54が検出され始めると、別の荷物がCCD4の前に
来て、その2次元コード52がCCD4にて検出されて
いると判断できるからである。
After that, based on the two-dimensional image data obtained by the storage processing, the decoding processing is performed until the positioning symbol 54 is detected for a certain number of frames for a while in the determination processing. After. for a while,
If the positioning symbol 54 is not detected, it can be seen that the baggage to which the two-dimensional code 52 has been attached has passed the CCD 4 and is no longer detected. This is because it can be determined that the two-dimensional code 52 comes before the CCD 4 and is detected by the CCD 4.

【0049】なお、破線は記憶処理の流れ、一点鎖線は
制御回路28による判定・解読処理の流れを示してい
る。図5(b)は、判定処理S1,S2にては、適切な
3つの位置決め用シンボル54の検出ができず、3番目
の画像メモリ12と3番目のアドレス記憶メモリ26と
に対して行われる3番目の判定処理S3にて、適切な3
つの位置決め用シンボル54が検出され、解読処理D3
にて解読に成功した例を示している。従来技術として示
した図10(b)も同じく3番目の解読処理D3にて解
読に成功した例であるが、従来例に比較して図5(b)
の場合は、判定処理S1,S2分の処理時間が短くなっ
ていることが判る。
The broken line indicates the flow of the storage process, and the dashed line indicates the flow of the determination / decoding process by the control circuit 28. In FIG. 5B, in the determination processes S1 and S2, three suitable positioning symbols 54 cannot be detected, and the determination is performed on the third image memory 12 and the third address storage memory 26. In the third determination processing S3, an appropriate 3
The three positioning symbols 54 are detected, and the decoding process D3 is performed.
Shows an example of successful decoding. FIG. 10B, which is shown as a conventional technique, is also an example in which decoding was successfully performed in the third decoding process D3, but FIG.
In the case of, it can be seen that the processing time for the determination processes S1 and S2 is shorter.

【0050】図5(c)は、2次元コード52を付着し
た荷物がCCD4の前を通過せず、連続して適切な3つ
の位置決め用シンボル54の検出ができない例を示して
いる。本実施の形態1は、このように、CCD4は制御
回路28の指示により、繰り返し2次元画像を検出する
とともに、順次、サイクリックに、画像メモリ8〜12
およびアドレス記憶メモリ22〜26が選択されて、そ
の選択された画像メモリ8〜12に2次元画像を記憶
し、アドレス記憶メモリ22〜26に位置決めシンボル
のアドレスを記憶している。すなわち、繰り返し取得さ
れるフレームを同一の画像メモリ8〜12およびアドレ
ス記憶メモリ22〜26に記憶しないようしている。
FIG. 5 (c) shows an example in which the bag to which the two-dimensional code 52 is attached does not pass in front of the CCD 4 and three suitable positioning symbols 54 cannot be detected in succession. In the first embodiment, as described above, the CCD 4 repeatedly detects the two-dimensional image according to the instruction of the control circuit 28 and sequentially and cyclically detects the image memories 8 to 12.
Then, the address storage memories 22 to 26 are selected, the two-dimensional image is stored in the selected image memories 8 to 12, and the addresses of the positioning symbols are stored in the address storage memories 22 to 26. That is, frames that are repeatedly acquired are not stored in the same image memories 8 to 12 and the address storage memories 22 to 26.

【0051】このことにより、CCD4が繰り返し画像
を検出しても、アドレス発生回路16により、他の画像
メモリ8〜12およびアドレス記憶メモリ22〜26に
記憶させている間に、制御回路28は、既に2次元画像
データが記憶されている画像メモリ8〜12およびアド
レス記憶メモリ22〜26について、判定・解読処理を
行うことができる。
Thus, even when the CCD 4 repeatedly detects an image, the control circuit 28 operates while the other image memories 8 to 12 and the address storage memories 22 to 26 store the image in the address generation circuit 16. The determination / decoding process can be performed on the image memories 8 to 12 and the address storage memories 22 to 26 in which the two-dimensional image data is already stored.

【0052】したがって、CCD4は、制御回路28に
よる判定・解読を待つことなく、次の2次元画像を検出
して、その時に解読の対象となっていない画像メモリ8
〜12およびアドレス記憶メモリ22〜26に記憶する
ことができる。このため、何等かの原因、例えば、外乱
光やノイズ等により2次元コード52の読み取りに失敗
しても、失敗したことが制御回路28の判定・解読処理
により判明するまで待つことなく、次の2次元画像デー
タは他の画像メモリ8〜12およびアドレス記憶メモリ
22〜26に取り込まれるので、制御回路28は、大き
なロス時間を間に置くことなく、迅速に次のフレームの
2次元画像の判定・解読処理に移ることができる。
Therefore, the CCD 4 detects the next two-dimensional image without waiting for the judgment and decoding by the control circuit 28, and detects the next two-dimensional image.
To 12 and the address storage memories 22 to 26. Therefore, even if the reading of the two-dimensional code 52 fails due to some cause, for example, disturbance light, noise, or the like, the control circuit 28 does not wait until the failure is found by the determination / decoding process without the next time. Since the two-dimensional image data is taken into the other image memories 8 to 12 and the address storage memories 22 to 26, the control circuit 28 can quickly determine the two-dimensional image of the next frame without a large loss time.・ We can move on to the decryption process.

【0053】このため、2次元コード52が付着された
荷物が高速に移動している場合でも、繰り返し取得した
画像に基づいて、制御回路28は高速に判定・解読処理
を繰り返すことができ、読み取りの失敗による2次元画
像データ検出のやり直しが発生した時にも、発生する時
間のロスを最小限に抑えることができ、2次元コード5
2の高速な読み取りが可能となる。この結果、荷物の搬
送速度を高速にすることが可能となる。
Therefore, even when the baggage to which the two-dimensional code 52 is attached is moving at high speed, the control circuit 28 can repeat the judgment / decoding processing at high speed based on the repeatedly acquired images, When the re-detection of the two-dimensional image data due to the failure of the two-dimensional image data occurs, the time loss that occurs can be minimized, and the two-dimensional code 5
2 can be read at high speed. As a result, it is possible to increase the transport speed of the load.

【0054】また、本実施の形態1の2次元コード読取
装置2は、CCD4から繰り返し検出される2次元画像
を、画像メモリ8〜12に応じて、異なる閾値を用いて
2値化するように2値化回路6に指示している。このよ
うに構成することにより、例えば、2次元コード52へ
の照明光が変化して、2次元画像を2値化するための閾
値が不適切となることによる解読の失敗が生じたとして
も、繰り返し検出される2次元画像を閾値を変化させつ
つ、2値化しているため、いずれかの閾値にて2値化が
適切に行われる。しかも、このように解読処理を繰り返
しても、上述のごとく、記憶処理している際に判定・解
読処理を行うことができるので、発生する時間のロスを
最小限に抑えることができる。
The two-dimensional code reader 2 according to the first embodiment binarizes a two-dimensional image repeatedly detected from the CCD 4 using different thresholds according to the image memories 8 to 12. It instructs the binarization circuit 6. With this configuration, for example, even if the illumination light to the two-dimensional code 52 changes and a threshold value for binarizing the two-dimensional image becomes inappropriate, so that decoding failure occurs, Since the two-dimensional image that is repeatedly detected is binarized while changing the threshold, binarization is appropriately performed at one of the thresholds. Moreover, even if the decoding process is repeated in this manner, as described above, the determination and decoding process can be performed during the storage process, so that the time loss that occurs can be minimized.

【0055】なお、閾値は、画像メモリ8〜12に対応
させなくても、CCD4から得られる2次元画像の1フ
レーム毎に閾値を切り替えて2値化するように構成する
こともでき、同様な効果を生じる。ここで、CCD4と
このCCD4に検出を指示する制御回路28が2次元画
像検出手段に該当し、画像メモリ8〜12が複数の画像
記憶手段に該当し、2値化回路6が2値化処理手段に該
当し、アドレス発生回路16とこのアドレス発生回路1
6にオフセット値を与える制御回路28が記憶処理手段
に該当し、制御回路28が解読手段に該当し、変化点検
出回路18および比検出回路20が位置決めシンボルパ
ターン検出手段に該当し、アドレス記憶メモリ22〜2
6が複数のシンボルパターン記憶手段に該当する。
It is to be noted that the threshold value can be binarized by switching the threshold value for each frame of the two-dimensional image obtained from the CCD 4 without having to correspond to the image memories 8 to 12. Produces an effect. Here, the CCD 4 and the control circuit 28 for instructing the CCD 4 to perform detection correspond to two-dimensional image detection means, the image memories 8 to 12 correspond to a plurality of image storage means, and the binarization circuit 6 performs binarization processing. The address generation circuit 16 and the address generation circuit 1
The control circuit 28 for giving an offset value to the memory 6 corresponds to storage processing means, the control circuit 28 corresponds to decoding means, the change point detection circuit 18 and the ratio detection circuit 20 correspond to positioning symbol pattern detection means, and an address storage memory. 22-2
Reference numeral 6 corresponds to a plurality of symbol pattern storage means.

【0056】[実施の形態2]図6のブロック図に、実
施の形態2として上述した発明のいくつかが適用された
2次元コード読取装置102の概略構成を表す。2次元
コード読取装置102は、CCD104、2値化回路1
06a,106b,106c、画像メモリ108,11
0,112、クロック信号出力回路114、アドレス発
生回路116a,116b,116c、変化点検出回路
118a,118b,118c、比検出回路120a,
120b,120c、アドレス記憶メモリ122,12
4,126および制御回路128から構成されている。
[Second Embodiment] FIG. 6 is a block diagram showing a schematic configuration of a two-dimensional code reader 102 to which some of the inventions described above as the second embodiment are applied. The two-dimensional code reader 102 includes a CCD 104, a binarization circuit 1
06a, 106b, 106c, image memories 108, 11
0, 112, clock signal output circuit 114, address generation circuits 116a, 116b, 116c, change point detection circuits 118a, 118b, 118c, ratio detection circuit 120a,
120b, 120c, address storage memories 122, 12
4, 126 and a control circuit 128.

【0057】この各構成のハード的な部分については、
実施の形態1における2次元コード読取装置2の、CC
D4、2値化回路6、画像メモリ8,10,12、クロ
ック信号出力回路14、アドレス発生回路16、変化点
検出回路18、比検出回路20、アドレス記憶メモリ2
2,24,26および制御回路28と同じであるので、
その詳細な説明は省略する。
Regarding the hardware part of each configuration,
CC of the two-dimensional code reader 2 according to the first embodiment
D4, binarization circuit 6, image memories 8, 10, 12, clock signal output circuit 14, address generation circuit 16, change point detection circuit 18, ratio detection circuit 20, address storage memory 2
2, 24, 26 and the control circuit 28,
Detailed description is omitted.

【0058】実施の形態1の2次元コード読取装置2と
異なるのは、ハード的には、2値化回路106a〜10
6c、アドレス発生回路116a〜116c、変化点検
出回路118a〜118cおよび比検出回路120a〜
120cが、それぞれ3つ設けられ、画像メモリ10
8,110,112およびアドレス記憶メモリ122,
124,126と合わせて、それぞれ1つずつが組とな
っている点である。
The difference from the two-dimensional code reader 2 of the first embodiment is that, in terms of hardware, the two-dimensional code readers 106a to 106a
6c, address generation circuits 116a to 116c, change point detection circuits 118a to 118c, and ratio detection circuits 120a to 120c.
120c are provided three each, and the image memory 10
8, 110, 112 and the address storage memory 122,
In addition to 124 and 126, each is a pair.

【0059】ソフト的には、図7のタイミングチャート
に示すような処理が実行される。すなわち、制御回路1
28は、図7(a)に示すごとく、3つの画像メモリ1
08〜112および3つのアドレス記憶メモリ122〜
126への記憶処理M1,M2,M3が同時並行的に行
われ、この記憶処理M1,M2,M3が終了すると、直
ちに、制御回路128は、1番目の画像メモリ108お
よび1番目のアドレス記憶メモリ122に対してアクセ
スして、その記憶内容から位置決め用シンボル54が、
適切な位置に3つ存在しているか否かの判定処理S1を
行う。
As software, processing as shown in the timing chart of FIG. 7 is executed. That is, the control circuit 1
Reference numeral 28 denotes three image memories 1 as shown in FIG.
08-112 and three address storage memories 122-
The storage processes M1, M2, and M3 in the memory 126 are performed simultaneously and in parallel. As soon as the storage processes M1, M2, and M3 are completed, the control circuit 128 causes the first image memory 108 and the first address storage memory 122, and the positioning symbol 54 is
A determination process S1 is performed to determine whether three exist at appropriate positions.

【0060】2次元画像データ内に、適切に3つの位置
決め用シンボル54が存在していれば、制御回路128
は、次に、位置決め用シンボル54の位置に基づいて、
1番目の画像メモリ108の2次元画像データ内の2次
元コード52の各セル位置を決定し、その位置から1/
0を判定して、2次元コード52が表しているコード内
容を読み取る解読処理D1を行う。
If three positioning symbols 54 are properly present in the two-dimensional image data, the control circuit 128
Next, based on the position of the positioning symbol 54,
The position of each cell of the two-dimensional code 52 in the two-dimensional image data of the first image memory 108 is determined, and 1 /
By determining 0, a decoding process D1 for reading the code content represented by the two-dimensional code 52 is performed.

【0061】図7(a)にて示す例は、最初の解読処理
D1にて解読に成功した例を示しており、記憶処理M
2,M3にて記憶された2次元画像データに対しては、
何等の処理も行わない。そして、再度、3つの画像メモ
リ108〜112および3つのアドレス記憶メモリ12
2〜126への記憶処理M11,M12,M13が同時
並行的に行われる。この記憶処理M11,M12,M1
3の直後には、1番目の画像メモリ108および1番目
のアドレス記憶メモリ122について位置決め用シンボ
ル54が適切な位置に3つ存在しているか否かの判定処
理S11が行われる。存在していると判定されれば、同
一の2次元コード52を検出し続けていることを判断で
きるので、更に、3つの画像メモリ108〜112およ
び3つのアドレス記憶メモリ122〜126への記憶処
理M21,M22,M23が同時並行的に行われる。図
7(a)はこの状態を表している。
The example shown in FIG. 7A shows an example in which the decryption was successful in the first decryption processing D1.
2, for the two-dimensional image data stored in M3,
No processing is performed. Then, again, the three image memories 108 to 112 and the three address storage memories 12
The storage processes M11, M12, and M13 to the memory devices 2 to 126 are performed simultaneously and in parallel. This storage processing M11, M12, M1
Immediately after the step 3, a determination process S11 is performed for the first image memory 108 and the first address storage memory 122 to determine whether three positioning symbols 54 are present at appropriate positions. If it is determined that the same two-dimensional code 52 is detected, it can be determined that the same two-dimensional code 52 is continuously detected, so that the storage processing to the three image memories 108 to 112 and the three address storage memories 122 to 126 is further performed. M21, M22 and M23 are performed simultaneously and in parallel. FIG. 7A shows this state.

【0062】もし、判定処理S11にて、1番目の画像
メモリ108および1番目のアドレス記憶メモリ122
について位置決め用シンボル54が適切な位置に3つ存
在していないと判定された場合には、2番目の画像メモ
リ110および2番目のアドレス記憶メモリ124につ
いて位置決め用シンボル54が適切な位置に3つ存在し
ているか否かが判定される。ここで、存在していると判
定されれば、やはり、同一の2次元コード52を検出し
続けていることを判断できるので、3つの画像メモリ1
08〜112および3つのアドレス記憶メモリ122〜
126への記憶処理M21,M22,M23が同時並行
的に行われる。
If it is determined in the determination processing S11 that the first image memory 108 and the first address storage memory 122
If it is determined that three positioning symbols 54 are not present at appropriate positions for the second image memory 110 and the second address storage memory 124, three positioning symbols 54 are located at appropriate positions. It is determined whether it exists. If it is determined that the two-dimensional code 52 exists, it can be determined that the same two-dimensional code 52 is continuously detected.
08-112 and three address storage memories 122-
The storage processes M21, M22, and M23 to the memory 126 are performed simultaneously and in parallel.

【0063】もし、2番目の画像メモリ110および2
番目のアドレス記憶メモリ124について位置決め用シ
ンボル54が適切な位置に3つ存在していないと判定さ
れた場合には、3番目の画像メモリ112および3番目
のアドレス記憶メモリ126について位置決め用シンボ
ル54が適切な位置に3つ存在しているか否かが判定さ
れる。ここで、存在していると判定されれば、やはり、
同一の2次元コード52を検出し続けていることを判断
できるので、3つの画像メモリ108〜112および3
つのアドレス記憶メモリ122〜126への記憶処理M
21,M22,M23が同時並行的に行われる。
If the second image memories 110 and 2
When it is determined that three positioning symbols 54 are not present at appropriate positions in the third address storage memory 124, the positioning symbols 54 are determined in the third image memory 112 and the third address storage memory 126. It is determined whether three exist at appropriate positions. Here, if it is determined that it exists,
Since it can be determined that the same two-dimensional code 52 is continuously detected, the three image memories 108 to 112 and 3
Storage processing M in one address storage memory 122 to 126
21, M22 and M23 are performed in parallel.

【0064】なお、図7(b)は、判定処理S1,S2
にては、適切な3つの位置決め用シンボル54の検出が
できず、3番目の画像メモリ112と3番目のアドレス
記憶メモリ126とに対して行われる3番目の判定処理
S3にて、適切な3つの位置決め用シンボル54が検出
され、解読処理D3にて解読に成功した例を示してい
る。図10(a)の従来例と比較すると、2つの記憶処
理M2,M3分の時間が短くなっている。図5(c)
は、2次元コード52を付着した荷物がCCD4の前を
通過せず、連続して適切な3つの位置決め用シンボル5
4の検出ができない例を示している。このため、常に3
つの判定処理S1〜S3,S11〜S13が連続して行
われている。
FIG. 7B shows the judgment processes S1 and S2.
, The appropriate three positioning symbols 54 cannot be detected, and in the third determination processing S3 performed on the third image memory 112 and the third address storage memory 126, the appropriate three An example is shown in which three positioning symbols 54 have been detected and have been successfully decoded in the decoding process D3. Compared with the conventional example of FIG. 10A, the time for two storage processes M2 and M3 is shorter. FIG. 5 (c)
Indicates that the bag to which the two-dimensional code 52 is attached does not pass in front of the CCD 4 and three suitable positioning symbols 5
4 shows an example in which detection cannot be performed. Therefore, always 3
The three determination processes S1 to S3 and S11 to S13 are continuously performed.

【0065】本実施の形態2は、このように、CCD1
04は制御回路128の指示により、繰り返し2次元画
像を検出するとともに、1フレームの2次元画像を、同
時並行的に、2値化回路106a〜106cにてそれぞ
れ異なる閾値にて2値化して、各画像メモリ108〜1
12に記憶し、更に、各アドレス記憶メモリ122〜1
26に対しても位置決め用シンボル54のアドレスを記
憶している。
In the second embodiment, the CCD 1
04 repeatedly detects a two-dimensional image in accordance with an instruction from the control circuit 128, and simultaneously binarizes one frame of the two-dimensional image at different threshold values in the binarization circuits 106a to 106c, Each image memory 108-1
12 and furthermore, each of the address storage memories 122-1
26 also stores the address of the positioning symbol 54.

【0066】このことにより、一度にCCD104にて
検出した画像を異なる閾値にて2値化した2次元画像に
ついて、順次処理できるので、閾値を変更する度にCC
D104から検出しなくても良く、高速に読み取り処理
を行うことができる。このため、何等かの原因、例え
ば、外乱光やノイズ等により、一つの2次元画像データ
について2次元コード52の読み取りに失敗しても、直
ちに異なる閾値の2次元画像の処理に移ることができ、
制御回路128は、大きなロス時間を間に置くことな
く、迅速に2次元画像の判定・解読処理を行うことがで
きる。
Thus, a two-dimensional image obtained by binarizing an image detected by the CCD 104 at a time with different threshold values can be sequentially processed.
It is not necessary to detect from D104, and the reading process can be performed at high speed. For this reason, even if reading of the two-dimensional code 52 from one two-dimensional image data fails due to some cause, for example, disturbance light or noise, it is possible to immediately proceed to processing of a two-dimensional image having a different threshold value. ,
The control circuit 128 can quickly perform a two-dimensional image determination / decoding process without a large loss time.

【0067】このため、2次元コード52が付着された
荷物が高速に移動している場合でも、繰り返し取得した
画像に基づいて、制御回路128は高速に判定・解読処
理を繰り返すことができ、読み取りの失敗による2次元
画像データ検出のやり直しが発生した時にも、発生する
時間のロスを最小限に抑えることができ、2次元コード
52の高速な読み取りが可能となる。この結果、荷物の
搬送速度を高速にすることが可能となる。
Therefore, even when the package to which the two-dimensional code 52 is attached is moving at a high speed, the control circuit 128 can repeat the determination / decoding processing at a high speed based on the repeatedly acquired images, When the re-detection of the two-dimensional image data occurs due to the failure, the time loss that occurs can be minimized, and the two-dimensional code 52 can be read at high speed. As a result, it is possible to increase the transport speed of the load.

【0068】ここで、CCD104とこのCCD104
に検出を指示する制御回路128が2次元画像検出手段
に該当し、画像メモリ108〜112が複数の画像記憶
手段に該当し、2値化回路106a〜106cが2値化
処理手段に該当し、アドレス発生回路116a〜116
cとこのアドレス発生回路116a〜116cにオフセ
ット値を与える制御回路128が記憶処理手段に該当
し、制御回路128が解読手段に該当し、変化点検出回
路118a〜118cおよび比検出回路120a〜12
0cが位置決めシンボルパターン検出手段に該当し、ア
ドレス記憶メモリ122〜126が複数のシンボルパタ
ーン記憶手段に該当する。
Here, the CCD 104 and the CCD 104
The control circuit 128 for instructing the detection corresponds to two-dimensional image detection means, the image memories 108 to 112 correspond to a plurality of image storage means, the binarization circuits 106a to 106c correspond to binarization processing means, Address generation circuits 116a to 116
c and a control circuit 128 for giving an offset value to the address generation circuits 116a to 116c correspond to the storage processing means, the control circuit 128 corresponds to the decoding means, and the change point detection circuits 118a to 118c and the ratio detection circuits 120a to 120c.
0c corresponds to the positioning symbol pattern detecting means, and the address storage memories 122 to 126 correspond to a plurality of symbol pattern storing means.

【0069】[その他]前記実施の形態1における2値
化回路6としては、図8(a)に示すごとくの比較器2
02により、CCD4からの入力信号と、制御回路28
からの閾値を表す指示信号をD/A変換器204にてア
ナログ電圧信号に変換した信号とを比較することにより
2値化することができる。制御回路28は、その時にデ
ータが記憶される画像メモリ8〜12およびアドレス記
憶メモリ22〜26に応じて、指示信号にて閾値を切り
替えれば良い。なお、画像メモリ8〜12およびアドレ
ス記憶メモリ22〜26に応じて閾値を切り替えるので
はなく、CCD4が検出するフレーム毎に閾値を切り替
えても良い。
[Others] As the binarizing circuit 6 in the first embodiment, a comparator 2 as shown in FIG.
02, the input signal from the CCD 4 and the control circuit 28
By comparing the instruction signal representing the threshold value from the analog signal with the analog voltage signal converted by the D / A converter 204, the signal can be binarized. The control circuit 28 may switch the threshold value with an instruction signal according to the image memories 8 to 12 and the address storage memories 22 to 26 in which data is stored at that time. Instead of switching the threshold value according to the image memories 8 to 12 and the address storage memories 22 to 26, the threshold value may be switched for each frame detected by the CCD 4.

【0070】前記実施の形態1では、CCD4の2次元
画像検出の開始は、制御回路28からの指示により行っ
ていたが、記憶処理M1,M2,M3,M11,……
は、連続して行えば良いので、制御回路28からの指示
が無くても、CCD4自身あるいは特別に設けたハード
構成により、CCD4が繰り返し2次元画像を検出する
ようにしても良い。
In the first embodiment, the two-dimensional image detection of the CCD 4 is started according to an instruction from the control circuit 28. However, the storage processing M1, M2, M3, M11,...
May be performed continuously, and even if there is no instruction from the control circuit 28, the CCD 4 itself or a specially provided hardware configuration may be used so that the CCD 4 repeatedly detects a two-dimensional image.

【0071】また、前記実施の形態2における2値化回
路106a〜106cとしては、図8(a)に示すもの
でも良いが、制御回路128からの指示によらない固定
値の閾値でも良いので、例えば、図8(c)に示すごと
く、2つの抵抗224,226にて電源電圧を分圧した
電圧出力と、CCD104からの入力信号とを比較器2
22にて比較する構成でも良い。この場合は、2値化回
路106a〜106cの数だけ、分圧電圧が異なるよう
に、2つの抵抗224,226の抵抗値の比を違えたも
のを用いれば良い。
The binarization circuits 106a to 106c according to the second embodiment may be those shown in FIG. 8A, but may be fixed value thresholds which are not instructed by the control circuit 128. For example, as shown in FIG. 8C, the comparator 2 compares a voltage output obtained by dividing the power supply voltage by the two resistors 224 and 226 with an input signal from the CCD 104.
A configuration for comparison at 22 may be used. In this case, the resistors having different ratios of the resistance values of the two resistors 224 and 226 may be used so that the divided voltages are different by the number of the binarization circuits 106a to 106c.

【0072】また、実施の形態1,2における2値化回
路6,106a〜106cは、所定値に設定された閾値
とCCD4,104からの入力信号との比較であった
が、このような閾値の代りに、図8(b)に示すごと
く、CCD4,104からの入力信号を、抵抗214と
コンデンサ216とにより、なまし処理、すなわち時間
平均処理することにより得られる閾値と、CCD4,1
04からの入力信号とを比較器212にて比較するよう
にして2値化しても良い。抵抗214とコンデンサ21
6とのインピーダンスを調整して、異なる追従の速さに
したものを複数設けて、制御回路28,128にて、画
像メモリ8〜12,108〜112およびアドレス記憶
メモリ22〜26,122〜126に応じて切り替え
て、あるいは1フレーム毎に切り替えて使用すれば良
い。
In the first and second embodiments, the binarization circuits 6, 106 a to 106 c compare the threshold value set to a predetermined value with the input signal from the CCD 4, 104. Instead, as shown in FIG. 8 (b), a threshold value obtained by subjecting an input signal from the CCDs 4 and 104 to a smoothing process, that is, a time averaging process, by a resistor 214 and a capacitor 216,
The signal may be binarized by comparing the input signal from the comparator 04 with the comparator 212. Resistor 214 and capacitor 21
The control circuits 28 and 128 provide the image memories 8 to 12, 108 to 112 and the address storage memories 22 to 26 and 122 to 126 by adjusting a plurality of impedances with different tracking speeds. , Or by switching every frame.

【0073】まお、画像メモリ8〜12,108〜11
2およびアドレス記憶メモリ22〜26,122〜12
6に応じて、あるいは1フレーム毎に、閾値や追従の速
さを切り替えるのではなく、読み取り(判定処理および
解読処理)が成功した場合には、読み取りが成功したと
きと同じ閾値または解読が成功したときと同じなまし処
理の追従の速さを用いて得られた2次元画像が、次回の
複数の2次元画像の判定・解読において最初に処理する
対象となるように学習制御しても良い。例えば、実施の
形態1では、3つの記憶処理M1,M2,M3の最初に
行う記憶処理M1において、学習した閾値あるいは追従
の速さを用いることにより実現できる。また実施の形態
2では、記憶処理M1,M2,M3の内、判定処理と解
読処理とを最初に行うものに、学習した閾値あるいは追
従の速さにて2値化処理したものを選択することにより
実現できる。このような学習制御を行うことにより、読
み取りがより迅速にできるようになる。
The image memories 8 to 12, 108 to 11
2 and address storage memories 22 to 26, 122 to 12
6, when the reading (judgment processing and decoding processing) is successful, instead of switching the threshold value or the following speed in accordance with each frame or every frame, the same threshold value as when reading was successful or decoding succeeded Learning control may be performed so that a two-dimensional image obtained by using the same speed of the smoothing process as when the first processing is performed in the next determination and decoding of a plurality of two-dimensional images. . For example, in the first embodiment, in the first storage process M1 of the three storage processes M1, M2, and M3, it can be realized by using the learned threshold value or the following speed. Also, in the second embodiment, of the storage processes M1, M2, and M3, the one that performs the determination process and the decryption process first and selects the one that has been subjected to the binarization process at the learned threshold value or the following speed. Can be realized by: By performing such learning control, reading can be performed more quickly.

【0074】なお、実施の形態1,2では、それぞれ3
つの画像メモリ8〜12,108〜112およびアドレ
ス記憶メモリ22〜26,122〜126を用いたが、
判定処理および解読処理の速度が速ければ、各2つの画
像メモリおよびアドレス記憶メモリであっても良い。ま
た、判定処理および解読処理の速度が遅ければ、各4つ
以上の画像メモリおよびアドレス記憶メモリを用いれば
良い。
In the first and second embodiments, 3
Although two image memories 8 to 12, 108 to 112 and address storage memories 22 to 26, 122 to 126 are used,
As long as the speed of the judgment process and the decoding process is high, two image memories and two address storage memories may be used. If the speed of the judgment process and the decoding process is low, four or more image memories and address storage memories may be used.

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

【図1】 実施の形態1としての2次元コード読取装置
の概略構成を表すブロック図である。
FIG. 1 is a block diagram illustrating a schematic configuration of a two-dimensional code reader according to a first embodiment.

【図2】 2次元コードの構成説明図である。FIG. 2 is an explanatory diagram of a configuration of a two-dimensional code.

【図3】 位置決め用シンボルを走査した場合の明暗検
出の説明図である。
FIG. 3 is an explanatory diagram of light / dark detection when a positioning symbol is scanned.

【図4】 CCDと2値化回路との出力信号の説明図で
ある。
FIG. 4 is an explanatory diagram of output signals of a CCD and a binarization circuit.

【図5】 実施の形態1における2次元コード読取装置
の処理手順を表すタイミングチャートである。
FIG. 5 is a timing chart illustrating a processing procedure of the two-dimensional code reader according to the first embodiment.

【図6】 実施の形態2としての2次元コード読取装置
の概略構成を表すブロック図である。
FIG. 6 is a block diagram illustrating a schematic configuration of a two-dimensional code reader according to a second embodiment;

【図7】 実施の形態2における2次元コード読取装置
の処理手順を表すタイミングチャートである。
FIG. 7 is a timing chart illustrating a processing procedure of the two-dimensional code reader according to the second embodiment.

【図8】 2値化回路の構成説明図である。FIG. 8 is an explanatory diagram of a configuration of a binarization circuit.

【図9】 従来の2次元コード読取装置の概略構成を表
すブロック図である。
FIG. 9 is a block diagram illustrating a schematic configuration of a conventional two-dimensional code reader.

【図10】 従来の2次元コード読取装置の処理手順を
表すタイミングチャートである。
FIG. 10 is a timing chart showing a processing procedure of a conventional two-dimensional code reader.

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

2…2次元コード読取装置 4…CCD 6…
2値化回路 8,10,12…画像メモリ 14…クロック信号出
力回路 16…アドレス発生回路 18…変化点検出回路
20…比検出回路 22,24,26…アドレス記憶メモリ 28…制御
回路 52…2次元コード 54…位置決め用シンボル 102…2次元コード読取装置 104…CCD 106a,106b,106c…2値化回路 108,110,112…画像メモリ 114…クロ
ック信号出力回路 116a,116b,116c…アドレス発生回路 118a,118b,118c…変化点検出回路 120a,120b,120c…比検出回路 122,124,126…アドレス記憶メモリ 12
8…制御回路 202…比較器 204…D/A変換器 212…
比較器 214…抵抗 216…コンデンサ 222…比較
器 224,226…抵抗
2 2D code reader 4 CCD 6
Binarization circuit 8, 10, 12 image memory 14 clock signal output circuit 16 address generation circuit 18 change point detection circuit
20 ratio detection circuit 22, 24, 26 address storage memory 28 control circuit 52 two-dimensional code 54 positioning symbol 102 two-dimensional code reader 104 CCD 106a, 106b, 106c binarization circuit 108 110, 112: Image memory 114: Clock signal output circuit 116a, 116b, 116c: Address generation circuit 118a, 118b, 118c: Change point detection circuit 120a, 120b, 120c: Ratio detection circuit 122, 124, 126 ... Address storage memory 12
8 Control circuit 202 Comparator 204 D / A converter 212
Comparator 214: resistor 216: capacitor 222: comparator 224, 226: resistor

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】2進コードで表されるデータをセル化し
て、2次元のマトリックス上にパターンとして配置した
2次元コードを読み取るための2次元コード読取装置で
あって、 繰り返し2次元画像を検出する2次元画像検出手段と、 前記2次元画像検出手段にて検出された2次元画像をフ
レーム毎に記憶する複数の画像記憶手段と、 前記複数の画像記憶手段の内から1つの画像記憶手段を
順次選択して、該選択された画像記憶手段に、前記2次
元画像検出手段から繰り返し検出される2次元画像を記
憶する画像記憶制御手段と、 記憶された順番に、前記複数の画像記憶手段から2次元
画像データを読み出して該2次元画像データが表してい
るコードを解読する解読手段と、 を備えたことを特徴とする2次元コード読取装置。
1. A two-dimensional code reader for converting data represented by a binary code into cells and reading a two-dimensional code arranged as a pattern on a two-dimensional matrix, wherein a two-dimensional image is repeatedly detected. Two-dimensional image detecting means, a plurality of image storing means for storing the two-dimensional image detected by the two-dimensional image detecting means for each frame, and one image storing means out of the plurality of image storing means. An image storage control means for sequentially selecting and storing a two-dimensional image repeatedly detected by the two-dimensional image detection means in the selected image storage means; and Decoding means for reading out the two-dimensional image data and decoding the code represented by the two-dimensional image data.
【請求項2】更に、 前記2次元画像検出手段にて検出された2次元画像から
所定の位置決めシンボルのパターンの存在を検出する位
置決めシンボルパターン検出手段と、 前記シンボルパターン検出手段にて検出された位置決め
シンボルのパターンの位置をフレーム毎に記憶する複数
のシンボルパターン記憶手段と、 を備えるとともに、 前記解読手段は、 前記シンボルパターン記憶手段に記憶されている位置決
めシンボルのパターンの位置に基づいて、記憶された順
番に、前記複数の画像記憶手段から2次元画像データを
読み出して該2次元画像データが表しているコードを解
読することを特徴とする請求項1記載の2次元コード読
取装置。
2. A positioning symbol pattern detecting means for detecting the presence of a predetermined positioning symbol pattern from a two-dimensional image detected by the two-dimensional image detecting means; A plurality of symbol pattern storage means for storing the position of the pattern of the positioning symbol for each frame; andthe decoding means stores the position based on the position of the pattern of the positioning symbol stored in the symbol pattern storage means. 2. The two-dimensional code reader according to claim 1, wherein the two-dimensional image data is read from the plurality of image storage units in a given order, and a code represented by the two-dimensional image data is decoded.
【請求項3】前記画像記憶制御手段は、 前記2次元画像検出手段から繰り返し検出される2次元
画像を、閾値を用いて2値化する2値化処理手段と、 前記複数の画像記憶手段の内から1つの画像記憶手段を
順次選択して、該選択された画像記憶手段に、前記2値
化処理手段にて2値化された2次元画像を記憶する記憶
処理手段と、 を備えたことを特徴とする請求項1または2記載の2次
元コード読取装置。
3. The image storage control unit includes: a binarization processing unit that binarizes a two-dimensional image repeatedly detected by the two-dimensional image detection unit using a threshold value; Storage processing means for sequentially selecting one image storage means from among them, and storing the two-dimensional image binarized by the binarization processing means in the selected image storage means. The two-dimensional code reader according to claim 1 or 2, wherein:
【請求項4】前記2値化処理手段は、 前記2次元画像検出手段から繰り返し検出される2次元
画像を、1フレーム毎に変化する閾値を用いて2値化す
ることを特徴とする請求項3記載の2次元コード読取装
置。
4. The binarizing processing unit binarizes a two-dimensional image repeatedly detected by the two-dimensional image detecting unit using a threshold value that changes every frame. 3. The two-dimensional code reader according to 3.
【請求項5】前記2値化処理手段は、 前記2次元画像検出手段から繰り返し検出される2次元
画像を、記憶される前記画像記憶手段に応じて設定され
た異なる閾値を用いて2値化することを特徴とする請求
項3記載の2次元コード読取装置。
5. The binarization processing unit binarizes a two-dimensional image repeatedly detected by the two-dimensional image detection unit using different thresholds set according to the stored image storage unit. 4. The two-dimensional code reading device according to claim 3, wherein:
【請求項6】前記2値化処理手段は、 前記2次元画像検出手段から繰り返し検出される2次元
画像を、該2次元画像の信号をなまし処理することによ
り得た閾値を用いて2値化することを特徴とする請求項
3記載の2次元コード読取装置。
6. The two-dimensional image processing apparatus according to claim 1, wherein the two-dimensional image repeatedly detected by the two-dimensional image detecting means is binarized using a threshold obtained by smoothing a signal of the two-dimensional image. The two-dimensional code reading device according to claim 3, wherein the two-dimensional code reading device is used.
【請求項7】前記なまし処理による前記2次元画像の信
号に対する追従の速さを、1フレーム毎に変化させるこ
とを特徴とする請求項6記載の2次元コード読取装置。
7. The two-dimensional code reader according to claim 6, wherein the speed of following the signal of the two-dimensional image by the smoothing process is changed for each frame.
【請求項8】前記なまし処理による前記2次元画像の信
号に対する追従の速さを、記憶される前記画像記憶手段
に応じて変化させることを特徴とする請求項6記載の2
次元コード読取装置。
8. The method according to claim 6, wherein a speed of following the signal of the two-dimensional image by the smoothing process is changed in accordance with the stored image storage means.
Dimension code reader.
【請求項9】2進コードで表されるデータをセル化し
て、2次元のマトリックス上にパターンとして配置した
2次元コードを読み取るための2次元コード読取装置で
あって、 2次元画像を検出する2次元画像検出手段と、 前記2次元画像検出手段にて検出された2次元画像をフ
レーム毎に記憶する複数の画像記憶手段と、 前記2次元画像検出手段から繰り返し検出される2次元
画像の同一フレームを、前記画像記憶手段の数の種類の
閾値を用いてそれぞれ2値化して、複数の2次元画像デ
ータを得る2値化処理手段と、 前記2値化手段にて2値化して得られた複数の2次元画
像データを前記複数の画像記憶手段にそれぞれ記憶する
記憶処理手段と、 前記複数の画像記憶手段から順番に2次元画像データを
読み出して該2次元画像データが表しているコードを解
読する解読手段と、 前記解読手段による全ての画像記憶手段に記憶されてい
る2次元画像データの解読が終了した場合に、前記2次
元画像検出手段に次の画像を検出させる画像検出制御手
段と、 を備えたことを特徴とする2次元コード読取装置。
9. A two-dimensional code reader for reading data represented by a binary code into cells and reading a two-dimensional code arranged as a pattern on a two-dimensional matrix, wherein a two-dimensional image is detected. Two-dimensional image detection means; a plurality of image storage means for storing the two-dimensional image detected by the two-dimensional image detection means for each frame; and the same two-dimensional image repeatedly detected by the two-dimensional image detection means A plurality of two-dimensional image data obtained by binarizing the frame using a plurality of types of threshold values of the image storage unit; and a binarization process obtained by the binarization unit. Storage processing means for storing the plurality of two-dimensional image data in the plurality of image storage means, and reading out the two-dimensional image data from the plurality of image storage means in order. Decoding means for decoding the code being decoded, and, when decoding of the two-dimensional image data stored in all the image storage means by the decoding means is completed, causes the two-dimensional image detection means to detect the next image. A two-dimensional code reader, comprising: image detection control means.
【請求項10】2進コードで表されるデータをセル化し
て、2次元のマトリックス上にパターンとして配置した
2次元コードを読み取るための2次元コード読取装置で
あって、 2次元画像を検出する2次元画像検出手段と、 前記2次元画像検出手段にて検出された2次元画像をフ
レーム毎に記憶する複数の画像記憶手段と、 前記2次元画像の信号に対する追従の速さを、記憶され
る前記画像記憶手段に応じて変化させたなまし処理を、
前記2次元画像の信号に実施することにより得た閾値を
用いて、前記2次元画像検出手段から繰り返し検出され
る2次元画像の同一フレームを、それぞれ2値化して、
複数の2次元画像データを得る2値化処理手段と、 前記2値化手段にて2値化して得られた複数の2次元画
像データを前記複数の画像記憶手段にそれぞれ記憶する
記憶処理手段と、 前記複数の画像記憶手段から順番に2次元画像データを
読み出して該2次元画像データが表しているコードを解
読する解読手段と、 前記解読手段による全ての画像記憶手段に記憶されてい
る2次元画像データの解読が終了した場合に、前記2次
元画像検出手段に次の画像を検出させる画像検出制御手
段と、 を備えたことを特徴とする2次元コード読取装置。
10. A two-dimensional code reader for converting data represented by a binary code into cells and reading a two-dimensional code arranged as a pattern on a two-dimensional matrix, and detecting a two-dimensional image. Two-dimensional image detecting means; a plurality of image storing means for storing the two-dimensional image detected by the two-dimensional image detecting means for each frame; and a speed of following a signal of the two-dimensional image is stored. Smoothing processing changed according to the image storage means,
The same frame of the two-dimensional image repeatedly detected by the two-dimensional image detecting means is binarized using a threshold obtained by performing the signal on the two-dimensional image,
Binarization processing means for obtaining a plurality of two-dimensional image data; storage processing means for respectively storing the plurality of two-dimensional image data obtained by binarization by the binarization means in the plurality of image storage means; Decoding means for sequentially reading two-dimensional image data from the plurality of image storage means and decoding the code represented by the two-dimensional image data; and two-dimensional image data stored in all the image storage means by the decoding means. An image detection control means for causing the two-dimensional image detection means to detect the next image when the decoding of the image data is completed.
【請求項11】更に、 前記2次元画像検出手段にて検出された2次元画像から
所定の位置決めシンボルのパターンの存在を検出する位
置決めシンボルパターン検出手段と、 前記シンボルパターン検出手段にて検出された位置決め
シンボルのパターンの位置をフレーム毎に記憶する複数
のシンボルパターン記憶手段と、 を備えるとともに、 前記解読手段は、 前記シンボルパターン記憶手段に記憶されている位置決
めシンボルのパターンの位置に基づいて、記憶された順
番に、前記複数の画像記憶手段から2次元画像データを
読み出して該2次元画像データが表しているコードを解
読することを特徴とする請求項9または10記載の2次
元コード読取装置。
11. A positioning symbol pattern detecting means for detecting the presence of a predetermined positioning symbol pattern from a two-dimensional image detected by said two-dimensional image detecting means; A plurality of symbol pattern storage means for storing the position of the pattern of the positioning symbol for each frame; andthe decoding means stores the position based on the position of the pattern of the positioning symbol stored in the symbol pattern storage means. 11. The two-dimensional code reader according to claim 9, wherein two-dimensional image data is read from the plurality of image storage units in a given order, and a code represented by the two-dimensional image data is decoded.
【請求項12】前記解読手段は、 解読が成功した場合には、解読が成功したときと同じ閾
値または解読が成功したときと同じなまし処理の追従の
速さを用いて得られた2次元画像を、次回の複数の2次
元画像の解読において最初に処理する対象とすることを
特徴とする請求項3〜11記載の2次元コード読取装
置。
12. The decryption means, if the decryption is successful, obtains a two-dimensional image obtained by using the same threshold value as when the decryption was successful or the same smoothing processing speed as when the decryption was successful. The two-dimensional code reader according to claim 3, wherein an image is to be processed first in the next decoding of a plurality of two-dimensional images.
JP00067597A 1997-01-07 1997-01-07 Two-dimensional code reader Expired - Lifetime JP3804140B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP00067597A JP3804140B2 (en) 1997-01-07 1997-01-07 Two-dimensional code reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP00067597A JP3804140B2 (en) 1997-01-07 1997-01-07 Two-dimensional code reader

Publications (2)

Publication Number Publication Date
JPH10198753A true JPH10198753A (en) 1998-07-31
JP3804140B2 JP3804140B2 (en) 2006-08-02

Family

ID=11480331

Family Applications (1)

Application Number Title Priority Date Filing Date
JP00067597A Expired - Lifetime JP3804140B2 (en) 1997-01-07 1997-01-07 Two-dimensional code reader

Country Status (1)

Country Link
JP (1) JP3804140B2 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001312715A (en) * 2000-04-28 2001-11-09 Denso Corp Optical information reader
JP2005122609A (en) * 2003-10-20 2005-05-12 Mitsubishi Electric Corp Device for recognizing photographed object
JP2008508609A (en) * 2004-07-29 2008-03-21 シンボル テクノロジーズ インコーポレイテッド System and method for decoding optical code read by an imaging device based optical code reader
JP2008102970A (en) * 2008-01-16 2008-05-01 Denso Wave Inc Information code reader and information code reading method
JP2008269410A (en) * 2007-04-23 2008-11-06 Denso Wave Inc Optical information reader
JP2009238149A (en) * 2008-03-28 2009-10-15 Denso Wave Inc Two-dimensional code reading device
CN108334798A (en) * 2018-03-20 2018-07-27 平安科技(深圳)有限公司 Barcode scanning processing method, device, equipment and computer readable storage medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001312715A (en) * 2000-04-28 2001-11-09 Denso Corp Optical information reader
JP2005122609A (en) * 2003-10-20 2005-05-12 Mitsubishi Electric Corp Device for recognizing photographed object
JP2008508609A (en) * 2004-07-29 2008-03-21 シンボル テクノロジーズ インコーポレイテッド System and method for decoding optical code read by an imaging device based optical code reader
JP4795345B2 (en) * 2004-07-29 2011-10-19 シンボル テクノロジーズ, インコーポレイテッド System and method for decoding optical code read by an imaging device based optical code reader
JP2008269410A (en) * 2007-04-23 2008-11-06 Denso Wave Inc Optical information reader
JP2008102970A (en) * 2008-01-16 2008-05-01 Denso Wave Inc Information code reader and information code reading method
JP4553014B2 (en) * 2008-01-16 2010-09-29 株式会社デンソーウェーブ Information code reading apparatus and information code reading method
JP2009238149A (en) * 2008-03-28 2009-10-15 Denso Wave Inc Two-dimensional code reading device
CN108334798A (en) * 2018-03-20 2018-07-27 平安科技(深圳)有限公司 Barcode scanning processing method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
JP3804140B2 (en) 2006-08-02

Similar Documents

Publication Publication Date Title
US5128527A (en) Apparatus for reading a bar code
JPS61115179A (en) Bar code reader
JP2002142084A (en) Image reader
JPH10198753A (en) Two-dimensional code reader
JPH10198754A (en) Code reader
US5302814A (en) Bar code reading apparatus
JPH02168363A (en) Image signal processor
JPS59140587A (en) Pattern reading device
JPH01266686A (en) Bar code reader
JP3747602B2 (en) Image processing method and image processing apparatus
JP2002133365A (en) Mark reader
JPS6215677A (en) Bar code reader
JP2000155800A (en) Optical information reader and storage medium
JPH02127869A (en) Image data processor
JP3009325B2 (en) How to analyze Karla code
JPH06301803A (en) Bar code reader
JPH04195274A (en) Document terminal detecting method for optical character reader
JPH07271985A (en) Motion detector and its method
JP2000339399A (en) Method for segmenting information code
JPH07319993A (en) Mark reader
JPH03158981A (en) Pattern recognition device
JPH06119493A (en) Image binarizing device
JPH07107689B2 (en) Image signal processor
JPS62154135A (en) Mark sheet reading device
JPH02125381A (en) Image signal processor

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050317

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050329

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050527

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060207

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060213

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060418

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060501

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20090519

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100519

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100519

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110519

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120519

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120519

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130519

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130519

Year of fee payment: 7

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20130519

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130519

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130519

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20140519

Year of fee payment: 8

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term