JPH0414723B2 - - Google Patents

Info

Publication number
JPH0414723B2
JPH0414723B2 JP60007396A JP739685A JPH0414723B2 JP H0414723 B2 JPH0414723 B2 JP H0414723B2 JP 60007396 A JP60007396 A JP 60007396A JP 739685 A JP739685 A JP 739685A JP H0414723 B2 JPH0414723 B2 JP H0414723B2
Authority
JP
Japan
Prior art keywords
line element
groove
image
line
teaching
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
JP60007396A
Other languages
Japanese (ja)
Other versions
JPS61167804A (en
Inventor
Toshihiko Kayukawa
Masao Katagiri
Masami Niwa
Michiharu Asai
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP60007396A priority Critical patent/JPS61167804A/en
Publication of JPS61167804A publication Critical patent/JPS61167804A/en
Publication of JPH0414723B2 publication Critical patent/JPH0414723B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は組立、搬送作業等においてワーク形
状に識別および寸法計測等を行なう視覚センサー
に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a visual sensor that identifies the shape of a workpiece and measures its dimensions during assembly, transportation work, and the like.

〔従来の技術〕[Conventional technology]

最近、ロボツトや自動組立機械等、高度な機能
を備えた設備が生産自動化のために導入されてい
るが、対象ワークの形状や位置の情報が不足して
いるためにその変化に対応できず組立工程等まだ
人手に頼らざるを得ない分野も多い。従つて、今
後これらの工程を更に自動化して行くためには視
覚センサーが不可欠である。その視覚センサーと
は、例えばモニター画面内に分離して存在する複
数ワークの面積、外周長、ホール面積、重心から
の最大長、最小長などの特徴データを計測した
り、そのデータを用いてテイーチング(教示)さ
れたワークのいずれに該当するワークかを自動的
に識別したり、画面内のウインドウ部分から円、
長円、矩形等指定された図形を識別する機能を備
えることが必要とされ実用化が進められてきた。
Recently, equipment with advanced functions such as robots and automatic assembly machines have been introduced for production automation, but due to lack of information on the shape and position of the target workpiece, it is difficult to respond to changes and assembly There are still many areas, such as manufacturing processes, that still have to rely on human labor. Therefore, visual sensors will be essential in order to further automate these processes in the future. The visual sensor measures, for example, characteristic data such as the area, circumference length, hole area, maximum length from the center of gravity, and minimum length of multiple works that exist separately on the monitor screen, and uses that data for teaching. (Taught) Automatically identifies which work corresponds to the work, or from the window part of the screen,
It has become necessary to have a function to identify specified shapes such as ellipses and rectangles, and efforts have been made to put them into practical use.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

視覚センサーの機能としては上述の諸認識以外
に対象ワークの図形として溝を識別することも必
要でその有効な方式が見当らなかつたために組立
の自動化に制約が生ずる等の問題点があつた。
In addition to the above-mentioned recognition functions, the visual sensor also needs to identify the groove as a figure on the target workpiece, and as no effective method has been found for this purpose, there have been problems such as restrictions on the automation of assembly.

この発明は、上記の問題点を解決するためにな
されたもので対象ワークの図形における溝を簡便
かつ確実に識別できる視覚センサーを提供するこ
とを目的としている。
The present invention was made in order to solve the above-mentioned problems, and an object of the present invention is to provide a visual sensor that can easily and reliably identify grooves in the figure of a target work.

〔問題点を解決するための手段〕[Means for solving problems]

この発明に係る視覚センサーは、画像処理回路
に生成されたランレングスデータに基づいてラン
レングスが連続してつながつている領域を求め、
その領域の外周を成す各線素を登録する線素登録
手段、その各線素のうち溝の着目点から最も近い
線素をその溝の底と仮定し、その線素を含めた周
辺の線素どうしが所定の角度をなしているとき溝
と認定し、その溝を特定する特徴データを登録す
るテイーチング手段、及び上位コンピユータから
計測指令を受けたとき、該線素登録手段に登録さ
れた当該対象ワークの各線素の組合せが該テイー
チング手段に登録された特徴データと一致するか
否かを判定し、一致する組合せがあつた場合その
組合せに係る溝の特徴データをその上位コンピユ
ータに出力する計測手段を中央演算装置に設けた
ものである。
The visual sensor according to the present invention determines an area where run lengths are continuously connected based on run length data generated by an image processing circuit,
Line element registration means for registering each line element forming the outer periphery of the area, assuming that the line element closest to the point of interest of the groove is the bottom of the groove, and surrounding line elements including that line element a teaching means that recognizes a groove when it forms a predetermined angle and registers characteristic data for specifying the groove; and a teaching means that registers characteristic data for specifying the groove, and when receiving a measurement command from a host computer, the target work registered in the line element registration means. measuring means that determines whether or not the combination of each line element matches the feature data registered in the teaching means, and when a matching combination is found, outputs the feature data of the groove related to that combination to the host computer thereof; It is installed in the central processing unit.

〔作用〕[Effect]

この発明における視覚センサーは、線素登録手
段、テイーチング手段及び計測手段を有する中央
演算装置を設けたことにより、円、長円、矩形等
の閉じた図形が検出され、これにより溝の形状が
認識される。
The visual sensor of this invention is equipped with a central processing unit having a line element registration means, a teaching means, and a measuring means, so that closed figures such as circles, ellipses, and rectangles can be detected, and thereby the shape of the groove can be recognized. be done.

〔実施例〕〔Example〕

以下この発明の一実施例を図について説明す
る。まず、第1図において、1は視覚センサー制
御装置、2は視覚センサ制御装置1に計測指令を
与える上位コントローラ、3は計測の対象となる
対象ワーク、4はカメラで、前記対象ワーク3の
画像を読み込みビデオ信号に変換する。5はモニ
ターテレビで原画像、2値化画像、認識結果や各
種操作のためのガイダンスが表示される。6はラ
イトペンでハードウエアの内部設定及び認識すべ
き対象ワークを登録するテイーチングモード時の
マンマシンインターフエス用として用いられる。
7は画像処理回路10に生成されたランレングス
データに基づいてランレングスが連続してつなが
つている領域を求め、その領域の外周を成す各線
素を登録する線素登録手段、その各線素のうち溝
の着目点Pから最も近い線素Liをその溝の底と仮
定し、その線素Liを含めた周辺の線素Li-1,Li+1
Li-2,Li+2どうしが所定に角度(90°)をなしてい
るとき溝と認定し、その溝を特定する特徴データ
(溝の巾w、溝の深さ(左d1、右d2)、溝の位置
(xc,yc)及び方向θ)を登録するテイーチング
モード(テイーチング手段)、及び上位コンピユ
ータ2から計測指令を受けたとき、該線素登録手
段に登録された該対象ワーク3の各線素の組合せ
が該テイーチングモードによつて登録された特徴
データと一致するか否かを判定し、一致する組合
せがあつた場合その組合せに係る溝の特徴データ
をその上位コンピユータ2に出力するオンライン
モード(計測手段)を有する中央演算装置8は前
記中央処理装置7で実行すべきプログラムやテイ
ーチングデータ等を格納する記憶回路、9はカメ
ラ4から入力されるビデオ信号を2値化画像に変
換しさらに孤立点除去等の前処理を行なう画像入
力回路、10は画像入力回路9から出力される信
号をもとにランレングスデータを生成する画像処
理回路、11は画像入力回路9からの2値化画像
を格納したり認識結果を格納する画像記憶回路、
12はモニターテレビ5とのモニターインターフ
エイス回路、13はライトペン6とのライトペン
インターフエイス回路、14は、上位コントロー
ラ2との上位インターフエイス回路である。
An embodiment of the present invention will be described below with reference to the drawings. First, in FIG. 1, 1 is a visual sensor control device, 2 is a host controller that gives measurement commands to the visual sensor control device 1, 3 is a target workpiece to be measured, and 4 is a camera that takes an image of the target workpiece 3. Read and convert to video signal. 5 is a monitor TV that displays the original image, binarized image, recognition results, and guidance for various operations. A light pen 6 is used as a man-machine interface during the teaching mode for registering the internal settings of the hardware and the target work to be recognized.
7 is a line element registration means for determining a region in which run lengths are continuously connected based on the run length data generated by the image processing circuit 10, and registering each line element forming the outer periphery of the region; Assuming that the line element L i closest to the point of interest P of the groove is the bottom of the groove, the surrounding line elements L i-1 , L i+1 , including that line element L i
When L i-2 and L i+2 form a predetermined angle (90°), it is recognized as a groove, and the characteristic data that identifies the groove (groove width w, groove depth (left d1, right d2), a teaching mode (teaching means) for registering the groove position (x c , y c ) and direction θ), and the object registered in the line element registration means when receiving a measurement command from the host computer 2. It is determined whether the combination of each line element of the workpiece 3 matches the feature data registered in the teaching mode, and if a matching combination is found, the feature data of the groove related to that combination is sent to the host computer 2. A central processing unit 8 having an online mode (measuring means) for outputting is a storage circuit that stores programs to be executed by the central processing unit 7, teaching data, etc., and a storage circuit 9 converts the video signal input from the camera 4 into a binarized image. 10 is an image processing circuit that generates run length data based on the signal output from the image input circuit 9; 11 is an image processing circuit that generates run length data based on the signal output from the image input circuit 9; an image storage circuit that stores binarized images and recognition results;
12 is a monitor interface circuit with the monitor television 5; 13 is a light pen interface circuit with the light pen 6; and 14 is a host interface circuit with the host controller 2.

次にこの発明の動作について説明する。まず、
視覚センサー制御装置1の動作モードとしては視
覚センサー制御装置1の内部設定及び認識すべき
対象ワークを登録するテイーチングモードと、上
位コントローラ2からの指令により計測を行ない
上位コントローラ2に計測結果を報告するオンラ
インモードとがありモニターテレビ5の画面から
ライトペン6にて指示することにより選択可能で
ある。
Next, the operation of this invention will be explained. first,
The operation modes of the visual sensor control device 1 include a teaching mode in which the internal settings of the visual sensor control device 1 and the target work to be recognized are registered, and a teaching mode in which measurements are performed according to commands from the host controller 2 and measurement results are reported to the host controller 2. There is an online mode, which can be selected by instructing with the light pen 6 from the screen of the monitor television 5.

テイーチングモードにおいては、一定周期で対
象ワーク3の画像をカメラ4で読み取りビデオ信
号に変換し画像入力回路9に伝送する。画像入力
回路9では第2図aに示すように設定された2値
化レベルによりビデオ信号を2値化するとともに
ノイズ等の孤立点除去を行ない画像記憶回路11
に2値化データを伝送する。ここでPは溝の着目
点指示、WLは設定されたウインドウの範囲、D
は対象ワークの2値画像を示す。そしてモニター
テレビ5には画像選択により原画像及び2値化画
像等が表示される。オペレータはモニターテレビ
5の画面を見ながら対象ワーク3のワークNo.、2
値化レベル、円、長円、矩形等ローカルフイーチ
ヤーの種別、ウインドウの設定をモニターテレビ
5の画面からライトペン6により行なう。又、モ
ニターテレビ5の画面に表示される2値画像によ
り着目点の指示を行なう。溝の場合には第2図a
の如く着目点Pを底面として溝の中を指示したあ
とで計測開始の旨ライトペン6で指示することに
より、中央処理装置7から画像入力回路9に指令
を与える。画像入力回路9はカメラ4で読み取ら
れた対象ワーク3のビデオ信号を設定された2値
化レベルで2値化するとともに孤立点除去を行な
い画像処理回路10に送りランレングスデータを
生成する。中央処理装置7はランレングスデータ
からランレングスが連続してつながつている領域
を求め、求められた領域の外周をトラツキングし
て線素テーブルを作成する(第2図b)。例えば、
領域の左側については次のようにして求める。対
応する領域に最初又は切断点のランレングスに左
側の端点(ランレングスとしては始点にあたる)
の位置を〔x(0),y(0)〕とし、それからn番
目のランレングスの左側の端点の位置を〔x(n),
y(n)〕とした時、その2点を通る直線は(1)式で表
わされる。
In the teaching mode, the camera 4 reads an image of the target workpiece 3 at regular intervals, converts it into a video signal, and transmits the video signal to the image input circuit 9. The image input circuit 9 binarizes the video signal using the binarization level set as shown in FIG. 2a, and removes isolated points such as noise.
The binarized data is transmitted to Here, P indicates the groove's focus point, WL is the set window range, and D
indicates a binary image of the target workpiece. Then, the original image, the binarized image, etc. are displayed on the monitor television 5 according to the image selection. The operator checks the work No. 2 of the target work 3 while looking at the screen of the monitor TV 5.
The digitization level, type of local feature such as circle, ellipse, rectangle, etc., and window settings are made using the light pen 6 from the screen of the monitor television 5. Further, the point of interest is indicated by a binary image displayed on the screen of the monitor television 5. In the case of grooves, see Figure 2a.
After indicating the inside of the groove with the point of interest P as the bottom surface, the central processing unit 7 gives a command to the image input circuit 9 by instructing with the light pen 6 to start measurement. The image input circuit 9 binarizes the video signal of the target workpiece 3 read by the camera 4 at a set binarization level, removes isolated points, and sends it to the image processing circuit 10 to generate run length data. The central processing unit 7 determines a region where run lengths are continuously connected from the run length data, and creates a line element table by tracking the outer periphery of the determined region (FIG. 2b). for example,
The left side of the area is determined as follows. The left end point of the run length of the first or cutting point in the corresponding area (corresponds to the starting point as a run length)
Let the position of
y(n)], the straight line passing through those two points is expressed by equation (1).

