JPH0861922A - Object position measuring method - Google Patents

Object position measuring method

Info

Publication number
JPH0861922A
JPH0861922A JP6195560A JP19556094A JPH0861922A JP H0861922 A JPH0861922 A JP H0861922A JP 6195560 A JP6195560 A JP 6195560A JP 19556094 A JP19556094 A JP 19556094A JP H0861922 A JPH0861922 A JP H0861922A
Authority
JP
Japan
Prior art keywords
image
characteristic line
zone
characteristic
line
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
JP6195560A
Other languages
Japanese (ja)
Inventor
Naoki Yamada
直樹 山田
Kazumoto Tanaka
一基 田中
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.)
Mazda Motor Corp
Original Assignee
Mazda Motor 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 Mazda Motor Corp filed Critical Mazda Motor Corp
Priority to JP6195560A priority Critical patent/JPH0861922A/en
Publication of JPH0861922A publication Critical patent/JPH0861922A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE: To easily and accurately seize a zone including the zone including a characteristic section by picking up the image of the object, while illuminating the zone brighter than surrounding zone. CONSTITUTION: The window frame line 12a of an opening 12 for the front window of a vehicle body 1 (object) on the side of a roof panel 13 after a painting process is, for example, utilized as a characteristic line, and a zone A including the center section of the frame line 12a is illuminated with a slit beam from a light source on the side engaged with the body 1. In this case, when the zone A is photographed with a camera, rectangular zones 21a to 21c illuminated with the slit beam give images brighter than a surrounding area 22. The slit beam is a scattered light and, therefore, the breadth of the zones 21a to 21c is different. In addition, the breadth of the zone 12c on a floor panel 14 farther from the light source is larger than the breadth of the zones 21a and 21b on a panel 13 near the light source. Light intensity on the zone 21c thus becomes weaker than on other zones 21a and 21b . Furthermore, an image processing device processes different kinds of light intensity and easily identifies the frame line 12a as a boundary for the zones 21b and 21c , or a characteristic line.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、物体の3次元位置を求
める物体の位置計測方法に係り、特に、物体を撮像して
得られた画像から特徴線を検出する方法に関するもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an object position measuring method for obtaining a three-dimensional position of an object, and more particularly to a method for detecting a characteristic line from an image obtained by imaging the object.

【0002】[0002]

【従来の技術】塗装した自動車等のワーク(被塗装物)
に対して、塗装の良否を自動的に検査する装置として、
特開平1−297503号公報に開示されている検査装
置がある。
2. Description of the Related Art Work such as a painted car (object to be painted)
In contrast, as a device that automatically inspects the quality of coating,
There is an inspection device disclosed in JP-A-1-297503.

【0003】この検査装置では、面発光体で照明したワ
ークの検査面をイメージセンサーで撮像し、これによ
り、得られた画像信号を微分2値化し、予め設定してお
いた基準値と比較することにより、塗装の良否を判定し
ている。
In this inspection apparatus, the inspection surface of the work illuminated by the surface-emitting body is imaged by the image sensor, and the image signal thus obtained is differentiated and binarized and compared with a preset reference value. Therefore, the quality of the coating is judged.

【0004】これにより、塗装欠陥が見つかると、ロボ
ットを使って欠陥を自動的に修正することが可能にな
る。ただし、曲面で構成されているボディー塗装面をも
れなく検査する必要があるので、ロボットによる修正の
ためには、さらに、ワークの3次元位置を正確に知る必
要がある。
Thus, when a coating defect is found, the robot can automatically correct the defect. However, since it is necessary to thoroughly inspect the body-painted surface composed of curved surfaces, it is necessary to accurately know the three-dimensional position of the work in order to be corrected by the robot.

【0005】そこで、ワークを撮像し、画像処理により
特徴線を検出している。ここで、特徴線とは、ワークの
形状に応じてワーク自身が有している構造上の特徴を示
す線である。
Therefore, the work is imaged and the characteristic line is detected by image processing. Here, the characteristic line is a line indicating the structural characteristic of the work itself according to the shape of the work.

【0006】特徴線を検出できると、特徴線上の点であ
る特徴点の位置を計測することにより、ワークの3次元
位置およびワークの姿勢を決定することができる。
When the characteristic line can be detected, the position of the characteristic point which is a point on the characteristic line can be measured to determine the three-dimensional position of the work and the posture of the work.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上記従
来の構成では、特徴線を検出できないことがあるという
問題点を有している。
However, the above-mentioned conventional configuration has a problem that the characteristic line may not be detected in some cases.

