Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2712962B2 - Work identification method and device - Google Patents
[go: Go Back, main page]

JP2712962B2 - Work identification method and device - Google Patents

Work identification method and device

Info

Publication number
JP2712962B2
JP2712962B2 JP32215191A JP32215191A JP2712962B2 JP 2712962 B2 JP2712962 B2 JP 2712962B2 JP 32215191 A JP32215191 A JP 32215191A JP 32215191 A JP32215191 A JP 32215191A JP 2712962 B2 JP2712962 B2 JP 2712962B2
Authority
JP
Japan
Prior art keywords
value
feature
work
values
identification
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 - Lifetime
Application number
JP32215191A
Other languages
Japanese (ja)
Other versions
JPH05154744A (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.)
Daikin Industries Ltd
Original Assignee
Daikin 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 Daikin Industries Ltd filed Critical Daikin Industries Ltd
Priority to JP32215191A priority Critical patent/JP2712962B2/en
Publication of JPH05154744A publication Critical patent/JPH05154744A/en
Application granted granted Critical
Publication of JP2712962B2 publication Critical patent/JP2712962B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Machine Tool Sensing Apparatuses (AREA)
  • Automatic Assembly (AREA)
  • Multi-Process Working Machines And Systems (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 method and an apparatus for identifying a workpiece, and more particularly, to a method for identifying whether or not a workpiece is a target workpiece based on an image of the workpiece obtained by an image detection unit. And its device.

【0002】[0002]

【従来の技術】従来から所望のワークであるか否かを識
別するために特徴値を用いることが提案されている。こ
こで、一般的に採用される可能性がある特徴値として、
穴数、角数、面積、総面積、最大穴面積、最小穴面積、
周囲長、最大半径、最小半径、慣性楕円長軸長、慣性楕
円短軸長、外接長方形幅および外接長方形長さの13種
類の特徴値が知られている。したがって、これら13種
類の特徴値に対する分散を得て所望のワークか否かを識
別することによりかなり高精度のワーク識別を達成でき
る。
2. Description of the Related Art Conventionally, it has been proposed to use a feature value to identify whether or not a work is a desired work. Here, as feature values that may be generally adopted,
Number of holes, number of corners, area, total area, maximum hole area, minimum hole area,
Thirteen types of characteristic values are known, such as a perimeter, a maximum radius, a minimum radius, a major axis length of an inertia ellipse, a minor axis length of an inertia ellipse, a circumscribed rectangle width, and a circumscribed rectangle length. Therefore, by obtaining variances for these 13 types of characteristic values and identifying whether or not the work is a desired work, it is possible to achieve a work identification with extremely high accuracy.

【0003】[0003]

【発明が解決しようとする課題】しかし、13種類の特
徴値のそれぞれについて分散を得ることは処理負荷の著
しい増加を招いてしまい、ワーク識別のための所要時間
が大巾に増加してしまうという不都合がある。したがっ
て、タクトタイムの関係上、処理速度の向上が強く要求
される部品組付け分野には到底実用化できないことにな
る。
However, obtaining the variance for each of the 13 types of characteristic values causes a significant increase in the processing load, and the time required for work identification is greatly increased. There are inconveniences. Therefore, due to the tact time, it cannot be put to practical use in the field of component assembling where improvement in processing speed is strongly required.

【0004】このような不都合を解消するために、本件
発明者らは、13種類の特徴値に対して均等な重み付け
を行なうのではなく、予め優先的に選択されるべき特徴
値を設定しておき、設定された特徴値に基づくワークの
識別精度が高くない場合にのみ、抽出された特徴値の中
からワーク識別精度が最大の特徴値を選択し、選択され
た特徴値の平均値および分散に基づいて上下限閾値を得
て対象ワークの識別を行なう方法を考え、実際にワーク
の識別を行なった。この結果、ワーク識別のための所要
時間を大巾に短縮でき、しかもかなり高いワーク識別精
度を達成できた。しかし、この方法においては離散値特
徴値と連続量特徴値とを全く区分することなく同様に取
扱っているのであるから、離散値特徴値は殆どの場合に
ワーク識別用特徴値として選択されないという不都合が
ある。即ち、離散値特徴値は一般に裾が広い分布を示す
のであるが、例えば、離散値特徴値としての穴の数に着
目すれば、穴の数がn個のワークとn+1個のワークと
は高精度の識別が可能である。しかし、裾が広い分布を
示す傾向にあるので分散比が最大の特徴値を選択する場
合に離散値特徴値が選択される可能性が著しく低くなっ
てしまい、代わりに、高精度の識別を達成しにくい連続
量特徴値が選択されてしまう。この結果、ワーク識別の
ための閾値の算出、ワーク識別精度の高低判別等の負荷
が大きくなり、ワーク識別のための所要時間が長くなっ
てしまう。
In order to solve such inconveniences, the present inventors set the feature values to be preferentially selected in advance, instead of equally weighting the 13 types of feature values. Only when the work identification accuracy based on the set feature values is not high, the feature value with the highest work identification accuracy is selected from the extracted feature values, and the average value and variance of the selected feature values are selected. Based on the above, a method of obtaining the upper and lower thresholds and identifying the target work was considered, and the work was actually identified. As a result, the time required for work identification can be greatly reduced, and a considerably high work identification accuracy can be achieved. However, in this method, since the discrete value feature value and the continuous amount feature value are handled in the same way without any distinction, the discrete value feature value is not selected as the workpiece identification feature value in most cases. There is. That is, the discrete feature value generally shows a distribution with a wide tail. For example, if attention is paid to the number of holes as the discrete feature value, the work having the number of holes n and the work of n + 1 are high. Accuracy can be identified. However, since the tail tends to show a wide distribution, when selecting the feature value with the largest variance ratio, the possibility of selecting a discrete-valued feature value is significantly reduced, and instead, high-precision identification is achieved. A continuous quantity feature value that is difficult to select is selected. As a result, loads such as calculation of a threshold value for work identification and discrimination of the accuracy of work identification become large, and the time required for work identification becomes long.

【0005】[0005]

【発明の目的】この発明は上記の問題点に鑑みてなされ
たものであり、ワーク識別のための演算負荷を低減で
き、しかも、ワーク識別のための特徴値の数を少なくで
きるとともに、ワーク識別精度を著しく向上できるワー
ク識別方法およびその装置を提供することを目的として
いる。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problems, and can reduce a calculation load for work identification, reduce the number of characteristic values for work identification, and reduce work identification. It is an object of the present invention to provide a work identification method and a device capable of significantly improving accuracy.

【0006】[0006]

【課題を解決するための手段】上記の目的を達成するた
めの、請求項1のワーク識別方法は、複数個の教示用ワ
ークの特徴値を抽出し、抽出した特徴値のうち、面積値
および周囲の輪郭を規定する値を選択して、教示用ワー
クの種類に対応する面積値および周囲の輪郭を規定する
値によるワークの識別精度が高い場合に面積値および周
囲の輪郭を規定する値をワーク識別用特徴値として選択
し、面積値および周囲の輪郭を規定する値によるワーク
の識別精度が低い場合に、離散値特徴値の中からワーク
識別精度が最大である特徴値を選択し、離散値特徴値の
中から選択された特徴値の平均値および分散に基づいて
得られたワーク毎の上下限閾値に基づく範囲がオーバー
ラップしているか否かを判別し、オーバーラップしてい
る場合に、連続量特徴値の中からワーク識別精度が最大
である特徴値を選択し、最終的に選択された特徴値およ
び対応する上下限閾値に基づいて対象ワークを識別する
方法である。
According to a first aspect of the present invention, there is provided a work identification method for extracting a feature value of a plurality of teaching works, and extracting an area value and a feature value of the extracted feature values. Select a value that defines the surrounding contour, and set the area value and the value that defines the surrounding contour when the accuracy of identifying the workpiece by the area value corresponding to the type of the teaching work and the value that defines the surrounding contour is high. If the work value is selected as the work identification feature value and the work identification accuracy based on the area value and the value defining the surrounding contour is low, the feature value with the highest work identification accuracy is selected from the discrete value feature values, and the discrete value is selected. It is determined whether or not the ranges based on the upper and lower thresholds for each work obtained based on the average value and the variance of the feature values selected from the value feature values are overlapped. , Continuous quantity Work identification accuracy among Chochi selects a feature value is the largest, is a method for identifying a target work based on the lower threshold finally selected feature values and corresponding.

【0007】請求項2のワーク識別装置は、複数個の教
示用ワークの特徴値を抽出する特徴値抽出手段と、抽出
した特徴値のうち、面積値および周囲の輪郭を規定する
値を選択する第1選択手段と、教示用ワークの種類に対
応する面積値および周囲の輪郭を規定する値によるワー
クの識別精度が高いか否かを判別する第1判別手段と、
面積値および周囲の輪郭を規定する値によるワークの識
別精度が高い場合に面積値および周囲の輪郭を規定する
値をワーク識別用特徴値として選択し、面積値および周
囲の輪郭を規定する値によるワークの識別精度が低い場
合に、離散値特徴値の中からワーク識別精度が最大であ
る特徴値を選択する第2選択手段と、離散値特徴値の中
から選択された特徴値の平均値および分散に基づいて得
られたワーク毎の上下限閾値に基づく範囲がオーバーラ
ップしているか否かを判別する第2判別手段と、オーバ
ーラップしている場合に、連続量特徴値の中からワーク
識別精度が最大である特徴値を選択する第3選択手段
と、最終的に選択された特徴値および対応する上下限閾
値に基づいて対象ワークを識別する対象ワーク識別手段
とを含んでいる。
According to a second aspect of the present invention, there is provided a work identification apparatus for extracting a characteristic value of a plurality of teaching works, and selecting a value defining an area value and a surrounding contour from the extracted characteristic values. First selecting means, and first determining means for determining whether or not the identification accuracy of the work based on the area value corresponding to the type of the teaching work and the value defining the surrounding contour is high;
When the identification accuracy of the workpiece by the value defining the area value and the surrounding contour is high, the value defining the area value and the surrounding contour is selected as the feature value for work identification, and the value defining the area value and the surrounding contour is selected. A second selecting unit that selects a feature value having the maximum work identification accuracy from the discrete value feature values when the work identification accuracy is low; an average value of the feature values selected from the discrete value feature values; Second determining means for determining whether or not ranges based on upper and lower thresholds for each work obtained based on the variance overlap each other; The method includes a third selection unit that selects a feature value having the highest accuracy, and a target work identification unit that identifies a target work based on the finally selected feature value and the corresponding upper and lower thresholds.

【0008】[0008]

【作用】請求項1のワーク識別方法であれば、複数個の
教示用ワークの特徴値の中から面積値および周囲の輪郭
を規定する値を先ずワーク識別用特徴値として選択し、
面積値および周囲の輪郭を規定する値が十分なワーク識
別精度を達成できるものであればこれらの特徴値をワー
ク識別用特徴値としてワークの識別を高精度に達成でき
る。また、面積値および周囲の輪郭を規定する値が十分
なワーク識別精度を達成できないものである場合には、
離散値特徴値の中から分散比が最大の特徴値を選択し、
選択された離散値特徴値が十分なワーク識別精度を達成
できるものであれば選択された離散値特徴値をワーク識
別用特徴値としてワークの識別を高精度に達成できる。
さらに、選択された離散値特徴値が十分なワーク識別精
度を達成できないものである場合には、連続量特徴値の
中から分散比が最大の特徴値を選択し、選択された連続
量特徴値をワーク識別用特徴値としてワークの識別を行
なう。
According to the work identification method of the present invention, a value defining an area value and a peripheral contour is first selected from a plurality of feature values of a teaching work as feature values for work identification.
If the area value and the value defining the surrounding contour can achieve a sufficient work identification accuracy, the work identification can be achieved with high accuracy using these characteristic values as work identification characteristic values. Also, if the area value and the value defining the surrounding contour cannot achieve sufficient workpiece identification accuracy,
Select the feature value with the largest variance ratio from the discrete value feature values,
If the selected discrete value feature value can achieve sufficient work identification accuracy, the selected discrete value feature value can be used as a work identification feature value to achieve high-precision work identification.
Further, if the selected discrete value feature value does not achieve sufficient work identification accuracy, the feature value having the largest dispersion ratio is selected from the continuous value feature values, and the selected continuous value feature value is selected. Is used as a feature value for work identification.

【0009】したがって、連続量特徴値の中から分散比
が最大の特徴値を選択しなければならない可能性が著し
く低くなり、ワーク識別のための処理負荷が低減でき
る。また、ワーク識別の有効性を判別しやすい離散値特
徴値を連続量特徴値に優先して選択するのであるから、
ワークの識別精度をも高めることができ、またワーク識
別のために必要な特徴値の種類を大巾に低減できる。
Therefore, the possibility that the feature value having the largest variance ratio must be selected from the continuous-quantity feature values is significantly reduced, and the processing load for work identification can be reduced. In addition, since discrete value feature values that are easy to determine the validity of work identification are selected in preference to continuous quantity feature values,
The accuracy of work identification can also be improved, and the types of characteristic values required for work identification can be significantly reduced.

【0010】請求項2のワーク識別装置であれば、複数
個の教示用ワークの特徴値を特徴値抽出手段により抽出
し、抽出した特徴値のうち、面積値および周囲の輪郭を
規定する値を第1選択手段により選択して、それぞれに
よるワークの識別精度が高いか否かを第1判別手段によ
り判別する。この判別の結果、ワークの識別精度が高く
ない場合には、離散値特徴値の中から分散比が最大の特
徴値を第2選択手段により選択して、ワークの識別精度
が高いか否かを第2判別手段により判別する。この判別
の結果、ワークの識別精度が高くない場合には、連続量
特徴値の中から分散比が最大の特徴値を第3選択手段に
より選択する。また、上記判別の結果、ワークの識別精
度が高い場合には該当する特徴値を用い、そうでない場
合には選択された連続量特徴値を用いて対象ワーク識別
手段により対象ワークを高精度に識別できる。
According to the work identification device of the present invention, the characteristic values of a plurality of teaching works are extracted by the characteristic value extracting means, and among the extracted characteristic values, the values defining the area value and the surrounding contour are extracted. Selection is made by the first selection means, and whether or not the identification accuracy of each of the workpieces is high is determined by the first determination means. If the discrimination accuracy of the work is not high as a result of the discrimination, the feature value having the largest variance ratio is selected from the discrete value feature values by the second selecting means, and whether or not the discrimination accuracy of the work is high is determined. The determination is made by the second determination means. As a result of this determination, if the work identification accuracy is not high, the feature value having the largest variance ratio is selected from the continuous quantity feature values by the third selecting means. In addition, as a result of the above determination, when the identification accuracy of the work is high, the corresponding feature value is used. Otherwise, the target work is highly accurately identified by the target work identification unit using the selected continuous amount feature value. it can.

【0011】以上の各特徴値のうち、離散値特徴値は、
連続量特徴値と異なり、平均値および分散に基づく上下
限閾値の設定が不要であり、単に例えば最大値および最
小値を選択するだけでよく、上下限閾値の設定のための
処理を著しく簡素化できるとともに、設定された上下限
閾値に基づくワーク識別の有効性の判別処理も著しく簡
素化できるのであるから全体として処理を簡素化でき、
しかもワークを識別するための特徴値を少なくできると
ともに十分な精度のワーク識別を達成できる。
[0011] Of the above feature values, the discrete value feature value is:
Unlike the continuous feature value, it is not necessary to set upper and lower thresholds based on the average value and the variance. For example, it is only necessary to select the maximum value and the minimum value, and the process for setting the upper and lower threshold values is significantly simplified. And the process of determining the validity of the work identification based on the set upper and lower thresholds can be significantly simplified, so that the overall process can be simplified,
Moreover, the feature value for identifying the work can be reduced, and the work can be identified with sufficient accuracy.

【0012】[0012]

【実施例】以下、実施例を示す添付図面によって詳細に
説明する。図7はこの発明のワーク識別方法が適用され
る部品供給システムの構成を概略的に示す図であり、ボ
ウルフィーダ11の部品搬送トラック11aの一部を透
光性のある板11bで構成しているとともに、透光性の
ある板11bの上方および下方にそれぞれ照明装置12
a,12bを配置している。そして、透光性のある板1
1bと下方の照明装置12bとの間にハーフミラー12
cを配置し、透光性のある板11bからの光(照明装置
12aによるワークのシルエット光および照明装置12
bによるワークの反射光)がハーフミラー12cにより
反射されてCCDカメラ等からなる画像検出部13に受
光されるように画像検出部13を配置している。さら
に、ワークを把持するための吸着ヘッド14aが産業用
ロボット14に装着されている。また、画像検出部13
から取り込まれた画像信号を入力として2値化処理等を
行なう画像処理部13aと、画像処理部13aからの処
理結果信号を受け取って産業用ロボット14に動作指令
を与えるロボット・コントローラ14bとを有してい
る。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. FIG. 7 is a diagram schematically showing the configuration of a component supply system to which the work identification method of the present invention is applied, in which a part of the component transport track 11a of the bowl feeder 11 is formed of a translucent plate 11b. Lighting devices 12 above and below the translucent plate 11b, respectively.
a and 12b are arranged. And the plate 1 with translucency
1b and a lower mirror 12b between the lower lighting device 12b.
c, the light from the translucent plate 11b (the silhouette light of the work by the illumination device 12a and the illumination device 12
The image detection unit 13 is arranged so that the reflected light of the work by the light source b is reflected by the half mirror 12c and received by the image detection unit 13 including a CCD camera or the like. Further, a suction head 14a for gripping a work is mounted on the industrial robot 14. Further, the image detecting unit 13
An image processing unit 13a that performs a binarization process or the like by using an image signal captured from the computer as an input, and a robot controller 14b that receives a processing result signal from the image processing unit 13a and gives an operation command to the industrial robot 14. doing.

【0013】図1から図3はこの発明のワーク識別方法
の一実施例を示すフローチャートであり、図1が識別対
象ワークの教示処理を、図2がワーク識別のための特徴
値選択処理を、図3が選択された特徴値に基づくワーク
識別処理をそれぞれ示している。図1のフローチャート
においては、ステップSP11においてサンプル数n個
の同一種類のワークの画像をCCDカメラ等の画像検出
部13により取込み、ステップSP12において取込み
画像に基づいて該当するワークの特徴値を抽出し、ステ
ップSP13において、抽出された特徴値のうち、面積
値および外接長方形長さを選択し、ステップSP14に
おいてそれぞれの分散(例えば、標準偏差σ)および平
均値xavを算出し、ステップSP15においてTHu
p=xav+kσおよびTHdn=xav−kσ(但
し、kは1〜3程度の定数)の演算を行なって面積値、
外接長方形長さの上限閾値THupおよび下限閾値TH
dnを算出する。
FIGS. 1 to 3 are flowcharts showing an embodiment of a work identification method according to the present invention. FIG. 1 shows a teaching process for a work to be identified, FIG. 2 shows a feature value selection process for work identification, and FIG. FIG. 3 shows a work identification process based on the selected feature value. In the flowchart of FIG. 1, in step SP11, an image of a work of the same type of n samples is captured by an image detection unit 13 such as a CCD camera, and in step SP12, a feature value of the corresponding work is extracted based on the captured image. In step SP13, the area value and the circumscribed rectangle length are selected from the extracted characteristic values, and the respective variances (for example, standard deviation σ) and the average value xav are calculated in step SP14, and the THu is calculated in step SP15.
p = xav + kσ and THdn = xav-kσ (where k is a constant of about 1 to 3) to calculate the area value,
Upper and lower thresholds THup and TH of the circumscribed rectangle length
dn is calculated.

【0014】尚、ステップSP11からステップSP1
5までの一連の処理はワークの種類毎に行なう。図2お
よび図3のフローチャートにおいては、ステップSP2
1において2種類のワークに関して各特徴値の上下限閾
値THup,THdnに基づいて定まる範囲同士がオー
バーラップしているか否かを判別し、オーバーラップし
ていると判別された場合には、ステップSP22におい
て2種類のワークに関して各離散値特徴値(例えば、穴
の数、表裏識別の場合における画像数等)の分散比F0
を算出し、ステップSP23において分散比が最大であ
る離散値特徴値を選択し、ステップSP24において選
択した離散値特徴値の最大値および最小値をそれぞれ上
限閾値THupおよび下限閾値THdnとして選択し、
ステップSP25において上下限閾値の範囲同士がオー
バーラップしているか否かを判別し、オーバーラップし
ていると判別された場合にはステップSP26において
全ての離散値特徴値に対する処理が終了したか否かを判
別し、終了していなければステップSP27において分
散比が次に大きい離散値特徴値を選択し、再びステップ
SP24の処理を行なう。ステップSP26において全
ての離散値特徴値に対する処理が終了したと判別された
場合には、ステップSP28において2種類のワークに
関して各連続量特徴値の分散比F0を算出し、ステップ
SP29において分散比が最大である連続量特徴値を選
択し、ステップSP30において選択した連続量特徴値
の分散および平均値に基づいて上限閾値THupおよび
下限閾値THdnを算出し、ステップSP31において
上下限閾値の範囲同士がオーバーラップしているか否か
を判別し、オーバーラップしていると判別された場合に
はステップSP32において一方の範囲が他方の範囲に
完全に含まれているか否かを判別する。そして、ステッ
プSP21,SP25またはSP31においてオーバー
ラップしていないと判別された場合には、ステップSP
33において該当する特徴値をワーク識別用特徴値とし
て採用するとともに、対応する上下限閾値を採用する。
また、ステップSP32において一方の範囲が他方の範
囲に完全には含まれていないと判別された場合にはステ
ップSP34においてオーバーラップを解消すべく上下
限閾値を変更するとともに該当する連続量特徴値をワー
ク識別用特徴値として採用する。逆に、ステップSP3
2において一方の範囲が他方の範囲に完全に含まれてい
ると判別された場合には、ステップSP35において上
下限閾値の幅を狭くして再教示を行なうべきことを指示
する。
Note that, from step SP11 to step SP1
A series of processing up to 5 is performed for each type of work. In the flowcharts of FIGS. 2 and 3, step SP2
In 1, it is determined whether or not ranges determined based on the upper and lower threshold values THup and THdn of the respective feature values for the two types of workpieces overlap each other. If it is determined that the ranges overlap, step SP22 is performed. In the two types of works, the dispersion ratio F0 of discrete feature values (for example, the number of holes, the number of images in the case of front / back discrimination, etc.)
Is selected in step SP23, and the maximum value and the minimum value of the discrete value characteristic values selected in step SP24 are selected as the upper threshold value THup and the lower threshold value THdn, respectively.
At step SP25, it is determined whether or not the ranges of the upper and lower thresholds overlap each other. If it is determined that the ranges overlap, at step SP26, whether or not the processing for all the discrete value feature values has been completed Is determined, and if not completed, the discrete value feature value having the next largest dispersion ratio is selected in step SP27, and the process in step SP24 is performed again. If it is determined in step SP26 that the processing for all the discrete value feature values has been completed, the variance ratio F0 of each continuous quantity feature value is calculated for the two types of workpieces in step SP28, and the variance ratio is maximized in step SP29. Is selected, the upper threshold THup and the lower threshold THdn are calculated based on the variance and the average of the continuous quantity feature values selected in step SP30, and the ranges of the upper and lower thresholds overlap in step SP31. It is determined whether or not they overlap, and if it is determined that they overlap, it is determined in step SP32 whether or not one range is completely included in the other range. If it is determined in step SP21, SP25 or SP31 that they do not overlap, step SP21
At 33, the corresponding feature value is adopted as the work identification feature value, and the corresponding upper and lower thresholds are adopted.
If it is determined in step SP32 that one range is not completely included in the other range, the upper and lower thresholds are changed in step SP34 to eliminate the overlap, and the corresponding continuous amount feature value is changed. It is adopted as a feature value for work identification. Conversely, step SP3
If it is determined in step 2 that one range is completely included in the other range, in step SP35, it is instructed that the width of the upper and lower thresholds should be reduced and re-teaching should be performed.

【0015】図4のフローチャートにおいては、ステッ
プSP41において識別対象となるワークの画像等を取
込み、ステップSP42において、図2の処理により選
択された特徴値を得る。そして、ステップSP43にお
いて面積値が上限閾値と下限閾値との間の値であるか否
かを判別し、ステップSP44において外接長方形長さ
が上限閾値と下限閾値との間の値であるか否かを判別
し、ステップSP43およびステップSP44の双方に
おいて上限閾値と下限閾値との間であると判別された場
合には、ステップSP45において面積、外接長方形長
さ以外に上限閾値および下限閾値が算出されている特徴
値があるか否かを判別し、特徴値があると判別された場
合にはステップSP46において該当する特徴値が算出
されている上限閾値と下限閾値との間の値であるか否か
を判別する。
In the flowchart of FIG. 4, in step SP41, an image of the work to be identified is fetched, and in step SP42, the characteristic value selected by the processing of FIG. 2 is obtained. Then, in a step SP43, it is determined whether or not the area value is a value between the upper threshold and the lower threshold, and in a step SP44, it is determined whether or not the circumscribed rectangle length is a value between the upper threshold and the lower threshold. If it is determined in both steps SP43 and SP44 that the value is between the upper limit threshold and the lower limit threshold, the upper limit threshold and the lower limit threshold are calculated in addition to the area and the circumscribed rectangle length in step SP45. It is determined whether or not there is a characteristic value present, and if it is determined that there is a characteristic value, it is determined in step SP46 whether or not the corresponding characteristic value is a value between the calculated upper threshold and lower threshold. Is determined.

【0016】そして、ステップSP45において特徴値
がないと判別された場合、またはステップSP46にお
いて該当する特徴値が算出されている上限閾値と下限閾
値との間の値であると判別された場合にはステップSP
47において該当するワークを処理対象ワークであると
識別する。逆に、ステップSP43、ステップSP44
またはステップSP46において上限閾値と下限閾値と
の間の値でないと判別された場合には、ステップSP4
8において該当するワークを外乱ワークであると識別す
る。
If it is determined in step SP45 that there is no characteristic value, or if it is determined in step SP46 that the corresponding characteristic value is a value between the calculated upper and lower thresholds, Step SP
At 47, the corresponding work is identified as the work to be processed. Conversely, step SP43, step SP44
Alternatively, if it is determined in step SP46 that the value is not between the upper threshold and the lower threshold, the process proceeds to step SP4
In step 8, the corresponding work is identified as a disturbance work.

【0017】さらに詳細に説明すると、図1のフローチ
ャートに基づく処理を行なった結果、ワークAおよびワ
ークBについてそれぞれ図5(A)に示す分布が得られ
た場合には、両分布がオーバーラップする部分が全く存
在していないのであるから、例えばワークAについて図
5に示すように上限閾値THupおよび下限閾値THd
nを設定し、図3のフローチャートにおいて処理対象と
なるワークについて得た特徴値が上限閾値THupおよ
び下限閾値THdnの範囲内であるか否かを判別するこ
とにより高精度のワーク識別を達成できる。逆に、図1
のフローチャートに基づく処理を行なった結果ワークA
およびワークBについてそれぞれ得られた分布に基づい
て算出される上下限閾値の範囲同士がオーバーラップし
ている場合には、分散比F0が最大のものから順に離散
値特徴値が選択される。そして、選択された特徴値に基
づいて図4(B)に示すように上限閾値THupと下限
閾値THdnとの範囲同士がオーバーラップしていなけ
れば該当する離散値特徴値および対応する上下限閾値を
用いて高精度にワークの識別を達成できる。逆に、何れ
の離散値特徴値においても上下限閾値の範囲同士がオー
バーラップしている場合には、分散比F0が最大の連続
量特徴値が選択され、選択された連続量特徴値に対応す
る上下限閾値の範囲同士がオーバーラップしていなけれ
ば該当する連続量特徴値および対応する上下限閾値を用
いて高精度にワークの識別を行なうことができる。逆
に、選択された連続量特徴値に関して図4(C)に示す
分布が得られた場合には、両分布に基づいて定まる上下
限閾値THup,THdnの範囲同士のオーバーラップ
部分がかなり存在しているのであるから図3のフローチ
ャートの処理を行なっても高精度のワーク識別を達成で
きない。したがって、この場合には、オーバーラップを
解消すべく上下限閾値を変更することにより(図4
(C)中一点鎖線参照)高精度のワーク識別を達成でき
る。但し、一方の範囲が完全に他方の範囲に含まれてい
る場合には、ワークの識別は不可能であるから、上下限
閾値の幅を狭くして再度教示を行なって与えられた条件
の中で最適の特徴値および対応する上下限閾値を得る。
More specifically, when the distribution shown in FIG. 5A is obtained for the work A and the work B as a result of performing the processing based on the flowchart of FIG. 1, both distributions overlap. Since no part exists, for example, for work A, as shown in FIG. 5, the upper threshold THup and the lower threshold THd
By setting n and determining whether or not the characteristic value obtained for the work to be processed in the flowchart of FIG. 3 is within the range of the upper threshold value THup and the lower threshold value THdn, highly accurate workpiece identification can be achieved. Conversely, FIG.
Work A resulting from processing based on the flowchart of
When the ranges of the upper and lower thresholds calculated based on the distributions obtained for the work B and the work B overlap each other, the discrete value feature values are selected in order from the one with the largest dispersion ratio F0. Then, based on the selected feature value, if the range between the upper threshold value THup and the lower threshold value THdn does not overlap as shown in FIG. 4B, the corresponding discrete value feature value and the corresponding upper and lower threshold value are set. It is possible to achieve high-precision workpiece identification by using this. Conversely, if the ranges of the upper and lower thresholds overlap in any of the discrete value feature values, the continuous amount feature value with the largest variance ratio F0 is selected and corresponds to the selected continuous amount feature value. If the ranges of the upper and lower thresholds do not overlap with each other, the work can be identified with high accuracy using the corresponding continuous amount feature value and the corresponding upper and lower thresholds. Conversely, when the distribution shown in FIG. 4C is obtained for the selected continuous amount feature value, there is a considerable overlap between the ranges of the upper and lower threshold values THup and THdn determined based on both distributions. Therefore, even if the processing of the flowchart of FIG. 3 is performed, highly accurate workpiece identification cannot be achieved. Therefore, in this case, the upper and lower thresholds are changed to eliminate the overlap (FIG. 4).
(C) Refer to the dashed line in the middle) A highly accurate work identification can be achieved. However, if one range is completely included in the other range, it is impossible to identify the work. Therefore, the width of the upper and lower thresholds is reduced, and teaching is performed again. To obtain the optimal feature values and the corresponding upper and lower thresholds.

【0018】即ち、ワークを識別対象とする場合には、
文字、図形等と異なり、面積値および外接長方形長さに
基づいて高精度のワーク識別を達成できる場合が多いの
であるから、図2のフローチャートに基づいて別の特徴
値を選択する必要がない場合が多く、一部のワークにつ
いてのみ図2のフローチャートに基づいて別の特徴値を
選択すればよいのであるから全体として処理負荷を低減
できる。また、図2の処理においても、上下限閾値の設
定が著しく容易であるとともに、ワーク識別の有効性の
判別が著しく容易な離散値特徴値を優先的に選択するの
であるから、面積値および外接長方形長さによっては十
分なワーク識別精度が達成できない場合であっても、離
散値特徴値に基づいて十分なワークの識別を達成できる
場合がかなり多く(例えばシルエット画像に基づく異種
ワークの判別、反射画像に基づくワークの表裏の判別
等)、この結果、全体として処理負荷を一層低減でき
る。しかも連続量特徴値の分布に基づいて定まる上下限
閾値THup,THdnの範囲同士のオーバーラップ部
分が存在する場合にオーバーラップを解消すべく上下限
閾値を変更する(図4(C)中一点鎖線参照)ことによ
り高精度のワーク識別を達成できる。
That is, when a work is to be identified,
Unlike characters, figures, and the like, it is often possible to achieve high-precision work identification based on the area value and the circumscribed rectangle length. Therefore, there is no need to select another feature value based on the flowchart of FIG. Therefore, another characteristic value may be selected for only some of the workpieces based on the flowchart of FIG. 2, so that the processing load can be reduced as a whole. Also in the processing of FIG. 2, the upper and lower thresholds are extremely easy to set, and the discrete value feature value that is extremely easy to determine the validity of the work identification is preferentially selected. Even if sufficient work identification accuracy cannot be achieved depending on the length of the rectangle, it is quite often possible to achieve sufficient work identification based on discrete value feature values (for example, discrimination of different types of work based on silhouette images, reflection, etc.). As a result, the processing load can be further reduced as a whole. In addition, when there is an overlap between the ranges of the upper and lower threshold values THup and THdn determined based on the distribution of the continuous amount feature value, the upper and lower threshold values are changed to eliminate the overlap (the one-dot chain line in FIG. 4C). ) Can achieve highly accurate workpiece identification.

【0019】尚、ワークの種類が3種類以上である場合
には、ワーク相互について図2のフローチャートの処理
を行なえばよく、また、外接長方形長さに代えて外接長
方形幅、慣性楕円長軸長、または慣性楕円短軸長を用い
ることが可能であり、その他、この発明の要旨を変更し
ない範囲内において種々の設計変更を施すことが可能で
ある。
When there are three or more types of workpieces, the processing of the flowchart of FIG. 2 may be performed for each workpiece. In addition, instead of the circumscribed rectangle length, the circumscribed rectangle width and the inertia ellipse major axis length are used. Or the inertia elliptical minor axis length can be used, and various other design changes can be made without departing from the scope of the present invention.

【0020】[0020]

【実施例2】図6はこの発明のワーク識別装置の一実施
例を示すブロック図であり、ワークの画像を取込む画像
検出部13と、画像検出部13による画像取込みを所定
回数だけ反復させる第1反復制御部2と、取込んだ画像
に基づいて特徴値を抽出する特徴値抽出部1aと、全て
のワークについて、抽出された特徴値のうち、面積値お
よび外接長方形長さを選択して標準偏差σおよび平均値
xavを算出する第1算出部3と、第1算出部3により
算出された標準偏差σおよび平均値xavに基づいてT
Hup=xav+kσおよびTHdn=xav−kσ
(但し、kは1〜3程度の定数)の演算を行なって上限
閾値THupおよび下限閾値THdnを算出する第1閾
値算出部3aと、面積値および外接長方形長さに対応す
る上下限閾値の範囲同士がオーバーラップするか否かに
基づいてこれらが特徴値として適当であるか否かを判別
する特徴値判別部4と、面積値、外接長方形長さが特徴
値として不適当であると判別されたことを条件として分
散比が最大のものから順に離散値特徴値を選択する離散
値特徴値選択部5と、選択された離散値特徴値に関する
最大値および最小値を上限閾値THupおよび下限閾値
THdnとして採用する閾値設定部5aと、採用された
上下限閾値の範囲同士がオーバーラップするか否かに基
づいてこれらが特徴値として適当であるか否かを判別す
る離散値特徴値判別部6と、オーバーラップしているこ
とを示す離散値特徴値判別部6からの判別結果に応答し
て、選択されていない離散値特徴値が存在していること
を条件として離散値特徴値選択部5を反復動作させる反
復制御部6aと、選択されていない離散値特徴値が存在
していないことを示す反復制御部6aからの制御信号に
応答して分散比が最大の連続量特徴値を選択する連続量
特徴値選択部7と、選択された連続量特徴値標準偏差σ
および平均値xavを算出する第2算出部7aと、第2
算出部7aにより算出された標準偏差σおよび平均値x
avに基づいてTHup=xav+kσおよびTHdn
=xav−kσの演算を行なって上限閾値THupおよ
び下限閾値THdnを算出する第2閾値算出部7bと、
面積値および外接長方形長さに対応する上下限閾値の範
囲同士がオーバーラップするか否かに基づいてこれらが
特徴値として適当であるか否かを判別する連続量特徴値
判別部8と、第2閾値算出部7bにより算出された上下
限閾値の範囲同士がオーバーラップしている場合にオー
バーラップを解消させるべく上下限閾値を変更する閾値
変更部8aと、画像検出部1により取込んだ画像に基づ
いて面積値、外接長方形長さおよび該当する場合には選
択された特徴値を得て出力する特徴値出力部9と、出力
された特徴値と第1閾値算出部3a、第2閾値算出部7
bにより算出された上限閾値、下限閾値、閾値設定部5
aにより採用された上限閾値、下限閾値または閾値変更
部8aにより変更された上限閾値、下限閾値のうち、該
当する上限閾値、下限閾値との大小を判別して処理対象
ワークであることを示す信号または外乱ワークであるこ
とを示す信号を出力するワーク判別部10とを有してい
る。また、第1算出部3と第2算出部7aとを兼用する
とともに、第1閾値算出部3aと第2閾値算出部7bと
を兼用してもよいことはもちろんである。
[Embodiment 2] FIG. 6 is a block diagram showing an embodiment of a work identifying apparatus according to the present invention, wherein an image detecting section 13 for taking an image of a work and image taking by the image detecting section 13 are repeated a predetermined number of times. A first iteration control unit 2, a feature value extraction unit 1a for extracting a feature value based on a captured image, and selecting an area value and a circumscribed rectangle length from among the extracted feature values for all works. A first calculator 3 for calculating the standard deviation σ and the average value xav by using the standard deviation σ and the average value xav calculated by the first calculator 3.
Hup = xav + kσ and THdn = xav−kσ
(Where k is a constant of about 1 to 3), a first threshold value calculation unit 3a that calculates an upper threshold value THup and a lower threshold value THdn, and a range of upper and lower threshold values corresponding to the area value and the circumscribed rectangle length. A feature value determining unit 4 for determining whether or not these are appropriate as feature values based on whether or not they overlap each other; and determining that the area value and the circumscribed rectangle length are inappropriate as feature values. A discrete value feature value selecting unit 5 for selecting discrete value feature values in order from the one with the largest variance ratio on the condition that the dispersion ratio is the largest, and setting the maximum value and the minimum value related to the selected discrete value feature value to an upper threshold THup and a lower threshold THdn. And a discrete value feature value determination unit that determines whether or not the adopted upper and lower threshold ranges are appropriate as feature values based on whether or not the ranges of the adopted upper and lower threshold values overlap each other. In response to the discrimination result from the discrete value feature value discriminating unit 6 indicating that they overlap, the discrete value feature value selection is performed on condition that there is a discrete value feature value that is not selected. A repetition control unit 6a for repetitively operating the unit 5, and a continuous amount feature value having a maximum dispersion ratio in response to a control signal from the repetition control unit 6a indicating that there is no unselected discrete value feature value. The continuous quantity feature value selection unit 7 to be selected, and the selected continuous quantity feature value standard deviation σ
And a second calculating unit 7a for calculating an average value xav,
The standard deviation σ and the average value x calculated by the calculation unit 7a
THup = xav + kσ and THdn based on av
= Xav-kσ, to calculate an upper threshold THup and a lower threshold THdn, a second threshold calculator 7b,
A continuity feature value discriminating unit 8 for discriminating whether or not ranges of upper and lower threshold values corresponding to the area value and the circumscribed rectangle length are appropriate as feature values based on whether or not the ranges overlap; When the ranges of the upper and lower thresholds calculated by the two threshold calculator 7b overlap each other, a threshold changing unit 8a that changes the upper and lower thresholds to eliminate the overlap, and an image captured by the image detector 1. A feature value output unit 9 that obtains and outputs an area value, a circumscribed rectangle length, and a selected feature value when applicable, a feature value output unit, a first threshold value calculation unit 3a, and a second threshold value calculation Part 7
Upper threshold, lower threshold, threshold setting unit 5 calculated by b
A signal indicating that the workpiece is a processing target by determining the magnitude of the upper threshold, the lower threshold, or the upper threshold and the lower threshold changed by the threshold changing unit 8a. Or a work discriminating unit 10 that outputs a signal indicating that the work is a disturbance work. Further, it is needless to say that the first calculation unit 3 and the second calculation unit 7a may be used together, and the first threshold value calculation unit 3a and the second threshold value calculation unit 7b may be used together.

【0021】上記構成のワーク識別装置の作用は次のと
おりである。先ず、ワークの種類毎にサンプル数n個の
ワークの画像を画像検出部13により取込み、第1算出
部3によりワークの種類毎に面積値および外接長方形長
さのそれぞれについて標準偏差σおよび平均値xavを
算出し、算出された標準偏差σおよび平均値xavに基
づいて第1閾値算出部3aにおいてTHup=xav+
kσおよびTHdn=xav−kσの演算を行なって上
限閾値THupおよび下限閾値THdnを算出する。そ
して、特徴値判別部4により面積値および外接長方形長
さが特徴値として適当であるか否か、即ち、上下限閾値
の範囲同士がオーバーラップしているか否かを判別す
る。
The operation of the work identification device having the above configuration is as follows. First, an image of a work with n samples is fetched by the image detecting unit 13 for each type of work, and the standard calculation unit 3 calculates the standard deviation σ and the average value of the area value and the circumscribed rectangle length for each work type by the first calculating unit 3. xav is calculated, and based on the calculated standard deviation σ and the average value xav, the first threshold value calculation unit 3a calculates THup = xav +
The calculation of kσ and THdn = xav−kσ is performed to calculate the upper threshold THup and the lower threshold THdn. Then, the characteristic value determination unit 4 determines whether the area value and the circumscribed rectangle length are appropriate as the characteristic values, that is, whether the ranges of the upper and lower thresholds overlap each other.

【0022】特徴値判別部4により面積値および外接長
方形長さが特徴値として適当であると判別された場合に
は、画像検出部13により識別対象ワークの画像を取込
み、特徴値出力部9により面積値および外接長方形長さ
を得て出力し、ワーク判別部10において、特徴値出力
部9から出力された特徴値と第1閾値算出部3aにより
算出された上限閾値、下限閾値との大小を判別して処理
対象ワークであることを示す信号または外乱ワークであ
ることを示す信号を出力する。即ち、出力された両特徴
値がそれぞれ該当する上限閾値と下限閾値との範囲内で
ある場合に識別対象ワークが処理対象ワークであること
を示す信号を出力し、少なくとも一方の特徴値が上記範
囲外である場合に識別対象ワークが外乱ワークであるこ
とを示す信号を出力する。
When the characteristic value discriminating unit 4 determines that the area value and the circumscribed rectangle length are appropriate as the characteristic values, the image detecting unit 13 captures an image of the work to be identified, and the characteristic value output unit 9 outputs. The area value and the circumscribed rectangle length are obtained and output, and the work discriminating unit 10 calculates the magnitude of the characteristic value output from the characteristic value output unit 9 and the upper and lower thresholds calculated by the first threshold calculator 3a. A signal indicating that it is a work to be processed or a disturbance work is output. That is, when both output feature values are within the range of the corresponding upper threshold value and lower limit threshold value, a signal indicating that the work to be identified is the work to be processed is output, and at least one feature value is within the above range. If it is outside, a signal indicating that the identification target work is a disturbance work is output.

【0023】逆に、特徴値判別部4により面積値および
外接長方形長さが特徴値として適当でないと判別された
場合には、離散値特徴値選択部5により分散比が最大で
ある離散値特徴値を選択し、閾値設定部5aにより、選
択された離散値特徴値に関する最大値および最小値を上
限閾値THupおよび下限閾値THdnとして採用す
し、離散値特徴値判別部6により、採用された上下限閾
値の範囲同士がオーバーラップするか否かに基づいてこ
れらが特徴値として適当であるか否かを判別する。そし
て、離散値特徴値判別部6によりオーバーラップしてい
ないと判別された場合には、選択されていない離散値特
徴値が存在していることを条件として反復制御部6aに
より離散値特徴値選択部5を反復動作させる。即ち、分
散比が高い離散値特徴値から順に上下限閾値の範囲同士
がオーバーラップしているか否かを判別する。この反復
動作の結果、全ての離散値特徴値に基づく処理が行なわ
れ、何れの離散値特徴値に関しても上下限閾値の範囲同
士がオーバーラップすると判別された場合には、連続量
特徴値選択部7により分散比が最大の連続量特徴値を選
択する。そして、第2算出部7aにより、選択された連
続量特徴値に関する標準偏差σおよび平均値xavを算
出し、第2閾値算出部7bにより、第2算出部7aによ
り算出された標準偏差σおよび平均値xavに基づいて
THup=xav+kσおよびTHdn=xav−kσ
の演算を行なって上限閾値THupおよび下限閾値TH
dnを算出する。そして、第2閾値算出部7bにより算
出された上下限閾値の範囲同士がオーバーラップしてい
るか否かを連続量特徴値判別部8により判別し、第2閾
値算出部7bにより算出された上下限閾値の範囲同士が
オーバーラップしていると判別された場合には、閾値変
更部8aによりオーバーラップを解消すべく上下限閾値
を変更する。その後、画像検出部1により識別対象ワー
クの画像を取込み、特徴値出力部9により面積値、外接
長方形長さおよび離散値特徴値選択部5、連続量特徴値
選択部7において選択された特徴値のうち該当する特徴
値を得て出力し、ワーク判別部10において、特徴値出
力部9から出力された特徴値と特徴値に対応して算出さ
れた上限閾値、下限閾値または閾値補正部8aにより変
更された上限閾値、下限閾値との大小を判別して処理対
象ワークであることを示す信号または外乱ワークである
ことを示す信号を出力する。即ち、出力された全ての特
徴値がそれぞれ該当する上限閾値と下限閾値との範囲内
である場合に識別対象ワークが処理対象ワークであるこ
とを示す信号を出力し、少なくとも一つの特徴値が上記
範囲外である場合に識別対象ワークが外乱ワークである
ことを示す信号を出力する。
Conversely, when the characteristic value discriminating unit 4 determines that the area value and the circumscribed rectangle length are not appropriate as the characteristic values, the discrete value characteristic value selecting unit 5 selects the discrete value characteristic having the maximum dispersion ratio. The threshold value setting unit 5a selects a maximum value and a minimum value of the selected discrete value feature value as an upper threshold value THup and a lower threshold value THdn, and the upper and lower limits adopted by the discrete value feature value determination unit 6. It is determined whether or not these threshold values are appropriate as feature values based on whether or not the threshold ranges overlap. If the discrete value feature value discriminating unit 6 determines that there is no overlap, the iterative control unit 6a selects a discrete value feature value on the condition that there exists a discrete value feature value that is not selected. The unit 5 is repeatedly operated. That is, it is determined whether or not the ranges of the upper and lower thresholds overlap in order from the discrete value feature value having the highest variance ratio. As a result of this iterative operation, the processing based on all the discrete value feature values is performed, and if it is determined that the ranges of the upper and lower thresholds overlap with each other, the continuous amount feature value selection unit 7, the continuous quantity feature value having the maximum dispersion ratio is selected. Then, the second calculator 7a calculates the standard deviation σ and the average value xav of the selected continuous amount feature value, and the second threshold calculator 7b calculates the standard deviation σ and the average calculated by the second calculator 7a. THup = xav + kσ and THdn = xav-kσ based on the value xav
To calculate the upper threshold THup and the lower threshold TH
dn is calculated. Then, the continuous amount feature value discriminating unit 8 determines whether or not the ranges of the upper and lower thresholds calculated by the second threshold calculating unit 7b overlap each other, and the upper and lower limits calculated by the second threshold calculating unit 7b. When it is determined that the ranges of the thresholds overlap each other, the threshold changing unit 8a changes the upper and lower thresholds to eliminate the overlap. Thereafter, the image of the work to be identified is captured by the image detection unit 1, and the feature value output unit 9 selects the area value, the circumscribed rectangle length and the discrete value feature value selection unit 5, and the feature value selected by the continuous quantity feature value selection unit 7. In the work discriminating unit 10, the characteristic value output from the characteristic value output unit 9 and the upper threshold value, the lower threshold value calculated in correspondence with the characteristic value, or the threshold value correcting unit 8a. A difference between the changed upper and lower thresholds is determined, and a signal indicating the work to be processed or a signal indicating the disturbance work is output. That is, when all the output feature values are within the range of the corresponding upper threshold and lower threshold, respectively, a signal indicating that the work to be identified is the work to be processed is output, and at least one feature value is equal to or smaller than the above. When it is out of the range, a signal indicating that the identification target work is a disturbance work is output.

【0024】尚、特には示していないが、連続量特徴値
に基づく上下限閾値の範囲の一方が他方の範囲に完全に
含まれる場合には閾値を変更しても有効な閾値を得るこ
とができないのであるから、上下限閾値の間隔を狭く設
定して再び上記一連の処理を行なえばよい。
Although not particularly shown, when one of the upper and lower threshold ranges based on the continuous amount feature value is completely included in the other range, it is possible to obtain an effective threshold even if the threshold is changed. Since this is not possible, the interval between the upper and lower threshold values may be set narrower and the above series of processing may be performed again.

【0025】[0025]

【発明の効果】以上のように請求項1の発明は、面積
値、周囲の輪郭を規定する値以外の連続量特徴値がワー
ク識別用特徴値として選択される頻度を大巾に低減で
き、この結果、ワーク識別のための処理負荷を著しく低
減でき、しかも識別対象となる多種類のワークについて
高精度のワーク識別を達成できるという特有の効果を奏
する。
As described above, according to the first aspect of the present invention, it is possible to greatly reduce the frequency of selecting a continuous quantity feature value other than an area value and a value defining a peripheral contour as a work identification feature value. As a result, it is possible to remarkably reduce the processing load for work identification, and to achieve a unique effect that high-precision work identification can be achieved for various types of works to be identified.