x=x(n)−x(0)/y(n)−y(0)×〔y−y(n
)〕+x(n)……(1) ここでy(1)〜y(n−1)に対応するx位置を
xc(1)〜xc(n−1)とした時のランレングスの端
点〔x(1)、y(1)〕〜〔x(n−1),y(n−1)〕
とのx方向の長さは |Xc(i)−X(i)|ΔX ……(2) i=1〜n−1 ΔX:許容値 となり(2)式を満たせば次にランレングスについて
も同様に繰り返す。
x=x(n)-x(0)/y(n)-y(0)×[y-y(n
)]+x(n)...(1) Here, the x position corresponding to y(1) to y(n-1) is
End points of run length when x c (1) to x c (n-1) [x(1), y(1)] to [x(n-1), y(n-1)]
The length in the x direction with Repeat in the same way.

|Xc(i)−X(i)|>ΔX ……(3) i=1〜n−1 そして(3)式となれば、〔x(n),y(n)〕を切断点
として〔x(0),y(0)〕から〔x(n−1),y
(n−1)〕を1つの線素の始点、終点として傾き
とともに線素テーブルに登録する(第3図)。線
素テーブルは第4図に示すように1つの線素につ
いて始点位置、終点位置及び傾きのデータから構
成される。
|X c (i) − [x(0), y(0)] to [x(n-1), y
(n-1)] are registered in the line element table as the starting and ending points of one line element along with the slope (FIG. 3). As shown in FIG. 4, the line element table is composed of data on the starting point position, ending point position, and slope for one line element.

次にモニターテレビ5の画面上で指定された溝
の着目点4から最も近い線素を線素テーブルによ
り求める。第2図bにおいては、線素Liがこれに
対応する。線素Liを基準として溝を構成する線素
を求める。第2図bにおいて線素Li-1,Li+1は溝
の側面に、線素Liは溝の底に、Li-2,Li+2は溝の
表面に相当する線素と位置付けられ、以下の条件
を満足する時溝と認識する(第2図cの矩形近
似)。第6図のフローチヤートにおいて、 (1) 線素Liの溝の底と考え、線素Li-1とLi+1のな
す角度θi-1,i+1が 180°−β°θi-1,i+1180°+β°……(4) であること。
Next, the line element closest to the designated groove point 4 on the screen of the monitor television 5 is found using the line element table. In FIG. 2b, line element L i corresponds to this. The line elements forming the groove are determined using the line element Li as a reference. In Figure 2b, line elements L i-1 and L i+1 correspond to the side surfaces of the groove, line elements L i correspond to the bottom of the groove, and line elements L i-2 and L i+2 correspond to the surface of the groove. It is recognized as a time slot that satisfies the following conditions (rectangular approximation in Figure 2c). In the flowchart of Figure 6, (1) Considering the bottom of the groove of line element L i , the angle θ i -1,i+1 formed by line elements L i-1 and L i+ 1 is 180°−β° θ i-1,i+1 180°+β°……(4).

