Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4231476B2 - An image processing method for collating an input image inputted with a printed matter or a sticker label of a container with a master image registered in advance - Google Patents
[go: Go Back, main page]

JP4231476B2 - An image processing method for collating an input image inputted with a printed matter or a sticker label of a container with a master image registered in advance - Google Patents

An image processing method for collating an input image inputted with a printed matter or a sticker label of a container with a master image registered in advance Download PDF

Info

Publication number
JP4231476B2
JP4231476B2 JP2004379734A JP2004379734A JP4231476B2 JP 4231476 B2 JP4231476 B2 JP 4231476B2 JP 2004379734 A JP2004379734 A JP 2004379734A JP 2004379734 A JP2004379734 A JP 2004379734A JP 4231476 B2 JP4231476 B2 JP 4231476B2
Authority
JP
Japan
Prior art keywords
image
label
line
reduced
container surface
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
Application number
JP2004379734A
Other languages
Japanese (ja)
Other versions
JP2006185294A (en
Inventor
信二郎 高崎
靖昌 高橋
毅 長谷川
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.)
Chuo Electronics Co Ltd
Original Assignee
Chuo Electronics Co Ltd
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 Chuo Electronics Co Ltd filed Critical Chuo Electronics Co Ltd
Priority to JP2004379734A priority Critical patent/JP4231476B2/en
Publication of JP2006185294A publication Critical patent/JP2006185294A/en
Application granted granted Critical
Publication of JP4231476B2 publication Critical patent/JP4231476B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Image Input (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Description

本発明は、流通業界の在庫管理や製造業の品質管理に利用できる発明に関する。   The present invention relates to an invention that can be used for inventory management in the distribution industry and quality control in the manufacturing industry.

対象画像データを粗くして相関係数を算出し、さらに、候補の場所を細かく相関係数の計算を行っていた。
特開平6−160047号公報
The correlation coefficient is calculated by coarsening the target image data, and the correlation coefficient is calculated finely at the candidate location.
JP-A-6-160047

照合完了までの処理時間を従来技術より早くすること。   The processing time until collation is completed is faster than that of the conventional technology.

以下に記す4つの手段で照合処理を実施した。
(1)画像入力→メモリに展開→不要部分の削除→粗い濃度差分のマッチング→相関係数を算出し照合する。
(2)画像入力→メモリに展開→不要部分の削除→粗い濃度比較によるマッチング→相関係数を算出し照合する。
(3)画像入力→メモリに展開→不要部分の削除→粗い2次元変化量の比較によるマッチング→相関係数を算出し照合する。
(4)画像入力→メモリに展開→不要部分の削除→2値化による粗い2次元変化量の比較によるマッチング→相関係数を算出し照合する。
The verification process was carried out by the following four means.
(1) Image input → develop in memory → deletion of unnecessary portion → rough density difference matching → correlation coefficient is calculated and collated.
(2) Image input → develop in memory → delete unnecessary part → matching by rough density comparison → calculate correlation coefficient and collate.
(3) Image input → develop in memory → delete unnecessary part → match by comparison of coarse two-dimensional change amount → correlation coefficient is calculated and collated.
(4) Image input → develop in memory → deletion of unnecessary part → matching by comparison of coarse two-dimensional change amount by binarization → correlation coefficient is calculated and collated.

容器表面の印刷物又は貼付ラベルをスキャンして得た入力画像を予め登録してあるマスタ画像と照合し、照合完了までの処理時間を従来技術よりも早くすると共に照合の誤認率を低くさせて、流通業界の在庫管理や製造業の品質管理に役立てることができる。   The input image obtained by scanning the printed matter or the attached label on the surface of the container is collated with a master image that has been registered in advance, and the processing time until the completion of collation is made faster than the conventional technique and the misidentification rate of collation is lowered, It can be used for inventory management in the distribution industry and quality control in the manufacturing industry.

以下、本発明の実施例を図面を参照しながら説明する。 図1は、本発明の照合装置の構成を示すブロック図である。   Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of the collation device of the present invention.

統括制御部3を中心とし、画像データを展開しておくメモリ5、予め登録した画像データ(マスタ画像)を格納しておく外部記憶装置6、結果や情報を表示するCRT4、容器7から画像データ8(入力画像)を取り込むための入力装置1、および画像入力部2から構成される。   Image data from a memory 5 for developing image data, an external storage device 6 for storing pre-registered image data (master image), a CRT 4 for displaying results and information, and a container 7 centering on the overall control unit 3 8 (input image) is composed of an input device 1 and an image input unit 2.

(1)容器7を回転させながら、入力装置1で容器表面をスキャンし、濃淡画像データ(256階調)の画像入力部2に取り込む。統括制御部3は、画像入力部2から画像データを読み込みメモリ5に展開する。
(2)メモリ5に展開した入力画像は、図1−1に示すように照合対象外9の部分を含んでいるので、この部分を除去する。照合対象外部分の除去は、図1−1に示す入力画像の1ラインの全画素の濃度値が任意の範囲に収まっている時に、そのラインを不要と判定することでおこなう。また、照合対象部分のラインの濃度は複数個の画素が任意の範囲に収まらないので不要と判定しない。不要と判定したラインを除去することにより、ラベル部分8だけが残った入力画像となる。
(1) While rotating the container 7, the input device 1 scans the surface of the container and takes it into the image input unit 2 of grayscale image data (256 gradations). The overall control unit 3 reads the image data from the image input unit 2 and develops it in the memory 5.
(2) Since the input image developed in the memory 5 includes a non-verification 9 portion as shown in FIG. 1-1, this portion is removed. The external part to be collated is removed by determining that the line is unnecessary when the density values of all the pixels of one line of the input image shown in FIG. Further, the line density of the verification target portion is not determined as unnecessary because a plurality of pixels do not fall within an arbitrary range. By removing lines determined to be unnecessary, an input image in which only the label portion 8 remains is obtained.

請求項1に記載の「照合対象外の部分を除去する方法」を、図1−2に示す「入力画像の例」と、図1−3に示す「照合対象外部分の除去処理フローチャート」を用いて説明する。   The “method for removing a non-verification part” according to claim 1 is divided into an “input image example” shown in FIG. It explains using.

図1−2において、入力画像は横方向40画素(40列)、縦方向23画素(23ライン)によって構成されている。また〔ライン毎の集計結果を格納する集計配列〕は、各ライン毎に濃度値の比較をおこなった結果(カウント値)を格納する集計配列である。   In FIG. 1-2, the input image is composed of 40 pixels in the horizontal direction (40 columns) and 23 pixels in the vertical direction (23 lines). [Totaling array for storing totaling results for each line] is a totaling array for storing the results (count values) of density value comparison for each line.

次に、照合対象部分(図1−2に示す9)の除去処理方法を、図1−3に示すフローチャートを用いて説明する。
まず、ライン毎の集計結果を格納する集計配列を0でクリアする。(ステップS1)
ラインを示すインデックスpに1をセットする。(ステップS2)
列を示すインデックスqに1をセットする。(ステップS3)
pラインのq画素目の濃度値とpラインのq+1画素目の濃度値の差の絶対値が5以下か判定する。(ステップS4)差の絶対値5は任意である。
(ステップS4)の判定結果がYesのときは(ステップS5)に進み、集計配列のpラインのカウント値を+1し、(ステップS6)へ進む。
(ステップS4)の判定結果がNoのときは(ステップS6)へ進む。
(ステップS6)で列を示すqを+1し、qが横方向の画素数−1以下であれば(ステップS4)へ戻る。qが横方向の画素数−1より大であれば(ステップS8)へ進む。(ステップS7)
(ステップS8)でラインを示すpを+1し、pが縦方向の画素数以下であれば(ステップS4)へ戻る。pが縦方向の画素数より大であれば(ステップS10)へ進む。(ステップS9)
ラインを示すインデックスpに1をセットする。(ステップS10)
集計配列のpラインのカウント値が、横方向の画素数の98%以上か判定する。(ステップS11) なお、この98%は任意である。
判定がYesのときは(ステップS12)へ進む。Noのときは(ステップS13)へ進み、入力画像の1ラインめからp−1ラインめを除去し、(ステップS15)へ進む。(ステップS14)
(ステップS12)でpを+1し、pが縦方向の画素数の1/2より小であれば(ステップS11)へ戻る。pが縦方向の画素数の1/2以上であれば(ステップS15)へ進む。
ラインを示すインデックスpに最下段のライン番号をセットする。(ステップS15)
集計配列のpラインのカウント値が、横方向の画素数の98%以上か判定する。(ステップS16) なお、この98%は任意である。
判定がYesのときは(ステップS17)へ進む。Noのときは(ステップS18)へ進み、入力画像の最下段のラインからp+1ラインめを除去し、終了する。
(ステップS17)でpを−1し、pが縦方向の画素数の1/2より大であれば(ステップS16)へ戻る。pが縦方向の画素数の1/2以下であれば終了する。(ステップS19)
Next, a method for removing the verification target portion (9 shown in FIG. 1-2) will be described with reference to the flowchart shown in FIG. 1-3.
First, the aggregation array that stores the aggregation results for each line is cleared to zero. (Step S1)
1 is set to an index p indicating a line. (Step S2)
1 is set to the index q indicating the column. (Step S3)
It is determined whether the absolute value of the difference between the density value of the q pixel of the p line and the density value of the q + 1 pixel of the p line is 5 or less. (Step S4) The absolute value 5 of the difference is arbitrary.
When the determination result of (Step S4) is Yes, the process proceeds to (Step S5), the count value of the p-line in the total array is incremented by 1, and the process proceeds to (Step S6).
When the determination result of (Step S4) is No, the process proceeds to (Step S6).
In step S6, q indicating a column is incremented by 1, and if q is equal to or less than the number of pixels in the horizontal direction −1, the process returns to step S4. If q is larger than the number of pixels in the horizontal direction −1, the process proceeds to step S8. (Step S7)
In step S8, p indicating a line is incremented by 1, and if p is equal to or smaller than the number of pixels in the vertical direction, the process returns to step S4. If p is larger than the number of pixels in the vertical direction, the process proceeds to step S10. (Step S9)
1 is set to an index p indicating a line. (Step S10)
It is determined whether the count value of the p-line in the aggregate array is 98% or more of the number of pixels in the horizontal direction. (Step S11) This 98% is arbitrary.
When the determination is Yes, the process proceeds to (Step S12). If No, the process proceeds to (Step S13), the p-1 line is removed from the first line of the input image, and the process proceeds to (Step S15). (Step S14)
In (step S12), p is incremented by 1, and if p is smaller than ½ of the number of pixels in the vertical direction, the process returns to (step S11). If p is 1/2 or more of the number of pixels in the vertical direction, the process proceeds to step S15.
The lowest line number is set in the index p indicating the line. (Step S15)
It is determined whether the count value of the p-line in the aggregate array is 98% or more of the number of pixels in the horizontal direction. (Step S16) The 98% is arbitrary.
When the determination is Yes, the process proceeds to (Step S17). If No, the process proceeds to (Step S18), and the p + 1-th line is removed from the lowermost line of the input image, and the process ends.
In step S17, p is decremented by 1. If p is larger than 1/2 of the number of pixels in the vertical direction, the process returns to step S16. If p is ½ or less of the number of pixels in the vertical direction, the process ends. (Step S19)

(3)次に、請求項2に記載の「濃度差分の比較による照合方法」を、図1−4と図1−5を用いて説明する。
図1−4は「画像データを8画素跳びに抽出した画素からなる縮小画像」である。この実施例では、8画素跳びに抽出したが、画素跳びの数は任意である。図1−4の斜め稿の画素部分が8画素跳びで抽出した場所である。
(3) Next, a “collation method by comparing density differences” according to claim 2 will be described with reference to FIGS. 1-4 and 1-5.
FIG. 1-4 is a “reduced image composed of pixels obtained by extracting image data in 8-pixel jumps”. In this embodiment, 8 pixel jumps are extracted, but the number of pixel jumps is arbitrary. The pixel portion of the oblique draft in FIG.

図1−5は、マスタ画像を上述の方法で縮小した〔縮小マスタ画像S〕および入力画像を縮小した〔縮小入力画像D〕である。   1-5 are a [reduced master image S] obtained by reducing the master image by the above-described method and a [reduced input image D] obtained by reducing the input image.

濃度差分の算出は次のようにおこなう。
縮小マスタ画像S(サイズ縦m、横n画素)と、縮小入力画像D(サイズ縦M、横N画素)の濃度差分をdifとする。

Figure 0004231476
(縮小入力画像D(k,l):k=0,1,2,・・・N−n、l=0,1,2,・・・・M−n)
濃度差分の比較による照合方法は、まず、縮小入力画像Dの原点(0,0)から順次、座標をずらしながら縮小マスタ画像Sとの濃度差分を算出していき、濃度差分の変化のピークとなる座標(濃度差分の変化が小→大となる座標)を保存する。座標が(N−n,M−n)まで進んだら、濃度差分の算出は終了する。
(4)次に保存した座標を一つ取り出し、元の入力画像の座標に変換し、その座標を中心にした縦16画素、横16画素の範囲で、マスタ画像と入力画像の相関係数を算出する。なお、この16画素四方の範囲は任意である。相関係数が最大値となった座標と相関係数を、最も一致した候補として保存する。保存してある残りの座標についても同様の処理を行い、最も一致した候補として保存していく。
(5)次に、最も一致した候補の中から、最大の相関係数を求め、その相関係数の座標をマスタ画像と入力画像の一致した位置とする。 The density difference is calculated as follows.
The density difference between the reduced master image S (size m and width n pixels) and the reduced input image D (size M and size N pixels) is defined as dif.
Figure 0004231476
(Reduced input image D (k, l): k = 0, 1, 2,... N−n, l = 0, 1, 2,... M−n)
The collation method based on the comparison of the density difference first calculates the density difference from the reduced master image S while sequentially shifting the coordinates from the origin (0, 0) of the reduced input image D, (Coordinate where the change in density difference is small → large) is saved. When the coordinates have advanced to (N−n, M−n), the calculation of the density difference ends.
(4) Next, one stored coordinate is taken out and converted to the original input image coordinate, and the correlation coefficient between the master image and the input image is obtained within the range of 16 pixels vertically and 16 pixels horizontally centered on the coordinates. calculate. Note that this 16-pixel square range is arbitrary. The coordinates having the maximum correlation coefficient and the correlation coefficient are stored as the best matching candidates. The same processing is performed for the remaining coordinates that have been stored, and the coordinates are stored as the most consistent candidate.
(5) Next, the maximum correlation coefficient is obtained from the most matched candidates, and the coordinates of the correlation coefficient are set as the positions where the master image and the input image match.

(1)画像入力部2から画像データを読み込みメモリ5に展開する。(実施例1と同じ)
(2)メモリ5に展開した入力画像は、照合対象外9の部分を含んでいるので、この部分を除去する。(実施例1と同じ)
(3)次に、請求項3に記載の「濃度分布の比較による照合方法」を、図2−1を用いて説明する。
この実施例では、8画素跳びに画像を抽出したが、画素跳びの数は任意である。(実施例1と同じ)
(1) Image data is read from the image input unit 2 and developed in the memory 5. (Same as Example 1)
(2) Since the input image developed in the memory 5 includes a non-verification 9 portion, this portion is removed. (Same as Example 1)
(3) Next, a “collation method by comparing density distributions” described in claim 3 will be described with reference to FIG.
In this embodiment, an image is extracted in 8-pixel jump, but the number of pixel jumps is arbitrary. (Same as Example 1)

(4)図2−1は、マスタ画像を上述の方法で縮小した〔縮小マスタ画像S〕および入力画像を縮小した〔縮小入力画像D〕と、それぞれの濃度分布である。
縮小入力画像Dの濃度分布の算出は次のように行う。
縮小マスタ画像S(サイズ縦m、横n画素)と縮小入力画像D(サイズ縦M、横N画素)とした場合、縮小入力画像Dの中で、縦m画素、横n画素のエリアの濃度分布を求める。
濃度分布の比較による照合方法は、まず縮小入力画像Dの原点(0,0)から順次、座標をずらしながら濃度分布を求め、縮小マスタ画像Sの濃度分布との差を算出していく。各濃度分布の差が任意に設定した許容範囲(請求項5参照)より小さい値が出現したら、その座標を保存する。座標が(N−n,M−n)まで進んだら、濃度分布の比較は終了する。
(4) FIG. 2-1 shows respective density distributions of the reduced master image S reduced by the above-described method and the reduced input image D reduced the input image.
The density distribution of the reduced input image D is calculated as follows.
When the reduced master image S (size m and width n pixels) and the reduced input image D (size length M and width N pixels), the density of the area of the vertical m pixels and width n pixels in the reduced input image D is shown. Find the distribution.
In the collation method based on the comparison of the density distributions, first, the density distribution is obtained by sequentially shifting the coordinates from the origin (0, 0) of the reduced input image D, and the difference from the density distribution of the reduced master image S is calculated. If a value smaller than the arbitrarily set tolerance (see claim 5) appears, the coordinates are stored. When the coordinates have advanced to (N−n, M−n), the comparison of the density distributions ends.

(5)ここで、特徴量の算出を差分データと前回算出した特徴量から計算して処理時間を短縮する。
請求項4に記載の「差分データ群のみの計算により計算回数を減らす方法」を図2−2を用いて説明する。
前述の縮小入力画像Dで各点の特徴量(濃度分布)を求める時、次エリアの特徴量の算出は次のように行う。
前回の特徴量(濃度分布)をHo、今回求める特徴量(濃度分布)をHn、前回の特徴量(濃度分布)Hoの最前列部分の特徴量(濃度分布)をhf、今回求める特徴量(濃度分布)Hnの最後列部分の特徴量(濃度分布)をhbとすると次のように表せる。
Hn=Ho−hf+hb
図2−2に示したように、前述の縮小入力画像Dの一部から次のエリアの特徴量を算出する。
(5) Here, the processing time is shortened by calculating the feature amount from the difference data and the previously calculated feature amount.
The “method for reducing the number of calculations by calculating only the difference data group” according to claim 4 will be described with reference to FIG.
When the feature amount (density distribution) of each point is obtained from the reduced input image D described above, the feature amount of the next area is calculated as follows.
The previous feature value (density distribution) is Ho, the feature value (density distribution) obtained this time is Hn, the feature value (density distribution) in the front row of the previous feature value (density distribution) Ho is hf, and the feature value obtained this time ( If the feature amount (density distribution) in the last column portion of the density distribution (Hn) is hb, it can be expressed as follows.
Hn = Ho-hf + hb
As shown in FIG. 2B, the feature amount of the next area is calculated from a part of the reduced input image D described above.

(6)次に照合結果の座標の数(候補数)が一定数以上になる許容範囲を選定する。
請求項5に記載の「候補数が一定数以上になる許容範囲の選定方法」を表1を用いて説明する。
マスタ画像と入力画像の照合処理で検出された座標の数(候補数)が一定数以上となる許容範囲の選定方法は任意の許容範囲での座標群をあらかじめ検出しておき、候補数が一定数以上となる許容範囲を選ぶ。

Figure 0004231476
例として、表1に入力画像4種類A,B,C,Dとマスタ画像の照合を行った結果が示してある。例えば候補数が10件以上存在する許容範囲は、表1から入力画像Aの場合、6%、Bは10%、Cは11%、Dは10%となる。この許容範囲内の座標群を保存する。 (6) Next, select an allowable range in which the number of coordinates (number of candidates) of the collation result is a certain number or more.
The “selection method of an allowable range in which the number of candidates becomes a certain number or more” according to claim 5 will be described with reference to Table 1.
The method of selecting an allowable range in which the number of coordinates (number of candidates) detected in the matching process between the master image and the input image exceeds a certain number is to detect a group of coordinates in an arbitrary allowable range in advance, and the number of candidates is constant. Select an allowable range that is at least as large as the number.
Figure 0004231476
As an example, Table 1 shows the result of collating the four types of input images A, B, C, and D with the master image. For example, the allowable range in which there are 10 or more candidates is 6%, B is 10%, C is 11%, and D is 10% in the case of the input image A from Table 1. Coordinate groups within this tolerance are saved.

(7)次に保存した座標を一つ取り出し、元の入力画像の座標に変換し、その座標を中心にした縦16画素、横16画素の範囲で、マスタ画像と入力画像の相関係数を算出する。なお、この16画素四方の範囲は任意である。相関係数が最大値となった座標と相関係数を、最も一致した候補として保存する。保存してある残りの座標についても同様の処理を行い、最も一致した候補として保存していく。(実施例1と同じ)
(8)次に、最も一致した候補の中から、最大の相関係数を求め、その相関係数の座標をマスタ画像と入力画像の一致した位置とする。(実施例1と同じ)
(7) Next, one saved coordinate is taken out and converted to the original input image coordinate, and the correlation coefficient between the master image and the input image is calculated in the range of 16 pixels vertically and 16 pixels horizontally centered on the coordinates. calculate. Note that this 16-pixel square range is arbitrary. The coordinates having the maximum correlation coefficient and the correlation coefficient are stored as the best matching candidates. The same processing is performed for the remaining coordinates that have been stored, and the coordinates are stored as the most consistent candidate. (Same as Example 1)
(8) Next, the maximum correlation coefficient is obtained from the most matched candidates, and the coordinates of the correlation coefficient are set as the positions where the master image and the input image match. (Same as Example 1)

(1)画像入力部2から画像データを読み込みメモリ5に展開する。(実施例1と同じ)
(2)メモリ5に展開した入力画像は、照合対象外9の部分を含んでいるので、この部分を除去する。(実施例1と同じ)
(3)次に、請求項6に記載の「2次元濃度変化量の比較による照合方法」を、図3−1、図3−2を用いて説明する。
この実施例では、8画素跳びに画像を抽出したが、画素跳びの数は任意である。(実施例1と同じ)
(1) Image data is read from the image input unit 2 and developed in the memory 5. (Same as Example 1)
(2) Since the input image developed in the memory 5 includes a non-verification 9 portion, this portion is removed. (Same as Example 1)
(3) Next, the “collation method based on comparison of two-dimensional density change amounts” described in claim 6 will be described with reference to FIGS.
In this embodiment, an image is extracted in 8-pixel jump, but the number of pixel jumps is arbitrary. (Same as Example 1)

(4)図3−1は「多値画像の2次元濃度変化量の検出方法」である。
画像の2次元濃度変化量の検出方法は以下のように行う。
(a) 図3−1の平均濃度X、平均濃度の1/4を求める。この値が変化点の閾値αとなる。
(b) まず、横方向に隣り合った画素同士の濃度差を求め、この値が閾値αより大きい時にカウントアップして、1ライン内で閾値α以上となった変化点の数を求める。
(c) 同様にして、縦方向についても隣り合った画素同士の濃度差が閾値α以上となる個数を各縦ライン毎にカウントしていく。
(d) (b),(c)で算出した変化点の数が2次元濃度変化量である。
(4) FIG. 3A is a “method for detecting a two-dimensional density change amount of a multi-value image”.
The detection method of the two-dimensional density change amount of the image is performed as follows.
(a) Obtain the average density X and 1/4 of the average density in FIG. This value becomes the threshold value α of the change point.
(b) First, the density difference between pixels adjacent in the horizontal direction is obtained, and when this value is larger than the threshold value α, the number is incremented to obtain the number of change points that are greater than or equal to the threshold value α in one line.
(c) Similarly, in the vertical direction, the number of pixels in which the density difference between adjacent pixels is equal to or greater than the threshold value α is counted for each vertical line.
(d) The number of change points calculated in (b) and (c) is the two-dimensional density change amount.

(5)図3−2は「2次元濃度変化量の比較による照合方法」であり、図1−5の方法で縮小した〔縮小マスタ画像S〕および入力画像を縮小した〔縮小入力画像D〕と、それぞれの2次元濃度変化量である。
縮小マスタ画像S(サイズ縦m、横n画素)と縮小入力画像D(サイズ縦M、横N画素)とした場合、まず縮小入力画像Dの原点(0,0)から順次、座標をずらしながら2次元濃度変化量を求め、縮小マスタ画像Sの2次元濃度変化量との差を算出していき、各濃度変化量の差が任意に設定した許容範囲(請求項5参照)より小さい値が出現したら、その座標を保存する。座標が(N−n,M−n)まで進んだら、2次元濃度変化量の比較は終了する。
(5) FIG. 3-2 is a “collation method based on comparison of two-dimensional density change amounts”, which is reduced by the method of FIG. 1-5 [reduced master image S] and reduced input image [reduced input image D]. And the respective two-dimensional density change amounts.
When the reduced master image S (size m, width n pixels) and the reduced input image D (size M, width N pixels) are used, first, the coordinates are sequentially shifted from the origin (0,0) of the reduced input image D. A two-dimensional density change amount is obtained, and a difference from the two-dimensional density change amount of the reduced master image S is calculated, and a value smaller than an allowable range (see claim 5) in which each density change amount difference is arbitrarily set. If it appears, save the coordinates. When the coordinates have advanced to (N−n, M−n), the comparison of the two-dimensional density change amount ends.

(6)ここで特徴量の算出を差分データと前回算出した特徴から計算して処理時間を短縮する。(実施例2と同じ)
(7)照合結果の座標が一定数以上になる許容範囲を選定する。(実施例2と同じ)
(8)次に保存した座標を一つ取り出し、元の入力画像の座標に変換し、その座標を中心にした縦16画素、横16画素の範囲で、マスタ画像と入力画像の相関係数を算出する。なお、この16画素四方の範囲は任意である。相関係数が最大値となった座標と相関係数を、最も一致した候補として保存する。保存してある残りの座標についても同様の処理を行い、最も一致した候補として保存していく。(実施例1と同じ)
(9)次に、最も一致した候補の中から、最大の相関係数を求め、その相関係数の座標をマスタ画像と入力画像の一致した位置とする。(実施例1と同じ)
(6) The feature amount is calculated from the difference data and the previously calculated feature to shorten the processing time. (Same as Example 2)
(7) Select an allowable range where the coordinates of the matching result are a certain number or more. (Same as Example 2)
(8) Next, one stored coordinate is taken out and converted to the original input image coordinate, and the correlation coefficient between the master image and the input image is calculated in the range of 16 pixels vertically and 16 pixels horizontally centered on the coordinates. calculate. Note that this 16-pixel square range is arbitrary. The coordinates having the maximum correlation coefficient and the correlation coefficient are stored as the best matching candidates. The same processing is performed for the remaining coordinates that have been stored, and the coordinates are stored as the most consistent candidate. (Same as Example 1)
(9) Next, the maximum correlation coefficient is obtained from the most matched candidates, and the coordinates of the correlation coefficient are set as the positions where the master image and the input image match. (Same as Example 1)

(1)画像入力部2から画像データを読み込みメモリ5に展開する。(実施例1と同じ)
(2)メモリ5に展開した入力画像は、照合対象外9の部分を含んでいるので、この部分を除去する。(実施例1と同じ)
(3)次に、請求項6に記載の「画像の2値化による2次元濃度変化量の比較による照合方法」を、図4−1、図4−2を用いて説明する。
なお、この実施例では、8画素跳びに画像を抽出したが、画素跳びの数は任意である。(実施例1と同じ)
(1) Image data is read from the image input unit 2 and developed in the memory 5. (Same as Example 1)
(2) Since the input image developed in the memory 5 includes a non-verification 9 portion, this portion is removed. (Same as Example 1)
(3) Next, a “collation method based on comparison of two-dimensional density change amounts by binarizing an image” described in claim 6 will be described with reference to FIGS.
In this embodiment, an image is extracted in 8-pixel jump, but the number of pixel jumps is arbitrary. (Same as Example 1)

(4)図4−1は「2値画像の2次元濃度変化量の検出方法」である。
画像の2次元濃度変化量の検出方法は以下のように行う。
(a) 画像のヒストグラムから閾値を決定し、画像を2値化する。
(b) 横方向に隣り合った画素の濃度差が0→1または1→0へ変化した数をカウントし、1ライン内の変化点の数を求める。
(c) 同様にして、縦方向についても隣り合った画素の濃度差が0→1または1→0へ変化点を各縦ライン(12ライン)毎にカウントしていく。
(d) (b),(c)で算出した変化点の数が2次元濃度変化量である。
(4) FIG. 4A is a “method for detecting a two-dimensional density change amount of a binary image”.
The detection method of the two-dimensional density change amount of the image is performed as follows.
(a) A threshold is determined from the histogram of the image, and the image is binarized.
(b) Count the number of changes in the density difference between pixels adjacent in the horizontal direction from 0 → 1 or 1 → 0 to obtain the number of change points in one line.
(c) Similarly, in the vertical direction, the change point of the density difference between adjacent pixels is counted from 0 → 1 or 1 → 0 for each vertical line (12 lines).
(d) The number of change points calculated in (b) and (c) is the two-dimensional density change amount.

(5)2次元濃度変化量による照合を行う。(実施例3と同じ)
(6)ここで特徴量の算出を差分データと前回算出した特徴から計算して処理時間を短縮する。(実施例2と同じ)
(7)照合結果の座標が一定数以上になる許容範囲を選定する。(実施例2と同じ)
(8)次に保存した座標を一つ取り出し、元の入力画像の座標に変換し、その座標を中心にした縦16画素、横16画素の範囲で、マスタ画像と入力画像の相関係数を算出する。なお、この16画素四方の範囲は任意である。相関係数が最大値となった座標と相関係数を、最も一致した候補として保存する。保存してある残りの座標についても同様の処理を行い、最も一致した候補として保存していく。(実施例1と同じ)
(9)次に、最も一致した候補の中から、最大の相関係数を求め、その相関係数の座標をマスタ画像と入力画像の一致した位置とする。(実施例1と同じ)
(5) Collation based on the two-dimensional density change amount is performed. (Same as Example 3)
(6) The feature amount is calculated from the difference data and the previously calculated feature to shorten the processing time. (Same as Example 2)
(7) Select an allowable range where the coordinates of the matching result are a certain number or more. (Same as Example 2)
(8) Next, one stored coordinate is taken out and converted to the original input image coordinate, and the correlation coefficient between the master image and the input image is calculated in the range of 16 pixels vertically and 16 pixels horizontally centered on the coordinates. calculate. Note that this 16-pixel square range is arbitrary. The coordinates having the maximum correlation coefficient and the correlation coefficient are stored as the best matching candidates. The same processing is performed for the remaining coordinates that have been stored, and the coordinates are stored as the most consistent candidate. (Same as Example 1)
(9) Next, the maximum correlation coefficient is obtained from the most matched candidates, and the coordinates of the correlation coefficient are set as the positions where the master image and the input image match. (Same as Example 1)

照合装置の構成を示すブロック図。The block diagram which shows the structure of a collation apparatus. 入力対象物のスキャニング画像。Scanning image of the input object. 入力対象物のスキャニング画像の例。An example of a scanning image of an input object. 照合対象外部分の削除処理のフローチャート。The flowchart of the deletion process for the external part for collation. 8画素跳びに1画素抽出した画像。An image obtained by extracting one pixel in 8 pixel jumps. 濃度差分の比較による照合方法の説明図。Explanatory drawing of the collation method by comparison of a density difference. 濃度分布の比較による照合方法の説明図。Explanatory drawing of the collation method by comparison of density distribution. 差分による特徴量の算出方法の説明図。Explanatory drawing of the calculation method of the feature-value by a difference. 多値画像の2次元濃度変化量の検出方法の説明図。Explanatory drawing of the detection method of the two-dimensional density variation | change_quantity of a multi-value image. 2次元濃度変化量の比較による照合方法の説明図。Explanatory drawing of the collation method by the comparison of a two-dimensional density | concentration change amount. 2値画像の濃度変化量の検出方法の説明図。Explanatory drawing of the detection method of the density change amount of a binary image.

符号の説明Explanation of symbols

1 入力装置
2 画像入力部
3 統括制御部
4 CRT
5 メモリ
6 外部記憶装置
7 容器
8 ラベル
9 照合対象外
10 照合対象部
11 縦サイズ分の集計結果を格納する集計配列
1 input device 2 image input unit 3 overall control unit 4 CRT
5 Memory 6 External storage device 7 Container 8 Label 9 Non-verification target 10 Verification target part 11 Total array for storing total results for vertical size

Claims (8)

あらかじめラベルの画像を記憶し、容器に付されたラベルが、前記あらかじめ記憶されている画像のラベルと一致しているかを判定するラベル一致判定装置において、
ラベルが付されている容器表面を撮像する入力装置(1)と、
前記入力装置(1)が撮像した前記容器表面の画像が入力されると、
前記容器表面の画像の各ラインにおける隣接画素の濃度差が一定値以内であれば1隣接画素に付き1ずつカウントし、
前記カウントを各ラインごとに記憶し、
前記各ラインごとに記憶された前記カウントの合計値と、前記容器表面の画像のラインを構成する画素数とを、前記容器表面の画像の最端ラインから前記容器表面の画像の中心方向へ1ラインごとに比較し、
前記合計値と、前記画素数との差が一定値以上になったラインより1つ前記最端ライン寄りのラインまでを削除したライン削除済み画像を生成し、
前記ライン削除済み画像と、外部記憶装置(5)にあらかじめ記憶されたラベルの画像とを同一縮小率で縮小し、
縮小した容器表面の画像中におけるラベル部分と、縮小したラベルの画像との一致度が一定以上の座標候補である一致座標候補を算出し、
縮小前の容器表面の画像における前記一致座標候補に対応する候補座標を算出し、
前記縮小前の容器表面の画像中の前記候補座標における前記ラベルの画像との相関係数を算出する統括制御部(6)と、
を備えることを特徴とするラベル一致判定装置。
In the label coincidence determination device that stores the image of the label in advance and determines whether the label attached to the container matches the label of the image stored in advance,
An input device (1) for imaging the container surface to which the label is attached;
When an image of the container surface imaged by the input device (1) is input,
If the density difference between adjacent pixels in each line of the image of the container surface is within a certain value, one is counted per adjacent pixel,
Storing the count for each line;
The total value of the count stored for each line and the number of pixels constituting the line of the container surface image are set to 1 from the extreme end line of the container surface image toward the center of the container surface image. Compare line by line,
A line deleted image is generated by deleting from the line where the difference between the total value and the number of pixels is a certain value or more to one line closer to the endmost line,
Reducing the line-deleted image and the image of the label stored in advance in the external storage device (5) at the same reduction ratio ;
A matching coordinate candidate that is a coordinate candidate whose degree of matching between the label portion in the image of the reduced container surface and the image of the reduced label is equal to or greater than a certain value,
Calculating candidate coordinates corresponding to the matching coordinate candidates in the image of the container surface before reduction ,
An overall control unit (6) for calculating a correlation coefficient with the image of the label at the candidate coordinates in the image of the container surface before the reduction ;
A label matching judgment device comprising:
前記統括制御部(6)が、
前記縮小した容器表面の画像中における、前記縮小したラベルの画像との濃度差分を算出し、
前記濃度差分が小さい座標を前記一致座標候補として算出することを特徴とする請求項1記載のラベル一致判定装置。
The overall control unit (6)
In the image of the reduced the container surface, and calculating the density difference between the image of the label in the reduced,
The label matching determination apparatus according to claim 1, wherein coordinates having a small density difference are calculated as the matching coordinate candidates.
前記統括制御部(6)が、
前記縮小した容器表面の画像中における濃度分布と、前記縮小したラベルの画像の濃度分布とを算出し、
前記濃度分布の差が小さい座標を前記一致座標候補として算出することを特徴とする請求項1記載のラベル一致判定装置。
The overall control unit (6)
Calculating a density distribution in the image of the reduced container surface, and a concentration distribution of a label of images the reduced,
The label matching determination apparatus according to claim 1, wherein coordinates having a small difference in density distribution are calculated as the matching coordinate candidates.
前記統括制御部(6)が、
前記縮小した容器表面の画像中における二次元濃度変化量と、前記縮小したラベルの画像の二次元濃度変化量とを算出し、
前記二次元濃度変化量の差が小さい座標を前記一致座標候補として算出することを特徴とする請求項1記載のラベル一致判定装置。
The overall control unit (6)
Calculating a two-dimensional density variation in the image of the reduced the container surface, and a two-dimensional density change amount of the label of the image the reduced,
The label matching determination apparatus according to claim 1, wherein coordinates with a small difference in the two-dimensional density change amount are calculated as the matching coordinate candidates.
前記統括制御部(6)が、
前記縮小した容器表面の画像と、前記縮小したラベルの画像とを二値化し、
各々の画像について二次元濃度変化量を算出し、
前記二次元濃度変化量の差が小さい座標を前記一致座標候補として算出することを特徴とする請求項記載のラベル一致判定装置。
The overall control unit (6)
The image of the reduced the container surface, and an image of the label in the reduced binarized,
Calculate the two-dimensional density change amount for each image,
The label matching determination apparatus according to claim 4 , wherein coordinates having a small difference in the two-dimensional density change amount are calculated as the matching coordinate candidates.
前記統括制御部(6)が、
縮小した容器表面の画像中における、縮小したラベルの画像との一致座標候補を、前記縮小した容器表面の画像中を前記縮小したラベルの画像をずらすことによって算出する際、
ずらしたときの差分のみを用いて前記一致座標候補を算出することを特徴とする請求項1記載のラベル一致判定装置。
The overall control unit (6)
In the image of the reduced container surface, when calculating by matching coordinate candidate with the reduced label image, shifting the image of the label with the image of the reduced containers surface the reduced,
The label matching determination apparatus according to claim 1, wherein the matching coordinate candidate is calculated using only the difference when shifted.
前記統括制御部(6)が、
縮小した容器表面の画像中における、縮小したラベルの画像との一致座標候補を算出するに際して、
前記一致座標候補が一定数以上になるように、前記縮小した容器表面の画像中における、前記縮小したラベルの画像との一致度の差異を変更することを特徴とする請求項1記載のラベル一致判定装置。
The overall control unit (6)
When calculating the matching coordinate candidate with the reduced label image in the reduced container surface image,
Wherein as matching coordinate candidate is equal to or greater than the certain number, in the image of the reduced containers surface, wherein the reduced degree of matching labels match according to claim 1, characterized in that to change the difference between the label image Judgment device.
あらかじめラベルの画像を記憶し、容器に付されたラベルが、前記あらかじめ記憶されている画像のラベルと一致しているかを判定するラベル一致判定方法において、
入力装置(1)が、ラベルが付されている容器表面を撮像し、
統括制御部(6)が、
前記入力装置(1)が撮像した前記容器表面の画像が入力されると、
前記容器表面の画像の各ラインにおける隣接画素の濃度差が一定値以内であれば1隣接画素に付き1ずつカウントし、
前記カウントを各ラインごとに記憶し、
前記各ラインごとに記憶された前記カウントの合計値と、前記容器表面の画像のラインを構成する画素数とを、前記容器表面の画像の最端ラインから前記容器表面の画像の中心方向へ1ラインごとに比較し、
前記合計値と、前記画素数との差が一定値以上になったラインより1つ前記最端ライン寄りのラインまでを削除したライン削除済み画像を生成し、
前記ライン削除済み画像と、外部記憶装置(5)にあらかじめ記憶されたラベルの画像とを同一縮小率で縮小し、
縮小した容器表面の画像中におけるラベル部分と、縮小したラベルの画像との一致度が一定以上の座標候補である一致座標候補を算出し、
縮小前の容器表面の画像における前記一致座標候補に対応する候補座標を算出し、
前記縮小前の容器表面の画像中の前記候補座標における前記ラベルの画像との相関係数を算出することを特徴とするラベル一致判定方法。
In a label matching determination method for storing an image of a label in advance and determining whether a label attached to a container matches the label of the image stored in advance.
The input device (1) images the surface of the container with the label,
The general control unit (6)
When an image of the container surface imaged by the input device (1) is input,
If the density difference between adjacent pixels in each line of the image of the container surface is within a certain value, one is counted per adjacent pixel,
Storing the count for each line;
The total value of the count stored for each line and the number of pixels constituting the line of the container surface image are set to 1 from the extreme end line of the container surface image toward the center of the container surface image. Compare line by line,
A line deleted image is generated by deleting from the line where the difference between the total value and the number of pixels is a certain value or more to one line closer to the endmost line,
Reducing the line-deleted image and the image of the label stored in advance in the external storage device (5) at the same reduction ratio ;
A matching coordinate candidate that is a coordinate candidate whose degree of matching between the label portion in the image of the reduced container surface and the image of the reduced label is equal to or greater than a certain value,
Calculating candidate coordinates corresponding to the matching coordinate candidates in the image of the container surface before reduction ,
A label matching determination method, wherein a correlation coefficient with the label image at the candidate coordinates in the image of the container surface before the reduction is calculated.
JP2004379734A 2004-12-28 2004-12-28 An image processing method for collating an input image inputted with a printed matter or a sticker label of a container with a master image registered in advance Expired - Fee Related JP4231476B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004379734A JP4231476B2 (en) 2004-12-28 2004-12-28 An image processing method for collating an input image inputted with a printed matter or a sticker label of a container with a master image registered in advance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004379734A JP4231476B2 (en) 2004-12-28 2004-12-28 An image processing method for collating an input image inputted with a printed matter or a sticker label of a container with a master image registered in advance

Publications (2)

Publication Number Publication Date
JP2006185294A JP2006185294A (en) 2006-07-13
JP4231476B2 true JP4231476B2 (en) 2009-02-25

Family

ID=36738352

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004379734A Expired - Fee Related JP4231476B2 (en) 2004-12-28 2004-12-28 An image processing method for collating an input image inputted with a printed matter or a sticker label of a container with a master image registered in advance

Country Status (1)

Country Link
JP (1) JP4231476B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101055295B1 (en) 2011-06-22 2011-08-08 우진철망 주식회사 Rural block construction method using grid integrated vegetation wire basket and grid integrated vegetation wire basket

Also Published As

Publication number Publication date
JP2006185294A (en) 2006-07-13

Similar Documents

Publication Publication Date Title
US6778703B1 (en) Form recognition using reference areas
CN103914858B (en) Document Image Compression Method And Its Application In Document Authentication
CN101425142B (en) Method and device for determining page angle of slope
CN111814722A (en) A form recognition method, device, electronic device and storage medium in an image
JP6268023B2 (en) Character recognition device and character cutout method thereof
CN112507782A (en) Text image recognition method and device
CN113918744B (en) Similar image retrieval methods, devices, storage media, and computer program products
JP2001283152A (en) Device and method for discrimination of forms and computer readable recording medium stored with program for allowing computer to execute the same method
JP2002133426A (en) Ruled line extraction device for extracting ruled lines from multi-valued images
US9965678B2 (en) Method for recognizing table and flowchart in document images
CN111598076B (en) Method and device for detecting and processing date in label image
KR100383858B1 (en) Character extracting method and device
CN106204616B (en) Method and device for identifying currency value of Iran paper money
CN107680246B (en) Method and equipment for positioning curve boundary in paper money pattern
JP2014071866A (en) Image processor, image processing method, and program
JP2003091730A (en) Image checkup device, image checkup method and image checkup program
JP4231476B2 (en) An image processing method for collating an input image inputted with a printed matter or a sticker label of a container with a master image registered in advance
CN111583156B (en) Document image shading removing method and system
KR100503724B1 (en) Finding objects in an image
CN118097697B (en) Processing method, device and equipment for form image
US6556701B1 (en) Method of and apparatus for extracting dotted line, and storage medium thereof
CN111462035A (en) Picture detection method and device
JP4228592B2 (en) Character recognition device
WO2010113217A1 (en) Character recognition device and character recognition method
CN113837119A (en) Method and equipment for recognizing confusable characters based on gray level images

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080321

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080327

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080522

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080815

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20081014

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: 20081120

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: 20081205

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20111212

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20121212

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20121212

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees