JPH0991431A - Pattern recognition method utilizing color ccd camera - Google Patents

Pattern recognition method utilizing color ccd camera

Info

Publication number
JPH0991431A
JPH0991431A JP7249992A JP24999295A JPH0991431A JP H0991431 A JPH0991431 A JP H0991431A JP 7249992 A JP7249992 A JP 7249992A JP 24999295 A JP24999295 A JP 24999295A JP H0991431 A JPH0991431 A JP H0991431A
Authority
JP
Japan
Prior art keywords
image
label
color
difference
background
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7249992A
Other languages
Japanese (ja)
Inventor
Kazuhito Kobayashi
和仁 小林
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.)
Kubota Corp
Original Assignee
Kubota Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kubota Corp filed Critical Kubota Corp
Priority to JP7249992A priority Critical patent/JPH0991431A/en
Publication of JPH0991431A publication Critical patent/JPH0991431A/en
Pending legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

PROBLEM TO BE SOLVED: To recognize an object accurately even when a label is in existence at an optional position. SOLUTION: A label 2 whose color differs from a product surface color is stuck to an area of a product 1 where its surface color is a single color, the label 2 is picked up by a color CCD camera 3 by using the product surface color around the label for a background color, an image signal outputted from the color CCD camera 3 is given to an image processing unit 4, in which the image is processed for arithmetic operation. Then a brightness difference image is obtained between the different signal color images, the background image is obtained by inverting the picture element value of the label image equally to that of the background image on the difference image being the binarized luminance difference image, the extracted image between the background image and the difference image is obtained, and the label image is detected by retrieving a small image area on the extracted image.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、製造ライン等にお
いて製品に添着したラベルを認識する技術に係り、ラベ
ルの位置誤差に影響されることなくラベルの正誤を正確
に認識するカラーCCDカメラを利用したパターン認識
方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a technique for recognizing a label attached to a product in a manufacturing line or the like, and uses a color CCD camera for accurately recognizing whether a label is correct or not without being affected by a label position error. Pattern recognition method.

【0002】[0002]

【従来の技術】トラクター等を製造する製造ラインにお
いては、トラクターのボディーに型式等を記載した銘版
(ラベル)を添着しており、トラクターの型式に対して
ラベルの種類が一致しているか否かを目視検査によって
検査している。
2. Description of the Related Art In a production line for manufacturing tractors, etc., a nameplate (label) indicating the model etc. is attached to the body of the tractor, and whether or not the type of the label matches the model of the tractor. It is inspected by visual inspection.

【0003】この検査工程は、画像処理装置の利用によ
り、自動化を図る事が可能であると考えらる。従来の画
像処理技術を使用したラベルの正誤確認方法としては、
例えば図6ないしは図7に示す方法がある。図6に示す
方法においては、比較的緩やかな位置決め精度におい
て、カメラの撮影エリア内に製品を配置し、製品を背景
11としてラベル12を撮像している。撮像画像は二値
化して入力画像IP(図6のa)を形成し、入力画像I
Pの全画面領域を走査(サーチ)してラベル12の画像
(パターン)を検出し、検出したラベル12の画像と予
め正しいラベル13を撮像して形成した比較基準画像S
P1(図6のb)とをパターンマッチングしていた。
It is considered that this inspection process can be automated by using an image processing apparatus. As a method of checking the correctness of the label using the conventional image processing technology,
For example, there is a method shown in FIGS. In the method shown in FIG. 6, the product is arranged in the photographing area of the camera with relatively gentle positioning accuracy, and the label 12 is imaged with the product as the background 11. The captured image is binarized to form the input image IP (a in FIG. 6), and the input image I
The comparison reference image S formed by scanning (searching) the entire screen area of P to detect the image (pattern) of the label 12 and imaging the detected image of the label 12 and the correct label 13 in advance.
The pattern was matched with P1 (b in FIG. 6).