(2) 線素LiとLi-1とLi+1のなす角度をθi-1,i,θi,i+
1

とする時 90°−α°θi-1,i及びθi,i+190°+α° 90°−α°θi-1,i及びθi,i+190°+α° 又は270°−α°θi-1,i及びθi,i+1≦270°+α°…
(5) であること。
(2) The angles formed by the line elements L i , L i-1 and L i+1 are θ i-1,i , θ i,i+
1

When 90°−α°θ i-1,i and θ i,i+1 90°+α° 90°−α°θ i-1,i and θ i,i+1 90°+α° or 270° −α°θ i-1,i and θ i,i+1 ≦270°+α°…
(5) Be.

(3) 線素Li-2とLi,Li+2とLiのなす角度をθi-2,i
θi,i+2とする時 −γ°θi-2,i及びθi,i+2γ° ……(6) であること。
(3) The angles formed by line elements L i-2 and L i , L i+2 and L i are θ i-2,i ,
When θ i,i+2, -γ°θ i-2,i and θ i,i+2 γ° ...(6).

(4) 線素Li-2とLi-1,Li+2とLi+1のなす角度を
θi-2,i-1,θi+1,i+2とする時 90°−α°θi-2,i-1及びθi+1,i+290°+α° 90°−α°θi-2,i-1及びθi+1,i+290°+α° 270°−α°θi-2,i-1及びθi+1,i+2270°+α°…
(7) であること。
(4) When the angles formed by line elements L i-2 and L i-1 and L i+2 and L i+1 are θ i-2,i-1 and θ i+1,i+2, 90° −α°θ i-2,i-1 and θ i+1,i+2 90°+α° 90°−α°θ i-2,i-1 and θ i+1,i+2 90°+α° 270°−α°θ i-2,i-1 and θ i+1,i+2 270°+α°…
(7) Be.

ここでα,β,γは許容値である。 Here, α, β, and γ are permissible values.

上記の判定結果より指定された図形が溝と認識
された場合には、その溝を定義するテイーチング
データとして溝の巾w,深さ(左および右)d1
d2を(8)式により求める。
If the specified figure is recognized as a groove based on the above judgment result, the teaching data that defines the groove is the groove width w, depth (left and right) d 1 ,
Find d 2 using equation (8).

w=li d1(左)=li-1×|sin(θi-1−θi)| d2(右)=li+1×|sin(θi+1−θi)| …(8) そして、2値化レベル及びウインドウ範囲ととも
にワークNo.対応で登録する。
w=l i d 1 (left) = l i-1 × | sin (θ i-1 − θ i ) | d 2 (right) = l i+1 × | sin (θ i+1 − θ i ) | ...(8) Then, the binarization level and window range are registered in correspondence with the work number.

又、溝の方向については、溝の側面及び底を構
成する線素の基準線からの傾きをθi-1,θi,θi+1
するとき、溝の方向を(9)式で求める。
Regarding the direction of the groove, when the slopes from the reference line of the line elements constituting the side and bottom of the groove are θ i-1 , θ i , θ i+1 , the direction of the groove can be expressed by equation (9). demand.

=(θi-1+180°)+(θi−90°)+θi+1/3…(9
) 上記のように溝の方向θを定義し底を構成する
線素Liの中点(xc,yc)を通る直線で示す。
= (θ i-1 +180°) + (θ i -90°) + θ i+1 /3…(9
) As above, the direction θ of the groove is defined and indicated by a straight line passing through the midpoint (x c , y c ) of the line element Li that forms the bottom.

また、オンラインモードにおいては、視覚セン
サー制御装置1が上位コントローラ2からの計測
指令(ワークNo.の指定あり)を上位インターフエ
イス回路14を介して受け取ると、中央処理装置
7はテイーチングデータからウインドウ範囲、2
値化レベルの設定を行ない、画像入力回路9に指
令を与え、カメラ4から対象ワーク3の画像を読
み取り、画像処理回路10でランレングスを生成
後、テイーチングモードと同様の方法で線素テー
ブルを作成する。
In the online mode, when the visual sensor control device 1 receives a measurement command (with a work number specified) from the host controller 2 via the host interface circuit 14, the central processing unit 7 calculates the window range from the teaching data. ,2
After setting the digitization level, giving a command to the image input circuit 9, reading the image of the target workpiece 3 from the camera 4, and generating a run length in the image processing circuit 10, create a line element table in the same manner as in the teaching mode. create.

オンラインモードにおいてはモニターテレビ5
の画面上で着目点が指定されていないので最初の
線素からテイーチングデータをもとに次の手順で
溝を識別する。第7図フローチヤートにおいて (1) 着目した線素の線長をljとするとき |lj−w/w|δ ……(10) を満たす線素Ljを求める。
Monitor TV 5 in online mode
Since the point of interest is not specified on the screen, the groove is identified in the following steps based on the teaching data from the first line element. In the flowchart of FIG. 7, (1) When the line length of the line element of interest is l j , find a line element L j that satisfies |l j −w/w|δ (10).

(2) 線素Ljを溝の底と考え、線素Lj-1とLj+1のな
す角度θj-1,j+1が 180°−β°θj-1,j+1180°+β° ……(11) であること。
(2) Considering line element L j as the bottom of the groove, the angle θ j-1 ,j+1 formed by line elements L j-1 and L j +1 is 180°−β°θ j-1,j+1 180°+β°...(11).

(3) 線素LjとLj-1,Lj+1のなす角度をθj-1,j,θj,j+
1

とする時 90°−α°θj-1,j及びθj,j+1
90°+α° 90°−α°θj-1,j及びθj,j+1
90°+α° 又は270°−α°θj-1,j及びθj,j+1270°+α°…
(12) であること。
(3) The angles formed by line elements L j and L j-1 , L j+1 are θ j-1,j , θ j,j+
1

When 90°−α°θ j-1,j and θ j,j+1
90°+α° 90°−α°θ j-1,j and θ j,j+1
90°+α° or 270°−α°θ j-1,j and θ j,j+1 270°+α°…
(12) Must be.

(4) 線素Lj-2とLj,Lj+2とLjのなす角度をθj-2,j
θj,j+2とする時 −γ°θj-2,j及びθj,j+2γ° …(13) であること。
(4) The angles formed by line elements L j-2 and L j , L j+2 and L j are θ j-2,j ,
When θ j,j+2 , −γ°θ j-2,j and θ j,j+2 γ° …(13).

(5) 線素Lj-2とLj-1,Lj+2とLj+1のなす角度を
θj-2,j-1,θj+1,j+2とする時 90°−α°θj-2,j-1及びθj+1,j
+2
90°+α° 90°−α°θj-2,j-1及びθj+1,j
+2
90°+α° 又は270°−α°θj-2,j-1及びθj+1,j+2270°+α
°…(14) であること。
(5) When the angles formed by line elements L j-2 and L j-1 and L j+2 and L j+1 are θ j-2,j-1 and θ j+1,j+2, 90° −α°θ j-2,j-1 and θ j+1,j
+2
90°+α° 90°−α°θ j-2,j-1 and θ j+1,j
+2
90°+α° or 270°−α°θ j-2,j-1 and θ j+1,j+2 270°+α
°…(14).

(6) 線素Lj-1とLj,Lj+1の基準線からの角度を
θj-1,θj,θj+1とする時深さd1′(左)、d2′(右
)は d1′(左)=lj-1×|sin(θj-1−θj)| d2′(右)=lj+1×|sin(θj+1−θj)| …(15) となる。これら深さd1′(左)、d2′(右)が を満足すること。
(6) When the angles of line elements L j-1 and L j , L j+1 from the reference line are θ j-1 , θ j , θ j+1 , depths d 1 ′ (left), d 2 ′ (right) is d 1 ′ (left) = l j-1 × | sin (θ j-1 − θ j ) | d 2 ′ (right) = l j+1 × | sin (θ j+1 − θ j ) | …(15). These depths d 1 ′ (left) and d 2 ′ (right) are be satisfied.

ここでα,β,γ,δは許容値である。 Here, α, β, γ, and δ are permissible values.

上記(1)〜(6)を満足する線素Lj-1,Lj,Lj+1が存
在すれば、テイーチング時と同様の方法で、溝の
方向を計算し、上位コントローラ2に対して計
測データd1′,d2′,wと位置(xc,yc)及び方向
θを報告する(第5図a,b)。
If there are line elements L j-1 , L j , L j+1 that satisfy the above (1) to (6), calculate the direction of the groove using the same method as during teaching, and send it to the upper controller 2. The measured data d 1 ', d 2 ', w, position (x c , y c ), and direction θ are reported (Fig. 5 a, b).

〔発明の効果〕〔Effect of the invention〕

以上のように、この発明によれば、線素登録手
段、テイーチング手段及び計測手段を有する中央
演算装置を設けたので、円、長円、矩形等の閉じ
た図形が検出されて溝の形状が認識されるため、
図形中の溝の認識が簡単且つ確実に認識できるな
どの効果がある。
As described above, according to the present invention, since a central processing unit having a line element registration means, a teaching means, and a measuring means is provided, closed figures such as circles, ellipses, and rectangles are detected and the shape of the groove is determined. To be recognized,
There is an effect that grooves in a figure can be easily and reliably recognized.

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

第1図はこの発明の一実施例による視覚センサ
ー制御装置のブロツク構成図、第2図は対象ワー
クについてa2値画像、b線素、c矩形近似のモ
デル図、第3図は対象ワークの領域のランレング
ス図、第4図は線素テーブル図、第5図は上位コ
ントローラからの計測指令及び計測結果図、第6
図はテイーチング時の認識アルゴリズムのフロー
チヤート、第7図はオンライン時の認識アルゴリ
ズムのフローチヤートである。 1は視覚センサー制御装置、2は上位コントロ
ーラ、3は対象ワーク、4はカメラ、5はテレビ
モニタ、6はライトペン、7は中央処理装置、8
は記憶回路、9は画像入力回路、10は画像処理
回路、11は画像記憶回路、12はモニターイン
ターフエイス回路、13はライトペンインターフ
エイス回路、14は上位インターフエイス回路。
Fig. 1 is a block configuration diagram of a visual sensor control device according to an embodiment of the present invention, Fig. 2 is a model diagram of an a2 value image, b line element, and c rectangular approximation of a target work, and Fig. 3 is an area of the target work. Figure 4 is a line element table diagram, Figure 5 is a diagram of measurement commands and measurement results from the upper controller, and Figure 6 is a diagram of the measurement results.
The figure is a flowchart of the recognition algorithm during teaching, and FIG. 7 is a flowchart of the recognition algorithm during online. 1 is a visual sensor control device, 2 is a host controller, 3 is a target workpiece, 4 is a camera, 5 is a television monitor, 6 is a light pen, 7 is a central processing unit, 8
1 is a memory circuit, 9 is an image input circuit, 10 is an image processing circuit, 11 is an image storage circuit, 12 is a monitor interface circuit, 13 is a light pen interface circuit, and 14 is an upper interface circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 対象ワークの画像を読みとるカメラから出力
されたビデオ信号を2値化画像に変換する画像入
力回路と、上記画像入力回路に変換された2値化
画像からランレングスデータを生成する画像処理
回路と、上記画像処理回路に生成されたランレン
グスデータに基づいてランレングスが連続してつ
ながつている領域を求め、その領域の外周を成す
各線素を登録する線素登録手段、その各線素のう
ち溝の着目点から最も近い線素をその溝の底と仮
定し、その線素を含めた周辺の線素どうしが所定
の角度をなしているとき溝と認定し、その溝を特
定する特徴データを登録するテイーチング手段、
及び上位コンピユータから計測指令を受けたと
き、該線素登録手段に登録された当該対象ワーク
の各線素の組合せが該テイーチング手段に登録さ
れた特徴データと一致するか否かを判定し、一致
する組合せがあつた場合その組合せに係る溝の特
徴データをその上位コンピユータに出力する計測
手段を有する中央演算装置とを備えた視覚センサ
ー。
1. An image input circuit that converts a video signal output from a camera that reads an image of a target work into a binary image, and an image processing circuit that generates run length data from the binary image converted by the image input circuit. , a line element registration means for determining a region in which run lengths are continuously connected based on the run length data generated by the image processing circuit, and registering each line element forming the outer periphery of the region; The line element closest to the point of interest is assumed to be the bottom of the groove, and when surrounding line elements including that line element form a predetermined angle with each other, it is recognized as a groove, and feature data identifying the groove is generated. Teaching method to register,
and when a measurement command is received from the host computer, it is determined whether the combination of each line element of the target workpiece registered in the line element registration means matches the feature data registered in the teaching means, and if they match. A visual sensor comprising a central processing unit having a measuring means for outputting characteristic data of grooves related to a combination to a host computer when a combination is found.
JP60007396A 1985-01-21 1985-01-21 Visual sensor Granted JPS61167804A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60007396A JPS61167804A (en) 1985-01-21 1985-01-21 Visual sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60007396A JPS61167804A (en) 1985-01-21 1985-01-21 Visual sensor

Publications (2)

Publication Number Publication Date
JPS61167804A JPS61167804A (en) 1986-07-29
JPH0414723B2 true JPH0414723B2 (en) 1992-03-13

Family

ID=11664740

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60007396A Granted JPS61167804A (en) 1985-01-21 1985-01-21 Visual sensor

Country Status (1)

Country Link
JP (1) JPS61167804A (en)

Also Published As

Publication number Publication date
JPS61167804A (en) 1986-07-29

Similar Documents

Publication Publication Date Title
US11467281B2 (en) Object detection device
US10949946B2 (en) Image processing apparatus, image processing method, and storage medium
EP2793172A1 (en) Image processing apparatus, image processing method and program
US5036544A (en) Apparatus for discriminating linearity of line segment in image processing system
JPH0414723B2 (en)
JP2995127B2 (en) How to recognize circular holes
JPH02125375A (en) Position detecting device
JP2637591B2 (en) Position recognition apparatus and method
JP2519445B2 (en) Work line tracking method
JPH0411822B2 (en)
JPH0414724B2 (en)
JPS61130809A (en) Visual sensor
US5471536A (en) Figure digitizing system
JPH0763515B2 (en) Fire detection method in waste storage pit
JPH0212710B2 (en)
EP0441972A1 (en) Object recognition method by otpical cutting method
JP2522277B2 (en) Image recognition device
JPH0781835B2 (en) Width measuring device
JP2000163692A (en) Car type discriminating device
JPH02100181A (en) Visual sensor
JP2514257B2 (en) Road guide line feature calculation point setting device
JP3119688B2 (en) Tilt detection method
JPH0778407B2 (en) Width measuring device
JPH0133870B2 (en)
JPH10206443A (en) Method and apparatus for measuring speed of time series image