JPH03232080A - Bar code reader - Google Patents

Bar code reader

Info

Publication number
JPH03232080A
JPH03232080A JP2027247A JP2724790A JPH03232080A JP H03232080 A JPH03232080 A JP H03232080A JP 2027247 A JP2027247 A JP 2027247A JP 2724790 A JP2724790 A JP 2724790A JP H03232080 A JPH03232080 A JP H03232080A
Authority
JP
Japan
Prior art keywords
scanning
barcode
memory
pixel
recognition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2027247A
Other languages
Japanese (ja)
Inventor
Shigenobu Sato
重信 佐藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP2027247A priority Critical patent/JPH03232080A/en
Publication of JPH03232080A publication Critical patent/JPH03232080A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the read rate of a bar code of low quality by main- scanning the inside of a memory in plural subscanning directions at a time and using the true value of a notices picture element out of plural obtained picture elements to generate new scanning data. CONSTITUTION:A scanning means main-scans the inside of a memory 5 in plural subscanning directions at a time at the time of scanning a bar code image in the memory 5. An arithmetic means uses picture element information around the noticed picture element out of plural picture elements obtained by the scanning means to calculate the true value of the noticed picture element. A scanning data generating means uses the true value of the noticed picture element calculated by the arithmetic means to generate new scanning data. A recognizing part 6 constitutes the scanning means, the arithmetic means, and the scanning data generating means. Thus, the read rate of the bar code of low quality is improved to increase the recognition speed.

Description

【発明の詳細な説明】 〔発明の目的〕 (産業上の利用分野) 本発明は、バーコードを光学的に読み取るバーコード読
取装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to a barcode reading device that optically reads barcodes.

(従来の技術) 従来のバーコード読取装置にて、第6図に示したような
バーコードの読み取りを行う場合、先ずメモリに格納し
たバーコードイメージ20に対して1ビット幅の走査2
1を行い、この走査により得られた前記バーコードイメ
ージに対応した1、0の画素数をカウントしてランレン
グスデータを作成する。こうして得られたランレングス
データとバーコードパターンとのマツチングを行って前
記バーコードの読み取りが行われる。しかし、従来のバ
ーコード読取装置の上記走査にて読み取ったバーコード
が正しくコード化されなかった場合、再び前記1ビット
幅の走査21を行ってバーコードの再読み取りを行わな
ければならなかった。
(Prior Art) When reading a barcode as shown in FIG. 6 with a conventional barcode reading device, first, a barcode image 20 stored in a memory is scanned with a 1-bit width.
1, and the number of 1 and 0 pixels corresponding to the barcode image obtained by this scanning is counted to create run length data. The barcode is read by matching the run length data thus obtained with the barcode pattern. However, if the barcode read by the above-mentioned scanning of the conventional barcode reading device is not correctly coded, the 1-bit width scanning 21 has to be performed again to read the barcode again.

しかし、上記のような従来のバーコードの読取方式では
、第6図に示したバーコードに汚れやかすれがあった場
合に前記1ビット幅の走査では認識率が悪く、再走査を
何度か繰り返さなければならないという欠点があった。
However, with the conventional barcode reading method as described above, when the barcode shown in Figure 6 is dirty or faded, the recognition rate is poor with the 1-bit width scanning, and rescanning is required several times. The disadvantage was that it had to be repeated.

従って一つの走査によって認識が終了しないことによる
スループットの低下が生じ、認識速度が低下するという
不都合があった。
Therefore, there is an inconvenience that the recognition is not completed in one scan, resulting in a decrease in throughput and a decrease in the recognition speed.

(発明が解決しようとする課題) 上記のような従来のバーコードの読取装置によれば、メ
モリ内のバーコードイメージに対して1ビット幅の走査
しか行わないため、バーコードに汚れやかすれがあると
認識率が低下して、前記走査を繰り返すことが多くなり
、スルーブツトが低下して認識速度が悪化するという欠
点があった。
(Problems to be Solved by the Invention) According to the conventional barcode reading device as described above, only 1-bit width scanning is performed on the barcode image in the memory, so the barcode may be smudged or blurred. If this happens, the recognition rate decreases, the scanning is often repeated, the throughput decreases, and the recognition speed deteriorates.

そこで本発明は上記の欠点を除去するもので、低品質の
バーコードに対する読み取り率を向上させて認識速度を
向上させたバーコード読取装置を提供することを目的と
している。
SUMMARY OF THE INVENTION The present invention aims to eliminate the above-mentioned drawbacks and to provide a barcode reading device that improves the reading rate for low-quality barcodes and improves the recognition speed.

〔発明の構成〕 (課題を解決するための手段) 本発明は帳票等に記載されたバーコードを光電変換して
得なバーコードイメージをメモリに格納した後、このメ
モリ内のバーコードイメージを走査して得た走査データ
に基づいて前記バーコードの認識を行うバーコード読取
装置において、前記メモリ内のバーコードイメージを走
査する際に、複数の副走査方向に亙って一度に前記メモ
リ内を主走査する走査手段と、この走査手段によって得
られた複数の画素の中の注目画素の近傍の画素情報を用
いて前記注目画素の真値を算出する演算手段と、この演
算手段によって算出された注目画素の真値を用いて新た
な走査データを生成する走査データ生成手段とを具備し
た構成を有する。
[Structure of the Invention] (Means for Solving the Problems) The present invention photoelectrically converts a barcode written on a form, etc., stores a good barcode image in a memory, and then converts the barcode image in this memory into a memory. In a barcode reading device that recognizes the barcode based on scan data obtained by scanning, when scanning the barcode image in the memory, the barcode image in the memory is scanned at once in a plurality of sub-scanning directions. a scanning means for main-scanning a pixel of interest, a calculation means for calculating a true value of the pixel of interest using pixel information in the vicinity of the pixel of interest among the plurality of pixels obtained by the scanning means; The scan data generating means generates new scan data using the true value of the pixel of interest.

(作用) 本発明のバーコード読取装置において、走査手段はメモ
リ内のバーコードイメージを走査する際に、複数の副走
査方向に互って一度に前記メモリ内を主走査する。演算
手段は前記走査手段によって得られた複数の画素の中の
注目画素の近傍の画素情報を用いて前記注目画素の真値
を算出する。
(Function) In the barcode reading device of the present invention, when scanning the barcode image in the memory, the scanning means performs main scanning in the memory at once in a plurality of sub-scanning directions. The calculation means calculates the true value of the pixel of interest using pixel information in the vicinity of the pixel of interest among the plurality of pixels obtained by the scanning means.

走査データ生球手段は前記演算手段によって算出された
注目画素の真値を用いて新たな走査データを生成する。
The scan data raw sphere means generates new scan data using the true value of the pixel of interest calculated by the calculation means.

(実施例) 以下、本発明の一実施例を図面を参照して説明する。第
1図は本発明のバーコード読取装置の一実施例を示した
ブロック図である。1はバーコードが記載されている帳
票、2は帳票1上のバーコードの像を光電変換して画像
データとして読み込む光電変換部、3は光電変換部2か
ら出力された画像データを増幅するアンプ、4はアンプ
3から入力される画像データ(アナログデータ)を量子
化してデジタル信号に変換するA/D変換器、3はデジ
タル化された画像データ即ちバーコードのイメージを格
納するメモリ部、6はメモリ部5に格納されたバーコー
ドイメージを読み出してバーコードの認識処理を行う認
識部である。
(Example) Hereinafter, an example of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of the barcode reading device of the present invention. 1 is a form on which a barcode is written; 2 is a photoelectric conversion unit that photoelectrically converts the barcode image on the form 1 and reads it as image data; 3 is an amplifier that amplifies the image data output from the photoelectric conversion unit 2. , 4 is an A/D converter that quantizes the image data (analog data) inputted from the amplifier 3 and converts it into a digital signal; 3 is a memory unit that stores the digitized image data, that is, the barcode image; 6 is a recognition unit that reads the barcode image stored in the memory unit 5 and performs barcode recognition processing.

ここで、認識部6は走査手段、演算手段および走査デー
タ生成手段を構成する。
Here, the recognition unit 6 constitutes a scanning means, a calculating means, and a scanning data generating means.

次に本実施例の動作について説明する。まず、帳票1に
記載されているバーコード部分を光電変換部2にて光電
変換し、得られた画像データをアンプ3を介してA/D
変換器4に出力する。A/D変換器4では入力画像デー
タをデジタル化し、このデジタル化した画像データ即ち
、バーコードイメージをメモリ部5に格納する。認識部
6はメモリ部5に格納されているバーコードイメージを
第2図で示す如く副走査方向に3ビット分−度に主走査
する。
Next, the operation of this embodiment will be explained. First, the barcode portion written on the form 1 is photoelectrically converted by the photoelectric conversion unit 2, and the obtained image data is sent to the A/D converter via the amplifier 3.
Output to converter 4. The A/D converter 4 digitizes the input image data, and stores the digitized image data, that is, the barcode image, in the memory section 5. The recognition unit 6 main-scans the barcode image stored in the memory unit 5 by 3 bits in the sub-scanning direction as shown in FIG.