【0004】図7に示す方法においては、厳密な位置決
め精度によって、カメラの撮影エリア内に製品を配置
し、製品を背景11としてラベル12を撮像し、撮像画
像を二値化して入力画像IP(図7のa)を形成してい
る。一方、予め正しいラベル13を製品に正しく位置決
めするとともに、製品をカメラの撮影エリア内に厳密な
位置決め精度で配置する状態で、製品を背景11として
ラベル13を撮像し、撮像画像を二値化して比較基準画
像SP2(図7のb)を形成する。そして、入力画像I
Pと比較基準画像SP2との間において画像演算を行っ
て両画像間の画素値の差分を算出し、差分画像DP(図
7のc)を形成し、差分画像DPにおけるラベル画像の
形状に基づいてラベルの正誤を判断している。
In the method shown in FIG. 7, the product is arranged in the photographing area of the camera with strict positioning accuracy, the label 12 is imaged with the product as the background 11, the imaged image is binarized, and the input image IP ( 7 a) is formed. On the other hand, while the correct label 13 is correctly positioned on the product in advance and the product is placed in the photographing area of the camera with strict positioning accuracy, the label 13 is imaged with the product as the background 11 and the imaged image is binarized. The comparison reference image SP2 (b in FIG. 7) is formed. Then, the input image I
Image calculation is performed between P and the comparison reference image SP2 to calculate the difference in pixel value between the two images to form a difference image DP (c in FIG. 7), and based on the shape of the label image in the difference image DP. The correctness of the label is judged.

【0005】[0005]

【発明が解決しようとする課題】しかし、図6に示す方
法においては、入力画像IPの全画面領域に対してサー
チを行うので、処理時間が長く、かつラベル2の周辺の
背景に類似した形状が存在すると、ラベルの形状を誤認
識する問題があった。図7に示す方法においては、入力
画像IPと比較基準画像SP2との差分を取るので、製
品に対するラベル2の位置、およびカメラの撮影エリア
内における製品の位置において位置誤差が存在すると、
この位置誤差が差分画像DPにおいてラベル2の相違を
示す値として現れるので、ラベル2の誤認識を招く問題
があった。
However, in the method shown in FIG. 6, since the entire screen area of the input image IP is searched, the processing time is long and the shape similar to the background around the label 2 is obtained. If there is, there is a problem that the shape of the label is erroneously recognized. In the method shown in FIG. 7, since the difference between the input image IP and the comparison reference image SP2 is calculated, if there is a position error in the position of the label 2 with respect to the product and the position of the product within the photographing area of the camera,
Since this position error appears as a value indicating the difference between the labels 2 in the difference image DP, there is a problem in that the labels 2 are erroneously recognized.

【0006】本発明は上記した課題を解決するもので、
撮像画像内において検査対象のラベルが任意の位置に存
在しても正確に認識することができるカラーCCDカメ
ラを利用したパターン認識方法を提供することを目的と
する。
The present invention solves the above-mentioned problems, and
An object of the present invention is to provide a pattern recognition method using a color CCD camera that can accurately recognize a label to be inspected at an arbitrary position in a captured image.

【0007】[0007]

【課題を解決するための手段】上記した課題を解決する
ために、本発明のカラーCCDカメラを利用したパター
ン認識方法は、製品の表面に添着したラベルをカラーC
CDカメラで撮像し、撮像画像を画像処理装置において
画像処理することによってラベルのパターンを認識する
方法であって、製品の表面色が単色をなす領域に、製品
表面色とは異なる表面色をなすラベルを添着し、このラ
ベルをラベル周囲の製品表面色を背景色としてカラーC
CDカメラで撮像し、カラーCCDカメラから出力する
画像信号を画像処理装置に入力し、前記画像処理装置に
おいて、前記画像信号を基に三原色の各色相毎に単色画
像を形成し、製品表面色に相応する単色画像とラベル表
面色に相応する単色画像との間で輝度値の差分を求める
画像演算を行って輝度差分画像を形成し、この輝度差分
画像を二値化することにより差分画像を形成し、差分画
像上で背景像に囲まれて閉じた領域をなすラベル画像の
画素の値を、ラベル画像の周囲における背景像の画素の
値と同値に反転させることにより、ラベル画像を除去し
た背景画像を形成し、背景画像と差分画像との間で画素
値の差分を求める画像演算を行うことにより、全画面領
域上でラベル画像の画素のみが異なる値をなす抽出画像
を形成し、抽出画像上でラベル画像を含む小画像領域を
設定し、この小画像領域内を走査してラベル画像を検出
する構成としたものである。
In order to solve the above-mentioned problems, a pattern recognition method using a color CCD camera of the present invention is a color recognition method for a label attached to the surface of a product.
A method of recognizing a label pattern by picking up an image with a CD camera and processing the picked-up image with an image processing apparatus, wherein a surface color different from the product surface color is formed in an area where the surface color of the product is monochromatic. A label is attached, and this label is used as color C with the product surface color around the label as the background color.
An image signal captured by a CD camera and output from a color CCD camera is input to an image processing device, and in the image processing device, a single color image is formed for each of the three primary colors based on the image signal, and a product surface color is obtained. A difference image is formed by performing an image calculation for obtaining a difference in luminance value between a corresponding single color image and a single color image corresponding to the label surface color, and the difference image is binarized to form a difference image. However, by inverting the pixel values of the label image that form a closed area surrounded by the background image on the difference image to the same values as the pixel values of the background image around the label image, the background from which the label image has been removed By forming an image and performing an image calculation to obtain the difference in pixel value between the background image and the difference image, an extracted image in which only the pixels of the label image have different values on the entire screen area is formed. Set the small image area including the label image above is obtained by a structure for detecting the label image by scanning the small image area.

