JP3318809B2 - Bottle sorting method - Google Patents

Bottle sorting method

Info

Publication number
JP3318809B2
JP3318809B2 JP22168494A JP22168494A JP3318809B2 JP 3318809 B2 JP3318809 B2 JP 3318809B2 JP 22168494 A JP22168494 A JP 22168494A JP 22168494 A JP22168494 A JP 22168494A JP 3318809 B2 JP3318809 B2 JP 3318809B2
Authority
JP
Japan
Prior art keywords
bottle
color
color component
value
detection
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
JP22168494A
Other languages
Japanese (ja)
Other versions
JPH0884962A (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.)
Shinmaywa Industries Ltd
Original Assignee
Shinmaywa Industries 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 Shinmaywa Industries Ltd filed Critical Shinmaywa Industries Ltd
Priority to JP22168494A priority Critical patent/JP3318809B2/en
Publication of JPH0884962A publication Critical patent/JPH0884962A/en
Application granted granted Critical
Publication of JP3318809B2 publication Critical patent/JP3318809B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Spectrometry And Color Measurement (AREA)
  • Sorting Of Articles (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、飲料等を収容するガラ
ス製または透光樹脂製等の瓶を色別に選別する瓶選別方
法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bottle sorting method for sorting, by color, bottles made of glass or translucent resin or the like for accommodating beverages and the like.

【0002】[0002]

【従来の技術】一般に資源の有効利用等の観点から、ガ
ラス瓶の分別回収とその再利用が盛んに行われている。
各家庭から出されるガラス瓶の収集形態は、専用の色別
箱による回収や一括した袋回収等各自治体により若干の
違いがあるが、多くの場合、回収瓶は自治体の資源化セ
ンター等で色分類され、カレットとして回収業者に引き
渡されてガラスの原料として再生する。回収瓶の色分別
作業は人手により実施される場合が多いが、労働条件の
改善や、分別作業および色識別作業の効率向上等の必要
性から、近年その自動化のニーズが大きくなっている。
かかる傾向から、CCDカメラ等を利用したガラス瓶選
別装置が開発されている。
2. Description of the Related Art In general, from the viewpoint of effective use of resources and the like, separation and recovery of glass bottles and reuse thereof are actively performed.
The collection form of glass bottles from each household differs slightly depending on each local government, such as collection by dedicated color boxes and collective bag collection, but in many cases, collection bottles are classified by color at the local government's resource center. Then, it is handed over to a collection company as cullet and recycled as raw material for glass. In many cases, the color separation of collection bottles is performed manually. However, in recent years, the need for automation has been increasing due to the need to improve working conditions and to improve the efficiency of separation and color identification.
From such a tendency, a glass bottle sorting device using a CCD camera or the like has been developed.

【0003】{第1の従来例}図15に第1の従来例の
ガラス瓶選別装置(特開平6−142618号公報参
照)を示す。第1の従来例では、ガラス瓶Gを連続的に
移送するローラコンベア11と、ローラコンベア11上
のガラス瓶を撮影するテレビカメラ12と、ローラコン
ベア11の下方にてテレビカメラ12と対向させて設け
られた照明13と、テレビカメラ12からの画像信号に
基づいてガラス瓶Gの色を判別する色選別装置14と、
色の判別が行われたガラス瓶Gを映し出すモニタ15と
から、ガラス瓶選別装置を構成している。
FIG. 15 shows a first conventional example of a glass bottle sorting apparatus (see JP-A-6-142618). In the first conventional example, a roller conveyor 11 for continuously transporting a glass bottle G, a television camera 12 for photographing the glass bottle on the roller conveyor 11, and a television camera 12 below the roller conveyor 11 are provided to face the television camera 12. A lighting 13, a color selection device 14 for determining the color of the glass bottle G based on an image signal from the television camera 12,
A monitor 15 for displaying the glass bottle G whose color has been determined constitutes a glass bottle sorting device.

【0004】そして、色選別装置14を、ガラス瓶Gの
外形を検出するとともにガラス瓶Gに色の判別箇所とな
る複数の検出エリアを設定するエリア設定部と、検出エ
リアの色を検出して判別する判別部と、ガラス瓶Gの基
準外形およびガラス瓶Gに着色される複数の色および色
調からなる基準色情報が記憶された記憶部とから構成し
ている。
[0004] The color selection device 14 detects the outer shape of the glass bottle G, and sets an area setting unit for setting a plurality of detection areas to be a color discrimination point in the glass bottle G, and detects and determines the color of the detection area. It comprises a discriminating unit and a storage unit in which the reference outer shape of the glass bottle G and reference color information including a plurality of colors and colors to be colored on the glass bottle G are stored.

【0005】動作時に、ローラコンベア11によって移
送されるガラス瓶Gがテレビカメラ12によって撮影さ
れると、このテレビカメラ12から画像信号が色選別装
置14へ出力される。そして、色選別装置14からの画
像信号に基づいて、色選別装置14のエリア設定部がガ
ラス瓶の外形を検出するとともに、記憶部からガラス瓶
Gの基準外形を引き出し、検出したガラス瓶Gの外形
と、記憶部から引き出した基準外形とを比較して大きさ
の比率を求め、この求めた比率に基づいてガラス瓶Gへ
複数の検出エリアを比例的に設定する。さらに、判別部
が、エリア設定部にて設定された検出エリアの色を検出
し、これら検出エリアの内少なくとも一つの検出エリア
の色が検出されれば、この検出した色を記憶部に記憶さ
れた基準色情報と比較してその色がどの色に属するかを
判別していた。
In operation, when the glass bottle G transported by the roller conveyor 11 is photographed by the television camera 12, an image signal is output from the television camera 12 to the color selection device 14. Then, based on the image signal from the color selection device 14, the area setting unit of the color selection device 14 detects the external shape of the glass bottle G, extracts the reference external shape of the glass bottle G from the storage unit, and detects the external shape of the detected glass bottle G, The size ratio is determined by comparing the reference outer shape drawn from the storage unit, and a plurality of detection areas are set in the glass bottle G in proportion based on the determined ratio. Further, the determining unit detects the color of the detection area set by the area setting unit, and if the color of at least one of the detection areas is detected, the detected color is stored in the storage unit. The reference color information is used to determine which color the color belongs to.

【0006】{第2の従来例}図16は第2の従来例の
瓶選別方法(特開平6−142617号公報参照)を示
す概略図である。第2の従来例では、整列装置21にて
ガラス瓶Aの長手方向をコンベアの搬送ベルト幅方向に
揃えて整列せしめ、制御装置23にて整列装置21で平
層化されたガラス瓶A群を正確に一本ずつ分別装置22
に受け渡すように調整し、ここから送られるガラス瓶A
を分別装置22にて一本ずつその形状および色によって
分別していた。
FIG. 16 is a schematic view showing a bottle sorting method according to a second conventional example (see Japanese Patent Application Laid-Open No. 6-142617). In the second conventional example, the longitudinal direction of the glass bottles A is aligned and aligned in the width direction of the conveyor belt of the conveyor by the aligning device 21, and the glass bottles A flattened by the aligning device 21 by the control device 23 are accurately aligned. Sorting device 22 one by one
Adjusted to be delivered to the glass bottle A sent from here
Were separated one by one by the shape and color by the separation device 22.

【0007】{第3の従来例}図17は第3の従来例の
瓶選別方法(特開平6−31251号公報参照)を示す
概略図である。第3の従来例では、ホッパー32に投入
されたガラス瓶31を振動フィルター33によって処理
能力に見合う分だけ振動整列機36に送り込まれる。振
動整列機36に供給されたガラス瓶はエリア37で整列
され、エリア38で間隔があけられ、通過センサー42
を通過して行く。画像処理装置41は通過センサー42
の信号と同期してガラス瓶31の色を判別し、この判定
結果を基に瓶選別コントローラ43で瓶選別装置44を
制御していた。なお、40はカメラ、39は照明装置で
ある
{Third Conventional Example} FIG. 17 is a schematic diagram showing a bottle sorting method according to a third conventional example (see Japanese Patent Application Laid-Open No. 6-31251). In the third conventional example, the glass bottle 31 put into the hopper 32 is sent by the vibration filter 33 to the vibration aligning machine 36 in an amount corresponding to the processing capacity. Vials fed to the vibrating aligner 36 are aligned in area 37, spaced in area 38, and passed through a pass sensor 42.
Go through. The image processing device 41 includes a passage sensor 42
The color of the glass bottle 31 is determined in synchronism with the signal of (a), and the bottle selection controller 43 controls the bottle selection device 44 based on the determination result. In addition, 40 is a camera, and 39 is a lighting device.

【0008】[0008]

【発明が解決しようとする課題】上記第1の従来例、第
2の従来例および第3の従来例では、比較的透明度の低
いガラス瓶の場合には判定が容易であるが、透明に近い
有色瓶の判定は、比較するデータの差が小さいため困難
である。かかる課題を解決するため、次の第4の従来例
の瓶選別方法が開示されている。
In the first, second and third prior arts described above, it is easy to judge a glass bottle having a relatively low degree of transparency, but the color is almost transparent. Judgment of a bottle is difficult because the difference in data to be compared is small. In order to solve such a problem, the following fourth conventional bottle sorting method is disclosed.

【0009】{第4の従来例}図18に第4の従来例の
瓶選別方法を示す。第4の従来例では、拡散板1を介し
て画像処理用高周波照明2によりガラス瓶3の透過光を
CCDカメラ4a,4bにより撮影し、カメラコントロ
ーラ5および画像処理装置6にてそのR(赤)、G
(緑)、B(青)成分より判定する方式を採用してい
る。この場合、透明に近い有色瓶の判定は、照明の明る
さを大にすればする程困難となる。そこで、CCDカメ
ラは一台(4a)だけでなく、照明の光量を下げたもう
一台のCCDカメラ(4b)を設けて瓶の色選別を行っ
ている。
<< Fourth Conventional Example >> FIG. 18 shows a bottle sorting method according to a fourth conventional example. In the fourth conventional example, the transmitted light of the glass bottle 3 is photographed by the CCD cameras 4a and 4b by the image processing high-frequency illumination 2 through the diffusion plate 1, and the R (red) is transmitted by the camera controller 5 and the image processing device 6. , G
(Green) and B (blue) components are used for determination. In this case, the determination of a colored bottle that is nearly transparent becomes more difficult as the brightness of the illumination increases. Therefore, not only one CCD camera (4a) but also another CCD camera (4b) with a reduced amount of illumination is provided to perform bottle color sorting.

【0010】しかしながら、第4の従来例の場合、二台
のカメラの像を処理する必要があり、部品コストが高く
つくといった欠点がある。
However, in the case of the fourth conventional example, it is necessary to process images of two cameras, and there is a disadvantage that the cost of parts is high.

【0011】本発明は、上記課題に鑑み、透明に近い淡
色瓶の選別が可能で、かつ比較的安いコストで効率的な
瓶選別方法を提供することを目的とする。
The present invention has been made in view of the above circumstances, and has as its object to provide an efficient bottle sorting method capable of sorting light-colored bottles that are nearly transparent, at a relatively low cost.

【0012】[0012]

【課題を解決するための手段】本発明の請求項1に係る
課題解決手段は、ガラス製または透光樹脂製等の瓶を色
別に選別する選別方法であって、前記瓶の両側端線の座
標を検出する両側端座標検出工程と、前記両側端線の座
標の中間線の座標を前記瓶の中心線座標として算出する
中心線座標算出工程と、該中心線座標算出工程にて算出
された前記中心線座標にて前記瓶を撮像する撮像工程
と、前記撮像工程で撮像された画像を処理して色判定を
行う色判定工程とを備え、前記両側端座標検出工程は、
載置手段にて前記瓶を横倒状態で載置し、前記瓶の背後
側に配置された照明手段から光を照射しつつ、前記瓶の
手前側に配置された輝度検出器を前記瓶の中心軸方向に
直交する縦走査方向に所定間隔で間欠的に下降走査さ
せ、前記輝度検出器で検出した輝度が一定の輝度差以上
に低下したときの前記縦走査方向の座標を前記瓶の上端
座標として検出する上端座標検出工程と、前記載置手段
と前記瓶との接触点の前記縦走査方向における座標を前
記瓶の下端座標として検出する下端座標検出工程とを含
Means for Solving the Problems According to a first aspect of the present invention, there is provided a method for sorting bottles made of glass or light-transmissive resin by color, comprising: The two-side end coordinate detecting step of detecting the coordinates, the center line coordinate calculating step of calculating the coordinates of the middle line of the coordinates of the two side end lines as the center line coordinates of the bottle, and the center line coordinate calculating step An imaging step of imaging the bottle at the center line coordinates, and a color determination step of processing the image captured in the imaging step to perform a color determination , the two-side end coordinate detection step,
The bottle is placed sideways by the placing means, and the bottle is placed behind the bottle.
While irradiating light from the illumination means arranged on the side,
The brightness detector placed on the front side is oriented in the direction of the center axis of the bottle.
Scans intermittently at predetermined intervals in the perpendicular vertical scanning direction.
The brightness detected by the brightness detector is equal to or greater than a certain brightness difference.
The coordinates in the vertical scanning direction when the
An upper end coordinate detecting step of detecting as coordinates, and the placing means described above.
The coordinates of the point of contact between the
A bottom coordinate detection step of detecting the bottom coordinate of the storage bottle.
No.

【0013】[0013]

【0014】本発明の請求項2に係る課題解決手段は、
ガラス製または透光樹脂製等の瓶を色別に選別する選別
方法であって、彩度検出手段にて前記瓶の彩度を検出す
る彩度検出工程と、明度検出手段にて前記瓶の明度を検
出する明度検出工程と、前記彩度検出工程で検出した彩
度と前記明度検出工程で検出した明度との比を演算する
彩度/明度比演算工程と、前記彩度/明度比演算工程で
演算した前記比の値が一定の基準値より大きいときに濃
色瓶であると認定し、前記一定の基準値より小さいとき
に淡色瓶であると認定する認定工程と、前記認定工程で
濃色瓶であると認定したときに濃色瓶用の色選別を行う
濃色瓶選別工程と、前記認定工程で淡色瓶であると認定
したときに淡色瓶用の色選別を行う淡色瓶選別工程とを
備える。
According to a second aspect of the present invention, there is provided:
What is claimed is: 1. A method for sorting bottles made of glass or translucent resin by color, comprising: a saturation detecting step of detecting the saturation of the bottle by a saturation detecting means; and a brightness of the bottle by a brightness detecting means. A brightness / lightness ratio calculating step for calculating a ratio between the saturation detected in the saturation detecting step and the lightness detected in the brightness detecting step; and a chroma / brightness ratio calculating step. A certifying step of certifying that the bottle is a dark-colored bottle when the value of the ratio calculated in the above step is larger than a predetermined reference value, and certifying that the bottle is a light-colored bottle when the value of the ratio is smaller than the predetermined reference value. A dark-colored bottle sorting step of performing color sorting for a dark-colored bottle when it is determined to be a colored bottle, and a light-colored bottle sorting step of performing color sorting for a light-colored bottle when it is determined to be a light-colored bottle in the above-described certification step. And

【0015】本発明の請求項3に係る課題解決手段は、
前記濃色瓶選別工程は、前記瓶の所定の色成分を検出す
る第1の色成分検出工程と、前記色成分検出工程で検出
した色成分の検出値を濃色瓶用の座標空間上に配置する
第1のマップ工程と、該第1のマップ工程で配置された
前記濃色瓶用の座標空間上で、前記色成分検出工程で検
出した前記色成分の検出値の色識別を行う第1の色識別
工程とを含み、前記淡色瓶選別工程は、前記瓶を照射す
る照明手段の色成分が座標原点と一致するよう、前記濃
色瓶用の座標空間を淡色瓶用の座標空間に変換する座標
変換工程と、前記瓶の所定の色成分を検出する第2の色
成分検出工程と、前記色成分検出工程で検出した色成分
の検出値を前記淡色瓶用の座標空間上に配置する第2の
マップ工程と、該第2のマップ工程で配置された前記淡
色瓶用の座標空間上で、前記色成分検出工程で検出した
前記色成分の検出値の色識別を行う第2の色識別工程と
を含む。
[0015] The problem solving means according to claim 3 of the present invention is as follows.
The dark bottle selection step includes a first color component detection step of detecting a predetermined color component of the bottle, and a detection value of the color component detected in the color component detection step in a coordinate space for the dark bottle. A first map step of arranging, and a color identification of the detected value of the color component detected in the color component detection step in the coordinate space for the dark color bottle arranged in the first map step. The light-colored bottle sorting step, wherein the light-colored bottle sorting process comprises: converting the dark-colored bottle coordinate space into a light-colored bottle coordinate space so that the color component of the illumination means for irradiating the bottle coincides with the coordinate origin. A coordinate conversion step for converting, a second color component detection step for detecting a predetermined color component of the bottle, and a detection value of the color component detected in the color component detection step arranged in a coordinate space for the light-colored bottle. A second mapping step, and a coordinate space for the light-colored bottles arranged in the second mapping step. In, and a second color identification step of performing the color identification of the detected value of the color component detected by the color component detecting step.

【0016】本発明の請求項4に係る課題解決手段は、
ガラス製または透光樹脂製等の瓶を色別に選別する選別
方法であって、前記瓶の両側端線の座標を検出する両側
端座標検出工程と、前記両側端線の座標の中間線の座標
を前記瓶の中心線座標として算出する中心線座標算出工
程と、該中心線座標算出工程にて算出された前記中心線
座標にて前記瓶を撮像する撮像工程と、前記撮像工程で
撮像された画像を処理して色判定を行う色判定工程とを
備え、前記撮像工程は、前記瓶の前記中心線座標周りの
複数の検出点を含む所定領域を撮像する工程を含み、前
記色判定工程は、前記所定領域内の前記複数の検出点に
おける所定の色成分を夫々検出する色成分検出工程と、
前記色成分検出工程で検出された前記所定の色成分の各
々について前記複数の検出点についての和または平均値
を演算する演算工程とを含む。
[0016] The means for solving the problem according to claim 4 of the present invention is:
Sorting to sort bottles made of glass or translucent resin by color
A method for detecting coordinates of both end lines of the bottle, the method comprising:
End coordinate detection step, and coordinates of an intermediate line between the coordinates of the both end lines
Is calculated as a center line coordinate of the bottle.
And the center line calculated in the center line coordinate calculating step.
An imaging step of imaging the bottle at coordinates, and
A color determination step of performing color determination by processing the captured image.
The imaging step includes imaging a predetermined area including a plurality of detection points around the center line coordinates of the bottle, and the color determination step includes a step of detecting a predetermined area at the plurality of detection points in the predetermined area. A color component detection step of detecting each color component,
A calculating step of calculating a sum or an average value of the plurality of detection points for each of the predetermined color components detected in the color component detecting step.

【0017】本発明の請求項5に係る課題解決手段は、
前記所定領域は、前記瓶の中心線を中心として上下対称
に設定される。
According to a fifth aspect of the present invention, there is provided:
The predetermined area is set symmetrically about the center line of the bottle.

【0018】本発明の請求項6に係る課題解決手段は、
前記演算工程は、前記所定領域内の全検出点の前記所定
の色成分の平均値を算出する第1の平均値算出工程と、
前記所定領域内の全検出点のうち、前記第1の平均値算
出工程で算出された前記平均値と相対的に異なる検出値
を示す複数の異値検出点を認識する異値認識工程と、前
記所定領域内の全検出点から前記異値検出点を除外した
残りの検出点の前記所定の色成分の平均値を算出する第
2の平均値算出工程とを含む。
[0018] The problem solving means according to claim 6 of the present invention is as follows.
The calculating step is a first average value calculating step of calculating an average value of the predetermined color components of all the detection points in the predetermined area;
Among all the detection points in the predetermined area, a different value recognition step of recognizing a plurality of different value detection points indicating detection values relatively different from the average value calculated in the first average value calculation step, A second average value calculating step of calculating an average value of the predetermined color components of remaining detection points excluding the different value detection points from all the detection points in the predetermined area.

【0019】本発明の請求項7に係る課題解決手段は、
前記異値認識工程は、前記平均値と比較して最も値差の
大きな検出点から順番に所定の数の検出点を選定し前記
異値検出点とする工程を含む。
[0019] The problem solving means according to claim 7 of the present invention is:
The different value recognition step includes a step of selecting a predetermined number of detection points in order from the detection point having the largest value difference as compared with the average value and setting the selected number as the different value detection point.

【0020】本発明の請求項8に係る課題解決手段は、
請求項6記載の瓶選別方法において、前記所定領域を前
記瓶の表面の付着物から回避するよう特定する領域特定
工程をさらに備える。
The problem solving means according to claim 8 of the present invention is:
7. The bottle sorting method according to claim 6 , further comprising an area specifying step of specifying the predetermined area so as to avoid the adhering matter on the surface of the bottle.

【0021】本発明の請求項9に係る課題解決手段は、
ガラス製または透光樹脂製等の瓶を色別に選別する選別
方法であって、前記瓶の手前側に配置された撮像装置の
撮像画像中の所定領域が前記瓶の底部側面に合うよう位
置決めする位置決め工程と、前記瓶の背後側に配置され
た照明手段から光を照射しつつ、前記撮像装置にて前記
瓶の底部側面を前記瓶の手前側側方から撮像する撮像工
程と、前記撮像工程で撮像された画像を処理して色判定
を行う色判定工程とを備える。
According to a ninth aspect of the present invention, there is provided a means for solving the problem,
A sorting method for sorting bottles made of glass or translucent resin according to color, wherein positioning is performed so that a predetermined region in a captured image of an imaging device arranged on the front side of the bottle matches a bottom side surface of the bottle. A positioning step, an imaging step of irradiating light from an illuminating unit arranged behind the bottle, and imaging the bottom side surface of the bottle from the front side of the bottle with the imaging device, and the imaging step And a color determination step of performing a color determination by processing the image captured in step (a).

【0022】本発明の請求項10に係る課題解決手段
は、前記色判定工程は、前記所定領域内の複数の検出点
における所定の色成分を夫々検出する色成分検出工程
と、前記色成分検出工程で検出された前記所定の色成分
のうち、予め設定された透明データから最も差の大きな
値、または該最も差の大きな値から順番に一定の数の値
群を選定する選定工程と、該選定工程にて選定された値
または値群についてのみ色判定を行う選定値判定工程と
を含む。
According to a tenth aspect of the present invention, the color determining step includes a color component detecting step of respectively detecting predetermined color components at a plurality of detection points in the predetermined area; A selection step of selecting, from among the predetermined color components detected in the step, a value having the largest difference from preset transparent data, or a fixed number of value groups in order from the value having the largest difference; A selection value determination step of performing color determination only on the value or value group selected in the selection step.

【0023】本発明の請求項11に係る課題解決手段
は、前記色判定工程は、色判定に用いる座標空間の原点
と、前記瓶を照射する照明手段の色成分とが一致するよ
う、前記座標空間を補正する座標補正工程と、前記所定
領域内の複数の検出点における所定の色成分を夫々検出
する色成分検出工程と、前記色成分検出工程で検出した
前記色成分の検出値を、前記座標補正工程で補正された
座標空間上に配置するマップ工程と、補正された前記座
標空間上での前記各色成分の検出値の原点からの距離を
演算する原点距離演算工程と、前記原点距離演算工程で
演算された前記色成分の検出値のうち最も大きな値、ま
たは該最も大きな値から順番に一定の数の値群を選定す
る選定工程と、該選定工程にて選定された値または値群
についてのみ色判定を行う選定値判定工程とを含む。
According to an eleventh aspect of the present invention, in the color determination step, the coordinates are determined such that an origin of a coordinate space used for color determination coincides with a color component of illumination means for irradiating the bottle. A coordinate correction step of correcting a space, a color component detection step of respectively detecting predetermined color components at a plurality of detection points in the predetermined region, and a detection value of the color component detected in the color component detection step, A mapping step of arranging in the coordinate space corrected in the coordinate correction step, an origin distance calculating step of calculating a distance from the origin of the detected value of each color component in the corrected coordinate space, and an origin distance calculation A selection step of selecting the largest value among the detected values of the color components calculated in the step, or a fixed number of value groups in order from the largest value, and a value or a value group selected in the selection step Color judgment only for And a selection value determining step for.

【0024】本発明の請求項12に係る課題解決手段
は、前記照明手段の色成分を検出する照明色検出工程を
さらに備え、該照明色検出工程は、前記照明手段の色成
分を複数の検出点において夫々検出する工程と、前記複
数の検出点についての前記色成分の和または平均値を演
算する工程とを含む。
According to a twelfth aspect of the present invention, there is provided an illumination color detecting step for detecting a color component of the illuminating means, wherein the illuminating color detecting step detects a plurality of color components of the illuminating means. Detecting at each point, and calculating a sum or an average value of the color components for the plurality of detection points.

【0025】本発明の請求項13に係る課題解決手段
は、ガラス製または透光樹脂製等の瓶を色別に選別する
選別方法であって、前記瓶が所定の透明度を有するか否
かを判断する透明度判断工程を実行し、前記透明度判断
工程で前記所定の透明度を有すると判断したときに、
求項9記載の位置決め工程、撮像工程および色判定工程
を順次実行する。
According to a thirteenth aspect of the present invention, there is provided a sorting method for sorting bottles made of glass or light-transmitting resin by color, and determining whether the bottles have a predetermined transparency. the transparency determiner step of running, when it is determined to have a predetermined transparency in the transparency determination step,
Step of positioning Motomeko 9, sequentially executes imaging process and the color determination process.

【0026】本発明の請求項14に係る課題解決手段
は、前記透明度判断工程は、色判定に用いる座標空間の
原点と、前記瓶を照射する照明手段の色成分とが一致す
るよう、前記座標空間を補正する座標補正工程と、前記
瓶の所定の色成分を検出する色成分検出工程と、前記色
成分検出工程で検出した前記色成分の検出値を前記座標
補正工程で補正された座標空間上に配置するマップ工程
と、補正された前記座標空間上で、前記色成分検出工程
で検出した前記色成分の検出値の色識別を行う色識別工
程とを含む。
According to a fourteenth aspect of the present invention, in the transparency determining step, the coordinates are determined so that an origin of a coordinate space used for color determination coincides with a color component of the illuminating means for irradiating the bottle. A coordinate correction step of correcting a space, a color component detection step of detecting a predetermined color component of the bottle, and a coordinate space in which the detected value of the color component detected in the color component detection step is corrected in the coordinate correction step And a color identification step of performing color identification of the detection value of the color component detected in the color component detection step on the corrected coordinate space.

【0027】[0027]

【作用】本発明請求項1及び請求項5に係る瓶選別方法
では、瓶の中心線で色判定を行うので、瓶の曲率半径に
よる影響を受けずに済み、ばらつきの少ないデータ取得
を実施できる。
In the bottle sorting method according to the first and fifth aspects of the present invention, since the color judgment is performed at the center line of the bottle, it is not affected by the radius of curvature of the bottle, and data can be acquired with little variation. .

【0028】そして、本発明請求項1に係る瓶選別方法
では、瓶の上端の座標検出を行った後は、下端の座標を
上端と同様にして求める必要がなく、故に極めて短時間
でかつ確実に中心線を求めることができる。
[0028] In the bottle sorting method according to claim 1 of the present invention, after making the coordinate detection of the upper end of the bottle, it is not necessary to obtain in the same manner as the upper end coordinate of the lower end, thus and reliably very short The center line can be determined.

【0029】一般に、飲料等を収容するガラス瓶は、中
身を外光等から保護する目的で濃色に設定された濃色瓶
と、中身を外部から見やすくするために透明度が高めら
れた淡色瓶の二種類に大別される。このことに鑑み、本
発明請求項2に係る瓶選別方法では、瓶の彩度と明度と
の比に基づいて濃色瓶であるか淡色瓶であるかを認定
し、夫々異なる選別工程によって色選別を行う。そうす
ると、特に透明度が高くて色選別が困難な場合に選別精
度を高めることで正確な選別を行うことができる。特
に、本発明請求項3に係る瓶選別方法では、淡色瓶選別
工程の座標変換工程において、座標原点を照明手段の色
成分に一致させているので、透明度が極めて高く彩色を
判断しにくい場合でも正確な判断を行い得る。
In general, glass bottles for storing beverages and the like include a dark bottle set to a deep color for the purpose of protecting the contents from external light and the like, and a light-colored bottle having a higher transparency to make the contents easier to see from the outside. It is roughly divided into two types. In view of this, in the bottle sorting method according to claim 2 of the present invention, it is determined whether the bottle is a dark bottle or a light bottle based on the ratio between the saturation and the lightness of the bottle, and the color is sorted by different sorting processes. Perform sorting. Then, especially when the transparency is high and color selection is difficult, accurate selection can be performed by increasing the selection accuracy. In particular, in the bottle sorting method according to the third aspect of the present invention, in the coordinate conversion step of the light-colored bottle sorting step, the coordinate origin is matched with the color component of the illuminating means. Make accurate decisions.

【0030】本発明請求項4に係る瓶選別方法では、所
定領域内の複数の検出点について所定の色成分を検出
し、その和または平均値にて瓶選別を行うことで、取得
データの信頼性を飛躍的に高め得る。
In the bottle sorting method according to the fourth aspect of the present invention, a predetermined color component is detected at a plurality of detection points within a predetermined area, and the bottle selection is performed based on a sum or an average value of the detected color components. Sex can be dramatically improved.

【0031】本発明請求項5に係る瓶選別方法では、所
定領域を、瓶の中心線について上下対称に設定すること
で、瓶の曲率半径による影響を比較的受けずに済み、ば
らつきの少ないデータ取得を実施できる。
In the bottle sorting method according to the fifth aspect of the present invention, by setting the predetermined area vertically symmetrical with respect to the center line of the bottle, the predetermined area is relatively unaffected by the radius of curvature of the bottle, and data having little variation is provided. Acquisition can be performed.

【0032】本発明請求項6に係る瓶選別方法では、所
定領域内の全検出点の色成分の平均値を算出した後、平
均値と大きく異なる検出値を認識し、これを除外した残
りの検出点のみの平均値を算出して瓶選別を行う。これ
により、瓶の表面にラベル等を貼付していたり、汚れの
部分があったり、あるいは部分的にハレーションが発生
している場合等に、かかる部分を除去して瓶選定を行う
ことができるので、取得データの信頼性を飛躍的に高め
得る。特に、本発明請求項7に係る瓶選別方法では、平
均値と比較して最も値差の大きな検出点から順番に所定
の数の検出点を選定し異値検出点としているので、効率
よくデータのばらつきを軽減できる。
In the bottle sorting method according to the sixth aspect of the present invention, after calculating the average value of the color components of all the detection points in the predetermined area, a detection value that is significantly different from the average value is recognized, and the remaining values excluding this are excluded. The average value of only the detection points is calculated and bottle sorting is performed. In this way, when a label or the like is affixed to the surface of the bottle, when there is a dirty portion, or when halation occurs partially, the bottle can be selected by removing such a portion. The reliability of the acquired data can be greatly improved. In particular, in the bottle sorting method according to the seventh aspect of the present invention, a predetermined number of detection points are selected in order from the detection point having the largest value difference as compared with the average value and are set as different value detection points, so that efficient data Can be reduced.

【0033】本発明請求項8に係る瓶選別方法では、瓶
の表面においてラベルや汚れ等の付着物ある場合に、か
かる部分から所定領域を予め除外しておくことができ
る。これにより、第1の平均値算出工程における平均値
が、瓶の表面のみのデータからかけ離れるのを防ぐこと
ができ、異値認識工程で異値を正確に認識することがで
き、ひいては第2の平均値算出工程での平均値の算出が
正確になる。
In the bottle sorting method according to the eighth aspect of the present invention, when there is an attached matter such as a label or dirt on the surface of the bottle, a predetermined region can be excluded from such a portion in advance. Thereby, it is possible to prevent the average value in the first average value calculation step from being far from the data of only the surface of the bottle, and it is possible to accurately recognize the different value in the different value recognition step. The calculation of the average value in the average value calculation step becomes accurate.

【0034】本発明請求項9に係る瓶選別方法では、特
に淡色瓶の瓶選別の場合に、瓶の底部側面を通り抜ける
光について色判定を行うことで、照明手段からの透過光
の方向に最も厚い部分について色判定でき、彩度の高い
有色瓶として正確に瓶選別できる。
In the bottle sorting method according to the ninth aspect of the present invention, in particular, in the case of sorting bottles of light-colored bottles, the color judgment is performed on the light passing through the bottom side surface of the bottle, so that the direction of the transmitted light from the illuminating means can be minimized. The color can be determined for the thick part, and the bottle can be accurately selected as a colored bottle with high saturation.

【0035】本発明請求項10に係る瓶選別方法では、
所定領域内の複数の検出点について所定の色成分を検出
し、その和または平均値にて瓶選別を行うことで、取得
データの信頼性を飛躍的に高め得る。
In the bottle sorting method according to claim 10 of the present invention,
By detecting a predetermined color component for a plurality of detection points in a predetermined area and performing bin sorting based on the sum or average value thereof, the reliability of the acquired data can be significantly improved.

【0036】本発明請求項11に係る瓶選別方法では、
淡色瓶選別工程の座標補正工程において、座標原点を照
明手段の色成分に一致させているので、透明度が極めて
高く彩色を判断しにくい場合でも正確な判断を行い得
る。また、補正された座標空間上での各色成分の検出値
の原点からの距離を演算し、このうち最も大きな値、ま
たは最も大きな値から順番に一定の数の値群を選定して
色判定を行っているので、極めて単純な演算で瓶の透明
色に対する違いを正確に判断できる。したがって、多大
な演算処理時間を要さずに瓶選別できる。
In the bottle sorting method according to claim 11 of the present invention,
In the coordinate correction step of the light-colored bottle selection step, since the coordinate origin is matched with the color component of the illuminating means, accurate judgment can be made even when the transparency is extremely high and it is difficult to judge the coloring. Also, the distance from the origin of the detected value of each color component in the corrected coordinate space is calculated, and a color group is selected by selecting the largest value or a fixed number of values in order from the largest value. Since it is performed, the difference with respect to the transparent color of the bottle can be accurately determined with a very simple calculation. Therefore, bottle sorting can be performed without requiring a great deal of processing time.

【0037】本発明請求項12に係る瓶選別方法では、
瓶から外れた空間中の複数の検出点について照明手段の
色成分を検出し、その和または平均値にて照明手段の色
成分の信頼性を高めているので、淡色瓶用に変換または
補正して座標空間の原点を照明手段の色成分に正確に一
致でき、故に色判定を正確に行い得る。
In the bottle sorting method according to claim 12 of the present invention,
The color components of the illumination means are detected at a plurality of detection points in the space outside the bottle, and the reliability of the color components of the illumination means is enhanced by the sum or average value, so that the color components are converted or corrected for a light-colored bottle. As a result, the origin of the coordinate space can be accurately matched with the color component of the illumination means, so that the color determination can be performed accurately.

【0038】本発明請求項13に係る瓶選別方法では、
瓶が所定の透明度を有する場合のみ、請求項9記載の位
置決め工程、撮像工程および色判定工程を順次実行して
色選別を行うことで、特に透明瓶の色選別を正確に行い
得る。また、透明瓶以外の場合は、位置決めを要しない
通常の方法で色選別を行えばよく、透明瓶の場合に比べ
て処理を迅速に行い得る。
In the bottle sorting method according to the thirteenth aspect of the present invention,
Only if the bottle has a predetermined transparency step of positioning according to claim 9, by performing the color selection by sequentially executing the imaging process and the color determination process, in particular accurately perform color sorting transparent bottle. In the case of other than a transparent bottle, color selection may be performed by a normal method that does not require positioning, and processing can be performed more quickly than in the case of a transparent bottle.

【0039】本発明請求項14に係る瓶選別方法では、
請求項13の透明度判断工程について色判断する際に、
座標空間の原点を照明手段の色成分に一致させているの
で、透明度の判断を正確に行うことができる。
In the bottle sorting method according to claim 14 of the present invention,
When the color is determined in the transparency determining step according to claim 13,
Since the origin of the coordinate space is matched with the color component of the illumination means, the transparency can be accurately determined.

【0040】[0040]

【実施例】【Example】

<構成>図1は本発明の一実施例の瓶選別装置の全体構
成を示す平面図である。図1中の51はガラス瓶、52
はガラス瓶51を搬送する搬送コンベア(ローラコンベ
アまたはベルトコンベア:載置手段)、53はガラス瓶
51の色認識を行う色認識部、54は色認識部53内で
ガラス瓶51を照明する照明装置(照明手段)、55は
照明装置54で照明されたガラス瓶51を撮像するカメ
ラ(撮像装置)、56はカメラ55で撮像された画像を
処理する画像処理部、57は色認識部53で認識された
色別にガラス瓶51を選別する選別部、58は選別部5
7中にあって黒色瓶を回収する黒色瓶回収器、59は茶
色瓶を回収する茶色瓶回収器、61は濃緑色瓶を回収す
る濃緑色瓶回収器、62は無色瓶を回収する無色瓶回収
器、63はその他の色の瓶を回収する異種色瓶回収器、
64は画像処理部56で画像処理されたデータに基づい
て選別部57の選別動作を制御する制御部、65はガラ
ス瓶51の有無を検出する瓶検出センサである。
<Structure> FIG. 1 is a plan view showing the overall structure of a bottle sorting apparatus according to one embodiment of the present invention. In FIG. 1, reference numeral 51 denotes a glass bottle;
Is a conveyor (roller conveyor or belt conveyor: mounting means) for conveying the glass bottle 51; 53 is a color recognition unit for performing color recognition of the glass bottle 51; 54 is an illumination device (illumination) for illuminating the glass bottle 51 in the color recognition unit 53. Means, 55, a camera (imaging device) for imaging the glass bottle 51 illuminated by the illumination device 54, 56, an image processing unit for processing an image imaged by the camera 55, 57, a color recognized by the color recognition unit 53 Separating section for separately sorting glass bottles 51, 58 is sorting section 5
7, a black bottle collector for collecting black bottles, 59 a brown bottle collector for collecting brown bottles, 61 a dark green bottle collector for collecting dark green bottles, 62 a colorless bottle for collecting colorless bottles Collection device, 63 is a different color bottle collection device to collect bottles of other colors,
Reference numeral 64 denotes a control unit that controls the selection operation of the selection unit 57 based on the data processed by the image processing unit 56, and 65 denotes a bottle detection sensor that detects the presence or absence of the glass bottle 51.

【0041】ここで、本実施例で取り扱うガラス瓶51
は、飲料等を収容する一般的なもので、サイズや色等の
特性については多種様々である。一般に、該ガラス瓶5
1は、中身を外光等から保護する目的で濃色に設定され
た濃色瓶と、中身を外部から見やすくするために透明度
が高められた淡色瓶の二種類に大別される。ここで、濃
色瓶の場合、彩度の高い緑色または茶色等の彩色が施さ
れかつ明度が低く設定されているため、彩度をC、明度
をLとすると、前者はC/Lが非常に大(“0.5”以
上)となる。なお、肉眼では一見して略黒色に見える瓶
についても、実際には濃緑色の彩色が施されているた
め、C/Lは非常に大きな値を示す。一方、淡色瓶の場
合はC/Lが非常に小(すなわち“0.1”より小さい
程度)となる。そして、中間値、すなわちC/Lが
“0.1”以上で“0.5”未満のものは極む少数であ
る。本実施例の瓶選別装置は、後述のように、前記濃色
瓶および前記淡色瓶のいずれについても、正確な色選別
を行うよう構成される。また、該ガラス瓶51は、横倒
状態で前記搬送コンベア52上に載置され、前記色認識
部53および前記選別部57に搬送される。なお、搬送
コンベア52上でのガラス瓶51の向きは、瓶の口側お
よび底側のいずれが進行方向に位置してもよい。
Here, the glass bottle 51 handled in this embodiment is
Are generally used for accommodating beverages and the like, and have various characteristics such as size and color. Generally, the glass bottle 5
1 is broadly classified into two types: a dark-colored bottle set to a deep color for the purpose of protecting the contents from external light and the like, and a light-colored bottle whose transparency is enhanced to make the contents easily viewable from the outside. Here, in the case of a dark-colored bottle, since coloring such as green or brown with high saturation is applied and lightness is set low, if the saturation is C and the lightness is L, the former has a very high C / L. (“0.5” or more). It should be noted that C / L shows a very large value even for bottles that appear almost black at first glance to the naked eye because they are actually colored dark green. On the other hand, in the case of a light-colored bottle, the C / L is very small (ie, less than “0.1”). And the intermediate value, that is, C / L of “0.1” or more and less than “0.5” is a very small number. As will be described later, the bottle sorting apparatus according to the present embodiment is configured to perform accurate color sorting for both the dark bottle and the light bottle. The glass bottle 51 is placed on the transport conveyor 52 in a sideways state, and transported to the color recognition unit 53 and the sorting unit 57. Regarding the orientation of the glass bottle 51 on the conveyor 52, either the mouth side or the bottom side of the bottle may be positioned in the traveling direction.

【0042】前記照明装置54は、図2の如く、図示し
ない保持体にて立設支持された複数個の(例えば四個)
の白色蛍光灯71と、該白色蛍光灯71からの光を前記
ガラス瓶51に対して拡散させるガラス製または透光樹
脂製の拡散板72とを備える。
As shown in FIG. 2, a plurality of (for example, four) illuminating devices 54 are erected and supported by a holder (not shown).
And a diffusion plate 72 made of glass or translucent resin for diffusing light from the white fluorescent lamp 71 into the glass bottle 51.

【0043】前記カメラ55は、一般的なCCD(ch
arge coupled device)等が用いら
れ、該カメラ55の撮像領域は、市場に出荷されている
一般的なガラス瓶51の大部分について画像内に収まる
程度に大きく設定されている。
The camera 55 is a general CCD (ch).
The image capturing area of the camera 55 is set so large that most of the general glass bottles 51 shipped to the market can be included in the image.

【0044】前記画像処理部56は、前記黒色瓶回収器
58、前記茶色瓶回収器59、前記濃緑色瓶回収器6
1、前記無色瓶回収器62および前記異種色瓶回収器6
3のうちのいずれに前記ガラス瓶51を回収するかを決
定するもので、図3の如く、前記カメラ55で撮像され
た撮像領域中のm個の所定領域をウィンドウ74とし
て、さらに図4の如く、各ウィンドウ74内でn1×n2
個の検出点Pを設定し、該各検出点Pについて後述の画
像処理を行い、ガラス瓶51の色判別を行う。該ウィン
ドウ74としては、例えば20mm×20mmとされ、
検出点Pは例えば100点程度に設定される。また、デ
ータ取得ラインとしてガラス瓶51の中心線を求める場
合に、前記カメラ55および前記画像処理部56はガラ
ス瓶51を通過する照明装置54からの光の輝度を検出
する輝度検出器として機能する。
The image processing unit 56 includes the black bottle collection unit 58, the brown bottle collection unit 59, the dark green bottle collection unit 6
1. The colorless bottle collecting device 62 and the different color bottle collecting device 6
3 to determine which of the glass bottles 51 to collect the glass bottle 51. As shown in FIG. 3, m predetermined areas in the imaging area imaged by the camera 55 are set as a window 74, and further as shown in FIG. , N 1 × n 2 in each window 74
The number of detection points P is set, image processing described below is performed on each of the detection points P, and the color of the glass bottle 51 is determined. The window 74 is, for example, 20 mm × 20 mm,
The detection point P is set to, for example, about 100 points. When the center line of the glass bottle 51 is obtained as a data acquisition line, the camera 55 and the image processing unit 56 function as a brightness detector that detects the brightness of light from the lighting device 54 passing through the glass bottle 51.

【0045】前記選別部57は、前記制御部64からの
指令信号に基づいて、前記搬送コンベア52で搬送され
てきたガラス瓶51を図示しないハンドリング装置にて
前記黒色瓶回収器58、前記茶色瓶回収器59、前記濃
緑色瓶回収器61、前記無色瓶回収器62および前記異
種色瓶回収器63へ移動させる。
On the basis of a command signal from the control section 64, the sorting section 57 sorts the glass bottle 51 conveyed by the conveyor 52 by a handling device (not shown) into the black bottle collecting device 58 and the brown bottle collecting section. Container 59, the dark green bottle collection device 61, the colorless bottle collection device 62, and the different color bottle collection device 63.

【0046】前記制御部64は、前記画像処理部56で
選別された前記黒色瓶回収器58、前記茶色瓶回収器5
9、前記濃緑色瓶回収器61、前記無色瓶回収器62お
よび前記異種色瓶回収器63のうちのいずれかへ前記ガ
ラス瓶51を回収するよう、前記選別部57のハンドリ
ング装置を駆動制御するものである。
The control unit 64 controls the black bottle collection unit 58 and the brown bottle collection unit 5 selected by the image processing unit 56.
9. A device for driving and controlling a handling device of the sorting unit 57 so as to collect the glass bottle 51 to any one of the dark green bottle collection device 61, the colorless bottle collection device 62, and the different color bottle collection device 63. It is.

【0047】<動作> 1.)全体の動作フロー 上記構成の瓶選別装置の動作を説明する。図5の如く、
まず、ガラス瓶51がカメラ55の撮像領域に入らない
状態で、図2に示した照明装置54を撮像し、照明装置
54の色成分データ(以下、照明データと称す)
(RL,GL,BL)を取り込む(ステップS1)。この
際、複数の検出点について照明データを繰り返し検出す
る(ステップS2およびS3)。そして、画像処理部5
6にて、前記複数の検出点Pについての照明データの平
均値(または和)を演算し記憶しておく。
<Operation> 1.) Overall Operation Flow The operation of the above-configured bottle sorting apparatus will be described. As shown in FIG.
First, in a state where the glass bottle 51 does not enter the imaging region of the camera 55, the illumination device 54 illustrated in FIG. 2 is imaged, and color component data of the illumination device 54 (hereinafter, referred to as illumination data).
( RL , GL , BL ) are fetched (step S1). At this time, illumination data is repeatedly detected for a plurality of detection points (steps S2 and S3). Then, the image processing unit 5
At 6, the average (or sum) of the illumination data for the plurality of detection points P is calculated and stored.

【0048】ここで、サイズの小さいガラス瓶51の場
合は撮像領域内にガラス瓶51を収容することができる
が、サイズの大きいガラス瓶51の場合は、撮像領域内
に完全に収容することができない場合がある。そこで、
ガラス瓶51が搬送された状態が口側が先頭が底部側が
先頭かを判断し(ステップS5)、特に後述する透明瓶
の場合のガラス瓶51の底部位置を確認する。具体的に
は、搬送されてきたガラス瓶51が撮像領域内に少しだ
け入った時点で、係る撮像領域の複数の点についての輝
度データを仮のデータ(センサデータ)として入力する
(ステップS4)。そして、該センサデータから、ガラ
ス瓶51の最も搬送コンベア52に近接する点の縦走査
方向(y方向)の座標を検出し、搬送コンベア52から
のガラス瓶51の離間距離を算出する。該離間距離が予
め設定されたしきい値より大の場合は、撮像領域に写し
出されたガラス瓶51の部分が口側であると判定する
(瓶方向の判定:ステップS5)。そして、搬送コンベ
ア52による搬送を行いつつ、ガラス瓶51の底部が撮
像領域(視野)に入るまで、繰り返して画像取り込みを
行い、縦走査方向(y方向)についての全ての点につい
てその輝度が照明データと等しくなったとき、口側から
底部側まで搬送するのに要した時間を算出する(必要遅
延時間決定:ステップS5)。しかる後、実際に瓶選定
を行うための本データとしての瓶データを入力する(ス
テップS6)。一方、ステップS5にて、搬送コンベア
52からのガラス瓶51の離間距離が予め設定されたし
きい値より小の場合は、撮像領域に写し出されたガラス
瓶51の部分が底部側であると判定する。そして、予め
設定された所定の若干寸法だけ搬送した後、実際に瓶選
定を行うための本データとしての瓶データを入力する
(ステップS6)。そして、有効データの範囲を決定
(ステップS7)した後、ガラス瓶51が黒色、茶色、
濃緑色、無色およびその他の色のうちのいずれであるか
を認識し(ステップS8)、結果を制御部64に出力す
る(ステップS9)。以後、複数のガラス瓶51につい
て同様の処理を行う(ステップS10)。
Here, in the case of a small-sized glass bottle 51, the glass bottle 51 can be accommodated in the imaging region, but in the case of a large-sized glass bottle 51, it cannot be completely accommodated in the imaging region. is there. Therefore,
It is determined whether the state in which the glass bottle 51 is conveyed is that the mouth side is the top and the bottom side is the top (step S5), and in particular, the bottom position of the glass bottle 51 in the case of a transparent bottle described later is confirmed. Specifically, at a point in time when the glass bottle 51 that has been conveyed slightly enters the imaging region, luminance data for a plurality of points in the imaging region is input as temporary data (sensor data) (step S4). Then, from the sensor data, the coordinates of the point of the glass bottle 51 closest to the conveyor 52 in the vertical scanning direction (y direction) are detected, and the separation distance of the glass bottle 51 from the conveyor 52 is calculated. If the separation distance is larger than a preset threshold value, it is determined that the portion of the glass bottle 51 projected in the imaging region is on the mouth side (judgment of the bottle direction: step S5). Then, while being conveyed by the conveyer 52, the image is repeatedly taken in until the bottom of the glass bottle 51 enters the imaging area (field of view), and the luminance of all points in the vertical scanning direction (y direction) is changed to the illumination data. When it becomes equal to, the time required for transport from the mouth side to the bottom side is calculated (determination of required delay time: step S5). Thereafter, the user inputs bottle data as actual data for actually selecting the bottle (step S6). On the other hand, in step S5, if the distance of the glass bottle 51 from the transport conveyor 52 is smaller than a preset threshold value, it is determined that the portion of the glass bottle 51 projected on the imaging area is on the bottom side. Then, after the paper is conveyed by a predetermined size slightly, a bottle data as actual data for actually selecting a bottle is inputted (step S6). Then, after determining the range of valid data (step S7), the glass bottle 51 becomes black, brown,
It is recognized whether the color is dark green, colorless, or another color (step S8), and the result is output to the control unit 64 (step S9). Thereafter, the same processing is performed for the plurality of glass bottles 51 (step S10).

