JP2013210227A - Visual inspection device for light transmitting molding - Google Patents
Visual inspection device for light transmitting molding Download PDFInfo
- Publication number
- JP2013210227A JP2013210227A JP2012079262A JP2012079262A JP2013210227A JP 2013210227 A JP2013210227 A JP 2013210227A JP 2012079262 A JP2012079262 A JP 2012079262A JP 2012079262 A JP2012079262 A JP 2012079262A JP 2013210227 A JP2013210227 A JP 2013210227A
- Authority
- JP
- Japan
- Prior art keywords
- color
- light
- data group
- space data
- color space
- 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.)
- Granted
Links
- 238000011179 visual inspection Methods 0.000 title claims description 17
- 238000000465 moulding Methods 0.000 title description 2
- 238000007689 inspection Methods 0.000 claims abstract description 48
- 238000006243 chemical reaction Methods 0.000 claims abstract description 22
- 238000003384 imaging method Methods 0.000 claims description 15
- 230000001678 irradiating effect Effects 0.000 claims 1
- 238000000034 method Methods 0.000 description 41
- 239000003086 colorant Substances 0.000 description 22
- 230000008569 process Effects 0.000 description 12
- 238000009826 distribution Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 10
- 238000009792 diffusion process Methods 0.000 description 8
- 230000008859 change Effects 0.000 description 5
- 238000005286 illumination Methods 0.000 description 5
- 230000035945 sensitivity Effects 0.000 description 5
- 235000019646 color tone Nutrition 0.000 description 4
- 238000001514 detection method Methods 0.000 description 4
- 238000002845 discoloration Methods 0.000 description 4
- 239000011521 glass Substances 0.000 description 4
- 239000011347 resin Substances 0.000 description 4
- 229920005989 resin Polymers 0.000 description 4
- 238000004519 manufacturing process Methods 0.000 description 3
- 239000000463 material Substances 0.000 description 3
- 206010021403 Illusion Diseases 0.000 description 2
- 230000006866 deterioration Effects 0.000 description 2
- 238000003860 storage Methods 0.000 description 2
- 230000000295 complement effect Effects 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 239000002994 raw material Substances 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000002834 transmittance Methods 0.000 description 1
Images
Landscapes
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
【課題】 光透過性成形体のような彩度の小さい画像であっても色の違いを区別することが可能な外観検査装置を提供すること。
【解決手段】 光透過性成形品の外観検査装置において、
画像データはRBGの色成分の光量値で構成された色空間データ群1で構成されており、色空間データ群1を色相と彩度を含む色成分で構成された色空間データ群2に変換する第一の変換手段と、色空間データ群2の色相を回転させて色空間データ群3に変換する第二の変換手段と、色空間データ群3をRBGの色成分の光量値で構成された色空間データ群4に変換する第三の変換手段とを備え、
色空間データ群4を構成する色成分の一つを選択し、選択した色成分の光量値を残りの色成分の光量値を用いて補正する外観検査装置とする。
【選択図】 図2PROBLEM TO BE SOLVED: To provide an appearance inspection apparatus capable of distinguishing a color difference even in an image having a low saturation such as a light transmissive molded body.
In an appearance inspection apparatus for a light-transmitting molded product,
The image data is composed of a color space data group 1 composed of light intensity values of RBG color components, and the color space data group 1 is converted into a color space data group 2 composed of color components including hue and saturation. The first conversion means, the second conversion means for rotating the hue of the color space data group 2 to convert it to the color space data group 3, and the color space data group 3 with the light quantity values of the color components of the RBG. A third conversion means for converting the color space data group 4 into
An appearance inspection apparatus that selects one of the color components constituting the color space data group 4 and corrects the light amount value of the selected color component using the light amount values of the remaining color components is provided.
[Selection] Figure 2
Description
本発明は、光透明性を有するガラス・樹脂などを成型した際に発生する軽微な色ムラなどの部分的な変色を、画像処理を用いて検出する光透過性成形品の外観検査装置に関する。 The present invention relates to a visual inspection apparatus for a light-transmitting molded article that detects partial discoloration such as slight color unevenness that occurs when glass or resin having light transparency is molded using image processing.
透明なガラスや樹脂を材料として成形した部品(以下、光透過性成形品)には、製作する際に微量の異物の付着や熱による変質などにより変色や色ムラが発生することがある。このような変色や色ムラは外観的な美観を損なうばかりでなく、部品の機械的な強度低下や経時劣化の原因になることもある。このため、光透過性成形品の製作工程では、目視検査を主体とした外観検査が行われることが一般的である。しかし、このような目視検査は官能検査であるため、検査員の体調や習熟度の違いなど要因となって、検査結果に個人差があることなどが知られており、検査結果が安定しないため、一定水準の品質を確保することが困難であった。更に、目視検査は、機械が行う自動検査に比べて一般的に検査時間が長くなるという問題がある。 When parts are manufactured using transparent glass or resin as a material (hereinafter referred to as a light-transmitting molded product), discoloration and color unevenness may occur due to adhesion of a small amount of foreign matter or heat deterioration. Such discoloration and color unevenness not only impair the appearance of the appearance, but also cause a decrease in mechanical strength and deterioration with time of the parts. For this reason, in the manufacturing process of a light-transmitting molded product, an appearance inspection mainly including a visual inspection is generally performed. However, since such a visual inspection is a sensory inspection, it is known that there are individual differences in the inspection results due to factors such as differences in the physical condition and proficiency of the inspector, and the inspection results are not stable. It was difficult to ensure a certain level of quality. Further, the visual inspection generally has a problem that the inspection time is longer than the automatic inspection performed by the machine.
このような問題に対して、CCDカメラなどの撮像装置を用いて画像を撮影し、画像処理を用いて外観検査を行うことにより検査の安定性を向上させたり、検査時間を短縮させたりする試みが行われている。 In order to solve such problems, an attempt is made to improve inspection stability or shorten inspection time by taking an image using an imaging device such as a CCD camera and performing an appearance inspection using image processing. Has been done.
例えば、特許文献1で開示されている、色ムラ外観検査装置で用いられている手法を図8で説明すると、CCDカラーカメラで被検物を撮影する工程(S61)と、撮影した一次画像からR(赤)、G(緑)、B(青)の三原色の色成分の光量値に応じた三原色データを画素毎に生成する工程(S62)と、画像処理装置を用いて、該三原色データを画素毎に演算処理して色ムラ分布データを算出する工程(S63、S64)と、該色ムラ分布データに基づき、図9に示す擬似カラー化処理用変換テーブルを用いて該一次画像の色ムラ分布を表わす擬似カラー化二次画像を二次画像用モニタ再生する工程(S65)を備えており、被検物の色ムラ外観検査(S66)を行う。
For example, the technique used in the color unevenness appearance inspection apparatus disclosed in
また、特許文献2で開示されているように、被検物の僅かな色差を明確にする方法として図10に示す方法が知られている。カラー画像を入力する工程(S81)と、必要に応じてネガポジ反転変換を行う工程(S82)と、該カラー画像を構成する各画素のRGBデータを、色相(H)、彩度(S)、輝度(I)で表されるHSI変換する工程(S83)と、該カラー画像の各画素から、少なくとも彩度を含む色情報を求める情報取得手段と、カラー画像の各画素の彩度を所定量シフトする工程(S84)と、色相の最頻値を求める工程(S85)と得られた色相の最頻値より各画素の色相を回転させる工程(S86)と注目画素を抽出する工程(S87)と、彩度/輝度を変換処理する工程(S88)と得られた画像データを階調変換する工程(S89)よりなり、僅かな色差を明確にした画像を出力(S90)される。
As disclosed in
光透過性成形体に発生した汚れ、色ムラなどで著しく汚れ、変色したものは、目視検査でも容易の判別でき、従来の外観検査装置でも検査することができる。しかし、光透過性成形体の外観検査では成形体を構成する材料が光を透過するため、次の様な固有の問題があった。一つ目は、周囲の光や被検物を照射した光が、汚れや色ムラなどと重なって観察されるため、汚れや色ムラなどに固有の色彩が目立たなくなり、色の特徴で区別することが難しくなるという問題である。すなわち、図12に示すように、汚れや色ムラが固有の色(図12(a))を示していたとしても、周辺の光の色(図12(b))が重なることで、観察される状態は、周辺の色の中に、僅かな固有の色の変化がある状態になり視覚的に色の区別をすることが困難になる。(図12(c))
二つ目は、周囲の光や被検物を照射した光が、光透過性成形体の内部で反射、散乱する際に、光透過性成形体の形状の影響で反射、散乱する光の強度が方向により不均一となるため、光透過性成形体を観察すると周囲に対して黒い部分があるように見えるため、汚れや色ムラなどと錯覚することがあるという問題である。汚れ、色ムラなどの色彩が目立たないため、光の反射、散乱によって発生した影を汚れ、色ムラなどと誤認してしまうことが問題となっていた。
A material that is remarkably soiled or discolored due to dirt or color unevenness generated on the light-transmitting molded product can be easily identified by visual inspection, and can also be inspected by a conventional visual inspection apparatus. However, the appearance inspection of the light-transmitting molded body has the following inherent problems because the material constituting the molded body transmits light. The first is that ambient light and light that illuminates the test object are observed overlapping with dirt and color unevenness, etc., so the unique color due to dirt and color unevenness becomes inconspicuous and is distinguished by the color characteristics The problem is that it becomes difficult. That is, as shown in FIG. 12, even if dirt or color unevenness indicates a specific color (FIG. 12A), the surrounding light color (FIG. 12B) is observed by overlapping. In this state, there are slight inherent color changes in the surrounding colors, making it difficult to visually distinguish the colors. (Fig. 12 (c))
The second is the intensity of light that is reflected or scattered by the influence of the shape of the light-transmitting molded body when ambient light or light that irradiates the test object is reflected or scattered inside the light-transmitting molded body. However, when the light-transmitting molded product is observed, there appears to be a black portion with respect to the surroundings, which may cause an illusion of dirt or color unevenness. Since colors such as dirt and color unevenness are inconspicuous, it has been a problem that a shadow caused by reflection and scattering of light is mistaken as dirt and color unevenness.
特許文献1の方法では、図8のS63、S64に示されている様にRGBの任意の2成分の差分(図8のS63においては、赤(R)と青(B))をとり、その大きさを基に色ムラ分布Fを求めている。光透過性成形体を観察した場合、色彩が目立たなくなる傾向が強いことから、RGBの各色成分はそれぞれ近接しており、任意の2成分の差分を取って求めた色ムラ分布Fは小さいものとなる。従って、特許文献1の方法で光透過性成形体を観察したとしても問題である汚れや色ムラなどを色の特徴で区別することが解決されない。
In the method of
特許文献2の方法を、図11を用いて説明する。図11は、色情報を色相(H)、色彩(S)、輝度(I)で表したとき、周方向を色相軸(H)、径方向を彩度軸(S)とし、紙面に垂直な方向を輝度軸(I)としたHSI色空間を示している。図11(1)に示されている様に画像データの各画素の色情報を上記HSI色空間上にプロットし、画素の分布の中心値(図11(1)に「△」として表示)を求め、図11(2)に示す様に画素の分布の中心値がHSI色空間の中心となる様に彩度をシフトさせる。この様に各画素の色情報をシフトさせることで図11(1)の様に色相(H)が近接して彩度が分布している(同じ色で濃淡に差がある)画像であっても色相(H)の違いとして認識できる様になり近接した色差の画像を区別することが容易になる。光透過性成形体を観察した場合、色彩が目立たなくなることが特徴であるため、各画素の色情報の分布はHSI色空間上にプロットすると中心部分に分布することになる。図11(1)に示した様に画素の分布の中心値を求めたとしても、基になる画素の色情報の分布が中心に分布しているため、図11(2)に示した色彩のシフトを行ったとしても、シフトできる量は僅かである。特許文献2の方法は、問題としている彩度の小さい色差の画像を区別することが解決できる訳ではない。
そこで、本発明の課題は光透過性成形体のような彩度の小さい画像であっても色の違いを区別することが可能な外観検査装置を提供することである。
The method of
Accordingly, an object of the present invention is to provide an appearance inspection apparatus capable of distinguishing between different colors even in an image having a low saturation such as a light-transmitting molded body.
上記課題を解決するために、請求項1に記載された発明は、前記被検査物を透過あるいは前記被検査物から反射した光を受光するカラー撮像装置と、前記カラー撮像装置で撮像された画像データを記録する記録手段と、を備えた光透過性成形品の外観検査装置において、
前記画像データは赤(R)、青(B)、緑(G)の色成分の光量値で構成された色空間データ群1で構成されており、前記色空間データ群1を色相(H)と彩度(S)を含む色成分で構成された色空間データ群2に変換する第一の変換手段と、前記色空間データ群2の色相(H)を回転させて色空間データ群3に変換する第二の変換手段と、前記色空間データ群3を赤(R)、青(B)、緑(G)の色成分の光量値で構成された色空間データ群4に変換する第三の変換手段とを備え、
前記色空間データ群4を構成する色成分の一つを選択し、選択した色成分の光量値を残りの色成分の光量値を用いて補正することを特徴とする光透過性成形品の外観検査装置である。(本明細書において使用される「色空間データ群」とは、画像データを構成しているHSI色空間、RGB色空間などの色成分で表現された画素データの集合体のことを言う。)
In order to solve the above-mentioned problem, the invention described in
The image data is composed of a color
Appearance of a light-transmitting molded article, wherein one of the color components constituting the color
次に、請求項2に記載された発明は、前記補正が、前記選択した色成分の光量値を選択されていない残りの色成分の内、光量値が小さい成分の値を減算することを特徴とする請求項1に記載の光透過性成形品の外観検査装置である。
Next, the invention described in
また、請求項3に記載された発明は、前記補正が、前記選択した色成分の光量値を選択されていない残りの色成分の内、光量値が大きい成分の値を減算することを特徴とする請求項1に記載の光透過性成形品の外観検査装置である。
The invention described in
更に、請求項4に記載された発明は、前記補正が、前記選択した色成分の光量値を選択されていない残りの色成分の光量値の平均値を求め減算することを特徴とする請求項1に記載の光透過性成形品の外観検査装置である。
Furthermore, the invention described in
以下に説明する通り、本発明によれば、光透明性を有するガラス・樹脂などを成型した光透過性成形品に発生した軽微な色ムラなどの部分的な変色を検出することが可能になり、外観検査のおける検査感度が安定し、品質の向上に資することができる。また、コンピュータを用いた自動検査を行うことが可能になるため、外観検査にかかる時間を短縮できることから、生産コストの低減など生産の効率化を行うことが可能となる光透過性成形品の外観検査装置を提供することができる。 As described below, according to the present invention, it becomes possible to detect partial discoloration such as slight color unevenness generated in a light-transmitting molded product obtained by molding glass or resin having light transparency. In addition, the inspection sensitivity in the appearance inspection is stable and can contribute to the improvement of quality. In addition, since it is possible to perform automatic inspection using a computer, the time required for visual inspection can be shortened, so that the appearance of a light-transmitting molded product that can improve production efficiency such as reduction in production cost An inspection device can be provided.
本願発明を実施するための形態(以下、実施形態)について説明する。
図1は、本願発明の外観検査装置の全体構成を表す構成図である。光透過性を有したガラス・樹脂を原材料として成形された被検査物Sの外観を検査するため、検査台を兼ねた拡散板3上に設置する。光源2は、拡散板3の下方に配置され、拡散板3に向けて光を放射する構成になっており、光源より放射された光Lは拡散板3を透過することで拡散光L’となり、ランダムな方向から被検査物Sを照明する。被検査物Sの上方にはカラー撮像装置1が設置されており、光源2から放射された光で照明された被検査物Sを撮影する。
A mode for carrying out the present invention (hereinafter referred to as an embodiment) will be described.
FIG. 1 is a configuration diagram showing the overall configuration of an appearance inspection apparatus according to the present invention. In order to inspect the appearance of the inspection object S formed using glass / resin having light transmittance as a raw material, it is installed on the
カラー撮像装置1で撮影された画像データは、本発明の画像処理を行うため画像処理装置4に転送される。画像処理装置4は、画像処理の演算を行うコンピュータ装置40とデータの出力を行うプリンタ41、データの表示を行うモニタ42と画像処理装置4の操作などを行うためのキーボード・マウス等として入力機器43より構成されている。更に、コンピュータ装置40は、カラー撮像装置1で撮影された画像データを画像処理装置4に入力する接続部であるインターフェース部40dと画像処理の演算を行うCPU40a、本発明の画像処理プログラムがインストールされたメインメモリ40bやデータ等の保管を行う補助記憶装置40cで構成されている。
Image data photographed by the
次に、本発明の画像データの処理の流れを説明する。
図2は、本発明の外観検査装置の画像処理の手順を示すフローチャートである。
画像入力S1は、カラー撮像装置1で撮影された画像データを、画像処理装置4に入力する工程である。多くの場合、画像データは画素ごとに赤(R)、緑(G)、青(B)の3色の色成分の光量値に分解された画像 立て表現される。RGBの三原色による色の表現と異なる色表現方法として、色相(H)と彩度(S)を用いた表現方法がいくつか知られており、HSI(Hue、Saturation、Intensity)色空間やHSV(Hue、Saturation、Value)色空間、HLS(Hue、Lightness、Saturation)色空間などと呼ばれているものがある。
HSI変換S2は、RGB色成分で表現された画像データを色相(H)と彩度(S)で表現された色空間に変換を行う工程である。なお、HSI変換S2は、画像データを構成する色成分の表現方法を変換するだけの等価な変換であり、人間が外観検査装置のモニタ42を通して観察する画像の色が変化する訳ではない。
Next, the flow of processing of image data according to the present invention will be described.
FIG. 2 is a flowchart showing a procedure of image processing of the appearance inspection apparatus according to the present invention.
The image input S <b> 1 is a process of inputting image data captured by the
The HSI conversion S2 is a step of converting image data expressed by RGB color components into a color space expressed by hue (H) and saturation (S). Note that the HSI conversion S2 is an equivalent conversion that only converts the expression method of the color components constituting the image data, and does not change the color of the image that the human observes through the
抽出色指定S3は、注目している色シミなどが確認されている領域を指定し色情報を取得する工程である。予め色シミなどの色見本が存在している場合は色見本から色を指定することもある。
選択色指定S4は、前記抽出色指定S3で指定した色を、例えばR、G、Bいずれかの指定した色に変換するか指定する工程である。
色相回転S5は、抽出した領域の色が、R(赤)G(緑)B(青)いずれかが強調して見えるように画像データ全体の色相を変化させる工程である。色相の変化量は、前記抽出色指定S3で指定した色と前記選択色指定S4で指定した色のそれぞれの色相(H)の差分になる。
RGB変換S6は、前記色相回転S5を行った後の画像データを、RBG色空間で表現された画像データに変換する工程である。
The extracted color designation S3 is a step of obtaining color information by designating an area in which a noticed color spot or the like is confirmed. When a color sample such as a color spot exists in advance, a color may be designated from the color sample.
The selection color designation S4 is a step of designating whether the color designated in the extraction color designation S3 is to be converted into a color designated, for example, R, G, or B.
Hue rotation S5 is a process of changing the hue of the entire image data so that one of R (red), G (green), and B (blue) appears to be highlighted. The amount of change in hue is the difference between the hue (H) of the color designated in the extracted color designation S3 and the color designated in the selected color designation S4.
The RGB conversion S6 is a step of converting the image data after the hue rotation S5 into image data expressed in the RBG color space.
工程S7から工程S12は、前記RGB変換S6で得られた画像データから、単色の濃淡画像を生成する工程(階調処理)である。
工程S7は、RGB色空間で表現された画像データについて、選択色のデータと選択されなかった残りの2つのデータ(非選択色1、非選択色2)に区別してコンピュータ装置40のメモリに保管する工程である。なお、説明では、選択色はG(緑)とし、残りの非選択色の大小関係はR(赤)>B(青)となっている場合について記載している。
本発明による画像処理では、階調処理の方法として3種類の補正方法を実施できる。
Steps S7 to S12 are steps (gradation processing) for generating a single color grayscale image from the image data obtained by the RGB conversion S6.
In step S7, the image data expressed in the RGB color space is stored in the memory of the
In the image processing according to the present invention, three types of correction methods can be implemented as gradation processing methods.
第一の方法は、工程S8と工程S9に記載された方法であり、選択色の色成分の光量値と、非選択色の内大きな値をとる色の色成分の光量値の差分をとる方法である。
第二の方法は、工程S10と工程S11に記載された方法であり、選択色の色成分の光量値と、非選択色の内小さな値をとる色の色成分の光量値の差分をとる方法である。
第三の方法は、工程S12と工程S13に記載された方法であり、選択色の色成分の光量値と、非選択色の色成分の光量値の平均値を求め、差分をとる方法である。
画像データについて、上記の階調処理を行うことで選択色と非選択色の色成分の光量値の関係から単色の濃淡画像が生成され画面表示S13される。
なお、工程S9、工程S11、工程S12において、得られた結果が0より小さくなる場合は、得られた値は0になるとしている。
The first method is the method described in Steps S8 and S9, in which the difference between the light amount value of the color component of the selected color and the light amount value of the color component of the color that takes a large value among the non-selected colors is taken. It is.
The second method is a method described in step S10 and step S11, in which the difference between the light amount value of the color component of the selected color and the light amount value of the color component of the color that takes a small value among the non-selected colors is taken. It is.
The third method is a method described in step S12 and step S13, in which the average value of the light amount value of the color component of the selected color and the light amount value of the color component of the non-selected color is obtained and a difference is obtained. .
By performing the above gradation processing on the image data, a single color grayscale image is generated from the relationship between the light quantity values of the color components of the selected color and the non-selected color, and is displayed on the screen S13.
In addition, when the obtained result becomes smaller than 0 in the process S9, the process S11, and the process S12, the obtained value is assumed to be 0.
本発明の検査装置を用いた場合、その画像処理によって、選択色に対してそれ以外の色がどのような階調で表現されるか示したのが図3である。図3では、選択色はG(緑)[色相120度に相当]とし、上記画像処理によって得られる階調の強さを感度として表している。なお、感度は比較する2箇所の色成分の光量値の差分のため、無単位の量である。
本発明は光透過性成形体の外観検査を目的としているため、光透過性成形体を観察したときの特徴である彩度が低い状態として、非選択色の色成分の光量値に対して、選択色の色成分の光量値が10%高い値を示す場合を例にして求めた値である。
選択色に対して、非選択色の最大値で補正した場合(工程S9)は、選択色に近い色のみが濃淡画像として現れる。これは、比較対照する箇所の色合いが似ている場合に、目的とする色のみを切り出す場合に有効である。(図3III))
これに対して、選択色に対して、非選択色の最小値で補正した場合(工程S11)は、選択色周辺の広い色相範囲の色が濃淡画像として現れる。これは、彩度が低い画像は、灰色のバックグラウンドの中に僅かに色合いが認識できるだけで、人間の目では色合いを誤認しやすい場合に類似する色を把握する場合に有効である。(図3(I))
三番目の選択色に対して、非選択色の平均値を求めて補正する場合は、上記二つの方法の中間的な性質を有しており、選択色からの色相の差異も濃淡値として表現される。(図3(II))
上記3種類の方法は、対象となる被検査物の状態に応じて選択することができる。
When the inspection apparatus of the present invention is used, FIG. 3 shows in what gradation other colors are expressed with respect to the selected color by the image processing. In FIG. 3, the selected color is G (green) [corresponding to a hue of 120 degrees], and the intensity of the gradation obtained by the image processing is expressed as sensitivity. Note that the sensitivity is a unitless amount because of the difference between the light amount values of the two color components to be compared.
Since the present invention is intended for the appearance inspection of the light-transmitting molded body, as a state of low saturation, which is a characteristic when the light-transmitting molded body is observed, with respect to the light amount value of the color component of the non-selected color, This is a value obtained by taking as an example a case where the light amount value of the color component of the selected color shows a value 10% higher.
When the selected color is corrected with the maximum value of the non-selected color (step S9), only the color close to the selected color appears as a grayscale image. This is effective when only the target color is cut out when the colors of the parts to be compared are similar. (Fig. 3III))
On the other hand, when the selected color is corrected with the minimum value of the non-selected color (step S11), colors in a wide hue range around the selected color appear as a grayscale image. This is effective in grasping a color similar to a case where an image with low saturation can recognize a slight hue in a gray background and the human eye easily misidentifies the hue. (Fig. 3 (I))
When the average value of non-selected colors is determined and corrected for the third selected color, it has an intermediate property between the above two methods, and the hue difference from the selected color is also expressed as a gray value. Is done. (Fig. 3 (II))
The above three types of methods can be selected according to the state of the object to be inspected.
図4は、本発明の第一の実施例を適用した際に、色相と階調の変化を示した図である。図4(a)の左の図は、色成分を色相と彩度で表した図であり、色相を円周方向、色彩を径方向に表している。一般的には色相環と呼ばれている図である。
図4の例では、彩度値が同じ値で、色相値が近接している3種類の色(a、b,c)に本発明を適用することにより区別する過程を示している。図4(a)の左から2番目、3番目、4番目の図は、前記3種類の色(a、b,c)について、R(赤)、G(緑)、B(青)の3色の色成分で表した場合の図を示している。図4(1)について、例えば、R、G、Bの色成分がそれぞれ90、100,110のいずれかの値を採るものとすると、三色の成分が相対的に近接しているため、彩度が小さくなり視覚的には単色の濃淡の色調に僅かに色がついた色に認識される。このような色を色相環で表現すると、中心部分に分布したものとなる。なお、図4(1)及び図4(2)に示した色相環は各色の色相の違いが判るように、説明のため、色彩の値を便宜的に大きく強調して表示している。
FIG. 4 is a diagram showing changes in hue and gradation when the first embodiment of the present invention is applied. The left diagram in FIG. 4A is a diagram in which the color components are expressed by hue and saturation, and the hue is expressed in the circumferential direction and the color is expressed in the radial direction. It is a figure generally called a hue circle.
The example of FIG. 4 shows a process of distinguishing by applying the present invention to three kinds of colors (a, b, c) having the same saturation value and close hue values. The second, third, and fourth diagrams from the left in FIG. 4A show the three colors (a, b, and c) of R (red), G (green), and B (blue). The figure at the time of expressing with the color component of a color is shown. 4 (1), for example, if the R, G, and B color components take values of 90, 100, and 110, respectively, the three color components are relatively close to each other. The degree becomes smaller and visually, it is recognized as a color in which the color tone of a single color is slightly colored. If such a color is expressed by a hue circle, it is distributed in the central portion. In the hue circle shown in FIGS. 4 (1) and 4 (2), for convenience of explanation, the color value is greatly emphasized and displayed so that the difference in hue between the colors can be seen.
図4の色調と階調の変化を図2のフローチャートを用いて説明する。取得した画像から、色調の近接した三箇所を選択し、各点(a、b、c)の色情報を取得する。(図4(1)(a)〜(c))(工程S1)
各点の色情報を色相と色彩に変換し色相環に表示する。(図4(1)左図)(工程S2)
点bの色に着目し(工程S3)、点bの色を色相変換する色としてG(緑)を選択する。(工程S4)
点bの色相値とG(緑)の色相の差(θ)を求め、点bの色相が緑となるように、画像全体の色相をθだけシフトさせる。(図4(2))(工程S5)
色相変換後の各点の色情報を、R・G・Bで表す。(工程S6)(図4(2)(a’)〜(c’))
4 will be described with reference to the flowchart of FIG. From the acquired image, three locations with close color tones are selected, and the color information of each point (a, b, c) is acquired. (FIG. 4 (1) (a) to (c)) (Step S1)
The color information of each point is converted into hue and color and displayed on the hue circle. (FIG. 4 (1) left) (Step S2)
Focusing on the color of point b (step S3), G (green) is selected as the color for hue conversion of the color of point b. (Process S4)
The difference (θ) between the hue value of point b and the hue of G (green) is obtained, and the hue of the entire image is shifted by θ so that the hue of point b is green. (FIG. 4 (2)) (Step S5)
The color information of each point after hue conversion is represented by R, G, and B. (Step S6) (FIG. 4 (2) (a ′) to (c ′))
ここで、選択色に対して、非選択色の最大値で補正する場合は、選択色であるG(緑)の成分に対して、非選択色であるR(赤)とB(青)の色成分の光量値を比較し、大きな値の色成分の光量値を選択色G(緑)の色成分の光量値から引く(図4(3))(工程S9)。
選択色に対して、非選択色の平均値で補正する場合は、選択色であるG(緑)の成分に対して、非選択色であるR(赤)とB(青)の色成分の光量値の平均値を求め、選択色G(緑)の色成分の光量値から引く(図4(4))(工程S12)。
画像全体につき、上記工程S9あるいは工程S12を繰り返し、得られた画像を表示する。(工程S13)
このように、本発明による手順により画像処理を行うことにより、着目した色に対して、一致する色が最大となり、色相が近接している場合であっても階調の濃淡の差として区別することができる。
なお、図3で説明したとおり、補正の手法を選択することにより隣接する色相の違いから得られる濃淡の階調は調整することができる。図4に示したように色相が近接している場合は、非選択色の色成分は、最大値あるいは平均値を用いて補正することが適している。
Here, when correcting the selected color with the maximum value of the non-selected color, the non-selected colors R (red) and B (blue) are selected for the selected color G (green) component. The light quantity values of the color components are compared, and the light quantity value of the large color component is subtracted from the light quantity value of the color component of the selected color G (green) (FIG. 4 (3)) (step S9).
When correcting the selected color with the average value of the non-selected colors, the R (red) and B (blue) color components of the non-selected color are compared with the G (green) component of the selected color. The average value of the light quantity values is obtained and subtracted from the light quantity value of the color component of the selected color G (green) (FIG. 4 (4)) (step S12).
The process S9 or S12 is repeated for the entire image, and the obtained image is displayed. (Process S13)
As described above, by performing image processing according to the procedure according to the present invention, the matching color is maximized with respect to the focused color, and even if the hue is close, it is distinguished as a difference in shade of gradation. be able to.
Note that, as described with reference to FIG. 3, the gradation of light and shade obtained from the difference between adjacent hues can be adjusted by selecting a correction method. As shown in FIG. 4, when hues are close to each other, it is suitable to correct the color component of the non-selected color using a maximum value or an average value.
互いに色相が近接している場合に区別する方法を説明したが、彩度が低い色については、色相の値が近接していなくても、単色の濃淡画像のように認識されるため、色の特徴を見つけることが難しい、むしろ、周辺の色との関係で視覚的な錯覚を生じ、本来とは別の色と認識してしまうこともある。
このような場合においても、発明の画像処理を行うことが有効である。
図5を用いて説明すると、取得した画像から、三箇所を選択し、各点(a、b、c)の色情報を取得する。(図5(1)(a)〜(c))(工程S1)
各点の色情報を色相と色彩に変換し色相環に表示する。(図5(1)左図)(工程S2)
点bの色に着目し(工程S3)、点bの色を色相変換する色としてG(緑)を選択する。(工程S4)
点bの色相値とG(緑)の色相の差(θ)を求め、点bの色相が緑となるように、画像全体の色相をθだけシフトさせる。(図5(2))(工程S5)
色相変換後の各点の色情報を、R・G・Bで表す。(工程S6)(図5(2)(a’)〜(c’))
ここで、選択色であるG(緑)の成分に対して、非選択色であるR(赤)とB(青)の色成分の光量値を比較し、小さな値の色成分の光量値を選択色G(緑)の色成分の光量値から引く(図5(3))(工程S11)。
画像全体につき、上記工程S11を繰り返し、得られた画像を表示する。(工程S13)
このように、本発明による手順により画像処理を行うことにより、着目した色に対して、補色にあたる色を除くことができるため、彩度が低く色の特徴を判断しづらい状態であっても、視覚的な錯覚を防止することが可能になる。
Although the method of distinguishing when the hues are close to each other has been described, colors with low saturation are recognized as a single grayscale image even if the hue values are not close. It is difficult to find a feature, but rather, it creates a visual illusion in relation to the surrounding colors, which may be recognized as a color different from the original color.
Even in such a case, it is effective to perform the image processing of the invention.
If it demonstrates using FIG. 5, three places will be selected from the acquired image and the color information of each point (a, b, c) will be acquired. (FIG. 5 (1) (a) to (c)) (Step S1)
The color information of each point is converted into hue and color and displayed on the hue circle. (FIG. 5 (1) left) (Step S2)
Focusing on the color of point b (step S3), G (green) is selected as the color for hue conversion of the color of point b. (Process S4)
The difference (θ) between the hue value of point b and the hue of G (green) is obtained, and the hue of the entire image is shifted by θ so that the hue of point b is green. (FIG. 5 (2)) (Step S5)
The color information of each point after hue conversion is represented by R, G, and B. (Step S6) (FIG. 5 (2) (a ′) to (c ′))
Here, with respect to the G (green) component that is the selected color, the light amount values of the R (red) and B (blue) color components that are the non-selected colors are compared, and the light amount value of the small color component is Subtract from the light quantity value of the color component of the selected color G (green) (FIG. 5 (3)) (step S11).
The above-described step S11 is repeated for the entire image, and the obtained image is displayed. (Process S13)
In this way, by performing image processing according to the procedure according to the present invention, it is possible to remove complementary colors from the focused color, so even if the saturation is low and it is difficult to determine the color characteristics, It is possible to prevent visual illusion.
図1の全体構成図を使って、本発明の検査方法及び検査装置について説明を行ってきたが、前述のとおり、本検査方法及び装置は、色調の微妙な差異を効率よく判定することを目的としていることから、検査機周辺の人や物の動きや、室内の照明などさまざまな光が迷光としてカラー撮像装置1に検出され、誤検出の要因となる可能性がある。
このように周辺環境による影響を防止するためには、被検査物Sやカラー撮像装置1などを覆うように図6に示すような遮光壁5を用いることが有効である。
遮光壁5を設けることにより、光源2から照射された光だけがカラー撮像装置1に捕捉されるため、迷光による誤検出を防止することができる。
また、誤検出の防止だけでなく、迷光が無くなることで検出感度が向上することが期待される。このため、より微細な色調の変化も精度よく判定することが可能になる。
Although the inspection method and the inspection apparatus of the present invention have been described using the overall configuration diagram of FIG. 1, as described above, the inspection method and apparatus aim to efficiently determine a subtle difference in color tone. Therefore, various lights such as movements of people and objects around the inspection machine and indoor lighting are detected by the
Thus, in order to prevent the influence of the surrounding environment, it is effective to use the light shielding wall 5 as shown in FIG. 6 so as to cover the inspection object S, the
By providing the light shielding wall 5, only the light emitted from the
In addition to preventing false detection, it is expected that detection sensitivity is improved by eliminating stray light. For this reason, it becomes possible to determine a finer change in color tone with high accuracy.
被検査物Sを照射する光源2は、図1と図6では被検査物Sの下方に設置され、カラー撮像装置1に対して透過照明となるように配置されている。本発明においては光源2の位置は透過照明に限定されている訳ではない。図7に示すようにカラー撮像装置1の側方に設置して反射照明としてもよい。
さらに、拡散板3が導光板の機能を持っていれば、拡散板3の側壁に光源2を設置して拡散板の側面から光を導入することで、被検査物Sの下方から拡散光L’を照射することが可能になり、図1の透過照明の場合と同じように照射することができる。
The
Further, if the
S:被検査物
L:光源より放射された光
L’:拡散光
1:カラー撮像装置
2:光源
3:拡散板
4:画像処理装置
40:コンピュータ装置
40a:CPU
40b:メインメモリ
40c:補助記憶装置
40d:インターフェース部
41:プリンタ
42:モニタ
43:入力機器
5:遮光壁
S: Inspected object L: Light emitted from a light source L ′: Diffused light 1: Color imaging device 2: Light source 3: Diffusion plate 4: Image processing device 40: Computer device 40a: CPU
40b:
Claims (4)
前記被検査物を透過あるいは前記被検査物から反射した光を受光するカラー撮像装置と、
前記カラー撮像装置で撮像された画像データを記録する記録手段と、
を備えた光透過性成形品の外観検査装置において、
前記画像データは赤(R)、青(B)、緑(G)の色成分の光量値で構成された色空間データ群1で構成されており、
前記色空間データ群1を色相(H)と彩度(S)を含む色成分で構成された色空間データ群2に変換する第一の変換手段と、
前記色空間データ群2の色相(H)を回転させて色空間データ群3に変換する第二の変換手段と、
前記色空間データ群3を赤(R)、青(B)、緑(G)の色成分の光量値で構成された色空間データ群4に変換する第三の変換手段とを備え、
前記色空間データ群4を構成する色成分の一つを選択し、選択した色成分の光量値を残りの色成分の光量値を用いて補正することを特徴とする光透過性成形品の外観検査装置。 A light source for irradiating the inspection object with light;
A color imaging device that receives light that is transmitted through the inspection object or reflected from the inspection object; and
Recording means for recording image data captured by the color imaging device;
In the visual inspection apparatus for light-transmitting molded products,
The image data is composed of a color space data group 1 composed of light quantity values of red (R), blue (B), and green (G) color components,
First conversion means for converting the color space data group 1 into a color space data group 2 composed of color components including hue (H) and saturation (S);
Second conversion means for rotating the hue (H) of the color space data group 2 to convert it into the color space data group 3;
A third conversion means for converting the color space data group 3 into a color space data group 4 composed of light quantity values of red (R), blue (B), and green (G) color components;
Appearance of a light-transmitting molded article, wherein one of the color components constituting the color space data group 4 is selected, and the light quantity value of the selected color component is corrected using the light quantity values of the remaining color components Inspection device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012079262A JP5652421B2 (en) | 2012-03-30 | 2012-03-30 | Appearance inspection equipment for light-transmitting molded products |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012079262A JP5652421B2 (en) | 2012-03-30 | 2012-03-30 | Appearance inspection equipment for light-transmitting molded products |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2013210227A true JP2013210227A (en) | 2013-10-10 |
JP5652421B2 JP5652421B2 (en) | 2015-01-14 |
Family
ID=49528200
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012079262A Active JP5652421B2 (en) | 2012-03-30 | 2012-03-30 | Appearance inspection equipment for light-transmitting molded products |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5652421B2 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2020204830A (en) * | 2019-06-14 | 2020-12-24 | ヤマハ発動機株式会社 | Mark recognition device and processing device including the same |
WO2023120017A1 (en) * | 2021-12-23 | 2023-06-29 | シーシーエス株式会社 | Illumination device for inspection, and color inspection system |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5595821B2 (en) | 2010-07-30 | 2014-09-24 | 矢崎総業株式会社 | Bus bar unit |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6412381A (en) * | 1987-07-06 | 1989-01-17 | Dainippon Printing Co Ltd | Picture information conversion method |
JPH05332838A (en) * | 1992-05-26 | 1993-12-17 | Imaizumi Shokai:Kk | Color shading appearance inspection device |
JPH10302069A (en) * | 1997-04-24 | 1998-11-13 | Sumitomo Osaka Cement Co Ltd | Object identification device |
JP2943170B2 (en) * | 1989-10-13 | 1999-08-30 | ブラザー工業株式会社 | Color image processing equipment |
JP2001280939A (en) * | 2000-03-29 | 2001-10-10 | Ube Ind Ltd | Evaluation method of abnormal state of object surface |
JP3389678B2 (en) * | 1993-06-11 | 2003-03-24 | 日産自動車株式会社 | Color measuring device |
JP2003222598A (en) * | 2001-11-26 | 2003-08-08 | Omron Corp | Surface state inspection method of curved-surface body and board inspection method |
JP2009152868A (en) * | 2007-12-20 | 2009-07-09 | Sapporo Medical Univ | Image processing apparatus and image processing program |
JP2010079522A (en) * | 2008-09-25 | 2010-04-08 | Sapporo Medical Univ | Image processing device and image processing program |
JP4791900B2 (en) * | 2006-07-10 | 2011-10-12 | 北海道公立大学法人 札幌医科大学 | Image processing apparatus and image processing program |
JPWO2010044432A1 (en) * | 2008-10-17 | 2012-03-15 | オリンパスメディカルシステムズ株式会社 | Endoscope system and endoscope image processing apparatus |
-
2012
- 2012-03-30 JP JP2012079262A patent/JP5652421B2/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6412381A (en) * | 1987-07-06 | 1989-01-17 | Dainippon Printing Co Ltd | Picture information conversion method |
JP2943170B2 (en) * | 1989-10-13 | 1999-08-30 | ブラザー工業株式会社 | Color image processing equipment |
JPH05332838A (en) * | 1992-05-26 | 1993-12-17 | Imaizumi Shokai:Kk | Color shading appearance inspection device |
JP3389678B2 (en) * | 1993-06-11 | 2003-03-24 | 日産自動車株式会社 | Color measuring device |
JPH10302069A (en) * | 1997-04-24 | 1998-11-13 | Sumitomo Osaka Cement Co Ltd | Object identification device |
JP2001280939A (en) * | 2000-03-29 | 2001-10-10 | Ube Ind Ltd | Evaluation method of abnormal state of object surface |
JP2003222598A (en) * | 2001-11-26 | 2003-08-08 | Omron Corp | Surface state inspection method of curved-surface body and board inspection method |
JP4791900B2 (en) * | 2006-07-10 | 2011-10-12 | 北海道公立大学法人 札幌医科大学 | Image processing apparatus and image processing program |
JP2009152868A (en) * | 2007-12-20 | 2009-07-09 | Sapporo Medical Univ | Image processing apparatus and image processing program |
JP2010079522A (en) * | 2008-09-25 | 2010-04-08 | Sapporo Medical Univ | Image processing device and image processing program |
JPWO2010044432A1 (en) * | 2008-10-17 | 2012-03-15 | オリンパスメディカルシステムズ株式会社 | Endoscope system and endoscope image processing apparatus |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2020204830A (en) * | 2019-06-14 | 2020-12-24 | ヤマハ発動機株式会社 | Mark recognition device and processing device including the same |
JP7201540B2 (en) | 2019-06-14 | 2023-01-10 | ヤマハ発動機株式会社 | Mark recognition device and processing device with same |
WO2023120017A1 (en) * | 2021-12-23 | 2023-06-29 | シーシーエス株式会社 | Illumination device for inspection, and color inspection system |
Also Published As
Publication number | Publication date |
---|---|
JP5652421B2 (en) | 2015-01-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6629455B2 (en) | Appearance inspection equipment, lighting equipment, photography lighting equipment | |
KR101338576B1 (en) | Defect inspection device for inspecting defect by image analysis | |
US8064691B2 (en) | Method for identifying color in machine and computer vision applications | |
JP5833631B2 (en) | Method for setting one or more ranges of one or more inspection parameters in an optical inspection system | |
CN101896865A (en) | Equipment for evaluating tire surfaces | |
CN103929560B (en) | image obtaining method and device | |
JP5652421B2 (en) | Appearance inspection equipment for light-transmitting molded products | |
CN108184286A (en) | The control method and control system and electronic equipment of lamps and lanterns | |
JP2019168388A (en) | Image inspection method and image inspection device | |
JP2023107693A (en) | Classification condition setting support device | |
JP7200945B2 (en) | Image coloring device, image coloring method, program, and image coloring system | |
JP2011054110A (en) | Image processing type measuring instrument and image processing measuring method | |
JP6045429B2 (en) | Imaging apparatus, image processing apparatus, and image processing method | |
JP5326990B2 (en) | Application state inspection apparatus and method, and program | |
CN108235831A (en) | The control method and control system and electronic equipment of lamps and lanterns | |
WO2024233266A1 (en) | Systems and methods for removing lighting effects from three-dimensional models | |
JP4715703B2 (en) | Optical flare inspection apparatus and inspection method | |
JP4226422B2 (en) | Method for detecting presence of colored ophthalmic lens | |
JP7411155B2 (en) | Color unevenness inspection device and color unevenness inspection method | |
KR20080114550A (en) | Ultraviolet microscope device | |
KR102171773B1 (en) | Inspection area determination method and visual inspection apparatus using the same | |
JP2023073399A (en) | Evaluation method and evaluation system | |
JP6502275B2 (en) | Depth feeling evaluation apparatus, depth feeling evaluation method and depth feeling evaluation program | |
JP5951867B2 (en) | Absorbent article inspection method | |
WO2016013112A1 (en) | Color variation amount determination device, color variation amount determination method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20140131 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20140204 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20140407 |
|
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: 20141021 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20141103 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5652421 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |