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
JP2882273B2 - Black pattern extraction method - Google Patents
[go: Go Back, main page]

JP2882273B2 - Black pattern extraction method - Google Patents

Black pattern extraction method

Info

Publication number
JP2882273B2
JP2882273B2 JP6024567A JP2456794A JP2882273B2 JP 2882273 B2 JP2882273 B2 JP 2882273B2 JP 6024567 A JP6024567 A JP 6024567A JP 2456794 A JP2456794 A JP 2456794A JP 2882273 B2 JP2882273 B2 JP 2882273B2
Authority
JP
Japan
Prior art keywords
image
calculated
density histogram
black
variance
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
JP6024567A
Other languages
Japanese (ja)
Other versions
JPH07234936A (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.)
NEC Corp
Original Assignee
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP6024567A priority Critical patent/JP2882273B2/en
Publication of JPH07234936A publication Critical patent/JPH07234936A/en
Application granted granted Critical
Publication of JP2882273B2 publication Critical patent/JP2882273B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、下地に黒色以外の単色
パタン・文字が背景として印刷されている対象物の上に
重ねて黒色印刷されたパタンを背景から自動抽出する黒
色パタン抽出方法。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a black pattern extraction method for automatically extracting a black-printed pattern from a background by superimposing it on an object on which a single-color pattern / character other than black is printed as a background.

【0002】[0002]

【従来の技術】従来、黒色以外の単色で背景印刷された
上に重ねて印刷された黒色パタンの印字検査・認識は白
黒カメラにカラーフィルタを併用して、背景色のドロッ
プアウトを行って、輝度信号の濃淡のみによる固定もし
くは自動による一様もしくはローカル2値化処理を行っ
ている。カラーカメラを使用する方法においてもRGB
もしくはYの単色カラーの単純切替を行うか、または、
RGBからのテーブル変換による単色化を行って以降は
白黒カメラと同様の処理を行っている。
2. Description of the Related Art Conventionally, printing inspection / recognition of a black pattern printed on a background printed in a single color other than black is performed by dropping out a background color by using a color filter together with a black-and-white camera. A fixed or automatic uniform or local binarization process based only on the shading of the luminance signal is performed. Even in the method using a color camera, RGB
Or simple switching of Y single color, or
After performing monochrome conversion by table conversion from RGB, the same processing as that of the monochrome camera is performed.

【0003】[0003]

【発明が解決しようとする課題】この従来のカラーフィ
ルタによるドロップアウトを用いた方法では、食品用の
ダンボールカートンのように下地(白色、灰色、茶色
等)の上に背景として一色(青、赤、緑、黄等)が印刷
された多様なワークに対してはカラーフィルタの交換、
照明切替、光学系の微調整が必要となり、多くの手間が
かかってしまう。また、対象物の背景印刷色をカラーセ
ンサで検出し、適当なカラーフィルタを選択する方法も
考えられるが、混流するラインにおいては切替時間を多
く必要とするという問題点がある。
In the conventional method using dropout by a color filter, a single color (blue, red, etc.) is used as a background on a base (white, gray, brown, etc.) like a cardboard carton for food. , Green, yellow, etc.) for various workpieces with printed color filters,
Lighting switching and fine adjustment of the optical system are required, and much labor is required. A method of detecting the background printing color of the object with a color sensor and selecting an appropriate color filter is also conceivable. However, there is a problem that a long switching time is required in a mixed line.

【0004】また、カラーカメラを使用する方法では、
RGBの単純選択では赤/青/緑以外の背景印刷色の場
合は、十分な背景除去を行うことができない。テーブル
変換で単色化する場合は、対象ワークが変わらない場合
は有効であるが、混流ラインにおいてはワーク種類に応
じた膨大な変換テーブルが必要になり、また、テーブル
変換を行う際においても、メモリアクセスの回数および
領域が大きく、キャッシュ機能を搭載したCPUによる
ソフトウエア処理には適さず、十分な実行速度を得るに
はハード化の必要が生じる。
In the method using a color camera,
In the simple selection of RGB, sufficient background removal cannot be performed for background printing colors other than red / blue / green. When converting to a single color by table conversion, it is effective if the target work does not change, but a large number of conversion tables according to the type of work are required in the mixed flow line. Since the number of accesses and the area are large, it is not suitable for software processing by a CPU equipped with a cache function, and hardware needs to be provided to obtain a sufficient execution speed.