【0008】この構成において、カラーCCDカメラで
撮像した通常の撮像画像では、ラベルを添着した部材の
表面色がラベル周囲の背景色をなし、この製品表面色が
大きな領域を形成するとともに、画面上には製品の他部
材の表面色が外乱要素として存在する。製品表面色に相
応する単色画像においては、ラベル画像の周囲の背景像
が高輝度値となり、ラベル画像ならびに外乱要素となる
製品上の他部材の像が低輝度となる。一方、ラベル表面
色に相応する単色画像においては、ラベル画像の周囲の
背景像が低輝度値となり、ラベル画像ならびにラベル表
面色に相似する表面色をなす製品の他部材の像が高輝度
となる。このため、両単色画像の間で輝度値の差分を求
めて形成した輝度差分画像では、ラベル画像の画素とラ
ベル画像周囲の背景像の画素との間における輝度差が大
きくなってラベル画像と背景像との境界が明確になると
ともに、背景像の各画素間における輝度差が他の画像と
の輝度差に比べて相対的に小さくなる。このことによっ
て、輝度差分画像を二値化して差分画像を形成する過程
における誤差の原因となる要素を排除することができ、
差分画像上において正確な形状のラベル画像を形成する
ことができる。
In this structure, in a normal picked-up image picked up by a color CCD camera, the surface color of the member to which the label is attached forms the background color around the label, and this product surface color forms a large area and on the screen. , The surface color of other members of the product exists as a disturbance element. In a monochromatic image corresponding to the product surface color, the background image around the label image has a high brightness value, and the image of the label image and other members on the product that are disturbance elements have a low brightness. On the other hand, in a single-color image corresponding to the label surface color, the background image around the label image has a low brightness value, and the image of the label image and other members of the product having a surface color similar to the label surface color have a high brightness. . Therefore, in the brightness difference image formed by calculating the difference in brightness value between both monochromatic images, the brightness difference between the pixel of the label image and the pixels of the background image around the label image becomes large, and the label image and the background The boundary with the image becomes clear, and the brightness difference between the pixels of the background image becomes relatively smaller than the brightness difference with other images. By this, it is possible to eliminate an element that causes an error in the process of binarizing the brightness difference image to form the difference image,
A label image having an accurate shape can be formed on the difference image.

【0009】背景画像と差分画像との差分により形成し
た抽出画像においては、ラベル画像のみが反転した値を
なすので、全画面領域上においてラベル画像を含む小画
像領域を設定することが外乱要素に影響されることなく
容易に、かつ正確に行うことができる。この小画像領域
内を走査してラベル画像を検出するので、短時間にラベ
ル画像の認識を行うことができる。
In the extracted image formed by the difference between the background image and the difference image, only the label image has an inverted value, so setting a small image area including the label image on the entire screen area is a disturbance element. It can be performed easily and accurately without being affected. Since the label image is detected by scanning the inside of this small image area, the label image can be recognized in a short time.

【0010】ここで、検出したラベル画像を予め用意す
る比較基準画像とパターンマッチングすれば、ラベルの
正誤を正確に判定することができる。
Here, if the detected label image is pattern-matched with a comparison reference image prepared in advance, the correctness of the label can be accurately determined.