【0008】例えば、自動車のフロントウインドー用の
開口部におけるルーフパネル側の窓枠ラインを特徴線と
し、上方から窓枠ラインを含む部分を撮像した場合、フ
ローアーパネルを背景としたルーフパネルの画像が得ら
れる。この場合、フローアーパネルの色がルーフパネル
の色と同色あるいは同系統の色であると、窓枠ラインを
識別することが困難である。このためワークの3次元位
置を決定できないことがあるという問題点を有してい
る。
For example, when a window frame line on the roof panel side in an opening for a front window of an automobile is used as a characteristic line and a portion including the window frame line is imaged from above, a roof panel with a floor panel as a background is displayed. An image is obtained. In this case, if the color of the floor panel is the same as or similar to the color of the roof panel, it is difficult to identify the window frame line. Therefore, there is a problem that the three-dimensional position of the work may not be determined.

【0009】本発明の目的は、特徴線を容易に検出する
ことができる物体の位置計測方法を提供することにあ
る。
An object of the present invention is to provide a method for measuring the position of an object, which can easily detect a characteristic line.

【0010】[0010]

【課題を解決するための手段】請求項1の発明に係る物
体の位置計測方法は、上記の課題を解決するために、物
体を撮像し、得られた画像から特徴線を検出し、特徴線
上の特徴点を抽出することにより物体の3次元位置を求
める物体の位置計測方法において、特徴線部分を含む領
域を周囲の領域よりも明るく照明しながら物体を撮像す
ることを特徴としている。
In order to solve the above-mentioned problems, an object position measuring method according to a first aspect of the present invention takes an image of an object, detects a characteristic line from the obtained image, and detects the characteristic line. In the object position measuring method for obtaining the three-dimensional position of the object by extracting the characteristic points of, the object is imaged while illuminating the area including the characteristic line portion brighter than the surrounding area.

【0011】請求項2の発明に係る物体の位置計測方法
は、上記の課題を解決するために、請求項1の物体の位
置計測方法であって、特徴線部分と、特徴線部分とほぼ
同色の背景部分とからなる領域を周囲の領域よりも明る
く照明することを特徴としている。
In order to solve the above-mentioned problems, the object position measuring method according to a second aspect of the present invention is the object position measuring method according to the first aspect, wherein the characteristic line portion and the characteristic line portion have substantially the same color. It is characterized by illuminating an area consisting of the background part of the and the background area brighter than the surrounding area.

【0012】請求項3の発明に係る物体の位置計測方法
は、上記の課題を解決するために、請求項1の物体の位
置計測方法であって、上記の画像を2値画像に変換する
ことにより特徴線を検出することを特徴としている。
An object position measuring method according to a third aspect of the present invention is the object position measuring method according to the first aspect, wherein the image is converted into a binary image in order to solve the above problems. The feature line is detected by.

【0013】請求項4の発明に係る物体の位置計測方法
は、上記の課題を解決するために、請求項1の物体の位
置計測方法であって、上記の画像と、予め記憶しておい
た物体の標本画像とのパターンマッチングを行うことに
より、特徴線を検出することを特徴としている。
An object position measuring method according to a fourth aspect of the present invention is the object position measuring method according to the first aspect for solving the above problems, wherein the image and the image are stored in advance. The feature line is detected by performing pattern matching with the sample image of the object.

【0014】請求項5の発明に係る物体の位置計測方法
は、上記の課題を解決するために、請求項1〜4の物体
の位置計測方法であって、上記の特徴線部分を含む領域
をスリット状の光で照明することを特徴としている。
In order to solve the above problems, the object position measuring method according to a fifth aspect of the present invention is the object position measuring method according to any one of the first to fourth aspects, wherein an area including the characteristic line portion is set. It is characterized by illumination with slit-shaped light.

【0015】請求項6の発明に係る物体の位置計測方法
は、上記の課題を解決するために、請求項1〜4の物体
の位置計測方法であって、上記の特徴線部分を含む領域
をスポット状の光で照明することを特徴としている。
An object position measuring method according to a sixth aspect of the present invention is the object position measuring method according to any one of the first to fourth aspects in order to solve the above-mentioned problems, wherein an area including the characteristic line portion is set. It is characterized by illuminating with spot light.

【0016】請求項7の発明に係る物体の位置計測方法
は、上記の課題を解決するために、請求項1〜6の物体
の位置計測方法であって、上記の物体は車体であり、車
体の表面の特徴線を検出することを特徴としている。
In order to solve the above problems, the object position measuring method according to the invention of claim 7 is the object position measuring method according to any one of claims 1 to 6, wherein the object is a vehicle body. The feature is that the characteristic line on the surface of is detected.

【0017】[0017]

【作用】請求項1の構成によれば、特徴線部分を含む領
域を周囲の領域よりも明るく照明するので、得られた画
像から明るい領域を取り出すことにより、画像内におけ
る特徴線部分を含む領域を容易に、かつ、確実に捕らえ
ることができる。これにより、特徴線を容易に、かつ、
迅速に検出することが可能になる。その結果、特徴線上
の特徴点を正確に抽出できるので、物体の3次元位置を
正確に決定することができる。
According to the structure of the present invention, the area including the characteristic line portion is illuminated brighter than the surrounding area. Therefore, by extracting the bright area from the obtained image, the area including the characteristic line portion in the image is extracted. Can be easily and surely caught. With this, the characteristic line can be easily and
It becomes possible to detect quickly. As a result, the characteristic points on the characteristic line can be accurately extracted, so that the three-dimensional position of the object can be accurately determined.