【0005】したがって、本発明の目的は、ソフトウエ
アにより効率的に、かつ、混流ラインにおいても切替負
荷が少なく自動的に2色背景を除去して、黒字印刷パタ
ンを抽出する。
Accordingly, it is an object of the present invention to extract a black print pattern efficiently by software, automatically removing a two-color background with a small switching load even in a mixed flow line.

【0006】[0006]

【課題を解決するための手段】上記問題点を解決するた
めに、本発明の黒色パタン抽出方法は、画像入力手段に
より取り込んだ多元カラー単色画像に対し、それぞれ指
定領域内の濃度ヒストグラムを作成し、作成された各濃
度ヒストグラムの平均を算出し、算出された各平均が最
大となる画像の濃度ヒストグラムに基づいて、スライス
値を算出し、このスライス値を用いてこの画像を二値化
し、前記指定領域内の背景+黒色部分の領域を抽出し、
抽出された領域に対し、最初に処理した色を除く他の元
色の濃度ヒストグラムをそれぞれ作成し、作成された各
濃度ヒストグラムの平均を算出し、算出された各平均が
最小となる画像の濃度ヒストグラムに基づいて、スライ
ス値を算出し、このスライス値を用いてこの画像を二値
化し、前記指定領域内の黒色部分の領域を抽出する。
In order to solve the above-mentioned problems, a black pattern extraction method according to the present invention creates a density histogram in a designated area for each of multiple color single color images captured by an image input means. Calculating the average of each created density histogram, calculating the slice value based on the density histogram of the image in which the calculated average is the maximum, binarizing this image using the slice value, Extract the background + black area within the specified area,
For the extracted area, create density histograms of the other original colors except for the first processed color, calculate the average of the generated density histograms, and calculate the density of the image in which the calculated average is the minimum. A slice value is calculated based on the histogram, the image is binarized using the slice value, and a black portion in the designated region is extracted.

【0007】[0007]

【実施例】次に、本発明の第一の実施例について図面を
参照して詳細に説明する。
Next, a first embodiment of the present invention will be described in detail with reference to the drawings.

【0008】図1は、第一の実施例の構成を示すブロッ
ク図であり、画像入力部1は、下地に黒色以外の単色パ
タン・文字が背景として印刷され、その上に重ねて黒色
パタンが印刷されている対象物の指定領域内の画像をR
GBYの4元カラー単色画像として取り込む。
FIG. 1 is a block diagram showing the configuration of the first embodiment. The image input unit 1 has a background in which a monochromatic pattern / character other than black is printed as a background, and a black pattern is superimposed thereon. The image in the designated area of the printed object is
The image is captured as a GBY quaternary color single color image.

【0009】濃度ヒストグラム算出部2は、前記画像入
力部1で取り込まれたカラー画像に対し、RGBY空間
において、指定領域におけるRGBY各色毎の濃度ヒス
トグラムを算出する。
A density histogram calculation unit 2 calculates a density histogram for each of RGBY colors in a designated area in the RGBY space for the color image captured by the image input unit 1.

【0010】分散算出部3は、前記濃度ヒストグラム算
出部2において算出された各色の濃度ヒストグラムの分
散値を算出する。
The variance calculator 3 calculates the variance of the density histogram of each color calculated by the density histogram calculator 2.

【0011】画像選択部4は、RGBY各色のうち前記
分散算出部3において算出された各色の濃度ヒストグラ
ムの分散値が最大を示す色の画像を選択する。
The image selecting section 4 selects an image of a color in which the variance of the density histogram of each color calculated by the variance calculating section 3 is the maximum among the RGBY colors.

【0012】スライス値算出部5は、前記画像選択部4
において選択された画像の濃度ヒストグラムからスライ
ス値を算出する。
[0012] The slice value calculating section 5 is provided with the image selecting section 4.
Calculates a slice value from the density histogram of the image selected in.

【0013】背景+黒部抽出部6は、前記スライス値算
出部5において算出されたスライス値に基づいて、対応
する濃度ヒストグラムから指定領域内の背景+黒部を抽
出する。
The background + black part extraction unit 6 extracts a background + black part in a designated area from a corresponding density histogram based on the slice value calculated by the slice value calculation unit 5.

【0014】濃度ヒストグラム算出部7は、前記背景+
黒部抽出部6において抽出された背景+黒部に対して前
記画像選択部4で選択されなかった3色の濃度ヒストグ
ラムを算出する。
The density histogram calculator 7 calculates the background +
A density histogram of three colors not selected by the image selection unit 4 is calculated for the background + black portion extracted by the black portion extraction unit 6.

【0015】分散算出部8は、前記濃度ヒストグラム算
出部7において算出された各濃度ヒストグラムの分散値
を算出する。
The variance calculator 8 calculates the variance of each density histogram calculated by the density histogram calculator 7.