第3図はこの認識部6の前記バーコードイメージの走査
方法の詳細を示した図である。認識部6はNl、N、N
+1ラインの副走査方向で3ビット分の主走査を一度に
行う。この際、認識部6はMビット目にマスクaをか(
す、M+1ビット目にマスクbを順次掛けて各ビットの
走査を行い、その結果、認識部6は図中10で示したよ
うな走査データ(画素データ)を得る。これにより、認
識部6が正常な認識を行えば処理を終了し、正常な認識
ができなかった場合は以下に述べるような別の認識処理
を行う。
FIG. 3 is a diagram showing details of the scanning method of the barcode image by the recognition section 6. As shown in FIG. The recognition unit 6 has Nl, N, N
Main scanning for 3 bits is performed at one time in the sub-scanning direction of +1 line. At this time, the recognition unit 6 applies mask a to the Mth bit (
Then, each bit is scanned by sequentially applying mask b to the M+1 bit, and as a result, the recognition unit 6 obtains scan data (pixel data) as shown by 10 in the figure. As a result, if the recognition unit 6 performs normal recognition, the process ends, and if normal recognition cannot be performed, another recognition process as described below is performed.

別の認識処理にて、認識部6は第4図に示したようなマ
スク11をメモリ部5を走査して得なデ−夕にかける。
In another recognition process, the recognition section 6 scans the memory section 5 with a mask 11 as shown in FIG. 4 and applies the mask 11 to the desired data.

その後、認識部6は前記マスク11をかけて得られたデ
ータを次式に当てはめてマスク内の画素の総和を求める
。この際、黒丸を1、白丸を0とカウントする。
Thereafter, the recognition unit 6 applies the data obtained by applying the mask 11 to the following equation to obtain the sum of pixels within the mask. At this time, black circles are counted as 1 and white circles as 0.

Y=X+A+B+C+D・・・・・・(1)但し、Xを
注目画素とする。
Y=X+A+B+C+D (1) However, X is the pixel of interest.

この結果¥≧3であった場合注目画素X=1、他の場合
は注目画素X=0と認識する。このようにして認識部6
は第3図の10で示したような走査データを求めてバー
コードの認識を行う。ここで、第3図の例ではA=1、
B=1、C=1、D=O1X=0であるから、これらの
関係を(1)式に代入するとY=3になり、従って、X
=1と決定される。
As a result, if ¥≧3, the pixel of interest is recognized as X=1, and in other cases, the pixel of interest is recognized as X=0. In this way, the recognition unit 6
obtains scanning data as shown at 10 in FIG. 3 and performs barcode recognition. Here, in the example of Fig. 3, A=1,
Since B=1, C=1, D=O1X=0, substituting these relationships into equation (1) yields Y=3, and therefore,
=1 is determined.

しかし、このようにしても正しい認識を行うことができ
ない場合、認識部6は第5図で示すようなマスク12を
メモリ部5内を走査して得たデータにかける。その後、
認識部6は前記マスク12をかけて得られたデータを(
1)式に当てはめてマスク内の画素の総和を求める。そ
の結果、Y≧3であれば注目画素X=1、その他の場合
は注目画素X=0として、第3図の10で示したような
走査データを求めてバーコードの認識を行う。
However, if correct recognition cannot be performed even with this method, the recognition section 6 applies a mask 12 as shown in FIG. 5 to the data obtained by scanning the inside of the memory section 5. after that,
The recognition unit 6 applies the mask 12 to the data obtained by (
1) Find the total sum of pixels within the mask by applying the equation. As a result, if Y≧3, the pixel of interest is set to X=1; otherwise, the pixel of interest is set to X=0, and scanning data as shown at 10 in FIG. 3 is obtained to perform barcode recognition.

この方法にても、認識部6がバーコードの認識をするこ
とができない場合は、メモリ5内の走査位置を変更して
上記の動作を繰り返す。
Even with this method, if the recognition unit 6 is unable to recognize the barcode, the scanning position in the memory 5 is changed and the above operation is repeated.

本実施例によれば、メモリ5内に格納されているバーコ
ードイメージを副走査方向で3ビット分1度に主走査し
、通常はその内の1ビット分の走査データに基づいてバ
ーコードの認識を行うが、これにより認識できなかった
場合、注目画素の周囲のデータを考慮して前記注目画素
の真の値を求めることにより、前記バーコードの正しい
認識を行うため、認識部6はメモリ部5に対する1回の
アクセスにて低品質のバーコードを正確に読み取ること
ができるようになり、リトライ回数を削減して認識速度
を向上させることができる。
According to this embodiment, the barcode image stored in the memory 5 is main-scanned for 3 bits at a time in the sub-scanning direction, and the barcode is normally scanned based on the scanning data for 1 bit of the scanned image. Recognition is performed, but if recognition fails, the recognition unit 6 uses memory in order to correctly recognize the barcode by calculating the true value of the pixel of interest in consideration of data surrounding the pixel of interest. A low-quality barcode can be read accurately with one access to the section 5, and the number of retries can be reduced and recognition speed can be improved.

〔発明の効果〕〔Effect of the invention〕

以上記述した如く本発明のバーコード読取装置によれば
、低品質のバーコードに対する読み取り率を向上させて
認識速度を向上させることができる。
As described above, according to the barcode reading device of the present invention, the reading rate for low-quality barcodes can be improved and the recognition speed can be improved.

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

第1図は本発明のバーコード読取装置の一実施例を示し
たブロック図、第2図は第1図に示した認識部のメモリ
部に対する走査方法を示した図、第3図は第2図に示し
た走査方法の詳細を説明する図、第4図及び第5図は第
1図に示した認識部が走査データに対してかけるマスク
例を示した図、第6図は従来のバーコード読取装置の走
査方法例を示した図である。 1・・・惧票      2・・・光電変換部4・・・
A/D変換器  5・・・メモリ部6・・・認識部
FIG. 1 is a block diagram showing an embodiment of the barcode reading device of the present invention, FIG. 2 is a diagram showing a scanning method for the memory section of the recognition section shown in FIG. 1, and FIG. Figures 4 and 5 are diagrams explaining the details of the scanning method shown in the figure, Figures 4 and 5 are diagrams showing examples of masks applied to scanned data by the recognition unit shown in Figure 1, and Figure 6 is a diagram illustrating the conventional masking method. It is a figure showing an example of a scanning method of a code reading device. 1... Concern vote 2... Photoelectric conversion section 4...
A/D converter 5...Memory section 6...Recognition section

Claims (1)

【特許請求の範囲】[Claims] 帳票等に記載されたバーコードを光電変換して得たバー
コードイメージをメモリに格納した後、このメモリ内の
バーコードイメージを走査して得た走査データに基づい
て前記バーコードの認識を行うバーコード読取装置にお
いて、前記メモリ内のバーコードイメージを走査する際
に、複数の副走査方向に亙って一度に前記メモリ内を主
走査する走査手段と、この走査手段によって得られた複
数の画素の中の注目画素の近傍の画素情報を用いて前記
注目画素の真値を算出する演算手段と、この演算手段に
よって算出された注目画素の真値を用いて新たな走査デ
ータを生成する走査データ生成手段とを具備したことを
特徴とするバーコード読取装置。
After storing a barcode image obtained by photoelectrically converting a barcode written on a form or the like into a memory, the barcode is recognized based on the scan data obtained by scanning the barcode image in the memory. In the barcode reading device, when scanning the barcode image in the memory, a scanning means for main scanning the memory in a plurality of sub-scanning directions at once; A calculation means for calculating the true value of the pixel of interest using pixel information in the vicinity of the pixel of interest among the pixels, and scanning for generating new scanning data using the true value of the pixel of interest calculated by the calculation means. A barcode reading device comprising data generation means.
JP2027247A 1990-02-08 1990-02-08 Bar code reader Pending JPH03232080A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2027247A JPH03232080A (en) 1990-02-08 1990-02-08 Bar code reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2027247A JPH03232080A (en) 1990-02-08 1990-02-08 Bar code reader

Publications (1)

Publication Number Publication Date
JPH03232080A true JPH03232080A (en) 1991-10-16

Family

ID=12215746

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2027247A Pending JPH03232080A (en) 1990-02-08 1990-02-08 Bar code reader

Country Status (1)

Country Link
JP (1) JPH03232080A (en)

Similar Documents

Publication Publication Date Title
US7764835B2 (en) Method and apparatus for recognizing code
US4646355A (en) Method and apparatus for input picture enhancement by removal of undersired dots and voids
CA2013232C (en) Image reduction system
US20060243888A1 (en) Device and methods for the acquisition and automatic processing of data obtained from optical codes
US5550363A (en) Optical information reading apparatus
US5271072A (en) Image reduction of binary images using filtering processing
JPH03232080A (en) Bar code reader
US5642203A (en) Method of enlarging and processing image data
EP0470266A1 (en) Image processor
JPS6146875B2 (en)
JP3014257B2 (en) Document reading device
JP3358132B2 (en) Image processing device
JPS6259512B2 (en)
JPH0654941B2 (en) Image processing device
JPH06253141A (en) Picture reader
JPH06251194A (en) Optical information reader
JPS61264484A (en) Hand scanner type picture input device
JPS6026340B2 (en) High-density predictive restoration method for sampled images
JPS62152093A (en) Character picture binary-coding device
JPS59108173A (en) Input device of optical character picture
JPH04151785A (en) Optical character reader
JPS62118484A (en) Picture processing method
JPS61137468A (en) Image processor
JPH0683950A (en) Smoothing interpolation system for facsimile equipment or printer
JPS59135573A (en) Identifying system of photo region