【0018】請求項2の構成によれば、特徴線部分と、
特徴線部分とほぼ同色の背景部分とからなる領域を周囲
の領域よりも明るく照明するので、請求項1の作用に加
え、画像全体が同系統の色であっても、特徴線を安定し
て検出できる。
According to the structure of claim 2, a characteristic line portion,
Since the area consisting of the characteristic line portion and the background portion of substantially the same color is illuminated brighter than the surrounding area, the characteristic line can be stably provided even if the entire image is of the same system color. Can be detected.

【0019】請求項3の構成によれば、画像を2値画像
に、すなわち、2階調の白黒画像に変換するので、請求
項1の作用に加え、特徴線をより容易に、かつ、正確に
検出することができる。
According to the structure of claim 3, the image is converted into a binary image, that is, a black and white image having two gradations. Therefore, in addition to the function of claim 1, the characteristic line can be more easily and accurately obtained. Can be detected.

【0020】請求項4の構成によれば、画像と、予め記
憶しておいた物体の標本画像とのパターンマッチングを
行うので、請求項1の作用に加え、複雑なパターンを有
する特徴線でも正確に検出することができる。
According to the structure of claim 4, pattern matching is performed between the image and the sample image of the object stored in advance. Therefore, in addition to the function of claim 1, the characteristic line having a complicated pattern is also accurately measured. Can be detected.

【0021】請求項5の構成によれば、特徴線部分を含
む領域をスリット状の光で照明するので、請求項1、
2、3または4の作用に加え、明るい矩形領域の画像が
得られる。しかも、光源からの距離に応じて矩形領域の
幅及び光の強度が変化する。これにより、物体の手前の
面と、奥の面との境界線が特徴線になっている場合で
も、容易に特徴線を検出することができる。
According to the structure of claim 5, the area including the characteristic line portion is illuminated with the slit-shaped light.
In addition to the effects of 2, 3 or 4, a bright rectangular area image is obtained. Moreover, the width of the rectangular region and the light intensity change according to the distance from the light source. Accordingly, even if the boundary line between the front surface and the back surface of the object is the characteristic line, the characteristic line can be easily detected.

【0022】請求項6の構成によれば、特徴線部分を含
む領域をスポット状の光で照明するので、請求項1、
2、3または4の作用に加え、スリット状の光を使用す
る場合と比較して、光源を簡素化、低コスト化できる。
According to the structure of claim 6, the area including the characteristic line portion is illuminated with spot-like light.
In addition to the effects of 2, 3 or 4, the light source can be simplified and the cost can be reduced as compared with the case of using slit light.

【0023】請求項7の構成によれば、上記の物体は車
体であり、車体の表面の特徴線を検出するので、請求項
1、2、3、4、5または6の作用に加え、車体の特徴
線を容易に撮像できる。特に、塗装乾燥後の車体のよう
に、全体がほぼ同色である場合であっても、車体の3次
元位置計測を安定して行うことができる。
According to the configuration of claim 7, the object is a vehicle body, and the characteristic line on the surface of the vehicle body is detected. Therefore, in addition to the operation of claim 1, 2, 3, 4, 5 or 6, The feature line of can be easily imaged. In particular, even when the entire body has almost the same color as the vehicle body after coating and drying, the three-dimensional position measurement of the vehicle body can be stably performed.

【0024】[0024]

【実施例】本発明の一実施例について図1ないし図7に
基づいて説明すれば、以下の通りである。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The following will describe one embodiment of the present invention with reference to FIGS.

【0025】本実施例の物体の位置計測装置は、図2に
示すように、対象物1(物体)における特徴線部分を含
む領域を周囲の領域よりも明るく照明する光源2と、対
象物1を撮像するカメラ3と、カメラ3で得られた画像
から特徴線を検出し、特徴線上の特徴点を抽出する画像
処理装置4と、画像処理装置4で抽出された特徴点から
対象物1の3次元位置および姿勢を計算する3次元位置
姿勢認識装置5とを備えている。
As shown in FIG. 2, the object position measuring apparatus according to the present embodiment includes a light source 2 for illuminating an area including a characteristic line portion of an object 1 (object) brighter than a surrounding area, and an object 1. Of the object 1 from the image points obtained by the camera 3 and the image processing device 4 that detects the characteristic line from the image obtained by the camera 3 and extracts the characteristic points on the characteristic line. A three-dimensional position / orientation recognition device 5 that calculates a three-dimensional position and orientation is provided.

【0026】以下、対象物1として、自動車のボディを
例に挙げ、上記の位置計測装置を用いた位置計測方法に
ついて説明する。
The position measuring method using the above position measuring device will be described below by taking the body of an automobile as an example of the object 1.

【0027】塗装工程が完了した自動車のボディは、図
3に示すように、ボンネット11とルーフパネル13と
の間に、フロントウインドー用の開口部12を有してい
る。本実施例では、この開口部12におけるルーフパネ
ル13側のライン12aを特徴線とする。
As shown in FIG. 3, the body of the automobile after the painting process has an opening 12 for the front window between the hood 11 and the roof panel 13. In this embodiment, the line 12a on the roof panel 13 side in the opening 12 is used as a characteristic line.

【0028】位置計測を行う場合、図1のフローチャー
トに示すように、ステップ1(以下、ステップをSと略
す)として、ライン12aの少なくても一部分を含む領
域A(図3参照)をカメラ3で撮像する。本実施例で
は、ボディの上方に設けた光源2からライン12aの中
央部分を含む領域にスリット光を照射し、スリット光で
照射された部分を含む領域Aを上方からカメラ3で撮像
している。
When position measurement is performed, as shown in the flow chart of FIG. 1, as the step 1 (hereinafter, step is abbreviated as S), the area A (see FIG. 3) including at least a part of the line 12a is taken by the camera 3. Take an image with. In this embodiment, the slit light is emitted from the light source 2 provided above the body to the area including the central portion of the line 12a, and the area A including the portion irradiated with the slit light is captured by the camera 3 from above. .

【0029】カメラ3で得られた画像を図4に示す。画
像の下部がルーフパネル13であり、上部がフロアーパ
ネル14である。フロアーパネル14は、フロントウイ
ンドー用の開口部12を通して見えている。ルーフパネ
ル13とフロアーパネル14とを分けるように中央を横
切る帯が窓枠12bであり。この窓枠12bの上側のラ
イン12aが特徴線である。
The image obtained by the camera 3 is shown in FIG. The lower part of the image is the roof panel 13 and the upper part is the floor panel 14. The floor panel 14 is visible through the front window opening 12. A window frame 12b is a band crossing the center so as to separate the roof panel 13 and the floor panel 14. A line 12a on the upper side of the window frame 12b is a characteristic line.

【0030】画像の中央の矩形領域21a〜21cは、
スリット光で照射された領域であり、それぞれルーフパ
ネル13上、窓枠12b上、フロアーパネル14上の領
域である。これらの矩形領域21a〜21cは、光源2
により周囲の領域22よりも明るく照明されている。ス
リット光は拡散光であるため、矩形領域21a〜21c
の幅は異なっている。すなわち、光源2から遠いフロア
ーパネル14上の矩形領域21cの幅は、光源2に近い
ルーフパネル13上の矩形領域21a、21bの幅より
も広くなっている。したがって、矩形領域21cの光の
強さは、他の矩形領域21a、21bに比べて弱くな
る。
The rectangular areas 21a to 21c at the center of the image are
The areas illuminated by the slit light are the areas on the roof panel 13, the window frame 12b, and the floor panel 14, respectively. These rectangular regions 21a to 21c are the light sources 2
Is illuminated brighter than the surrounding area 22. Since the slit light is diffused light, the rectangular areas 21a to 21c
The width of is different. That is, the width of the rectangular area 21c on the floor panel 14 far from the light source 2 is wider than the width of the rectangular areas 21a, 21b on the roof panel 13 near the light source 2. Therefore, the light intensity of the rectangular area 21c is weaker than that of the other rectangular areas 21a and 21b.

【0031】このため、画像処理装置4において、上記
の光の強さを調べることにより、矩形領域21bと21
cとの境界線であるライン12a、すなわち、特徴線を
容易に識別できる。
Therefore, in the image processing apparatus 4, the rectangular areas 21b and 21b
It is possible to easily identify the line 12a that is the boundary line with c, that is, the characteristic line.

【0032】本実施例では、ライン12a上の特徴点を
より正確に求めるため、画像処理装置4において、画像
をまず2値化している(S2)。すなわち、矩形領域2
1a、21bの明るさよりも暗く、かつ、矩形領域21
c及び周囲の領域22の明るさよりも明るい閾値を定
め、画像内の画素毎の明るさと、この閾値とを比較する
ことにより2値化する。これにより、例えば、矩形領域
21a、21bが白で、矩形領域21c及び周囲の領域
22が黒の白黒画像、つまり、2値化画像を得ることが
できる。
In the present embodiment, in order to more accurately obtain the characteristic points on the line 12a, the image processing apparatus 4 first binarizes the image (S2). That is, the rectangular area 2
The rectangular area 21 is darker than the brightness of 1a and 21b.
A threshold that is brighter than the brightness of c and the surrounding area 22 is determined, and the brightness of each pixel in the image is compared with this threshold to perform binarization. As a result, for example, a black and white image in which the rectangular regions 21a and 21b are white and the rectangular region 21c and the surrounding region 22 are black, that is, a binarized image can be obtained.

【0033】次に、2値化画像上において、ライン12
aを横切る方向に、例えば、上下方向に、画素が白であ
るか黒であるかを順に読み取っていく(S3)。そし
て、黒から白に、または、白から黒に変化する部分を、
特徴点として抽出する(S4)。それから、その部分に
対応する画素の座標を画素値として記憶する(S5)。
Next, on the binarized image, the line 12
It is read in a direction crossing a, for example, in the vertical direction, whether the pixel is white or black in order (S3). And the part that changes from black to white, or from white to black,
It is extracted as a feature point (S4). Then, the coordinates of the pixel corresponding to that portion are stored as a pixel value (S5).

【0034】画像処理装置4で得られた画素値は、3次
元位置姿勢認識装置5に送られる。3次元位置姿勢認識
装置5では、自動車のボディの3次元位置および姿勢が
上記の画素値から計算される。
The pixel values obtained by the image processing device 4 are sent to the three-dimensional position / orientation recognition device 5. The three-dimensional position / orientation recognition device 5 calculates the three-dimensional position and orientation of the body of the automobile from the above pixel values.

【0035】以上のように、本実施例の位置計測方法で
は、特徴線としてのライン12aの少なくとも一部分を
含む矩形領域21a〜21cを周囲の領域22よりも明
るく照明している。このため、得られた画像から明るい
矩形領域21a〜21cを取り出すことにより、画像内
におけるライン12aを容易に、かつ、確実に捕らえる
ことができる。つまり、画像内における特徴線を容易
に、かつ、迅速に検出することが可能になる。
As described above, in the position measuring method of this embodiment, the rectangular regions 21a to 21c including at least a part of the line 12a as the characteristic line is illuminated brighter than the surrounding region 22. Therefore, by extracting the bright rectangular regions 21a to 21c from the obtained image, the line 12a in the image can be easily and surely captured. That is, it becomes possible to easily and quickly detect the characteristic line in the image.

【0036】また、画像内において、ルーフパネル13
と、ルーフパネル13の背景となるフロアーパネル14
とが同色であっても、ライン12aを容易に取り出すこ
とができる。
Further, in the image, the roof panel 13
And the floor panel 14 which is the background of the roof panel 13.
Even if and have the same color, the line 12a can be easily taken out.

【0037】さらに、カメラ3で得られた画像を2値画
像に変換することにより、周囲よりも明るい矩形領域2
1a〜21cだけを容易に取り出すことができる。そし
て、ライン12aを横切る方向に、画素が白であるか黒
であるかを順に読み取っていくことにより、ライン12
aをより容易に、かつ、正確に検出することができる。
Further, by converting the image obtained by the camera 3 into a binary image, the rectangular area 2 which is brighter than the surrounding area
Only 1a to 21c can be easily taken out. Then, by sequentially reading whether the pixel is white or black in the direction crossing the line 12a, the line 12
a can be detected more easily and accurately.

【0038】また、光源2からスリット光を照射してい
るので、矩形領域21b、21cの幅の変化を調べるこ
とにより、矩形領域21bと21cとの境界線であるラ
イン12a、すなわち、特徴線を容易に識別できる。
Further, since the slit light is emitted from the light source 2, the change in the width of the rectangular areas 21b and 21c is examined to determine the line 12a which is the boundary between the rectangular areas 21b and 21c, that is, the characteristic line. Easy to identify.

【0039】上記実施例では、スリット光を発散光にし
たが、平行光にしてもよい。平行光を使用する場合、図
5に示すように、光をルーフパネル13の面に対して斜
めに照射する。これにより、矩形領域21a〜21cの
幅は、光源2からの距離に応じて変化する。したがっ
て、上記と同様にして、ライン12aを識別できる。
Although the slit light is divergent light in the above embodiment, it may be parallel light. When parallel light is used, the light is obliquely applied to the surface of the roof panel 13, as shown in FIG. Thereby, the widths of the rectangular regions 21a to 21c change according to the distance from the light source 2. Therefore, the line 12a can be identified in the same manner as described above.

【0040】さらに、スリット光の代わりに、図6に示
すように、スポット光を使用してもよい。スポット光で
照射された領域は、円形になる。この場合も、スポット
光を、発散光にしても、平行光にしてもかまわない。平
行光を使用する場合、スリット光と同様に、光をルーフ
パネル13の面に対して斜めに照射する。
Further, instead of slit light, spot light may be used as shown in FIG. The area illuminated by the spot light is circular. Also in this case, the spot light may be divergent light or parallel light. When the parallel light is used, the light is obliquely applied to the surface of the roof panel 13 as with the slit light.

【0041】また、上記実施例では、ボディの表面にあ
るライン12aを特徴線として使用しているので、カメ
ラ2による撮像が容易になる。特に、塗装工程が完了し
た自動車のボディのように、全体が同色または同系統の
色である場合であっても、特徴線を自由に選択でき、カ
メラ2の配置についてもあまり制約を受けない。
Further, in the above embodiment, the line 12a on the surface of the body is used as the characteristic line, so that the image pickup by the camera 2 becomes easy. In particular, even if the entire body has the same color or the same color as in the body of a car that has completed the painting process, the characteristic lines can be freely selected and the arrangement of the camera 2 is not so restricted.

【0042】以上の実施例では、ライン12a上の特徴
点を抽出するために、2値化した画像上を所定の方向に
サーチしたが、この代わりに、図7に示すように、パタ
ーンマッチングを行ってもよい。
In the above embodiment, in order to extract the characteristic points on the line 12a, the binarized image is searched in a predetermined direction. Instead, pattern matching is performed as shown in FIG. You can go.

【0043】すなわち、S11、S12では、前記のS
1、S2と同様に、対象物1の撮像、画像処理装置4に
よる画像の2値化を行う。
That is, in S11 and S12, the above S
Similar to 1 and S2, the object 1 is imaged and the image processing device 4 binarizes the image.

【0044】次に、2値化画像と、画像処理装置4に予
め記憶しておいた対象物1の標本画像とのパターンマッ
チングを行うことにより、特徴線を識別する(S1
3)。そして、パターンマッチングしたときの2値化画
像と標本画像との相対移動量より、特徴点を抽出し(S
14)、特徴点に対応する画素の座標を画素値として記
憶する(S15)。
Next, the feature line is identified by performing pattern matching between the binarized image and the sample image of the object 1 stored in advance in the image processing device 4 (S1).
3). Then, feature points are extracted from the relative movement amount between the binarized image and the sample image when pattern matching is performed (S
14) The coordinates of the pixel corresponding to the feature point are stored as a pixel value (S15).

【0045】画像処理装置4で得られた画素値は、前記
実施例と同様に、3次元位置姿勢認識装置5に送られ、
3次元位置姿勢認識装置5において、対象物1の3次元
位置および姿勢が上記の画素値から計算される。
The pixel value obtained by the image processing device 4 is sent to the three-dimensional position / orientation recognition device 5 as in the above-mentioned embodiment.
In the three-dimensional position and orientation recognition device 5, the three-dimensional position and orientation of the object 1 are calculated from the above pixel values.

【0046】パターンマッチングによれば、複雑なパタ
ーンを有する特徴線でも、容易に、かつ、迅速に検出す
ることができる。
According to the pattern matching, even a characteristic line having a complicated pattern can be detected easily and quickly.

【0047】[0047]

【発明の効果】請求項1の発明に係る物体の位置計測方
法は、以上のように、特徴線部分を含む領域を周囲の領
域よりも明るく照明しながら物体を撮像する構成であ
る。
As described above, the object position measuring method according to the first aspect of the present invention is configured to image the object while illuminating the area including the characteristic line portion brighter than the surrounding area.

【0048】これによれば、得られた画像から明るい領
域を取り出すことにより、画像内における特徴線部分を
含む領域を容易に、かつ、確実に捕らえることができ
る。これにより、特徴線を容易に、かつ、迅速に検出す
ることが可能になる。その結果、特徴線上の特徴点を正
確に抽出できるので、物体の3次元位置を正確に決定す
ることができるという効果を奏する。
According to this, by extracting a bright area from the obtained image, the area including the characteristic line portion in the image can be easily and surely captured. This makes it possible to detect the characteristic line easily and quickly. As a result, the characteristic points on the characteristic line can be accurately extracted, so that the three-dimensional position of the object can be accurately determined.

【0049】請求項2の発明に係る物体の位置計測方法
は、以上のように、請求項1の物体の位置計測方法であ
って、特徴線部分と、特徴線部分とほぼ同色の背景部分
とからなる領域を周囲の領域よりも明るく照明する構成
である。
As described above, the object position measuring method according to the invention of claim 2 is the object position measuring method according to claim 1, wherein the characteristic line portion and the background portion of substantially the same color as the characteristic line portion are included. The area composed of is illuminated brighter than the surrounding area.

【0050】これによれば、請求項1の効果に加え、画
像全体が同系統の色であっても、特徴線を安定して検出
できるという効果を奏する。
According to this, in addition to the effect of claim 1, there is an effect that the characteristic line can be detected stably even if the entire image is of the same system color.

【0051】請求項3の発明に係る物体の位置計測方法
は、以上のように、請求項1の物体の位置計測方法であ
って、上記の画像を2値画像に変換することにより特徴
線を検出する構成である。
As described above, the object position measuring method according to the third aspect of the present invention is the object position measuring method according to the first aspect, wherein the characteristic line is formed by converting the image into a binary image. This is a configuration for detecting.

【0052】これによれば、請求項1の効果に加え、特
徴線をより容易に、かつ、正確に検出することができる
という効果を奏する。
According to this, in addition to the effect of claim 1, there is an effect that the characteristic line can be detected more easily and accurately.