【0016】画像選択部9は、前記分散算出部8におい
て算出された分散値のなかで最小値を示す画像を選択す
る。
The image selector 9 selects an image having the minimum value among the variances calculated by the variance calculator 8.

【0017】スライス値算出部10は、前記画像選択部
9において選択された画像の濃度ヒストグラムのスライ
ス値を算出する。
The slice value calculator 10 calculates a slice value of the density histogram of the image selected by the image selector 9.

【0018】黒部抽出部11は、前記スライス値算出部
10において算出されたスライス値に基づいて、対応す
る濃度ヒストグラムから指定領域内における黒部を抽出
する。
The black part extraction unit 11 extracts a black part in the designated area from the corresponding density histogram based on the slice value calculated by the slice value calculation unit 10.

【0019】背景+黒部抽出部12は、前記スライス値
算出部10において算出されたスライス値に基づいて、
対応する濃度ヒストグラムから指定領域内の背景+黒部
を抽出する。
The background + black portion extraction unit 12 calculates the slice value based on the slice value calculated by the slice value calculation unit 10.
The background + black portion in the specified area is extracted from the corresponding density histogram.

【0020】スライス値算出部13は、前記背景+黒部
抽出部12において抽出された背景+黒部の濃度ヒスト
グラムからスライス値を算出する。
The slice value calculation unit 13 calculates a slice value from the background + black portion density histogram extracted by the background + black portion extraction unit 12.

【0021】黒部抽出部14は、前記スライス値算出部
13において算出されたスライス値に基づいて、前記背
景+黒部抽出部12において抽出された濃度ヒストグラ
ムから指定領域内の黒部を抽出する。
The black part extracting unit 14 extracts a black part in a designated area from the density histogram extracted by the background + black part extracting unit 12 based on the slice value calculated by the slice value calculating unit 13.

【0022】次に、第一の実施例の動作について図1、
図2、図3、図4および図5を用いて説明する。図2、
図3、図4および図5は、各処理段階における濃度ヒス
トグラムおよびそのスライス値を示している。
Next, the operation of the first embodiment will be described with reference to FIG.
This will be described with reference to FIGS. 2, 3, 4, and 5. FIG.
FIGS. 3, 4 and 5 show a density histogram and its slice values at each processing stage.

【0023】まず、画像入力部1において、下地に黒色
以外の単色パタン・文字が背景として印刷され、その上
に重ねて黒色パタンが印刷されている対象物の指定領域
の画像がRGBYの4元カラー単色画像として取り込ま
れ、濃度ヒストグラム算出部2において、前記画像入力
部1で取り込まれた4元カラー単色画像に対し、RGB
Y空間において、指定領域におけるRGBY各色毎の濃
度ヒストグラムが算出される。
First, in the image input unit 1, an image of a designated area of an object in which a single color pattern / character other than black is printed as a background as a background, and a black pattern is printed over the background, is an RGBY quaternary. The quaternary color single-color image captured by the image input unit 1 is captured by the density histogram calculation unit 2 as RGB.
In the Y space, a density histogram for each of the RGBY colors in the designated area is calculated.

【0024】次に、分散算出部3において、前記濃度ヒ
ストグラム算出部2において算出された各色の濃度ヒス
トグラムの分散値が算出され、画像選択部4において、
RGBY各色のうち前記分散算出部3において算出され
た各色の濃度ヒストグラムの分散値が最大を示す色の画
像が選択される。
Next, the variance calculator 3 calculates the variance of the density histogram of each color calculated by the density histogram calculator 2, and the image selector 4 calculates
From among the RGBY colors, an image of a color having the maximum variance value of the density histogram of each color calculated by the variance calculation unit 3 is selected.

【0025】次に、スライス値算出部5において、前記
画像選択部4において選択された画像の濃度ヒストグラ
ムからスライス値Lを算出する。ここで、このスライス
値Lは群間分散最大化法(画像認識の基礎[I]P42
〜47、オーム社 参照)により算出されるが、この方
法とPタイル法(画像認識の基礎[I]P39、オーム
社 参照)とを併用することにより、より適正なスライ
ス値が算出される。
Next, a slice value calculation section 5 calculates a slice value L from the density histogram of the image selected by the image selection section 4. Here, the slice value L is determined by the inter-group variance maximization method (basic of image recognition [I] P42).
47, see Ohm Co.). By using this method together with the P tile method (see Image Recognition [I] P39, Ohm Co.), a more appropriate slice value is calculated.