【0026】請求項2の発明も、面積値、周囲の輪郭を
規定する値以外の連続量特徴値がワーク識別用特徴値と
して選択される頻度を大巾に低減でき、この結果、ワー
ク識別のための処理負荷を著しく低減でき、しかも識別
対象となる多種類のワークについて高精度のワーク識別
を達成できるという特有の効果を奏する。
According to the second aspect of the present invention, it is possible to greatly reduce the frequency of selecting a continuous quantity feature value other than an area value and a value defining a surrounding contour as a work identification feature value. In this case, the processing load required for the identification can be significantly reduced, and a high-precision workpiece identification can be achieved for various types of workpieces to be identified.

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

【図1】この発明のワーク識別方法のうち、識別対象ワ
ークの教示処理を示すフローチャートである。
FIG. 1 is a flowchart showing a process of teaching a work to be identified in the work identification method of the present invention.

【図2】この発明のワーク識別方法のうち、ワーク識別
のための特徴値選択処理の要部を示すフローチャートで
ある。
FIG. 2 is a flowchart showing a main part of a feature value selection process for work identification in the work identification method of the present invention.

【図3】この発明のワーク識別方法のうち、選択された
特徴値に基づくワーク識別処理を示すフローチャートで
ある。
FIG. 3 is a flowchart showing a work identification process based on a selected characteristic value in the work identification method of the present invention.

【図4】ワーク識別のための特徴値選択処理の残部を示
すフローチャートである。
FIG. 4 is a flowchart illustrating a remaining part of a feature value selection process for work identification;

【図5】特徴値に対応する上下限閾値がそのまま適用可
能な場合とそのままでは適用できない場合とを概略的に
示す図である。
FIG. 5 is a diagram schematically showing a case where upper and lower thresholds corresponding to a feature value can be applied as they are and a case where they cannot be applied as they are.

【図6】特徴値の上限閾値および下限閾値を示す概略図
である。
FIG. 6 is a schematic diagram showing an upper threshold and a lower threshold of a feature value.

【図7】この発明のワーク識別装置の一実施例を示すブ
ロック図である。
FIG. 7 is a block diagram showing one embodiment of the work identification device of the present invention.

【図8】この発明のワーク識別方法が適用される部品供
給システムの構成を概略的に示す図である。
FIG. 8 is a diagram schematically showing a configuration of a component supply system to which the work identification method of the present invention is applied.

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