【0053】請求項4の発明に係る物体の位置計測方法
は、以上のように、請求項1の物体の位置計測方法であ
って、上記の画像と、予め記憶しておいた物体の標本画
像とのパターンマッチングを行うことにより、特徴線を
検出する構成である。
As described above, the object position measuring method according to the invention of claim 4 is the object position measuring method of claim 1, wherein the image and the sample image of the object stored in advance are stored. The feature line is detected by performing pattern matching with and.

【0054】これによれば、請求項1の効果に加え、複
雑なパターンを有する特徴線でも正確に検出することが
できるという効果を奏する。
According to this, in addition to the effect of the first aspect, it is possible to accurately detect even a characteristic line having a complicated pattern.

【0055】請求項5の発明に係る物体の位置計測方法
は、以上のように、請求項1〜4の物体の位置計測方法
であって、上記の特徴線部分を含む領域をスリット状の
光で照明する構成である。
As described above, the object position measuring method according to the invention of claim 5 is the object position measuring method according to any one of claims 1 to 4, wherein the area including the characteristic line portion is slit-shaped light. It is configured to be illuminated by.

【0056】これにによれば、請求項1、2、3または
4の効果に加え、明るい矩形領域の画像が得られる。し
かも、光源からの距離に応じて矩形領域の幅及び光の強
さが変化する。これにより、物体の手前の面と、奥の面
との境界線が特徴線になっている場合でも、容易に特徴
線を検出することができるという効果を奏する。
According to this, in addition to the effect of claim 1, 2, 3 or 4, an image of a bright rectangular area can be obtained. Moreover, the width of the rectangular area and the light intensity change according to the distance from the light source. As a result, even if the boundary line between the front surface and the back surface of the object is the characteristic line, the characteristic line can be easily detected.

【0057】請求項6の発明に係る物体の位置計測方法
は、以上のように、請求項1〜4の物体の位置計測方法
であって、上記の特徴線部分を含む領域をスポット状の
光で照明する構成である。
As described above, the object position measuring method according to the invention of claim 6 is the object position measuring method according to any one of claims 1 to 4, wherein the region including the characteristic line portion is spot-shaped light. It is configured to be illuminated by.

【0058】これによれば、請求項1、2、3または4
の効果に加え、スリット状の光を使用する場合と比較し
て、光源を簡素化、低コスト化できるという効果を奏す
る。
According to this, claim 1, 2, 3 or 4
In addition to the above effect, the light source can be simplified and the cost can be reduced as compared with the case of using slit light.

【0059】請求項7の発明に係る物体の位置計測方法
は、以上のように、請求項1〜6の物体の位置計測方法
であって、上記の物体は車体であり、車体の表面の特徴
線を検出する構成である。
As described above, the object position measuring method according to the invention of claim 7 is the object position measuring method according to any one of claims 1 to 6, wherein the object is a vehicle body and the features of the surface of the vehicle body. This is a configuration for detecting a line.

【0060】これによれば、請求項1、2、3、4、5
または6の効果に加え、特徴線を容易に撮像できる。特
に、塗装乾燥後の車体のように、全体がほぼ同色である
場合であっても、車体の3次元位置計測を安定して行う
ことができるという効果を奏する。
According to this, claim 1, 2, 3, 4, 5
Alternatively, in addition to the effect of 6, the feature line can be easily imaged. In particular, even when the entire body has almost the same color as the vehicle body after coating and drying, the three-dimensional position measurement of the vehicle body can be stably performed.

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

【図1】本発明の一実施例を示すものであり、特徴線上
の特徴点の抽出方法を示フローチャートである。
FIG. 1 is a flow chart showing an embodiment of the present invention and showing a method of extracting feature points on a feature line.

【図2】物体の位置計測装置の概略の構成を示すブロッ
ク図である。
FIG. 2 is a block diagram showing a schematic configuration of an object position measuring device.

【図3】塗装工程が完了した自動車のボディの部分斜視
図である。
FIG. 3 is a partial perspective view of the body of the automobile after the painting process is completed.

【図4】図3の領域Aを撮像することにより得られた画
像である。
FIG. 4 is an image obtained by capturing an area A in FIG.

【図5】図3の自動車のボディのルーフパネルにスリッ
ト光(平行光)を斜めに照射した様子を示す説明図であ
る。
5 is an explanatory diagram showing a state in which slit light (parallel light) is obliquely applied to the roof panel of the vehicle body of FIG.

【図6】図3の自動車のボディのルーフパネルにスポッ
ト光を照射した様子を示す説明図である。
FIG. 6 is an explanatory diagram showing a state in which spot light is applied to the roof panel of the vehicle body of FIG.

【図7】特徴線上の特徴点の抽出方法の他の例を示フロ
ーチャートである。
FIG. 7 is a flowchart showing another example of a method of extracting a feature point on a feature line.

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