【0026】次に、背景+黒部抽出部6において、前記
スライス値算出部5において算出されたスライス値Lを
閾値として、このスライス値Lが算出された濃度ヒスト
グラムが2値化され指定領域内の背景+黒部S1が抽出
される。
Next, in the background + black portion extraction section 6, the density histogram in which the slice value L is calculated is binarized using the slice value L calculated in the slice value calculation section 5 as a threshold value, and the density histogram in the designated area is obtained. The background + black portion S1 is extracted.

【0027】次に、濃度ヒストグラム算出部7では、前
記背景+黒部抽出部6において抽出された背景+黒部S
1に対して前記画像選択部4で選択されなかった残り3
色の濃度ヒストグラムが算出され、分散算出部8におい
て、前記濃度ヒストグラム算出部7で算出された各色の
濃度ヒストグラムの分散値が算出される。
Next, in the density histogram calculation unit 7, the background + black portion S extracted by the background + black portion extraction unit 6 is used.
The remaining 3 not selected by the image selection unit 4 for 1
A color density histogram is calculated, and a variance calculator 8 calculates a variance value of the density histogram of each color calculated by the density histogram calculator 7.

【0028】次に、画像選択部9では、前記分散算出部
8において算出された各色の濃度ヒストグラムの分散値
が最小を示す色の画像が選択され、スライス値算出部1
0では、前記画像選択部9において選択された画像の濃
度ヒストグラムのスライス値Mが算出される。
Next, the image selecting unit 9 selects an image of a color in which the variance of the density histogram of each color calculated by the variance calculating unit 8 is the minimum, and selects the slice value calculating unit 1.
At 0, the slice value M of the density histogram of the image selected by the image selection unit 9 is calculated.

【0029】次に、黒部抽出部11では、前記スライス
値算出部10において算出されたスライス値Mを閾値と
して、このスライス値Mが算出された濃度ヒストグラム
が2値化され指定領域内における黒部S2が抽出され
る。
Next, in the black portion extraction section 11, the density histogram in which the slice value M is calculated is binarized using the slice value M calculated in the slice value calculation section 10 as a threshold value, and the black portion S2 in the designated area is obtained. Is extracted.

【0030】また、前記スライス値算出部10において
算出されたスライス値Mを閾値として、前記画像選択部
9で選択された画像を2値化した結果、分離状態が悪い
場合は、前記スライス値Mによる2値化によって抽出さ
れる指定領域内の背景+黒部画像S3を背景+黒部抽出
部13で抽出し、その背景+黒部画像S3に対し、スラ
イス値算出部13においてスライス値Oを算出し、次
に、黒部抽出部14において、このスライス値Oを閾値
として、前記背景+黒部画像を2値化して指定領域内に
おける黒部を抽出する。
When the image selected by the image selection unit 9 is binarized using the slice value M calculated by the slice value calculation unit 10 as a threshold value, if the separation state is poor, the slice value M The background + black part image S3 in the designated area extracted by the binarization according to is extracted by the background + black part extraction unit 13, and the slice value O is calculated by the slice value calculation unit 13 for the background + black part image S3. Next, the black part extracting unit 14 binarizes the background + black part image using the slice value O as a threshold value to extract a black part in the designated area.

【0031】本実施例においては、最初に画像選択部4
においてRGBYのなかでそれらの濃度ヒストグラムの
分散値が最大である色の画像を選択し、次いで、画像選
択部9において分散値が最小である色の画像を選択する
順番で処理を行っているが、対象物の特性によっては、
最初にこの画像選択部4において分散値が最小となる色
の画像を選択し、次いで、画像選択部9において分散値
が最大となる色の画像を選択する順番の方が効果が大き
い場合もある。
In this embodiment, first, the image selecting section 4
, The image of the color having the largest variance of the density histogram is selected from among the RGBY, and then the image selecting unit 9 performs the processing in the order of selecting the image of the color having the smallest variance. , Depending on the characteristics of the object,
First, the image selecting unit 4 selects an image of a color with the smallest variance value, and then the image selecting unit 9 selects an image of a color with the largest variance value. .

【0032】次に、本発明の第二の実施例について図面
を参照して詳細に説明する。
Next, a second embodiment of the present invention will be described in detail with reference to the drawings.

【0033】図6は、第二の実施例の構成を示すブロッ
ク図であり、平均算出部15および16の構成以外は図
1に示す第一の実施例の構成と同等であるので重複部分
の説明は省略する。
FIG. 6 is a block diagram showing the configuration of the second embodiment. Since the configuration of the second embodiment is the same as that of the first embodiment shown in FIG. Description is omitted.

