JPH02125385A - Image signal processing device - Google Patents
Image signal processing deviceInfo
- Publication number
- JPH02125385A JPH02125385A JP1043727A JP4372789A JPH02125385A JP H02125385 A JPH02125385 A JP H02125385A JP 1043727 A JP1043727 A JP 1043727A JP 4372789 A JP4372789 A JP 4372789A JP H02125385 A JPH02125385 A JP H02125385A
- Authority
- JP
- Japan
- Prior art keywords
- data
- barcode
- scanning
- contour
- image signal
- 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
Links
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Abstract] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
産業上の利用分野
本発明はファクシミリのように走査した画像デ−夕から
バーコード領域を抽出し復号化する画像信号処理装置に
関するものである。DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an image signal processing apparatus for extracting and decoding a barcode area from scanned image data such as in a facsimile.
従来の技術
従来、スーパーマーケットなどの物流関係や各方面でバ
ーコードが数多く使用されておシその多くは複数方向の
走査パターンを有する方式で、使用するバーコードラベ
ル上を少なくとも1走査は正しく走査するように構成し
ている。(日経エレクトロニクス 1980.12.2
2.P142バーコードリーダの種類)
発明が解決しようとする課題
しかし、ファクシミリ走査のように1方向走査の画像デ
ータの中からバーコード領域を抽出して正しく読み出す
方式及び装置の従来例は見当たらない。本発明はバーコ
ード領域を正しく抽出し、そのバーコードを正確に復号
することのできる画像信号処理装置を提供するものであ
る。Conventional technology In the past, many barcodes have been used in logistics and other fields such as supermarkets, and most of them have a scanning pattern in multiple directions, in which at least one scan is made correctly on the barcode label being used. It is configured as follows. (Nikkei Electronics 1980.12.2
2. P142 Types of Barcode Readers) Problems to be Solved by the Invention However, there are no conventional methods and devices for extracting and correctly reading a barcode area from image data scanned in one direction, such as in facsimile scanning. The present invention provides an image signal processing device that can correctly extract a barcode area and accurately decode the barcode.
課題を解決するための手段
上記目的を達成するため、本発明の技術的解決手段は入
力画像信号を2値化して記憶手段に記憶するとともに、
前記2値データを輪郭データに変換し、前記輪郭データ
を膨張処理することによりバ−コード領域を塗り潰し、
前記塗り潰したバーコード領域が消滅しない程度・の大
きさで、前記膨張したデータをm×mマスクで収縮した
後主走査・副走査方向とも1 / mのデータ間引きに
よる縮小と前記縮小データを収縮処理することにより背
景画像を消去し、残ったバーコード領域データの傾きと
中心点を算出した後、前記記憶手段から傾き角方向にデ
ータを読みだしバーコードの復号を行うものである。Means for Solving the Problems In order to achieve the above object, the technical solution of the present invention binarizes an input image signal and stores it in a storage means,
converting the binary data into contour data and expanding the contour data to fill the barcode area;
After contracting the expanded data with an m×m mask to a size that does not erase the filled barcode area, the data is reduced by 1/m data thinning in both the main scanning and sub-scanning directions, and the reduced data is contracted. After the background image is erased by processing and the inclination and center point of the remaining barcode area data are calculated, the data is read out from the storage means in the direction of the inclination angle and the barcode is decoded.
作 用
本発明は上記構成で、バーコードの各バーが平行である
特徴を使ったバーコード領域塗り潰しを行った後、収縮
と縮小とさらに収縮処理を行い。Operation The present invention has the above-mentioned configuration, and after filling the barcode area using the feature that each bar of the barcode is parallel, it performs shrinkage, reduction, and further shrinkage processing.
バーコードの中心領域を残し背景画像を消去する。Delete the background image, leaving the center area of the barcode.
残ったバーコードの中心領域からバーコードの中心と傾
きを求めバーコードの傾き角方向にメモリからデータを
読み出すことによりバーコードラベルが入力原稿の任意
方向に貼られていても復号化が可能であるようにしたも
のである0画像の輪郭データに対して膨張処理を行うの
は広い面積をもつ背景画像を無くし後の収縮で消去可能
にするためである。また、主走査・副走査方向とも1
/ mに縮小する前にm×mの収縮を行うのは縮小によ
り背景画像の白(データ=0)が間引かれて黒(データ
=1)が連結し、バーコード領域よシ大きな面積の背景
画像の黒領域を作らないようにするためである。By determining the center and inclination of the barcode from the center area of the remaining barcode and reading data from memory in the direction of the inclination angle of the barcode, decoding is possible even if the barcode label is attached in any direction on the input document. The reason why the expansion process is performed on the outline data of the 0 image is to eliminate the background image having a large area, so that it can be erased by subsequent contraction. Also, both the main scanning and sub-scanning directions are 1
/ m x m contraction is performed before reducing the size of the background image because the white (data = 0) of the background image is thinned out and the black (data = 1) is connected, resulting in a larger area than the barcode area. This is to avoid creating a black area in the background image.
実施例
第1図は本発明の一実施例における画像信号処理装置の
ブロック構成図である。第1因において、1は入力画像
信号(多値)の入力端子、2は入力端子lの入力画像信
号を一部レベルの閾値で2値化する2値化回路、3は2
値化した信号を記憶する2値データメモリ、4は2値化
した信号の輪郭データを出力する輪郭検出回路、5は輪
郭データを走査する走査窓内データの論理和を取り出力
する膨張処理によりバーコードの輪郭データ間を塗り潰
す輪郭信号膨張回路、6は膨張データを走査するm×m
走査窓内データの論理積を取り出力する収縮処理を行う
m×m収縮回路、7はm×m収縮データの主走査・副走
査とも1/m間引き入力による縮小とその縮小データを
走査する走査窓内データの論理積をとり出力する収縮処
理によりバーコード領域の一部を残し背景画像領域を消
去する縮小・収縮回路、8は収縮したデータからバーコ
ード領域の傾きと中心を演算する傾き・中心演算回路、
9は傾き方向に従って2値データメモリ3からデータを
読み出すアドレス演算回路、10はメモリの読みだしデ
ータからバーコードを復号するバーコード復号化回路で
ある。Embodiment FIG. 1 is a block diagram of an image signal processing apparatus in an embodiment of the present invention. In the first factor, 1 is the input terminal of the input image signal (multilevel), 2 is the binarization circuit that binarizes the input image signal of the input terminal l using a partial level threshold, and 3 is the 2
A binary data memory stores the digitized signal, 4 is a contour detection circuit that outputs the contour data of the digitized signal, and 5 is an expansion processing circuit that scans the contour data and calculates the logical sum of the data within the scanning window and outputs it. Contour signal expansion circuit that fills in between the contour data of the barcode, 6 is m×m that scans the expansion data
An m×m contraction circuit performs a contraction process that takes the logical product of the data within the scanning window and outputs it. 7 is a reduction circuit that performs a contraction process that takes the logical product of the data within the scanning window and outputs it. 7 is a reduction circuit that performs reduction processing by inputting 1/m thinning of the m×m contraction data in both main and sub-scanning, and a scan that scans the reduced data. A reduction/shrinkage circuit that performs a logical product of the data within the window and outputs it, leaving a part of the barcode area and erasing the background image area. 8 is a slope/shrinkage circuit that calculates the slope and center of the barcode area from the shrunken data. central arithmetic circuit,
Reference numeral 9 represents an address calculation circuit that reads data from the binary data memory 3 according to the tilt direction, and reference numeral 10 represents a barcode decoding circuit that decodes a barcode from the data read from the memory.
上記構成において、以下その動作について説明する。入
力端子1の入力画像信号(多値)を2値化回路2で2値
化号に変換した後、2値データメモリ3に記憶する。一
方、輪郭検出回路4で前記2値化号を輪郭信号に変換し
、輪郭信号膨張回路5で前記輪郭信号を膨張してバーコ
ード領域を塗り潰す。m×m収縮回路6で前記膨張した
信号をm×m走査窓で収縮し、縮小・収縮回路7で前記
m×m走査窓で収縮した信号に対し主走査・副走査方向
とも1 / mの縮小と所定サイズの収縮を行うことに
よりバーコード領域を残して背景画像を除去する。前記
膨張は太いバーコード幅分行い、前記縮小率と縮小後の
収縮量はバーコード領域の短辺が残る範囲で大きく、背
景画像の除去効果を高める◇前記収縮した信号から傾き
・中心演算回路8でバーコードの傾きと中心を求め、ア
ドレス演算回路9で前記傾き角に添ってデータメモリ3
からバーコードデータを読み出すアドレスを演算する。The operation of the above configuration will be explained below. An input image signal (multi-value) at an input terminal 1 is converted into a binary code by a binarization circuit 2, and then stored in a binary data memory 3. On the other hand, a contour detection circuit 4 converts the binary code into a contour signal, and a contour signal expansion circuit 5 expands the contour signal to fill the barcode area. An m×m contraction circuit 6 contracts the expanded signal using an m×m scanning window, and a reduction/contraction circuit 7 compresses the signal contracted by the m×m scanning window by 1/m in both the main scanning and sub-scanning directions. By performing reduction and contraction to a predetermined size, the background image is removed while leaving the barcode area. The expansion is performed by the width of the thick barcode, and the reduction rate and the amount of contraction after reduction are large to the extent that the short sides of the barcode area remain, increasing the background image removal effect. 8, the inclination and center of the barcode are determined, and the address arithmetic circuit 9 stores data in the data memory 3 along the inclination angle.
Calculate the address to read the barcode data from.
前記読みだしアドレスでデータメモリ3から読みだした
データをバーコード復号化回路10で解読しバーコード
判定を行う。The data read out from the data memory 3 at the read address is decoded by a barcode decoding circuit 10 to determine the barcode.
以下、上記各構成について更に具体的に説明する。2値
化回路2は一定の閾値レベルで入力画像信号を単純に2
値化する一般的な回路である。輪郭検出回路4は2値画
像データを2×2走査窓で走査し下式の演算で輪郭信号
データを出力する。Each of the above configurations will be explained in more detail below. The binarization circuit 2 simply converts the input image signal into two at a certain threshold level.
This is a general circuit that converts into values. The contour detection circuit 4 scans the binary image data with a 2.times.2 scanning window and outputs contour signal data by calculating the following formula.
第2図に前記輪郭検出のための走査窓を示す。FIG. 2 shows a scanning window for detecting the contour.
1)は2値画像データで、12は2X2走査窓であり、
走査窓の各データA、B、C,Dから輪郭信号出力Rを
次式で演算する。1) is binary image data, 12 is a 2×2 scanning window,
A contour signal output R is calculated from each data A, B, C, and D of the scanning window using the following equation.
R=(A十B十〇+D)・(A−B−C−D)輪郭信号
膨張回路6は走査窓内データの全ての論理和をとって出
力信号とする回路である。走査窓の大きさは黒または白
の広いバー幅をrとしたとき直径r+1の円形マスクに
するとバーコード領域を塗り潰すことができる。第3図
に直径8のときの円形マスクの例を示す。m×m収縮回
路6はm×m走査窓内データのすべての論理積をとって
出力信号とする回路である。縮小・収縮回路7は入力デ
ータの主走査・副走査とも1/mの間引き入力でデータ
の縮小を行い、前記縮小データを走査する走査窓内デー
タの全ての論理積をとって収縮した出力信号とする回路
である。前記膨張処理で塗り潰したバーコード領域の短
辺をSとし、主走査方向と副走査方向の縮小率をそれぞ
れkとしたとき収縮回路の収縮量をに−8よシ小さい範
囲で最大の値にすると、バーコード領域を残し多くの背
景雑音を除去することができる。その縮小することの目
的は収縮のための走査窓サイズを小さくし回路構成を簡
単にすることと、傾き・中心演算のためのデータ数を少
なくし演算時間を短縮することである。但し、中心座標
の誤差も大きくなるため必要な精度との兼ね合いで縮小
率を決定しなければならない。傾き・中心演算回路8は
バーコードの傾きと中心を縮小・収縮回路7の出力信号
の黒(データ=1)データアドレスから演算する。R=(A0B10+D) (A-B-C-D) The contour signal expansion circuit 6 is a circuit that takes the logical sum of all the data within the scanning window and outputs the result as an output signal. If the size of the scanning window is a circular mask with a diameter r+1, where r is the width of a wide black or white bar, the barcode area can be filled. FIG. 3 shows an example of a circular mask with a diameter of 8. The m×m contraction circuit 6 is a circuit that performs the logical product of all the data within the m×m scanning window and generates an output signal. The reduction/contraction circuit 7 reduces the input data by decimating the input data by 1/m in both main scanning and sub-scanning, and calculates the logical product of all the data within the scanning window that scans the reduced data to generate a contracted output signal. This is the circuit. When the short side of the barcode area filled in by the expansion process is S, and the reduction ratios in the main scanning direction and the sub-scanning direction are each k, the amount of contraction of the contraction circuit is set to the maximum value within a range smaller than -8. Then, much of the background noise can be removed while leaving the barcode area. The purpose of this reduction is to reduce the scanning window size for contraction and simplify the circuit configuration, and to reduce the amount of data for slope/center calculations to shorten calculation time. However, since the error in the center coordinates also increases, the reduction ratio must be determined in consideration of the required accuracy. The slope/center calculation circuit 8 calculates the slope and center of the barcode from the black (data=1) data address of the output signal of the reduction/contraction circuit 7.
今、第4図に示すような画像データが傾き・中心演算回
路8の入力信号であるとき傾きと中心点の演算例につい
て説明する。同図13が画像データ領域(データメモリ
領域に対し縮小率に倍した大きさで対応している)で、
14がバーコードの領域、15が縮小・収縮回路7で収
縮されたバーコードの領域で傾き・中心演算回路8の入
力画像。An example of calculating the slope and center point when image data as shown in FIG. 4 is an input signal to the slope/center calculation circuit 8 will now be described. Figure 13 shows the image data area (corresponding to the data memory area at a size multiplied by the reduction ratio).
14 is a barcode area, 15 is a barcode area contracted by the reduction/contraction circuit 7, and is an input image to the tilt/center calculation circuit 8.
他に背景雑音が無くバーコードは長方形で、長辺方向に
読みだすと復号化できるものとする。長方形の4点を
(x 1 + ’I + )%(x2. yz) 、
(x5會y3) 、 (X413’4)とし、それぞれ
(xlm yt) ; Vが最小である点pymin(
x2. yz) ; Vが最大である点P )’ma
x(x3. y5) ; xが最小である点pxmln
(X41 )’a) ; xが最大である点pxma
x以下の演算においてl ym −yn l > l
×m −Xn 1であるときX座標とy座標を交換して
演算する。It is assumed that there is no other background noise, that the barcode is rectangular, and that it can be decoded by reading it in the direction of the long side. The four points of the rectangle are (x 1 + 'I + )% (x2. yz),
(x5 y3) and (X413'4), respectively (xlm yt); the point pymin(
x2. yz); Point P where V is maximum)'ma
x(x3. y5); point pxmln where x is minimum
(X41)'a) ; Point pxma where x is maximum
In the operation below x, l ym −yn l > l
When xm-Xn is 1, the calculation is performed by exchanging the X and y coordinates.
第4図の例では傾きaは長辺2点から
a = (yz −y3) / (X2− x5)
i fcハa = (ya −y、) / (
X4− xl)傾きが逆になると
a = (12−ya) / (X2− x4)
またはa = (ys −yt) / (xs
−xl)中心(xo*yo)は
’/a = (X4− X3)/ 2
yo −(’12y1)/ 2
第5図に長方形4点Pym1n # Pymax *
pxmin + pxmanの各座標点(x1+ yt
) (xzt yz) CX5I y3) (xa +
y4)を演算する動作フローを示す。(A)は開始点、
(B)は黒信号検出部で入力画像信号−走査線のデ−タ
から最初の黒信号を検出するところである。In the example in Figure 4, the slope a is from the two long sides as a = (yz - y3) / (X2 - x5)
i fcha = (ya −y,) / (
X4- xl) If the slope is reversed, a = (12-ya) / (X2- x4)
or a = (ys - yt) / (xs
-xl) The center (xo*yo) is '/a = (X4-
Each coordinate point of pxmin + pxman (x1 + yt
) (xzt yz) CX5I y3) (xa +
y4) is shown. (A) is the starting point,
(B) shows the black signal detecting section detecting the first black signal from the input image signal--scanning line data.
黒信号が無ければ(C)で副走査終了かを判定し終了で
あれば黒信号の検出不可である(D)の異常終了へ、副
走査終了で無ければ(B)の黒信号検出部へ戻る。(B
)で黒信号を検出すると(E)の各ポインタ初期値セッ
ト部へいきPymin* pymax+ Pxmin+
px□工各点のX、y座工区点信号を検出した最初のア
ドレスをセットする。次に(F)で副走査終了かを判定
し終了であれば(p)の異常終了へ、終了でなければ(
G)の黒信号検出部へ行<o(G)の黒信号検出部は次
のラインの入力画信号−走査線のデータから黒信号を検
出するところである。黒信号を検出すると(H)の各ポ
インタ更新へい〈0ここで、検出した黒信号の始点をp
s、終点をp。とじたとき点pymaxのx+ y座
標に1)sのアドレスをセットし、点p3のアドレスが
点PxminのXアドレスより小さければ点pxmin
のX、y座標に点psのアドレスをセットし、点p0の
Xアドレスが点P xmaxのXアドレスより大きけれ
ば点pxmaxのx * y座標に点p、のアドレスを
セットした後(F)の副走査終了判定へ戻る。(G)の
黒信号検出部で黒信号が検出されなくなると(I)にい
き正常終了となる。If there is no black signal, it is determined whether the sub-scanning has ended in (C), and if it has ended, the process goes to the abnormal end (D) in which the black signal cannot be detected, and if the sub-scanning has not ended, it goes to the black signal detection section in (B). return. (B
) When a black signal is detected in (E), the process goes to each pointer initial value setting section.Pymin* pymax+ Pxmin+
px□Set the first address where the X and y point signals of each point were detected. Next, in (F), it is determined whether the sub-scanning is finished, and if it is finished, it goes to abnormal termination in (p), and if it is not finished (
To the black signal detection section in G), the black signal detection section in row <o (G) detects a black signal from the input image signal of the next line - the data of the scanning line. When a black signal is detected, each pointer in (H) is updated.〈0Here, the starting point of the detected black signal is
s, the end point is p. 1) Set the address of s to the x+y coordinates of point pymax when closing, and if the address of point p3 is smaller than the X address of point Pxmin, set the address of point pxmin.
Set the address of point p to the X, y coordinates of , and if the X address of point p0 is larger than the X address of point P Return to sub-scanning end determination. When the black signal detecting section (G) no longer detects the black signal, the process goes to (I) and ends normally.
アドレス演算回路9は2値データメモリ3にデータ入力
が完了した後、バーコードの傾きに添ってデータを読み
出すためのアドレスを演算するところである。傾き・中
心演算回路8で求めた傾きaと中心(xo、 yo)か
ら中心を通る直線y = a x 十すを求め、その直
線に添ってデータを読み出す。読みだしアドレスx+y
は
x=1.2.3・・・・・・・・・
y = ax+b
b = ()’o −axo)/ k
傾き・中心演算回路8とアドレス演算回路9はマイクロ
コンピュータで演算回路を構成する 、<−コード復号
化回路10は従来のバーコード復号化技術をそのまま適
用でき1例えば符号の参照テーブルと比較するなどして
バーコードの復号を行う。The address calculation circuit 9 calculates an address for reading data in accordance with the slope of the bar code after data input to the binary data memory 3 is completed. A straight line y = a x passing through the center is determined from the slope a determined by the slope/center calculation circuit 8 and the center (xo, yo), and data is read out along the straight line. Read address x+y
x = 1.2.3... y = ax + b b = ()'o - axo) / k The slope/center calculation circuit 8 and the address calculation circuit 9 are configured by a microcomputer. , <- The code decoding circuit 10 can apply the conventional barcode decoding technique as is, and decodes the barcode by, for example, comparing it with a code reference table.
で1文字の背景画像上にバーコードラベルを貼りた絵の
一部を示している。第6図(blは同図(atの輪郭画
像、第6図(clは同図(blの選択膨張画像である。shows part of a picture with a barcode label pasted on a single character background image. FIG. 6 (bl is a contour image of the same figure (at), and FIG. 6 (cl is a selected expanded image of the same figure (bl).
第6図(dlは同図(clの画像を論理積縮小した画像
(拡大表示している)、第6図(elは同図(diの画
像を収縮した画像である。第6図(f)は同図(elの
画像から2値データメモリ上のバーコード読み取り位置
を演算した結果バーコード上の実線25の読み取りライ
ンが得られた様子を示している。Figure 6 (dl is an image obtained by logical product reduction of the image in cl (enlarged display), Figure 6 (el is an image obtained by contracting the image in di (displayed) in the same figure), Figure 6 (f ) shows how the solid line 25 on the barcode is obtained as a result of calculating the barcode reading position on the binary data memory from the image el.
上記実施例ではバーの高さよりバーの全桁長が長い長方
形バーコード領域をもつラベルについての処理を実施し
たが、他の形状をもつラベルに対しても以下のように実
施すれば良い。In the above embodiment, the processing was carried out for a label having a rectangular barcode area in which the total digit length of the bar is longer than the height of the bar, but the processing may be carried out as follows for labels having other shapes.
第7図はバーコードの異なる形状をもつ3種類について
示している。第7図(alはこれまで実施例で説明した
バーコード形状で、バーの高さよりバーの全桁長が長い
ラベルである。従ってバーコード領域26を収縮した領
域27に対してその長手方向AA’を読みとるとバーコ
ード復号が可能である。それに対して第7図(blは逆
の場合で、バーの全桁長よりバーの高さが長いラベルで
ある0この場合にはバーコード領域23を収縮した領域
29の長手方向AA’に直交するBB’を読みとること
によりバーコード復号を行なう。第7図(clは同図(
a)。FIG. 7 shows three types of barcodes with different shapes. FIG. 7 (Al is the barcode shape explained in the examples so far, and is a label in which the total length of the bar is longer than the height of the bar. Therefore, the longitudinal direction AA of the barcode area 26 is ' is read, the barcode can be decoded. On the other hand, Figure 7 (bl) is the opposite case, and is a label where the height of the bar is longer than the total digit length of the bar. In this case, the barcode area 23 Barcode decoding is performed by reading BB' perpendicular to the longitudinal direction AA' of the contracted area 29.
a).
(blの中間でバーコード領域30がほぼ正方形に近い
場合で、このときは収縮した領域3)の直交する方向A
A’とBB’の両方を復号することで正しい一方の復号
結果を得ることができる。(In the case where the barcode area 30 is almost square in the middle of bl, in this case, the contracted area 3)
By decoding both A' and BB', it is possible to obtain the correct decoding result for one of them.
あらかじめ第7図(a)のタイプか同図(blのタイプ
かが知られていない場合には常にAA’とBB’の両方
を読みとりバーコード復号を行なうとよい。If it is not known in advance whether it is the type shown in FIG. 7(a) or the type shown in FIG. 7(bl), it is advisable to always read both AA' and BB' to decode the barcode.
発明の効果
以上のように、本発明の効果としては、バーコードの傾
き方向を検出して、記憶手段に記憶した1方向走査の画
像データを前記傾き方向に読みだし復号化することがで
きるためバーコードラベルが入力原稿の任意の位置・方
向に貼られていても復号化が可能であるなどその効果は
大きい。Effects of the Invention As described above, the effect of the present invention is that the inclination direction of the barcode can be detected and the unidirectional scanning image data stored in the storage means can be read out and decoded in the inclination direction. This has great effects, such as being able to decode the barcode label even if it is pasted in any position or direction on the input document.
第1図は本発明の一実施例における画像信号処理装置の
ブロック構成図、第2図は同装置の要部である輪郭検出
のための走査窓の概念図、第3図は同直径8の円形マス
ク例の概念図、第4図は同収縮したバーコード領域の画
像例の概念図、第5図は同収縮したバーコードの長方形
領域4点のアドレスを演算す゛る動作フロー図、第6図
(al〜(flは同バーコードを含む画像の処理状態を
示した図、第7図(a)〜(clは形状の異なるバーコ
ードの概念図である。
4・・・輪郭検出回路、5・・・輪郭信号膨張回路、6
・・・m×m収縮回路、7・・・縮小・収縮回路、8・
・・傾き・中心演算回路、9・・・アドレス演算回路。
代理人の氏名 弁理士 粟 野 重 孝 ほか1名七5
図
第
図
□生麦奮込
第
図
第
図
(Q)
第
図
(C)
第
図
(e)FIG. 1 is a block diagram of an image signal processing device according to an embodiment of the present invention, FIG. 2 is a conceptual diagram of a scanning window for contour detection, which is the main part of the device, and FIG. A conceptual diagram of an example of a circular mask, Fig. 4 is a conceptual diagram of an image example of the contracted barcode area, Fig. 5 is an operation flow diagram for calculating addresses of four rectangular areas of the same contracted barcode, and Fig. 6 (al~(fl is a diagram showing the processing state of an image containing the same barcode, FIGS. 7(a) to (cl) are conceptual diagrams of barcodes with different shapes. 4... Contour detection circuit, 5 ...contour signal expansion circuit, 6
...m×m contraction circuit, 7...reduction/contraction circuit, 8.
...Inclination/center calculation circuit, 9...Address calculation circuit. Name of agent: Patent attorney Shigetaka Awano and 1 other person
Claims (4)
ータを2値データに変換する2値化手段と、その2値デ
ータを記憶する記憶手段と、前記2値データの輪郭デー
タを出力する輪郭検出手段と、前記輪郭データを走査す
る走査窓内データの論理和で前記輪郭データを所定サイ
ズ分拡大しバーコードの輪郭データ間を塗り潰す輪郭信
号膨張手段と、前記膨張データを走査するm×mサイズ
の走査窓内データの論理積を出力するm×m収縮手段と
、そのm×m収縮データを主走査・副走査とも1/mの
間引き入力で縮小し前記縮小データを走査する走査窓内
データの論理積で前記縮小データを所定サイズ分収縮す
ることによりバーコード領域の一部を残し背景画像領域
を消去する縮小・収縮手段と、その縮小・収縮したデー
タから前記長方形バーコードの傾きと中心を演算する傾
き・中心演算手段と、その傾き方向に従って前記記憶手
段からデータを読み出すためのアドレスを演算するアド
レス演算手段と、前記記憶手段から読みだしたデータか
らバーコードを復号するバーコード復号化手段とを具備
する画像信号処理装置。(1) Binarization means for converting scan-resolved data of an original image including a rectangular barcode area into binary data, storage means for storing the binary data, and contour outputting contour data of the binary data. a detection means, a contour signal expansion means for expanding the contour data by a predetermined size by a logical sum of data within a scanning window for scanning the contour data, and filling in areas between the contour data of the barcode; and m× for scanning the expanded data. an m×m shrinking means that outputs a logical product of m-sized data within a scanning window; and a scanning window that reduces the m×m shrinking data by inputting a thinning of 1/m in both main scanning and sub-scanning and scans the reduced data. a reduction/contraction means for erasing a background image area while leaving a part of the barcode area by shrinking the reduced data by a predetermined size using a logical product of data within the area; and a slope of the rectangular barcode based on the reduced/contracted data. an inclination/center calculation means for calculating a center and an address calculation means for calculating an address for reading data from the storage means according to the direction of the slope; and a barcode for decoding a barcode from the data read from the storage means. An image signal processing device comprising decoding means.
バーコードラベルにおけるバーコードの桁方向を決定す
るバーコード読取り方向決定手段を付加した画像信号処
理装置。(2) For the image signal processing device according to claim (1),
An image signal processing device that includes barcode reading direction determining means for determining the digit direction of a barcode on a barcode label.
により指示することを特徴とする請求項2記載の画像信
号処理装置。(3) The image signal processing apparatus according to claim 2, wherein the barcode reading direction determining means manually instructs the direction in advance.
方向について読み取り、復号判定で正しいバーコード復
号を行なうことを特徴とする請求項2記載の画像信号処
理装置。(4) Barcode reading direction determining means are always orthogonal 2
3. The image signal processing apparatus according to claim 2, wherein the image signal processing apparatus performs correct barcode decoding based on reading direction and decoding determination.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1043727A JPH02125385A (en) | 1988-07-13 | 1989-02-23 | Image signal processing device |
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63-174571 | 1988-07-13 | ||
| JP17457188 | 1988-07-13 | ||
| JP1043727A JPH02125385A (en) | 1988-07-13 | 1989-02-23 | Image signal processing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH02125385A true JPH02125385A (en) | 1990-05-14 |
Family
ID=26383550
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1043727A Pending JPH02125385A (en) | 1988-07-13 | 1989-02-23 | Image signal processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH02125385A (en) |
-
1989
- 1989-02-23 JP JP1043727A patent/JPH02125385A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5223701A (en) | System method and apparatus using multiple resolution machine readable symbols | |
| EP1138013B1 (en) | Skew processing of raster scan images | |
| US6343740B1 (en) | Oblique access to image data for reading apparatus | |
| US20010012413A1 (en) | Symbol-controlled image data reading system | |
| JPH02257295A (en) | Method and device for reading bar code | |
| JPH0212579A (en) | Binary code readable optically with machine and measurement and formation thereof | |
| JP3716527B2 (en) | 2D code reading method | |
| US6328214B1 (en) | Opto-electronic device for acquisition of images of codes in one and two dimensions | |
| JPH10198754A (en) | Code reader | |
| JPH02125385A (en) | Image signal processing device | |
| JPH09274637A (en) | Two-dimensional code reader | |
| JPH02125382A (en) | Image signal processing device | |
| JPH02125386A (en) | Image signal processing device | |
| JPH02168363A (en) | Image signal processor | |
| JPH02125384A (en) | Image signal processor | |
| JPH0423303B2 (en) | ||
| JPH02168364A (en) | Image signal processing device | |
| JPH02176884A (en) | Image signal processor | |
| JPH02125387A (en) | Image signal processing device | |
| JPH02222082A (en) | Picture signal processor | |
| JPH0223484A (en) | Picture signal processor | |
| JP2775734B2 (en) | Barcode identification method | |
| JPH07184063A (en) | Binary image compression system | |
| JPH05165996A (en) | Bar code reader | |
| JP2775735B2 (en) | Barcode identification method |