【0011】[0011]

【発明の実施の形態】以下、本発明の実施形態を図面に
基づいて説明する。図1〜図5において、製造ライン上
を移動するトラクター等の製品1には、塗装を施した表
面に銘版等のラベル2を添着している。このラベル2は
製品1の表面色が単色(本実施形態においては赤色系)
をなす領域に添着してあり、ラベル2は表面色が製品表
面色(赤色系)とは異なる単色(本実施形態においては
緑色系)である。
Embodiments of the present invention will be described below with reference to the drawings. 1 to 5, a product 1 such as a tractor moving on a manufacturing line has a label 2 such as a name plate attached to a coated surface. In this label 2, the surface color of the product 1 is a single color (red in this embodiment)
The label 2 is a single color (green type in the present embodiment) different from the product surface color (red type).

【0012】このラベル2を、ラベル周囲の製品表面色
を背景色としてカラーCCDカメラ3で撮像し、カラー
CCDカメラ3から出力する画像信号を画像処理装置4
に入力し、モニター5に表示しながら画像処理を行い、
ラベル2のパターン(形状)を認識するとともに、ラベ
ル2の正誤を判定する。このカラーCCDカメラ3は検
出物からの反射光を三原色の各色相(R,G,B)毎の
3成分に分解した画像信号を出力するものであるが、各
色相毎に異なるカラーCCDカメラを設置することも可
能である。カラーCCDカメラ3で撮像した通常の撮像
画像では、ラベル2を添着した部材の表面色(赤色)が
ラベル周囲の背景色をなし、この製品1の表面色(赤
色)が大きな領域を形成するとともに、画面上には製品
1の他部材の表面色が外乱要素として存在する。
The color CCD camera 3 takes an image of the label 2 with the product surface color around the label as a background color, and an image signal output from the color CCD camera 3 is output to the image processing device 4.
Input to the monitor 5 and perform image processing while displaying on the monitor 5,
The pattern (shape) of the label 2 is recognized and the correctness of the label 2 is determined. The color CCD camera 3 outputs an image signal in which the reflected light from the detection object is decomposed into three components for each hue (R, G, B) of the three primary colors, but a different color CCD camera for each hue is used. It can also be installed. In a normal captured image captured by the color CCD camera 3, the surface color (red) of the member to which the label 2 is attached constitutes the background color around the label, and the surface color (red) of the product 1 forms a large area. The surface colors of other members of the product 1 are present as disturbance elements on the screen.

【0013】画像処理装置4においては、始めに画像信
号を基に三原色の各色相(R,G,B)毎に単色画像を
形成する。次に、図2に示すように、製品表面色(赤
色)に相応する単色画像、つまりR画像Mr(図2の
a)と、ラベル表面色(緑色)に相応する単色画像、つ
まりG画像Mg(図2のb)との間で、輝度値の差分を
求める画像演算を行って輝度差分画像Mt(図2のc)
を形成する。
In the image processing device 4, first, a monochromatic image is formed for each hue (R, G, B) of the three primary colors based on the image signal. Next, as shown in FIG. 2, a monochromatic image corresponding to the product surface color (red), that is, the R image Mr (a in FIG. 2), and a monochromatic image corresponding to the label surface color (green), that is, the G image Mg. (B in FIG. 2), an image calculation for obtaining a difference in luminance value is performed to obtain a luminance difference image Mt (c in FIG. 2).
To form

【0014】この製品表面色(赤色)に相応するR画像
Mr(図2のa)においては、ラベル画像Lの周囲の背
景像Bが高輝度値となり、ラベル画像Lならびに外乱要
素となる製品1の他部材の像Nが低輝度となる。但し、
製品表面色(赤色)に相似する外乱要素Oは高輝度であ
る。一方、ラベル表面色(緑色)に相応するG画像Mg
(図2のb)においては、ラベル画像Lの周囲の背景像
Bが低輝度値となり、ラベル画像L、ならびにラベル表
面色(緑色)に相似する表面色をなす製品1の他部材の
像Nが高輝度となる。
In the R image Mr (a in FIG. 2) corresponding to the product surface color (red), the background image B around the label image L has a high brightness value, which is the label image L and the disturbance element 1. The image N of the other member has low brightness. However,
The disturbance element O that resembles the product surface color (red) has high brightness. On the other hand, the G image Mg corresponding to the label surface color (green)
In (b of FIG. 2), the background image B around the label image L has a low luminance value, and the image N of the label image L and the other member of the product 1 having a surface color similar to the label surface color (green). Becomes high brightness.