【0034】平均算出部15は、濃度ヒストグラム算出
部2において算出されたRGBY毎の濃度ヒストグラム
の平均をそれぞれ算出する。
The average calculator 15 calculates the average of the density histograms for each of RGBY calculated by the density histogram calculator 2.

【0035】また、平均算出部16は、濃度ヒストグラ
ム算出部7において算出された3色それぞれの濃度ヒス
トグラムの平均値を算出する。
The average calculator 16 calculates the average of the density histograms of the three colors calculated by the density histogram calculator 7.

【0036】次に、第二の実施例の動作としては、大部
分は前述の第一の実施例と同様であるが、相違する部分
は、濃度ヒストグラム算出部2において算出されたRG
Bそれぞれの濃度ヒストグラムに対して、平均算出部1
4で平均値が算出され、その平均値が最大を示す濃度ヒ
ストグラムが画像選択部4で選択される。この選択され
た濃度ヒストグラムに対する処理は第一の実施例と同様
であり、次に、濃度ヒストグラム算出部7において算出
された各濃度ヒストグラムに対して、平均算出部15に
おいてそれぞれの平均値が算出され、この平均値が最小
値を示す濃度ヒストグラムが画像選択部9において選択
される。この選択された濃度ヒストグラムに対する処理
に関しても第一の実施例と同様の処理を行い、最終的に
黒色パタンを抽出する。
Next, the operation of the second embodiment is almost the same as that of the first embodiment, but the difference is that the RG calculated by the density histogram calculation unit 2 is different.
Average calculation unit 1 for each density histogram of B
The average value is calculated in step 4, and the density histogram indicating the maximum value is selected in the image selecting section 4. The processing for the selected density histogram is the same as that of the first embodiment. Next, for each density histogram calculated by the density histogram calculation unit 7, the average value is calculated by the average calculation unit 15. The density histogram in which the average value indicates the minimum value is selected in the image selection unit 9. The same processing as in the first embodiment is performed for the processing for the selected density histogram, and a black pattern is finally extracted.

【0037】また、上記実施例においては、各濃度ヒス
トグラムの平均値に対し、最初にその最大値を示す画像
を選択し、次に、その最小値を示す画像を選択するとい
う順番で処理を行ったが、対象物の特性により、前記平
均値が最小となる画像をまず選択し、次いで、その最大
値となる画像を選択するという順番でもかまわない。
In the above embodiment, the processing is performed in such a manner that an image showing the maximum value is selected first for the average value of each density histogram, and then an image showing the minimum value is selected. However, according to the characteristics of the target object, an image having the minimum average value may be selected first, and then an image having the maximum value may be selected.

【0038】次に、第三の実施例について図7を参照し
て説明する。
Next, a third embodiment will be described with reference to FIG.

【0039】構成の大部分は、前述の第一の実施例およ
び第二の実施例と同様であるので、その重複部分の説明
は省略する。
Since most of the structure is the same as that of the first and second embodiments, the description of the overlapping portions will be omitted.

【0040】設定部16は、画像入力部1から対象物の
カラー画像が取り込まれる時点で、その対象物の特性を
検出し、平均・分散算出部17、18および画像選択部
4、9に出力する。
The setting unit 16 detects the characteristics of the target object when the color image of the target object is taken in from the image input unit 1 and outputs the characteristics to the average / variance calculation units 17 and 18 and the image selection units 4 and 9. I do.

【0041】平均・分散算出部17は、前記設定部16
から出力される対象物の特性に基づいて、濃度ヒストグ
ラム算出部2において算出されるRGBそれぞれの濃度
ヒストグラムに対し、平均値または分散値を算出する。
The average / variance calculation unit 17 is provided with the setting unit 16
An average value or a variance value is calculated for each of the density histograms of RGB calculated by the density histogram calculation unit 2 based on the characteristics of the object output from.

【0042】画像選択部4は、前記設定部16から出力
される対象物の特性に基づいて、前記平均・分散算出部
17から出力されるRGBそれぞれの平均値または分散
値が最大となる画像を選択するか、または、最小となる
画像を選択する。
The image selecting section 4 selects an image having the maximum average or variance of each of the RGB output from the average / variance calculating section 17 based on the characteristics of the object output from the setting section 16. Select or select the smallest image.

【0043】平均・分散算出部18は、前記平均分散算
出部17で各濃度ヒストグラムの平均値が算出されたの
であれば平均値を算出し、分散値が算出されたのであれ
ば分散値を算出する。
The average / variance calculating section 18 calculates an average value if the average value of each density histogram is calculated by the average variance calculating section 17, and calculates a variance value if a variance value is calculated. I do.

