JPH06137837A - Part attitude judgement method for visual attitude selection device - Google Patents

Part attitude judgement method for visual attitude selection device

Info

Publication number
JPH06137837A
JPH06137837A JP4309214A JP30921492A JPH06137837A JP H06137837 A JPH06137837 A JP H06137837A JP 4309214 A JP4309214 A JP 4309214A JP 30921492 A JP30921492 A JP 30921492A JP H06137837 A JPH06137837 A JP H06137837A
Authority
JP
Japan
Prior art keywords
posture
work
attitude
line
pixels
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.)
Pending
Application number
JP4309214A
Other languages
Japanese (ja)
Inventor
Eiji Oki
栄治 大木
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.)
Shinko Electric Co Ltd
Original Assignee
Shinko Electric Co 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 Shinko Electric Co Ltd filed Critical Shinko Electric Co Ltd
Priority to JP4309214A priority Critical patent/JPH06137837A/en
Publication of JPH06137837A publication Critical patent/JPH06137837A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide a part attitude judgement method for visual attitude selection device capable of determining reasonably the identity number of black picture elements to judge to be the forward attitude to any operator. CONSTITUTION:Many parts mixed in forward and reverse attitudes are transferred in front of a line sensor type camera, and the number of identity picture elements is counted for each attitude. In this case, identity of feature point Q (%) = Number of identity picture elements/total number of picture elements in line image range, and a frequency distribution of frequency number N of part for each value of Q is prepared. Then, the number of identity picture element of Q for the minimum frequency between the maximum frequency on 0% side and the maximum frequency on 100% side is set at the judgment level number for transfer part in forward attitude.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、視覚姿勢選別装置にお
ける部品姿勢判定方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for determining a component posture in a visual posture selecting device.

【0002】[0002]

【従来の技術及びその問題点】自動組立てライン等にお
いては、送給する部品(以下、ワークという)に方向性
がある場合、送給途中においてその姿勢を判別し、不良
姿勢のワークは選別機構で排除するようにする。
2. Description of the Related Art In an automatic assembly line or the like, when a component to be fed (hereinafter referred to as a work) has directionality, its posture is determined during the feeding, and a work having a bad posture is sorted by a sorting mechanism. Try to eliminate with.

【0003】このワーク姿勢の判別は、従来、ワーク送
給路上にアタッチメントを設ける等の機械的手段を用い
て行なっているが、機械的手段ではワークの形状によっ
て、姿勢判別ができないものがある他、ワークの形状が
変わるとアタッチメントも変更しなくてはならないの
で、ワークの変更が面倒であった。
Conventionally, the work posture is discriminated using a mechanical means such as an attachment provided on the work feeding path. However, some mechanical means cannot discriminate the posture depending on the shape of the work. As the shape of the work changed, the attachment had to be changed, so changing the work was troublesome.

【0004】近年、イメージセンサ、その画像出力を処
理する画像処理技術が発達してきたので、二次元イメー
ジセンサ(特に、CCDカメラ)を用いて移動している
ワークを撮像し、このイメージセンサの画像出力を処理
してワーク姿勢を判別する方法が提案されているが、こ
の種のイメージセンサの画像入力時間は、例えば1/6
0secと大きく、その画像出力の処理にも時間がかか
るので、ワーク移送速度、ワーク移送間隔に制約を受
け、上記駆動組立ライン等の処理能力を充分に高めるこ
とができないという問題があり、又、画像処理装置が画
像データを取込むタイミングを与えるために、ワークが
イメージセンサの視野内に入ったことを検出する位置セ
ンサを別置する必要があった。
In recent years, an image sensor and an image processing technique for processing the image output thereof have been developed. Therefore, a moving work is imaged using a two-dimensional image sensor (in particular, a CCD camera), and an image of this image sensor is taken. A method of processing the output to determine the work posture has been proposed, but the image input time of this type of image sensor is, for example, 1/6.
Since it is as large as 0 sec and it takes a long time to process the image output, there is a problem that the work transfer speed and the work transfer interval are restricted, and the processing capacity of the drive assembly line and the like cannot be sufficiently increased. In order to provide the image processing apparatus with a timing for taking in the image data, it is necessary to separately dispose a position sensor for detecting that the work has entered the visual field of the image sensor.

【0005】そこで本出願人は、画像入力速度の速いラ
イン型のCCDイメージセンサを用いて、上記位置セン
サを用いることなく、移動するワークの二次元画像を得
ることができ、ワーク姿勢の判別を前記した機械的手段
では難しいワーク形状の場合でも、高速・短時間に、か
つワーク移動速度の影響を受けることなく、正確に行な
うことができるワーク姿勢判別装置を特願平2−106
448号として提案した。
Therefore, the applicant of the present invention can obtain a two-dimensional image of a moving work by using a line type CCD image sensor having a high image input speed, without using the position sensor, and determine the work posture. Japanese Patent Application No. 2-106 discloses a work posture determining device capable of accurately performing a work shape that is difficult with the mechanical means described above at high speed in a short time and without being affected by the work moving speed.
Proposed as No. 448.

【0006】図3はこのワーク姿勢判別装置をブロック
図で示したものである。同図において10は照明用光源
であって、搬送装置(例えば図6に示すロータリフィー
ダ)20のワーク搬送路21上のワークWを、ワーク移
動方向(紙面表裏方向)に対して直角をなす水平方向か
ら照射する。30はライン型イメージセンサ(この例で
は、ライン型のCCDカメラ)であって、ワーク搬送路
21を挟んで光源10と相対する位置にあり、上記光源
10により照射されているワークWを撮像し、その画像
データを信号I’の形で送出し、この画像データは画像
処理装置40の物体検知回路41に供給される。この画
像処理装置40は、この物体検知回路41の他、教示時
用の画像メモリ42、テンプレート・メモリ43、マッ
チング・メモリ44、判定回路(比較回路を含む)45
を備えている。50は教示装置である。なお、CCDカ
メラ30は、その画素配列の向き(ライン方向)が移動
するワークWに対して、図5で鎖線で示す如き向きとな
るように配設されており、一定周期で、1ライン分の画
像データを出力する。CCDカメラ30としては、例え
ば、有効画素数:128画素、クロック周波数:1MH
z、画像入力時間:250μsecのものを使用する。
FIG. 3 is a block diagram showing this work posture discriminating apparatus. In the figure, reference numeral 10 denotes a light source for illumination, which horizontally moves a work W on a work transfer path 21 of a transfer device (for example, a rotary feeder shown in FIG. 6) at a right angle to the work moving direction (front and back direction of paper surface). Irradiate from the direction. Reference numeral 30 denotes a line-type image sensor (a line-type CCD camera in this example), which is located at a position facing the light source 10 with the work conveyance path 21 interposed therebetween, and images the work W irradiated by the light source 10. , The image data is sent in the form of a signal I ′, and this image data is supplied to the object detection circuit 41 of the image processing device 40. In addition to the object detection circuit 41, the image processing device 40 includes an image memory 42 for teaching, a template memory 43, a matching memory 44, and a determination circuit (including a comparison circuit) 45.
Is equipped with. Reference numeral 50 is a teaching device. The CCD camera 30 is arranged so that the direction of the pixel array (line direction) is the direction as shown by the chain line in FIG. The image data of is output. As the CCD camera 30, for example, the number of effective pixels: 128 pixels, the clock frequency: 1 MH
z, image input time: 250 μsec is used.

【0007】上記物体検出回路41は、画像データに
「黒画素」のない状態から「黒画素」が存在する状態に
移った第1のタイミングから、入力される画像データを
送出し始め、「黒画素」が存在する状態から「黒画素」
が消滅した状態に移った第2のタイミングで、入力され
た画像データの送出を中断する。
The object detection circuit 41 starts transmitting the input image data from the first timing when the state in which there is no "black pixel" in the image data is changed to the state in which there is "black pixel", and the "black pixel" is output. "Black pixel" from the state that "pixel" exists
At the second timing when the state has disappeared, the transmission of the input image data is interrupted.

【0008】この構成については、まず、順方向の姿勢
で移動するワークWをCCDカメラ30で撮像して、そ
の二次元画像を画像メモリ42に格納したのち、この画
像メモリ42から画像データを教示装置50へ読み出し
て、該教示装置50の画面上にワークWの画像を写し出
す。画面に写し出されたこの画像上の所定位置、すなわ
ち形状が変化する変化位置の両側に、画像外と画像内に
跨がる縦向き(Y方向に長い)の矩形枠を設定する。こ
の例では、図5に示す如く、ワークWの台部W2とこの
直後に基部W2とからなっている。枠61を、ワークW
の基部W2に、矩形枠62を基部W1 に設定する。この
矩形枠61、62はX方向の座標は異なるが、大きさ、
Y方向の座標は同じである。設定した矩形枠61の画像
データを(FORWARDテンプレート)、矩形枠62
内の画像データ(BACKWARDテンプレート)をテ
ンプレート・メモリ43に記憶させる。
With this arrangement, first, the work W moving in the forward posture is imaged by the CCD camera 30, the two-dimensional image is stored in the image memory 42, and then the image data is taught from the image memory 42. The image of the work W is read out on the screen of the teaching device 50 by reading it out to the device 50. Vertically-oriented (long in Y direction) rectangular frames extending outside the image and inside the image are set on both sides of a predetermined position on the image projected on the screen, that is, a changing position where the shape changes. In this example, as shown in FIG. 5, it comprises a base W2 of the work W and a base W2 immediately thereafter. Frame 61, work W
The rectangular frame 62 is set to the base W 1 of the base W 2 . Although the rectangular frames 61 and 62 have different coordinates in the X direction,
The coordinates in the Y direction are the same. The image data of the set rectangular frame 61 is set as (FORWARD template) to the rectangular frame 62.
The image data (BACKWARD template) therein is stored in the template memory 43.

【0009】以上の準備を行なったのち、ワーク供給ラ
インからワーク搬送装置21上に順次移載されてくるワ
ークWの姿勢判別を行なわせる。物体検知回路41が出
力する画像データはマッチング・メモリ44に格納され
る。、マッチング・メモリ44は物体検知回路41がシ
ーケンシャルに送出する1ライン分の画像データを受け
て上記テンプレートとの整合・不整合を判定し得るマッ
チング用画像データを格納する。判定回路45は物体検
知回路41が1ライン分の画像データを出力するタイミ
ング毎に、テンプレート・メモリ43に格納されている
テンプレートとマッチング・メモリ44が取込んだマッ
チング用画像データと比較して、一致する「黒画素」の
数の差を検出し、この差がしきい値以下であれば整合
(マッチング)と判定し、しきい値以上である場合には
不整合と判定する。すなわち、、まず、マッチング・メ
モリ44に格納されたマッチング用画像データをFOR
WARDテンプレートと比較する動作を行ない、整合が
取れた場合には、次いで、順次更新されるマッチング・
メモリ44内の、マッチング用画像データをBACKW
ARDテンプレートと比較し、判定回路45は整合の順
序が最初、FORWARDテンプレート、次いで、BA
CKWARDテンプレートの順である場合にワークWの
姿勢が順方向の姿勢であると判別して合格信号を発生
し、他の場合には不合格信号を発生する。
After the above preparations, the postures of the works W sequentially transferred from the work supply line onto the work transfer device 21 are determined. The image data output by the object detection circuit 41 is stored in the matching memory 44. The matching memory 44 receives the image data of one line sequentially sent by the object detection circuit 41 and stores the matching image data capable of judging the matching / mismatch with the template. The determination circuit 45 compares the template stored in the template memory 43 with the matching image data captured by the matching memory 44 at each timing when the object detection circuit 41 outputs the image data for one line. A difference in the number of matching “black pixels” is detected, and if this difference is less than or equal to a threshold value, it is determined to be matching (matching). That is, first, the matching image data stored in the matching memory 44 is FOR
The operation of comparing with the WARD template is performed, and if they match, then the matching
BACKW the matching image data in the memory 44
Compared to the ARD template, the decision circuit 45 determines that the order of matching is first, the FORWARD template, then the BA
When it is in the order of the CKWARD template, it is determined that the posture of the work W is the forward posture, and a pass signal is generated.

【0010】具体的には、ノイズによる判定精度の低下
を防ぐために、例えば上記矩形枠61、62の巾を5ド
ット分とし、図5に示す如く、n個(本例では、n=
5)のライン・メモリ51M1〜51M5からなるテンプレ
ート・メモリ51に上記FORWARDテンプレートを
格納する。同様に、図示しないが他のn個のライン・メ
モリに上記BACKWARDテンプレートを格納する。
マッチング・メモリ52はテンプレート・メモリ51と
同じ大きさのライン・メモリ52M1〜52M5を有する先
入れ先出し(FIFO)のメモリとする。これらのライ
ン・メモリはCCDカメラ30の1走査ライン分の画像
データを格納するメモリ容量を有している。54はCC
Dカメラ30の1画素分のデータを読み込むタイミング
を与えるパルス発生回路である。マッチング・メモリ5
2の各ライン・メモリ52M1〜52M5はパルス発生回路
54のパルスを受ける毎に、最先に格納した1画素分の
データを前段のメモリに送ると共に後段のメモリが送り
出した上記1画素分のデータを格納する。判定回路53
は、マッチング・メモリ52におけるライン・メモリ5
M1のデータをテンプレート・メモリ51M1のデータ
と、ライン・メモリ52M2のデータをテンプレート・メ
モリ51M2のデータとライン・メモリ52M3のデータを
テンプレート・メモリ51M3のデータと、ライン・メモ
リ52M4のデータをテンプレート・メモリ51M4のデー
タと、ライン・メモリ52M5のデータをテンプレート・
メモリ51M5のデータとそれぞれ照合する。
Specifically, in order to prevent deterioration of the determination accuracy due to noise, for example, the width of each of the rectangular frames 61 and 62 is set to 5 dots, and as shown in FIG. 5, n pieces (in this example, n =
5) The FORWARD template is stored in the template memory 51 including the line memories 51 M1 to 51 M5 . Similarly, although not shown, the above BACKWARD template is stored in the other n line memories.
The matching memory 52 is a first-in first-out (FIFO) memory having line memories 52 M1 to 52 M5 of the same size as the template memory 51. These line memories have a memory capacity for storing image data for one scanning line of the CCD camera 30. 54 is CC
It is a pulse generation circuit that gives a timing for reading data for one pixel of the D camera 30. Matching memory 5
Each time the line memories 52 M1 to 52 M5 of No. 2 receive the pulse of the pulse generation circuit 54, the data of one pixel stored first is sent to the memory of the preceding stage and the one pixel of the above described is sent out by the memory of the following stage. Stores the data of. Judgment circuit 53
Is the line memory 5 in the matching memory 52.
2 M1 data is template memory 51 M1 data, line memory 52 M2 data is template memory 51 M2 data and line memory 52 M3 data is template memory 51 M3 data, line memory 52 M4 data into template memory 51 M4 data and line memory 52 M5 data into template memory
The data is compared with the data in the memory 51 M5 .

【0011】このようなハードウエア構成を取れば、上
記照合動作をCCDカメラ30から1走査ライン分の画
像データを取込んでいる間に行なうことができるので、
判定処理時間を短くすることができる。図4及び図5の
ワーク姿勢判別装置では、ワーク移動方向(X方向)に
対して直角をなす方向、すなわち方向Y(高さ方向)に
おける画像データの変化の順序(大から小へ、小から大
へ)からワーク姿勢を判別するので、ワークW後端が検
知されるのを待つことなく、ワーク姿勢を判別すること
ができる利点がある。
With such a hardware configuration, the collating operation can be performed while the image data for one scanning line is being captured from the CCD camera 30,
The determination processing time can be shortened. In the work posture determination device of FIGS. 4 and 5, the order of change of image data in a direction perpendicular to the work movement direction (X direction), that is, in the direction Y (height direction) (from large to small, from small to small). Since the work posture is determined from (large), there is an advantage that the work posture can be determined without waiting for the rear end of the work W to be detected.

【0012】然るに、上記従来例ではワークWの正方向
姿勢及び逆方向姿勢の矩形枠61及び62を設定し、こ
の位置での黒画素の数をカウントし、ワークWの進行方
向により黒画素の大の方が先か後かを判定することによ
り、正方向か逆方向かを判定するようにしているのであ
るが、いずれにしてもこの矩形枠61及び62の設定は
教示装置50を操作者が実際にワークWを正方向及び逆
方向で流すことにより、正方向の前端部近く及び逆方向
の前端部近くで正方向と逆方向との姿勢を確実に認定し
得る位置をディスプレイをみながら矩形枠61、62の
位置を定めるのであって、いずれにしもその操作は厄介
である。
However, in the above-mentioned conventional example, the rectangular frames 61 and 62 of the work W in the normal posture and the reverse posture are set, the number of black pixels at this position is counted, and the black pixels of the black pixel are changed depending on the traveling direction of the work W. It is determined whether the direction is the forward direction or the backward direction by determining whether the larger one is first or later. In any case, the rectangular frames 61 and 62 are set by the operator of the teaching device 50. While actually flowing the work W in the forward direction and the backward direction, while observing the position near the front end portion in the forward direction and near the front end portion in the backward direction, the positions in which the forward and backward directions can be reliably recognized. Since the positions of the rectangular frames 61 and 62 are determined, the operation is troublesome in any case.

【0013】又図7に示すようなウインド70が一つで
ワークの正方向か逆方向かを判定する方法も開発されて
いる。すなわち、このワークWが正方向の姿勢でライン
センサの前方に至り、最も形状が大きく変化する部分を
やはり操作者が教示装置を操作しながら設定するのであ
るが、今図7のAで示すように128ドット数でなる1
ラインを連続した3ラインでウインド70を構成し、こ
れによりワークWの正姿勢を判定する場合について説明
すると、“1”の状態ではウインド70には何ら黒画素
が表われず、ワークが進んで“2”の状態になると最右
側のラインにその先端部の黒画素が得られ、更に“1”
〜“2”間の距離を進むと“3”の状態になり、黒画素
が最右側及び真ん中のラインに図示する如く表われ、更
に等ピッチ進んで“4”の状態になると3つのラインに
全て黒画素が表われるが、このときをまだ正姿勢の判断
の時点とせず、この従来例では“5”の状態でウインド
70がワークWを検知したときに、正姿勢と判断するよ
うにしている。すなわち、図8のBの最も左側に示され
ているように、テンプレート・メモリに“5”の位置に
おいてワークWの姿勢を判定するようにしておけば、今
ワークWが移送されていてウインド70が“5”の位置
に対応する位置に到来したときにCCDカメラ30によ
り黒画素の数をカウント(段階71)し、これがテンプ
レート・メモリに記憶されている黒画素の数が既に設定
されているのでこれを比較し(ステップ72)、一致数
が判定レベルの数より大であればステップ73で正方向
と判定するようにしており、又、小であれば異方向とス
テップ74で判定して、所定のリジェクト手段を作動
し、これを所定の移送路から排除するようにしている。
A method has also been developed in which one window 70 as shown in FIG. 7 is used to determine whether the work is in the forward or reverse direction. In other words, the work W reaches the front of the line sensor in a positive posture, and the operator sets the portion where the shape changes the most while operating the teaching device. As shown by A in FIG. 1 with 128 dots
An explanation will be given of a case where the window 70 is constituted by three continuous lines and the normal posture of the work W is judged by this. In the state of "1", no black pixel appears in the window 70, and the work progresses. In the state of "2", the black pixel at the tip is obtained on the rightmost line, and further "1"
When going a distance between "2" and "2", the state becomes "3", and the black pixel appears on the rightmost and middle lines as shown in the figure. All black pixels appear, but this time is not yet the time for judging the normal attitude, but in this conventional example, when the window 70 detects the work W in the state of "5", the normal attitude is judged. There is. That is, as shown on the leftmost side of FIG. 8B, if the posture of the work W is judged at the position "5" in the template memory, the work W is being transferred and the window 70 When the number of black pixels reaches the position corresponding to the position of "5", the number of black pixels is counted by the CCD camera 30 (step 71), and the number of black pixels stored in the template memory is already set. Therefore, these are compared (step 72), and if the number of coincidences is larger than the number of determination levels, it is determined in step 73 that it is the positive direction, and if it is smaller, it is determined that it is the different direction in step 74. The predetermined reject means is operated to remove it from the predetermined transfer path.

【0014】図7のような教示方法においても、やはり
教示装置50を操作しながら操作者はウインド70を正
方向で移送されてきたワークWの前端部がこのウインド
の位置、すなわちラインセンサの直前方に至ってから
“5”の位置に至るまでを検知していき、5の位置に至
ったときにテンプレート・メモリにこの位置における黒
画素の数をカウントしてメモりさせるのであるが、正方
向と判断するには精密な操作を行なう必要がある。
In the teaching method as shown in FIG. 7, the operator also operates the teaching device 50 while the operator moves the window 70 in the forward direction so that the front end of the work W is at the position of this window, that is, immediately before the line sensor. After reaching the position "5", the template memory counts the number of black pixels at this position when the position "5" is reached. It is necessary to perform a precise operation to judge that.

【0015】以上述べたように正方向姿勢のワークに対
し、その先端部が検知されてからウインドの位置に達す
るまでの距離をSとすると、この位置において黒画素の
一致数が所定の数以上であれば、正方向の姿勢であると
判断しているのであるが、この設定値を如何に置くかは
従来は操作者の思考錯誤による設定、すなわち、その経
験によっている。従って、操作者によりその次工程に供
給される正方向姿勢の確率が変動する。
As described above, assuming that the distance from the detection of the tip of the work in the normal orientation to the arrival at the position of the window is S, the number of coincidences of black pixels at this position is a predetermined number or more. If so, it is determined that the posture is in the positive direction, but conventionally, how to set this set value depends on the setting by the operator's thought and error, that is, the experience. Therefore, the probability of the forward posture supplied to the next process by the operator varies.

【0016】[0016]

【発明が解決しようとする問題点】本発明は上述の問題
に鑑みてなされ、如何なる操作者に対しても正方向の姿
勢であると判定するための黒画素の一致数を合理的に定
めることのできる視覚姿勢選別装置における部品姿勢判
定方法を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-described problems, and rationally determines the number of black pixel coincidences for determining that the posture of the operator is in the positive direction for any operator. An object of the present invention is to provide a component posture determination method in a visual posture selection device capable of performing the above.

【0017】[0017]

【問題点を解決するための手段】以上の目的は、部品の
移送方向に直交する方向に、該部品を挟んでラインセン
サ型カメラと光源とを配設し、前記ラインセンサ型カメ
ラによるライン状撮像範囲を移送部品の前端より所定の
位置に設定し、正方向姿勢に対する該ライン状撮像範囲
中の黒画素と白画素との一致画素数により移送部品の姿
勢を判定するようにした視覚姿勢選別装置における部品
姿勢判定方法において、正方向姿勢及び逆方向姿勢で混
在する多数の部品を前記ラインセンサ型カメラの前方を
移送させて一致画素数を各々カウントし、このとき特徴
点の一致度Q(%)=一致画素数/ライン状撮像範囲中
の総画素数とし、該Qの各値に対する部品の頻度数Nの
度数分布を作成し、0%側の最大度数と100%側の最
大度数との間の極小度数に対するQの一致画素数を正姿
勢の移送部品に対する判定レベル数としたことを特徴と
する視覚姿勢選別装置における部品姿勢判定方法、によ
って達成される。
The above object is to arrange a line sensor type camera and a light source with the part sandwiched in the direction orthogonal to the transfer direction of the part, and to provide a line shape by the line sensor type camera. Visual posture selection in which the image pickup range is set to a predetermined position from the front end of the transfer component, and the posture of the transfer component is determined based on the number of matching pixels of black pixels and white pixels in the line-shaped image pickup range with respect to the forward direction posture. In the component orientation determination method in the apparatus, a large number of components mixed in a forward orientation and a backward orientation are moved in front of the line sensor type camera to count the number of matching pixels, and at this time, the degree of matching of feature points Q ( %) = The number of coincident pixels / the total number of pixels in the line-shaped imaging range, and a frequency distribution of the frequency N of the component for each value of Q is created to obtain the maximum frequency on the 0% side and the maximum frequency on the 100% side. Between the poles Parts attitude determination method in the visual orientation and sorting device is characterized in that a determined number of levels for the transfer part of the positive orientation matches the number of pixels of the Q for the frequency is accomplished by.

【0018】[0018]

【作用】操作者はある搬送機、例えばロータリパーツフ
ィーダに多量の正方向姿勢の部品であると判定すべき設
定値を定めるための部品を多量に投入する。そして、こ
のロータリパーツフィーダを駆動すれば、ラインセンサ
型カメラの直前方に至ると順次、ラインセンサで黒画素
の一致数をカウントし、これが予めコンピュータに設定
されているウインド中の黒画素数、すなわち上記従来技
術において述べたように3つのラインからなる場合に
は、1つのラインを128bitとすれば128×3の
画素数に対し、カウントした一致画素数の比をとること
により、割合、あるいはこれに100を掛けることによ
り、パーセンテージが特長点の一致度として1個宛計数
することができる。よって、横軸に一致度、縦軸にこれ
に対するワークの個数の度数分布をコンピュータで作成
させると共に0%側の極大値、100%の極大値をそれ
ぞれコンピュータで演算し、これらの間の極小値に対す
るQの値を読めば、自動的に判定レベルの設定値を定め
ることができ、操作者の熟練度には全く関係することは
ない。
The operator inserts a large amount of parts for setting a set value, which should be determined to be a large number of parts in the normal orientation, into a conveyor, for example, a rotary parts feeder. Then, if this rotary parts feeder is driven, the number of coincidences of black pixels is sequentially counted by the line sensor until immediately before the line sensor type camera, and this is the number of black pixels in the window preset in the computer, That is, as described in the above-mentioned prior art, in the case of three lines, if one line has 128 bits, the ratio of the counted number of coincident pixels to the number of 128 × 3 pixels is calculated to obtain a ratio or By multiplying this by 100, it is possible to count one percentage as the degree of coincidence of the feature points. Therefore, the horizontal axis represents the degree of coincidence, and the vertical axis represents the frequency distribution of the number of workpieces against this, and the maximum value on the 0% side and the maximum value on the 100% side are calculated by the computer, and the minimum value between them is calculated. By reading the value of Q for, the set value of the determination level can be automatically determined and has no relation to the skill level of the operator.

【0019】[0019]

【実施例】以下、本発明の実施例による視覚姿勢選別装
置における部品姿勢判定方法において図面を参照して説
明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A component attitude determining method in a visual attitude selecting apparatus according to an embodiment of the present invention will be described below with reference to the drawings.

【0020】視覚姿勢選別装置としては、図6に示すよ
うなロータリパーツフィーダが適用される。すなわち、
ワークWはフィルムボディーであるが、ウインドが上記
従来技術で述べられたように3本で成り、今、ワークの
数を1000個とする。また、このロータリパーツフィ
ーダの搬送能力は1分間に200個とする。
As the visual posture selection device, a rotary parts feeder as shown in FIG. 6 is applied. That is,
The work W is a film body, but the window is made up of three pieces as described in the above-mentioned prior art, and the number of works is now 1000. The carrying capacity of this rotary parts feeder is 200 pieces per minute.

【0021】以上のような操作条件では単に1000個
のワークをロータリパーツフィーダに投入するだけで、
ラインセンサ型カメラ30の前方をワークが通過するこ
とにウインド内画素数(128×3)分のそのワークの
一致画素数が計算され、これらの比をとって100を掛
けることにより、特長点の一致度がパーセントで表わさ
れる。また、このパーセンテージが図1に示すように、
10%おきでカウントして行くとする。本実施例では0
%〜10%は0個、10%〜20%は0個、20%〜3
0%は296個、30%〜40%がは188個、40%
〜50%は38個、50〜60%は0個、60%〜70
%は0個、70%〜80%は3個、80%〜90%は2
0個、90%〜100%は460個というデータをコン
ピュータに蓄えることができ、場合によってはこれをデ
ィスプレイで表示してもよい。ディスプレイで表示した
場合には明らかにQが60%で棒グラフの極小値が認め
られるので、これを判定レベル数とすればよいことが分
かる。なお、90%〜100%で460個と最大である
のは当然のことであるが、20%〜30%では296個
の極大値がみられるのは、逆姿勢のワークに対しては当
然のことながら、その一致画素数は正方向とは異なるも
のであるが、一定の黒画素数をカウントすることは明ら
かである。従って、ワークの形状によってはこの極大値
が更に低くなり、あるいは高くなることも考えられる
が、いずれにしても0%側の極大値は逆方向姿勢のワー
クがウインドの直前方を通過するときにカウントされる
ものである。
Under the above operating conditions, it is possible to simply put 1000 workpieces into the rotary parts feeder.
When the work passes in front of the line sensor type camera 30, the number of matching pixels of the work corresponding to the number of pixels in the window (128 × 3) is calculated, and these ratios are multiplied by 100 to obtain the feature point. The degree of agreement is expressed as a percentage. Also, as shown in FIG. 1, this percentage is
Suppose you want to count every 10%. 0 in this embodiment
% -10% is 0, 10% -20% is 0, 20% -3
0% is 296, 30% -40% is 188, 40%
~ 50% is 38, 50-60% is 0, 60% -70
% Is 0, 70% -80% is 3, 80% -90% is 2
The data of 0 pieces, 460 pieces of 90% to 100% can be stored in the computer, and in some cases, this may be displayed on the display. When it is displayed on the display, the minimum value of the bar graph is clearly recognized when Q is 60%, so it can be seen that this may be used as the determination level number. In addition, it is natural that the maximum value is 460 at 90% to 100%, but the maximum value of 296 is observed at 20% to 30%. Of course, although the number of matching pixels is different from that in the positive direction, it is clear that a certain number of black pixels are counted. Therefore, depending on the shape of the work, it is possible that this maximum value becomes even lower or higher, but in any case, the maximum value on the 0% side is when the work in the reverse posture passes just before the window. It is counted.

【0022】以上では、10%毎に特長点の一致度Q0
をコンピュータに演算させ、これの度数分布をとった
が、このQの範囲を更に小さくすれば、例えば2%毎に
区画すれば、更に正確な度数分布が得られ、究極的には
図2に示すような曲線として表わされるはずである。こ
れにおいてその極小点のQ0 が判定レベルとすれば理想
的な値となるのであるが、これより大とすればその次工
程に供給される正方向のワークは減少するが、より正確
な判定を行なえることは明らかである。
In the above, the degree of coincidence Q 0 of the feature points every 10%
Was calculated by a computer, and the frequency distribution of this was taken, but if the range of this Q is made smaller, for example, if it is divided into 2%, a more accurate frequency distribution will be obtained, and finally, in FIG. It should be represented as a curve as shown. In this case, if Q 0 of the minimum point becomes the determination level, it becomes an ideal value, but if it is larger than this, the number of workpieces in the forward direction supplied to the next process decreases, but a more accurate determination is made. It is clear that

【0023】以上、本発明の実施例について説明した
が、勿論、本発明の技術的思想に基いて種々の変形が可
能である。
Although the embodiments of the present invention have been described above, of course, various modifications can be made based on the technical idea of the present invention.

【0024】例えば以上の実施例では、判定レベルを求
めるべきワークWを多量にボウル内に投じてロータリパ
ーツフィーダで搬送することにより、図1に示すような
度数分布を作成したが、勿論、搬送装置はこれに限るこ
となく、例えばベルトコンベヤを用いてこの搬送方向に
対し垂直方向にラインセンサ型カメラ30と光源を配置
するようにしてもよい。
For example, in the above embodiment, a large amount of the work W for which the determination level is required is thrown into the bowl and is conveyed by the rotary parts feeder to create the frequency distribution as shown in FIG. The apparatus is not limited to this, and for example, a belt conveyor may be used to arrange the line sensor type camera 30 and the light source in a direction perpendicular to the conveying direction.

【0025】[0025]

【発明の効果】以上述べたように、本発明の視覚姿勢選
別装置における部品姿勢判定方法によれば、操作者の熟
練度に係らず簡単に、かつ一定に正方向姿勢であると判
定するための判定レベルを定めることができる。
As described above, according to the component posture determining method in the visual posture selecting apparatus of the present invention, it is possible to easily and constantly determine that the forward posture is constant regardless of the skill level of the operator. The determination level of can be set.

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

【図1】本発明の実施例による視覚姿勢選別装置におけ
る部品姿勢判定方法を説明するための度数分布である。
FIG. 1 is a frequency distribution for explaining a component posture determination method in a visual posture selection device according to an embodiment of the present invention.

【図2】理想的な度数分布を近似するグラフである。FIG. 2 is a graph that approximates an ideal frequency distribution.

【図3】従来例の部品姿勢判別装置のブロック図であ
る。
FIG. 3 is a block diagram of a conventional component attitude determination device.

【図4】図4における要部のブロック図である。FIG. 4 is a block diagram of a main part in FIG.

【図5】図4の装置で姿勢判別されるワークの例を示す
正面図である。
5 is a front view showing an example of a work whose posture is determined by the apparatus of FIG.

【図6】同装置において適用される搬送装置の一例を示
す断面図である。
FIG. 6 is a cross-sectional view showing an example of a transfer device applied to the same device.

【図7】Aは他従来例の部品姿勢選別装置の教示方法を
示す模式図であり、Bも同様な模式図である。
FIG. 7A is a schematic view showing a teaching method of another conventional component posture selecting apparatus, and B is a similar schematic view.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 G06F 15/62 400 9287−5L ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 5 Identification code Internal reference number FI technical display location G06F 15/62 400 9287-5L

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 部品の移送方向に直交する方向に、該部
品を挟んでラインセンサ型カメラと光源とを配設し、前
記ラインセンサ型カメラによるライン状撮像範囲を移送
部品の前端より所定の位置に設定し、正方向姿勢に対す
る該ライン状撮像範囲中の黒画素と白画素との一致画素
数により移送部品の姿勢を判定するようにした視覚姿勢
選別装置における部品姿勢判定方法において、正方向姿
勢及び逆方向姿勢で混在する多数の部品を前記ラインセ
ンサ型カメラの前方を移送させて一致画素数を各々カウ
ントし、このとき特徴点の一致度Q(%)=一致画素数
/ライン状撮像範囲中の総画素数とし、該Qの各値に対
する部品の頻度数Nの度数分布を作成し、0%側の最大
度数と100%側の最大度数との間の極小度数に対する
Qの一致画素数を正姿勢の移送部品に対する判定レベル
数としたことを特徴とする視覚姿勢選別装置における部
品姿勢判定方法。
1. A line sensor type camera and a light source are arranged with the part sandwiched in a direction orthogonal to a transfer direction of the part, and a line-shaped imaging range by the line sensor type camera is set to a predetermined value from a front end of the transfer part. In the component orientation determination method in the visual orientation selection device, the orientation of the transferred component is determined based on the number of matching pixels of the black pixels and the white pixels in the line-shaped imaging range with respect to the orientation in the forward direction. A large number of parts mixed in posture and reverse posture are moved in front of the line sensor type camera to count the number of matching pixels, and at this time, the degree of matching of feature points Q (%) = the number of matching pixels / line-shaped imaging With the total number of pixels in the range, a frequency distribution of the frequency N of parts for each value of Q is created, and the matching pixel of Q with respect to the minimum frequency between the maximum frequency on the 0% side and the maximum frequency on the 100% side is created. Positive number A component posture determination method in a visual posture selection device, wherein the number of determination levels for the posture transfer component is set.
JP4309214A 1992-10-23 1992-10-23 Part attitude judgement method for visual attitude selection device Pending JPH06137837A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4309214A JPH06137837A (en) 1992-10-23 1992-10-23 Part attitude judgement method for visual attitude selection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4309214A JPH06137837A (en) 1992-10-23 1992-10-23 Part attitude judgement method for visual attitude selection device

Publications (1)

Publication Number Publication Date
JPH06137837A true JPH06137837A (en) 1994-05-20

Family

ID=17990307

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4309214A Pending JPH06137837A (en) 1992-10-23 1992-10-23 Part attitude judgement method for visual attitude selection device

Country Status (1)

Country Link
JP (1) JPH06137837A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001180819A (en) * 1999-11-09 2001-07-03 Ishida Co Ltd Method and device for adjusting direction of product using soft packaging material
WO2004059634A1 (en) * 2002-12-24 2004-07-15 Fujitsu Limited Magnetooptic recording medium and method for producing the same
JP2013039981A (en) * 2011-08-11 2013-02-28 Sinfonia Technology Co Ltd Workpiece sorter
JP2016503893A (en) * 2013-01-08 2016-02-08 ゴルフゾン カンパニー リミテッド Sensing device and sensing method for moving ball
JP2016507283A (en) * 2013-01-08 2016-03-10 ゴルフゾン カンパニー リミテッド Sensing device and sensing method for moving ball

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001180819A (en) * 1999-11-09 2001-07-03 Ishida Co Ltd Method and device for adjusting direction of product using soft packaging material
WO2004059634A1 (en) * 2002-12-24 2004-07-15 Fujitsu Limited Magnetooptic recording medium and method for producing the same
JP2013039981A (en) * 2011-08-11 2013-02-28 Sinfonia Technology Co Ltd Workpiece sorter
JP2016503893A (en) * 2013-01-08 2016-02-08 ゴルフゾン カンパニー リミテッド Sensing device and sensing method for moving ball
JP2016507283A (en) * 2013-01-08 2016-03-10 ゴルフゾン カンパニー リミテッド Sensing device and sensing method for moving ball
US11582426B2 (en) 2013-01-08 2023-02-14 Golfzon Co., Ltd. Method and apparatus for sensing moving ball

Similar Documents

Publication Publication Date Title
US7545972B2 (en) Test tube type discrimination apparatus
US20100098296A9 (en) Vehicle-onboard driving lane recognizing apparatus
US5655030A (en) Method for detecting the center of target marks by image processing
JPH06137837A (en) Part attitude judgement method for visual attitude selection device
JP3266429B2 (en) Pattern detection method
JP2927125B2 (en) Parts alignment method
US6348947B1 (en) Image scanner
JPH09288060A (en) Method and apparatus for capturing moving body image
JPH06123611A (en) Method of teaching part posture recognizing device
JPH09166426A (en) Device for discriminating posture of parts
JP2543900Y2 (en) Work posture determination device
JPH0560514A (en) Image processing device for traveling workpiece
JPH05215513A (en) Image center measuring apparatus and fitting apparatus using same
JPH048427A (en) Visual device for moving work and work attitude discrimination device
JP3003229B2 (en) Work posture determination method
JPS6311804A (en) Mark position detection system for positioning
JPS63276300A (en) Bend detection system for pin
JPH08297729A (en) Work image pickup device
JP3229397B2 (en) Parts sorting method
JP3325191B2 (en) Shellfish identification method
JPH06217321A (en) Picture processor for parts feeder
JPH06197350A (en) Picture processing unit for part feeder
JPH0685495A (en) Mounting device for electronic component and component positioning in same
JPS63198805A (en) Seaweed inspecting device
JPH06195444A (en) Image processor for parts feeder