1a 特徴値抽出部 3 第1算出部 3a 第1
閾値算出部 4 特徴値判別部 5 離散値特徴値選択部 5a
閾値設定部 6 離散値特徴値判別部 7 連続量特徴値選択部
7a 第2算出部 9 特徴値出力部 10 ワーク判別部
1a Feature value extraction unit 3 First calculation unit 3a First
Threshold calculator 4 Feature value discriminator 5 Discrete value feature value selector 5a
Threshold setting unit 6 Discrete value feature value discriminating unit 7 Continuous amount feature value selecting unit
7a Second calculation unit 9 Feature value output unit 10 Work discrimination unit

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G01B 11/00 G01B 11/00 Z 11/26 11/26 H ──────────────────────────────────────────────────続 き Continuation of the front page (51) Int.Cl. 6 Identification number Agency reference number FI Technical display location G01B 11/00 G01B 11/00 Z 11/26 11/26 H

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数個の教示用ワークの特徴値を抽出
し、抽出した特徴値のうち、面積値および周囲の輪郭を
規定する値を選択して、教示用ワークの種類に対応する
面積値および周囲の輪郭を規定する値によるワークの識
別精度が高い場合に面積値および周囲の輪郭を規定する
値をワーク識別用特徴値として選択し、面積値および周
囲の輪郭を規定する値によるワークの識別精度が低い場
合に、離散値特徴値の中からワーク識別精度が最大であ
る特徴値を選択し、離散値特徴値の中から選択された特
徴値の平均値および分散に基づいて得られたワーク毎の
上下限閾値に基づく範囲がオーバーラップしているか否
かを判別し、オーバーラップしている場合に、連続量特
徴値の中からワーク識別精度が最大である特徴値を選択
し、最終的に選択された特徴値および対応する上下限閾
値に基づいて対象ワークを識別することを特徴とするワ
ーク識別方法。
1. A feature value of a plurality of teaching works is extracted, and an area value and a value defining a surrounding contour are selected from the extracted feature values, and an area value corresponding to a type of the teaching work is selected. In the case where the identification accuracy of the workpiece by the value defining the surrounding contour is high, the area value and the value defining the surrounding contour are selected as the feature value for workpiece identification, and the work value is determined by the value defining the area value and the surrounding contour. When the identification accuracy is low, a feature value with the highest workpiece identification accuracy is selected from the discrete value feature values, and the feature value is obtained based on the average value and variance of the feature values selected from the discrete value feature values. It is determined whether or not the ranges based on the upper and lower thresholds for each work overlap, and in the case where the ranges overlap, the feature value with the highest work identification accuracy is selected from the continuous amount feature values, and the final value is selected. Selected A work to be identified based on the characteristic value and a corresponding upper and lower threshold value.
【請求項2】 複数個の教示用ワークの特徴値を抽出す
る特徴値抽出手段(1a)と、抽出した特徴値のうち、
面積値および周囲の輪郭を規定する値を選択する第1選
択手段(3)と、教示用ワークの種類に対応する面積値
および周囲の輪郭を規定する値によるワークの識別精度
が高いか否かを判別する第1判別手段(3a)(4)
と、面積値および周囲の輪郭を規定する値によるワーク
の識別精度が高い場合に面積値および周囲の輪郭を規定
する値をワーク識別用特徴値として選択し、面積値およ
び周囲の輪郭を規定する値によるワークの識別精度が低
い場合に、離散値特徴値の中からワーク識別精度が最大
である特徴値を選択する第2選択手段(5)と、離散値
特徴値の中から選択された特徴値の平均値および分散に
基づいて得られたワーク毎の上下限閾値に基づく範囲が
オーバーラップしているか否かを判別する第2判別手段
(5a)(6)と、オーバーラップしている場合に、連
続量特徴値の中からワーク識別精度が最大である特徴値
を選択する第3選択手段(7)と、最終的に選択された
特徴値および対応する上下限閾値に基づいて対象ワーク
を識別する対象ワーク識別手段(9)(10)とを含む
ことを特徴とするワーク識別装置。
2. A feature value extracting means (1a) for extracting feature values of a plurality of teaching works;
First selecting means (3) for selecting an area value and a value defining a surrounding contour, and whether or not the work identification accuracy by the value defining the area value and the surrounding contour corresponding to the type of the teaching work is high; (3a) (4)
In the case where the accuracy of identifying the workpiece by the value defining the area value and the surrounding contour is high, the value defining the area value and the surrounding contour is selected as the feature value for workpiece identification, and the area value and the surrounding contour are defined. A second selecting unit (5) for selecting a feature value having the maximum work identification accuracy from the discrete value feature values when the workpiece identification accuracy by the value is low; and a feature selected from the discrete value feature values. The second determination means (5a) and (6) for determining whether or not the ranges based on the upper and lower thresholds for each workpiece obtained based on the average value and the variance of the values overlap each other; Third selecting means (7) for selecting a feature value having the highest work identification accuracy from the continuous quantity feature values, and selecting a target work based on the finally selected feature value and the corresponding upper and lower threshold values. Object to be identified Click identification unit (9) (10) and the workpiece identification device, which comprises a.
JP32215191A 1991-12-05 1991-12-05 Work identification method and device Expired - Lifetime JP2712962B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32215191A JP2712962B2 (en) 1991-12-05 1991-12-05 Work identification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32215191A JP2712962B2 (en) 1991-12-05 1991-12-05 Work identification method and device

Publications (2)

Publication Number Publication Date
JPH05154744A JPH05154744A (en) 1993-06-22
JP2712962B2 true JP2712962B2 (en) 1998-02-16

Family

ID=18140507

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32215191A Expired - Lifetime JP2712962B2 (en) 1991-12-05 1991-12-05 Work identification method and device

Country Status (1)

Country Link
JP (1) JP2712962B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7111740B2 (en) * 2003-08-08 2006-09-26 Daiichi Jitsugyo Viswill Co., Ltd. Sorting apparatus, sorting method and alignment apparatus

Also Published As

Publication number Publication date
JPH05154744A (en) 1993-06-22

Similar Documents

Publication Publication Date Title
US5119435A (en) Pattern recognition apparatus and method
CN110766095B (en) Defect detection method based on image gray level features
US4853968A (en) Pattern recognition apparatus and method
JPH06119447A (en) Image processing device for line segment angle detection
JP2712962B2 (en) Work identification method and device
JPS61290312A (en) Cross-sectional shape measuring device
JP2637591B2 (en) Position recognition apparatus and method
JP2712884B2 (en) Work identification method and device
JPH07225843A (en) Circle center position measurement method
JP3230111B2 (en) Automatic calibration device
Umeda et al. Industrial vision system by fusing range image and intensity image
JPH11272801A (en) Method for recognizing and detecting deformation of a series of patterns in an image and recording medium storing the program
JPH05208329A (en) Work discriminating method and device thereof
JP3447716B2 (en) Image processing device
EP1413984B1 (en) Detection in a digital image of variation of workpiece outline
KR940003791B1 (en) Width measuring device
JP2712887B2 (en) Work front / back identification method and apparatus
JP3242530B2 (en) Work identification method
JP2712885B2 (en) Work direction identification method and device
JPH05180618A (en) Position-recognizing method for object
JP2001052167A (en) Image processing method
JP3198105B2 (en) Automatic visual inspection device
JP2552944Y2 (en) Phase meter
JPH0555801B2 (en)
JPH10312460A (en) Image processing method and high-precision image processing device