【0044】画像選択部9は、前記平均・分散算出部1
8に出力に対して、前記画像選択部4においてRGBそ
れぞれの平均値または分散値が最大となる画像が選択さ
れたのであれば、その平均値または分散値が最小となる
画像を選択し、また、前記画像選択部4においてその平
均値または分散値が最小となる画像が選択されたのであ
れば、その平均値または分散値が最大となる画像を選択
する。
The image selecting section 9 includes the average / variance calculating section 1
8, if an image having the maximum average or variance value of each of RGB is selected in the image selection unit 4, an image having the minimum average value or variance value is selected; If the image selecting section 4 selects an image having the minimum average or variance value, the image having the maximum average or variance value is selected.

【0045】ここで、前記設定部16は、前記画像入力
部1においてカラー画像が取り込まれるときに、対象物
の特性に基づいて、処理設定を変更するように説明した
が、予め、対象物の特性が分かっている場合は、外部入
力手段により予め処理設定を行っておいてもかまわな
い。
Here, the setting unit 16 has been described to change the processing settings based on the characteristics of the target when the color image is captured by the image input unit 1. If the characteristics are known, the processing may be set in advance by the external input means.

【0046】また、前記第一、第二および第三の実施例
において、ある程度連続して同一パッケージの対象物が
搬送されてくる場合に、1個目の対象物により算出され
た適用する分散または平均の最大または最小画像および
それぞれのスライス値を2個目以降に流用することで、
さらに、処理効率が向上する。
In the first, second and third embodiments, when the objects of the same package are conveyed to some extent continuously, the applied dispersion calculated by the first object or By diverting the average maximum or minimum image and each slice value to the second and subsequent images,
Further, processing efficiency is improved.

【0047】[0047]

【発明の効果】以上説明したように、本発明の黒色パタ
ン抽出方法は、ダンボールカートン等で商品銘柄等が黒
以外の多様な単色で印刷されているパッケージの上に、
生産年月日・ロット・仕向先等が黒色印刷されたパタン
に対し、多種の対象物が混流していた場合であっても、
自動的に、かつ、正確に黒色パタンを抽出し、短時間で
印刷文字の検査・認識を行うことができる。
As described above, the method for extracting a black pattern according to the present invention can be applied to a package in which a product brand or the like is printed in various monochromatic colors other than black in a cardboard carton or the like.
Even if many kinds of objects are mixed in a pattern with production date / lot / destination printed in black,
It is possible to automatically and accurately extract a black pattern and inspect and recognize printed characters in a short time.

【0048】また、変換テーブルが不要であり、メモリ
アクセスも範囲を絞って二値化しているので、たいへん
効率的である。特に、最初に算出される背景+黒部画像
をパッケージ化することで、それ以降の処理をキャッシ
ュメモリ上で実行できるため、実行速度の大幅な向上が
可能である。
Further, since a conversion table is unnecessary and memory access is binarized in a narrow range, it is very efficient. In particular, by packaging the background + black part image calculated first, the subsequent processing can be executed on the cache memory, so that the execution speed can be greatly improved.

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

【図1】本発明の一実施例の構成を示すブロック図。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

【図2】本発明の動作を説明する濃度ヒストグラム。FIG. 2 is a density histogram illustrating the operation of the present invention.

【図3】本発明の動作を説明する濃度ヒストグラム。FIG. 3 is a density histogram illustrating the operation of the present invention.

【図4】本発明の動作を説明する濃度ヒストグラム。FIG. 4 is a density histogram illustrating the operation of the present invention.

【図5】本発明の動作を説明する濃度ヒストグラム。FIG. 5 is a density histogram illustrating the operation of the present invention.

【図6】本発明の第二の実施例の構成を示すブロック
図。
FIG. 6 is a block diagram showing the configuration of a second embodiment of the present invention.

【図7】本発明の第三の実施例の構成を示すブロック
図。
FIG. 7 is a block diagram showing the configuration of a third embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 画像入力部 2 濃度ヒストグラム算出部 3 分散算出部 4 画像選択部 5 スライス値算出部 6 背景+黒部抽出部 7 濃度ヒストグラム算出部 8 分散算出部 9 画像選択部 10 スライス値算出部 11 黒部抽出部 12 スライス値算出部 13 黒部抽出部 14、15 平均算出部 16 設定部 17、18 平均・分散算出部 DESCRIPTION OF SYMBOLS 1 Image input part 2 Density histogram calculation part 3 Variance calculation part 4 Image selection part 5 Slice value calculation part 6 Background + black part extraction part 7 Density histogram calculation part 8 Variation calculation part 9 Image selection part 10 Slice value calculation part 11 Black part extraction part 12 Slice value calculation unit 13 Black part extraction unit 14, 15 Average calculation unit 16 Setting unit 17, 18 Average / variance calculation unit

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 画像入力手段により取り込んだ多元カラ
ー単色画像に対し、それぞれ指定領域内の濃度ヒストグ
ラムを作成する第一ステップ、 前記第一ステップで作成された各濃度ヒストグラムの平
均を算出する第二ステップ、 前記第二ステップで算出された各平均が最大となる画像
の濃度ヒストグラムに基づいて、スライス値を算出し、
このスライス値を用いてこの画像を二値化し、前記指定
領域内の背景+黒色部分の領域を抽出する第三ステッ
プ、 前記第三ステップで抽出された領域に対し、最初に処理
した色を除く他の元色の濃度ヒストグラムをそれぞれ作
成する第四ステップ、 前記第四ステップで作成された各濃度ヒストグラムの平
均を算出する第五ステップ、 前記第五ステップで算出された各平均が最小となる画像
の濃度ヒストグラムに基づいて、スライス値を算出し、
このスライス値を用いてこの画像を二値化し、前記指定
領域内の黒色部分の領域を抽出する第六ステップ、 によることを特徴とする黒色パタン抽出方法。
A first step of creating a density histogram in a designated area for each of the multi-color monochrome images captured by the image input means; and a second step of calculating an average of the density histograms created in the first step. Step, calculate a slice value based on the density histogram of the image in which each average calculated in the second step is the maximum,
A third step of binarizing the image using the slice values and extracting a background + black area in the designated area, excluding the first processed color from the area extracted in the third step A fourth step of creating density histograms of the other original colors, a fifth step of calculating an average of the density histograms created in the fourth step, and an image in which each average calculated in the fifth step is minimized Calculate the slice value based on the density histogram of
A sixth step of binarizing the image using the slice values and extracting a black portion in the designated region.
【請求項2】 前記第三ステップでは、前記第二ステッ
プで算出された各平均が最小となる画像の濃度ヒストグ
ラムに基づいて、指定領域内の背景+黒色部分の領域を
抽出するとともに、 前記第六ステップでは、前記第五ステップで算出された
各平均が最大となる画像の濃度ヒストグラムに基づい
て、指定領域内の黒色部分の領域を抽出することを特徴
とする前記請求項1に記載の黒色パタン抽出方法。
2. In the third step, a background + black area in a designated area is extracted based on a density histogram of an image in which each average calculated in the second step is minimum. The black step according to claim 1, wherein in the sixth step, an area of a black portion in the designated area is extracted based on a density histogram of the image in which each average calculated in the fifth step is maximum. Pattern extraction method.
【請求項3】 前記第二ステップでは、前記第一ステッ
プで作成された各濃度ヒストグラムの分散を算出し、 前記第三ステップでは、前記第二ステップで算出された
各分散が最大となる画像の濃度ヒストグラムに基づい
て、指定領域内の背景+黒色部分の領域を抽出するとと
もに、 前記第五ステップでは、前記第四ステップで作成された
各濃度ヒストグラムの分散を算出し、 前記第六ステップでは、前記第五ステップで算出された
各分散が最小となる画像の濃度ヒストグラムに基づい
て、指定領域内の黒色部分の領域を抽出することを特徴
とする前記請求項1に記載の黒色パタン抽出方法。
3. In the second step, the variance of each density histogram created in the first step is calculated. In the third step, the variance of each image calculated in the second step is maximized. Based on the density histogram, a background + black area in the designated area is extracted. In the fifth step, the variance of each density histogram created in the fourth step is calculated. In the sixth step, 2. The black pattern extraction method according to claim 1, wherein a black portion in the designated region is extracted based on a density histogram of the image in which each variance calculated in the fifth step is minimum.
【請求項4】 前記第三ステップでは、前記第二ステッ
プで算出された各分散が最小となる画像の濃度ヒストグ
ラムに基づいて、指定領域内の背景+黒色部分の領域を
抽出するとともに、 前記第六ステップでは、前記第五ステップにおいて算出
された各分散が最大となる画像の濃度ヒストグラムに基
づいて、指定領域内の黒色部分の領域を抽出することを
特徴とする前記請求項3に記載の黒色パタン抽出方法。
4. In the third step, based on a density histogram of an image in which each variance calculated in the second step is minimum, an area of a background + black portion in a specified area is extracted. The black step according to claim 3, wherein in the sixth step, a black area in the designated area is extracted based on the density histogram of the image having the maximum variance calculated in the fifth step. Pattern extraction method.
【請求項5】 前記第二ステップでは、前記第一ステッ
プで作成された各濃度ヒストグラムの平均または分散を
算出し、 前記第三ステップでは、前記第二ステップで算出された
平均または分散が最大または最小となる画像の濃度ヒス
トグラムに基づいて、指定領域内の背景+黒色部分の領
域を抽出するとともに、 前記第五ステップでは、前記第四ステップで作成された
各濃度ヒストグラムの平均または分散を算出し、 前記第六ステップでは、前記第五ステップで算出された
平均または分散が最大または最小となる画像の濃度ヒス
トグラムに基づいて、指定領域内の黒色部分の領域を抽
出する黒色パタン抽出方法において、 画像入力手段において対象物の画像が取り込まれる段階
で、その対象物上の印刷特性を検知し、その検知結果に
基づいて、前記各ステップにおいて平均または分散の最
大画像または最小画像を用いるのかを設定することを特
徴とする前記請求項1に記載の黒色パタン抽出方法。
5. In the second step, an average or a variance of each density histogram created in the first step is calculated. In the third step, the average or the variance calculated in the second step is maximum or minimum. Based on the density histogram of the minimum image, a background + black area in the designated area is extracted. In the fifth step, the average or variance of each density histogram created in the fourth step is calculated. In the sixth step, in the black pattern extraction method for extracting an area of a black portion in the designated area based on a density histogram of an image having the maximum or minimum average or variance calculated in the fifth step, At the stage where the image of the object is captured by the input means, the printing characteristics on the object are detected, and based on the detection result, , Black pattern extracting method according to claim 1, characterized in that for setting whether the use of the maximum image or minimum image mean or variance at each step.
JP6024567A 1994-02-22 1994-02-22 Black pattern extraction method Expired - Fee Related JP2882273B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6024567A JP2882273B2 (en) 1994-02-22 1994-02-22 Black pattern extraction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6024567A JP2882273B2 (en) 1994-02-22 1994-02-22 Black pattern extraction method