【0015】このため、両単色画像、つまりR画像Mr
とG画像Mgの間で輝度値の差分を求めて形成した輝度
差分画像Mt(図2のc)では、ラベル画像Lの画素と
ラベル画像周囲の背景像Bの画素との間における輝度差
が大きくなってラベル画像Lと背景像Bとの境界が明確
になるとともに、背景像Bの各画素間における輝度差が
他の画像Nとの輝度差に比べて相対的に小さくなる。
Therefore, both monochromatic images, that is, the R image Mr.
In the brightness difference image Mt (c in FIG. 2) formed by calculating the difference in brightness value between the G image Mg and the G image Mg, the brightness difference between the pixels of the label image L and the pixels of the background image B around the label image is As the size increases, the boundary between the label image L and the background image B becomes clear, and the luminance difference between each pixel of the background image B becomes relatively smaller than the luminance difference between the other images N.

【0016】次に、図3に示すように、輝度差分画像M
t(図2のc)を二値化することにより差分画像Md
(図3のa)を形成する。このとき、輝度差分画像Mt
(図2のc)ではラベル画像Lと背景像Bとの境界が明
確で、背景像Bの各画素間における輝度差が小さいの
で、二値化して差分画像Md(図3のa)を形成する過
程における誤差の原因となる要素を排除することがで
き、差分画像Md(図3のa)上において正確な形状の
ラベル画像Lを形成することができる。さらに、差分画
像Md(図3のa)上で背景像Bに囲まれて閉じた領域
をなすラベル画像Lの画素の値(0)を、ラベル画像L
の周囲における背景像Bの画素の値(1)と同値に反転
させることにより、ラベル画像Lを除去した背景画像M
b(図3のb)を形成する。このとき、反転させる領域
は、背景像Bに囲まれて閉じた領域をなすことを条件と
するので、ラベル画像L以外の像Nは反転させれること
なく、元の値を維持する。
Next, as shown in FIG. 3, the brightness difference image M
The difference image Md is obtained by binarizing t (c in FIG. 2).
(A in FIG. 3) is formed. At this time, the brightness difference image Mt
In (c of FIG. 2), the boundary between the label image L and the background image B is clear, and the difference in luminance between the pixels of the background image B is small, so binarization is performed to form the difference image Md (a in FIG. 3). It is possible to eliminate an element that causes an error in the process of performing, and it is possible to form a label image L having an accurate shape on the difference image Md (a in FIG. 3). Further, the pixel value (0) of the label image L forming a closed area surrounded by the background image B on the difference image Md (a in FIG. 3) is set to the label image L.
The background image M from which the label image L has been removed by inverting it to the same value as the pixel value (1) of the background image B around the
b (b in FIG. 3) is formed. At this time, the area to be inverted is conditioned to be a closed area surrounded by the background image B, so that the image N other than the label image L is not inverted and maintains the original value.

【0017】次に、図4に示すように、背景画像Mb
(図4のa)と差分画像Md(図4のb)の間で画素値
の差分を求める画像演算を行うことにより、全画面領域
上でラベル画像lの画素のみが異なる値(1)をなす抽
出画像Moを形成する。
Next, as shown in FIG. 4, the background image Mb
By performing an image calculation for obtaining a difference in pixel value between the difference image Md (a in FIG. 4) and the difference image Md (b in FIG. 4), a different value (1) is obtained only in the pixel of the label image 1 on the entire screen area. An eggplant extracted image Mo is formed.

【0018】次に、図5に示すように、抽出画像Mo
(図5のa)上でラベル画像Lを含む小画像領域Asを
設定し、小画像領域As内を走査してラベル画像Lを検
出する。このとき、抽出画像Moにおいては、ラベル画
像Lのみが反転した値をなすので、全画面領域上におい
てラベル画像Lを含む小画像領域Asを絞り込むことが
外乱要素に影響されることなく容易に、かつ正確に行う
ことができる。また、小画像領域As内を走査してラベ
ル画像Lを検出するので、短時間にラベル画像Lの認識
を行うことができる。さらに、検出したラベル画像Lを
予め用意する比較基準画像Mf(図5のb)とパターン
マッチングすれば、ラベル2の正誤を正確に判定するこ
とができる。
Next, as shown in FIG. 5, the extracted image Mo
The small image area As including the label image L is set on (a in FIG. 5), and the inside of the small image area As is scanned to detect the label image L. At this time, in the extracted image Mo, since only the label image L has an inverted value, narrowing down the small image area As including the label image L on the entire screen area can be easily performed without being affected by a disturbance element, And it can be done accurately. Further, since the label image L is detected by scanning the inside of the small image area As, the label image L can be recognized in a short time. Furthermore, if the detected label image L is pattern-matched with the comparison reference image Mf (b of FIG. 5) prepared in advance, the correctness of the label 2 can be accurately determined.

【0019】[0019]

【発明の効果】以上述べたように本発明によれば、異な
る色相の単色画像の間で輝度値の差分を求めることによ
り、ラベル画像と背景像との境界を明確となし、背景像
の各画素間の輝度差を小さくすることができ、二値化の
際の誤差因子を排除して正確なラベル画像を形成するこ
とができる。抽出画像はラベル画像のみが反転した値を
なすことにより、全画面領域上おけるラベル画像を含む
小画像領域の設定が外乱要素に影響されることなく容易
に、かつ正確に行うことができる。
As described above, according to the present invention, the boundary between the label image and the background image is made clear by obtaining the difference in the brightness value between the monochromatic images of different hues, and the background image is separated. It is possible to reduce the difference in luminance between pixels, eliminate error factors in binarization, and form an accurate label image. Since only the label image has the inverted value in the extracted image, the setting of the small image area including the label image on the entire screen area can be easily and accurately performed without being affected by the disturbance element.

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

【図1】本発明の実施形態における画像処理設備の構成
を示す模式図である。
FIG. 1 is a schematic diagram showing a configuration of image processing equipment according to an embodiment of the present invention.

【図2】同実施形態における画像処理方法を示す説明図
である。
FIG. 2 is an explanatory diagram showing an image processing method in the same embodiment.

【図3】同実施形態における画像処理方法を示す説明図
である。
FIG. 3 is an explanatory diagram showing an image processing method in the same embodiment.

【図4】同実施形態における画像処理方法を示す説明図
である。
FIG. 4 is an explanatory diagram showing an image processing method in the same embodiment.

【図5】同実施形態における画像処理方法を示す説明図
である。
FIG. 5 is an explanatory diagram showing an image processing method in the same embodiment.

【図6】従来の画像処理方法を示す説明図である。FIG. 6 is an explanatory diagram showing a conventional image processing method.

【図7】従来の画像処理方法を示す説明図である。FIG. 7 is an explanatory diagram showing a conventional image processing method.

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

1 製品 2 ラベル 3 カラーCCDカメラ 4 画像処理装置 5 モニター 1 product 2 label 3 color CCD camera 4 image processor 5 monitor

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 製品の表面に添着したラベルをカラーC
CDカメラで撮像し、撮像画像を画像処理装置において
画像処理することによってラベルのパターンを認識する
方法であって、製品の表面色が単色をなす領域に、製品
表面色とは異なる表面色をなすラベルを添着し、このラ
ベルをラベル周囲の製品表面色を背景色としてカラーC
CDカメラで撮像し、カラーCCDカメラから出力する
画像信号を画像処理装置に入力し、 前記画像処理装置において、前記画像信号を基に三原色
の各色相毎に単色画像を形成し、製品表面色に相応する
単色画像とラベル表面色に相応する単色画像との間で輝
度値の差分を求める画像演算を行って輝度差分画像を形
成し、この輝度差分画像を二値化することにより差分画
像を形成し、差分画像上で背景像に囲まれて閉じた領域
をなすラベル画像の画素の値を、ラベル画像の周囲にお
ける背景像の画素の値と同値に反転させることにより、
ラベル画像を除去した背景画像を形成し、背景画像と差
分画像との間で画素値の差分を求める画像演算を行うこ
とにより、全画面領域上でラベル画像の画素のみが異な
る値をなす抽出画像を形成し、抽出画像上でラベル画像
を含む小画像領域を設定し、この小画像領域内を走査し
てラベル画像を検出することを特徴とするカラーCCD
カメラを利用したパターン認識方法。
1. A color C attached to a label attached to the surface of a product.
A method of recognizing a label pattern by picking up an image with a CD camera and processing the picked-up image with an image processing apparatus, wherein a surface color different from the product surface color is formed in an area where the surface color of the product is monochromatic. A label is attached, and this label is used as color C with the product surface color around the label as the background color.
An image signal captured by a CD camera and output from a color CCD camera is input to an image processing device. In the image processing device, a monochromatic image is formed for each of the three primary colors based on the image signal, and a product surface color is obtained. A difference image is formed by performing an image calculation for obtaining a difference in luminance value between a corresponding single color image and a single color image corresponding to the label surface color, and the difference image is binarized to form a difference image. Then, by inverting the pixel value of the label image forming a closed area surrounded by the background image on the difference image to the same value as the pixel value of the background image around the label image,
An extracted image in which only the pixels of the label image have different values on the entire screen area by forming a background image from which the label image has been removed and performing an image operation to obtain the pixel value difference between the background image and the difference image. And a small image area including the label image is set on the extracted image, and the label image is detected by scanning in the small image area.
A pattern recognition method using a camera.
JP7249992A 1995-09-28 1995-09-28 Pattern recognition method utilizing color ccd camera Pending JPH0991431A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7249992A JPH0991431A (en) 1995-09-28 1995-09-28 Pattern recognition method utilizing color ccd camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7249992A JPH0991431A (en) 1995-09-28 1995-09-28 Pattern recognition method utilizing color ccd camera

Publications (1)

Publication Number Publication Date
JPH0991431A true JPH0991431A (en) 1997-04-04

Family

ID=17201234

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7249992A Pending JPH0991431A (en) 1995-09-28 1995-09-28 Pattern recognition method utilizing color ccd camera

Country Status (1)

Country Link
JP (1) JPH0991431A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100381098B1 (en) * 1998-12-18 2003-07-16 재단법인 포항산업과학연구원 Slabs Camber Measurement System Using Color Image
JP2007163172A (en) * 2005-12-09 2007-06-28 Nagoya Electric Works Co Ltd Apparatus, method, and program for measuring vehicle

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100381098B1 (en) * 1998-12-18 2003-07-16 재단법인 포항산업과학연구원 Slabs Camber Measurement System Using Color Image
JP2007163172A (en) * 2005-12-09 2007-06-28 Nagoya Electric Works Co Ltd Apparatus, method, and program for measuring vehicle

Similar Documents

Publication Publication Date Title
US20060147092A1 (en) Intelligent digital graphics inspection system and method
JPH07159337A (en) Fault inspection method for semiconductor element
JP2000180374A (en) Method for detecting defect
CN115947066B (en) Belt tearing detection method, device and system
JPH0991431A (en) Pattern recognition method utilizing color ccd camera
JPH04238592A (en) Automatic bundled bar steel tally device
JPH0682377A (en) Appearance inspecting device of semiconductor
JPH0915168A (en) Inspecting equipment of printed matter
JP2002008029A (en) Image inspection device
CN112858331A (en) VR screen detection method and detection system
JPH0735699A (en) Method and apparatus for detecting surface defect
JP2000321038A (en) Method for detecting fault of pattern
JPH08287232A (en) Method for removing unmonitored object for image processing
JPH06201715A (en) Moving object detecting device
US10852244B2 (en) Image processing apparatus, image processing method, and recording medium
JPH06161378A (en) Inspecting device for liquid crystal display device
JPH0443468A (en) Method for inspecting printing of character
JP3473114B2 (en) Image processing method
JP3235392B2 (en) Rotation angle detection method for target pattern
JPH01150987A (en) Method for recognizing shape
JPH04147002A (en) Inspecting apparatus of surface of fruit and vegetable
JPH0388079A (en) Method for recognizing object
JP2000331161A (en) Processor
JPS62221077A (en) Pattern detector
JPH03252546A (en) Wiring pattern inspection device