【0049】2.)瓶データの入力フロー [データ取得ラインの割り出し] 次に、図5に示したステップS4の動作を詳述する。ま
ず、瓶データを入力するためのデータ取得ラインを求め
る(図6中のステップS11)。データ取得ラインとし
ては、ベース面としての搬送コンベア52の載置面から
一定の高さのデータをとる方法もあるが、画像の安定性
からはガラス瓶51の中心線上が最も望ましい。ここ
で、図7はガラス瓶51の中心線M−Mを求める動作を
示している。図1の如く、搬送コンベア52にてガラス
瓶51を横倒状態で載置し、ガラス瓶51の背後側に配
置された照明装置54から光を照射しつつ、ガラス瓶5
1の手前側に配置されたカメラ55によって、図7のよ
うにガラス瓶51の中心線M−Mの方向に直交する縦走
査方向(y方向)であって下降する方向に画像走査した
場合、画像処理部56で検出する輝度は、図7中のLg
に示すように、走査線がガラス瓶51に当たっときにガ
ラス瓶51の種類に無関係に常に一度大きく輝度レベル
が低下する。この現象を利用して、輝度レベルが一定の
輝度差(図7中のdR)以上に低下したときのy座標U
をガラス瓶51の上端座標として検出する(上端座標検
出工程)。
2.) Bottle Data Input Flow [Determining Data Acquisition Line] Next, the operation of step S4 shown in FIG. 5 will be described in detail. First, a data acquisition line for inputting bottle data is obtained (step S11 in FIG. 6). As a data acquisition line, there is a method of obtaining data at a fixed height from the mounting surface of the transport conveyor 52 as a base surface. However, from the viewpoint of image stability, the data line is most preferably on the center line of the glass bottle 51. Here, FIG. 7 shows an operation for obtaining the center line MM of the glass bottle 51. As shown in FIG. 1, the glass bottle 51 is placed on the transport conveyor 52 in a state of being laid down, and while being irradiated with light from an illuminating device 54 disposed behind the glass bottle 51,
When the image is scanned in a vertical scanning direction (y direction) orthogonal to the center line MM of the glass bottle 51 and in a descending direction as shown in FIG. The luminance detected by the processing unit 56 is Lg in FIG.
As shown in (1), when the scanning line hits the glass bottle 51, the luminance level is always greatly reduced once regardless of the type of the glass bottle 51. Utilizing this phenomenon, the y coordinate U when the luminance level is reduced to a certain luminance difference (dR in FIG. 7) or more.
Is detected as the upper end coordinates of the glass bottle 51 (upper end coordinate detecting step).

