JPH0223485A - Picture signal processor - Google Patents
Picture signal processorInfo
- Publication number
- JPH0223485A JPH0223485A JP63174568A JP17456888A JPH0223485A JP H0223485 A JPH0223485 A JP H0223485A JP 63174568 A JP63174568 A JP 63174568A JP 17456888 A JP17456888 A JP 17456888A JP H0223485 A JPH0223485 A JP H0223485A
- Authority
- JP
- Japan
- Prior art keywords
- data
- barcode
- texture
- enlarging
- circuit
- 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) [Summary] 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 that extracts and decodes a barcode area from scanned image data such as in a facsimile.
従来の技術
従来、スーパーマーケットなどの物流関係や各方面でバ
ーコードが数多く使用されておりその多くは複数方向の
走査パターンを有する方式で、使用するバーコードラベ
ル上を少なくとも1走査は正しく走査するように構成し
ている。(日経エレクトロニクス1980.12.22
.p142バーコードリーダの種類)
発明が解決しようとする課題
しかし、ファクシミリ走査のように1方向走査の画像デ
ータの中からバーコード領域を抽出して正しく読み出す
方式および装置の従来例は見当たらない。本発明はバー
コード領域を正しく抽出でき、それを復号化できる画像
信号処理装置を提供するものである。Conventional technology Conventionally, barcodes have been used in large numbers in logistics and other fields such as supermarkets, and most of them have scanning patterns in multiple directions, so that at least one scan on the barcode label used is correctly scanned. It is composed of (Nikkei Electronics 1980.12.22
.. p142 Types of Barcode Readers) Problems to be Solved by the Invention However, there are no conventional methods and apparatuses for extracting and correctly reading barcode areas 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 decode it.
課題を解決するための手段
上記目的を達成するため、本発明の技術的解決手段は、
入力データを2値データに変換し記憶手段に記憶すると
ともに、前記2値データの細線部を拡大した後間引き処
理を行い、前記間引きデータでのバーコードのテクスチ
ャ判定と判定結果の膨張処理でバーコードの領域を判定
し、前記領域の傾きと中心点を算出した後、前記記憶手
段から傾き角方向に2値データを読みだしバーコードの
復号を行うものである。Means for Solving the Problems In order to achieve the above object, the technical solution of the present invention is as follows:
Input data is converted into binary data and stored in a storage means, and thin line portions of the binary data are enlarged and then thinned out. Barcode texture is determined using the thinned data and the determination result is expanded to create a bar code. After determining the area of the code and calculating the inclination and center point of the area, binary data is read out from the storage means in the direction of the inclination angle and the barcode is decoded.
作 用
本発明は上記構成により、バーコードのテクスチャ判定
(バーの平行性等の判定)でバーコードと背景画像を分
離し、バーコードの傾き角方向に2値データを読み出す
ことによりバーコードラベルが入力原稿の任意方向に貼
られていても復号化が可能であるようにしたものである
。According to the above configuration, the present invention separates the barcode from the background image by determining the texture of the barcode (determining the parallelism of the bars, etc.), and reads the binary data in the direction of the inclination angle of the barcode, thereby creating a barcode label. This allows decoding even if the input document is pasted in any direction on the input document.
実施例
第1図は本発明の一実施例における画像信号処理装置の
構成図である。第1図において、1は入力画像信号(多
値)の入力端子、2は入力端子1の入力画像信号を2値
化する2値化回路、3は前記2値化信号の1(黒)また
は0(白)が伝えば1画素幅しかない所を2画素幅にす
る細線拡大回路、4は前記細線拡大した信号を間引いて
出力するデータ間引き回路、5はデータ間引き回路4の
出力信号からバーコードの平行性な・どの特徴を検出し
、他の信号を消去するテクスチャ判定回路、6はテクス
チャ判定回路5の出力信号1(黒)を一定面積膨張させ
バーコード領域を全て1(黒)にする領域判定回路、7
は2値化回路2の出力信号を領域判定回路6の出力信号
でゲートする切り出し回路、8は切り出し回路7の出力
信号を記憶する2値データメモリである。なお、前記切
り出し回路7を無くし、前記2値化回路2の出力信号を
記憶する構成も可能である。9は領域判定回路6の出力
信号からバーコードの傾きと中心点を求める傾き・中心
演算回路、1oは傾き・中心演算回路9で求めたバーコ
ードの傾きと中心点で2値データメモリ8のデータ読み
だしアドレスを求めるアドレス演算回路、11は2値デ
ータメモリ8から読み出されたデータからバーコード信
号を解読するバーコード信号復号化回路である。Embodiment FIG. 1 is a block diagram of an image signal processing apparatus in an embodiment of the present invention. In FIG. 1, 1 is an input terminal for an input image signal (multilevel), 2 is a binarization circuit that binarizes the input image signal of input terminal 1, and 3 is a 1 (black) or 0 (white) is a thin line enlarging circuit that changes the width of only one pixel to two pixels; 4 is a data thinning circuit that thins out and outputs the thin line enlarged signal; 5 is a bar from the output signal of the data thinning circuit 4; A texture determination circuit 6 detects characteristics such as code parallelism and erases other signals. 6 expands the output signal 1 (black) of the texture determination circuit 5 by a certain area to make the barcode area all 1 (black). area determination circuit, 7
Reference numeral 8 indicates a cutout circuit that gates the output signal of the binarization circuit 2 with the output signal of the area determination circuit 6, and 8 is a binary data memory that stores the output signal of the cutout circuit 7. Note that a configuration in which the cutout circuit 7 is omitted and the output signal of the binarization circuit 2 is stored is also possible. 9 is a slope/center calculation circuit that calculates the slope and center point of the barcode from the output signal of the area determination circuit 6; 1o is the slope and center point of the barcode calculated by the slope/center calculation circuit 9; An address arithmetic circuit 11 calculates a data read address, and a barcode signal decoding circuit 11 decodes a barcode signal from data read from the binary data memory 8.
上記構成において、以下その動作について説明する。入
力端子1の入力画像信号(多値)は2値化回路2で2値
画像信号に変換される。前記2値画像データを細線拡大
回路3で、例えば1(黒)または0(白)の幅を最低2
画素分確保することにより後処理のデータ間引き回路4
でデータ間弓きが行われてもバーコードの狭い黒バーま
たは白バー幅が無くならないようにする。前記細線拡大
したデータをデータ間引き回路4で例えば主走査方向・
副走査方向とも1/2にデータを間引き、その間引きデ
ータに対してテクスチャ判定回路5でバーコード領域と
判定された部分を除き他の部分の信号(たとえば、ノイ
ズやその他の文字情報等)は消去し 黒(1)→白(O
)、領域判定回路6でバーコード領域全体を塗り潰す。The operation of the above configuration will be explained below. The input image signal (multi-value) at the input terminal 1 is converted into a binary image signal by the binarization circuit 2. The binary image data is processed by a thin line enlarging circuit 3, for example, by reducing the width of 1 (black) or 0 (white) to at least 2.
Post-processing data thinning circuit 4 by securing pixels
To prevent the narrow black bar or white bar width of a barcode from disappearing even if the data is edited. The thin line enlarged data is processed by the data thinning circuit 4, for example, in the main scanning direction.
The data is thinned out to 1/2 in both the sub-scanning direction, and signals in other parts (for example, noise and other character information) are removed from the thinned data except for the part determined to be a barcode area by the texture determination circuit 5. Erase Black (1) → White (O
), the area determination circuit 6 fills out the entire barcode area.
ただし、塗り潰した信号はデータ間引き回路で間引いた
分だけ例えば主走査方向・副走査方向とも2倍にデータ
補間(同一データの単純繰り返し)している。この塗り
潰した信号で2値化回路2の2値データ出力を切り出し
回路7でゲートし2値データメモリ8に記憶する。一方
、前記塗り潰した信号領域に基づき傾き・中心演算回路
9でバーコードの傾きと中心点を演算し、アドレス演算
回路10で前記傾き角に添って2値データメモリ8から
バーコードデータを読み出すアドレスを演算する。前記
読みだしアドレスで2値データメモリ8から読みだした
データをバーコード復号化回路11で解読しバーコード
判定を行う。However, the filled-in signal is interpolated (simple repetition of the same data) by twice as much data in both the main scanning direction and the sub-scanning direction by the amount thinned out by the data thinning circuit. The binary data output from the binarization circuit 2 is gated by the cutout circuit 7 using this painted signal and stored in the binary data memory 8. On the other hand, the slope/center calculation circuit 9 calculates the slope and center point of the barcode based on the painted signal area, and the address calculation circuit 10 reads out the barcode data from the binary data memory 8 along the slope angle. Calculate. The data read out from the binary data memory 8 at the read address is decoded by a barcode decoding circuit 11 to determine the barcode.
以下、上記各構成について更に具体的に説明する。2値
化回路2は一定の閾値レベルで入力画像信号を単純に2
値化する一般的な回路である。細線拡大回路3は例えば
1画素幅を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 thin line enlarging circuit 3 performs a process of enlarging, for example, one pixel width to two pixel widths, and does not enlarge pixels having a width of two pixels or more.
第2図はその細線拡大を説明する図で、画像信号の走査
線密度(データのサンプリングパルス)カ狭イバーコー
ド幅の2倍であるときの例を示している。同図(a)は
バーコード部分を走査しているもので、1−1が狭い黒
バー 1−2が狭い白バー 1−3が広い黒バー、1−
4が走査部分を示している。同図価)は前記走査におけ
る画像信号と2値化の閾値レベルの関係を示しており、
2−1が画像信号、2−2〜2−4が閾値レベルである
。FIG. 2 is a diagram for explaining the thin line enlargement, and shows an example where the scanning line density of the image signal (data sampling pulse) is twice the width of the narrow bar code. In the same figure (a), the barcode part is scanned, 1-1 is a narrow black bar, 1-2 is a narrow white bar, 1-3 is a wide black bar, 1-
4 indicates the scanning part. The figure shows the relationship between the image signal in the scanning and the binarization threshold level,
2-1 is an image signal, and 2-2 to 2-4 are threshold levels.
同図(01はデータのサンプリングパルスで、同図(d
)が前記サンプリングパルス位置で2−1の画信号を2
値化したデータ列である。4−1は2−2の閾値で2値
化した場合、4−2は2−3の閾値で2値化した場合、
4−3は2−4の閾値で2値化した場合である。4−2
のデータ列は黒バー、白バーとも2画素確保されている
が、4−1は黒バーが1画素、4−3は白バーが1画素
となっている。但し、前者の場合隣接する白バーが3画
素、後者の場合は隣接する黒バーが3画素となる。これ
はバーコードの黒バーから黒バーまで、白バーから白バ
ーまでの間隙が閾値レベルの違いにより変化しないこと
から明らかに自然な事例であるといえる。本実施例では
1画素幅しかないバーコード幅を隣接した3画素以上あ
るバーコードの方へ広げるためのデータ変換を行なう。The same figure (01 is the data sampling pulse, the same figure (d
) converts the image signal of 2-1 into 2 at the sampling pulse position.
This is a data string that has been converted into a value. 4-1 is binarized with the threshold of 2-2, 4-2 is binarized with the threshold of 2-3,
4-3 is the case of binarization using a threshold of 2-4. 4-2
In the data string, two pixels are secured for both the black bar and the white bar, but in 4-1, the black bar is one pixel, and in 4-3, the white bar is one pixel. However, in the former case, the adjacent white bar has 3 pixels, and in the latter case, the adjacent black bar has 3 pixels. This is clearly a natural case since the gaps from black bar to black bar and from white bar to white bar of the barcode do not change due to differences in threshold levels. In this embodiment, data conversion is performed to widen a barcode having a width of only one pixel to an adjacent barcode having three or more pixels.
同図(e)が前記データ変換のための走査窓で次のよう
に演算する。FIG. 2(e) shows the scanning window for the data conversion, and the calculation is performed as follows.
1”20”21 ’薊;・扇・司;のときd22=1と
する。When 1"20"21 '薊;・Ougi・Tsukasa;, set d22=1.
号列が白黒交互に発生したときそれと直交する方向の画
信号列が全て白または黒であるとき平行線である(判定
出力=1)としている。以下に第3図に示した走査窓で
の判定式を示す。When the image signal sequences occur alternately in black and white and all the image signal sequences in the direction perpendicular to the image signal sequences are white or black, it is assumed that the lines are parallel (judgment output=1). The determination formula for the scanning window shown in FIG. 3 is shown below.
P53°P54’P55°P56°P57°P35°P
45°pss°P75°1次に、データ間引き回路4の
目的は後処理のテクスチャ判定回路5の判定マスクサイ
ズを小さくするためで、入力画像データの狭いバーコー
ド幅が最低1画素確保できる程度にデータ間引きを行う
。例えば画像のサンプリング密度が狭いバーコード幅の
2倍であれば1画素おきに間引いて出力する単純な回路
構成である。(主走査・副走査方向ともに間引く。)テ
クスチャ判定回路5はバーコードの平行性に着目した判
定回路である。第3図は前記平行性判定に用いる走査窓
の例で、走査窓内の数字は前記平行性の判定のために参
照する画素位置を示している。判定はバーコードが本来
もつ特徴、すなわち走査窓内の一方向に並ぶ画信P35
°P45°P55°pas°P75°P53°P54°
P56°P5了:1P35°P45°P55”P65°
P75°P53°P54°F’se°P57 = IP
51 ’P53°P55°P57°P59°P15°P
35°P75°pg5=tP51°P53°P55°P
57°P59°P15°P35°P75°P95°1P
15’P35°P55’P75°P95°P51″″P
53°P57’P59= 1P15°P35°pss°
P75°P95°P51°P53°P57°P5g =
1P33°P44°pss°pea°P77°P37
°P46°P64@P73= IP33°PルL”P5
5°pea°P77°P37°P46°P64°P73
= 1P37°P46°F’ss°P64°P73°
P33°P44°psa°P77 = 1P37°P4
6°P55°P64°P73°P33°P44°pea
°P77=1P11°P33’P55°P77°P99
°P19°P37°P73°Pg1 = 1′ P11
°P33°P55’P77”P99°P19”P37”
P73°Pg1 = IP19°P37°P55°P7
3°P91°P11°P33°P77°P99°1ビ1
91ビ37“P556ビ73°F91 °F11 F3
3°P77”P99=1’31 ”43°P55°P6
7°P79°’17°P36°P74°P93:1P3
1°P43°P55°P67°P79°P17°P36
°P74°Pg3 ” IP17°P36°P55°P
74°P93°P31°’43°P67°P79= 1
213”34°P55°P76°P97°P39”47
°P63°P71:1P39°P47°P55°P63
°’71°P13”34°’76°P97= 1なお、
走査窓を用いた画信号処理の具体的構成および前記判定
式の論理回路構成は一般的な技術であり説明を略す。次
に領域判定回路6は走査窓内データの全ての論理和をと
って出力信号とする回路で、入力画信号の黒(1)は走
査窓の大きさ分だけ実質膨張することになる。切り出し
回路7は2値化回路2の出力信号と領域判定回路6の出
力信号の論理積をとる回路で、バーコードの背景画像を
除去(または減少)した後2値データメモリ8に記憶し
5後のバーコード復号回路へ不要なデータを与えないよ
うにするためである。(後のバーコード復号回路での判
定誤りの可能性が無ければ不必要な回路である)傾き・
中心演算回路9はバーコードの傾きと中心を領域判定回
路6の出力信号の黒(1)データアドレスから演算する
。今、第4図に示すような画像データが傾き・中心演算
回路9の入力信号であるとき傾きと中心点の演算例につ
いて説明する。同図12が画像データ領域(2値データ
メモリの領域と一致している)で、13が塗り潰された
バーコード領域、他に背景雑音が無くバーコードは長方
形で、長辺方向に読み出すと復号化できるものとする。P53°P54'P55°P56°P57°P35°P
45°pss°P75°1 Next, the purpose of the data thinning circuit 4 is to reduce the size of the judgment mask of the post-processing texture judgment circuit 5, so that the narrow barcode width of the input image data can be secured by at least one pixel. Perform data thinning. For example, if the sampling density of an image is twice the width of a narrow barcode, a simple circuit configuration is used that thins out every other pixel and outputs it. (Thinning is done in both the main scanning and sub-scanning directions.) The texture determination circuit 5 is a determination circuit that focuses on the parallelism of barcodes. FIG. 3 shows an example of a scanning window used for the parallelism determination, and the numbers within the scanning window indicate pixel positions to be referred to for the parallelism determination. The judgment is based on the inherent characteristics of barcodes, that is, image signals P35 lined up in one direction within the scanning window.
°P45°P55°pas°P75°P53°P54°
P56°P5: 1P35°P45°P55”P65°
P75°P53°P54°F'se°P57 = IP
51 'P53°P55°P57°P59°P15°P
35°P75°pg5=tP51°P53°P55°P
57°P59°P15°P35°P75°P95°1P
15'P35°P55'P75°P95°P51''''P
53°P57'P59= 1P15°P35°pss°
P75°P95°P51°P53°P57°P5g =
1P33°P44°pss°pea°P77°P37
°P46°P64@P73= IP33°PLEL”P5
5°pea°P77°P37°P46°P64°P73
= 1P37°P46°F'ss°P64°P73°
P33°P44°psa°P77 = 1P37°P4
6°P55°P64°P73°P33°P44°pea
°P77=1P11°P33'P55°P77°P99
°P19°P37°P73°Pg1 = 1' P11
°P33°P55'P77”P99°P19”P37”
P73°Pg1 = IP19°P37°P55°P7
3°P91°P11°P33°P77°P99°1 Bi1
91 Bi37"P556 Bi73°F91 °F11 F3
3°P77"P99=1'31"43°P55°P6
7°P79°'17°P36°P74°P93:1P3
1°P43°P55°P67°P79°P17°P36
°P74°Pg3 ” IP17°P36°P55°P
74°P93°P31°'43°P67°P79= 1
213”34°P55°P76°P97°P39”47
°P63°P71: 1P39°P47°P55°P63
°'71°P13"34°'76°P97=1
The specific configuration of image signal processing using a scanning window and the logic circuit configuration of the above-mentioned determination formula are common techniques, and their explanation will be omitted. Next, the area determination circuit 6 is a circuit that takes the logical sum of all the data within the scanning window and outputs it as an output signal, and the black (1) of the input image signal is substantially expanded by the size of the scanning window. The extraction circuit 7 is a circuit that takes the logical product of the output signal of the binarization circuit 2 and the output signal of the area determination circuit 6, and removes (or reduces) the background image of the barcode and then stores it in the binary data memory 8. This is to prevent unnecessary data from being given to the subsequent barcode decoding circuit. (This is an unnecessary circuit if there is no possibility of a judgment error in the barcode decoding circuit later)
The center calculation circuit 9 calculates the slope and center of the barcode from the black (1) data address of the output signal of the area determination circuit 6. 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 9 will now be described. 12 in the same figure is the image data area (corresponds to the area of the binary data memory), 13 is the filled barcode area, there is no other background noise, the barcode is rectangular, and it is decoded when read in the long side direction. It shall be possible to convert
長方形の4点を(xl。Four points of a rectangle (xl.
yl)、(X2.y2)、(X31 y3 )、(x4
.y4)とし、それぞれ
(xl、yl); yが最少である点pyrnin(X
2.y2); yが最大である点g’y□8(x3.y
3); Xが最少である点px□1n(x4・y4)i
Xが最大である点px□8以下の演算において+ya−
yβl>1xa−xβであるときX座標とy座標を交換
して演算する。yl), (X2.y2), (X31 y3), (x4
.. y4), respectively (xl, yl); the point pyrnin(X
2. y2); Point g'y□8(x3.y
3); Point px□1n(x4・y4)i where X is minimum
+ya- in calculations below the point px□8 where X is maximum
When yβl>1xa−xβ, the calculation is performed by exchanging the X and y coordinates.
第4図の例では傾きは長辺2点から傾きaはa ” (
y2 y3)/(x2 x3) または
a = (y4−yl )/(X4−Xl )傾きが逆
になると
a = (y2−y4)/(x2 X4)
またはa =(y3−yl )/(13Xl )中心
(X□、y□)は
zo:(x4−x3)/2
y□= (y2−yl )/2
第5図に長方形4点’ ymln” ymax” xr
nln’px□8の各座標点(X l + yl )
+ (X 2+ 12) *(x3.y3)、(x4.
y4)を演算する動作フローを示す。第4図において、
14は開始点、15は黒信号検出部で入力画像信号−走
査線のデータから最初の黒信号を検出するところである
。黒信号が無ければ16で副走査終了かを判定し終了で
あれば黒信号の検出不可である17の異常終了へ、副走
査終了で無ければ15の黒信号検出部へ戻る。In the example in Figure 4, the slope is from the two long sides to the slope a ” (
y2 y3)/(x2 x3) or a = (y4-yl)/(X4-Xl) If the slope is reversed, a = (y2-y4)/(x2 X4)
Or a = (y3-yl)/(13Xl) The center (X□, y□) is zo: (x4-x3)/2 y□= (y2-yl)/2 4 rectangular points 'ymln' in Figure 5 ymax”xr
Each coordinate point of nln'px□8 (X l + yl)
+ (X 2+ 12) *(x3.y3), (x4.
y4) is shown. In Figure 4,
Reference numeral 14 denotes a starting point, and 15 a black signal detection unit which detects the first black signal from the input image signal-scanning line data. If there is no black signal, it is determined in step 16 whether the sub-scanning has ended, and if it has ended, the process returns to abnormal termination in step 17 in which the black signal cannot be detected, and if the sub-scanning has not ended, it returns to the black signal detection section in step 15.
15で黒信号を検出すると18の各ポインタ初期値セッ
ト部へいき’ymln・pym社・pxmin・p8□
−8各点のX+ X座標に黒信号を検出した最初のア
ドレスをセットする。次に19で副走査終了かを判定し
終了であれば17の異常終了へ、終了でなげれば20の
黒信号検出部へいく。2oの黒信号検出部は次のライン
の入力画像信号−走査線のデータから黒信号を検出する
ところである。黒信号を検出すると21の各ポインタ更
新へいく。ここで、検出した黒信号の始点をp 、終点
をp とした3 e
とき点p のX、X座標に点p のアドレスyma
x @をセッ
トし、点p のXアドレスが点ρ のs
xminXアドレスよ
り小さければ点p のx、 y座m In
標に点p のアドレスをセットし、p のXアト3
eレスが点p のXアドレスより大きければ点
maX
’xrnaxのx、y座標に点p のアドレスをセラト
する。2oの黒信号検出部で黒信号が検出されなくなる
と22にいき正常終了となる。アドレス演算回路1oは
2値データメモリ8にデータ入力が完了した後、バーコ
ードの傾きに添ってデータを読み出すためのアドレスを
演算するところである。傾き・中心演算回路9で求めた
傾き易と中心(X□、y□)から中心(X□、y□)
を通る直線y=ax+bを求め直線に従ってデータを
読み出す。読みだしアドレスx、yは
x=1.2.3・・・・・
y = a x + b
1):=yo aN。When a black signal is detected in 15, it goes to each pointer initial value setting section in 18'ymln, pym, pxmin, p8□
-8 Set the first address where the black signal was detected to the X+X coordinate of each point. Next, in step 19, it is determined whether the sub-scanning has ended or not, and if it has ended, the process goes to abnormal end 17, and if it has ended, it goes to black signal detection section 20. The black signal detection section 2o detects a black signal from the input image signal of the next line-scanning line data. When a black signal is detected, the process goes to step 21 to update each pointer. Here, when the starting point of the detected black signal is p and the ending point is p, 3e, the X of point p, and the address yma of point p at the X coordinate.
Set x @, and the X address of point p is s of point ρ
If it is smaller than xminX address, set the address of point p at the x and y coordinates m In of point p, and
If e-res is larger than the X address of point p, the address of point p is set to the x and y coordinates of point max'xrnax. When the black signal detecting section 2o no longer detects the black signal, the process goes to 22 and ends normally. The address calculation circuit 1o calculates an address for reading data in accordance with the slope of the bar code after data input to the binary data memory 8 is completed. From the slope and center (X□, y□) to the center (X□, y□) obtained by the slope/center calculation circuit 9
A straight line y=ax+b passing through is found and data is read out according to the straight line. The read addresses x and y are x=1.2.3... y = a x + b 1):=yo aN.
傾き・中心演算回路9とアドレス演算回路10はマイク
ロコンピュータで演算回路を構成する。バーコード復号
化回路11は従来のバーコード復号化技術をそのまま適
用でき、例えば符号の参照テーブルと比較するなどして
バーコードの復号を行う。The slope/center arithmetic circuit 9 and the address arithmetic circuit 10 constitute an arithmetic circuit using a microcomputer. The barcode decoding circuit 11 can apply conventional barcode decoding techniques as is, and decodes the barcode by, for example, comparing it with a code reference table.
発明の効果
以上のように、本発明の効果としては、バーコードの傾
き方向を検出して、記憶手段に記憶した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 even if the barcode label is attached in any direction on the input document.
第1図は本発明の一実施例における画像信号処理装置の
ブロック構成図、第2図は同装置における要部の細線拡
大の説明図、第3図は同装置の要部における平行性判定
に用いる走査窓の概念図、第4図は同装置の要部におけ
る塗り潰したバーコード領域の概念図、第5図は同装置
の要部におけるバーコード長方形領域4点のアドレスを
演算する動作フローチャートである。
3・・・・・・細線拡大回路、4・・・・・・データ間
引き回路、5・・・・・・テクスチャ判定回路、6・・
・・・・領域判定回路、9・・・・・・傾き・中心演算
回路、9・・・・・・アドレス演算回路。
代理人の氏名 弁理士 粟 野 重 孝 ほか1名第2
図
(d)
−OOO100OINOOO−/”
−−−001+00m 7000−/”−00/110
1711100−/””(eン
第
図
第
図
□主疋量方向XFig. 1 is a block configuration diagram of an image signal processing device according to an embodiment of the present invention, Fig. 2 is an explanatory diagram of thin line enlargement of the main part of the same equipment, and Fig. 3 is an illustration of parallelism determination in the main part of the same equipment. Figure 4 is a conceptual diagram of the scanning window used, Figure 4 is a conceptual diagram of the filled-in barcode area in the main part of the device, and Figure 5 is an operation flowchart for calculating addresses of four barcode rectangular areas in the main part of the device. be. 3... Thin line enlarging circuit, 4... Data thinning circuit, 5... Texture determination circuit, 6...
. . . Area determination circuit, 9 . . . Slope/center calculation circuit, 9 . . . Address calculation circuit. Name of agent: Patent attorney Shigetaka Awano and 1 other person 2nd
Figure (d) -OOO100OINOOO-/” ---001+00m 7000-/”-00/110
1711100-/””(e) Main width direction
Claims (2)
ータを2値化する2値化手段と、その2値データの細線
部を拡大する細線拡大手段と、その細線部の拡大された
データから所定のデータを選択する間引き手段と、その
間引きデータからバーコードのテクスチャを判定するテ
クスチャ判定手段と、そのテクスチャ判定出力を所定サ
イズ分拡大し前記テクスチャ判定出力間を連続させる領
域判定手段と、前記2値データを記憶する記憶手段と、
前記領域判定データから前記長方形バーコードの傾きと
中心を演算する演算手段と、前記傾き方向に前記記憶手
段のデータを読み出すためのアドレス演算手段と、前記
記憶手段から読みだしたデータからバーコードを復号す
るバーコード復号化手段とを具備する画像信号処理装置
。(1) A binarization means for binarizing the scan-resolved data of the original image including the rectangular barcode area, a thin line enlarging means for enlarging the thin line part of the binary data, and a thin line enlargement means for enlarging the thin line part of the binary data. a thinning means for selecting predetermined data; a texture determining means for determining the texture of the barcode from the thinned data; an area determining means for enlarging the texture determination output by a predetermined size and making the texture determination outputs continuous; a storage means for storing binary data;
calculation means for calculating the slope and center of the rectangular barcode from the area determination data; address calculation means for reading data from the storage means in the direction of the slope; and calculation means for calculating the barcode from the data read from the storage means. An image signal processing device comprising barcode decoding means for decoding.
ータを2値化する2値化手段と、その2値データの細線
部を拡大する細線拡大手段と、その細線部の拡大された
データから所定のデータを選択する間引き手段と、その
間引きデータからバーコードのテクスチャを判定するテ
クスチャ判定手段と、前記テクスチャ判定出力を所定サ
イズ分拡大し前記テクスチャ判定出力間を連続させる領
域判定手段と、その領域判定データで前記2値データを
ゲート出力する切り出し手段と、前記切り出しデータを
記憶する記憶手段と、前記領域判定データから前記長方
形バーコードの傾きと中心を演算する演算手段と、前記
傾き方向に前記記憶手段のデータを読み出すためのアド
レス演算手段と、前記記憶手段から読みだしたデータか
らバーコードを復号するバーコード復号化手段とを具備
する画像信号処理装置。(2) Binarization means for binarizing the scan-resolved data of the original image including the rectangular barcode area, thin line enlarging means for enlarging the thin line part of the binary data, and the enlarged data of the thin line part. a thinning means for selecting predetermined data; a texture determining means for determining the texture of a barcode from the thinned data; an area determining means for enlarging the texture determination output by a predetermined size and making the texture determination outputs continuous; a clipping means for gate-outputting the binary data using region determination data; a storage means for storing the clipping data; a calculation means for calculating the slope and center of the rectangular barcode from the region determination data; An image signal processing device comprising: address calculation means for reading data from the storage means; and barcode decoding means for decoding a barcode from the data read from the storage means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63174568A JPH0223485A (en) | 1988-07-13 | 1988-07-13 | Picture signal processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63174568A JPH0223485A (en) | 1988-07-13 | 1988-07-13 | Picture signal processor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0223485A true JPH0223485A (en) | 1990-01-25 |
Family
ID=15980835
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63174568A Pending JPH0223485A (en) | 1988-07-13 | 1988-07-13 | Picture signal processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0223485A (en) |
-
1988
- 1988-07-13 JP JP63174568A patent/JPH0223485A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS61115179A (en) | Bar code reader | |
| JPS62214481A (en) | Image quality judgment device | |
| JP3758266B2 (en) | Code reader | |
| JPH0223485A (en) | Picture signal processor | |
| JPS6141029B2 (en) | ||
| JPH0223487A (en) | Picture signal processor | |
| JPS63205783A (en) | Image style identification device | |
| JPH0223483A (en) | Image signal processing device | |
| JPH0223486A (en) | Image signal processing device | |
| JPH0223489A (en) | Picture signal processor | |
| JPH02168363A (en) | Image signal processor | |
| JP2853140B2 (en) | Image area identification device | |
| JPH0127473B2 (en) | ||
| JPS59189469A (en) | Vector generating system of line picture | |
| JPH02125386A (en) | Image signal processing device | |
| JPH02176884A (en) | Image signal processing device | |
| JPS58195986A (en) | Threshold value controller of character reader | |
| JPH02168364A (en) | Image signal processing device | |
| JP3320124B2 (en) | Image reading device | |
| JPH02125383A (en) | Image signal processing device | |
| JPS61193570A (en) | Binary coding system for picture data | |
| JPH0371326A (en) | Scanning adding device | |
| JPS6136880A (en) | Contour tracking device | |
| JPH02125384A (en) | Image signal processing device | |
| JPH0223484A (en) | Picture signal processor |