JP2712885B2 - Work direction identification method and device - Google Patents

Work direction identification method and device

Info

Publication number
JP2712885B2
JP2712885B2 JP15068791A JP15068791A JP2712885B2 JP 2712885 B2 JP2712885 B2 JP 2712885B2 JP 15068791 A JP15068791 A JP 15068791A JP 15068791 A JP15068791 A JP 15068791A JP 2712885 B2 JP2712885 B2 JP 2712885B2
Authority
JP
Japan
Prior art keywords
vector
work
gravity
center
calculating
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
JP15068791A
Other languages
Japanese (ja)
Other versions
JPH04372335A (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 JP15068791A priority Critical patent/JP2712885B2/en
Publication of JPH04372335A publication Critical patent/JPH04372335A/en
Application granted granted Critical
Publication of JP2712885B2 publication Critical patent/JP2712885B2/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 the direction of a work, and more particularly, to a method and an apparatus particularly suitable for identifying the direction of a work sequentially fed by a component feeder such as a bowl feeder. The present invention relates to a direction identification method and an apparatus thereof.

【0002】[0002]

【従来の技術】従来から産業用ロボットを用いて部品等
のワークを把持するシステムにおいて、ワークの位置決
めを不要にできるという利点に着目して画像検出装置お
よび画像処理装置からなる視覚システムを組み込み、視
覚システムにより得られたワークの位置、姿勢等に基づ
いて産業用ロボットを制御するようにしたシステムが提
案されている(「ビジョンを用いた部品供給システム」
日立製作所生産技術研究所 高橋道郎 昭和63年1
月29日 精密工学会自動組立専門委員会第62回研究
発表会参照)。
2. Description of the Related Art Conventionally, in a system for gripping a work such as a part using an industrial robot, a visual system including an image detection device and an image processing device is incorporated by paying attention to an advantage that positioning of the work can be made unnecessary. A system has been proposed that controls an industrial robot based on the position, posture, and the like of a workpiece obtained by a vision system ("Part supply system using vision").
Hitachi, Ltd. Production Technology Laboratory Michio Takahashi 1988
29th, Japan Society of Precision Engineering, Automatic Assembly Special Committee, 62nd Research Presentation).

【0003】このシステムにおいては、2値画像領域の
輪郭を多角形で近似し、その頂点列のデータを用いて、
重心、面積、周囲長等の10数項目の図形的特徴量を算
出し、これら多数の図形的特徴量をユーザー・プログラ
ムにより組み合せ、ワークの種別、向き、位置等を決定
するようにしている。したがって、図形的特徴量をどの
ように組み合せるかを指示するユーザー・プログラムを
作成すれば、その後は何ら特別な作業を必要とせずワー
クの種別の判定、向き、把持位置の決定等を行なうこと
ができる。
In this system, the outline of a binary image area is approximated by a polygon, and data of a series of vertices is used to calculate the approximate value.
The graphic features of ten or more items such as the center of gravity, the area, the perimeter, and the like are calculated, and these many graphical features are combined by a user program to determine the type, orientation, position, and the like of the work. Therefore, if a user program is created to indicate how to combine the graphical features, then it is possible to determine the type of work, determine the orientation, and determine the gripping position without any special work. Can be.

【0004】[0004]

【発明が解決しようとする課題】しかし、上述のように
ユーザー・プログラムの作成が必須であり、しかもユー
ザー・プログラムはワークの種類に応じて作成しておく
ことが必要になるのであるから、多品種少量生産が一般
化しつつある現状においてユーザー・プログラムを作成
するための作業量が著しく大きくなるのみならず、モデ
ル・チェンジ等に伴なうワークの形状変化等に対応して
ユーザー・プログラムの変更が必要になり、ユーザー・
プログラム変更のための作業量も大きくなるという不都
合がある。
However, as described above, it is necessary to create a user program, and it is necessary to create a user program according to the type of work. In the current situation where small-lot production is becoming common, not only does the amount of work required to create a user program significantly increase, but also the user program changes in response to changes in the shape of the work accompanying model changes, etc. Is required and the user
There is a disadvantage that the amount of work for changing the program is increased.

【0005】尚、以上にはワークの種別の判定、向き、
把持位置の決定等を全て遂行する場合について説明した
が、これらのうち、ワークの向きの識別のみに着目して
も同様の不都合がある。
[0005] In the above, the determination of the type of work, the orientation,
The case where the determination of the gripping position and the like are all performed has been described, but among these, there is a similar inconvenience even if attention is paid only to the identification of the direction of the work.

【0006】[0006]

【発明の目的】この発明は上記の問題点に鑑みてなされ
たものであり、ワーク毎のユーザー・プログラムの作成
を不要とし、しかもワークの方向を正確に識別すること
ができる新規なワークの方向識別方法およびその装置を
提供することを目的としている。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problems, and it is unnecessary to create a user program for each work, and a new work direction can be accurately identified. An object is to provide an identification method and an apparatus thereof.

【0007】[0007]

【課題を解決するための手段】上記の目的を達成するた
めの、請求項1のワークの方向識別方法は、ワークの重
心位置および外接長方形の重心位置を両端点とする第1
ベクトルを得、第1ベクトルの長さが所定長さ以上であ
る場合に第1ベクトルに基づいてワークの方向を識別
し、第1ベクトルの長さが所定長さよりも短い場合に、
ワークの重心位置およびワークの他の特徴点を両端点と
する第2ベクトルを得、第2ベクトルに基づいてワーク
の方向を識別する方法である。
According to a first aspect of the present invention, there is provided a method for identifying a direction of a workpiece, the method comprising the steps of:
Obtaining a vector, identifying the direction of the workpiece based on the first vector when the length of the first vector is equal to or longer than a predetermined length, and when the length of the first vector is shorter than the predetermined length,
In this method, a second vector having both ends of the center of gravity of the work and other feature points of the work is obtained, and the direction of the work is identified based on the second vector.