【0050】具体的には、y=0から微少間隔Δyで画
像をとり、色成分(R,G,B)の内の一つあるいはこ
れらの平均値の大きさを調べ、いずれかの互いに隣接す
る検出点のデータ(例えば赤色成分Rの場合はRi,R
i+1)について |Ri+1−Ri|>dR のとき、Ri+1はガラス瓶51の画像にかかっていると
するものである。ここで、上記iはy=0から微少間隔
Δyでカメラ55の撮像領域中で検出点の間欠走査させ
たときの間欠ステップ移動回数である。これによって、
y方向の走査線がガラス瓶51にあたるときのy座標y
jのうちの最小値yjminが前記の値Uとして得られる。
また、搬送コンベア52とガラス瓶51との接触点のy
座標yB=Bをガラス瓶51の下端座標として検出して
おく(下端座標検出工程)。そして、画像処理部56に
て、上端座標と下端座標の中間点の座標{(yjmin+y
B)/2}={(U+B)/2}=Dをガラス瓶51の
中心線座標として算出する(中心線座標算出工程)。こ
のような中心線座標は、図8の如く、ある微少間隔Δx
毎に複数のx方向の点について割り出すことで、中心線
M−Mの位置をデータ取得ラインDLとして正確に求め
る。このように、ガラス瓶51の中心線でデータを取得
することにより、ばらつきの少ないデータ取得を実施で
きる。
More specifically, an image is taken at a minute interval Δy from y = 0, and the magnitude of one of the color components (R, G, B) or their average value is examined, (For example, R i , R for the red component R)
i + 1 ) When | R i + 1 −R i |> dR, it is assumed that R i + 1 is over the image of the glass bottle 51. Here, i is the number of intermittent step movements when the detection point is intermittently scanned in the imaging area of the camera 55 at a minute interval Δy from y = 0. by this,
y coordinate y when the scanning line in the y direction hits the glass bottle 51
The minimum value y jmin of j is obtained as the value U.
In addition, y of the contact point between the conveyor 52 and the glass bottle 51
The coordinates y B = B are detected as the lower end coordinates of the glass bottle 51 (lower end coordinate detection step). Then, in the image processing unit 56, the coordinates {(y jmin + y
B ) / 2} = {(U + B) / 2} = D is calculated as the center line coordinates of the glass bottle 51 (center line coordinate calculation step). Such a center line coordinate is, as shown in FIG.
By determining the points of the plurality of x direction for each accurately determine the position of the center line M-M as the data acquisition line D L. Thus, by acquiring data at the center line of the glass bottle 51, data acquisition with less variation can be performed.

【0051】なお、この処理で入力した画像データは、
ガラス瓶51を一度だけ撮像した後、所定の記憶容量を
有する記憶部にて全ての彩度、明度のデータを記憶する
とともに、後述する色度法に基づいたデータを記憶して
おき、後の選別処理に活用するのが望ましい。
The image data input in this process is
After the glass bottle 51 is imaged only once, all the saturation and lightness data are stored in a storage unit having a predetermined storage capacity, and data based on a chromaticity method described later is stored for later sorting. It is desirable to use it for processing.

【0052】[瓶の濃淡の認定]上述の通り、ガラス瓶
51は濃色瓶と淡色瓶の二種類に大別される。そして、
濃色瓶の場合は色判別が容易であるが、淡色瓶の場合は
取得データに誤差が生じると誤認定してしまう。そこ
で、まず、瓶の濃淡の認定を行い(図6中のステップS
12)、濃色瓶の場合と淡色瓶の場合とで異なる処理方
法により色判別を行う。
[Determination of Shading of Bottle] As described above, the glass bottle 51 is roughly classified into two types, a dark-colored bottle and a light-colored bottle. And
In the case of a dark bottle, it is easy to determine the color, but in the case of a light bottle, it is erroneously recognized that an error occurs in the acquired data. Therefore, first, the density of the bottle is determined (step S in FIG. 6).
12) Color discrimination is performed by a different processing method between a dark bottle and a light bottle.

【0053】ガラス瓶51を透過する照明装置54から
の光をカメラ55で撮像し画像処理部56で画像処理す
る際に、画像中の所定の点の彩度をC、明度をLとする
と、濃色瓶の場合はC/Lが非常に大(“0.5”以
上)となり、淡色瓶の場合はC/Lが非常に小(すなわ
ち“0.1”より小さい程度)となる。そこで、 (C/L)2≦0.008 を満たす場合には淡色瓶と認定し、 (C/L)2>0.008 の場合には濃色瓶と認定する。
When the light from the illuminating device 54 transmitted through the glass bottle 51 is picked up by the camera 55 and image-processed by the image processing unit 56, if the saturation of a predetermined point in the image is C and the lightness is L, In the case of a color bottle, the C / L becomes very large (“0.5” or more), and in the case of a light-colored bottle, the C / L becomes very small (ie, less than “0.1”). Therefore, if (C / L) 2 ≦ 0.008, the bottle is recognized as a light-colored bottle, and if (C / L) 2 > 0.008, the bottle is recognized as a dark-colored bottle.

【0054】ここで、赤色成分をR、青色成分をB、緑
色成分をGとすると、黄色成分Y=(0.3R+0.5
9G+0.11B)となり、これらの値から、上記Cお
よびLを次の数1および数2にて算出できる。
Here, assuming that the red component is R, the blue component is B, and the green component is G, the yellow component Y = (0.3R + 0.5
9G + 0.11B), and from these values, the above C and L can be calculated by the following equations (1) and (2).

【0055】[0055]

【数1】 (Equation 1)

【0056】[0056]

【数2】 (Equation 2)

【0057】なお、ここで取得したデータは、後述する
濃色瓶の色判別処理および淡色瓶の色判別処理において
も用いるようにする。濃色瓶の色成分(R,G,B)
は、色座標空間の原点からいずれかの方向へはっきり離
間した傾向をもっているので、少数のデータで信頼性の
高い判定が可能であるが、淡色瓶の場合は色成分(R,
G,B)データのわずかの差に注目して判定を行わなけ
ればならないので、少数のデータではどうしても信頼性
の高い判定は困難である。そこで、図3の如く、データ
取得線(中心線M−M)上のm個の位置に長方形または
正方形のウィンドウ74を設け、さらに図4の如く、そ
の内のn1×n2の検出点Pについてのデータの和あるい
は平均値をm点の内の各々の点のデータとして処理する
ようにする。m点のデータを平均して一個の値として判
定してもよいし、あるいは、m点の各々について判定
し、多数決的に最終判定するのもよい。このようにする
ことにより、データのばらつきが小さくなり、より信頼
性の高い判定が可能となる。
It should be noted that the data obtained here is also used in the color discrimination processing for dark color bottles and the color discrimination processing for light color bottles described later. Dark bottle color components (R, G, B)
Has a tendency to be clearly separated in any direction from the origin of the color coordinate space, so a highly reliable judgment can be made with a small number of data. However, in the case of a light-colored bottle, the color components (R,
(G, B) Since the judgment must be made while paying attention to a slight difference between the data, it is difficult to make a highly reliable judgment with a small number of data. Therefore, as shown in FIG. 3, the window 74 of rectangular or square formed into m position on the data acquisition line (center line M-M), further as shown in FIG. 4, the detection point of the n 1 × n 2 of which The sum or average value of the data for P is processed as data for each of the m points. The data at m points may be averaged and determined as a single value, or the determination may be performed for each of the m points and finally determined by majority decision. By doing so, the variation in data is reduced, and a more reliable determination can be made.

【0058】該ウィンドウ74の設定位置は、該ウィン
ドウ74の中心線が前述のデータ取得ラインとしてのガ
ラス瓶51の中心線M−Mに一致するように設定する。
すなわち、ウィンドウ74は、中心線M−Mを中心とし
て上下対称に設定されている。
The setting position of the window 74 is set so that the center line of the window 74 coincides with the center line MM of the glass bottle 51 as the above-mentioned data acquisition line.
That is, the window 74 is set vertically symmetrically about the center line MM.

【0059】また、図8の如く、ウィンドウ74の表面
にラベル76が貼付されていたり、汚れの部分(図示せ
ず)があったり、あるいは部分的にハレーションが発生
(図示せず)している場合等には、ウィンドウ74内の
全データの和を単純に計算して判定してしまうと誤判定
の原因となる。かかる事態を防止するためには、ウィン
ドウ74内の大きさの似たデータについて和または平均
をとることが望ましい。本実施例では、ウィンドウ74
内のn1×n2の検出点Pについてデータの平均をとる場
合、雑音成分を除去する目的で、平均から大きく距離の
あるデータを除外する。
Also, as shown in FIG. 8, a label 76 is attached to the surface of the window 74, there is a stained portion (not shown), or halation is partially generated (not shown). In such a case, if the sum of all the data in the window 74 is simply calculated and determined, this may cause an erroneous determination. In order to prevent such a situation, it is desirable to take a sum or an average of data having similar sizes in the window 74. In this embodiment, the window 74
In the case of averaging the data for n 1 × n 2 detection points P, data having a large distance from the average is excluded in order to remove noise components.

【0060】具体的には、まず、ウィンドウ74内の全
検出点Pの各色成分(R,G,B)の平均値を算出し
(第1の平均値算出工程)、ウィンドウ74内の全検出
点Pのうち、第1の平均値算出工程で算出された平均値
と相対的に異なる検出値を示す複数の異値検出点を認識
し(異値認識工程)。該異値認識工程では、平均値と比
較して最も値差の大きな検出点から順番に所定の数(n
s)の検出点を選定して異値検出点とする。その後、ウ
ィンドウ74内の全検出点Pから異値検出点を除外した
残りの検出点の色成分(R,G,B)の平均値を算出す
る(第2の平均値算出工程)。
More specifically, first, the average value of each color component (R, G, B) of all the detection points P in the window 74 is calculated (first average value calculation step). Among the points P, a plurality of different value detection points indicating detection values relatively different from the average value calculated in the first average value calculation step are recognized (different value recognition step). In the different value recognition step, a predetermined number (n) is sequentially set in order from the detection point having the largest value difference as compared with the average value.
s ) Select the detection point and use it as the outlier detection point. Thereafter, the average value of the color components (R, G, B) of the remaining detection points excluding the different value detection points from all the detection points P in the window 74 is calculated (second average value calculation step).

【0061】なお、図8の如く、ガラス瓶51の表面に
ラベル76が貼付される場合がある。そして、通常、ガ
ラス瓶51中においてラベル76の貼付位置は製品によ
って予め解っているため、ラベル76の貼付位置から原
則的にウィンドウ74の設定を除外するよう設定位置を
特定しておく。具体的には、ラベル76の両端のx座標
L1,xL2の間の区間にはウィンドウ74を設定しない
ようにすればよい。
As shown in FIG. 8, a label 76 may be attached to the surface of the glass bottle 51. Usually, since the position of the label 76 in the glass bottle 51 is known in advance by the product, the setting position is specified so that the setting of the window 74 is basically excluded from the position of the label 76. Specifically, the window 74 may not be set in a section between the x coordinates x L1 and x L2 at both ends of the label 76.

【0062】これにより、実測データ中にラベル76の
貼付位置でのデータが混入しても、かかる混入データの
データ数と、正規のデータのデータ数の割合から、混入
データを例外的なデータであると認識できる。
Thus, even if the data at the position where the label 76 is applied is mixed in the actually measured data, the mixed data is exceptional data based on the ratio of the number of mixed data to the number of normal data. We can recognize that there is.

【0063】[濃色瓶の色判別]一般に、濃色瓶につい
ては色度法による判定結果が肉眼による色覚と一致する
ことが多い。そこで、ステップS12において濃色瓶と
認定された場合は、人間の色覚と比較的よく一致してい
る方法である一般的な色度法で色判別を行う(図6中の
ステップS13)。該色度法は、物質の彩色を認識する
方法として一般に知られている周知の色変換法であり、
図9の如く、横軸(x)方向に青色成分(B)から黄色
成分(Y)を減算した値(B−Y)をとり、縦軸(y)
方向に赤色成分(R)から黄色成分(Y)を減算した値
(R−Y)をとった色成分座標を想定し、該色成分座標
において「茶」、「黒」、「緑」、「青」、および「そ
の他」というように領域分けを行う。具体的には、次の
数3の様にしてY、R−Y、およびB−Yを算出する。
[Determination of Color of Dark Color Bottle] In general, the determination result of the chromaticity method for dark color bottles often matches the color perception by the naked eye. Therefore, if it is determined in step S12 that the bottle is a dark-colored bottle, color discrimination is performed by a general chromaticity method, which is a method that relatively matches human color vision (step S13 in FIG. 6). The chromaticity method is a well-known color conversion method generally known as a method for recognizing coloring of a substance,
As shown in FIG. 9, the value (B−Y) obtained by subtracting the yellow component (Y) from the blue component (B) is taken along the horizontal axis (x), and the vertical axis (y) is taken.
Assuming color component coordinates obtained by subtracting the yellow component (Y) from the red component (R) in the direction (RY), "brown", "black", "green", " The area is divided into "blue" and "other". Specifically, Y, RY, and BY are calculated as in the following Expression 3.

【0064】[0064]

【数3】 (Equation 3)

【0065】図9において色判別の基準となる各領域の
境界線は、色成分座標のx軸を0゜とした角度Hの直線
を設定している。ここで、角度Hは次の数4のように表
すことができる。
In FIG. 9, a boundary line of each area serving as a reference for color discrimination is set as a straight line having an angle H with the x-axis of the color component coordinates being 0 °. Here, the angle H can be expressed as in the following Expression 4.

【0066】[0066]

【数4】 (Equation 4)

【0067】すなわち、角度H=14゜から90゜まで
を「その他」、角度H=90゜から160゜までを
「茶」、角度H=160゜から180゜までを「黒」、
角度H=180゜から270゜までを「緑」、角度H=
270゜から300゜までを「その他」、角度H=30
0゜から360゜(=0゜)までおよび0゜から14゜
までを「青」と認定する。
That is, the angle H = 14 ° to 90 ° is “other”, the angle H = 90 ° to 160 ° is “brown”, the angle H = 160 ° to 180 ° is “black”,
Angle H = 180 ° to 270 ° is “green”, angle H =
"Other" from 270 ° to 300 °, angle H = 30
From 0 ° to 360 ° (= 0 °) and from 0 ° to 14 ° are recognized as “blue”.

【0068】なお、かかる各成分のデータ取得において
は、瓶の濃淡の認定処理において取得したデータをその
まま利用すればよい。この場合、取得データは複数にな
るため、その平均値を求める。
In obtaining the data of each component, the data obtained in the process of determining the density of the bottle may be used as it is. In this case, since there are a plurality of acquired data, an average value is obtained.

【0069】[淡色瓶の色判別]一方、淡色瓶の色判別
については、使用する照明によって光線の彩色への影響
が大きいため、上述の色度法による判別結果と肉眼によ
る色覚とが一致しないことが少なくない。
[Color Discrimination of Light-Colored Bottle] On the other hand, regarding the color discrimination of the light-colored bottle, since the illumination used has a large effect on the coloring of light rays, the discrimination result by the chromaticity method described above does not match the color perception by the naked eye. There are many things.

【0070】図9に示した色度法の色成分座標に示され
た黒丸印LSは、照明からの直射光の色度データ(以
下、照明データと称す)を色度法でマッピングしたもの
である。本来、照明データは、原点Oに一致しているの
が望ましいが、現実の照明は無彩色ではなく、幾分かの
彩度を有しているため、実際には理論的な無彩色の状態
を示す原点Oから図9中の右上の方向にずれている。か
かる状態で、例えば極めて透明度の高い淡色瓶の色度認
識を行うときに、照明の彩色の影響でデータが右上方向
にずれてしまい、彩色認識を誤ったり認識不能といった
事態が生じてしまう。そこで、本実施例では、ステップ
S12において淡色瓶と判断された場合に、濃色瓶の場
合と異なる淡色瓶用の座標空間を想定して原点補正しか
つ値の大きさの正規化を行っている(LND法)。
A black circle L S shown in the color component coordinates of the chromaticity method shown in FIG. 9 is obtained by mapping chromaticity data (hereinafter, referred to as illumination data) of direct light from illumination by the chromaticity method. It is. Originally, it is desirable that the illumination data coincides with the origin O. However, since the actual illumination is not an achromatic color but has a certain degree of saturation, it is actually a theoretical achromatic state. Is shifted in the upper right direction in FIG. In such a state, for example, when the chromaticity of a light-colored bottle having extremely high transparency is recognized, the data is shifted to the upper right due to the effect of the coloring of the illumination, and a situation occurs in which the chromaticity recognition is incorrect or unrecognizable. Therefore, in the present embodiment, when it is determined in step S12 that the bottle is a light-colored bottle, the origin is corrected and the magnitude of the value is normalized by assuming a coordinate space for the light-colored bottle different from that for the dark-colored bottle. (LND method).

【0071】まず、瓶データを(R,G,B)とし、図
5中のステップS1で取り込んだ照明データの実測値を
(RL,GL,BL)、nをデータ取得番号とすると、
First, let the bottle data be (R, G, B), the actual measured values of the illumination data taken in step S1 in FIG. 5 be ( RL , GL , BL ), and n be the data acquisition number. ,

【0072】[0072]

【数5】 (Equation 5)

【0073】となる変数Lnを想定し、該Lnを用いて赤
色成分(rn)、青色成分(bn)および緑色成分
(gn)を数6から数8までのようにして算出する。
Assuming a variable L n , the red component (r n ), the blue component (b n ) and the green component (g n ) are calculated using the L n as shown in equations (6) to (8). I do.

【0074】[0074]

【数6】 (Equation 6)

【0075】[0075]

【数7】 (Equation 7)

【0076】[0076]

【数8】 (Equation 8)

【0077】そして、横(x)軸に数9で演算したxn
を、縦(y)軸に数10で演算したynをとって、デー
タをマッピングする。
Then, the x n calculated by the equation 9 is plotted on the horizontal (x) axis.
The vertical (y) taking y n calculated in several 10 to the shaft, to map the data.

【0078】[0078]

【数9】 (Equation 9)

【0079】[0079]

【数10】 (Equation 10)

【0080】図10は、上述のように演算されたデータ
をマッピングする淡色瓶用の座標空間であり、照明デー
タの実測値(RL,GL,BL)が原点Oに一致するよう
座標変換されている。そして、図10に示された各色別
の領域のいずれに含まれるかを判断し、ガラス瓶51の
色判別を行う(図6中のステップS14)。
FIG. 10 is a coordinate space for a light-colored bottle for mapping the data calculated as described above. The coordinates are such that the measured values (R L , G L , B L ) of the illumination data coincide with the origin O. Has been converted. Then, it is determined which region is included in each of the colors shown in FIG. 10, and the color of the glass bottle 51 is determined (step S14 in FIG. 6).

【0081】このように、若干の彩度を有する照明を用
いても、そのことによる誤認識を防止できる。また、実
際の瓶選別作業の直前に実測した各座標位置の照明デー
タを使用し、かかる実測値を用いて座標変換(座標補
正)しているので、瓶選別装置の設置場所を移動したり
室内の照明環境を変更したりした場合でも、かかる環境
の変化後の条件下で座標補正を行うことができ、環境の
変化によるデータへの影響を低減することができる。
As described above, even if illumination having a slight saturation is used, erroneous recognition due to the illumination can be prevented. In addition, since the illumination data at each coordinate position measured immediately before the actual bottle sorting operation is used, and the coordinate conversion (coordinate correction) is performed using the measured values, the installation location of the bottle sorting device may be moved or the room may be moved. Even when the lighting environment is changed, the coordinate correction can be performed under the condition after the change of the environment, and the influence of the change of the environment on the data can be reduced.

【0082】なお、上述した濃色瓶の色成分(R,G,
B)は原点からいずれかの方向へはっきり離間した傾向
をもっているので、少数のデータで信頼性の高い判定が
可能であるが、淡色瓶の場合は色成分(R,G,B)デ
ータのわずかの差に注目して判定を行わなければならな
いので、少数のデータではどうしても信頼性の高い判定
は困難である。そこで、図3の如く、データ取得線(中
心線M−M)上のm個の位置に長方形または正方形のウ
ィンドウ74を設け、さらに図4の如く、その内のn1
×n2のデータの和あるいは平均値をm点の内の各々の
点のデータとして処理するようにしている。m点のデー
タを平均して一個の値として判定とてもよいし、あるい
は、m点の各々について判定し、多数決的に最終判定す
るのもよい。このようにすることにより、データのばら
つきが小さくなり、より信頼性の高い判定が可能とな
る。
The color components (R, G,
B) has a tendency to be clearly separated from the origin in any direction, so that highly reliable judgment is possible with a small number of data. However, in the case of a light-colored bottle, only a small amount of the color component (R, G, B) data is used. It is necessary to make a determination by paying attention to the difference between the two, and it is difficult to make a highly reliable determination with a small number of data. Therefore, as shown in FIG. 3, the window 74 of rectangular or square formed into m position on the data acquisition line (center line M-M), as further in FIG. 4, n 1 of which
The sum or average value of xn 2 data is processed as data of each of the m points. The data of m points may be averaged to determine a single value, which is very good, or the determination may be performed for each of the m points, and the final decision may be made by majority decision. By doing so, the variation in data is reduced, and a more reliable determination can be made.

【0083】なお、かかる各成分のデータ取得において
は、瓶の濃淡の認定処理において取得したデータをその
まま利用すればよい。この場合、取得データは複数にな
るため、その平均値を求める。
In obtaining the data of each component, the data obtained in the process of determining the density of the bottle may be used as it is. In this case, since there are a plurality of acquired data, an average value is obtained.

【0084】[透明瓶の場合の処理]上述の淡色瓶の色
判別(ステップS14)において透明瓶であると判別さ
れたガラス瓶51について再度判定し、透明と誤認識さ
れていた有色瓶を正確に選別しようとするものである。
具体的には、図6中のステップS15で透明瓶である旨
を認識し、透明瓶であると認識した場合は、ガラス瓶5
1の底部を側方から見ることで、照明装置54からの透
過光の方向に最も肉の厚い部分を見て色判別する(BT
法)。
[Processing for a Transparent Bottle] The glass bottle 51 determined to be a transparent bottle in the above-described color determination of a light-colored bottle (step S14) is again determined, and a colored bottle that has been erroneously recognized as transparent is accurately identified. They are going to be sorted out.
Specifically, in step S15 in FIG. 6, it is recognized that the container is a transparent bottle.
1 is viewed from the side, the thickest portion in the direction of the transmitted light from the illumination device 54 is viewed to determine the color (BT).
Law).

【0085】図11のように、ウィンドウBTW(例え
ば10mm×40mmで検出点Pが100点程度)をガ
ラス瓶51の底部BT近辺で前後および上下に移動さ
せ、各検出点Pについて上記数5から数10までの演算
を行い、上述した淡色瓶の色判別処理と同様の座標空間
(図10)上で(xn,yn)を計算する。そして、図5
中のステップS1で取り込んだ照明データ(RL,GL
L)に対応する点からの距離が最も大である一個の点
を選出し、かかる一点での取得データを瓶データとす
る。ここで、図5中のステップS1で取り込んだ照明デ
ータ(RL,GL,BL)を図10の座標空間に変換した
点は常に原点O(0,0)となるので、(y(r-g) 2+x
(b-g) 2)の最も大きな点がデータ取得の最適点であるこ
とが解る。
As shown in FIG. 11, the window BTW (for example, 10 mm × 40 mm and about 100 detection points P) is moved back and forth and up and down near the bottom BT of the glass bottle 51, and each detection point P Calculations up to 10 are performed, and (x n , y n ) is calculated in the same coordinate space (FIG. 10) as in the above-described light-colored bottle color determination processing. And FIG.
Illumination data ( RL , GL ,
One point having the largest distance from the point corresponding to B L ) is selected, and data obtained at this point is used as bottle data. Here, the illumination data captured in step S1 in FIG. 5 (R L, G L, B L) so the point converted in the coordinate space in FIG 10 is always the origin O (0,0), (y ( rg) 2 + x
(bg) It can be seen that the largest point in 2 ) is the optimal point for data acquisition.

【0086】なお、図12中の横軸は画素数を、縦軸は
図10の座標空間上でのx(b−g)およびy(r−
g)の値を示している。このようにして実測したx(b
−g)およびy(r−g)を淡緑色瓶用の座標空間にマ
ッピングした状態の例を図13に示す。図13では、透
明瓶について複数個の異なる瓶を対象とし、各々同一瓶
について10回試行している。また、透明と淡緑色の判
別の境界線としてはy=−0.6x−10で示される直
線を用いている。しかる後、色判別結果を制御部64に
送信する(図6中のステップS17)。
The horizontal axis in FIG. 12 represents the number of pixels, and the vertical axis represents x (b−g) and y (r−r) in the coordinate space of FIG.
g). X (b) measured in this way
FIG. 13 shows an example of a state where −g) and y (r−g) are mapped in the coordinate space for the light green bottle. In FIG. 13, a plurality of different bottles are targeted for the transparent bottle, and the same bottle is tried 10 times each. In addition, a straight line represented by y = −0.6 × −10 is used as a boundary line for discriminating between transparent and light green. Thereafter, the result of the color determination is transmitted to the control unit 64 (step S17 in FIG. 6).

