Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7718295B2 - Inspection method - Google Patents
[go: Go Back, main page]

JP7718295B2 - Inspection method - Google Patents

Inspection method

Info

Publication number
JP7718295B2
JP7718295B2 JP2022030089A JP2022030089A JP7718295B2 JP 7718295 B2 JP7718295 B2 JP 7718295B2 JP 2022030089 A JP2022030089 A JP 2022030089A JP 2022030089 A JP2022030089 A JP 2022030089A JP 7718295 B2 JP7718295 B2 JP 7718295B2
Authority
JP
Japan
Prior art keywords
hose
bracket
clip
inspection
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.)
Active
Application number
JP2022030089A
Other languages
Japanese (ja)
Other versions
JP2023125793A (en
Inventor
悟 古志
立寛 高橋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toyota Motor Corp
Original Assignee
Toyota 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 Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP2022030089A priority Critical patent/JP7718295B2/en
Publication of JP2023125793A publication Critical patent/JP2023125793A/en
Application granted granted Critical
Publication of JP7718295B2 publication Critical patent/JP7718295B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Description

本発明は、ホースとブラケットを接合するクリップの検査方法に関する。 The present invention relates to a method for inspecting clips that connect hoses and brackets.

近年、車両においてエンジン冷却水や燃料を通すために、ホースとブラケットを組み付けたものが利用される。ここで典型的には、ホースとブラケットの組付には、クリップが用いられる。そして、このホースとブラケットの組付の後に、クリップの組付状態が正常か否かの検査が行われる。 In recent years, vehicles have been using hoses and brackets assembled to carry engine coolant and fuel. Typically, clips are used to attach the hose to the bracket. After the hose and bracket are assembled, an inspection is carried out to ensure that the clip is properly attached.

特許文献1には、撮像手段により検査箇所の画像を取得して、検査箇所が正常であるか否かを判定する検査方法について記載されている。 Patent Document 1 describes an inspection method in which an image of the inspection area is acquired using an imaging means and whether the inspection area is normal or not is determined.

特開2001-082928号公報Japanese Patent Application Laid-Open No. 2001-082928

特許文献1に開示された検査方法では、撮像手段で撮像された際の対象にかかる画素数(ピクセル数)は取得可能であるが、この画素数が実寸法と対比できないという問題がある。そのため、検査項目によっては判定精度が担保できない場合がある。 The inspection method disclosed in Patent Document 1 can obtain the number of pixels (number of pixels) of an object when it is imaged by an imaging device, but there is a problem in that this number of pixels cannot be compared with the actual dimensions. As a result, it may not be possible to guarantee accurate judgment depending on the inspection item.

一方で、ホース、ブラケット、クリップを用いた組付状態が正常か否かの検査を、人による目視検査で行う場合には、検査時間が長くなり、生産性が低下するという問題がある。
本発明は、判定精度を向上させつつ効率良く検査を行う検査方法を提供するものである。
On the other hand, if the inspection of whether the assembly state using the hose, bracket, and clip is normal is performed by a human visual inspection, the inspection time becomes long, which causes a problem of reduced productivity.
The present invention provides an inspection method that improves the accuracy of determination and performs inspection efficiently.

本発明にかかる検査方法は、ホースと、ブラケットと、前記ホースと前記ブラケットとを接合するクリップの組付け状態を検査する検査方法であって、撮像手段は、前記組付け状態を撮像し、特定手段は、前記撮像手段により取得された取得画像から、前記クリップ及び前記ブラケットの夫々の位置及び夫々のサイズを特定し、演算手段は、前記特定手段により特定された前記クリップ及び前記ブラケットの夫々の位置及び夫々の前記取得画像におけるサイズと、あらかじめ取得された前記クリップと前記ブラケットの実空間におけるサイズとを利用して、前記取得画像中のピクセルと実空間の長さとを対応付けし、判定手段は、前記対応付けにより、前記取得画像におけるサイズから算出される検査対象箇所の実空間上における長さを用いて、前記組付け状態の良否判定を行う。
これにより、取得画像中のピクセルと検査対象物のサイズとを対応付けた状態で、自動的に良否判断を行うことができる。
The inspection method of the present invention is an inspection method for inspecting the assembly state of a hose, a bracket, and a clip joining the hose and the bracket, wherein an imaging means images the assembly state, an identification means identifies the respective positions and sizes of the clip and the bracket from the acquired image acquired by the imaging means, a calculation means associates the respective positions of the clip and the bracket and their respective sizes in the acquired image identified by the identification means with the sizes of the clip and the bracket in real space that were acquired in advance, and a determination means determines whether the assembly state is good or bad using the length in real space of the part to be inspected calculated from the size in the acquired image based on the association.
This allows automatic pass/fail judgment to be made while associating the pixels in the acquired image with the size of the object to be inspected.

これにより、判定精度を向上させつつ効率よく検査を実行することができる。 This allows for more efficient testing while improving accuracy.

検査装置の構成と検査対象物を示した構成図である。FIG. 1 is a diagram illustrating a configuration of an inspection device and an object to be inspected. ホースとブラケットとクリップが組付けられた状態の一例を示す図である。FIG. 10 is a diagram showing an example of an assembled state of a hose, a bracket, and a clip. 検査対象物について上下方向に沿った断面で示した断面図である。1 is a cross-sectional view showing an object to be inspected along a vertical direction. 検査対象物の外観の正面図である。FIG. 2 is a front view of the appearance of the inspection object. クリップが設けられた箇所の水平方向の断面図である。FIG. 10 is a horizontal cross-sectional view of the location where the clip is provided. 第1の検査項目~第5の検査項目と、規格の一例と、規格外の場合に発生する不具合の例を示した図である。FIG. 10 is a diagram showing first to fifth inspection items, an example of a standard, and an example of a defect that occurs when the standard is not met. 第2の検査項目について検査する手順を示したフローチャートである。10 is a flowchart showing a procedure for inspecting a second inspection item. ブラケットとクリップの取得画像中のピクセル数と実空間におけるサイズの一例を示した図である。10A and 10B are diagrams showing an example of the number of pixels in the acquired image of a bracket and a clip and their sizes in real space. 検査対象箇所までのブラケットとクリップのそれぞれの距離の比の一例を示した図である。FIG. 10 is a diagram showing an example of the ratio of the distance of the bracket to the distance of the clip to the inspection target location. 第4の検査項目について検査する手順を示したフローチャートである。10 is a flowchart showing a procedure for inspecting a fourth inspection item. クリップの爪部と楕円部の位置を示した斜視図である。FIG. 10 is a perspective view showing the positions of the claws and oval portions of the clip. 楕円部における楕円形状の算出を示す図である。FIG. 10 is a diagram illustrating calculation of an elliptical shape in an elliptical portion. 楕円上にクリップの爪があるものと仮定して爪部の角度を算出する状態を示す図である。FIG. 10 is a diagram showing a state in which the angle of the claw portion is calculated assuming that the claw of the clip is on an ellipse. 爪部の角度の算出について示した図である。10A and 10B are diagrams illustrating calculation of the angle of the claw portion. 第1の検査項目について検査する手順を示したフローチャートである。10 is a flowchart showing a procedure for inspecting a first inspection item. ホースとブラケットの円弧形状とこれらの位置関係の取得箇所を示す図である。10A and 10B are diagrams showing the arc shapes of the hose and the bracket and the locations where the positional relationship between them is acquired. 取得画像中に斜めに検査対象物が配される状態を示す図である。FIG. 10 is a diagram showing a state in which an inspection object is placed obliquely in an acquired image. 第1の中心座標と第2の中心座標とを直線で繋いだ状態を示す図である。FIG. 10 is a diagram showing a state in which the first center coordinates and the second center coordinates are connected by a straight line. 射影変換により取得画像から加工画像を作成した状態を示す図である。FIG. 10 is a diagram showing a state in which a processed image is created from an acquired image by projective transformation.

実施の形態1
以下、図面を参照して本発明の実施形態に係る検査装置と、検査対象について説明する。図1は、検査装置1と、検査対象である車両2を示した図である。ここで、車両2には、検査対象物であるホース21,ブラケット22,ホース21とブラケット22を接合するクリップ23(図2参照)が組付けられた状態である。また、ブラケット22は、上面視において円形状の底部22aと、上方への突出部22b(図3参照)が設けられているものとする。
First Embodiment
An inspection device and an inspection object according to an embodiment of the present invention will be described below with reference to the drawings. Fig. 1 shows an inspection device 1 and a vehicle 2 that is the inspection object. Here, a hose 21, a bracket 22, and a clip 23 (see Fig. 2) that joins the hose 21 and the bracket 22, which are the inspection objects, are assembled to the vehicle 2. The bracket 22 has a circular bottom 22a in top view and an upward protrusion 22b (see Fig. 3).

検査装置1は、車両2に検査対象の夫々が組付けられた状態を撮影する撮像手段11と、撮像手段11が取得した取得画像から、ブラケット22と、クリップ23の夫々の位置及び夫々のサイズを特定する特定手段12と、演算手段13と、ブラケット22と、クリップ23の夫々の位置及び夫々のサイズから良否判定を行う判定手段14と、を備える。 The inspection device 1 includes an imaging means 11 that captures images of the state in which each inspection object is assembled to the vehicle 2, an identification means 12 that identifies the position and size of each bracket 22 and clip 23 from the image captured by the imaging means 11, a calculation means 13, and a determination means 14 that determines whether the bracket 22 and clip 23 are good or bad based on the position and size of each bracket 22 and clip 23.

なお以下では、実空間について、水平方向を幅方向あるいは左右方向、この水平方向に垂直である高さ方向を上下方向と記載する場合がある。また、撮像手段11で取得された画像に対しては、画像上における左右方向を幅、画像上における上下方向を高さと記載する場合がある。 Note that below, with regard to real space, the horizontal direction may be referred to as the width direction or left-right direction, and the height direction perpendicular to the horizontal direction may be referred to as the up-down direction. Furthermore, with regard to images acquired by the imaging means 11, the left-right direction on the image may be referred to as the width, and the up-down direction on the image may be referred to as the height.

図1に示すように、撮像手段11にはカメラを用いることができる。また、特定手段12及び判定手段14には、主記憶装置や補助記憶装置、演算装置等が協働するコンピュータ3を利用することができる。このコンピュータでは、所定のプログラムを実行することにより、特定手段12、演算手段13、及び判定手段14の機能を実現することが可能である。 As shown in Figure 1, a camera can be used as the imaging means 11. Furthermore, a computer 3, which includes a main memory device, an auxiliary memory device, an arithmetic unit, and other components working together, can be used as the identification means 12 and the determination means 14. By executing a specific program, this computer can realize the functions of the identification means 12, the arithmetic unit 13, and the determination means 14.

撮像手段11として利用するカメラには、産業用カメラ、防犯用カメラ、webカメラを定置した状態で利用できる。これにより、これらの撮像手段11では、車両2に設けられたホース21,ブラケット22,ホース21とブラケット22を接合するクリップ23を撮影することができる。 The cameras used as the imaging means 11 can be industrial cameras, security cameras, or web cameras that are installed in a fixed position. This allows these imaging means 11 to capture images of the hose 21, bracket 22, and clip 23 that connects the hose 21 and bracket 22, which are installed on the vehicle 2.

また撮像手段11には、作業員が手持ちしたスマートフォン等のカメラ付き携帯端末を用いることができる。あるいは、作業員が身に着けたウェアラブルカメラを用いることができる。 The imaging means 11 can be a mobile device with a camera, such as a smartphone, held by the worker. Alternatively, a wearable camera worn by the worker can be used.

あるいは撮像手段11には、カメラをロボットハンドに把持させた状態で撮影することができる。この場合、ロボットハンドは、特定手段12や演算手段13、判定手段14を有しているコンピュータ3や、他のコンピュータにより動作制御を行い、検査対象との相対的な位置を調整できる。なお撮像手段11として用いられる撮像方法は、これらに限られず、他の方法であってもよい。 Alternatively, the imaging means 11 can capture images using a camera held by the robot hand. In this case, the robot hand's operation can be controlled by a computer 3 having an identification means 12, calculation means 13, and judgment means 14, or by another computer, and its position relative to the object to be inspected can be adjusted. Note that the imaging methods used by the imaging means 11 are not limited to these, and other methods may also be used.

なお、撮像手段11による車両2の撮影部位は、任意の箇所とすることができる。例えば、撮像手段11は、車両2の前方上部からボンネット内を撮影することや、車両2の後方上部から車両内を撮影することや、車両2の下方から撮影すること等が可能である。なお、撮像手段11には、静止画像又は動画像の少なくとも一方を取得するものを利用できるが、以下では静止画像を取得するものとして説明する。 The imaging means 11 can capture any location on the vehicle 2. For example, the imaging means 11 can capture images of the inside of the hood from the upper front of the vehicle 2, the interior of the vehicle from the upper rear of the vehicle 2, or from underneath the vehicle 2. The imaging means 11 can capture at least one of still images or moving images, but the following description will be given assuming that it captures still images.

特定手段12は、撮像手段11により取得された画像から、ブラケット22,クリップ23の位置及びサイズを特定する。 The identification means 12 identifies the position and size of the bracket 22 and clip 23 from the image acquired by the imaging means 11.

例えば、特定手段12は、撮像手段11で取得された取得画像において、ブラケット22の取得画像上の位置座標を(X1,Y1)、幅と高さを(x1,y1)と特定することができる。言い換えると、特定手段12は、取得画像上において、ブラケット22が、座標位置(X1、Y1)から、右方向にx1ピクセルの範囲、下方向にy1ピクセルの範囲にあることを特定することができる。典型的には、x1ピクセル及びy1ピクセルとは、それぞれ数十~数百ピクセルである。 For example, the identification means 12 can identify the position coordinates of the bracket 22 on the acquired image acquired by the imaging means 11 as (X1, Y1), and the width and height as (x1, y1). In other words, the identification means 12 can identify that the bracket 22 is located within a range of x1 pixels to the right and y1 pixels below the coordinate position (X1, Y1) on the acquired image. Typically, x1 pixels and y1 pixels are several tens to several hundreds of pixels each.

同様に、特定手段12は、撮像手段11で取得された取得画像において、クリップ23の画像上の位置座標を(X2,Y2)、左右方向の長さと上下方向の長さを(x2,y2)と特定することができる。言い換えると、特定手段12は、取得画像上において、クリップ23が座標位置(X2、Y2)から、右方向にx2ピクセル、下方向にy2ピクセルの範囲にあることを特定することができる。典型的には、x2ピクセル及びy2ピクセルとは、それぞれ数十~数百ピクセルである。 Similarly, the identification means 12 can identify the position coordinates of the clip 23 on the image acquired by the imaging means 11 as (X2, Y2), and the horizontal and vertical lengths as (x2, y2). In other words, the identification means 12 can identify that the clip 23 is located within a range of x2 pixels to the right and y2 pixels below the coordinate position (X2, Y2) on the acquired image. Typically, x2 pixels and y2 pixels are several tens to several hundreds of pixels each.

演算手段13は、特定手段12により画像上で特定された座標に基づき、判定手段14が判定を行うための演算を行う。 The calculation means 13 performs calculations based on the coordinates identified on the image by the identification means 12, allowing the determination means 14 to make a determination.

一例として、特定手段12では、クリップ23について、画像上では高さ60ピクセルで表示されていることを特定する。そして演算手段13では、あらかじめクリップ23は上下方向36mmで形成されているというサイズ情報を有しておくことで、画像上における1ピクセルは0.6mmであることを算出することができる。典型的には、このサイズ情報とは、クリップ23のサイズの規格値である。 As an example, the identification means 12 identifies that the clip 23 is displayed with a height of 60 pixels on the image. Then, the calculation means 13, having in advance size information that the clip 23 is formed with a height of 36 mm, can calculate that 1 pixel on the image is 0.6 mm. Typically, this size information is the standard value for the size of the clip 23.

判定手段14は、特定手段12により取得された画像中の対象物の幅や高さのピクセル数や、対象物間のピクセル数を対応させて、良否判定を行う。 The determination means 14 determines whether the image is good or bad by matching the number of pixels in the width and height of the object in the image acquired by the identification means 12, and the number of pixels between the objects.

一例として、特定手段12により特定された、画像上におけるブラケット22の底部22aとクリップ23の間における上下方向のピクセル間隔が6ピクセルであるものとする。ここで、演算手段13の演算により1ピクセルが0.6mmであると判明している場合、画像上の6ピクセルは、実空間における3.6mmとなる。 As an example, let us assume that the pixel spacing in the vertical direction between the bottom 22a of the bracket 22 and the clip 23 on the image, as determined by the determination means 12, is 6 pixels. Here, if the calculation means 13 determines that 1 pixel is 0.6 mm, then 6 pixels on the image will be 3.6 mm in real space.

ここで判定手段14では、あらかじめ、ブラケット22の底部22aとクリップ23の高さ方向における間隔が2~7mm以内であれば、ブラケット22とクリップ23の間隔について良品として判定することとする。これにより、判定手段14は、特定手段12で特定されたこれらの間隔が、画像上において6ピクセルであり実空間における3.6mm相当であることから、良品と判定することができる。 Here, the determination means 14 determines that the spacing between the bracket 22 and the clip 23 is good if the spacing in the height direction between the bottom 22a of the bracket 22 and the clip 23 is within 2 to 7 mm. As a result, the determination means 14 can determine that the product is good because the spacing identified by the identification means 12 is 6 pixels on the image, which is equivalent to 3.6 mm in real space.

次に、検査対象であるホース21と、ブラケット22と、クリップ23について図2~図5を用いて説明する。さらに、検査装置1を用いてこれらの検査対象に対して行う5つの検査項目の概要について説明する。 Next, the hose 21, bracket 22, and clip 23, which are the objects of inspection, will be described using Figures 2 to 5. Furthermore, an overview of the five inspection items performed on these objects using the inspection device 1 will be provided.

なお、図2は、検査対象物であるホース21とブラケット22の突出部22bを接続してクリップ23により締めて組付けた状態の外観を、斜め上方から示した図の一例である。また、図3はこれらの検査対象物について上下方向に沿った断面で示した断面図の一例であり、図4はこれらの検査対象物の外観を正面から示した正面図であり、図5はクリップ23の両先端部である爪部23a,23bの開き状態を示す図であって、クリップ23が設けられた箇所の水平方向の断面を示した断面図である。 Note that Figure 2 is an example of a view from diagonally above showing the external appearance of the inspection object, hose 21, and protrusion 22b of bracket 22 connected and fastened with clip 23. Also, Figure 3 is an example of a cross-sectional view showing a cross section along the vertical direction of these inspection objects, Figure 4 is a front view showing the external appearance of these inspection objects from the front, and Figure 5 is a diagram showing the open state of claws 23a and 23b, which are the two ends of clip 23, and is a cross-sectional view showing a horizontal cross section of the location where clip 23 is installed.

図2~図4に示すように、ホース21とブラケット22は、ホース21が上方、ブラケット22が下方となるように配される。また、ホース21とブラケット22の突出部22bは、それぞれ上下方向を軸方向とする円筒形状である。 As shown in Figures 2 to 4, the hose 21 and bracket 22 are arranged so that the hose 21 is on the upper side and the bracket 22 is on the lower side. Furthermore, the protruding portions 22b of the hose 21 and bracket 22 are each cylindrical with their axial direction extending in the vertical direction.

より具体的には図3に示すように、ブラケット22は、より広径に形成されている他の構成物品の上部に設けられており、突出部22bが上下方向を軸とする円筒状である。一方、ホース21の下部近傍は上下方向を軸とする中空の円筒状であり、ホース21の下部において、ホース21の内部に円筒状のブラケット22が挿入された状態となる。言い換えると、ホース21の下部の内周面と、ブラケット22の突出部22bの外周面と、が対向した状態で当接している。 More specifically, as shown in Figure 3, bracket 22 is attached to the top of another component that has a wider diameter, and protruding portion 22b is cylindrical with its axis in the vertical direction. Meanwhile, the portion near the bottom of hose 21 is hollow and cylindrical with its axis in the vertical direction, with cylindrical bracket 22 inserted inside hose 21 at the bottom of hose 21. In other words, the inner circumferential surface of the bottom of hose 21 and the outer circumferential surface of protruding portion 22b of bracket 22 abut against each other in an opposing relationship.

ここで図3に示すように、ブラケット22の突出部22bがホース21内に入り込むことになるが、この長さが十分でない状態、すなわち入りが浅い状態では、ホース21とブラケット22の突出部22bと、が抜けやすくなる。そのため、ホース21内にブラケット22の突出部22bが入り込んだ長さが十分か否かを、第1の検査項目とする。なお、第1の検査項目にかかる検査対象箇所を、図3における「A」として示している。 As shown in Figure 3, the protruding portion 22b of the bracket 22 will be inserted into the hose 21. However, if this length is insufficient, i.e., if the insertion is shallow, the hose 21 and the protruding portion 22b of the bracket 22 will easily come loose. Therefore, the first inspection item is whether the length of the protruding portion 22b of the bracket 22 inserted into the hose 21 is sufficient. The inspection point for the first inspection item is indicated as "A" in Figure 3.

また図2に示すように、ホース21と、ブラケット22の突出部22bと、が内外方向に配されている箇所において、クリップ23が、ホース21の周方向に巻き付けて配されている。 As shown in Figure 2, a clip 23 is arranged around the hose 21 in the circumferential direction at the location where the hose 21 and the protruding portion 22b of the bracket 22 are arranged inward and outward.

すなわちクリップ23は、上下方向に短く、水平方向に長く形成されており、ホース21の端部近傍において、ホース21の外周に沿ってホース21を締めながら巻き付けられる。これにより、クリップ23は、ホース21を内側方向に押圧して、ホース21とブラケット22の突出部22bとを固定することができる。 In other words, the clip 23 is short in the vertical direction and long in the horizontal direction, and is wrapped around the hose 21 near the end of the hose 21 while tightening it around the outer circumference of the hose 21. This allows the clip 23 to press the hose 21 inward, securing the hose 21 to the protruding portion 22b of the bracket 22.

ここで図3に示すように、クリップ23が配されている位置が適切でない場合、ホース21とブラケット22の突出部22bを十分に固定できず、ホース21がブラケット22の突出部22bから抜けやすくなる。そのため、クリップ23が配されている位置について、ホース21の端部からの距離が所定の距離であるか否かを、第2の検査項目とする。なお、第2の検査項目にかかる検査対象箇所を、図3の「B」として示している。 As shown in Figure 3, if the clip 23 is not positioned appropriately, the hose 21 and the protruding portion 22b of the bracket 22 will not be sufficiently fixed, and the hose 21 will be more likely to come loose from the protruding portion 22b of the bracket 22. Therefore, the second inspection item is whether the position where the clip 23 is positioned is a specified distance from the end of the hose 21. The inspection location for the second inspection item is indicated as "B" in Figure 3.

さらに、図2及び図5に示すように、クリップ23は延在方向の両端部に爪部23a,23bが設けられている。クリップ23では、この爪部23a,23bの近傍同士が噛み合うととともに、爪部23a,23bが所定の範囲で開いた状態で、ホース21とブラケット22の突出部22bとを締める。 Furthermore, as shown in Figures 2 and 5, the clip 23 has claws 23a and 23b at both ends in the extension direction. The clip 23 fastens the hose 21 to the protruding portion 22b of the bracket 22 when the claws 23a and 23b mesh with each other at their respective vicinity and are open within a predetermined range.

より具体的には、爪部23aと爪部23bの爪の開きが所定の角度以下であると、クリップ23が、ホース21とブラケット22の突出部22bとを締める力が十分ではなくなり、ホース21がブラケット22の突出部22bから抜けやすくなる。そのため、爪部23aと爪部23bとの爪の開きが、例えば30°以上である等の所定の角度以上であるか否かを、第3の検査項目とする。なお、第3の検査項目にかかる検査対象箇所を、図5の「C」として示している。 More specifically, if the gap between claws 23a and 23b is less than a predetermined angle, the force with which clip 23 fastens hose 21 to protruding portion 22b of bracket 22 will be insufficient, making it easier for hose 21 to come loose from protruding portion 22b of bracket 22. Therefore, the third inspection item is whether the gap between claws 23a and 23b is greater than a predetermined angle, such as 30 degrees or more. The inspection location for the third inspection item is indicated as "C" in Figure 5.

一方で、爪部23aと爪部23bとの爪の開きが広くなりすぎると、他部品との干渉が発生する場合があり、他の部品等を傷付ける原因となり得る。そのため、爪部23aと爪部23bの爪の開きが、例えば120°以下である等の所定の角度以下であるか否かを、第4の検査項目とする。なお、第4の検査項目にかかる検査対象箇所を、図5の「D」として示している。 On the other hand, if the gap between claw portion 23a and claw portion 23b is too wide, interference with other components may occur, potentially causing damage to those components. Therefore, the fourth inspection item is whether the gap between claw portion 23a and claw portion 23b is equal to or less than a predetermined angle, such as 120° or less. The area to be inspected for the fourth inspection item is indicated as "D" in Figure 5.

また、図4に示すように、ホース21の外周面と、ブラケット22の底部22aには、それぞれ外周面に互いの位置を合わせるためのペイントマーク21a,22cが付されている。ホース21とブラケット22のペイントマーク21a,22cは、それぞれが合致した位置で接続された場合に、ホース21のねじれが十分に小さくなるように設けられている。 As shown in Figure 4, the outer peripheral surface of the hose 21 and the bottom 22a of the bracket 22 are provided with paint marks 21a and 22c, respectively, to align the two. The paint marks 21a and 22c on the hose 21 and bracket 22 are provided so that twisting of the hose 21 is sufficiently minimized when the hose 21 and bracket 22 are connected in the correct positions.

言い換えると、これらのペイントマーク同士の位置がずれた状態でホース21とブラケット22と、を接続すると、ホース21のねじれが大きくなり、他の部品等との干渉が発生して傷を付ける原因となり得る。そのため、ホース21のペイントマーク21aと、ブラケット22の底部22aに設けられたペイントマーク22cの相対位置のずれが所定の範囲内であるか否かを、第5の検査項目とする。なお、第5の検査項目にかかる検査対象箇所を、図4の「E」として示している。 In other words, if the hose 21 and bracket 22 are connected with these paint marks misaligned, the hose 21 will become twisted significantly, which may cause interference with other components and result in damage. Therefore, the fifth inspection item is whether the relative positional deviation between the paint mark 21a on the hose 21 and the paint mark 22c on the bottom 22a of the bracket 22 is within a specified range. The inspection location for the fifth inspection item is indicated as "E" in Figure 4.

ここで、ホース21のペイントマーク21aと、ブラケット22のペイントマーク22cは、ほぼ正面側に付されている。この正面側とは、ホース21にクリップ23が巻かれた状態となったときに爪部23a,23bが配される方向である。すなわち撮像手段11では、爪部23a,23bが十分に映るように撮影範囲に設定すると、ホース21のペイントマーク21aとブラケット22のペイントマーク22cも同時に撮影範囲に含まれる。 Here, the paint mark 21a on the hose 21 and the paint mark 22c on the bracket 22 are placed almost on the front side. This front side is the direction in which the claws 23a and 23b are located when the clip 23 is wrapped around the hose 21. In other words, when the imaging range of the imaging means 11 is set so that the claws 23a and 23b are sufficiently visible, the paint mark 21a on the hose 21 and the paint mark 22c on the bracket 22 are also included in the imaging range.

なお、ブラケット22の底部22aのペイントマーク22cは、例えば底部22aの外周部近傍に付されていてもよく、突出部22b等の他の箇所に付されていても良いが、ホース21とブラケット22が好適に組付けられた状態で、撮像手段11により取得される取得画像上に含まれる位置とする。 The paint mark 22c on the bottom 22a of the bracket 22 may be placed, for example, near the outer periphery of the bottom 22a, or at another location such as the protrusion 22b, but should be located in a position that is included in the image captured by the imaging means 11 when the hose 21 and bracket 22 are properly assembled.

図6は、第1の検査項目~第5の検査項目と、規格の一例と、規格から外れた状態でホース21、ブラケット22、クリップ23が配された場合の不具合の例をまとめた図である。 Figure 6 summarizes the first to fifth inspection items, an example of the standard, and an example of a problem that may occur if the hose 21, bracket 22, and clip 23 are arranged in a manner that does not comply with the standard.

次に、この第1の検査項目~第5の検査項目のそれぞれに関し、検査装置1を用いて検査する方法の詳細な例を説明する。 Next, we will explain detailed examples of how to perform inspections using the inspection device 1 for each of the first through fifth inspection items.

第1の検査項目~第5の検査項目を行う際において、撮像手段11による検査対象の撮影は、ホース21,ブラケット22,クリップ23が十分に撮影範囲に入る状態で行う。典型的には、撮像手段11は、検査対象物に対して正面側かつ斜め上方からの撮影とする。例えば、撮像手段11は、正面側かつ水平方向から斜め30°程度の斜め上方から撮影対象を撮影する状態とすることができるが、これに限られない。 When performing the first to fifth inspection items, the imaging unit 11 photographs the inspection object so that the hose 21, bracket 22, and clip 23 are sufficiently within the imaging range. Typically, the imaging unit 11 photographs the inspection object from the front and from an angle above. For example, the imaging unit 11 can photograph the inspection object from the front and from an angle above at an angle of approximately 30° from the horizontal, but this is not limited to this.

以下では、各検査項目の検査方法の説明を判りやすくするため、第2,第4,第3,第1,第5の検査項目の順に説明する。 Below, to make it easier to understand the explanation of the testing methods for each test item, we will explain the second, fourth, third, first, and fifth test items in that order.

<第2の検査項目>
最初に、検査装置1を用いた第2の検査項目について説明する。第2の検査項目では、クリップ23が配されている位置について、ホース21の端部からの距離が所定の距離であるか否かを検査する。
<Second inspection item>
First, a description will be given of the second inspection item using the inspection device 1. In the second inspection item, it is inspected whether the distance from the end of the hose 21 to the position where the clip 23 is arranged is a predetermined distance.

なお、第1の検査項目~第5の検査項目のうちの複数について、人の目ではなく、検査装置1を用いて行う場合の共通の課題として、撮像手段11により取得した取得画像のピクセルと、実空間での長さと、を一致させることが挙げられる。ここでは第2の検査項目の検査方法の手順を説明するとともに、取得画像のピクセルと実空間での長さの対応をとることについて説明する。 Note that a common issue when performing multiple of the first through fifth inspection items using the inspection device 1 rather than the human eye is matching the pixels in the image acquired by the imaging means 11 with lengths in real space. This section explains the inspection method steps for the second inspection item, as well as how to match the pixels in the acquired image with lengths in real space.

図7は、検査装置1を用い、第2の検査項目について検査する手順を示したフローチャートである。なお上述したように、この場合の良品条件の例として、ホース21の端部からクリップ23までの距離が2~7mm以内であると設定することができる。 Figure 7 is a flowchart showing the procedure for inspecting the second inspection item using the inspection device 1. As mentioned above, an example of a non-defective product condition in this case can be set as a distance from the end of the hose 21 to the clip 23 being within 2 to 7 mm.

まず作業者は、対象物の規格上のサイズを事前に図面等から確認し、サイズの情報を取得しておく(ステップS71)。 First, the worker checks the standard size of the object in advance using drawings, etc., and obtains size information (step S71).

ここで、後の工程では撮像手段11により取得された取得画像中のピクセルと実空間の長さとの換算を行うが、検査対象物が1つだけであると画像中のピクセルと実空間の長さとの換算の精度が低くなるため、2つの対象物でこれらの比率を計算する。 In a later step, the pixels in the image captured by the imaging means 11 are converted to lengths in real space. However, if there is only one object to be inspected, the accuracy of the conversion between pixels in the image and lengths in real space will be low, so the ratio is calculated for two objects.

ここでは、1つ目の対象物はブラケット22、2つ目の対象物はクリップ23とする。具体的には、実空間におけるブラケット22の上下の長さ、及び、クリップ23の上下の長さの情報をあらかじめ取得しておき、利用するものとして説明する。 In this example, the first object is the bracket 22, and the second object is the clip 23. Specifically, this explanation assumes that information on the vertical lengths of the bracket 22 and the clip 23 in real space is acquired in advance and used.

検査装置1では、計測したい検査対象物の検知を行う(ステップS72)。具体的には、撮像手段11により検査対象物の撮影を行い、特定手段12により取得画像上における対象箇所のサイズと位置の特定を行う。このとき撮像手段11は、撮像手段11から検査対象物であるホース21,ブラケット22及びクリップ23までの距離が、極力離れない状態で撮影を行う。例えば、撮像手段11による取得画像中に、ブラケット22の下端からクリップ23の上端までが十分に長く撮像される状態とする。 The inspection device 1 detects the inspection object to be measured (step S72). Specifically, the imaging means 11 captures an image of the inspection object, and the identification means 12 identifies the size and position of the target area on the captured image. The imaging means 11 captures the image while keeping the distance from the imaging means 11 to the inspection objects (hose 21, bracket 22, and clip 23) as close as possible. For example, the image captured by the imaging means 11 should capture a sufficiently long image from the bottom end of the bracket 22 to the top end of the clip 23.

特定手段12により特定される取得画像上における対象箇所のサイズと位置とは、ここでは画像上におけるブラケット22の上下の長さ及び位置、クリップ23の上下の長さ及び位置、ホース21の端部からクリップ23までの長さと位置、である。ここで図8は、撮像手段11により取得される取得画像を簡略化した図である。図8に示すように、特定手段12では、取得画像上におけるブラケット22の上下の長さが690ピクセル、クリップ23の上下の長さは70ピクセル、ホース21の端部からクリップ23までの長さが100ピクセルであると特定するとともに、それぞれの位置を特定した状態となる。 The size and position of the target area on the acquired image identified by the identification means 12 here refers to the vertical length and position of the bracket 22 on the image, the vertical length and position of the clip 23, and the length and position from the end of the hose 21 to the clip 23. Figure 8 is a simplified diagram of the acquired image acquired by the imaging means 11. As shown in Figure 8, the identification means 12 identifies the vertical length of the bracket 22 on the acquired image as 690 pixels, the vertical length of the clip 23 as 70 pixels, and the length from the end of the hose 21 to the clip 23 as 100 pixels, and the respective positions have been identified.

このとき演算手段13は、この特定手段12によるブラケット22とクリップ23の位置座標の特定により、第2の検査項目の検査対象箇所(図6の検査内容)であるホース21の端部からクリップ23までの箇所(図4における「B」)は、ブラケット22に比べてクリップ23の近くに配されており、その距離の比が1:4であることを算出することができる。 At this time, the calculation means 13, by using the identification means 12 to identify the position coordinates of the bracket 22 and clip 23, can calculate that the location from the end of the hose 21 to the clip 23 ("B" in Figure 4), which is the inspection target area for the second inspection item (inspection content in Figure 6), is located closer to the clip 23 than the bracket 22, and that the distance ratio is 1:4.

より具体的な一例として、図9に示すように、演算手段13では、特定手段12により特定されたクリップ23の上下方向における中央の位置座標(第1の位置座標)と、ブラケット22の上下方向における中央の位置座標(第2の位置座標)と、ホース21の端部からクリップ23の間隔の上下方向における中央の位置座標(第3の位置座標)とを取得しておく。そして、演算手段13では、第1の位置座標と第3の位置座標の上下方向の距離と、第2の位置座標と第3の位置座標の上下方向の距離との差を算出する。これにより、距離の比が1:4であると算出される。 As a more specific example, as shown in FIG. 9, the calculation means 13 acquires the vertical center position coordinate (first position coordinate) of the clip 23 identified by the identification means 12, the vertical center position coordinate (second position coordinate) of the bracket 22, and the vertical center position coordinate (third position coordinate) of the distance from the end of the hose 21 to the clip 23. The calculation means 13 then calculates the difference between the vertical distance between the first position coordinate and the third position coordinate and the vertical distance between the second position coordinate and the third position coordinate. This results in a distance ratio of 1:4.

次に、演算手段13では、ステップS72おいて特定手段12により特定された検査対象物の位置とサイズの情報を利用して、取得画像中の位置ごとのピクセルと、実空間の長さの比率を算出する(ステップS73)。 Next, the calculation means 13 uses the information on the position and size of the object to be inspected identified by the identification means 12 in step S72 to calculate the ratio of the pixel for each position in the acquired image to the length in real space (step S73).

例えば、演算手段13は、あらかじめ既知であるブラケット22の実空間での規格上の上下の長さが100mm、取得画像内での長さが690ピクセルであることから、1mmは6.9ピクセルに相当していると算出することができる。一方で、演算手段13は、既知であるクリップ23の実空間での規格上での上下の長さが10mm、取得画像内での長さが70ピクセルであることから、1mmは7ピクセルに相当していると算出することができる。 For example, the calculation means 13 can calculate that 1 mm corresponds to 6.9 pixels because the standard vertical length of the bracket 22 in real space, which is known in advance, is 100 mm and its length in the acquired image is 690 pixels. On the other hand, the calculation means 13 can calculate that 1 mm corresponds to 7 pixels because the standard vertical length of the clip 23 in real space, which is known in advance, is 10 mm and its length in the acquired image is 70 pixels.

そして演算手段13は、ステップS72で算出した距離の比が1:4であることからこの比率を利用し、ホース21の端部からクリップ23の間隔の位置においては、1mmは6.98ピクセルであると算出する。 Then, since the distance ratio calculated in step S72 is 1:4, the calculation means 13 uses this ratio and calculates that 1 mm is 6.98 pixels at the distance from the end of the hose 21 to the clip 23.

さらに演算手段13は、特定手段12により特定されたホース21の端部からクリップ23の間隔が、取得画像中において100ピクセルであることから、実空間では14.32mmであると算出することができる。 Furthermore, the calculation means 13 can calculate that the distance from the end of the hose 21 identified by the identification means 12 to the clip 23 is 14.32 mm in real space, since it is 100 pixels in the acquired image.

最後に、判定手段14では、ステップS73で算出された、実空間におけるホース21の端部からクリップ23の間隔が、良品条件に合致しているか否かを判定する(ステップS74)。ここでは良品であるための条件は2~7mm以内としており、ステップS73においてホース21の端部からクリップ23の間隔が実空間では14.32mmであると算出されていることから、判定手段14では、良品ではない旨の判定を行うことができる。 Finally, the determination means 14 determines whether the distance between the end of the hose 21 and the clip 23 in real space, calculated in step S73, meets the conditions for a good product (step S74). Here, the condition for a good product is within 2 to 7 mm, and since the distance between the end of the hose 21 and the clip 23 in real space is calculated to be 14.32 mm in step S73, the determination means 14 can determine that the product is not good.

<第4の検査項目>
次に、第4の検査項目、すなわち、クリップ23の爪部23aと爪部23bの爪の開きが所定の角度以下であるか否かについて検査する方法について説明する。図10は、検査装置1を用い、第4の検査項目の検査の手順を示した図である。
<Fourth inspection item>
Next, a fourth inspection item, i.e., a method for inspecting whether the gap between the claws 23a and 23b of the clip 23 is equal to or smaller than a predetermined angle, will be described. Fig. 10 is a diagram showing the inspection procedure for the fourth inspection item using the inspection device 1.

図11に示すように、特定手段12は、クリップ23の爪部23a,23b及び楕円部21bの位置及びサイズを特定する(ステップS101)。この特定手段12による各部の特定には、ディープラーニング等のAI学習を利用することができる。 As shown in FIG. 11, the identification means 12 identifies the position and size of the claw portions 23a, 23b and the elliptical portion 21b of the clip 23 (step S101). AI learning such as deep learning can be used to identify each part by the identification means 12.

ここで楕円部21bとは、上面視の断面ではほぼ円形状であるホース21が、取得画像上において楕円形状に撮像される箇所である。この楕円部21bは、ホース21にクリップ23が巻かれた箇所の上方近傍とする。 Here, the elliptical portion 21b refers to the portion of the hose 21 that is approximately circular in cross section when viewed from above, but is captured as an ellipse in the acquired image. This elliptical portion 21b is located near the upper portion of the hose 21 where the clip 23 is wrapped around it.

図12に示すように、演算手段13は、楕円部21bの楕円形状を算出する(ステップS102)。具体的には、演算手段13は、楕円部21bの短径rの長さと、長径rの長さから、ホース21の斜め方向の傾き具合を算出する。 12, the calculation means 13 calculates the elliptical shape of the elliptical portion 21b (step S102). Specifically, the calculation means 13 calculates the degree of inclination of the hose 21 in the oblique direction from the length of the minor axis rx and the length of the major axis ry of the elliptical portion 21b.

次に、演算手段13は、特定手段12により取得された爪部23a,23bの位置情報を利用し、この楕円上に爪部23a,23bがあるものと仮定する。すなわち、演算手段13は、楕円の中央部からの爪部23a,23bの角度計算を行うことができる位置座標を、楕円上に設定する(ステップS103)。 Next, the calculation means 13 uses the position information of the claws 23a and 23b acquired by the identification means 12 and assumes that the claws 23a and 23b are located on this ellipse. That is, the calculation means 13 sets position coordinates on the ellipse that allow calculation of the angles of the claws 23a and 23b from the center of the ellipse (step S103).

そして図13に示すように、演算手段13は、ステップS103により設定した、爪部23a,23bの楕円上の位置座標と、三角関数を用いて、楕円の中央部からの角度θ1,θ2を算出する(ステップS104)。 Then, as shown in FIG. 13, the calculation means 13 calculates the angles θ1 and θ2 from the center of the ellipse using the position coordinates on the ellipse of the claws 23a and 23b set in step S103 and trigonometric functions (step S104).

ここで、ステップS103及びS104による角度θ1,θ2の算出手順の詳細について説明する。ここで図14(a)に示すように、楕円上における点P(x,y)を考えると、
により表すことができる。ここでr,rは、ホース21の楕円部21bの検知に合わせて取得できる。
Here, the details of the calculation procedure of the angles θ1 and θ2 in steps S103 and S104 will be described. Considering a point P(x, y) on an ellipse as shown in FIG. 14(a),
Here, r x and ry can be obtained in accordance with the detection of the elliptical portion 21 b of the hose 21 .

一方で、例えば爪部23aの座標P’(x’,y’)は、特定手段12による爪部23a,23bの位置の検知により算出されるが、このとき図14(b)に示すように、
により表すことができる。
On the other hand, for example, the coordinates P'(x', y') of the claw portion 23a are calculated by detecting the positions of the claw portions 23a and 23b by the specifying means 12. At this time, as shown in FIG. 14(b),
It can be expressed as:

ここで、θ1+θ2をθ’とすると、
により表すことができる。
Here, if θ1 + θ2 is θ', then
It can be expressed as:

判定手段14は、ステップS103,ステップS104により算出されたθ’が、良品条件に合致しているか否かを判定する(ステップS105)。一例として、判定手段14は、θ’が120°以内であれば、良品であるものとして判定する。 The determination means 14 determines whether θ' calculated in steps S103 and S104 meets the quality criteria (step S105). As an example, the determination means 14 determines that the product is quality if θ' is within 120°.

<第3の検査項目>
ここで第3の検査項目、すなわち、爪部23aと爪部23bとの爪の開きが所定の角度以上であるか否かを検査する方法については、第4の検査項目と同様の方法で行うことができる。
<Third inspection item>
Here, the third inspection item, i.e., the method for inspecting whether the gap between claw portion 23a and claw portion 23b is equal to or greater than a predetermined angle, can be performed in the same manner as the fourth inspection item.

この場合、判定手段14は、図10に示したステップS105による判定において、ステップS103,ステップS104により算出されたθ’が、良品条件である30°以上であるか否かにより、判定を行うことができる。 In this case, the determination means 14 can make a determination in step S105 shown in FIG. 10 based on whether θ' calculated in steps S103 and S104 is equal to or greater than 30°, which is the acceptable product condition.

<第1の検査項目>
次に、第1の検査項目、すなわち、ホース21内にブラケット22の突出部22bが入り込んだ長さが十分か否かを検査する方法について説明する。図15は、検査装置1を用い、第1の検査項目の検査の手順を示した図である。
<First inspection item>
Next, a description will be given of the first inspection item, i.e., a method for inspecting whether or not the protruding portion 22b of the bracket 22 is sufficiently inserted into the hose 21. Fig. 15 is a diagram showing the inspection procedure for the first inspection item using the inspection device 1.

事前準備として、検査装置1は、検査対象物の位置情報の正解データの作成を行うとともに、作成した正解データを用いて学習を行う。(ステップS151)。 As a preliminary step, the inspection device 1 creates correct answer data for the position information of the object being inspected and performs learning using the created correct answer data (step S151).

具体的には、検査装置1は、あらかじめ撮像手段11で取得した画像と、その画像内に写っているホース21とブラケット22のラベリングを行うことにより、学習のための複数の正解データ、すなわち位置情報のセットづくりを行う。 Specifically, the inspection device 1 creates multiple sets of correct answer data, i.e., positional information, for learning by labeling images previously acquired by the imaging means 11 and the hose 21 and bracket 22 that appear in the images.

このとき特定手段12では、ラベリングされるもの同士の位置が近接している場合には、最初は、ラベリング範囲が狭くなるようにラベリングを行い、後にラベリングを狭くした分を追加するという手順とすることができる。なお特定手段12では、このように狭い範囲からのラベリングとすることによって、ラベリング精度の向上をはかることができる。特定手段12は、このラベリングを利用して作成される正解データに関して、ホース21やブラケット22の位置の情報及びサイズの情報を、位置情報として含めることができる。 In this case, if the objects to be labeled are located close to each other, the identification means 12 can first label the objects so that the labeling range is narrower, and then add the narrower labeling range later. By labeling from such a narrow range, the identification means 12 can improve labeling accuracy. The identification means 12 can include position information and size information for the hose 21 and bracket 22 in the correct answer data created using this labeling.

そして検査装置1は、この正解データを、ホース21とブラケット22の位置の学習に用いる。以下では、検査装置1は、複数の正解データからホース21とブラケット22の位置情報について十分に学習を行ったものとして説明する。 The inspection device 1 then uses this correct answer data to learn the positions of the hose 21 and bracket 22. In the following, the inspection device 1 will be described as having fully learned the position information of the hose 21 and bracket 22 from multiple correct answer data.

次に、実際の検査対象であるホース21とブラケット22が写った取得画像を用いた処理を行う。 Next, processing is performed using the acquired images showing the actual inspection targets, the hose 21 and bracket 22.

撮像手段11は、ホース21とブラケット22が写った画像を取得する。そして、特定手段12は、ホース21とブラケット22の位置検出を行う。具体的には、特定手段12では、ホース21と、ブラケット22の底部22aについて、各物体の位置と種類を特定する(ステップS152)。 The imaging means 11 captures an image of the hose 21 and bracket 22. The identification means 12 then detects the positions of the hose 21 and bracket 22. Specifically, the identification means 12 identifies the position and type of each object, including the hose 21 and the bottom 22a of the bracket 22 (step S152).

特に、特定手段12は、取得画像におけるホース21の下端部の円弧形状と、ブラケット22の底部22aの外周の円弧形状について、それぞれ物体検出による特定を行う。図16は、判定手段14による判定を行うために、特定手段12により特定される2つの円弧形状と、これらの位置関係を示している。 In particular, the identification means 12 uses object detection to identify the arc shape of the lower end of the hose 21 and the arc shape of the outer periphery of the bottom 22a of the bracket 22 in the acquired image. Figure 16 shows the two arc shapes identified by the identification means 12 and their positional relationship for determination by the determination means 14.

ここで、特定手段12では、ステップS151で学習したホース21とブラケット22の位置情報を利用して、ホース21とブラケット22の位置の特定を行うことができる。 Here, the identification means 12 can identify the positions of the hose 21 and bracket 22 using the position information of the hose 21 and bracket 22 learned in step S151.

一例として、特定手段12では、ステップS151において学習されたホース21とブラケット22の位置関係が、ステップS152において取得された画像のホース21とブラケット22の位置関係とほぼ同じであるものとして、物品の位置の特定の処理を行うことができる。すなわち、特定手段12では、ステップS152で取得された取得画像を、ステップS151で正解データを用いて学習した内容と比較し、ホース21とブラケット22の位置を推測して処理を行うことで、S152で取得された画像中のホース21とブラケット22の位置の特定することができる。 As an example, the identification means 12 can perform processing to identify the position of the object by assuming that the positional relationship between the hose 21 and the bracket 22 learned in step S151 is substantially the same as the positional relationship between the hose 21 and the bracket 22 in the image acquired in step S152. In other words, the identification means 12 can identify the positions of the hose 21 and the bracket 22 in the image acquired in S152 by comparing the image acquired in step S152 with the content learned using the correct answer data in step S151 and processing the positions of the hose 21 and the bracket 22.

なお、特定手段12は、このステップS152の処理についてもステップS151と同様に、対象の物体に対して最初に狭い範囲で位置の特定を行い、その後、特定の範囲を広げていくといった手順をとることが可能であるが、これに限られず、特定の手順は自在に変更可能である。 In the same manner as in step S151, the identification means 12 can perform the process of step S152 by first identifying the position of the target object within a narrow range, and then expanding the identified range, but this is not limited to this, and the identification procedure can be freely changed.

ここで、特定手段12により特定された、取得画像におけるホース21の下端部の手前側半周の円弧形状の上下方向のピクセル数をαピクセル、ブラケット22の底部22aの外周の手前側半周の円弧形状の上下方向のピクセル数をβピクセルする。この手前側とは、撮像手段11により撮影が行われる場合に、撮像手段11に近接する側である。 Here, the number of pixels in the vertical direction of the arc shape of the near half circumference of the lower end of the hose 21 in the acquired image identified by the identification means 12 is set to α pixels, and the number of pixels in the vertical direction of the arc shape of the near half circumference of the outer periphery of the bottom 22a of the bracket 22 is set to β pixels. This near side is the side closest to the imaging means 11 when capturing an image using the imaging means 11.

さらに、ホース21の下端部の円弧形状として特定された箇所のうち上端部の座標と、ブラケット22の底部22aの外周の円弧形状として特定された箇所のうち下端部の座標と、の上下方向における位置の差をγピクセルとする。 Furthermore, the difference in vertical position between the coordinates of the upper end of the portion identified as the arc shape of the lower end of the hose 21 and the coordinates of the lower end of the portion identified as the arc shape of the outer periphery of the bottom 22a of the bracket 22 is defined as γ pixels.

演算手段13は、撮像手段11により取得された画像におけるピクセルと、実空間における長さの比率の算出を行う(ステップS153)。この比率の算出は、前述した第2の検査項目のステップS71~ステップS73に示した方法と同様の方法で行うことが可能であり、説明を省略する。 The calculation means 13 calculates the ratio between the pixel in the image acquired by the imaging means 11 and the length in real space (step S153). This ratio can be calculated using a method similar to that shown in steps S71 to S73 of the second test item described above, and so a detailed explanation will be omitted.

演算手段13は、ステップS152で算出した取得画像上のαピクセル、βピクセル及びγピクセルについて、それぞれステップS153で求めた比率により、実空間の長さα’mm,β’mm,γ’mmを算出する(ステップS154)。 The calculation means 13 calculates the lengths α'mm, β'mm, and γ'mm in real space for the α pixel, β pixel, and γ pixel on the acquired image calculated in step S152, using the ratios calculated in step S153 (step S154).

判定手段14は、ステップS153で算出したγ’mmから、α’mm、β’mmを減算した結果が、良品条件である1mm以内であるか否かを判定する(ステップS155)。 The determination means 14 determines whether the result of subtracting α'mm and β'mm from γ'mm calculated in step S153 is within 1 mm, which is the acceptable product condition (step S155).

<第5の検査項目>
次に、第5の検査項目、すなわち、ホース21のペイントマーク21aと、ブラケット22の底部22aに設けられたペイントマーク22cの相対位置のずれが所定の範囲内か否かを検査する方法について説明する。
<Fifth inspection item>
Next, a fifth inspection item, that is, a method for inspecting whether or not the relative positional deviation between the paint mark 21a of the hose 21 and the paint mark 22c provided on the bottom 22a of the bracket 22 is within a predetermined range, will be described.

特定手段12では、撮像手段11により取得された取得画像において、ブラケット22とクリップ23の位置及びサイズと、ペイントマーク21aとペイントマーク22cの座標を取得する。 The identification means 12 acquires the position and size of the bracket 22 and clip 23, and the coordinates of the paint mark 21a and paint mark 22c in the image acquired by the imaging means 11.

ここで演算手段13は、撮像手段11により取得された取得画像におけるピクセルと、実空間における長さの比率の算出を行う。この比率の算出は、前述した第2の検査項目のステップS71~ステップS73に示した方法と同様の方法で行うことが可能であるため詳細な説明は省略するが、例えば、ブラケット22やクリップ23の位置及びサイズに基づいて、ペイントマーク21a,22cの位置における取得画像上の1ピクセルが実空間の何mmに相当するかを算出することができる。 Here, the calculation means 13 calculates the ratio between the pixel in the acquired image acquired by the imaging means 11 and the length in real space. This ratio can be calculated using the same method as shown in steps S71 to S73 of the second inspection item described above, so a detailed explanation will be omitted. However, for example, based on the position and size of the bracket 22 and clip 23, it is possible to calculate how many millimeters in real space one pixel in the acquired image at the position of the paint marks 21a and 22c corresponds to.

典型的には図4に示すように、特定手段12では、ペイントマーク21aとペイントマーク22cは、取得画像における、横方向のピクセルのずれを特定する。そして、演算手段13では、特定手段12により特定された横方向のピクセルのずれから、ペイントマーク21a,22cの実空間のずれの距離を算出する。 Typically, as shown in Figure 4, the identification means 12 identifies the horizontal pixel offset between paint marks 21a and 22c in the acquired image. Then, the calculation means 13 calculates the real-space offset distance between paint marks 21a and 22c from the horizontal pixel offset identified by the identification means 12.

判定手段14は、演算手段13で算出されたペイントマーク21a,22cの実空間におけるずれの距離が、所定の範囲内か否かを判定する。一例として、判定手段14では、ペイントマーク21a,22cの実空間におけるずれの距離が3mm以内であれば、良品として判定することができる。 The determination means 14 determines whether the deviation distance in real space between the paint marks 21a and 22c calculated by the calculation means 13 is within a predetermined range. As an example, the determination means 14 can determine that the product is non-defective if the deviation distance in real space between the paint marks 21a and 22c is within 3 mm.

このようにして、検査装置1では、第1の検査項目~第5の検査項目のそれぞれについて検査を行うことができる。なお検査装置1では、第1の検査項目~第5の検査項目は、いずれか1つを実行してもよく、複数を組み合わせて実行してもよい。 In this way, the inspection device 1 can perform inspections for each of the first through fifth inspection items. Note that the inspection device 1 may perform any one of the first through fifth inspection items, or may perform a combination of multiple items.

<取得画像に関する準備の一例>
上記では、検査装置1で第1の検査項目~第5の検査項目の夫々を実行する場合について、撮像手段11により取得される取得画像では、図2に示すようにブラケット22は取得画像の下方の中央、ホース21は取得画像の上方の中央に配されるように撮影されるものとして説明している。さらに、特定手段12による各検査対象物を特定する際には、取得画像上において横方向の2辺と縦方向の2辺からなる、傾いていない矩形を基準にして行われる。
<Example of preparation for acquiring images>
In the above description, when each of the first to fifth inspection items is performed by the inspection device 1, the bracket 22 is photographed in the lower center of the image acquired by the imaging means 11, and the hose 21 is photographed in the upper center of the image, as shown in Fig. 2. Furthermore, when identifying each inspection object by the identification means 12, this is done based on an uninclined rectangle consisting of two horizontal sides and two vertical sides on the acquired image.

しかしながら図17に示すように、撮像手段11では、検査対象物が取得画像の対角方向に長く撮影された状態、すなわち、ブラケット22が取得画像の左下、ホースが取得画像の右上に配されるように撮影されることが考えられる。このような場合、図17に示すように取得画像に対して傾いていない矩形状を基準にして特定手段12による特定処理を行うと、検査対象物として本来特定としたい領域に加えて、余分な領域が含まれた状態を特定してしまう可能性が高くなる。 However, as shown in Figure 17, the imaging means 11 may capture an image of the object to be inspected in a diagonal direction of the acquired image, i.e., the bracket 22 may be positioned at the bottom left of the acquired image and the hose at the top right of the acquired image. In such a case, if the identification means 12 performs identification processing based on a rectangular shape that is not tilted relative to the acquired image as shown in Figure 17, there is a high possibility that the area identified as the object to be inspected will include extraneous areas in addition to the area that is actually desired to be identified.

そのため検査装置1では、撮像手段11で撮影された取得画像について画像処理を行い、ブラケット22が取得画像の下方の中央、ホース21は取得画像の上方の中央に配された加工画像の作成を行うことができる。以下に、この加工画像を作成する手順の一例を示す。 For this reason, the inspection device 1 performs image processing on the acquired image captured by the imaging means 11, and can create a processed image in which the bracket 22 is positioned at the bottom center of the acquired image and the hose 21 is positioned at the top center of the acquired image. An example of the procedure for creating this processed image is shown below.

まず、撮像手段11において取得された取得画像中の検査対象物が図17に示すように傾いている場合には、特定手段12は2つの検査対象物について、位置とサイズを取得する。ここでは、特定手段12は、ブラケット22の下端の円弧状の領域と、ホース21の下端の円弧状の領域の位置及びサイズを特定する。 First, when the inspection object in the image acquired by the imaging means 11 is tilted as shown in Figure 17, the identification means 12 acquires the positions and sizes of the two inspection objects. Here, the identification means 12 identifies the positions and sizes of the arc-shaped region at the bottom end of the bracket 22 and the arc-shaped region at the bottom end of the hose 21.

このとき特定手段12では、取得画像上において横方向の2辺と縦方向の2辺からなる、傾いていない矩形を基準に、これらの領域の位置及びサイズの特定を行う。そのため、特定手段12がブラケット22の下端の円弧状の領域を特定する場合にはこの領域の周辺領域を含んだ状態となり、同様に、ホース21の下端の円弧状の領域を特定する場合にはこの領域の周辺領域を含んだ状態となる。 At this time, the identification means 12 identifies the position and size of these areas based on an untilted rectangle consisting of two horizontal sides and two vertical sides on the acquired image. Therefore, when the identification means 12 identifies the arc-shaped area at the bottom end of the bracket 22, it will include the surrounding area of this area, and similarly, when the identification means 12 identifies the arc-shaped area at the bottom end of the hose 21, it will include the surrounding area of this area.

次に、演算手段13は、特定手段12により特定されたブラケット22の下端の円弧状の領域の中心座標(第1の中心座標)を算出する。同様に、演算手段13は、特定手段12により特定されたホース21の下端の円弧状の領域の中心座標(第2の中心座標)を算出する。 Next, the calculation means 13 calculates the center coordinates (first center coordinates) of the arc-shaped area at the lower end of the bracket 22 identified by the identification means 12. Similarly, the calculation means 13 calculates the center coordinates (second center coordinates) of the arc-shaped area at the lower end of the hose 21 identified by the identification means 12.

次に図18に示すように、演算手段13は、第1の中心座標と第2の中心座標とを直線で繋ぎ、この直線の角度から、取得画像中における検査対象物の傾き角を算出することができる。 Next, as shown in Figure 18, the calculation means 13 connects the first center coordinate and the second center coordinate with a straight line, and can calculate the tilt angle of the object to be inspected in the acquired image from the angle of this line.

したがって、演算手段13では、算出した傾き角に基づいて取得画像に対して射影変換を行い、ブラケット22が下方の中央、ホース21が上方の中央に配された加工画像を作成することができる。 Therefore, the calculation means 13 performs projective transformation on the acquired image based on the calculated tilt angle, and can create a processed image in which the bracket 22 is positioned at the bottom center and the hose 21 is positioned at the top center.

これにより、撮像手段11により撮影された画像について、第1の検査方法~第5の検査方法の処理を行いやすくなるように、画像内の検査対象物の位置や角度の変換を行うことができる。 This allows the position and angle of the object being inspected in the image captured by the imaging means 11 to be converted so that the first to fifth inspection methods can be easily processed.

以上のことから、検査装置1では、第1の検査項目~第5の検査項目について、撮像手段11により取得された取得画像中のピクセルと、検査対象物の実空間における長さとを対応付けた状態で、自動的に良否判断を行うことができる。 As a result of the above, the inspection device 1 can automatically determine whether the first to fifth inspection items are pass or fail by associating the pixels in the image acquired by the imaging means 11 with the length of the object being inspected in real space.

具体的には、検査装置1では、撮像手段11により組付け状態を撮像し、撮像手段11により取得された取得画像から、特定手段12では、クリップ23及びブラケット22の夫々の位置及び夫々のサイズを特定することができる。そして演算手段13では、特定手段12により特定されたクリップ23及びブラケット22の夫々の位置及び夫々の取得画像におけるサイズと、あらかじめ取得されたクリップ23とブラケット22の実空間における規格サイズとを利用して、取得画像中のピクセルと実空間の長さとを対応付けることができる。さらに判定手段14では、この対応付けにより、取得画像におけるサイズから算出される検査対象箇所の実空間上における長さを用いて、各検査項目における組付け状態の良否判定を行うことができる。 Specifically, in the inspection device 1, the imaging means 11 captures an image of the assembled state, and the identification means 12 can identify the respective positions and sizes of the clip 23 and bracket 22 from the captured images acquired by the imaging means 11. The calculation means 13 then uses the respective positions and sizes of the clip 23 and bracket 22 identified by the identification means 12 in the captured images and the standard sizes of the clip 23 and bracket 22 in real space that were previously acquired to associate pixels in the captured images with lengths in real space. Furthermore, the determination means 14 can use this association to determine the pass/fail of the assembly state for each inspection item, using the real-space length of the inspection target area calculated from the size in the captured image.

このようにして検査装置1では、検査対象物に対して自動的に良否判断を行うことができるため、検査員が目視検査を行う手間と時間を省くことができる。また検査員を配する必要が無くなるため、製造ラインのライン長を短縮できるとともに、ヒューマンエラーの発生を抑制することができる。 In this way, the inspection device 1 can automatically determine whether an object being inspected is good or bad, saving inspectors the time and effort required for visual inspection. Furthermore, since there is no need to deploy inspectors, the length of the production line can be shortened and the occurrence of human error can be reduced.

さらに検査装置1では、取得画像におけるピクセルサイズと、実空間における長さとの対応が判明した状態で良否判断を行うことから、判定精度が向上する。 Furthermore, the inspection device 1 makes a pass/fail judgment after determining the correspondence between the pixel size in the acquired image and the length in real space, thereby improving judgment accuracy.

また、第3の検査項目及び第4の検査項目に示したように、撮像手段11により斜め方向からクリップ23の爪部23a,23bを撮影しなければならない状況であっても、爪部23a,23bの開度を判定することができる。 Furthermore, as shown in the third and fourth inspection items, even in situations where the claw portions 23a, 23b of the clip 23 must be photographed from an oblique direction using the imaging means 11, the degree of opening of the claw portions 23a, 23b can be determined.

なお、本発明は上記実施の形態に限られたものではなく、趣旨を逸脱しない範囲で適宜変更することが可能である。すなわち上記の記載は、説明の明確化のため、適宜、省略及び簡略化がなされており、当業者であれば、実施形態の各要素を、本発明の範囲において容易に変更、追加、変換することが可能である。 The present invention is not limited to the above-described embodiment, and modifications can be made as appropriate without departing from the spirit of the invention. In other words, the above description has been omitted or simplified as appropriate for clarity, and those skilled in the art can easily modify, add, or convert each element of the embodiment within the scope of the present invention.

例えば、上記では、特にブラケット22とクリップ23の位置及びサイズに基づいて取得画像におけるピクセルと実空間における長さの対応をとるものとして説明したが、ホース21や、上記では挙げられていない他の検査対象物の取得画像中のピクセルと実空間での長さを対応させてもよい。また、これらのうち3点以上の構成物品を利用して、取得画像におけるピクセルと実空間における長さを対応させてもよい。 For example, while the above description assumes that the correspondence between pixels in the acquired image and lengths in real space is based particularly on the positions and sizes of the bracket 22 and clip 23, it is also possible to correspond pixels in the acquired image of the hose 21 or other inspection objects not listed above to lengths in real space. Furthermore, it is also possible to use three or more of these components to correspond pixels in the acquired image to lengths in real space.

1 検査装置
2 車両
3 コンピュータ
11 撮像手段
12 特定手段
13 演算手段
14 判定手段
21 ホース
22 ブラケット
23 クリップ
REFERENCE SIGNS LIST 1 Inspection device 2 Vehicle 3 Computer 11 Imaging means 12 Identification means 13 Calculation means 14 Determination means 21 Hose 22 Bracket 23 Clip

Claims (1)

ホースと、ブラケットと、前記ホースと前記ブラケットとを接合するクリップの組付け状態を検査する検査方法であって、
撮像手段は、前記組付け状態を撮像し、
特定手段は、前記撮像手段により取得された取得画像から、前記クリップ及び前記ブラケットの夫々の位置及び夫々のサイズを特定し、
演算手段は、前記特定手段により特定された前記クリップ及び前記ブラケットの夫々の位置及び夫々の前記取得画像におけるサイズと、あらかじめ取得された前記クリップと前記ブラケットの実空間におけるサイズとを利用して、前記取得画像中のピクセルと実空間の長さとを対応付けし、
判定手段は、
前記対応付けにより、前記取得画像におけるサイズから算出される検査対象箇所の実空間上における長さを用いて、前記組付け状態の良否判定を行う際に、
前記ホースの断面が円形状であると仮定するとともに、前記取得画像における前記ホースが楕円の円弧の一部及び直線を組み合わせた形状であるものとして前記ホースの傾きを算出し、算出された前記ホースの傾きを利用して前記クリップに設けられた2つの爪部の開きの角度を算出して、前記爪部の良否判定を行い、また、
前記取得画像において楕円形状である前記ホースの下端部の手前側半周の円弧形状と、前記ブラケットの底部の外周の手前側半周の円弧形状と、に基づいて、前記ブラケットに設けられた突出部が前記ホース内に入り込んだ長さの良否判定を行う、
検査方法。
An inspection method for inspecting an assembly state of a hose, a bracket, and a clip that joins the hose and the bracket, comprising:
The imaging means images the assembled state,
The identifying means identifies the respective positions and sizes of the clip and the bracket from the captured image acquired by the imaging means,
a calculation means for associating pixels in the acquired image with lengths in real space by using the positions and sizes in the acquired image of the clip and the bracket identified by the identification means and the sizes in real space of the clip and the bracket that have been acquired in advance;
The determination means is
When determining whether the assembly state is good or bad using the length in real space of the inspection target portion calculated from the size in the acquired image by the association,
Assuming that the cross section of the hose is circular, and assuming that the hose in the acquired image has a shape that combines a part of an ellipse arc and a straight line , the inclination of the hose is calculated, and the calculated inclination of the hose is used to calculate the angle between the two claws provided on the clip, and the quality of the claws is determined,
a determination of the length of the protrusion provided on the bracket that has penetrated into the hose is made based on the arc shape of the front half of the circumference of the lower end of the hose, which is elliptical in the acquired image, and the arc shape of the front half of the circumference of the bottom of the bracket;
Testing method.
JP2022030089A 2022-02-28 2022-02-28 Inspection method Active JP7718295B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022030089A JP7718295B2 (en) 2022-02-28 2022-02-28 Inspection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022030089A JP7718295B2 (en) 2022-02-28 2022-02-28 Inspection method

Publications (2)

Publication Number Publication Date
JP2023125793A JP2023125793A (en) 2023-09-07
JP7718295B2 true JP7718295B2 (en) 2025-08-05

Family

ID=87887904

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022030089A Active JP7718295B2 (en) 2022-02-28 2022-02-28 Inspection method

Country Status (1)

Country Link
JP (1) JP7718295B2 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001082928A (en) 1999-09-16 2001-03-30 Daihatsu Motor Co Ltd Method for inspecting piping
KR200325245Y1 (en) 2003-05-16 2003-09-02 (주)동아금속 Automatic selector of hose clip
JP2008004318A (en) 2006-06-21 2008-01-10 Toyota Motor Corp Fuel cell piping structure
JP2013024696A (en) 2011-07-20 2013-02-04 Mitsubishi Motors Corp Hose clip assembling state inspection method
WO2014136536A1 (en) 2013-03-06 2014-09-12 本田技研工業株式会社 Tube clip mounting device
US20140300734A1 (en) 2013-04-04 2014-10-09 Océ-Technologies B.V. Method for estimating the amount of an unconsumed part of a consumable
JP2021066563A (en) 2019-10-24 2021-04-30 株式会社日立ビルシステム Dimension measurement system and dimension measurement method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001082928A (en) 1999-09-16 2001-03-30 Daihatsu Motor Co Ltd Method for inspecting piping
KR200325245Y1 (en) 2003-05-16 2003-09-02 (주)동아금속 Automatic selector of hose clip
JP2008004318A (en) 2006-06-21 2008-01-10 Toyota Motor Corp Fuel cell piping structure
JP2013024696A (en) 2011-07-20 2013-02-04 Mitsubishi Motors Corp Hose clip assembling state inspection method
WO2014136536A1 (en) 2013-03-06 2014-09-12 本田技研工業株式会社 Tube clip mounting device
US20140300734A1 (en) 2013-04-04 2014-10-09 Océ-Technologies B.V. Method for estimating the amount of an unconsumed part of a consumable
JP2021066563A (en) 2019-10-24 2021-04-30 株式会社日立ビルシステム Dimension measurement system and dimension measurement method

Also Published As

Publication number Publication date
JP2023125793A (en) 2023-09-07

Similar Documents

Publication Publication Date Title
CN108527362B (en) Robot setting apparatus, robot setting method, and computer-readable recording medium
US6728417B1 (en) Measurement apparatus
JP4951496B2 (en) Image generation method and image generation apparatus
JP2991163B2 (en) Camera calibration device
JP2005072888A (en) Image projection method and image projection device
JP2009128261A (en) Visual inspection method and device
JP7228951B2 (en) Loss price evaluation system
CN105243663A (en) automatic PCB (Printed Circuit Board) scan image matching method and system
JP2020096325A (en) Information processor, control method of information processor, and program
CN105068139B (en) A kind of characterization processes of piston cooling nozzle installment state
JP7718295B2 (en) Inspection method
JP2019113348A (en) Object inspection system and object inspection method
CN114061480B (en) Method for detecting appearance of workpiece
JP2009289046A (en) Operation support device and method using three-dimensional data
CN110763703A (en) Projection type system for assisting printed circuit board in quick positioning, fixed-point amplification and observation
CN119217388B (en) Tightening position system and method for vision correction equipment
CN110634136B (en) Pipeline wall damage detection method, device and system
CN115781092B (en) Multi-angle auxiliary welding method for movable arm of excavator
JP4577717B2 (en) Bump inspection apparatus and method
TWI659207B (en) Projection-type auxiliary system assisting printed circuit board to quickly locate target and capable of zooming in at fixed points
CN116385433B (en) Plastic pipeline welding quality assessment method
CN116539635B (en) Unmanned aerial vehicle shield tunnel inspection method based on calculation vision and SLAM
JPH07174516A (en) Method for extracting feature points of ring-shaped work
JP2020077397A (en) Image processing method, image processing unit, production system, article manufacturing method, program, and storage medium
JP6574402B2 (en) Image inspection apparatus, image inspection method, and image inspection program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20240320

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20241126

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20241129

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20250115

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20250325

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20250514

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20250624

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20250707

R150 Certificate of patent or registration of utility model

Ref document number: 7718295

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150