JPH0464111B2 - - Google Patents

Info

Publication number
JPH0464111B2
JPH0464111B2 JP61159649A JP15964986A JPH0464111B2 JP H0464111 B2 JPH0464111 B2 JP H0464111B2 JP 61159649 A JP61159649 A JP 61159649A JP 15964986 A JP15964986 A JP 15964986A JP H0464111 B2 JPH0464111 B2 JP H0464111B2
Authority
JP
Japan
Prior art keywords
window
signal
output
camera
image
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
JP61159649A
Other languages
Japanese (ja)
Other versions
JPS6316380A (en
Inventor
Masashi Nosaka
Yutaka Yoshioka
Kenji Nakada
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP15964986A priority Critical patent/JPS6316380A/en
Publication of JPS6316380A publication Critical patent/JPS6316380A/en
Publication of JPH0464111B2 publication Critical patent/JPH0464111B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、画像処理装置を用いた物体の位置決
め方法に関するものであり、特に、電縫管の溶接
ビードの検査のために溶接ビードを位置を検出し
て位置決めする装置に好適である。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a method for positioning an object using an image processing device, and in particular, a method for positioning a weld bead for inspecting the weld bead of an electric resistance welded pipe. It is suitable for a device that detects and positions.

〔従来の技術〕[Conventional technology]

電縫管の溶接部の検査は、一対のターニングロ
ーラの上に電縫管を載せ、ターニングローラを操
作して電縫管の溶接部が溶接部を検査する検出器
に対向させるようにしている。(日立評論 第67
巻第9号 第55頁の図4) また、電縫管の位置決め手段として画像処理装
置を用いた装置は前記文献の第75頁〜第80頁に記
載されている。
To inspect the welded part of an ERW pipe, place the ERW pipe on a pair of turning rollers, and operate the turning rollers so that the welded part of the ERW pipe faces the detector that inspects the weld part. . (Hitachi Review No. 67
(Figure 4 on page 55 of Vol. 9) Furthermore, a device using an image processing device as a means for positioning an electric resistance welded tube is described on pages 75 to 80 of the above-mentioned document.

画像処理において、撮像して得られた画像デー
タのうち、対象物を認識するためにウインドウと
称する窓枠を設定し、該枠内のみを処理して判断
することが知られている。(特公昭59−35064号公
報) 〔発明が解決しようとする問題点〕 溶接ビードの検査においては、溶接ビードを検
出器に正確に対応させることが必要である。
2. Description of the Related Art In image processing, it is known to set a frame called a window in order to recognize a target object among image data obtained by imaging, and to process only the area within the frame to make a determination. (Japanese Patent Publication No. 59-35064) [Problems to be Solved by the Invention] In inspecting a weld bead, it is necessary to accurately match the weld bead to a detector.

溶接ビードの大きさは肉厚に比例して小さくな
り、小さいものにおいては正確な位置決めが困難
になる。
The size of the weld bead decreases in proportion to the wall thickness, and accurate positioning becomes difficult for small weld beads.

本発明の目的は、対象物との相対的な位置決め
を正確に行えるようにすることにある。
An object of the present invention is to enable accurate positioning relative to an object.

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

本発明は、対象物を認識するための部分的な第
1のウインドウ内に占める対象物の大きさが第1
の所定値以上の場合に対象物の移動の減速を指令
する信号を出力し、次に、前記第1のウインドウ
よりも下流側に順次設定した第2のウインドウと
第3のウインドウのそれぞれに占める対象物の大
きさの和が第2の所定値以上であり、かつ前記第
2のウインドウと前記第3のウインドウのそれぞ
れに占める対象物の大きさの差が第3の所定値未
満である場合に対象物の移動を停止する信号を出
力し、次に、所定時間後であつて、前記第2のウ
インドウと前記第3のウインドウのそれぞれに占
める対象物の大きさの差が第4の所定値未満であ
る場合に対象物が所定位置に停止していることを
示す信号を出力すること、を特徴とする。
In the present invention, the size of the object occupied in the partial first window for recognizing the object is the first.
outputs a signal instructing deceleration of the movement of the object when the value of When the sum of the sizes of the objects is greater than or equal to a second predetermined value, and the difference in the sizes of the objects occupying each of the second window and the third window is less than a third predetermined value. outputs a signal to stop the movement of the object, and then, after a predetermined period of time, the difference in the size of the object occupying each of the second window and the third window is determined as a fourth predetermined value. It is characterized by outputting a signal indicating that the object is stopped at a predetermined position when the value is less than the value.

〔作用〕[Effect]

第1のウインドウで減速指令を与えているの
で、対象物が高速で移動中であつても正確な位置
決めができるものである。また、第2、第3のウ
インドウによつて、各ウインドウの対象物の面積
の和で真の対象物か否かを判断すると共に、各ウ
インドウの対象物の面積の差で対象物が中心位置
に居るか否かを求め、両者が成立した場合に停止
信号を出力しているので、真の対象物を中心位置
に停止させることができるものである。そして、
所定時間後、第2、第3のウインドウを用いて中
心位置に停止したか否かを判断するものである。
Since the deceleration command is given in the first window, accurate positioning is possible even when the object is moving at high speed. In addition, by using the second and third windows, it is determined whether or not the object is a true object based on the sum of the areas of the object in each window, and the center position of the object is determined based on the difference in the area of the object in each window. Since it determines whether the object is present at the center of the object and outputs a stop signal when both conditions are established, it is possible to stop the true object at the center position. and,
After a predetermined period of time, it is determined whether the vehicle has stopped at the center position using the second and third windows.

〔実施例〕〔Example〕

以下、本発明を、電縫管の検査の位置決めのた
めに用いた場合について、第1図〜第4図により
説明する。
Hereinafter, a case where the present invention is used for positioning for inspection of an electric resistance welded pipe will be explained with reference to FIGS. 1 to 4.

第1図において、電縫管20は一対のターニン
グローラ25に載せられている。電縫管20はタ
ーニングローラで回転させられ、また回転停止に
よつて位置決めさせられる。この上部には画像処
理装置のためのカメラ1および電縫管20の溶接
ビード20aの状態を検査するための検査装置の
検出器26を設置している。カメラ1の中心と検
出器26の中心は同一線上にある。
In FIG. 1, the electric resistance welded tube 20 is placed on a pair of turning rollers 25. As shown in FIG. The electric resistance welded tube 20 is rotated by a turning roller and positioned by stopping the rotation. A camera 1 for an image processing device and a detector 26 for an inspection device for inspecting the condition of the weld bead 20a of the electric resistance welded tube 20 are installed on the upper part. The center of camera 1 and the center of detector 26 are on the same line.

画像処理装置について説明する。カメラ1から
出力される映像信号は画像入力部2で、“1”又
は“0”のデジタル信号に変換される、画像入力
部2の映像信号は、切替回路3を介して、画像メ
モリ5に入力される。1画面分の入力が完了する
と画像メモリ5へのカメラ1からの入力は切替回
路3により遮断され、演算プロセツサ6からのア
クセスが可能なように切替えられる。
The image processing device will be explained. The video signal output from the camera 1 is converted into a digital signal of "1" or "0" by the image input section 2.The video signal of the image input section 2 is sent to the image memory 5 via the switching circuit 3. is input. When the input for one screen is completed, the input from the camera 1 to the image memory 5 is cut off by the switching circuit 3, and the image memory 5 is switched to allow access from the arithmetic processor 6.

タイミング回路4は、カメラ1の走査タイミン
グに合わせて画像データを画像メモリ5に記憶す
るタイミング等、装置に必要な各種タイミングを
発生する。
The timing circuit 4 generates various timings necessary for the apparatus, such as timing for storing image data in the image memory 5 in accordance with the scanning timing of the camera 1.

メモリ(RAM)8は、演算プロセツサ6のデ
ータ処理に必要な各種データを記憶する。
A memory (RAM) 8 stores various data necessary for data processing by the arithmetic processor 6.

演算プロセツサ6は、メモリ(ROM)7に記
憶されている画像データ処理プログラムに基づ
き、画像メモリ5に記憶されている画像データを
取込んで電縫管10の特徴量(面積)を算出し、
後述するように、入出力回路9等に対して電縫管
20の位置を決めるための各種の指令等を出力す
る。また、演算プロセツサ6は認識のための前処
理(例えば、ノイズ除去、輪郭強調などの処理)
も認識処理の中の一工程として行う。
Based on the image data processing program stored in the memory (ROM) 7, the arithmetic processor 6 takes in the image data stored in the image memory 5, calculates the feature amount (area) of the electric resistance welded tube 10,
As will be described later, various commands and the like for determining the position of the electric resistance welded tube 20 are outputted to the input/output circuit 9 and the like. In addition, the arithmetic processor 6 performs preprocessing for recognition (for example, processing such as noise removal and edge enhancement).
This is also done as a step in the recognition process.

入出力回路9は、ターニングローラ25に対し
て減速信号、停止信号を出力する。また、停止後
に、停止精度を測定し、許容範囲にあるかどうか
のOK、NG信号を、次の工程の装置、即ち、前
記検査装置に出力する。
The input/output circuit 9 outputs a deceleration signal and a stop signal to the turning roller 25. After stopping, the stopping accuracy is measured, and an OK or NG signal indicating whether it is within the allowable range is output to the next process device, that is, the inspection device.

次に、第1図の構成における動作を第2図〜第
4図と共に説明する。
Next, the operation of the configuration shown in FIG. 1 will be explained with reference to FIGS. 2 to 4.

第3図のa,bおよび第4図は溶接ビード20
aを撮像した場合の画像である。第3図、第4図
において、左右方向が電縫管20の回転方向、即
ち、回転による溶接ビード20aの移動方向であ
る。
Figures a and b in Figure 3 and Figure 4 show the weld bead 20.
This is an image when a is captured. In FIGS. 3 and 4, the left-right direction is the direction of rotation of the electric resistance welded tube 20, that is, the direction of movement of the weld bead 20a due to rotation.

ターニングローラ25に電縫管20が載せられ
ると、ターニングローラ25を用いて電縫管20
を所定の速度で回転させる。また、第2図に示す
位置決め動作が開始される。カメラ1の視野内は
照明灯12によつて照明されている。
When the electric resistance welded tube 20 is placed on the turning roller 25, the electric resistance welded tube 20 is placed on the turning roller 25.
rotate at a predetermined speed. Also, the positioning operation shown in FIG. 2 is started. The field of view of the camera 1 is illuminated by a lighting lamp 12.

カメラ1がカメラ1の視野内の映像を撮像し、
各画素の輝度に応じた画像信号を出力する。この
処理が第2図のステツプF1の処理であり、画像
処理としては第3図aである。この画像信号(ア
ナログ信号)は、画像入力部2によつて、デイジ
タル信号(“0”又は“1”)に変換され画像メモ
リ5に記憶される。この処理が第2図のステツプ
F2、F3の処理であり、画像としては、第3図b
である。溶接ビード20aは白く、他の部分は黒
い。
Camera 1 captures an image within the field of view of camera 1,
An image signal corresponding to the brightness of each pixel is output. This process is the process of step F1 in FIG. 2, and the image processing is shown in FIG. 3a. This image signal (analog signal) is converted into a digital signal (“0” or “1”) by the image input section 2 and stored in the image memory 5. This process is the step in Figure 2.
This is the processing of F2 and F3, and the image is shown in Figure 3b.
It is. The weld bead 20a is white and the other parts are black.

第3図cのWS1,WS2は、減速用のウインド
ウ、W1,W2は停止用(位置決め用)のウインド
ウである。
WS1 and WS2 in FIG. 3c are windows for deceleration, and W1 and W2 are windows for stopping (positioning).

第4図aのように、溶接ビード20aが左方か
ら移動して来て、ウインドウWS1内に占める溶
接ビード面積(白)SS1が、あらかじめ設定した
しきい値K1以上になつたら、入出力回路9に減
速信号を出力し、ターニングローラ25を減速運
転させる。この処理が第2図のステツプF4、F5
である。ウインドウWS2は、電縫管20が逆回
転している場合の減速用のウインドウであり、
SS2はWS2に占める溶接ビード20aの面積
(白)である。
As shown in Fig. 4a, when the weld bead 20a moves from the left side and the weld bead area (white) SS1 occupied within the window WS1 exceeds the preset threshold value K1, the input/output circuit A deceleration signal is output to 9 to cause the turning roller 25 to operate at deceleration. This process is performed in steps F4 and F5 in Figure 2.
It is. The window WS2 is a window for deceleration when the ERW tube 20 is rotating in reverse,
SS2 is the area (white) of the weld bead 20a occupying in WS2.

次に、上記減速運転に入つたならば、常に、ウ
インドウW1,W2のそれぞれの内の白の面積を算
出して、それぞれの値S1,S2の和が、あらかじ
め設定した値KA以上で、|S1−S2|≦KB(あら
かじめ設定しておいたしきい値)になつた時、入
出力回路9から停止信号を出力し、回転を停止さ
せる。
Next, when the deceleration operation starts, always calculate the white area in each of the windows W1 and W2, and if the sum of the respective values S1 and S2 is greater than or equal to the preset value KA, | When S1−S2|≦KB (preset threshold), a stop signal is output from the input/output circuit 9 to stop the rotation.

ここで、S1+S2≧Aの条件をつける理由は、
W1,W2内に、ノイズ(白)が発生する可能性が
あるため、溶接ビードがウインドウ内に無いのに
停止信号を出力する可能性が有るためである。
Here, the reason for adding the condition S1+S2≧A is
This is because noise (white) may occur within W1 and W2, so there is a possibility that a stop signal may be output even though the weld bead is not within the window.

前記処理が第2図のステツプF6,F7,F8であ
る。
The above processing is steps F6, F7, and F8 in FIG.

次に、所定時間t後(電縫管20が停止した
後)もう一度「|S1−S2|」を求め、その値と
あらかじめ設定した許容誤差KC(但し、KC<
KB)と比較し、許容誤差KC内ならOK信号を、
許容誤差外ならNG信号を入出力回路9から出力
する。この処理が、第2図のステツプF10,F11,
F12,F13,F14である。
Next, after a predetermined time t (after the ERW pipe 20 has stopped), calculate "|S1-S2|" again, and use that value and a preset tolerance KC (however, KC<
KB), and if it is within the tolerance KC, send an OK signal.
If the error is outside the tolerance, an NG signal is output from the input/output circuit 9. This process is performed at steps F10, F11, and
They are F12, F13, and F14.

前記NG信号を出力した場合には再位置決め動
作ステツプF17を行なう。即ち、例えば、前記と
同一方向に再回転を開始させ、所定時間後、前記
ステツプF1から実行させるものである。
If the NG signal is output, a repositioning operation step F17 is performed. That is, for example, the rotation is started again in the same direction as described above, and after a predetermined period of time, execution is performed from the step F1.

これによれば、溶接ビード20aの中心がウイ
ンドウW1とウインドウW2との間の中央に位置す
るので、該中央に検出器26を設けておけば正確
な位置決めができるものである。
According to this, since the center of the weld bead 20a is located at the center between the windows W1 and W2, accurate positioning can be achieved by providing the detector 26 at the center.

また、ウインドウWS1で溶接ビード20aを
検出したならば減速運転に入るので、正確な位置
を決めることができると共に、所要時間を短くで
きるものである。
Further, if the welding bead 20a is detected in the window WS1, the deceleration operation starts, so that accurate positioning can be determined and the required time can be shortened.

また、これによれば、電縫管の径、速度が変つ
た場合は、ウインドウの位置、各しきい値を変え
ることによつて容易に対応できる。
Further, according to this, when the diameter and speed of the electric resistance welded tube change, it can be easily handled by changing the window position and each threshold value.

なお、上記実施例ではウインドウW1とウイン
ドウW2との中央に検出器20を設置しているが、
停止信号を出力してから電縫管20が実際に停止
するまでの遅れを考慮して位置を決めることすよ
い。これは前記しきい値KBの大きさにも関係す
る。
In addition, in the above embodiment, the detector 20 is installed in the center of the window W1 and the window W2, but
It is preferable to determine the position by taking into account the delay from when the stop signal is output until the electric resistance welded tube 20 actually stops. This is also related to the size of the threshold KB.

ウインドウW1とW2との間に隙間を設けている
が不要である。
A gap is provided between windows W1 and W2, but it is unnecessary.

上記実施例では電縫管であつたが他の物でもよ
く、また直線移動するものでもよい。また、検出
器やカメラ側が移動するものでもよい。
In the above embodiment, the electric resistance welded tube is used, but other materials may be used, and the material may be moved in a straight line. Alternatively, the detector or camera may be movable.

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

本発明は、第1のウインドウで減速指令を与え
ているので、対象物が高速で移動中であつても正
確な位置決めができるものである。また、第2、
第3のウインドウによつて、各ウインドウの対象
物の面積の和で真の対象物か否かを判断し、真の
対象物の場合に該ウインドウを用いて中心位置に
居るか否かを求めて停止信号を出力しているの
で、対象物を中心位置に停止させることができる
ものである。そして、所定時間後、第2、第3の
ウインドウを用いて中心位置に停止したか否かを
判断するものである。このため、対象物の移動速
度が高速であつても正確な停止を行うことができ
るものである。
In the present invention, since a deceleration command is given in the first window, accurate positioning is possible even when the object is moving at high speed. Also, the second
Using the third window, it is determined whether the object is a real object based on the sum of the areas of the objects in each window, and if it is a real object, this window is used to determine whether or not it is at the center position. Since the stop signal is output at the same time, the object can be stopped at the center position. After a predetermined period of time, it is determined whether the vehicle has stopped at the center position using the second and third windows. Therefore, even if the moving speed of the object is high, it is possible to accurately stop the object.

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

第1図は本発明の一実施例を示すシステム構成
図、第2図は第1図における動作フローチヤート
第3図a,b,c,第4図a,bは画像出力を示
す図である。 1……カメラ、20……電縫管、20a……溶
接ビード、25……ターニングローラ、26……
検査器の検出器。
Fig. 1 is a system configuration diagram showing an embodiment of the present invention, Fig. 2 is an operation flowchart in Fig. 1, Fig. 3 a, b, c, and Fig. 4 a, b are diagrams showing image output. . 1... Camera, 20... ERW pipe, 20a... Welding bead, 25... Turning roller, 26...
Inspection instrument detector.

Claims (1)

【特許請求の範囲】 1 カメラに対して相対的に移動している対象物
を該カメラで撮像し、該撮像した画像データによ
つて対象物が特定位置に位置している場合に前記
相対的な移動を停止させる信号を出力する位置決
め方法において、 対象物を認識するための部分的な第1のウイン
ドウ内に占める対象物の大きさが第1の所定値以
上の場合に対象物の移動の減速を指令する信号を
出力し、 次に、前記第1のウインドウよりも下流側に順
次設定した第2のウインドウと第3のウインドウ
のそれぞれに占める対象物の大きさの和が第2の
所定値以上であり、かつ前記第2のウインドウと
前記第3のウインドウのそれぞれに占める対象物
の大きさの差が第3の所定値未満である場合に対
象物の移動を停止する信号を出力し、 次に、所定時間後であつて、前記第2のウイン
ドウと前記第3のウインドウのそれぞれに占める
対象物の大きさの差が第4の所定値未満である場
合に対象物が所定位置に停止していることを示す
信号を出力すること、 を特徴とする位置決め方法。
[Claims] 1. When an object moving relative to a camera is imaged by the camera, and the object is located at a specific position according to the image data, the relative In a positioning method that outputs a signal to stop movement of an object, when the size of the object occupying a partial first window for recognizing the object is equal to or larger than a first predetermined value, the movement of the object is stopped. A signal instructing deceleration is output, and then the sum of the sizes of objects occupying each of a second window and a third window sequentially set on the downstream side of the first window is determined as a second predetermined window. output a signal to stop the movement of the object when the difference in size of the object occupying each of the second window and the third window is less than a third predetermined value; , Next, after a predetermined period of time, if the difference in size of the object in each of the second window and the third window is less than a fourth predetermined value, the object is in the predetermined position. A positioning method characterized by outputting a signal indicating that it is stopped.
JP15964986A 1986-07-09 1986-07-09 Positioning method Granted JPS6316380A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15964986A JPS6316380A (en) 1986-07-09 1986-07-09 Positioning method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15964986A JPS6316380A (en) 1986-07-09 1986-07-09 Positioning method

Publications (2)

Publication Number Publication Date
JPS6316380A JPS6316380A (en) 1988-01-23
JPH0464111B2 true JPH0464111B2 (en) 1992-10-13

Family

ID=15698323

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15964986A Granted JPS6316380A (en) 1986-07-09 1986-07-09 Positioning method

Country Status (1)

Country Link
JP (1) JPS6316380A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6482400B2 (en) * 2015-06-18 2019-03-13 株式会社キーレックス Tube expansion device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS537112A (en) * 1976-07-09 1978-01-23 Mitsubishi Electric Corp Signal line allotter for external connection cable

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS537112A (en) * 1976-07-09 1978-01-23 Mitsubishi Electric Corp Signal line allotter for external connection cable

Also Published As

Publication number Publication date
JPS6316380A (en) 1988-01-23

Similar Documents

Publication Publication Date Title
JPH04252940A (en) Method and apparatus for inspecting flaw of end part of body
JPH0464111B2 (en)
JPH0552562A (en) Vehicular gap detector for tracking advance vehicle
JPH02158881A (en) Positioning device
JPH0434194B2 (en)
JPH01169678A (en) Positioning device
JPS63132107A (en) Light cutting line extracting circuit
JP2005324231A (en) Apparatus for machining edge of end portion, and method for inspecting its machining state
JPS618610A (en) Apparatus for inspecting steel sheet surface
JPH02158880A (en) Positioning device
JP2827756B2 (en) Defect inspection equipment
JPH08220001A (en) Surface-flam inspecting method
JP2638724B2 (en) Vehicle dimension measuring device
JPH0650904A (en) Method for correcting size of surface defect
JPS6096088A (en) Defect detector of shaft symmetrical object
JP3087983B2 (en) Stopped vehicle detection method
JPH02171969A (en) Method for recognizing object
JPH06294748A (en) Surface flaw inspection method at welded part of uo steel pipe
JPH0412257A (en) Method and device for detecting linear flaw on steel plate
JP3063994B2 (en) Image processing device and visual inspection device
JP2515142B2 (en) Groove detection method by image processing
JPH0235306A (en) Shape detecting method
JPH076774B2 (en) Three-dimensional shape measuring device by optical cutting method
JPS58147287A (en) Image pickup device
JPS6315116B2 (en)