【0087】なお、図13で対象とした淡緑色瓶および
透明瓶と同じ瓶について底部を側方から見る方法(BT
法)ではなく、図6中のLND法にて淡色瓶用座標空間
(淡色瓶の色判別処理参照)にマッピングした図を図1
4に示す。図14では、淡緑色瓶および透明瓶の判別が
極めて困難であるが、図13では両者を明確に分離で
き、極めて淡色である瓶についても色判別を正確に行い
得ることが解る。
A method of viewing the bottom from the side of the same bottle as the light green bottle and the transparent bottle targeted in FIG. 13 (BT
FIG. 1 is a diagram of mapping in the light-colored bottle coordinate space (see the light-colored bottle color discrimination process) by the LND method in FIG.
It is shown in FIG. In FIG. 14, it is extremely difficult to distinguish between a light green bottle and a transparent bottle. However, in FIG. 13, it can be seen that the two can be clearly separated, and the color can be accurately distinguished even for a very light bottle.

【0088】また、一旦淡色瓶用の座標空間に変換した
後は、データ取得の最適点を求めるための距離計算を、
単純な2次関数で計算できるので、極めて速い演算速度
で演算できる。
Further, once converted to the coordinate space for the light-colored bottle, the distance calculation for finding the optimum point for data acquisition is performed as follows:
Since the calculation can be performed with a simple quadratic function, the calculation can be performed at an extremely high calculation speed.

【0089】{変形例} (1)上記実施例では、いずれかの互いに隣接する検出
点のデータ(例えば赤色成分Rの場合はRi,Ri+1)に
ついて |Ri+1−Ri|>dR のとき、Ri+1はガラス瓶51の画像にかかっていると
するものとしていたが、予め取り込んでいる照明データ
L(x,y)を利用して、それと撮像データBbとの差
を所定のしきい値BMAXとを比較し、 |BL(x,y)−Bb(x,y)|>BMAX のときにBb(x,y)を瓶データと判定してもよい。
これにより、同じ座標のデータの差をとることにより、
場所による照明の明るさのばらつきが大きいような場合
でも、ガラス瓶51の境界を安定的に検出できる。
<< Modifications >> (1) In the above embodiment, | R i + 1 −R i for the data of any adjacent detection point (for example, R i , R i + 1 for the red component R) When |> dR, it is assumed that R i + 1 is over the image of the glass bottle 51. However, the illumination data B L (x, y) previously taken in is used, and R i + 1 and the imaging data B b are used. Is compared with a predetermined threshold value B MAX, and when | B L (x, y) −B b (x, y) |> B MAX , B b (x, y) is determined as bin data. May be.
By taking the difference between the data of the same coordinates,
Even when the brightness of the illumination varies greatly depending on the location, the boundary of the glass bottle 51 can be stably detected.

【0090】(2)上記実施例では、透明瓶の場合の処
理の原点距離演算工程において、演算された色成分の検
出値のうち最も大きな値のみを選定していたが、最も大
きな値から順番に一定の数の値群を選定してもよい。
(2) In the above embodiment, only the largest value among the calculated color component detection values is selected in the origin distance calculation step in the process for a transparent bottle. Alternatively, a fixed number of value groups may be selected.

【0091】(3)この発明は、ガラス瓶だけでなく、
透光性樹脂製等の他の瓶についても適用可能である。
(3) The present invention is not limited to a glass bottle,
The present invention is also applicable to other bottles made of a transparent resin.

【0092】(4)上記実施例では、ガラス瓶51の搬
送される状態が口側が先頭か底部側が先頭かについて自
動的に判断していたが、予め手作業にて例えばガラス瓶
51の口側を先頭にして搬送するように決めておけば、
搬送状態の判断工程を省略できる。
(4) In the above embodiment, it is automatically determined whether the glass bottle 51 is conveyed at the head side or at the bottom side at the time of conveyance. If you decide to transport
The step of determining the transport state can be omitted.

【0093】[0093]

【発明の効果】本発明請求項1及び請求項5によると、
瓶の中心線で色判定を行うので、瓶の曲率半径による影
響を受けずに済み、ばらつきの少ないデータ取得を実施
できるという効果がある。
According to the first and fifth aspects of the present invention,
Since the color judgment is performed at the center line of the bottle, the effect of the influence of the radius of curvature of the bottle is eliminated, and there is an effect that data can be acquired with little variation.

【0094】そして、本発明請求項1によると、瓶の上
端の座標検出を行った後は、下端の座標を上端と同様に
して求める必要がないので、極めて短時間でかつ確実に
中心線を求めることができるという効果がある。
[0094] Then, according to the present invention according to claim 1, after the coordinate detection of the upper end of the bottle, since it is not necessary to obtain in the same manner as the upper end coordinate of the lower end, an extremely short period of time and reliably center line The effect is that it can be obtained.

【0095】本発明請求項2によると、瓶の彩度と明度
との比に基づいて濃色瓶であるか淡色瓶であるかを認定
し、夫々異なる選別工程によって色選別を行うので、特
に透明度が高くて色選別が困難な場合に選別精度を高め
ることで正確な選別を行うことができる。特に、本発明
請求項3によると、淡色瓶選別工程の座標変換工程にお
いて、座標原点を照明手段の色成分に一致させているの
で、透明度が極めて高く彩色を判断しにくい場合でも正
確な判断を行い得るという効果がある。
According to the second aspect of the present invention, it is determined whether a bottle is a dark bottle or a light bottle based on the ratio between the saturation and the lightness of the bottle, and color selection is performed by different selection steps. When color separation is difficult due to high transparency, accurate selection can be performed by increasing the selection accuracy. In particular, the invention
According to the third aspect , in the coordinate conversion step of the light-colored bottle selection step, the coordinate origin is matched with the color component of the illumination means, so that accurate determination can be performed even when the transparency is extremely high and it is difficult to determine the coloring. There is.

【0096】本発明請求項4によると、所定領域内の複
数の検出点について所定の色成分を検出し、その和また
は平均値にて瓶選別を行っているので、取得データの信
頼性を飛躍的に高め得るという効果がある。
According to the fourth aspect of the present invention, a predetermined color component is detected at a plurality of detection points within a predetermined area, and bin selection is performed based on the sum or average of the detected color components. This has the effect of being able to be increased in depth.

【0097】本発明請求項5によると、所定領域を、瓶
の中心線について上下対称に設定しているで、瓶の曲率
半径による影響を比較的受けずに済み、ばらつきの少な
いデータ取得を実施できるという効果がある。
According to the fifth aspect of the present invention, since the predetermined area is set up and down symmetrically with respect to the center line of the bottle, it is relatively unaffected by the radius of curvature of the bottle, and data acquisition with little variation is performed. There is an effect that can be.

【0098】本発明請求項6によると、所定領域内の全
検出点の色成分の平均値を算出した後、平均値と大きく
異なる検出値を認識し、これを除外した残りの検出点の
みの平均値を算出して瓶選別を行うので、瓶の表面にラ
ベル等を貼付していたり、汚れの部分があったり、ある
いは部分的にハレーションが発生している場合等に、か
かる部分を除去して瓶選定を行うことができ、取得デー
タの信頼性を飛躍的に高め得る。特に、本発明請求項7
によると、平均値と比較して最も値差の大きな検出点か
ら順番に所定の数の検出点を選定し異値検出点としてい
るので、効率よくデータのばらつきを軽減できるという
効果がある。
According to the sixth aspect of the present invention, after calculating the average value of the color components of all the detection points in the predetermined area, a detection value greatly different from the average value is recognized, and only the remaining detection points excluding this are excluded. Since the bottle is sorted by calculating the average value, if a label or the like is affixed to the surface of the bottle, if there is a dirty part, or if there is partial halation, remove such a part. Bottle selection can be performed, and the reliability of the acquired data can be dramatically improved. In particular, claim 7 of the present invention
According to the method described above, a predetermined number of detection points are selected in order from the detection point having the largest value difference as compared with the average value and are used as the different value detection points, so that there is an effect that data variations can be efficiently reduced.

【0099】本発明請求項8によると、瓶の表面におい
てラベルや汚れ等の付着物ある場合に、かかる部分から
所定領域を予め除外しておくことができるので、第1の
平均値算出工程における平均値が、瓶の表面のみのデー
タからかけ離れるのを防ぐことができ、異値認識工程で
異値を正確に認識することができ、ひいては第2の平均
値算出工程での平均値の算出が正確になるという効果が
ある。
According to the eighth aspect of the present invention, when there is an attached matter such as a label or dirt on the surface of the bottle, a predetermined area can be excluded from such a portion in advance, so that the first average value calculating step can be performed. The average value can be prevented from deviating from the data of only the surface of the bottle, and the different value can be accurately recognized in the different value recognition step, and the average value can be calculated in the second average value calculation step. Has the effect of being accurate.

【0100】本発明請求項9によると、特に淡色瓶の瓶
選別の場合に、瓶の底部側面を通り抜ける光について色
判定を行っていので、照明手段からの透過光の方向に最
も厚い部分について色判定でき、彩度の高い有色瓶とし
て正確に瓶選別できるという効果がある。
According to the ninth aspect of the present invention, in particular, in the case of sorting bottles of light-colored bottles, color judgment is performed on light passing through the bottom side surface of the bottle. There is an effect that the bottle can be determined and the bottle can be accurately selected as a colored bottle having high saturation.

【0101】本発明請求項10によると、所定領域内の
複数の検出点について所定の色成分を検出し、その和ま
たは平均値にて瓶選別を行っているので、取得データの
信頼性を飛躍的に高め得るという効果がある。
According to the tenth aspect of the present invention, a predetermined color component is detected at a plurality of detection points in a predetermined area, and the bin selection is performed based on the sum or the average value thereof. This has the effect of being able to be increased in depth.

【0102】本発明請求項11によると、淡色瓶選別工
程の座標補正工程において、座標原点を照明手段の色成
分に一致させているので、透明度が極めて高く彩色を判
断しにくい場合でも正確な判断を行い得る。また、補正
された座標空間上での各色成分の検出値の原点からの距
離を演算し、このうち最も大きな値、または最も大きな
値から順番に一定の数の値群を選定して色判定を行って
いるので、極めて単純な演算で瓶の透明色に対する違い
を正確に判断できる。したがって、多大な演算処理時間
を要さずに瓶選別できるという効果がある。
According to the eleventh aspect of the present invention, in the coordinate correcting step of the light-colored bottle selecting step, the coordinate origin is made to coincide with the color component of the illumination means. Can be performed. Also, the distance from the origin of the detected value of each color component in the corrected coordinate space is calculated, and a color group is selected by selecting the largest value or a fixed number of values in order from the largest value. Since it is performed, the difference with respect to the transparent color of the bottle can be accurately determined with a very simple calculation. Therefore, there is an effect that bottle sorting can be performed without requiring a large amount of calculation processing time.

【0103】本発明請求項12によると、瓶から外れた
空間中の複数の検出点について照明手段の色成分を検出
し、その和または平均値にて照明手段の色成分の信頼性
を高めているので、淡色瓶用に変換または補正して座標
空間の原点を照明手段の色成分に正確に一致でき、故に
色判定を正確に行い得るという効果がある。
According to the twelfth aspect of the present invention, the color components of the illumination means are detected at a plurality of detection points in the space outside the bottle, and the reliability of the color components of the illumination means is enhanced by the sum or the average value. Therefore, there is an effect that the origin of the coordinate space can be accurately matched with the color component of the illuminating means by conversion or correction for a light-colored bottle, so that color determination can be performed accurately.

【0104】本発明請求項13によると、瓶が所定の透
明度を有する場合のみ、請求項9記載の位置決め工程、
撮像工程および色判定工程を順次実行して色選別を行っ
ているので、特に透明瓶の色選別を正確に行い得るとい
う効果がある。
According to the thirteenth aspect of the present invention, the positioning step according to the ninth aspect , only when the bottle has a predetermined transparency,
Since the color selection is performed by sequentially executing the imaging step and the color determination step, it is particularly advantageous that the color selection of the transparent bottle can be performed accurately.

【0105】本発明請求項14によると、請求項13
透明度判断工程について色判断する際に、座標空間の原
点を照明手段の色成分に一致させているので、透明度の
判断を正確に行うことができるという効果がある。
According to the fourteenth aspect of the present invention, since the origin of the coordinate space is made coincident with the color component of the illuminating means when performing the color determination in the transparency determining step of the thirteenth aspect , the transparency can be accurately determined. There is an effect that can be.

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

【図1】本発明の一実施例の瓶選別装置の全体構成を示
す平面図である。
FIG. 1 is a plan view showing the overall configuration of a bottle sorting apparatus according to one embodiment of the present invention.

【図2】本発明の一実施例の照明装置を示す図である。FIG. 2 is a diagram showing a lighting device according to an embodiment of the present invention.

【図3】本発明の一実施例の画像処理部における画像処
理動作を示す図である。
FIG. 3 is a diagram illustrating an image processing operation in an image processing unit according to an embodiment of the present invention.

【図4】本発明の一実施例の画像処理部における画像処
理動作におけるウィンドウを示す図である。
FIG. 4 is a diagram illustrating a window in an image processing operation in the image processing unit according to one embodiment of the present invention.

【図5】本発明の一実施例の瓶選別方法を示すフローチ
ャートである。
FIG. 5 is a flowchart illustrating a bottle sorting method according to an embodiment of the present invention.

【図6】本発明の一実施例の瓶選別方法を示すフローチ
ャートである。
FIG. 6 is a flowchart showing a bottle sorting method according to one embodiment of the present invention.

【図7】本発明の一実施例において瓶の中心線を求める
方法を示す原理図である。
FIG. 7 is a principle diagram showing a method for obtaining a center line of a bottle in one embodiment of the present invention.

【図8】本発明の一実施例において瓶の中心線上でのデ
ータ取得動作を示す原理図である。
FIG. 8 is a principle diagram showing an operation of acquiring data on the center line of the bottle in one embodiment of the present invention.

【図9】本発明の一実施例の濃色瓶用座標を示す図であ
る。
FIG. 9 is a diagram showing coordinates for a dark-colored bottle according to one embodiment of the present invention.

【図10】本発明の一実施例の淡色瓶用座標を示す図で
ある。
FIG. 10 is a view showing coordinates for a light-colored bottle according to an embodiment of the present invention.

【図11】本発明の一実施例において瓶の底部にて色判
別を行う動作を示す図である。
FIG. 11 is a diagram showing an operation of performing color discrimination at the bottom of the bottle in one embodiment of the present invention.

【図12】本発明の一実施例の瓶の底部での位置と淡色
瓶用座標との関係を示す図である。
FIG. 12 is a diagram showing the relationship between the position at the bottom of the bottle and the coordinates for the light-colored bottle according to one embodiment of the present invention.

【図13】本発明の一実施例においてデータを淡色瓶用
の座標空間にマッピングした状態を示す図である。
FIG. 13 is a diagram showing a state in which data is mapped to a light-colored bottle coordinate space in one embodiment of the present invention.

【図14】本発明の一実施例においてデータを濃色瓶用
の座標空間にマッピングした状態を示す図である。
FIG. 14 is a diagram showing a state where data is mapped to a coordinate space for a dark-colored bottle in one embodiment of the present invention.

【図15】第1の従来例の瓶選別方法を示す図である。FIG. 15 is a diagram showing a bottle sorting method of the first conventional example.

【図16】第2の従来例の瓶選別方法を示す図である。FIG. 16 is a view showing a bottle sorting method according to a second conventional example.

【図17】第3の従来例の瓶選別方法を示す図である。FIG. 17 is a diagram showing a third conventional bottle sorting method.

【図18】第4の従来例の瓶選別方法を示す図である。FIG. 18 is a diagram illustrating a bottle sorting method according to a fourth conventional example.

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

51 ガラス瓶 52 搬送コンベア 53 色認識部 54 照明装置 55 カメラ 56 画像処理部 57 選別部 58 黒色瓶回収器 59 茶色瓶回収器 61 濃緑色瓶回収器 62 無色瓶回収器 63 異種色瓶回収器 64 制御部 65 瓶検出センサ 71 白色蛍光灯 72 拡散板 74,BTW ウィンドウ 76 ラベル BT 底部 51 Glass Bottle 52 Conveyor 53 Color Recognition Unit 54 Illumination Device 55 Camera 56 Image Processing Unit 57 Sorting Unit 58 Black Bottle Collection Unit 59 Brown Bottle Collection Unit 61 Dark Green Bottle Collection Unit 62 Colorless Bottle Collection Unit 63 Different Color Bottle Collection Unit 64 Control Part 65 Bottle detection sensor 71 White fluorescent lamp 72 Diffusion plate 74, BTW window 76 Label BT bottom

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平6−142618(JP,A) 特開 昭57−131040(JP,A) 特開 平6−63514(JP,A) 特開 平6−218335(JP,A) 実開 昭63−94588(JP,U) (58)調査した分野(Int.Cl.7,DB名) B07C 5/342 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-6-142618 (JP, A) JP-A-57-131040 (JP, A) JP-A-6-63514 (JP, A) JP-A-6-63514 218335 (JP, A) Japanese Utility Model 63-94588 (JP, U) (58) Fields investigated (Int. Cl. 7 , DB name) B07C 5/342

Claims (14)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 ガラス製または透光樹脂製等の瓶を色別
に選別する選別方法であって、 前記瓶の両側端線の座標を検出する両側端座標検出工程
と、 前記両側端線の座標の中間線の座標を前記瓶の中心線座
標として算出する中心線座標算出工程と、 該中心線座標算出工程にて算出された前記中心線座標に
て前記瓶を撮像する撮像工程と、 前記撮像工程で撮像された画像を処理して色判定を行う
色判定工程とを備え 前記両側端座標検出工程は、 載置手段にて前記瓶を横倒状態で載置し、前記瓶の背後
側に配置された照明手段から光を照射しつつ、前記瓶の
手前側に配置された輝度検出器を前記瓶の中心軸方向に
直交する縦走査方向に所定間隔で間欠的に下降走査さ
せ、前記輝度検出器で検出した輝度が一定の輝度差以上
に低下したときの前記縦走査方向の座標を前記瓶の上端
座標として検出する上端座標検出工程と、 前記載置手段と前記瓶との接触点の前記縦走査方向にお
ける座標を前記瓶の下端座標として検出する下端座標検
出工程と を含む 瓶選別方法。
1. A sorting method for sorting bottles made of glass or translucent resin by color, comprising: a step of detecting coordinates of both end lines of the bottle; and a coordinate of the both end lines. A center line coordinate calculating step of calculating the coordinates of the intermediate line as the center line coordinates of the bottle; an imaging step of imaging the bottle with the center line coordinates calculated in the center line coordinate calculating step; A color determination step of performing a color determination by processing the image captured in the step , wherein the two-sided end coordinate detection step includes placing the bottle in a lying state by placing means , and placing the bottle behind the bottle.
While irradiating light from the illumination means arranged on the side,
The brightness detector placed on the front side is oriented in the direction of the center axis of the bottle.
Scans intermittently at predetermined intervals in the perpendicular vertical scanning direction.
The brightness detected by the brightness detector is equal to or greater than a certain brightness difference.
The coordinates in the vertical scanning direction when the
An upper end coordinate detection step of detecting as coordinates, and a contact point between the placing means and the bottle in the vertical scanning direction.
Bottom coordinate detection for detecting the coordinates of the bottle as the bottom coordinates of the bottle.
Bottle sorting method and a step out.
【請求項2】 ガラス製または透光樹脂製等の瓶を色別
に選別する選別方法であって、 彩度検出手段にて前記瓶の彩度を検出する彩度検出工程
と、 明度検出手段にて前記瓶の明度を検出する明度検出工程
と、 前記彩度検出工程で検出した彩度と前記明度検出工程で
検出した明度との比を演算する彩度/明度比演算工程
と、 前記彩度/明度比演算工程で演算した前記比の値が一定
の基準値より大きいときに濃色瓶であると認定し、前記
一定の基準値より小さいときに淡色瓶であると認定する
認定工程と、 前記認定工程で濃色瓶であると認定したときに濃色瓶用
の色選別を行う濃色瓶 選別工程と、 前記認定工程で淡色瓶であると認定したときに淡色瓶用
の色選別を行う淡色瓶選別工程と を備える 瓶選別方法。
2. Bottles made of glass or translucent resin are colored.
A saturation detecting step of detecting the saturation of the bottle by a saturation detecting means.
When the brightness detection step of detecting the brightness of the bottle at lightness detection means
And the saturation detected in the saturation detection step and the brightness detection step.
Saturation / brightness ratio calculation process for calculating the ratio with the detected brightness
And the value of the ratio calculated in the saturation / brightness ratio calculation step is constant
When it is larger than the standard value, it is recognized as a dark bottle,
Recognized as a light-colored bottle when it is smaller than a certain standard value
In the certification process, when the bottle is certified as a dark bottle in the certification process,
A dark- colored bottle sorting step of color sorting, and a light-colored bottle when it is identified as a light-colored bottle in the certification step.
Bottle sorting method and a light-colored bottle sorting step of performing the color selection.
【請求項3】 前記濃色瓶選別工程は、 前記瓶の所定の色成分を検出する第1の色成分検出工程
と、 前記色成分検出工程で検出した色成分の検出値を濃色瓶
用の座標空間上に配置する第1のマップ工程と、 該第1のマップ工程で配置された前記濃色瓶用の座標空
間上で、前記色成分検出工程で検出した前記色成分の検
出値の色識別を行う第1の色識別工程と を含み、 前記淡色瓶選別工程は、 前記瓶を照射する照明手段の色成分が座標原点と一致す
るよう、前記濃色瓶用の座標空間を淡色瓶用の座標空間
に変換する座標変換工程と、 前記瓶の所定の色成分を検出する第2の色成分検出工程
と、 前記色成分検出工程で検出した色成分の検出値を前記淡
色瓶用の座標空間上に配置する第2のマップ工程と、 該第2のマップ工程で配置された前記淡色瓶用の座標空
間上で、前記色成分検出工程で検出した前記色成分の検
出値の色識別を行う第2の色識別工程と を含む、請求項
2記載の 瓶選別方法。
3. The dark-colored bottle sorting step includes a first color component detecting step of detecting a predetermined color component of the bottle.
If, concentrated the detected value of the color component detected by the color component detecting step Irobin
A first map step of arranging in the coordinate space for the dark bottle, and a coordinate space for the dark-colored bottle arranged in the first map step .
In the process, the color component detected in the color component detection step is detected.
A first color identification step of performing color identification of the output value , wherein the light-colored bottle selection step is such that the color component of the illuminating means for irradiating the bottle matches the coordinate origin.
As described above, the coordinate space for the dark bottle is changed to the coordinate space for the light bottle.
And a second color component detecting step of detecting a predetermined color component of the bottle.
When the detected value of the color component detected by the color component detecting step pale
A second map step of arranging in the coordinate space for the color bottle; and a coordinate space for the light-color bottle arranged in the second map step .
In the process, the color component detected in the color component detection step is detected.
And a second color identification step of performing the color identification of the detection value, claims
2. The bottle sorting method according to 2 .
【請求項4】 ガラス製または透光樹脂製等の瓶を色別
に選別する選別方法であって、 前記瓶の両側端線の座標を検出する両側端座標検出工程
と、 前記両側端線の座標の中間線の座標を前記瓶の中心線座
標として算出する中心線座標算出工程と、 該中心線座標算出工程にて算出された前記中心線座標に
て前記瓶を撮像する撮像工程と、 前記撮像工程で撮像された画像を処理して色判定を行う
色判定工程と を備え、 前記撮像工程は、前記瓶の前記中心線座標周りの複数の
検出点を含む所定領域を撮像する工程を含み、 前記色判定工程は、 前記所定領域内の前記複数の検出点における所定の色成
分を夫々検出する色成分検出工程と、 前記色成分検出工程で検出された前記所定の色成分の各
々について前記複数の検出点についての和または平均値
を演算する演算工程と を含む 瓶選別方法。
4. Bottles made of glass or translucent resin are classified by color.
A sorting method for sorting, the both side edge coordinate detection step of detecting the coordinates of the two side lines of the bottle
And the center line coordinates of the bottle with the coordinates of the middle line of the coordinates of the both end lines
And the center line coordinate calculation step of calculating as a target, the center line coordinates calculated by the centerline coordinate calculation step
An image capturing step of capturing the bottle by using the image capturing step, and performing a color determination by processing the image captured in the image capturing step.
A color determination step , wherein the imaging step includes a plurality of steps around the center line coordinates of the bottle.
Imaging a predetermined area including a detection point, wherein the color determination step includes a step of: obtaining a predetermined color composition at the plurality of detection points in the predetermined area.
A color component detection step of detecting each of the components, and each of the predetermined color components detected in the color component detection step.
Sum or average of the plurality of detection points for each
Bottle sorting method comprising a calculation step of calculating a.
【請求項5】 前記所定領域は、前記瓶の中心線を中心
として上下対称に設定される、請求項4記載の瓶選別方
法。
5. The predetermined area is centered on a center line of the bottle.
The bottle sorting method according to claim 4, wherein the method is set to be vertically symmetrical .
【請求項6】 前記演算工程は、 前記所定領域内の全検出点の前記所定の色成分の平均値
を算出する第1の平均値算出工程と、 前記所定領域内の全検出点のうち、前記第1の平均値算
出工程で算出された前記平均値と相対的に異なる検出値
を示す複数の異値検出点を認識する異値認識工程と、 前記所定領域内の全検出点から前記異値検出点を除外し
た残りの検出点の前記所定の色成分の平均値を算出する
第2の平均値算出工程と を含む、請求項4記載の 瓶選別
方法。
6. The computing step comprises the step of : calculating an average value of the predetermined color components of all detection points in the predetermined area.
Calculating a first average value, and calculating the first average value among all the detection points in the predetermined area.
Detected value relatively different from the average value calculated in the output step
A different value recognition step of recognizing a plurality of different value detection points, and excluding the different value detection points from all the detection points in the predetermined area.
Calculating the average value of the predetermined color components of the remaining detection points
5. The bottle sorting method according to claim 4, comprising a second average value calculating step .
【請求項7】 前記異値認識工程は、前記平均値と比較
して最も値差の大きな検出点から順番に所定の数の検出
点を選定し前記異値検出点とする工程を含む、請求項6
記載の瓶選別方法。
7. The method according to claim 1, wherein the different value recognition step compares the average value with the average value.
The specified number of detection points in order from the detection point with the largest value difference.
7. The method according to claim 6, further comprising the step of selecting a point to be the outlier detection point.
Bottle sorting method as described .
【請求項8】 請求項6記載の瓶選別方法において、前
記所定領域を前記瓶の表面の付着物から回避するよう特
定する領域特定工程をさらに備える瓶選別方法。
8. The bottle sorting method according to claim 6, wherein
In order to avoid the predetermined area from being attached to the surface of the bottle,
A bottle sorting method further comprising a region specifying step for defining a bottle.
【請求項9】 ガラス製または透光樹脂製等の瓶を色別
に選別する選別方法であって、 前記瓶の手前側に配置された撮像装置の撮像画像中の所
定領域が前記瓶の底部側面に合うよう位置決めする位置
決め工程と、 前記瓶の背後側に配置された照明手段から光を照射しつ
つ、前記撮像装置にて前記瓶の底部側面を前記瓶の手前
側側方から撮像する撮像工程と、 前記撮像工程で撮像された画像を処理して色判定を行う
色判定工程と を備える 瓶選別方法。
9. Bottles made of glass or translucent resin are classified by color.
A method for selecting a position in a captured image of an imaging device disposed in front of the bottle.
Position where the fixed area is positioned to fit the bottom side of the bottle
Deciding step, and irradiating light from illumination means arranged behind the bottle.
In the imaging device, the bottom side surface of the bottle is positioned in front of the bottle.
An image pickup step of picking up an image from the side, and performing color judgment by processing the image picked up in the image pickup step
Bottle sorting method and a color determination step.
【請求項10】 前記色判定工程は、 前記所定領域内の複数の検出点における所定の色成分を
夫々検出する色成分検出工程と、 前記色成分検出工程で検出された前記所定の色成分のう
ち、予め設定された透明データから最も差の大きな値、
または該最も差の大きな値から順番に一定の数の値群を
選定する選定工程と、 該選定工程にて選定された値または値群についてのみ色
判定を行う選定値判定工程と を含む、請求項9記載の
選別方法。
10. The color judging step includes the steps of: determining a predetermined color component at a plurality of detection points in the predetermined area;
A color component detecting step of respectively detecting the predetermined color component detected by the color component detecting step
That is, the value having the largest difference from the preset transparent data,
Alternatively, a fixed number of value groups are sequentially calculated from the value having the largest difference.
Selection process and color only for selected values or values set by the selection step of selecting
The bottle sorting method according to claim 9, further comprising a selection value determining step of performing a determination .
【請求項11】 前記色判定工程は、 色判定に用いる座標空間の原点と、前記瓶を照射する照
明手段の色成分とが一致するよう、前記座標空間を補正
する座標補正工程と、 前記所定領域内の複数の検出点における所定の色成分を
夫々検出する色成分検出工程と、 前記色成分検出工程で検出した前記色成分の検出値を、
前記座標補正工程で補正された座標空間上に配置するマ
ップ工程と、 補正された前記座標空間上での前記各色成分の検出値の
原点からの距離を演算する原点距離演算工程と、 前記原点距離演算工程で演算された前記色成分の検出値
のうち最も大きな値、または該最も大きな値から順番に
一定の数の値群を選定する選定工程と、 該選定工程にて選定された値または値群についてのみ色
判定を行う選定値判定工程と を含む、請求項9記載の
選別方法。
11. The color judging step comprises the steps of: originating a coordinate space used for color judging;
Correct the coordinate space so that the color component of the light means matches
And a predetermined color component at a plurality of detection points in the predetermined area.
The color component detection step to detect each, the detection value of the color component detected in the color component detection step,
A mask to be placed in the coordinate space corrected in the coordinate correction step.
And detecting the detected values of the respective color components in the corrected coordinate space.
An origin distance calculating step of calculating a distance from the origin, and the detected value of the color component calculated in the origin distance calculating step
Of the largest values, or in order from the largest value
A selection process to select a certain number of value groups, and colors only for the values or value groups selected in the selection process
The bottle sorting method according to claim 9, further comprising a selection value determining step of performing a determination .
【請求項12】 前記照明手段の色成分を検出する照明
色検出工程をさらに備え、 該照明色検出工程は、 前記照明手段の色成分を複数の検出点において夫々検出
する工程と、 前記複数の検出点についての前記色成分の和または平均
値を演算する工程と を含む、請求項3または請求項11
記載の 瓶選別方法。
12. An illumination for detecting a color component of said illumination means.
The illumination color detection step further comprises detecting a color component of the illumination means at a plurality of detection points.
And summing or averaging the color components for the plurality of detection points
And a step of calculating a value, according to claim 3 or claim 11
Bottle sorting method as described .
【請求項13】 ガラス製または透光樹脂製等の瓶を色
別に選別する選別方法であって、 前記瓶が所定の透明度を有するか否かを判断する透明度
判断工程を実行し、 前記透明度判断工程で前記所定の透明度を有すると判断
したときに、請求項9記載の位置決め工程、撮像工程お
よび色判定工程を順次実行する ことを特徴とする 瓶選別
方法。
13. A bottle made of glass or translucent resin is colored.
A screening method for separately screening, wherein a transparency is determined to determine whether the bottle has a predetermined transparency.
Executing a judging step, judging to have the predetermined transparency in the transparency judging step
Then, the positioning step, the imaging step and the imaging step according to claim 9 are performed.
Bottle sorting method characterized by sequentially executing and color determination process.
【請求項14】 前記透明度判断工程は、 色判定に用いる座標空間の原点と、前記瓶を照射する照
明手段の色成分とが一致するよう、前記座標空間を補正
する座標補正工程と、 前記瓶の所定の色成分を検出する色成分検出工程と、 前記色成分検出工程で検出した前記色成分の検出値を前
記座標補正工程で補正された座標空間上に配置するマッ
プ工程と、 補正された前記座標空間上で、前記色成分検出工程で検
出した前記色成分の検出値の色識別を行う色識別工程と
を含む、請求項13記載の 瓶選別方法。
14. The transparency judging step includes the steps of: originating a coordinate space used for color judgment;
Correct the coordinate space so that the color component of the light means matches
A coordinate correction step, the color component detecting step of detecting a predetermined color component of the bottle, the detection value of the color component detected by the color component detecting step before
The map to be placed in the coordinate space corrected in the coordinate correction process
In the color component detecting step on the corrected coordinate space.
A color identification step of performing color identification of the detected value of the color component
14. The bottle sorting method according to claim 13, comprising:
JP22168494A 1994-09-16 1994-09-16 Bottle sorting method Expired - Fee Related JP3318809B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22168494A JP3318809B2 (en) 1994-09-16 1994-09-16 Bottle sorting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22168494A JP3318809B2 (en) 1994-09-16 1994-09-16 Bottle sorting method

Publications (2)

Publication Number Publication Date
JPH0884962A JPH0884962A (en) 1996-04-02
JP3318809B2 true JP3318809B2 (en) 2002-08-26

Family

ID=16770662

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22168494A Expired - Fee Related JP3318809B2 (en) 1994-09-16 1994-09-16 Bottle sorting method

Country Status (1)

Country Link
JP (1) JP3318809B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5384231B2 (en) * 2009-07-07 2014-01-08 株式会社プラテクノマテリアル Cap separation device
JP5678503B2 (en) * 2010-07-26 2015-03-04 大日本印刷株式会社 Corner cut inspection device
CN105944973A (en) * 2016-04-25 2016-09-21 江苏齐光玻璃科技有限公司 Glass processing production line

Also Published As

Publication number Publication date
JPH0884962A (en) 1996-04-02

Similar Documents

Publication Publication Date Title
US4736441A (en) Postal material reading apparatus
CN105954301A (en) Bottleneck quality detection method based on machine vision
WO2020103310A1 (en) Mask defect detection device and method
JP3318809B2 (en) Bottle sorting method
CN107742119A (en) A kind of contour of object extraction and coalignment and method based on figure viewed from behind imaging
CN114049556A (en) Garbage classification method integrating SVM (support vector machine) and target detection algorithm
CN107961989A (en) A kind of bottle liquid level detection system and detection method suitable for retaining wine foam in bottle
CN209634835U (en) A kind of Soft Roll detection device for eliminating
CN107671013A (en) Large scale material based on color sorting technology rejects technique
JPH11271240A (en) Inspection method for foreign matter on inner surface of paper cup container
JP5463159B2 (en) Transparent container identification method
JPH05126761A (en) Empty-bottle separating apparatus
JP4083414B2 (en) Judgment method for existence of container accessories
KR101071144B1 (en) Automatic grading method of lumber
JPH09178558A (en) Method and apparatus for determining color of object
CN112452803B (en) Butterfly orchid classification equipment and method
JP3095577B2 (en) Bottle color recognition method
JP3561988B2 (en) Bottle color identification method
JPH08247962A (en) Defect detection method and apparatus for color filter and defect detection method and apparatus for panel display
JPH0612344B2 (en) Inspection device for scuffing bottles
JP3371915B2 (en) Appearance inspection method
JPH06218335A (en) Device for identifying color of bottle
JP2000153239A (en) Device for discriminating glass bottles
CN116051864A (en) Intelligent recognition system based on packaging image
JPH03120450A (en) Rush inspecting device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080621

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090621

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees