JP4553014B2 - Information code reading apparatus and information code reading method - Google Patents
Information code reading apparatus and information code reading method Download PDFInfo
- Publication number
- JP4553014B2 JP4553014B2 JP2008006996A JP2008006996A JP4553014B2 JP 4553014 B2 JP4553014 B2 JP 4553014B2 JP 2008006996 A JP2008006996 A JP 2008006996A JP 2008006996 A JP2008006996 A JP 2008006996A JP 4553014 B2 JP4553014 B2 JP 4553014B2
- Authority
- JP
- Japan
- Prior art keywords
- information code
- feature detection
- reading
- data
- code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Description
本発明は、情報コードを光学的に読取ってデコードする情報コード読取装置、及び情報コード読取り方法に関する。 The present invention relates to an information code reader for optically reading and decoding an information code, and an information code reading method.
現在、バーコードや2次元コードなどの情報コードは、例えば商品の販売管理などに広く利用されている。そして、従来の情報コード読取装置は、例えば特許文献1に開示されているように、受光センサによって読取られたデータを一旦画像メモリに記憶させ、読み取りが終了すると、プロセッサが画像メモリに記憶させたデータを読み出してデコードを行うように構成されている。
At present, information codes such as barcodes and two-dimensional codes are widely used for merchandise sales management, for example. Then, as disclosed in, for example,
そして、特許文献1は、画像データの読取りにやり直しが発生するケースにおいて時間のロスを最小限にし、高速読み取りを可能とする目的で、2次元画像データをフレーム毎に予め複数のメモリに夫々記憶させるようにしている。
ところが、特許文献1の構成では、一般的な構成の読取装置に対してメモリの容量が余分に必要となるため、コスト面で問題がある。また、例えばVGA(Video Graphic Array)クラスの画素数では、データを一回読込むのに数十ms程度の時間を要する。従って、情報コード読取り装置においても読取り精度を向上させる目的で受光センサの画素数が増加することを想定すると、特許文献1の構成では読取りに要する時間が長くなることが避けられない。
However, the configuration of
本発明は上記事情に鑑みてなされたものであり、その目的は、情報コードの読取り及びデコードに要する時間を低コストな構成で短縮することができる情報コード読取装置、及び情報コード読取り方法を提供することにある。 The present invention has been made in view of the above circumstances, and an object thereof is to provide an information code reading apparatus and an information code reading method capable of reducing the time required for reading and decoding an information code with a low-cost configuration. There is to do.
請求項1記載の情報コード読取装置によれば、受光センサによって読取られ、A/D変換された情報コードの画像信号データは先ず特徴検出回路に入力され、情報コードに含まれている特徴パターンの検出が行なわれる。そして、再実行手段は、特徴検出回路によって情報コードのコードパターンが許容値を外れていると判断されると、その時点で受光センサによる情報コードの読み取りを停止させ、新たな読取り動作を開始させる。
即ち、読取り対象となっている情報コード以外のものを読取ろうとしたり、或いは不鮮明で読取り不能な情報コードを読取ろうとした場合は、その読み取り動作は停止され、次の読み取り動作が実行されるので、無用な読取り動作が継続されること無く、作業者は、読取り作業をより効率的に行うことができる。
According to the information code reader of the first aspect, the image signal data of the information code read by the light receiving sensor and A / D converted is first input to the feature detection circuit, and the feature pattern included in the information code is read. Detection is performed. When the feature detection circuit determines that the code pattern of the information code is out of the allowable value, the re-execution unit stops reading the information code by the light receiving sensor at that time and starts a new reading operation. .
That is, if an attempt is made to read an information code other than the information code to be read or an attempt to read an unclear and unreadable information code, the reading operation is stopped and the next reading operation is executed. The operator can perform the reading operation more efficiently without the unnecessary reading operation being continued.
請求項2記載の情報コード読取装置によれば、特徴検出回路は、検出された特徴パターンに応じて情報コードの種類を判別し、その判別した種類をデコード手段に伝達するので、デコード手段は、最初から伝達された情報コードの種類に応じたデコード処理を行なうことができる。従って、デコード手段自体が情報コードの種類を判別するための処理を行なう必要がないので、デコード処理を一層速く完了することが可能となる。 According to the information code reading apparatus of the second aspect, the feature detection circuit determines the type of the information code according to the detected feature pattern and transmits the determined type to the decoding unit. Decoding processing according to the type of information code transmitted from the beginning can be performed. Therefore, it is not necessary for the decoding means itself to perform the process for determining the type of information code, so that the decoding process can be completed more quickly.
(第1実施例)
以下、本発明の第1実施例について図1乃至図7を参照して説明する。図1は、情報コード読取装置におけるデータ処理系の構成を中心として示す機能ブロック図である。CCDセンサ(受光センサ)1は、LEDなどの光源によって照射された情報コードを光学的に読み取るためのエリアセンサであり、読み取りは、タイミングジェネレータ(TG)2によって出力されるクロック信号に同期して行われる。
(First embodiment)
Hereinafter, a first embodiment of the present invention will be described with reference to FIGS. FIG. 1 is a functional block diagram mainly showing the configuration of the data processing system in the information code reader. A CCD sensor (light receiving sensor) 1 is an area sensor for optically reading an information code irradiated by a light source such as an LED, and the reading is synchronized with a clock signal output by a timing generator (TG) 2. Done.
CCDセンサ1によって読取られ、出力される画像データは、アンプ3によって増幅され、A/D変換回路(ADC)4によりA/D変換される。そして、A/D変換されたデジタルデータは、特徴検出用ゲートアレイ5に与えられている。特徴検出用ゲートアレイ5は、データバッファ6,信号出力部(信号出力回路)7,特徴検出部(特徴検出回路)8を備えている。
Image data read and output by the
データバッファ6は、先入れ先出しのFIFO(First In First Out)として構成されている。信号出力部7は、データバッファ6に書き込まれたデータ、即ち、CCDセンサ1によって読取られ出力される画像データが所定量、例えば1走査ライン分に達する毎に、検出タイミング信号を出力するように構成されている。また、特徴検出部8は、データバッファ6に書き込まれたデータに基づいて、CCDセンサ1によって読取られた情報コードが備えている特徴パターンの有無を検出するものである。
The
例えば、図4に示すように、2次元コードの一種であるQRコード(登録商標)では、データを読み取るための基準位置決めシンボルとして、明暗パターン比が1:1:3:1:1に設定されたファインダパターンが配置されている。そして、特徴検出部8は、データバッファ6に書き込まれたデータの明暗パターンに基づいて上記ファインダパターンのような特徴パターンを検出すると、検出信号を出力するように構成されている。
For example, as shown in FIG. 4, in a QR code (registered trademark) which is a kind of two-dimensional code, a light / dark pattern ratio is set to 1: 1: 3: 1: 1 as a reference positioning symbol for reading data. Finder pattern is arranged. The
また、情報コードがバーコード又は2次元コードの一種であるPDF417であれば、図5に示すように、一定本数のバーとそれらのバーの配置比率を求め、それが許容範囲内であればバーコードと認識する。図5に示す例では、4値コードを想定し、バーの本数5本についてナロー/ワイド比4までを許容する。また、バーの太り細りは20%まで許容する。一例として、上記の条件下で1,2,1,4,2,1,1,1の比率が明確に検出できたことで、バーコードであると認識する。 Also, if the information code is PDF417, which is a kind of barcode or two-dimensional code, as shown in FIG. 5, the fixed number of bars and the arrangement ratio of these bars are obtained. Recognize as a code. In the example shown in FIG. 5, a quaternary code is assumed, and a narrow / wide ratio of up to 4 is allowed for 5 bars. Also, the bar thickness is allowed to 20%. As an example, a bar code is recognized when the ratio of 1,2,1,4,2,1,1,1 can be clearly detected under the above conditions.
尚、PDF417の場合は、上記形式と同様のバーコードに2次元コードパターンが組み合わされたものなので、バーコードパターンに続いて2次元コードパターンが検出された場合にPDF417であると認識する。
また、情報コードが2次元コードの一種であるデータマトリックスであれば、図6に示すように、L字パターンの縦,横何れかのバーを検出した場合に、次回の取り込みにおいてその何れかの一端側に続く他方のバーが存在するか否かを検出する。そして、L字パターンがある程度推定可能な箇所まで検出を行なった時点でデータマトリックスと判定する。
In the case of PDF417, since a two-dimensional code pattern is combined with a barcode similar to the above format, it is recognized as PDF417 when a two-dimensional code pattern is detected following the barcode pattern.
Further, if the information code is a data matrix that is a kind of two-dimensional code, as shown in FIG. 6, when either the vertical or horizontal bar of the L-shaped pattern is detected, any one of them will be captured at the next capture. It is detected whether or not the other bar following the one end side exists. Then, it is determined as a data matrix when detection is performed up to a place where an L-shaped pattern can be estimated to some extent.
また、特徴検出用ゲートアレイ5は、システムバス9に接続されている。そのシステムバス9には、情報コード読取装置を制御するCPU(デコード手段,報知手段)10,画像メモリであるS(Synchronous)DRAM11、制御プログラムなどが記憶されるフラッシュメモリ12及びCPU10の周辺処理用であるゲートアレイ13,DMA(Direct Memory Access)コントローラ(DMAC,データ転送回路)14などが接続されている。
The feature
ゲートアレイ13は、その内部に割込み制御回路15を備えている。この割込み制御回路15は、特徴検出用ゲートアレイ5による割込み発生も可能となるように構成されている。即ち、図4乃至図6で説明したように、特徴検出部8が検出した情報コードの特徴パターンに基づいてその種類を判別すると、特徴検出用ゲートアレイ5は、その種類に応じて割込み制御回路15に対応するビットをセットすることでCPU10に割込み(INT)を発生させることが可能に構成されている。
そして、CPU10は、その割り込みの発生を認識すると、割込み制御回路15のレジスタを読み出し、セットされているビットにより特徴検出用ゲートアレイ5で判別された情報コードの種類を認識することができる。
The
When the
また、ゲートアレイ13には、CPU10が報知処理を行なうためのブザー(報知手段)16が接続されており、CPU10は、ゲートアレイ13内部のブザー駆動用レジスタ(図示せず)に書込みを行うことで、図示しない駆動回路を介してブザー16を鳴動させることが可能となっている。同様に、ゲートアレイ13には、露光用光源としてのLED17が接続されており、CPU10により駆動制御が行われる。
DMAコントローラ14は、特徴検出用ゲートアレイ5のデータバッファ6に書き込まれたデータをSDRAM11に転送するものであり、CPU10がシステムバス9を介してリソースアクセスを行っている間にサイクルスチールを実行してデータ転送を行う。
The
The
次に、本実施例の作用について図2,図3及び図7も参照して説明する。図2は、特徴検出用ゲートアレイ5の処理内容を示すフローチャートである。尚、特徴検出用ゲートアレイ5は、ロジックのみで構成される純粋なハードウエアであるから、そのハードウエアによる処理を示すものである。
Next, the operation of the present embodiment will be described with reference to FIGS. FIG. 2 is a flowchart showing the processing contents of the feature
情報コードの読み取りが開始されると、LED17が発する光が読取り対象の情報コードに照射され(「露光」,図7(a)参照)、CCDセンサ1は、情報コードに照射された光の明暗を2次元的に読取り電荷データを発生させる。続いて、CCDセンサ1は、タイミングジェネレータ2のクロック信号に同期して、発生させた電荷データをアンプ3に出力する(「取り込み」)。すると、特徴検出用ゲートアレイ5にはA/D変換回路4によってA/D変換されたデータが与えられるので、特徴検出用ゲートアレイ5は、そのデータをデータバッファ6に書き込む(ステップA1)。
When the reading of the information code is started, the light emitted from the
特徴検出部8は、信号出力部7によりタイミング信号が出力されると(ステップA2,「YES」)特徴検出処理を開始する(ステップA3)。そして、何れかの情報コードに応じた特徴パターンが検出された場合は(ステップA4,「YES」)、特徴パターンに基づいて情報コードの種類を判別する(ステップA5)。
尚、情報コードが2次元コードである場合には、CCDセンサ1の1走査ラインのみでは特徴パターンが検出できないので(ステップA4,「NO」)、検出を行なうリミットを所定ライン数に設定しておき(ステップA11)、その検出リミットに達していなければ(「NO」)ステップA1に戻りデータの取り込みを継続する。そして、ステップA11において検出リミットをオーバーした場合は(「YES」)ユーザに対する報知処理を行なうようにCPU10に割込みを発生させて指示を出力する(ステップA12)。
When the timing signal is output from the signal output unit 7 (step A2, “YES”), the
If the information code is a two-dimensional code, the feature pattern cannot be detected with only one scanning line of the CCD sensor 1 (step A4, "NO"), so the limit for detection is set to a predetermined number of lines. If the detection limit has not been reached ("NO"), the process returns to step A1 and continues to take in data. If the detection limit is exceeded in Step A11 ("YES"), an interrupt is generated in the
特徴検出部8は、情報コードの種類を判別すると、その種類に応じてCPU10にデコード開始を指示する(ステップA6)。即ち、上述したように、ゲートアレイ13の割込み制御回路15にビットをセットする。続いて、特徴検出用ゲートアレイ5は、データバッファ6に書き込まれたデータが所定量(フル)に達したか否かを書き込みポインタの値に基づいて判断し(ステップA7)、所定量に達していなければ(「NO」) データバッファ6に対するデータの取り込みを継続する(ステップA8)。
When the
一方、ステップA7においてデータバッファ6に書き込まれたデータが所定量に達したと判断すると(「YES」)、特徴検出用ゲートアレイ5は、DMAコントローラ14を起動する(ステップA9)。すると、DMAコントローラ14は、データバッファ6からSDRAM11へのデータ転送を開始する。そして、特徴検出用ゲートアレイ5は、データの取り込みが終了していなければ(ステップA10,「NO」)、ステップA8に移行して取り込みを継続する。
尚、ステップA7〜A10の処理が行なわれている間においても、信号出力部7は、データバッファ6に書き込まれたデータが1走査ライン分に達する毎にタイミング信号を出力する。そして、本実施例では、バッファ・フルを判定する所定量を1走査ライン分に等しくなるように設定しておく。
On the other hand, if it is determined in step A7 that the data written in the
Even during the processing of steps A7 to A10, the signal output unit 7 outputs a timing signal each time the data written in the
図3は、CPU10側の処理内容を示すフローチャートである。CPU10は、先ずLED17を点灯させて露光を行い(ステップB0),続いてCCDセンサ1によって読み取られたデータの取り込み開始を指示する(ステップB0a)。即ち、タイミングジェネレータ2によりクロック信号の出力を開始させる。
それから、CPU10は、特徴検出用ゲートアレイ5によるデコード開始指示(ステップB1)または報知処理指示(ステップB2)があるまで待機している。そして、CPU10に対する割込みが発生し、CPU10がその割込み処理を行なうことでデコード開始指示が発生したことを認識すると(ステップB1,「YES」)、CPU10は、割込み制御回路15のビット設定によって情報コードの種類を判別する(ステップB4)。
FIG. 3 is a flowchart showing the processing contents on the
Then, the
それから、CPU10は、特徴検出用ゲートアレイ5によりタイミング信号が出力されるまで待機し(ステップB5)、タイミング信号が出力されると(「YES」)SDRAM11にアクセスして画像データを読み出す(ステップB6)。ここで、上記タイミング信号もCPU10に対する割り込みとして発生するが、その割り込みは、特徴検出用ゲートアレイ5がデコード開始指示を行うと同時に受付が許可されるように割込み制御回路15を設定する。
従って、ステップB5においてタイミング信号が出力された時点では、DMAコントローラ14によるSDRAM11に対する最初のデータ転送は完了しており、CPU10は、SDRAM11より画像データを読み出すことが可能となっている。
Then, the
Therefore, when the timing signal is output in step B5, the first data transfer to the
次に、CPU10は、ステップB4で判別した情報コードの種類に応じてそのデコード処理を行なう(ステップB7)。そして、情報コードの種類に応じたデータ量のデコードが完了すれば(ステップB8,「YES」)処理を終了し、デコードが完了していなければ(「NO」)ステップB5に戻る。
一方、CPU10は、特徴検出用ゲートアレイ5による報知処理指示が発生したことを認識した場合(ステップB2,「YES」)、ブザー16を鳴動させて読取り処理が失敗したことをユーザに報知する処理を行なう(ステップB3)。
Next, the
On the other hand, when the
図7(a)には、本実施例における処理の流れをタイミングチャートで示す。即ち、「露光」においてCCDセンサ1に読取られたデータを続く「取り込み」において特徴検出用ゲートアレイ5のデータバッファ6に取り込む処理に並行して、特徴検出部8における特徴検出処理が行なわれ、更に、データバッファ6のデータがSDRAM11に転送されて、CPU10によるデコード処理もデータ取り込みと並行して行われる。
そして、図7(b)には、従来の一般的な構成の情報コード読取装置における処理の流れを示す。即ち、一般的な従来構成では、画像メモリに全てのデータを書き込んだ後に、特徴検出処理、デコード処理がシリアルに行なわれるため、全工程が完了するまでに長い時間を要していたことが判る。
FIG. 7A is a timing chart showing the flow of processing in this embodiment. That is, the feature detection process in the
FIG. 7B shows the flow of processing in an information code reading device having a conventional general configuration. That is, in the general conventional configuration, after all the data is written in the image memory, the feature detection process and the decoding process are performed serially, so that it takes a long time to complete all the processes. .
以上のように本実施例によれば、CCDセンサ1によって読取られ、A/D変換された情報コードの画像信号データは先ず特徴検出ゲートアレイ5に入力され、特徴検出部8により情報コードに含まれている特徴パターンの検出が行なわれる。そして、その画像データはSDRAM11に転送され、CPU10は、信号出力部7が出力するタイミング信号に応じてSDRAM11に記憶されたデータをデコードする。
As described above, according to the present embodiment, the image signal data of the information code read and A / D converted by the
即ち、画像データが順次読み込まれる間に、特徴検出用ゲートアレイ5における情報コードの特徴パターン検出が先に行なわれ、それからCPU10によるデコードが行なわれる。従って、従来とは異なり、異なる処理を並行して行なうために複数フレームの画像メモリを必要とすることがなく低コストで構成することができる。そして、画像データの読み取りと特徴検出処理,デコード処理が並行して行なわれるので、情報コードのデコードをより速く完了することが可能となる。
That is, while the image data is sequentially read, the feature pattern detection of the information code in the feature
そして、信号出力部7は、CCDセンサ1が1走査ライン分の画像信号を出力する毎にタイミング信号を出力するので、例えば情報コードが1次元的に配列されているバーコードである場合は、デコードをより速く行なうことができる。
また、特徴検出部8は、情報コードがQRコードである場合は特徴パターンとしてファインダパターンを検出し、情報コードがバーコード又はPDF417である場合はバーの本数並びにバーの間隔比を検出し、情報コードがデータマトリクスである場合はL字パターンを検出する。従って、夫々の情報コードに対応した特徴を検出することができる。
Since the signal output unit 7 outputs a timing signal every time the
The
更に、DMAコントローラ14は、特徴検出用ゲートアレイ5が特徴パターンを検出すると起動され、データバッファ6に入力されたデジタルデータをSDRAM11に転送するので、CPU10は、情報コードの読取りが確実に行われたことが判別された場合にデコードを開始することになり、無用なデコード処理が行なわれることを回避できる。
加えて、特徴検出用ゲートアレイ5は、検出された特徴パターンに応じて情報コードの種類を判別し、その判別した種類をCPU10に伝達するので、CPU10は、最初から伝達された情報コードの種類に応じたデコード処理を行なうことができる。従って、CPU10自体が情報コードの種類を判別するための処理を行なう必要がないので、デコード処理を一層速く完了することが可能となる。
Further, the
In addition, the feature
(第2実施例)
図8及び図9は本発明の第2実施例であり、第1実施例と同一部分には同一符号を付して説明を省略し、以下異なる部分についてのみ説明する。図3相当図である図8において、CPU10は、デコード処理が終了してステップB8で「YES」と判断すると、タイミングジェネレータ2,特徴検出用ゲートアレイ5及びDMAコントローラ14に対してデータ取り込みを停止させるための指示を出力する(ステップB9)。
(Second embodiment)
8 and 9 show a second embodiment of the present invention. The same parts as those in the first embodiment are denoted by the same reference numerals and the description thereof is omitted. Only different parts will be described below. In FIG. 8, which is a diagram corresponding to FIG. 3, when the decoding process is completed and “YES” is determined in step B8, the
すると、タイミングジェネレータ2は、CCDセンサ1に対するクロック信号の出力を停止する。また、特徴検出用ゲートアレイ5は、データバッファ6に対するデータの書込みを停止し(その時点でステップA10において「YES」と判断する)、DMAコントローラ14は、データ転送処理を実行中であればその時点で転送を停止させる(図9参照)。
続いて、CPU10は、デコードが完了したことをユーザに対して報知する処理を行なう(ステップB10)。この報知処理は、前述したステップB3と同様に、ブザー16を鳴動させることで行なうようにする。
Then, the
Subsequently, the
以上のように第2実施例によれば、CPU10は、デコードが完了すると、その時点でCCDセンサ1による情報コードの取り込みを停止させるので、不要なデータを取り込むことが無く電力消費を低減することができる。また、CPU10は、デコードが完了した時点でブザー16を鳴動させてユーザに対する報知動作を行なうので、ユーザは、その報知によってデコードが完了したことを認識することができる。
As described above, according to the second embodiment, when the decoding is completed, the
(第3実施例)
図10及び図11は本発明の第3実施例であり、第1又は第2実施例と同一部分には同一符号を付して説明を省略し、以下異なる部分についてのみ説明する。図3相当図である図10において、CPU(再実行手段)10は、特徴検出用ゲートアレイ5より特徴検出の失敗が通知されてステップB3を実行すると、第2実施例と同様のステップB9を実行してデータの読み取りを停止させる。それから、ステップB0に戻り、直ちに次の読取りを行うための露光動作を開始させる。この場合の動作タイミングチャートは、図11に示すようになる。
(Third embodiment)
10 and 11 show a third embodiment of the present invention. The same parts as those in the first or second embodiment are denoted by the same reference numerals, and the description thereof is omitted. Only different parts will be described below. In FIG. 10 corresponding to FIG. 3, when the CPU (re-execution means) 10 is notified of the failure of feature detection from the feature
以上のように第3実施例によれば、CPU10は、特徴検出用ゲートアレイ5による情報コードの特徴パターン検出が失敗すると、その時点でCCDセンサ1による情報コードの読み取りを停止させ、新たな読取り動作を開始させるようにした。即ち、読取り対象となっている情報コード以外のものを読取ろうとしたり、或いは不鮮明で読取り不能な情報コードを読取ろうとした場合は、その読み取り動作は停止されて次の読み取り動作が実行される。従って、無用な読取り動作が継続されること無く、作業者は読取り作業をより効率的に行うことができる。
As described above, according to the third embodiment, when the feature pattern detection of the information code by the feature
(第4実施例)
図12及び図13は本発明の第4実施例を示すものであり、第2実施例と異なる部分についてのみ説明する。第4実施例では、情報コードを連続的に読取る場合を想定する。そして、1つの情報コードについてデコード処理が完了した場合は(ステップB8,「YES」)第2実施例と同様にステップB9,B10を実行する。それから、CPU(状態変化手段)10は、ステップB4で判別した情報コードの種類に応じて、ステップB0aにおけるデータ取り込みの所要時間を変化させる(ステップB11)。
(Fourth embodiment)
12 and 13 show a fourth embodiment of the present invention, and only the parts different from the second embodiment will be described. In the fourth embodiment, it is assumed that information codes are read continuously. When the decoding process is completed for one information code (step B8, “YES”), steps B9 and B10 are executed as in the second embodiment. Then, the CPU (state changing means) 10 changes the time required for data capture in step B0a according to the type of information code determined in step B4 (step B11).
即ち、情報コードの種類によっては記憶されているデータ容量が小さいため、データ取り込みに要する時間が短くても良い場合がある。例えば、QRコードに比較して、バーコードの読み取りに要する時間は短い。従って、初期状態として設定されていた取り込み時間がQRコードに併せて設定されている場合に、実際に読取ったデータがバーコードデータであった場合は、ステップB11においてそれに応じて取り込み時間が短くなるように再設定する。それから、ステップB0に移行して次の読取り動作を行なう。 That is, depending on the type of information code, since the stored data capacity is small, the time required for data capture may be short. For example, the time required to read a barcode is shorter than that of a QR code. Therefore, when the capture time set as the initial state is set together with the QR code and the actually read data is barcode data, the capture time is shortened accordingly in step B11. Reset as follows. Then, the process proceeds to step B0 and the next reading operation is performed.
以上のように第4実施例によれば、CPU10は、特徴検出用ゲートアレイ5によって検出される特徴パターンに基づいて情報コードの種類を判別し、判別した種類に応じてCCDセンサ1による情報コードデータの取り込み時間、即ち読取り状態を変化させるようにした。従って、情報コード読取装置が多種類の情報コードの読み取りに対応している場合に、判別した種類に応じて読取り状態を変化させれば、夫々の情報コードに応じた適切な読み取りを行なうことで読取り処理を効率化することができる。
As described above, according to the fourth embodiment, the
(第5実施例)
図14及び図15は本発明の第5実施例を示すものである。第5実施例では、タイミングジェネレータ2のクロックレートが十分高く設定されていると共に、DMAコントローラ14によるデータ転送処理も十分高速に行なわれるため、特徴検出用ゲートアレイ5が特徴パターンの検出を行なっている間に、SDRAM11に対するデコード対象となるデータの転送が完了するように構成されている場合を想定する。
(5th Example)
14 and 15 show a fifth embodiment of the present invention. In the fifth embodiment, the clock rate of the
図2相当図である図14において、特徴検出用ゲートアレイ5は、ステップA11において「NO」と判断した場合にステップA7の判断を行い、「YES」と判断するとその時点でDMAコントローラ14を起動する(ステップA9)。それから、ステップA1に戻る。
そして、特徴パターンが正常に検出されると(ステップA4,「YES」)、データ取り込みの停止を指示する(ステップA13)。ここでの処理は、第2実施例においてはCPU10が行ったステップB9と同様の処理であり、第5実施例ではCPU10に代わって特徴検出用ゲートアレイ5が実行する。それから、ステップA5,A6を実行して処理を終了する。
In FIG. 14, which corresponds to FIG. 2, the feature
When the feature pattern is normally detected (step A4, "YES"), the stop of data capture is instructed (step A13). The processing here is the same processing as step B9 performed by the
即ち、この場合の処理は図15のタイミングチャートで表される。CPU10は、データ取り込みが停止された後に、SDRAM11からデータを読み出してデコード処理を行なう。
That is, the process in this case is represented by the timing chart of FIG. The
以上のように第5実施例によれば、特徴検出用ゲートアレイ5が特徴パターンの検出を完了すると、CCDセンサ1による情報コードの取り込みを停止するようにした。即ち、DMAコントローラ14によるデコード対象データの転送処理が特徴パターンの検出を行なっている間に全て完了していれば、後はCPU10がデコード処理を行なうだけで良い。従って、データを過剰に取り込むことを防止して電力消費を低減することができる。
As described above, according to the fifth embodiment, when the feature
本発明は上記し且つ図面に記載した実施例にのみ限定されるものではなく、以下のような変形又は拡張が可能である。
例えば第1実施例において、特徴検出用ゲートアレイ5からCPU10に対して判別した情報コードの種類を伝達する処理を行なわずに、CPU10は、デコード開始が指示されるとデコード処理の中で情報コードの種類を判別するようにしても良い。
情報コード読取装置は、必ずしも複数種類の情報コードに対応する必要はなく、何れかの種類にのみ対応するように構成しても良いし、例えばスイッチ設定によって外部的に対応切替を行なうように構成しても良い。
信号出力部7によるタイミング信号は、必ずしも1走査ライン毎に出力する必要はない。また、特徴検出用ゲートアレイ5の内部で特徴検出部8が使用するタイミング信号と、CPU10に対して出力するタイミング信号は、異なるタイミングで出力されるものでも良い。
The present invention is not limited to the embodiments described above and shown in the drawings, and the following modifications or expansions are possible.
For example, in the first embodiment, without performing the process of transmitting the discriminated information code type from the feature
The information code reader does not necessarily need to support a plurality of types of information codes, and may be configured to support only one of the types, or may be configured to perform correspondence switching externally by switch setting, for example. You may do it.
The timing signal from the signal output unit 7 is not necessarily output for each scanning line. The timing signal used by the
更に、信号出力部7を削除して、CPU10が自身の処理タイミングに基づいてデコード処理を行うようにしても良い。
コスト的に問題が無ければ、別途CPUを用いることで特徴検出用ゲートアレイ5の機能をソフトウエアによって実現しても良い。
第2実施例において、データの取り込みを停止させる場合には、CCDセンサ1やタイミングジェネレータ2等の電源供給を停止させても良い。
第5実施例において、データ取り込み時間を変更することに加えて、或いはそれに代えて、CCDセンサ1による読取り解像度を変化させても良い。例えば、初期設定がQRコードである場合に、実際に読み込んだものがマイクロQRコードやバーコードである場合には、解像度を低下させたり、CCDセンサ1の読取りエリアの一部だけをアクティブにするように切替えても良い。
Further, the signal output unit 7 may be deleted, and the
If there is no problem in cost, the function of the feature
In the second embodiment, when the data capture is stopped, the power supply to the
In the fifth embodiment, the reading resolution by the
1はCCDセンサ(受光センサ)、4はA/D変換回路、5は特徴検出用ゲートアレイ、7は信号出力部(信号出力回路)、8は特徴検出部(特徴検出回路)、10はCPU(デコード手段,報知手段,再実行手段,状態変化手段)、11はSDRAM(画像メモリ)、14はDMAコントローラ(データ転送回路)、16はブザー(報知手段)を示す。 1 is a CCD sensor (light receiving sensor), 4 is an A / D conversion circuit, 5 is a feature detection gate array, 7 is a signal output unit (signal output circuit), 8 is a feature detection unit (feature detection circuit), and 10 is a CPU. (Decoding means, notification means, re-execution means, state change means), 11 is an SDRAM (image memory), 14 is a DMA controller (data transfer circuit), and 16 is a buzzer (notification means).
Claims (6)
前記画像信号をA/D変換するA/D変換回路と、
このA/D変換回路より出力されるデジタルデータが入力され、前記情報コードに含まれている特徴パターンを検出する特徴検出回路と、
前記特徴検出回路に入力されたデジタルデータを画像メモリに転送するデータ転送回路と、
前記画像メモリに記憶されたデータをデコードするデコード手段と、
前記特徴検出回路によって前記情報コードのコードパターンが許容値を外れていると判断されると、その時点で前記受光センサによる情報コードの読み取りを停止させ、新たな読取り動作を開始させる再実行手段とを備えることを特徴とする情報コード読取装置。 A light receiving sensor for optically reading an information code and outputting an image signal;
An A / D conversion circuit for A / D converting the image signal;
A feature detection circuit that receives digital data output from the A / D conversion circuit and detects a feature pattern included in the information code;
A data transfer circuit for transferring digital data input to the feature detection circuit to an image memory;
Decoding means for decoding data stored in the image memory;
Re-execution means for stopping the reading of the information code by the light receiving sensor and starting a new reading operation at that time when the code pattern of the information code is determined to be out of an allowable value by the feature detection circuit; An information code reading device comprising:
前記画像信号をA/D変換する過程と、
A/D変換されたデジタルデータに基づいて、特徴検出回路が前記情報コードに含まれている特徴パターンを検出する過程と、
前記デジタルデータを前記特徴検出回路から画像メモリに転送する過程と、
前記画像メモリに記憶されたデータをデコードする過程と、
前記特徴検出回路によって前記情報コードのコードパターンが許容値を外れていると判断されると、その時点で前記受光センサによる情報コードの読み取りを停止させ、新たな読取り動作を開始させる過程とからなることを特徴とする情報コード読取り方法。 A process of optically reading an information code by a light receiving sensor and outputting an image signal;
A / D converting the image signal;
A feature detection circuit detecting a feature pattern included in the information code based on the A / D converted digital data;
Transferring the digital data from the feature detection circuit to an image memory;
Decoding the data stored in the image memory;
When the feature detection circuit determines that the code pattern of the information code is out of an allowable value, the process includes a process of stopping reading of the information code by the light receiving sensor and starting a new reading operation at that time. An information code reading method characterized by the above .
その判別した種類に応じて前記情報コードをデコードすることを特徴とする請求項4記載の情報コード読取り方法。5. The information code reading method according to claim 4, wherein the information code is decoded according to the determined type.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008006996A JP4553014B2 (en) | 2008-01-16 | 2008-01-16 | Information code reading apparatus and information code reading method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008006996A JP4553014B2 (en) | 2008-01-16 | 2008-01-16 | Information code reading apparatus and information code reading method |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003121821A Division JP4321103B2 (en) | 2003-04-25 | 2003-04-25 | Information code reading apparatus and information code reading method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2008102970A JP2008102970A (en) | 2008-05-01 |
JP4553014B2 true JP4553014B2 (en) | 2010-09-29 |
Family
ID=39437199
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008006996A Expired - Fee Related JP4553014B2 (en) | 2008-01-16 | 2008-01-16 | Information code reading apparatus and information code reading method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4553014B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6520659B2 (en) * | 2015-11-17 | 2019-05-29 | 富士通株式会社 | Symbol detection device, image processing device, and symbol detection method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS61290578A (en) * | 1985-06-19 | 1986-12-20 | Fujitsu Ltd | Bar code reader |
JPH07334609A (en) * | 1994-06-09 | 1995-12-22 | Nippondenso Co Ltd | Bar code reading device |
JPH10198753A (en) * | 1997-01-07 | 1998-07-31 | Denso Corp | Two-dimensional code reader |
JP2002133365A (en) * | 2000-10-27 | 2002-05-10 | Matsushita Electric Ind Co Ltd | Mark reader |
-
2008
- 2008-01-16 JP JP2008006996A patent/JP4553014B2/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS61290578A (en) * | 1985-06-19 | 1986-12-20 | Fujitsu Ltd | Bar code reader |
JPH07334609A (en) * | 1994-06-09 | 1995-12-22 | Nippondenso Co Ltd | Bar code reading device |
JPH10198753A (en) * | 1997-01-07 | 1998-07-31 | Denso Corp | Two-dimensional code reader |
JP2002133365A (en) * | 2000-10-27 | 2002-05-10 | Matsushita Electric Ind Co Ltd | Mark reader |
Also Published As
Publication number | Publication date |
---|---|
JP2008102970A (en) | 2008-05-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10997386B2 (en) | Image data transmission system and image data transmission method | |
US6947612B2 (en) | Methods and apparatus for image capture and decoding in a centralized processing unit | |
JP2007521575A5 (en) | ||
JP4321103B2 (en) | Information code reading apparatus and information code reading method | |
JP4553014B2 (en) | Information code reading apparatus and information code reading method | |
JP4475332B2 (en) | Information code reading apparatus and information code reading method | |
US8436915B2 (en) | Image processing apparatus | |
US7353999B2 (en) | Graphical code reader configured for data collection and decoding | |
US20110185161A1 (en) | Electronic device and method for detecting operative states of components in the electronic device | |
JP2011181029A (en) | Data transfer control device | |
JP2016076076A (en) | Storage control device and control method of storage control device | |
WO2018194837A1 (en) | Method and apparatus for accelerated data decoding | |
KR102679016B1 (en) | Image sensor chip, electronic device, and method for operating the image sensor chip | |
JP2008269410A (en) | Optical information reader | |
JP4420033B2 (en) | Information reader | |
CN117939047A (en) | Image data transmission method, system, device and storage medium | |
JP2009026226A (en) | Failure notification device | |
JP2012002838A (en) | Panel drive processing device | |
JP2007041477A (en) | Display device | |
JPH10336562A (en) | Memory controller, data write/read method and image-pickup device | |
JP2002024751A (en) | Bar code device and recording medium | |
JP2002157163A (en) | Image processing device and method | |
JPH01297778A (en) | Code reader | |
JP3011166B2 (en) | Debug circuit | |
JP2021111803A (en) | Communication device and processing method for communication device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080116 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20100208 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100216 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100413 |
|
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: 20100622 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20100705 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130723 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 4553014 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130723 Year of fee payment: 3 |
|
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: 20130723 Year of fee payment: 3 |
|
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 |
|
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 |
|
LAPS | Cancellation because of no payment of annual fees |