Publications (2)

Publication Number Publication Date
JPH07234936A JPH07234936A (en) 1995-09-05
JP2882273B2 true JP2882273B2 (en) 1999-04-12

Family

ID=12141740

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6024567A Expired - Fee Related JP2882273B2 (en) 1994-02-22 1994-02-22 Black pattern extraction method

Country Status (1)

Country Link
JP (1) JP2882273B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8633419B2 (en) 2007-08-10 2014-01-21 Toyota Jidosha Kabushiki Kaisha Laser welding quality evaluation method and apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8633419B2 (en) 2007-08-10 2014-01-21 Toyota Jidosha Kabushiki Kaisha Laser welding quality evaluation method and apparatus

Also Published As

Publication number Publication date
JPH07234936A (en) 1995-09-05

Similar Documents

Publication Publication Date Title
CN102959582B (en) Image processing apparatus
US7570788B2 (en) Printed paper inspecting method and apparatus
JP3018949B2 (en) Character reading apparatus and method
JP2882273B2 (en) Black pattern extraction method
JP4060559B2 (en) Image processing apparatus and image processing method
US6671401B1 (en) Removing color moire patterns from digital images having known chromaticities
JP3495743B2 (en) Image processing apparatus and image processing method
JP4300553B2 (en) Image processing apparatus and image processing method
JP3311880B2 (en) Automatic detection device for fruits and vegetables injury
JP2689893B2 (en) Method and apparatus for removing printed background
JP7751263B2 (en) Print inspection equipment
JPH08123901A (en) Character extraction device and character recognition device using this device
JPH0997309A (en) Character extracting device
JP5682313B2 (en) Image processing apparatus and image processing method
JP4122703B2 (en) Image processing device
JP3153221B2 (en) Color image processing equipment
JP2637498B2 (en) Image signal processing device
US7262884B2 (en) Image processing apparatus and image processing method
JP2013012800A (en) Image processing apparatus and image forming apparatus
JP2618893B2 (en) Color image processing equipment
JPH07325045A (en) Inspection and recognition apparatus for black print on color background
JP2000188683A (en) Image processing device
JP3640226B2 (en) Image processing device
JP2641924B2 (en) Image data extraction device
JPH05266251A (en) Character extractor

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990105

LAPS Cancellation because of no payment of annual fees