【0008】請求項2のワークの方向識別方法は、第1
ベクトルまたは第2ベクトルと慣性主軸方向ベクトルと
の内積の符号に基づいてワークの方向を識別する方法で
ある。請求項3のワークの方向識別方法は、ワークの重
心位置を算出するワーク重心算出手段と、外接長方形の
重心位置を算出する外接長方形重心算出手段と、算出さ
れたワークの重心位置および外接長方形の重心位置を両
端点とする第1ベクトルを算出する第1ベクトル算出手
段と、算出された第1ベクトルの長さが所定長さ以上で
あるか否かを判別する第1ベクトル判別手段と、第1ベ
クトルの長さが所定長さ以上であると判別されたことに
応答して第1ベクトルに基づいてワークの方向を識別す
る第1方向識別手段と、第1ベクトルの長さが所定長さ
よりも短いと判別されたことに応答して外接長方形の重
心位置と異なる特徴点の位置を算出する特徴点算出手段
と、算出されたワークの重心位置およびワークの他の特
徴点の位置を両端点とする第2ベクトルを算出する第2
ベクトル算出手段と、第2ベクトルが算出されたことに
応答して第2ベクトルに基づいてワークの方向を識別す
る第2方向識別手段とを含んでいる。
According to a second aspect of the present invention, there is provided a method for identifying a direction of a workpiece.
This is a method of identifying the direction of the workpiece based on the sign of the inner product of the vector or the second vector and the inertial principal axis direction vector. According to a third aspect of the present invention, there is provided a method of identifying a direction of a work, comprising: a work center of gravity calculating means for calculating a center of gravity of the work; a circumscribed rectangle center of gravity calculating means for calculating a center of gravity of the circumscribed rectangle; First vector calculating means for calculating a first vector having the barycentric position as both end points; first vector determining means for determining whether a length of the calculated first vector is greater than or equal to a predetermined length; First direction identifying means for identifying the direction of the work based on the first vector in response to the determination that the length of the first vector is greater than or equal to the predetermined length; Characteristic point calculating means for calculating a position of a characteristic point different from the barycentric position of the circumscribed rectangle in response to the determination that the center of gravity of the circumscribed rectangle is short, and determining the calculated barycentric position of the work and the positions of other characteristic points of the work at both ends. Toss Second calculating a second vector
A vector calculation unit includes a second direction identification unit that identifies a direction of the workpiece based on the second vector in response to the calculation of the second vector.

【0009】請求項4のワークの方向識別装置は、第1
方向識別手段および第2方向識別手段がそれぞれ該当す
るベクトルと慣性主軸方向ベクトルとの内積の符号に基
づいてワークの方向を識別するものである。
According to a fourth aspect of the present invention, there is provided a work direction identifying apparatus comprising:
The direction discriminating means and the second direction discriminating means discriminate the direction of the workpiece based on the sign of the inner product of the corresponding vector and the inertial principal axis direction vector.

【0010】[0010]

【作用】請求項1のワークの方向識別方法であれば、ワ
ークの種別に拘らずワークの重心位置および外接長方形
の重心位置に基づいてワークの重心および外接長方形の
重心を両端点とする第1ベクトルを得る。そして、第1
ベクトルの長さが所定長さ以上である場合に第1ベクト
ルに基づいてワークの方向を識別する。逆に、第1ベク
トルの長さが所定長さよりも短い場合には第1ベクトル
に基づく方向の識別精度が著しく低下することになるの
で、この場合にのみワークの重心位置およびワークの他
の特徴点を両端点とする第2ベクトルを得、第2ベクト
ルに基づいてワークの方向を識別する。
According to the first aspect of the present invention, the first method uses the center of gravity of the work and the center of gravity of the circumscribed rectangle as both end points based on the position of the center of gravity of the work and the position of the center of gravity of the circumscribed rectangle regardless of the type of the work. Get a vector. And the first
When the length of the vector is equal to or longer than a predetermined length, the direction of the work is identified based on the first vector. Conversely, if the length of the first vector is shorter than the predetermined length, the discrimination accuracy in the direction based on the first vector will be significantly reduced. A second vector having both ends as points is obtained, and the direction of the workpiece is identified based on the second vector.

【0011】したがって、ワークの種別毎にユーザー・
プログラムを作成する必要がなくなり、プログラム作
成、変更のための作業量を大巾に低減でき、しかも全て
のワークについて高精度の方向識別を達成できる。ま
た、ワークの輪郭と外接長方形とが余り違わない場合を
除いて第1ベクトルに基づいてワークの方向を識別でき
るのであるから、ワークの方向を識別するための負荷を
大巾に低減できる。
Therefore, for each type of work,
There is no need to create a program, the amount of work for creating and changing the program can be greatly reduced, and highly accurate direction identification can be achieved for all the works. Further, since the direction of the work can be identified based on the first vector unless the outline of the work and the circumscribed rectangle are not so different, the load for identifying the direction of the work can be greatly reduced.

【0012】請求項2のワークの方向識別方法であれ
ば、内積を算出して符号が正か負かを判定することによ
り慣性主軸角をそのままワークの方向として採用できる
か否かを識別でき、処理負荷、産業用ロボット等の制御
負荷を大巾に低減できる。また、内積の値が0に近いか
否かを判別することにより横長か否かの識別をも行なう
ことができる。
According to the method for identifying the direction of a workpiece according to the second aspect, it is possible to determine whether or not the principal axis of inertia can be directly used as the direction of the workpiece by calculating the inner product and determining whether the sign is positive or negative. The processing load and the control load of an industrial robot can be greatly reduced. Further, by determining whether or not the value of the inner product is close to 0, it is possible to identify whether or not the product is horizontally long.

【0013】請求項3のワークの方向識別装置は、ワー
ク重心算出手段によりワークの重心位置を算出するとと
もに、外接長方形重心算出手段により外接長方形の重心
位置を算出し、算出されたワークの重心位置および外接
長方形の重心位置に基づいて第1ベクトル算出手段によ
りワークの重心および外接長方形の重心を両端点とする
第1ベクトルを算出する。そして、算出された第1ベク
トルの長さが所定長さ以上であるか否かを第1ベクトル
判別手段により判別する。
According to a third aspect of the present invention, the work center-of-gravity calculating means calculates the center of gravity of the work, and the circumscribed rectangle center-of-gravity calculating means calculates the center of gravity of the circumscribed rectangle. The first vector calculating means calculates a first vector having both ends of the center of gravity of the workpiece and the center of gravity of the circumscribed rectangle based on the position of the center of gravity of the circumscribed rectangle. Then, the first vector determining means determines whether the calculated length of the first vector is equal to or longer than a predetermined length.

【0014】第1ベクトル判別手段により第1ベクトル
の長さが所定長さ以上であると判別された場合には、十
分な方向識別精度を得ることができるのであるから、第
1方向識別手段により、第1ベクトルに基づいてワーク
の方向を識別する。逆に、第1ベクトル判別手段により
第1ベクトルの長さが所定長さよりも短いと判別された
場合には、そのままでは十分な方向識別精度を得ること
ができないのであるから、特徴点算出手段により外接長
方形の重心位置と異なる特徴点の位置を算出し、算出さ
れたワークの重心位置およびワークの他の特徴点の位置
に基づいて第2ベクトル算出手段によりワークの重心お
よび該当する特徴点を両端点とする第2ベクトルを算出
する。そして、第2方向識別手段により、第2ベクトル
に基づいてワークの方向を識別する。
If the first vector discriminating means determines that the length of the first vector is equal to or greater than the predetermined length, sufficient direction discrimination accuracy can be obtained. , The direction of the workpiece is identified based on the first vector. Conversely, if the first vector discriminating means determines that the length of the first vector is shorter than the predetermined length, it is not possible to obtain sufficient direction identification accuracy as it is. The position of a feature point different from the position of the center of gravity of the circumscribed rectangle is calculated. Based on the calculated position of the center of gravity of the work and the position of the other feature points of the work, the second vector calculation means calculates the center of gravity of the work and the corresponding feature point at both ends. A second vector as a point is calculated. Then, the direction of the work is identified by the second direction identification means based on the second vector.

【0015】以上の説明から明らかなように、ワークの
輪郭と外接長方形とが余り違わない場合を除いて第1ベ
クトルに基づいてワークの方向を識別できるのであるか
ら、ワークの方向を識別するための負荷を大巾に低減で
きる。請求項4のワークの方向識別装置であれば、内積
の算出および符号が正か負かの判定を行なうだけで慣性
主軸角をそのままワークの方向として採用できるか否か
を判別できるから、処理負荷、産業用ロボットの制御負
荷を一層低減できる。また、内積の値が0に近いか否か
を判別することにより横長か否かの識別をも行なうこと
ができる。
As is apparent from the above description, since the direction of the work can be identified based on the first vector except when the outline of the work and the circumscribed rectangle are not so different, it is necessary to identify the direction of the work. Can be greatly reduced. According to the work direction identification device of the present invention, it is possible to determine whether or not the inertia principal axis angle can be directly used as the work direction only by calculating the inner product and determining whether the sign is positive or negative. In addition, the control load of the industrial robot can be further reduced. Further, by determining whether or not the value of the inner product is close to 0, it is possible to identify whether or not the product is horizontally long.

【0016】[0016]

【実施例】以下、実施例を示す添付図面によって詳細に
説明する。図7はこの発明のワークの方向識別方法が適
用される部品供給装置の構成を概略的に示す図であり、
循環式ボウルフィーダ1の部品搬送トラック1aの一部
を透光性のある板1bで構成しているとともに、透光性
のある板1bの上方および下方に照明装置2,3を配置
している。そして、透光性のある板1bと下方の照明装
置3との間にハーフミラー3aを配置し、ハーフミラー
3aにより反射される光を受光できる所定位置にCCD
カメラ等からなる画像検出部4を配置している。さら
に、ワークを吸着するための吸着ヘッド5aを産業用ロ
ボット5に装着している。また、画像検出部4から取り
込まれた画像信号を入力として2値化処理等を行なう画
像処理部4aと、画像処理部4aからの処理結果信号を
受け取って産業用ロボット5に動作指令を与えるロボッ
ト・コントローラ4bとを有している。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. FIG. 7 is a diagram schematically showing a configuration of a component supply apparatus to which the work direction identification method of the present invention is applied.
A part of the component transport truck 1a of the circulation type bowl feeder 1 is constituted by a translucent plate 1b, and the lighting devices 2 and 3 are arranged above and below the translucent plate 1b. . Then, a half mirror 3a is arranged between the translucent plate 1b and the lower illumination device 3, and a CCD is provided at a predetermined position where the light reflected by the half mirror 3a can be received.
An image detection unit 4 including a camera and the like is arranged. Further, the industrial robot 5 is provided with a suction head 5a for sucking a work. Further, an image processing unit 4a that performs a binarization process or the like by using an image signal captured from the image detection unit 4 as an input, and a robot that receives a processing result signal from the image processing unit 4a and gives an operation command to the industrial robot 5 And a controller 4b.

【0017】図1および図2はこの発明のワークの方向
識別方法の一実施例を示すフローチャートであり、図1
はサンプル・ワークに基づく教示処理、図2は識別対象
ワークに基づく方向識別処理をそれぞれ示している。先
ず、図1のフローチャートについて説明する。ステップ
SP1において画像検出部4の視野内にサンプル・ワー
クがセットされるまで待ち、ステップSP2においてサ
ンプル・ワークの画像を取り込み、画像処理部4aによ
り2値化処理を施してサンプル・ワーク画像を得、ステ
ップSP3において画像処理部4aにより2値化画像に
基づいてサンプル・ワークの特徴値の位置を算出する。
そして、ステップSP4において所定数のサンプル・ワ
ークについて処理が行なわれたか否かを判別し、所定数
に達していなければ再びステップSP1の処理を行な
う。逆に、所定数に達したと判別された場合には、ステ
ップSP5においてサンプル・ワークの特徴値のうち、
サンプル・ワークの重心および外接長方形の重心を選択
し、ステップSP6においてサンプル・ワークの重心と
外接長方形の重心との距離の平均値および分散を算出
し、ステップSP7において距離の平均値が所定距離よ
りも短いか否かを判別する。そして、距離の平均値が所
定距離よりも短いと判別された場合には、ステップSP
8において所定距離よりも長い距離が得られる特徴値を
外接長方形の重心に代えて選択する。ここで選択される
特徴点としては、例えば、最大穴の重心、最小穴の重
心、最大半径円通過点、最小半径円通過点、最大角の
点、最小角の点等が例示できる。
FIGS. 1 and 2 are flowcharts showing one embodiment of the method for identifying the direction of a work according to the present invention.
2 shows a teaching process based on a sample work, and FIG. 2 shows a direction identification process based on a work to be identified. First, the flowchart of FIG. 1 will be described. In step SP1, wait until the sample work is set in the field of view of the image detection unit 4. In step SP2, an image of the sample work is fetched, and the image processing unit 4a performs binarization processing to obtain a sample work image. In step SP3, the image processing unit 4a calculates the position of the feature value of the sample work based on the binarized image.
Then, in step SP4, it is determined whether or not the processing has been performed on a predetermined number of sample works. If the processing has not reached the predetermined number, the processing in step SP1 is performed again. Conversely, if it is determined that the number has reached the predetermined number, in step SP5, among the feature values of the sample work,
The center of gravity of the sample work and the center of the circumscribed rectangle are selected, the average value and the variance of the distance between the center of gravity of the sample work and the center of the circumscribed rectangle are calculated in step SP6. Is also determined to be short. If it is determined that the average value of the distances is shorter than the predetermined distance, step SP
In step 8, a feature value that provides a longer distance than the predetermined distance is selected instead of the center of gravity of the circumscribed rectangle. The feature points selected here include, for example, the center of gravity of the largest hole, the center of gravity of the smallest hole, the passing point of the largest radius circle, the passing point of the smallest radius circle, the point of the maximum angle, the point of the minimum angle, and the like.

【0018】ステップSP7において距離の平均値が所
定距離よりも短くないと判別された場合、またはステッ
プSP8の処理が行なわれた場合には、ステップSP9
において、慣性主軸方向ベクトルおよびサンプル・ワー
クの重心を始点とし選択された特徴点を終点とする方向
識別ベクトルを得、ステップSP10において両ベクト
ルの内積を算出し、ステップSP11において内積の値
の絶対値と所定値との大小を判別する。そして、内積の
値の絶対値が所定値よりも小さいと判別された場合、即
ち、内積の値が0に近いと判別された場合にのみステッ
プSP12において該当するサンプル・ワークが横長で
あると識別し、一連の処理を終了する。
If it is determined in step SP7 that the average value of the distances is not shorter than the predetermined distance, or if the processing in step SP8 is performed, step SP9
In step SP10, a direction vector of the principal axis of inertia and a direction identification vector starting from the center of gravity of the sample work and ending at the selected feature point are obtained. In step SP10, the inner product of both vectors is calculated. In step SP11, the absolute value of the value of the inner product is obtained. And a predetermined value are determined. Then, only when it is determined that the absolute value of the value of the inner product is smaller than a predetermined value, that is, when it is determined that the value of the inner product is close to 0, the corresponding sample work is identified as being horizontally long in step SP12. Then, a series of processing ends.

【0019】次いで、図2のフローチャートについて説
明する。ステップSP1において識別対象ワークの画像
を取り込み、ステップSP2においてワークの重心位置
および図1のフローチャートにおいて選択された特徴点
(外接長方形の重心または他の特徴点)の位置を得、ス
テップSP3において識別対象ワークが横長であるか否
かを判別する。そして、横長であると判別された場合に
は、ステップSP4において慣性主軸角を90°だけ増
加させる。但し、慣性主軸角を90°だけ減少させても
よい。
Next, the flowchart of FIG. 2 will be described. In step SP1, the image of the work to be identified is fetched. In step SP2, the position of the center of gravity of the work and the position of the feature point (the center of gravity of the circumscribed rectangle or another feature point) selected in the flowchart of FIG. 1 are obtained. It is determined whether or not the work is horizontally long. If it is determined that the object is horizontally long, the main inertia axis angle is increased by 90 ° in step SP4. However, the inertia principal axis angle may be reduced by 90 °.

【0020】その後、ステップSP5において識別対象
ワークの重心を始点とし選択された特徴点を終点とする
方向識別ベクトルを算出し、ステップSP6において方
向識別ベクトルと慣性主軸方向ベクトルとの内積を算出
し、ステップSP7において内積の符号を判別する。こ
のステップSP7において内積が負であると判別された
場合には、ステップSP8において慣性主軸角を180
°だけ減少させる。即ち、慣性主軸の方向を逆にする。
Thereafter, in step SP5, a direction identification vector starting from the center of gravity of the work to be identified and starting from the selected feature point is calculated. In step SP6, an inner product of the direction identification vector and the inertial principal axis direction vector is calculated. In step SP7, the sign of the inner product is determined. If it is determined in step SP7 that the inner product is negative, in step SP8, the inertia principal axis angle is set to 180.
Decrease by °. That is, the direction of the principal axis of inertia is reversed.

【0021】ステップSP7において内積が正であると
判別された場合またはステップSP8の処理が行なわれ
た場合には、ステップSP9において慣性主軸角を識別
対象ワークの方向角として出力し、一連の処理を終了す
る。図3から図5を参照しながらさらに詳細に説明す
る。図3(A)はサンプル・ワークの形状が二等辺三角
形の場合を示し、図3(B)はサンプル・ワークの形状
が台形の場合を示しており、サンプル・ワークの重心位
置をG、外接長方形の重心位置をCでそれぞれ示してい
る。これらの図から明らかなように、二等辺三角形の場
合には重心Gと重心Cとの距離が大きく、台形の場合に
は重心Gと重心Cとの距離が小さくなる。したがって、
両者を比較すると、二等辺三角形の場合には重心Gを始
点とし重心Cを終点とする方向識別ベクトルを採用する
ことにより十分な方向の識別を達成できるが、台形の場
合(特に上辺と下辺との差が小さく、側辺同士の長さが
近似している場合)には重心Gを始点とし重心Cを終点
とする方向識別ベクトルの長さが著しく短くなり、計算
誤差等の影響が大きくなるので、方向の識別精度が低下
してしまう。
If it is determined in step SP7 that the inner product is positive, or if the processing in step SP8 has been performed, in step SP9, the inertia principal axis angle is output as the direction angle of the workpiece to be identified, and a series of processing is performed. finish. This will be described in more detail with reference to FIGS. FIG. 3A shows a case where the shape of the sample work is an isosceles triangle, and FIG. 3B shows a case where the shape of the sample work is a trapezoid. C indicates the position of the center of gravity of the rectangle. As is clear from these figures, in the case of an isosceles triangle, the distance between the center of gravity G and the center of gravity C is large, and in the case of a trapezoid, the distance between the center of gravity G and the center of gravity C is small. Therefore,
Comparing the two, in the case of an isosceles triangle, sufficient direction identification can be achieved by employing a direction identification vector having the center of gravity G as a starting point and the center of gravity C as an end point. Is small and the lengths of the sides are close to each other), the length of the direction identification vector starting from the center of gravity G and ending at the center of gravity C becomes extremely short, and the influence of calculation errors and the like increases. Therefore, the direction identification accuracy is reduced.

【0022】図4は方向識別ベクトルの長さが短い場合
に外接長方形の重心Cに代えて採用し得る特徴点に基づ
く方向識別ベクトルを説明する図であり、何れの方向識
別ベクトルもサンプル・ワークの重心Gを始点としてい
る。図4中V1は最大穴重心を終点とする方向識別ベク
トルであり、V2は最小穴重心を終点とする方向識別ベ
クトルであり、V3は最大半径円通過点を終点とする方
向識別ベクトルであり、V4は最小半径円通過点を終点
とする方向識別ベクトルであり、V5は最大角の点を終
点とする方向識別ベクトルであり、V6は最小角の点を
終点とする方向識別ベクトルである。
FIG. 4 is a diagram for explaining a direction identification vector based on a feature point that can be adopted in place of the center of gravity C of the circumscribed rectangle when the length of the direction identification vector is short. Is the starting point. In FIG. 4, V1 is a direction identification vector ending at the maximum hole centroid, V2 is a direction identification vector ending at the minimum hole centroid, V3 is a direction identification vector ending at the maximum radius circle passing point, V4 is a direction identification vector ending at the point passing through the minimum radius circle, V5 is a direction identification vector ending at the point of the maximum angle, and V6 is a direction identification vector ending at the point of the minimum angle.

【0023】図5はワークの方向識別ベクトルと慣性主
軸ベクトルとの関係を説明する図であり、ワーク方向識
別ベクトルと慣性主軸方向ベクトルとの内積が0に近い
場合にはサンプル・ワークが横長であるから、慣性主軸
角を90°だけ増減すればよく、慣性主軸角が90°だ
け増減された後の両ベクトルの内積の値を十分に大きく
できる。また、図5(A)に示すように両ベクトルの内
積の符号が正である場合には、慣性主軸角とワークの方
向角とが一致し、図5(B)に示すように両ベクトルの
内積の符号が負である場合には、慣性主軸角の補角とワ
ークの方向角とが一致する。
FIG. 5 is a diagram for explaining the relationship between the work direction identification vector and the inertia main axis vector. When the inner product of the work direction identification vector and the inertia main axis direction vector is close to 0, the sample work is horizontally long. Therefore, it is sufficient to increase or decrease the principal axis of inertia by 90 °, and the value of the inner product of the two vectors after the principal axis of inertia has been increased or decreased by 90 ° can be made sufficiently large. When the sign of the inner product of both vectors is positive as shown in FIG. 5 (A), the principal axis of inertia coincides with the direction angle of the work, and as shown in FIG. 5 (B), When the sign of the inner product is negative, the supplementary angle of the inertia principal axis angle matches the direction angle of the workpiece.

【0024】したがって、図1のフローチャートに基づ
く教示を行なった後に、図2のフローチャートに基づく
処理を行なうことにより簡単にワークの方向角を得るこ
とができる。
Therefore, after the teaching based on the flowchart of FIG. 1 is performed and the processing based on the flowchart of FIG. 2 is performed, the direction angle of the work can be easily obtained.

【0025】[0025]

【実施例2】図6はこの発明のワーク方向識別装置の一
実施例を示すブロック図であり、画像検出部4から取り
込まれたワークの画像に基づいてワークの特徴値を得て
出力する特徴値出力部11と、特徴値出力部11から出
力される特徴値のうち、ワークの重心位置および外接長
方形の重心位置を選択する第1選択部12と、選択され
たワークの重心と外接長方形の重心との距離を算出する
第1距離算出部13と、教示モードが指示されたことに
応答してサンプル数n個のサンプル・ワークについて特
徴値出力部11、第1選択部12および第1距離算出部
13を反復動作させる反復制御部14と、n個のサンプ
ル・ワークについて第1距離算出部13により算出され
た距離の平均値および分散を算出する平均距離・分散算
出部15と、平均距離と予め設定された基準距離との大
小を判別する距離判別部16と、平均距離の方が短いこ
とを示す距離判別部16からの判別信号に基づいて動作
し、外接長方形の重心位置に代えて特徴値出力部11か
ら出力される他の特徴値のうち、ワークの重心との距離
が基準距離よりも長くなる特徴値を選択する第2選択部
17と、判別部16からの判別信号に基づいて第1選択
部12により選択されたワークの重心位置および外接長
方形の重心位置または第2選択部17により選択された
特徴値を選択し、ワークの重心を始点とし、何れかの選
択された特徴値を終点とするワーク方向識別ベクトルを
算出する第1ベクトル算出部18と、第1ベクトル算出
部18により算出されたワーク方向識別ベクトルと慣性
主軸方向ベクトルとの内積を算出する第1内積算出部1
9と、第1内積算出部19により算出された内積の絶対
値と予め設定された所定値との大小を判別する内積値判
別部20と、内積の絶対値の方が小さいことを示す判別
結果に基づいて該当するサンプル・ワークが横長である
ことを指示する指示データを出力する横長指示データ出
力部21と、ワーク方向識別モードが指示されたことに
応答して、特徴値出力部11から出力される特徴値のう
ち、ワークの重心位置および第2選択部17により選択
される特徴値と同じ特徴値を選択する第3選択部22
と、横長指示データ出力部21からワークが横長である
ことを指示する指示データが出力されている場合にのみ
慣性主軸角を90°だけ増加または減少させる第1慣性
主軸角補正部23と、ワークの重心を始点とし第3選択
部22により選択された特徴値を終点とするワーク方向
識別ベクトルを算出して出力する第2ベクトル算出部2
4と、第2ベクトル算出部24により算出されたワーク
方向識別ベクトルと慣性主軸方向ベクトルとの内積を算
出する第2内積算出部25と、第2内積算出部25によ
り算出された内積の符号を判別する符号判別部26と、
符号判別部26による符号判別結果に基づいて慣性主軸
角または慣性主軸角を180°だけ減少させた角度を得
てワーク方向角として出力するワーク方向角出力部27
とを有している。
[Embodiment 2] FIG. 6 is a block diagram showing an embodiment of a work direction discriminating apparatus according to the present invention, wherein a feature value of a work is obtained and output based on an image of the work taken in from an image detector 4. A value output unit 11, a first selection unit 12 for selecting the position of the center of gravity of the work and the position of the center of gravity of the circumscribed rectangle among the characteristic values output from the characteristic value output unit 11, A first distance calculation unit 13 for calculating a distance from the center of gravity, and a feature value output unit 11, a first selection unit 12, and a first distance for n sample workpieces in response to the instruction of the teaching mode. An iterative controller 14 for repeatedly operating the calculator 13, an average distance / variance calculator 15 for calculating an average value and a variance of the distances calculated by the first distance calculator 13 for n sample works, It operates based on a discrimination signal from the distance discriminating unit 16 for discriminating the magnitude of the separation from the preset reference distance, and the discriminating signal from the distance discriminating unit 16 indicating that the average distance is shorter. A second selection unit 17 that selects a feature value whose distance from the center of gravity of the work is longer than a reference distance among other feature values output from the feature value output unit 11, and a determination signal from the determination unit 16. The center of gravity of the work selected by the first selector 12 and the center of gravity of the circumscribed rectangle or the feature value selected by the second selector 17 are selected based on the center of gravity of the work. A first vector calculation unit for calculating a work direction identification vector having the feature value as an end point; and an inner product of the work direction identification vector calculated by the first vector calculation unit and the inertia main axis direction vector. First inner product calculation unit 1
9, an inner product value determining unit 20 for determining the magnitude of the absolute value of the inner product calculated by the first inner product calculating unit 19 and a predetermined value, and a determination indicating that the absolute value of the inner product is smaller. A landscape instruction data output unit 21 that outputs instruction data indicating that the corresponding sample work is landscape based on the result, and a feature value output unit 11 in response to the instruction of the work direction identification mode. A third selection unit 22 that selects the same feature value as the feature value selected by the second selection unit 17 from the position of the center of gravity of the work among the output feature values.
A first inertia principal axis angle correction unit 23 that increases or decreases the inertia principal axis angle by 90 ° only when instruction data indicating that the work is horizontally long is output from the horizontally long instruction data output unit 21; A second vector calculation unit 2 which calculates and outputs a work direction identification vector having the center of gravity of the work as a start point and an end point of the feature value selected by the third selection unit 22
4, a second inner product calculating unit 25 that calculates an inner product of the work direction identification vector calculated by the second vector calculating unit 24 and the inertia main axis direction vector, and an inner product calculated by the second inner product calculating unit 25. A code determining unit 26 for determining a code;
A work direction angle output unit 27 that obtains an inertia principal axis angle or an angle obtained by reducing the inertia principal axis angle by 180 ° based on the sign judgment result by the sign judgment unit 26 and outputs the obtained angle as a work direction angle.
And

【0026】上記構成のワークの方向識別装置の作用は
次のとおりである。教示モードが指示されている場合に
は、サンプル数n個のサンプル・ワークのそれぞれにつ
いて特徴値出力部11から特徴値を出力し、第1選択部
12によりワークの重心位置および外接長方形の重心位
置を選択し、第1距離算出部13により、ワークの重心
と外接長方形の重心との距離を算出する。そして、平均
距離・分散算出部15により距離の平均値および分散を
算出し、距離判別部16により平均距離と予め設定され
た基準距離との大小を判別する。即ち、十分な方向識別
精度が得られる距離であるか否かを判別する。この判別
の結果、平均距離の方が短いと判別されれば、第2選択
部17により、外接長方形の重心位置に代えて特徴値出
力部11から出力される他の特徴値のうち、ワークの重
心との距離が基準距離よりも長くなる特徴値を選択す
る。その後は、第1ベクトル算出部18において、判別
部16からの判別信号に基づいて第1選択部12により
選択されたワークの重心位置および外接長方形の重心位
置または第2選択部17により選択された特徴値を選択
し、ワークの重心を始点とし、何れかの選択された特徴
値を終点とするワーク方向識別ベクトルを算出する。そ
して、第1内積算出部19によってワーク方向識別ベク
トルと慣性主軸方向ベクトルとの内積を算出し、内積値
判別部20により内積の絶対値と予め設定された所定値
との大小を判別する。そして、内積の絶対値の方が小さ
いと判別された場合にのみ、該当するサンプル・ワーク
が横長であることを指示する指示データを横長指示デー
タ出力部21により出力する。
The operation of the apparatus for identifying the direction of a workpiece having the above-mentioned structure is as follows. When the teaching mode is instructed, a feature value is output from the feature value output unit 11 for each of the n number of sample works, and the first selection unit 12 outputs the center of gravity position of the work and the center of gravity of the circumscribed rectangle. And the first distance calculator 13 calculates the distance between the center of gravity of the work and the center of gravity of the circumscribed rectangle. Then, the average value and variance of the distance are calculated by the average distance / variance calculation unit 15, and the distance determination unit 16 determines the magnitude of the average distance and a preset reference distance. That is, it is determined whether or not the distance is sufficient to obtain sufficient direction identification accuracy. As a result of this determination, if it is determined that the average distance is shorter, the second selector 17 replaces the center of gravity of the circumscribed rectangle with the feature value output from the feature value output unit 11 among the other feature values. A feature value whose distance to the center of gravity is longer than the reference distance is selected. After that, in the first vector calculation unit 18, the position of the center of gravity of the work selected by the first selection unit 12 and the position of the center of gravity of the circumscribed rectangle based on the determination signal from the determination unit 16 or selected by the second selection unit 17. A feature value is selected, and a work direction identification vector is calculated with the center of gravity of the work as a start point and any selected feature value as an end point. Then, the first inner product calculating unit 19 calculates the inner product of the work direction identification vector and the inertia main axis direction vector, and the inner product value determining unit 20 determines the magnitude of the absolute value of the inner product and a predetermined value. Then, only when it is determined that the absolute value of the inner product is smaller, the horizontally long instruction data output unit 21 outputs instruction data indicating that the corresponding sample work is horizontally long.

【0027】以上のようにしてサンプル・ワークの教示
が行なわれた後は、ワーク方向識別モードを指示すれば
よく、先ず、第3選択部22によって、特徴値出力部1
1から出力される特徴値のうち、ワークの重心位置およ
び第2選択部17により選択される特徴値と同じ特徴値
を選択し、横長指示データ出力部21からワークが横長
であることを指示する指示データが出力されている場合
にのみ第1慣性主軸角補正部23により慣性主軸角を9
0°だけ増加または減少させる。次いで、第2ベクトル
算出部24により、ワークの重心を始点とし第3選択部
22により選択された特徴値を終点とするワーク方向識
別ベクトルを算出して出力し、第2内積算出部25によ
りワーク方向識別ベクトルと慣性主軸方向ベクトルとの
内積を算出して、符号判別部26により内積の符号を判
別する。そして、ワーク方向角出力部27によって、内
積が負である場合にのみ慣性主軸角を180°だけ減少
させ、内積が正の場合には慣性主軸角をそのまま採用
し、ワーク方向角として出力する。
After the teaching of the sample work has been performed as described above, the work direction discrimination mode may be designated.
From among the characteristic values output from 1, the same characteristic value as the position of the center of gravity of the work and the characteristic value selected by the second selection unit 17 is selected, and the landscape instruction data output unit 21 indicates that the work is horizontally long. Only when the instruction data is output, the first inertial principal axis angle correction unit 23 sets the inertial principal axis angle to 9
Increase or decrease by 0 °. Next, the second vector calculation unit 24 calculates and outputs a work direction identification vector starting from the center of gravity of the work and starting at the feature value selected by the third selection unit 22, and outputs the work direction identification vector using the second inner product calculation unit 25. An inner product of the work direction identification vector and the inertia main axis direction vector is calculated, and the sign of the inner product is judged by the sign judging section 26. Then, only when the inner product is negative, the inertia principal axis angle is reduced by 180 ° by the work direction angle output unit 27, and when the inner product is positive, the inertia principal axis angle is adopted as it is and output as the work direction angle.

【0028】以上の説明から明らかなように、殆どのワ
ークについてはワークの重心と外接長方形の重心に基づ
いて得られるワーク方向識別ベクトルと慣性主軸方向ベ
クトルとに基づいて内積算出、符号判別等の処理を行な
うだけで簡単にかつ高精度にワークの方向を識別でき
る。また、ワークの重心と外接長方形の重心との距離が
短い場合にのみ外接長方形の重心に代えてワークの重心
との距離が十分に大きい他の特徴値を選択してワーク方
向識別ベクトルを得ればよく、高精度にワークの方向を
識別できる。
As is apparent from the above description, for most works, inner product calculation, sign discrimination, etc. are performed based on the work direction identification vector and the inertia main axis direction vector obtained based on the center of gravity of the work and the center of gravity of the circumscribed rectangle. , The direction of the workpiece can be easily and accurately identified. Also, only when the distance between the center of gravity of the work and the center of gravity of the circumscribed rectangle is short, another characteristic value whose distance to the center of gravity of the work is sufficiently large is selected instead of the center of gravity of the circumscribed rectangle to obtain the work direction identification vector. The direction of the workpiece can be identified with high accuracy.

【0029】尚、この発明は上記の実施例に限定される
ものではなく、例えば、内積の算出に伴なう処理を省略
して単にワーク方向識別ベクトルのみに基づいてワーク
の方向を識別することが可能であるほか、この発明の要
旨を変更しない範囲内において種々の設計変更を施すこ
とが可能である。
It should be noted that the present invention is not limited to the above embodiment. For example, it is possible to omit the processing involved in calculating the inner product and to identify the direction of the work based only on the work direction identification vector. In addition, various design changes can be made without departing from the scope of the present invention.

【0030】[0030]

【発明の効果】以上のように請求項1の発明は、ワーク
の種別毎にユーザー・プログラムを作成する必要がなく
なり、プログラム作成、変更のための作業量を大巾に低
減でき、しかも全てのワークについて高精度の方向識別
を達成できるとともに、ワークの輪郭と外接長方形とが
余り違わない場合を除いて第1ベクトルに基づいてワー
クの方向を識別できるのであるから、ワークの方向を識
別するための負荷を大巾に低減できるという特有の効果
を奏する。
As described above, according to the first aspect of the present invention, there is no need to create a user program for each type of work, and the amount of work for creating and changing the program can be greatly reduced. Since it is possible to achieve high-precision direction identification of the work and to identify the direction of the work based on the first vector except when the outline of the work and the circumscribed rectangle are not so different, it is necessary to identify the direction of the work. This has a specific effect that the load on the device can be greatly reduced.

【0031】請求項2の発明は、内積を算出して符号が
正か負かを判定することにより慣性主軸角をそのままワ
ークの方向として採用できるか否かを識別でき、処理負
荷、産業用ロボット等の制御負荷を大巾に低減できると
いう特有の効果を奏する。請求項3の発明は、ワークの
輪郭と外接長方形とが余り違わない場合を除いて第1ベ
クトルに基づいてワークの方向を識別できるのであるか
ら、ワークの方向を識別するための負荷を大巾に低減で
きるという特有の効果を奏する。
According to the second aspect of the present invention, it is possible to identify whether or not the inertia principal axis angle can be directly used as the direction of the work by calculating the inner product and determining whether the sign is positive or negative. It is possible to significantly reduce the control load such as the above. According to the third aspect of the present invention, since the direction of the work can be identified based on the first vector unless the outline of the work and the circumscribed rectangle are not so different, the load for identifying the direction of the work is large. This has a specific effect of being able to reduce the number of times.

【0032】請求項4の発明は、内積の算出および符号
が正か負かの判定を行なうだけで慣性主軸角をそのまま
ワークの方向として採用できるか否かを判別できるか
ら、処理負荷、産業用ロボットの制御負荷を一層低減で
きるという特有の効果を奏する。
According to the fourth aspect of the present invention, it is possible to determine whether or not the inertia principal axis angle can be directly used as the direction of the workpiece by simply calculating the inner product and determining whether the sign is positive or negative. This has a specific effect that the control load of the robot can be further reduced.

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

【図1】この発明のワークの方向識別方法の一実施例の
うち、サンプル・ワークに基づく教示処理を示すフロー
チャートである。
FIG. 1 is a flowchart showing a teaching process based on a sample work in one embodiment of the work direction identification method of the present invention.

【図2】この発明のワークの方向識別方法の一実施例の
うち、処理対象ワークに基づく方向識別処理を示すフロ
ーチャートである。
FIG. 2 is a flowchart showing a direction identification process based on a workpiece to be processed, in one embodiment of the work direction identification method of the present invention.

【図3】サンプル・ワークの形状が二等辺三角形の場合
および台形の場合におけるサンプル・ワークの重心と外
接長方形の重心との関係を示す図である。
FIG. 3 is a diagram illustrating the relationship between the center of gravity of the sample work and the center of the circumscribed rectangle when the shape of the sample work is an isosceles triangle and a trapezoid.

【図4】方向識別ベクトルの長さが短い場合に外接長方
形の重心に代えて採用し得る特徴点に基づく方向識別ベ
クトルを説明する図である。
FIG. 4 is a diagram illustrating a direction identification vector based on a feature point that can be adopted instead of the center of gravity of a circumscribed rectangle when the length of the direction identification vector is short.

【図5】ワークの方向識別ベクトルと慣性主軸ベクトル
との関係を説明する図である。
FIG. 5 is a diagram illustrating a relationship between a work direction identification vector and an inertia main axis vector.

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

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

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

11 特徴値出力部 12 第1選択部 15 平
均距離・分散算出部 16 距離判別部 17 第2選択部 18 第1
ベクトル算出部 22 第3選択部 23 第1慣性主軸角補正部 24 第2ベクトル算出部 25 第2内積算出部 26 符号判別部 27 ワーク方向角出力部
11 Feature value output unit 12 First selection unit 15 Average distance / variance calculation unit 16 Distance discrimination unit 17 Second selection unit 18 First
Vector calculation unit 22 Third selection unit 23 First inertia principal axis angle correction unit 24 Second vector calculation unit 25 Second inner product calculation unit 26 Sign determination unit 27 Work direction angle output 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 (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 ワークの重心位置および外接長方形の重
心位置に基づいてワークの重心と外接長方形の重心との
一方を始点とし、他方を終点とする第1ベクトルを得、
第1ベクトルの長さが所定長さ以上である場合に第1ベ
クトルに基づいてワークの方向を識別し、第1ベクトル
の長さが所定長さよりも短い場合に、ワークの重心位置
およびワークの他の特徴点を両端点とする第2ベクトル
を得、第2ベクトルに基づいてワークの方向を識別する
ことを特徴とするワークの方向識別方法。
1. A first vector having one of a center of gravity of a work and a center of gravity of a circumscribed rectangle as a start point and the other as an end point is obtained based on the position of the center of gravity of the work and the position of the center of gravity of the circumscribed rectangle.
When the length of the first vector is equal to or longer than a predetermined length, the direction of the work is identified based on the first vector. When the length of the first vector is shorter than the predetermined length, the position of the center of gravity of the work and the position of the work are determined. A method for identifying a direction of a work, comprising: obtaining a second vector having other feature points as both end points; and identifying a direction of the work based on the second vector.
【請求項2】第1ベクトルまたは第2ベクトルと慣性主
軸方向ベクトルとの内積の符号に基づいでワークの方向
を識別する請求項1に記載のワークの方向識別方法。
2. The method according to claim 1, wherein the direction of the workpiece is identified based on a sign of an inner product of the first vector or the second vector and the inertial principal axis direction vector.
【請求項3】 ワークの重心位置を算出するワーク重心
算出手段(11,12)と、外接長方形の重心位置を算
出する外接長方形重心算出手段(11,12)と、算出
されたワークの重心位置および外接長方形の重心位置を
両端点とする第1ベクトルを算出する第1ベクトル算出
手段(18)と、算出された第1ベクトルの長さが所定
長さ以上であるか否かを判別する第1ベクトル判別手段
(15,16)と、第1ベクトルの長さが所定長さ以上
であると判別されたことに応答して第1ベクトルに基づ
いてワークの方向を識別する第1方向識別手段(22,
23,24,25,26,27)と、第1ベクトルの長
さが所定長さよりも短いと判別されたことに応答して外
接長方形の重心位置と異なる特徴点の位置を算出する特
徴点算出手段(11,17)と、算出されたワークの重
心位置およびワークの他の特徴点の位置を両端点とする
第2ベクトルを算出する第2ベクトル算出手段(18)
と、第2ベクトルが算出されたことに応答して第2ベク
トルに基づいてワークの方向を識別する第2方向識別手
段(22,23,24,25,26,27)とを含むこ
とを特徴とするワークの方向識別装置。
3. A work center of gravity calculating means (11, 12) for calculating a center of gravity position of a work, a circumscribed rectangular center of gravity calculating means (11, 12) for calculating a center of gravity of a circumscribed rectangle, and a calculated center of gravity position of the work. A first vector calculating means (18) for calculating a first vector having both ends of the center of gravity of the circumscribed rectangle, and determining whether or not the length of the calculated first vector is not less than a predetermined length. One vector discriminating means (15, 16), and first direction discriminating means for discriminating the direction of the workpiece based on the first vector in response to the discrimination that the length of the first vector is equal to or longer than a predetermined length. (22,
23, 24, 25, 26, 27) and a feature point calculation for calculating a position of a feature point different from the center of gravity of the circumscribed rectangle in response to the determination that the length of the first vector is shorter than the predetermined length. Means (11, 17) and second vector calculating means (18) for calculating a second vector having both ends of the calculated center of gravity position of the work and positions of other feature points of the work.
And second direction identification means (22, 23, 24, 25, 26, 27) for identifying the direction of the work based on the second vector in response to the calculation of the second vector. Direction identification device of the workpiece.
【請求項4】第1方向識別手段(22,23,24,2
5,26,27)および第2方向識別手段(22,2
3,24,25,26,27)がそれぞれ該当するベク
トルと慣性主軸方向ベクトルとの内積の符号に基づいて
ワークの方向を識別するものである請求項3に記載のワ
ークの方向識別装置。
4. A first direction identifying means (22, 23, 24, 2)
, 26, 27) and second direction identifying means (22, 2).
4. The work direction identifying apparatus according to claim 3, wherein (3, 24, 25, 26, 27) identifies the direction of the work based on the sign of the inner product of the corresponding vector and the inertial principal axis direction vector.
JP15068791A 1991-06-21 1991-06-21 Work direction identification method and device Expired - Lifetime JP2712885B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15068791A JP2712885B2 (en) 1991-06-21 1991-06-21 Work direction identification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15068791A JP2712885B2 (en) 1991-06-21 1991-06-21 Work direction identification method and device

Publications (2)

Publication Number Publication Date
JPH04372335A JPH04372335A (en) 1992-12-25
JP2712885B2 true JP2712885B2 (en) 1998-02-16

Family

ID=15502268

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15068791A Expired - Lifetime JP2712885B2 (en) 1991-06-21 1991-06-21 Work direction identification method and device

Country Status (1)

Country Link
JP (1) JP2712885B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3451749B2 (en) * 1994-10-14 2003-09-29 ダイキン工業株式会社 Ring work supply method and apparatus

Also Published As

Publication number Publication date
JPH04372335A (en) 1992-12-25

Similar Documents

Publication Publication Date Title
US6763284B2 (en) Robot teaching apparatus
CN115609591B (en) Visual positioning method and system based on 2D Marker and compound robot
CN113269835A (en) Industrial part pose identification method and device based on contour features and electronic equipment
JP2712885B2 (en) Work direction identification method and device
JPS58217084A (en) Visual device for robot
JPH06243236A (en) Setting device for coordinate system correction parameter of visual recognizer
JP2712886B2 (en) Method and apparatus for identifying wrong work
JP3151900B2 (en) Parts supply device
JPH05237782A (en) Work holding position setting method and device thereof
JPH10255048A (en) Method for discriminating object
JP2712884B2 (en) Work identification method and device
JPH04257003A (en) Work gripping position deciding method and device thereof
JPH06258028A (en) Method and system for visually recognizing three dimensional position and attitude
JP2712888B2 (en) Work identification method and device
JPS615309A (en) Visual controller
JP2984267B1 (en) Object processing method
JP2712962B2 (en) Work identification method and device
JP2782959B2 (en) Automatic mounting device with visual function
JP3864524B2 (en) Circle detection method and detection apparatus
JPH04119405A (en) Position and rotation angle detector, its indicating tool, and robot operation teaching device using the tool
JP3306978B2 (en) Recognition method of inspection object
JPH09250911A (en) Method for measuring dimension based on image
JPH05337859A (en) Workpiece state teaching method, workpiece state discriminating method, and device therefor
JP2001217595A (en) Method and device for detecting part position
JPH02224072A (en) Method and device for automatically recognizing roof member