11 ボンネット 12 開口部 12a ライン(特徴線) 12b 窓枠 13 ルーフパネル 14 フロアーパネル 21a 矩形領域 21b 矩形領域 21c 矩形領域 22 周囲の領域 11 bonnet 12 opening 12a line (characteristic line) 12b window frame 13 roof panel 14 floor panel 21a rectangular area 21b rectangular area 21c rectangular area 22 surrounding area

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

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】物体を撮像し、得られた画像から特徴線を
検出し、特徴線上の特徴点を抽出することにより物体の
3次元位置を求める物体の位置計測方法において、 特徴線部分を含む領域を周囲の領域よりも明るく照明し
ながら物体を撮像することを特徴とする物体の位置計測
方法。
1. An object position measuring method for obtaining a three-dimensional position of an object by capturing an image of the object, detecting a characteristic line from the obtained image, and extracting characteristic points on the characteristic line, including a characteristic line portion. A method for measuring the position of an object, which comprises illuminating the area brighter than the surrounding area and imaging the object.
【請求項2】特徴線部分と、特徴線部分とほぼ同色の背
景部分とからなる領域を周囲の領域よりも明るく照明す
ることを特徴とする請求項1記載の物体の位置計測方
法。
2. The position measuring method for an object according to claim 1, wherein an area consisting of the characteristic line portion and a background portion having substantially the same color as that of the characteristic line portion is illuminated brighter than the surrounding area.
【請求項3】上記の画像を2値画像に変換することによ
り特徴線を検出することを特徴とする請求項1記載の物
体の位置計測方法。
3. A position measuring method for an object according to claim 1, wherein the feature line is detected by converting the image into a binary image.
【請求項4】上記の画像と、予め記憶しておいた物体の
標本画像とのパターンマッチングを行うことにより、特
徴線を検出することを特徴とする請求項1記載の物体の
位置計測方法。
4. The object position measuring method according to claim 1, wherein the feature line is detected by performing pattern matching between the image and the sample image of the object stored in advance.
【請求項5】特徴線部分を含む領域をスリット状の光で
照明することを特徴とする請求項1、2、3または4記
載の物体の位置計測方法。
5. The method for measuring the position of an object according to claim 1, wherein the area including the characteristic line portion is illuminated with slit-shaped light.
【請求項6】特徴線部分を含む領域をスポット状の光で
照明することを特徴とする請求項1、2、3または4記
載の物体の位置計測方法。
6. The method for measuring the position of an object according to claim 1, wherein the area including the characteristic line portion is illuminated with spot-shaped light.
【請求項7】上記の物体は車体であり、車体の表面の特
徴線を検出することを特徴とする請求項1、2、3、
4、5または6記載の物体の位置計測方法。
7. The object is a vehicle body, and characteristic lines on the surface of the vehicle body are detected.
The method for measuring the position of an object according to 4, 5, or 6.
JP6195560A 1994-08-19 1994-08-19 Object position measuring method Pending JPH0861922A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6195560A JPH0861922A (en) 1994-08-19 1994-08-19 Object position measuring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6195560A JPH0861922A (en) 1994-08-19 1994-08-19 Object position measuring method

Publications (1)

Publication Number Publication Date
JPH0861922A true JPH0861922A (en) 1996-03-08

Family

ID=16343151

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6195560A Pending JPH0861922A (en) 1994-08-19 1994-08-19 Object position measuring method

Country Status (1)

Country Link
JP (1) JPH0861922A (en)

Similar Documents

Publication Publication Date Title
KR0180082B1 (en) Inspection system and process
US7355692B2 (en) System and method for inspecting electrical circuits utilizing reflective and fluorescent imagery
JP4150390B2 (en) Appearance inspection method and appearance inspection apparatus
JPH1163959A (en) Surface-inspecting device
JP2002148195A (en) Surface inspection apparatus and surface inspection method
KR20070005968A (en) Method and apparatus for detecting defects of the welded part
CN115375610A (en) Detection method and device, detection equipment and storage medium
JPH0979988A (en) Surface defect inspecting device
JP3688520B2 (en) Surface inspection apparatus and surface inspection method
JP4293653B2 (en) Appearance inspection method
KR100517868B1 (en) Method for determining and evaluating defects in a sample surface
JPH0861922A (en) Object position measuring method
JP2002195958A (en) Surface inspecting method
JP4017585B2 (en) Paint surface inspection equipment
JPH1010053A (en) Inspection device for surface defect
JPH05298430A (en) Character inspecting method
JP2000205846A (en) Device and method for inspecting painting for unevenness
JP2020118572A (en) Surface defect inspection device and surface defect inspection method
JP2638121B2 (en) Surface defect inspection equipment
JP2955686B2 (en) Surface defect inspection equipment
JPH08159712A (en) Pattern recognition method
JPH0645845Y2 (en) Automatic surface smoothness inspection device
JPH0554107A (en) Welding state judging method with appearance inspection
JPH0814867A (en) Method of checking condition of outer surface and device therefor
JP2000055824A (en) Device for inspecting flaw in flat plate with hole