JP3846928B2 - How to identify amber color - Google Patents
How to identify amber color Download PDFInfo
- Publication number
- JP3846928B2 JP3846928B2 JP03439596A JP3439596A JP3846928B2 JP 3846928 B2 JP3846928 B2 JP 3846928B2 JP 03439596 A JP03439596 A JP 03439596A JP 3439596 A JP3439596 A JP 3439596A JP 3846928 B2 JP3846928 B2 JP 3846928B2
- Authority
- JP
- Japan
- Prior art keywords
- color
- transparent
- colors
- image
- determined
- 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
Links
- 210000000744 eyelid Anatomy 0.000 claims description 10
- 238000000034 method Methods 0.000 claims description 8
- 239000003086 colorant Substances 0.000 description 19
- 239000011521 glass Substances 0.000 description 6
- 238000005286 illumination Methods 0.000 description 4
- 230000037303 wrinkles Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 235000009508 confectionery Nutrition 0.000 description 1
Images
Landscapes
- Spectrometry And Color Measurement (AREA)
Description
【0001】
【産業上の利用分野】
本発明は、壜を撮影して得られた画像から壜の色を識別する方法に関する。
【0002】
【従来の技術】
自治体で回収された使用済のガラス壜は人手により色の種類毎に選別される。近年、選別作業の機械化が要望されており、壜の色の識別にCCDカラーカメラが試用されている。これは、例えば、茶、緑、透明、黒の4種類の色毎に色のデータを設定しておき、壜をカメラで撮影して得られた色データがどの設定に属するかによって色の種類を識別するものである。
【0003】
【発明が解決しようとする課題】
しかしながら、例えば透明壜にコーヒ等の残留物がある場合、撮影した色データが透明の設定に属する時と茶の設定に属する時とあり、正しく識別するのが困難なことがある。また、淡い色の壜に透明なシールが巻かれており、そのシールに複数の有彩色の印刷がされている場合、多色の壜と識別することがある。
【0004】
本発明は、上述の事情に鑑みなされたもので、壜を撮影した色データに複数の色の種類がある時に壜の色を正しく識別する方法を提供することを目的とする。
【0005】
【課題を解決するための手段】
上述の目的を達成するため、本発明は、壜の透過光をCCDカラーカメラで撮影して得られた色データから複数の色が判別されるとき、色の一つが無色透明であるときは壜の色は無色透明であるとし、無色透明のものがないときは色の種類別に面積を求めて最大面積の色を壜の色とすることを特徴とするものである。
【0006】
本発明においては、壜の色をCCDカラーカメラの三原色の成分R,G,Bの出力で設定し、この三原色の成分R,G,Bから壜の色を判別する。この場合、複数の色が判別されたときには、判別された色の1つが無色透明であるときは、無色透明壜内に残留物があるか、又はシール等が貼付けられているのであるから、壜の色は無色透明であると判定する。無色透明のものがないときには、判別された色の種類別に面積を求め、最大面積の色が壜の地色であるから、最大面積の色を壜の色と判定する。
【0007】
【実施例】
以下、本発明に係る壜の色の識別方法の一実施例を図1乃至図3を参照して説明する。
図1は壜の色の識別方法を実施する装置の全体構成を示す平面図である。図1において、符号1は回収壜たるガラス壜である。ガラス壜1を挟んで照明2とCCDカラーカメラ3が配置されている。CCDカラーカメラ3は画像処理装置4に接続されている。ガラス壜1は、照明2からの透過照明によりCCDカラーカメラ3で撮影され、撮影された画像は画像処理装置4により処理される。
【0008】
図2(a)及び図2(b)は、それぞれCCDカラーカメラ3で撮影されたガラス壜1の画像を示す図である。図2(a)及び図2(b)において、定間隔の横線はそれぞれ走査線sを模式的に表したものである。図2(a)に示す例では、CCDカラーカメラ3で撮影された画像には、壜1の画像5内にコーヒ等の残留物の画像aが含まれている。図2(b)に示す例では、壜1の画像5内に透明シールの画像bが含まれ、透明シールの画像b中には有彩色の印刷の画像b1及びb2が含まれている。
【0009】
図3はCCDカラーカメラ3における1つの走査線を模式的に示す図である。図3に示すように1つの走査線sの各点Pは、三原色の赤色成分Rと、三原色の緑色成分Gと、三原色の青色成分Bとから構成されている。
本発明においては、図2(a)及び図2(b)で得られた画像の全領域にわたって各点Pの三原色の成分R,G,Bの値を求める。この場合、三原色の成分R,G,Bの値が同一のときは透明、灰、黒等の無彩色であると判定できる。三原色の成分R,G,Bの値が同一でないときは、それぞれの割合により、茶、緑といった有彩色であると判定できる。そして、上述の作業と併行して各点Pの光量を求めて各点Pの明るさを判別する。このように明るさを判別することにより、壜の色を、無彩色のうち、透明、灰、黒や、有彩色においてもうすい色と濃い色、例えばうすい茶、暗い茶と識別することができる。
【0010】
次に、図2(a)で得られた画像より壜の色を判別する場合を説明する。この場合、上述の三原色の成分R,G,Bの値から画像aに対応した部分は、例えば茶色と判定され、他の部分は、例えば透明と判定されたとすると、壜の色は透明であると判定する。即ち、壜1の内に複数の色が判別されたときには、判別された色の一つが透明であるときは、壜の色は透明であると判定する。
【0011】
次に、図2(b)で得られた画像より壜の色を判定する場合を説明する。三原色の成分R,G,Bの値から画像b1に対応した部分は、例えば緑と判定され、画像b2に対応した部分は、例えば茶と判定され、他の部分は、例えばうすい青と判定されたときには、図2(c)に示すように緑、茶、うすい青の種類別に面積を求め、最大面積のうすい青を壜の色と判定する。即ち、壜1の内に複数の色が判別されたときに、透明のものがないときには、判別された色の種類別に面積を求め、最大面積の色を壜の色と判定する。
【0012】
【発明の効果】
以上説明したように本発明においては、透明壜に他の色があっても透明の色データがある時は透明壜とし、また透明でない壜に複数の色データがある時は最大面積の色を壜の色とする。従って、透明壜に内容物が付着していたり、淡い色の壜に有彩色シールが巻いてあっても壜の色を正しく識別できる。
【図面の簡単な説明】
【図1】本発明に係る壜の色の識別方法を実施する装置の全体構成を示す平面図である。
【図2】本発明に係る壜の色の識別方法を説明する説明図である。
【図3】本発明に係る壜の色の識別方法を説明する説明図である。
【符号の説明】
1 ガラス壜
2 照明
3 CCDカラーカメラ
4 画像処理装置
5 画像[0001]
[Industrial application fields]
The present invention relates to a method for identifying the color of a cocoon from an image obtained by photographing the cocoon.
[0002]
[Prior art]
Used glass bottles collected by the local government are manually sorted by color type. In recent years, there has been a demand for mechanization of sorting operations, and a CCD color camera has been used for identifying the color of the eyelids. This is because, for example, color data is set for each of four types of brown, green, transparent, and black, and the type of color depends on the setting to which the color data obtained by photographing the bud with a camera belongs. Is to identify.
[0003]
[Problems to be solved by the invention]
However, for example, when there is a residue such as coffee on a transparent bowl, it may be difficult to correctly identify the captured color data when it belongs to the transparent setting and when it belongs to the brown setting. Further, when a transparent sticker is wound around a light-colored wrinkle and a plurality of chromatic colors are printed on the sticker, it may be identified as a multi-colored wrinkle.
[0004]
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a method for correctly identifying the color of the eyelid when there are a plurality of color types in the color data obtained by photographing the eyelid.
[0005]
[Means for Solving the Problems]
In order to achieve the above-mentioned object, the present invention can be applied to a case where a plurality of colors are discriminated from color data obtained by photographing the transmitted light of the moth with a CCD color camera, and when one of the colors is colorless and transparent. The color of is colorless and transparent, and when there is no colorless and transparent, the area is obtained for each type of color, and the color of the maximum area is the color of candy.
[0006]
In the present invention, the color of the haze is set by the output of the three primary color components R, G, B of the CCD color camera, and the color of the haze is discriminated from the components R, G, B of the three primary colors. In this case, when a plurality of colors are discriminated, if one of the discriminated colors is colorless and transparent, there is a residue in the colorless and transparent bowl, or a sticker or the like is attached. Is determined to be colorless and transparent. When there is no colorless and transparent object, the area is obtained for each type of the determined color, and the color of the maximum area is the background color of the cocoon, so the color of the maximum area is determined as the cocoon color.
[0007]
【Example】
Hereinafter, an embodiment of the eyelid color identification method according to the present invention will be described with reference to FIGS.
FIG. 1 is a plan view showing the overall configuration of an apparatus for carrying out the eyelid color identification method. In FIG. 1, reference numeral 1 denotes a glass bottle as a collection bottle. An illumination 2 and a CCD color camera 3 are arranged with a glass bottle 1 in between. The CCD color camera 3 is connected to the image processing device 4. The glass bottle 1 is photographed by the CCD color camera 3 by the transmitted illumination from the illumination 2, and the photographed image is processed by the image processing device 4.
[0008]
2A and 2B are views showing images of the glass bottle 1 taken by the CCD color camera 3, respectively. In FIG. 2A and FIG. 2B, the horizontal lines at regular intervals schematically represent the scanning lines s. In the example shown in FIG. 2A, the image taken by the CCD color camera 3 includes a residue image a such as coffee in the
[0009]
FIG. 3 is a diagram schematically showing one scanning line in the CCD color camera 3. As shown in FIG. 3, each point P of one scanning line s is composed of a red component R of three primary colors, a green component G of three primary colors, and a blue component B of three primary colors.
In the present invention, the values of the components R, G, and B of the three primary colors at each point P are obtained over the entire area of the image obtained in FIGS. 2 (a) and 2 (b). In this case, when the values of the three primary color components R, G, and B are the same, it can be determined that the achromatic color is transparent, gray, black, or the like. When the values of the three primary color components R, G, and B are not the same, it can be determined that the colors are chromatic colors such as brown and green according to their ratios. Then, in parallel with the above-described operation, the amount of light at each point P is determined to determine the brightness of each point P. By discriminating the brightness in this way, the color of the cocoon can be distinguished from transparent, gray, black, and light and dark colors in chromatic colors such as light brown and dark brown among achromatic colors. .
[0010]
Next, a case where the color of the eyelid is discriminated from the image obtained in FIG. In this case, if the portion corresponding to the image a is determined to be brown, for example, from the values of the three primary color components R, G, and B, and the other portion is determined to be transparent, for example, the color of the eyelid is transparent. Is determined. That is, when a plurality of colors are discriminated in the cocoon 1, if one of the discriminated colors is transparent, the cocoon color is judged to be transparent.
[0011]
Next, a case where the color of the eyelid is determined from the image obtained in FIG. The part corresponding to the image b 1 is determined to be green, for example, from the values of the three primary color components R, G, and B, the part corresponding to the image b 2 is determined to be brown, for example, and the other part is light blue, for example. When it is determined, as shown in FIG. 2C, an area is obtained for each type of green, brown, and light blue, and the maximum area of light blue is determined to be a dark blue color. That is, when a plurality of colors are discriminated in the cocoon 1 and there is no transparent color, an area is obtained for each type of the discriminated color, and the color of the maximum area is judged as the color of the cocoon.
[0012]
【The invention's effect】
As described above, in the present invention, even when there are other colors in the transparent bottle, the transparent bottle is used when there is transparent color data, and when there are a plurality of color data in the non-transparent bottle, the color of the maximum area is selected. The color of amber. Therefore, even if the contents are attached to the transparent folds or the chromatic color sticker is wound around the pale folds, the color of the folds can be correctly identified.
[Brief description of the drawings]
FIG. 1 is a plan view showing an overall configuration of an apparatus for carrying out a method for identifying a wrinkle color according to the present invention.
FIG. 2 is an explanatory view illustrating a method for identifying a haze color according to the present invention.
FIG. 3 is an explanatory diagram for explaining a haze color identification method according to the present invention.
[Explanation of symbols]
1 Glass bowl 2 Illumination 3 CCD color camera 4
Claims (1)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP03439596A JP3846928B2 (en) | 1996-01-29 | 1996-01-29 | How to identify amber color |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP03439596A JP3846928B2 (en) | 1996-01-29 | 1996-01-29 | How to identify amber color |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH09210791A JPH09210791A (en) | 1997-08-15 |
| JP3846928B2 true JP3846928B2 (en) | 2006-11-15 |
Family
ID=12413002
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP03439596A Expired - Fee Related JP3846928B2 (en) | 1996-01-29 | 1996-01-29 | How to identify amber color |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3846928B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR102187406B1 (en) * | 2016-09-30 | 2020-12-08 | 도요 가라스 가부시키가이샤 | Small wound inspection device for glass containers |
-
1996
- 1996-01-29 JP JP03439596A patent/JP3846928B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH09210791A (en) | 1997-08-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5335292A (en) | Document processing system and method | |
| CN100376889C (en) | Intelligent digital graphics context detection system and detection method | |
| WO2002015558A3 (en) | Method and apparatus for selective processing of captured images | |
| DE69735083D1 (en) | Image processing system and method | |
| JPS62180250A (en) | Inspecting method for component package substrate | |
| WO2018143486A1 (en) | Method for providing content using modularizing system for deep learning analysis | |
| EP0858048B1 (en) | Apparatus of optically reading character and method thereof | |
| JP3846928B2 (en) | How to identify amber color | |
| US4849809A (en) | CRT printing apparatus for printing a composite image | |
| EP3907497B1 (en) | Apparatus and method for displaying and/or printing images of a specimen including a fluorophore | |
| JP2000188417A (en) | Three-color linear image sensor | |
| EP1096417A3 (en) | Spurious fingerprint rejection by variable illumination | |
| JP7601327B2 (en) | Inspection Equipment | |
| CN111724349B (en) | An Image Contamination Recognition Method Based on HSV and SVM | |
| CN109426221A (en) | A kind of harbor gate control system based on machine vision technique | |
| JPH09203614A (en) | Method for identifying type of bottle | |
| JPH09210651A (en) | Identification method for recycling bottle | |
| JPH09153139A (en) | Video signal processor | |
| JPH0953989A (en) | Method for discrimination color of bottle | |
| USH524H (en) | Image processing system for converting monochrome bank check images to multicolor bank check images | |
| JP2610884B2 (en) | Color shading pattern matching method | |
| JPH0341578A (en) | Color image reader | |
| JPH07209206A (en) | Print inspection device | |
| JP3839221B2 (en) | Form image processing method and apparatus | |
| JPH0949716A (en) | Method for recognizing shape of bottle |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20031225 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040106 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20040305 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20040406 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20060822 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| LAPS | Cancellation because of no payment of annual fees |