JP6574402B2 - Image inspection apparatus, image inspection method, and image inspection program - Google Patents

Image inspection apparatus, image inspection method, and image inspection program Download PDF

Info

Publication number
JP6574402B2
JP6574402B2 JP2016088453A JP2016088453A JP6574402B2 JP 6574402 B2 JP6574402 B2 JP 6574402B2 JP 2016088453 A JP2016088453 A JP 2016088453A JP 2016088453 A JP2016088453 A JP 2016088453A JP 6574402 B2 JP6574402 B2 JP 6574402B2
Authority
JP
Japan
Prior art keywords
image
adhesive tape
inspection apparatus
exterior material
image inspection
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
JP2016088453A
Other languages
Japanese (ja)
Other versions
JP2017198510A (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.)
THE FURUKAW ELECTRIC CO., LTD.
Furukawa Automotive Systems Inc
Original Assignee
THE FURUKAW ELECTRIC CO., LTD.
Furukawa Automotive Systems Inc
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 THE FURUKAW ELECTRIC CO., LTD., Furukawa Automotive Systems Inc filed Critical THE FURUKAW ELECTRIC CO., LTD.
Priority to JP2016088453A priority Critical patent/JP6574402B2/en
Publication of JP2017198510A publication Critical patent/JP2017198510A/en
Application granted granted Critical
Publication of JP6574402B2 publication Critical patent/JP6574402B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Description

本発明は、主として、ワイヤハーネスを撮影した画像を用いて検査を行う画像検査装置に関する。   The present invention mainly relates to an image inspection apparatus that performs an inspection using an image obtained by photographing a wire harness.

自動車等に用いられるワイヤハーネスは、電線等の複数の配線体を、粘着テープ等によって結束することにより構成されている。ワイヤハーネスの途中には、当該ワイヤハーネスを車両側に取り付けるための取付具、及び、ワイヤハーネスを保護するための外装材等が設けられる。   A wire harness used for an automobile or the like is configured by binding a plurality of wiring bodies such as electric wires with an adhesive tape or the like. In the middle of the wire harness, a fixture for attaching the wire harness to the vehicle side, an exterior material for protecting the wire harness, and the like are provided.

ワイヤハーネスが正しく製造されているか否かを外観に基づいて検査する方法として、コンピュータを用いた画像処理により検査を行う技術が提案されている。この種の外観検査装置は、例えば特許文献1及び2に開示されている。   As a method for inspecting whether or not the wire harness is correctly manufactured based on the appearance, a technique for inspecting by image processing using a computer has been proposed. This type of visual inspection apparatus is disclosed in Patent Documents 1 and 2, for example.

特許文献1が開示するワイヤーハーネスの外観検査装置においては、ワイヤーハーネスの検査対象部位が撮像部によって撮像される。そして、この外観検査装置は、例えば、撮影画像から所定色のエリアを抽出し、当該エリアの面積が最低限面積を上回っているか否かにより、正しい色の粘着テープが巻回されているか否かを判定するように構成されている。   In the appearance inspection apparatus for a wire harness disclosed in Patent Document 1, a region to be inspected of the wire harness is imaged by an imaging unit. Then, the appearance inspection apparatus extracts, for example, an area of a predetermined color from the photographed image, and whether or not the correct color adhesive tape is wound depending on whether or not the area of the area exceeds the minimum area. Is configured to determine.

特許文献2が開示する外観検査装置は、ワイヤハーネスをカメラで撮影した画像を基に画像処理することによりワイヤハーネスの外観検査を行うように構成されている。カメラで取得された画像データは、検出処理手段にて順に処理され、この処理されたデータと、予め記憶されている基準データとが比較されて、ワイヤハーネスの構成部品の欠落等といった不具合発生の有無が検出される。   The appearance inspection device disclosed in Patent Document 2 is configured to perform an appearance inspection of a wire harness by performing image processing based on an image obtained by photographing the wire harness with a camera. The image data acquired by the camera is sequentially processed by the detection processing means, and the processed data is compared with the reference data stored in advance, so that a defect such as a missing component of the wire harness is generated. Presence or absence is detected.

国際公開第2007/144986号International Publication No. 2007/144986 特開平7−103732号公報JP 7-103732 A

ところで、ワイヤハーネスに取り付けられる外装材(例えば、チューブ等)は、黒色であることが多い。また、外装材を配線体に固定するための粘着テープも黒色であることが多い。従って、黒い外装材の上に黒い粘着テープが巻かれているか否かを検査しなければならない場合が生じる。   By the way, the exterior material (for example, a tube etc.) attached to a wire harness is often black. Also, the adhesive tape for fixing the exterior material to the wiring body is often black. Therefore, it may be necessary to inspect whether or not the black adhesive tape is wound on the black exterior material.

しかしながら、上記のように外装材と粘着テープの色が良く似ている場合、粘着テープが巻かれているか否かを単純に色によって判定することが難しく、検査精度の低下を招いていた。   However, when the color of the exterior material and the adhesive tape are very similar as described above, it is difficult to simply determine whether or not the adhesive tape is wound by the color, resulting in a decrease in inspection accuracy.

また、粘着テープを巻いて固定する工程が手作業で行われる場合、巻かれた粘着テープの形状が一定になりにくい。このため、粘着テープの形状だけから粘着テープの有無を判定することとすると、誤判定が生じ易い。   Moreover, when the process of winding and fixing an adhesive tape is performed manually, the shape of the wound adhesive tape is difficult to be constant. For this reason, if the presence or absence of an adhesive tape is determined only from the shape of the adhesive tape, an erroneous determination is likely to occur.

また、配線体に誤った外装材が取り付けられたり、外装材の取付けが漏れたりした場合でも、その上に粘着テープを巻くことにより問題の部分が隠れてしまうことがあった。この場合、従来の外観検査装置では不良を安定的に検出することが難しく、改善の余地が残されていた。   Further, even when an incorrect exterior material is attached to the wiring body or the attachment of the exterior material is leaked, the problem portion may be hidden by winding an adhesive tape on the exterior material. In this case, it has been difficult for the conventional appearance inspection apparatus to stably detect defects, and there is room for improvement.

本発明は以上の事情に鑑みてされたものであり、その目的は、ワイヤハーネスに巻かれた粘着テープを安定して検出し、検査精度を向上させたワイヤハーネスの外観検査装置を提供することにある。   The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a wire harness appearance inspection apparatus that stably detects an adhesive tape wound around a wire harness and improves inspection accuracy. It is in.

課題を解決するための手段及び効果Means and effects for solving the problems

本発明の解決しようとする課題は以上の如くであり、次にこの課題を解決するための手段とその効果を説明する。   The problems to be solved by the present invention are as described above. Next, means for solving the problems and the effects thereof will be described.

本発明の第1の観点によれば、以下の構成の画像検査装置が提供される。即ち、この画像検査装置は、配線体と、外装材と、粘着テープと、を備えるワイヤハーネスについて、前記粘着テープが巻かれているか否かを検査する。前記外装材は、前記配線体に装着される。前記粘着テープは、少なくとも前記外装材の周囲に巻かれる。この画像検査装置は、撮影部と、検査部と、を備える。前記撮影部は、前記ワイヤハーネスを撮影する。前記検査部は、前記撮影部により得られた画像から、巻かれた前記粘着テープに生じている皺を検出することにより、前記粘着テープが巻かれているか否かを検査する。   According to a first aspect of the present invention, an image inspection apparatus having the following configuration is provided. That is, this image inspection apparatus inspects whether or not the adhesive tape is wound on a wire harness including a wiring body, an exterior material, and an adhesive tape. The exterior material is attached to the wiring body. The adhesive tape is wound around at least the exterior material. The image inspection apparatus includes an imaging unit and an inspection unit. The imaging unit images the wire harness. The inspection unit inspects whether or not the adhesive tape is wound by detecting wrinkles generated on the wound adhesive tape from the image obtained by the photographing unit.

これにより、例えば粘着テープの色が周囲と紛らわしい場合であっても、粘着テープに生じる皺を検出することで、検査を精度良く行うことができる。また、粘着テープの皺が内側の外装材の形状をある程度反映することを利用して、粘着テープに覆われている外装材の組付けが正しいか否かについても検査することができる。   Thereby, for example, even when the color of the adhesive tape is confusing with the surroundings, the inspection can be performed with high accuracy by detecting wrinkles generated on the adhesive tape. Further, it is possible to inspect whether or not the assembly of the exterior material covered with the adhesive tape is correct by utilizing the fact that the adhesive tape ridge reflects the shape of the inner exterior material to some extent.

前記の画像検査装置においては、前記検査部は、前記外装材の周囲に当該外装材と同じ又は類似である色の粘着テープが巻かれているか否かを検査可能であることが好ましい。   In the image inspection apparatus, it is preferable that the inspection unit can inspect whether or not an adhesive tape having the same or similar color as the exterior material is wound around the exterior material.

即ち、本発明の画像検査装置は、外装材と粘着テープの色が同じ又は類似である場合に特に有利である。   That is, the image inspection apparatus of the present invention is particularly advantageous when the colors of the exterior material and the adhesive tape are the same or similar.

前記の画像検査装置においては、前記検査部は、黒色の前記外装材の周囲に黒色の粘着テープが巻かれているか否かを検査可能であることが好ましい。   In the said image inspection apparatus, it is preferable that the said test | inspection part can test | inspect whether the black adhesive tape is wound around the said black exterior material.

即ち、本発明の画像検査装置は、外装材と粘着テープの色が何れも黒色である場合に特に有利である。   That is, the image inspection apparatus of the present invention is particularly advantageous when both the exterior material and the adhesive tape are black.

前記の画像検査装置においては、前記検査部は、前記画像から、所定値よりも明るい画素が連続する領域である明領域を検出し、当該明領域の形状に基づいて前記皺を検出することが好ましい。   In the image inspection apparatus, the inspection unit may detect, from the image, a bright region that is a region where pixels brighter than a predetermined value are continuous, and detect the wrinkles based on the shape of the bright region. preferable.

これにより、粘着テープの巻き皺に基づくハイライト部分が明領域として現れ、この明領域の形状に特定の傾向があることを利用して、当該皺を適切に検出することができる。   Thereby, the highlight part based on the curl of an adhesive tape appears as a bright area, The said wrinkle can be detected appropriately using the specific tendency in the shape of this bright area.

前記の画像検査装置においては、前記検査部が前記画像から前記明領域を検出する前に、前記所定値よりも暗い画素によって、前記ワイヤハーネスを長手方向で分割する線を描画する処理が行われることが好ましい。   In the image inspection apparatus, before the inspection unit detects the bright area from the image, a process of drawing a line that divides the wire harness in the longitudinal direction is performed by pixels darker than the predetermined value. It is preferable.

これにより、明領域を、ワイヤハーネスの長手方向で強制的に分断した形で検出することができる。従って、画像に乱れ等があっても、粘着テープの巻き皺に基づくハイライト部分を明領域として安定して検出することができる。   Thereby, a bright area | region can be detected in the form forcibly divided in the longitudinal direction of the wire harness. Therefore, even if the image is disturbed, the highlight portion based on the curl of the adhesive tape can be stably detected as a bright region.

前記の画像検査装置においては、前記検査部が前記画像から前記明領域を検出する前に、前記所定値よりも暗い画素が連続する領域である暗領域の輪郭線を検出する処理、及び、前記所定値よりも暗い画素によって前記輪郭線を描画する処理が行われることが好ましい。   In the image inspection apparatus, before the inspection unit detects the bright region from the image, a process of detecting a contour line of a dark region that is a region where pixels darker than the predetermined value are continuous, and It is preferable that a process of drawing the contour line is performed with pixels darker than a predetermined value.

これにより、明領域を、暗領域の輪郭の内外を分断した形で検出することができる。従って、粘着テープの巻き皺に基づくハイライト部分を安定して検出することができる。   As a result, the bright area can be detected in a form in which the inside and outside of the outline of the dark area are divided. Therefore, the highlight part based on the curl of the adhesive tape can be detected stably.

前記の画像検査装置においては、前記輪郭線を検出する前に、前記暗領域の欠けを除去する処理が行われることが好ましい。   In the above-described image inspection apparatus, it is preferable that a process of removing the dark region chip is performed before the contour line is detected.

これにより、暗領域の欠けを無くすことができるので、粘着テープ等の形状を実質的に良好に反映させた輪郭線を得ることができる。従って、画像に乱れ等があっても、粘着テープの巻き皺に基づくハイライトを明領域として適切に得ることができる。   As a result, it is possible to eliminate the lack of the dark region, and thus it is possible to obtain a contour line that substantially reflects the shape of the adhesive tape or the like. Therefore, even if the image is disturbed, highlights based on the curl of the adhesive tape can be appropriately obtained as a bright region.

前記の画像検査装置においては、以下の構成とすることが好ましい。即ち、前記検査部は、前記画像から、前記所定値よりも暗い画素が連続する領域である暗領域を検出する。前記検査部は、前記画像において、面積が大きい順に選択された1又は複数の前記暗領域によって実質的に囲まれる部分から前記明領域を検出する。   The image inspection apparatus preferably has the following configuration. That is, the inspection unit detects a dark region, which is a region where pixels darker than the predetermined value are continuous, from the image. The inspection unit detects the bright region from a portion substantially surrounded by one or a plurality of the dark regions selected in order of increasing area in the image.

これにより、面積の大きい暗領域によって実質的に囲まれる明領域を検出することで、粘着テープの巻き皺に基づくハイライトを明領域として適切に得ることができる。   Thereby, the highlight based on the curl of the adhesive tape can be appropriately obtained as the bright region by detecting the bright region substantially surrounded by the dark region having a large area.

本発明の第2の観点によれば、以下の画像検査方法が提供される。即ち、この画像検査方法は、配線体と、外装材と、粘着テープと、を備えるワイヤハーネスについて、前記粘着テープが巻かれているか否かを検査する。前記外装材は、前記配線体に装着される。前記粘着テープは、少なくとも前記外装材の周囲に巻かれる。この画像検査方法は、撮影工程と、検査工程と、を含む。前記撮影工程では、前記ワイヤハーネスを撮影する。前記検査工程では、前記撮影工程で得られた画像から、巻かれた前記粘着テープに生じている皺を検出することにより、前記粘着テープが巻かれているか否かを検査する。   According to the second aspect of the present invention, the following image inspection method is provided. That is, this image inspection method inspects whether or not the adhesive tape is wound on a wire harness including a wiring body, an exterior material, and an adhesive tape. The exterior material is attached to the wiring body. The adhesive tape is wound around at least the exterior material. This image inspection method includes an imaging process and an inspection process. In the photographing step, the wire harness is photographed. In the inspection step, whether or not the adhesive tape is wound is inspected by detecting wrinkles generated on the wound adhesive tape from the image obtained in the photographing step.

これにより、例えば粘着テープの色が周囲と紛らわしい場合であっても、粘着テープに生じる皺を検出することで、検査を精度良く行うことができる。また、粘着テープの皺が内側の外装材の形状をある程度反映することを利用して、粘着テープに覆われている外装材の組付けが正しいか否かについても検査することができる。   Thereby, for example, even when the color of the adhesive tape is confusing with the surroundings, the inspection can be performed with high accuracy by detecting wrinkles generated on the adhesive tape. Further, it is possible to inspect whether or not the assembly of the exterior material covered with the adhesive tape is correct by utilizing the fact that the adhesive tape ridge reflects the shape of the inner exterior material to some extent.

本発明の第3の観点によれば、以下の構成の画像検査プログラムが提供される。即ち、この画像検査プログラムは、配線体と、外装材と、粘着テープと、を備えるワイヤハーネスについて、前記粘着テープが巻かれているか否かを検査する。前記外装材は、前記配線体に装着される。前記粘着テープは、少なくとも前記外装材の周囲に巻かれる。この画像検査プログラムは、撮影ステップと、検査ステップと、を含む。前記撮影ステップでは、前記ワイヤハーネスを撮影する。前記検査ステップでは、前記撮影ステップで得られた画像から、巻かれた前記粘着テープに生じている皺を検出することにより、前記粘着テープが巻かれているか否かを検査する。   According to the third aspect of the present invention, an image inspection program having the following configuration is provided. That is, this image inspection program inspects whether or not the adhesive tape is wound on a wire harness including a wiring body, an exterior material, and an adhesive tape. The exterior material is attached to the wiring body. The adhesive tape is wound around at least the exterior material. This image inspection program includes an imaging step and an inspection step. In the photographing step, the wire harness is photographed. In the inspection step, whether or not the adhesive tape is wound is inspected by detecting wrinkles generated on the wound adhesive tape from the image obtained in the photographing step.

これにより、例えば粘着テープの色が周囲と紛らわしい場合であっても、粘着テープに生じる皺を検出することで、検査を精度良く行うことができる。また、粘着テープの皺が内側の外装材の形状をある程度反映することを利用して、粘着テープに覆われている外装材の組付けが正しいか否かについても検査することができる。   Thereby, for example, even when the color of the adhesive tape is confusing with the surroundings, the inspection can be performed with high accuracy by detecting wrinkles generated on the adhesive tape. Further, it is possible to inspect whether or not the assembly of the exterior material covered with the adhesive tape is correct by utilizing the fact that the adhesive tape ridge reflects the shape of the inner exterior material to some extent.

本発明の一実施形態に係る外観検査装置の構成を示す模式図及びブロック図。The schematic diagram and block diagram which show the structure of the external appearance inspection apparatus which concerns on one Embodiment of this invention. 検査対象部位をカメラで撮影した画像の第1例を示す図。The figure which shows the 1st example of the image which image | photographed the test | inspection site | part with the camera. 図2の画像を2値化処理した結果を示す図。The figure which shows the result of having binarized the image of FIG. 2値画像において、所定の条件を満たす形状の白領域を検出した様子を示す図。The figure which shows a mode that the white area | region of the shape which satisfy | fills predetermined conditions is detected in the binary image. 検査対象部位をカメラで撮影した画像の第2例を示す図。The figure which shows the 2nd example of the image which image | photographed the test | inspection site | part with the camera. 図5の画像を2値化処理した結果を示す図。The figure which shows the result of having binarized the image of FIG. 図6の画像に対し、黒い画素で分割線を描画した様子を示す図。The figure which shows a mode that the dividing line was drawn with the black pixel with respect to the image of FIG. 検査対象部位をカメラで撮影した画像の第3例を示す図。The figure which shows the 3rd example of the image which image | photographed the test | inspection site | part with the camera. 図8の画像を2値化処理した結果を示す図。The figure which shows the result of having binarized the image of FIG. 図9から黒領域を検出し、最も面積が大きい黒領域以外を除去した様子を示す図。The figure which shows a mode that the black area | region was detected from FIG. 9, and it removed except the black area | region with the largest area. 図10の黒領域に対して膨張処理及び収縮処理を行った様子を示す図。The figure which shows a mode that the expansion process and the shrinkage | contraction process were performed with respect to the black area | region of FIG. 図11の画像から検出した輪郭を示す図。The figure which shows the outline detected from the image of FIG. 図9の画像に対し、黒い画素で図12の輪郭線を描画した様子を示す図。The figure which shows a mode that the outline of FIG. 12 was drawn with the black pixel with respect to the image of FIG.

次に、図面を参照して本発明の実施の形態を説明する。図1は、本発明の一実施形態に係る外観検査装置1の構成を示す模式図及びブロック図である。   Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a schematic diagram and a block diagram showing a configuration of an appearance inspection apparatus 1 according to an embodiment of the present invention.

図1に示す本実施形態の外観検査装置(画像検査装置)1は、ワイヤハーネス組立ライン2において製造されたワイヤハーネス5が正確に組み立てられたか否かを検査する装置である。   An appearance inspection apparatus (image inspection apparatus) 1 according to this embodiment shown in FIG. 1 is an apparatus that inspects whether or not the wire harness 5 manufactured in the wire harness assembly line 2 has been assembled correctly.

ワイヤハーネス組立ライン2においては、ワイヤハーネス5を組み立てるための組立図板3が、適宜の経路を図略の搬送コンベアによって搬送されるように構成されている。   In the wire harness assembly line 2, the assembly drawing board 3 for assembling the wire harness 5 is configured to be transported through an appropriate path by a transport conveyor (not shown).

ここで、検査対象となるワイヤハーネス5について簡単に説明する。ワイヤハーネス5とは、機械(本実施形態においては、自動車等の車両)に複数設置された電気機器同士を電気的に接続するために、車両に設定された配線経路に沿って組み付けられる配線部材である。ワイヤハーネス5は、電線などの配線体が適宜分岐された状態で粘着テープ等により結束されて構成されている。図1ではワイヤハーネス5が簡略的に描かれているが、ワイヤハーネス5の適宜の部位には、車両に固定するための固定部材が取り付けられる。また、ワイヤハーネス5の端部には、電気機器への電気的な接続のためのコネクタが取り付けられる。このほか、ワイヤハーネス5には、上記した粘着テープ、固定部材、コネクタのほかに、チューブ、シート、蛇腹管等の外装材が必要に応じて取り付けられる。   Here, the wire harness 5 to be inspected will be briefly described. The wire harness 5 is a wiring member that is assembled along a wiring path set in a vehicle in order to electrically connect a plurality of electric devices installed in a machine (a vehicle such as an automobile in the present embodiment). It is. The wire harness 5 is configured by being bound with an adhesive tape or the like in a state where a wiring body such as an electric wire is appropriately branched. Although the wire harness 5 is simply illustrated in FIG. 1, a fixing member for fixing to the vehicle is attached to an appropriate part of the wire harness 5. A connector for electrical connection to an electrical device is attached to the end of the wire harness 5. In addition to the above-described adhesive tape, fixing member, and connector, exterior materials such as a tube, a sheet, and a bellows tube are attached to the wire harness 5 as necessary.

ワイヤハーネス5は、前記した組立図板3上で、作業者の手作業により製造される。具体的に説明すると、組立図板3には、ワイヤハーネス5やその半製品を保持することが可能な複数のハーネス保持部材6が、突出状に固定されている。ハーネス保持部材6の先端部の形状は様々であり、例えば、略U字状の電線支持部となっているものや、コネクタ保持部となっているものや、固定部材を嵌め込んで保持できるようになっているもの等を挙げることができる。作業者は、組立図板3に取り付けられているハーネス保持部材6に電線を保持させながらコネクタ等を取り付けることで、ワイヤハーネス5を組み立てていく。   The wire harness 5 is manufactured on the above-described assembly drawing board 3 by an operator's manual work. Specifically, a plurality of harness holding members 6 capable of holding the wire harness 5 and its semi-finished product are fixed to the assembly drawing board 3 in a protruding shape. The shape of the distal end portion of the harness holding member 6 is various. For example, the harness holding member 6 is a substantially U-shaped wire support portion, a connector holding portion, or a fixing member can be fitted and held. Can be mentioned. An operator assembles the wire harness 5 by attaching a connector or the like while holding the electric wire on the harness holding member 6 attached to the assembly drawing board 3.

本実施形態の外観検査装置1は、上記のワイヤハーネス5について予め設定された複数の検査対象部位のそれぞれについて検査を行うように構成されている。具体的な検査項目としては、粘着テープによる固定漏れや部品の取付漏れがないか否か、あるいは、間違った部品が取り付けられていないか等である。   The appearance inspection apparatus 1 of the present embodiment is configured to inspect each of a plurality of inspection target parts set in advance for the wire harness 5 described above. Specific inspection items include whether there is no fixing leak due to the adhesive tape or component mounting leakage, or whether a wrong component is attached.

外観検査装置1は、図1に示すように、カメラ(撮影部)12と、撮影用の光源13と、コンピュータ(制御部)30と、を備える。カメラ12及び光源13は、コンピュータ30に電気的に接続される。   As shown in FIG. 1, the appearance inspection apparatus 1 includes a camera (photographing unit) 12, a light source 13 for photographing, and a computer (control unit) 30. The camera 12 and the light source 13 are electrically connected to the computer 30.

カメラ12は、ラインに沿って搬送される組立図板3に対向するように配置され、ワイヤハーネス5の組立途中又は組立完了後の時点で、組立図板3に保持されているワイヤハーネス5を撮影する。なお、図1においてカメラ12は単独で示されているが、必要に応じて複数設置されても良い。   The camera 12 is arranged so as to face the assembly drawing board 3 conveyed along the line, and the wire harness 5 held on the assembly drawing board 3 is not changed during or after the assembly of the wire harness 5. Take a picture. In FIG. 1, the camera 12 is shown alone, but a plurality of cameras 12 may be installed as necessary.

光源13は、カメラ12で撮影されるワイヤハーネス5を照明できるように構成されている。   The light source 13 is configured to illuminate the wire harness 5 photographed by the camera 12.

外観検査装置1は、カメラ12や光源13等を制御する制御部としてのコンピュータ30を備えている。このコンピュータ30は、設定部31と、記憶部32と、検査部35と、検査結果出力部37と、を備えている。   The appearance inspection apparatus 1 includes a computer 30 as a control unit that controls the camera 12, the light source 13, and the like. The computer 30 includes a setting unit 31, a storage unit 32, an inspection unit 35, and an inspection result output unit 37.

具体的には、コンピュータ30は、図示しないCPU、ROM、RAM等を備えている。なお、CPUは、演算部や画像処理部に相当する。そして、前記ROMには、本発明のワイヤハーネスの画像検査方法における撮影工程、検査工程等を行うための画像検査プログラムが予め記憶されている。なお、この画像検査プログラムは、前記の画像検査方法に対応して、撮影ステップと、検査ステップと、を含んでいる。   Specifically, the computer 30 includes a CPU, a ROM, a RAM, and the like (not shown). The CPU corresponds to a calculation unit or an image processing unit. The ROM stores in advance an image inspection program for performing a photographing step, an inspection step, and the like in the wire harness image inspection method of the present invention. The image inspection program includes an imaging step and an inspection step corresponding to the image inspection method.

この構成で、上記のハードウェアとソフトウェアとが協働することにより、コンピュータ30を、図4に示す、設定部31、記憶部32、検査部35、及び検査結果出力部37等として動作させることができる。そしてコンピュータ30は、光源13で照明しつつカメラ12がワイヤハーネス5を撮影するように制御し、得られた画像を記憶部32に記憶するとともに、検査部35で検査を行い、その結果を検査結果出力部37によって出力するように構成されている。   With this configuration, the above hardware and software cooperate to cause the computer 30 to operate as the setting unit 31, the storage unit 32, the inspection unit 35, the inspection result output unit 37, and the like illustrated in FIG. Can do. The computer 30 controls the camera 12 to shoot the wire harness 5 while illuminating with the light source 13, stores the obtained image in the storage unit 32, and inspects the result by the inspection unit 35. The result output unit 37 is configured to output.

次に、コンピュータ30が備える構成について詳細に説明する。   Next, the configuration of the computer 30 will be described in detail.

設定部31は、コンピュータ30に接続された図示しないマウス及びキーボード等を介して、検査に関する事項等の設定を受け付ける。検査に関する事項には、ワイヤハーネス5のどの部位を検査対象とするか等が含まれるが、これらに限定されない。   The setting unit 31 receives settings such as items related to the inspection via a mouse and a keyboard (not shown) connected to the computer 30. Items related to the inspection include, but are not limited to, which part of the wire harness 5 is to be inspected.

記憶部32は、設定部31で設定された事項、カメラ12から取得した画像データ、及び検査部35による検査結果等の様々な情報を記憶することができる。   The storage unit 32 can store various information such as items set by the setting unit 31, image data acquired from the camera 12, and inspection results by the inspection unit 35.

検査部35は、記憶部32に記憶された画像データを解析することで、ワイヤハーネス5に設定された検査対象部位のそれぞれについて検査を行う。検査結果は、検査結果出力部37へ出力される。   The inspection unit 35 analyzes each image data stored in the storage unit 32 to inspect each of the inspection target portions set in the wire harness 5. The inspection result is output to the inspection result output unit 37.

検査結果出力部37は、検査部35による検査結果を、例えば「OK」「NG」のような形で、コンピュータ30に接続された図示しないディスプレイ等に出力する。   The inspection result output unit 37 outputs the inspection result by the inspection unit 35 to a display (not shown) connected to the computer 30 in the form of “OK” or “NG”, for example.

次に、検査部35において、外装材の外側に、当該外装材とよく似た色の粘着テープが巻かれている部位の検査を行う方法について説明する。   Next, a description will be given of a method in which the inspection unit 35 inspects a portion where an adhesive tape having a color similar to the exterior material is wound around the exterior material.

本実施形態の検査部35では、粘着テープを外装材の外側に巻き付けた場合に現れる皺から、当該粘着テープの有無を判定する。   In the inspection part 35 of this embodiment, the presence or absence of the said adhesive tape is determined from the wrinkle which appears when the adhesive tape is wound around the exterior of the exterior material.

即ち、粘着テープを外装材の外側に巻き付けた場合、粘着テープの表面に巻き皺(小さい凹凸)が現れ、この巻き皺は、外装材の外形をある程度反映した特徴的な形状を示す。   That is, when the pressure-sensitive adhesive tape is wound around the exterior material, curled wrinkles (small irregularities) appear on the surface of the pressure-sensitive adhesive tape, and this curl shows a characteristic shape that reflects the outer shape of the exterior material to some extent.

この巻き皺に光が当たると、主に相対的に凸となっている箇所において明るい部分が現れる。従って、検査対象部位に粘着テープが正しく巻かれていれば、検査対象部位に光源13からの光を当てながらカメラ12で撮影した画像に、暗い画素に囲まれた明るい画素の領域(閉じた領域)が現れることになる。   When this curl is exposed to light, a bright portion appears mainly at a relatively convex portion. Therefore, if the adhesive tape is correctly wound around the inspection target region, a bright pixel region (closed region) surrounded by dark pixels in an image captured by the camera 12 while applying light from the light source 13 to the inspection target region. ) Will appear.

以下、ワイヤハーネス5を撮影した画像の3つの例を用いて、画像検査方法を具体的に説明する。   Hereinafter, the image inspection method will be described in detail using three examples of images obtained by photographing the wire harness 5.

図2(第1例)は、ワイヤハーネス5において、蛇腹管状に形成された黒い軟質の外装材の中途部に黒い粘着テープを巻き付けて固定した部分を、カメラ12で撮影した画像である。なお、本願図面において写真は書式の都合上グレースケールで示されているが、実際にはカラー撮影が行われる。このように、粘着テープを巻いた部分において、巻き皺の凸の部分にハイライトが現れていることがわかる。   FIG. 2 (first example) is an image taken by the camera 12 of a portion of the wire harness 5 in which a black adhesive tape is wound around and fixed to a midway portion of a black soft exterior material formed in a bellows tubular shape. In the drawings of the present application, the photograph is shown in gray scale for convenience of formatting, but color photography is actually performed. Thus, it can be seen that highlights appear on the convex portion of the curl in the portion where the adhesive tape is wound.

図2の画像を適宜の閾値で2値化したものが図3であり、図3において、当該閾値より明るい画素が白とされ、閾値より暗い画素が黒になっている。この処理によって、粘着テープを巻いた部分の上記ハイライトが、白い画素が縦又は横に連続する領域として現れている。なお、以下の説明では、白い画素が連続する領域を「白領域」と呼ぶことがある。この白領域は、元の画像(図2)において、上記の閾値より明るい画素が連続する領域(明領域)に相当する。2値化された画像からの白領域の検出は、例えば、周知の方法であるラベリング処理によって行うことができる。   FIG. 3 is an image obtained by binarizing the image of FIG. 2 with an appropriate threshold. In FIG. 3, pixels brighter than the threshold are white and pixels darker than the threshold are black. By this processing, the highlight of the part wound with the adhesive tape appears as a region where white pixels are continuously arranged in the vertical or horizontal direction. In the following description, an area where white pixels are continuous may be referred to as a “white area”. This white area corresponds to an area (bright area) in which pixels brighter than the above threshold value continue in the original image (FIG. 2). Detection of a white area from a binarized image can be performed by, for example, a labeling process that is a well-known method.

図3の例において、粘着テープが巻かれた部分に、白領域が、ワイヤハーネス5の長手方向に多数並んで現れている。また、殆どの白領域は細長い形状を有しており、その長手方向は、ワイヤハーネス5の長手方向とほぼ垂直な方向に向けられている。このような白領域の形状は、外装材が蛇腹形状となっていることに起因したものである。   In the example of FIG. 3, many white areas appear in the longitudinal direction of the wire harness 5 in the portion where the adhesive tape is wound. Further, most of the white region has an elongated shape, and the longitudinal direction thereof is directed in a direction substantially perpendicular to the longitudinal direction of the wire harness 5. Such a shape of the white region is attributed to the fact that the exterior material has a bellows shape.

逆に言えば、検査対象部位を2値化した画像に上記のような特徴的な形状の白領域が現れていれば、粘着テープが巻かれており、そうでなければ、粘着テープが巻かれていないと判定することができる。   In other words, if a white region having the characteristic shape as described above appears in the binarized image of the inspection target part, the adhesive tape is wound, otherwise the adhesive tape is wound. It can be determined that it is not.

ただし、白領域は、上述した粘着テープの巻き皺のハイライトだけでなく、例えば外装材(粘着テープが巻かれず露出している部分)に形成されている凹凸のハイライト及び模様等によっても生じる。このことを考慮して、検査部35は、検出された白領域が所定の形状の条件を満たしているかを判別する。この白領域の形状の条件としては、縦方向の大きさ、横方向の大きさ、縦横比、面積、領域に外接する矩形の面積と当該領域の面積の比等が考えられる。   However, the white region is not only the highlight of the adhesive tape curl described above, but also due to, for example, uneven highlights and patterns formed on the exterior material (the part where the adhesive tape is not wound). Arise. Considering this, the inspection unit 35 determines whether or not the detected white area satisfies a predetermined shape condition. As the conditions for the shape of the white region, the size in the vertical direction, the size in the horizontal direction, the aspect ratio, the area, the ratio of the area of the rectangle circumscribing the region to the area of the region, and the like can be considered.

図4には、白領域のうち、予め設定された形状の条件を満たしたものが、矩形で囲んで強調されて示されている。この図4によれば、誤検出もゼロではないが、粘着テープの巻き皺に基づくハイライトを概ね良好に検出できていることがわかる。   In FIG. 4, a white region that satisfies a predetermined shape condition is highlighted and surrounded by a rectangle. According to FIG. 4, it is understood that although the false detection is not zero, the highlight based on the curl of the adhesive tape can be detected almost well.

検査部35は、2値化した画像から、上記の特徴的な形状を有する白領域を検出し、検出個数(又は、検出した白領域の面積の合計)が所定の閾値以上であれば合格と判定し、閾値未満であれば不合格と判定する。これにより、外装材と粘着テープの色が殆ど同じであっても、粘着テープが正しく巻かれているか否かを適切に判定することができる。   The inspection unit 35 detects a white area having the above-described characteristic shape from the binarized image, and passes if the detected number (or the total area of the detected white areas) is equal to or greater than a predetermined threshold. If it is less than the threshold value, it is determined as rejected. Thereby, even if the color of an exterior material and an adhesive tape is almost the same, it can be determined appropriately whether the adhesive tape is wound correctly.

上述したように、外装材の外側に粘着テープを巻き付けた場合、巻き皺の形状には、当該外装材の外形がある程度反映される。従って、当該部位に正しく粘着テープが巻かれていても、粘着テープが巻かれる外装材の組付けが誤っていれば、本来現れるべき巻き皺の特徴が現れないことになる。このように、本実施形態の外観検査装置1によれば、外装材が粘着テープに覆われて隠れてしまっていても、当該外装材の組付けミスを検出することができる。   As described above, when the adhesive tape is wound around the exterior of the exterior material, the outer shape of the exterior material is reflected to some extent in the shape of the curl. Therefore, even if the adhesive tape is correctly wound around the part, if the assembly of the exterior material around which the adhesive tape is wound is wrong, the characteristic of the curl that should originally appear will not appear. Thus, according to the appearance inspection apparatus 1 of this embodiment, even if the exterior material is covered with the adhesive tape and hidden, the assembly error of the exterior material can be detected.

このように粘着テープの巻き皺に基づいてワイヤハーネスを検査することは有用であるが、巻き皺の発生部位は不規則であるため、粘着テープの端部に巻き皺が発生する場合もある。この場合、撮影画像において粘着テープの巻き皺がワイヤハーネスの背景と同化し、巻き皺の形状の判定精度が低下する原因となる。以下、その対策について説明する。   Although it is useful to inspect the wire harness based on the curl of the adhesive tape as described above, the curl is generated irregularly, so that the curl may occur at the end of the adhesive tape. In this case, the curl of the adhesive tape is assimilated with the background of the wire harness in the photographed image, which causes a decrease in the accuracy of determining the curl shape. Hereinafter, the countermeasure will be described.

図5(第2例)は、ワイヤハーネス5において、平板状の部分を有するチューブ状の硬質の外装材に粘着テープを巻き付けて固定した部分をカメラ12で撮影したグレースケール画像である。図5の画像では、外装材の平板状の部分に巻き付けられた粘着テープに光が当たることで、大面積のハイライトが現れている。   FIG. 5 (second example) is a grayscale image obtained by photographing the portion of the wire harness 5 in which the adhesive tape is wound around and fixed to a tube-shaped hard exterior material having a flat portion. In the image of FIG. 5, a large area highlight appears when light hits the adhesive tape wound around the flat portion of the exterior material.

図5の画像を2値化したものが図6であり、この図6において、上記の大面積のハイライトが白い画素の領域(符号8a)として表れているものの、当該白い画素の領域が、図6に符号8bで示した巻き皺の白い画素を通じて、ワイヤハーネスの背景の白い画素(符号8c)と繋がっている。この場合、白い画素が連続する領域にハイライトと背景の両方が含まれてしまうため、形状を正しく判定することができない。   FIG. 6 is a binarized version of the image of FIG. 5. In FIG. 6, although the large area highlight appears as a white pixel region (reference numeral 8 a), the white pixel region is It connects with the white pixel (code | symbol 8c) of the background of a wire harness through the white pixel of the curl shown by the code | symbol 8b in FIG. In this case, since both the highlight and the background are included in a region where white pixels are continuous, the shape cannot be correctly determined.

そこで、本実施形態では、白領域をラベリング処理によって検出する前に、図7に示すように、ワイヤハーネス5の長手方向と垂直な方向に、黒い画素の直線(分割線)を描画する処理を行う。この修正処理により、白い画素の領域が強制的に分断されるので、ハイライトに基づく白領域を正しく検出できることが期待できる。図7には、検出された白領域のうち、予め設定された形状の条件を満たしたものが、矩形で囲んで強調された形で示されている。   Therefore, in the present embodiment, before the white area is detected by the labeling process, a process of drawing a straight line (partition line) of black pixels in a direction perpendicular to the longitudinal direction of the wire harness 5 as shown in FIG. Do. Since the white pixel region is forcibly divided by this correction processing, it can be expected that the white region based on the highlight can be correctly detected. FIG. 7 shows a detected white region that satisfies a predetermined shape condition in a highlighted shape surrounded by a rectangle.

なお、白い画素の領域を分断するように修正する方法としては、上記のように直線を描画することに代えて、又はそれに加えて、ワイヤハーネス5の輪郭の一部を実質的に抽出して、黒い画素によって当該輪郭を描画することも有効である。以下、この例について説明する。   In addition, as a method of correcting so as to divide the white pixel region, a part of the outline of the wire harness 5 is substantially extracted instead of or in addition to drawing a straight line as described above. It is also effective to draw the contour with black pixels. This example will be described below.

図8(第3例)は、ワイヤハーネス5において、蛇腹管状に形成された黒い軟質の外装材の端部に黒い粘着テープを巻き付けて固定した部分を、カメラ12で撮影したグレースケール画像である。   FIG. 8 (third example) is a grayscale image obtained by photographing the portion of the wire harness 5 in which the black adhesive tape is wound around and fixed to the end portion of the black soft exterior material formed in the bellows tubular shape. .

図8の画像を所定の閾値で2値化した結果が図9に示されており、この例では、符号8dで示す粘着テープの巻き皺のハイライト部分が、符号8eの白い画素を通じて、ワイヤハーネスの背景の白い画素(符号8fの部分)と繋がってしまっている。   The result of binarizing the image of FIG. 8 with a predetermined threshold is shown in FIG. 9, and in this example, the highlight part of the adhesive tape indicated by reference numeral 8d passes through the white pixel indicated by reference numeral 8e to the wire. It is connected to a white pixel (portion 8f) on the background of the harness.

この第3例において、まず検査部35は、白ではなく黒い画素が連続する領域を検出する。以下の説明では、黒い画素が連続する領域を「黒領域」と呼ぶことがある。この黒領域は、元の画像(図8)において、上記の閾値より暗い画素が連続する領域(暗領域)に相当する。なお、2値化された画像から黒領域を検出する方法としては、白領域と同様に、周知のラベリング処理等を用いることができる。   In the third example, the inspection unit 35 first detects a region where black pixels are continuous instead of white. In the following description, an area where black pixels are continuous may be referred to as a “black area”. This black region corresponds to a region (dark region) in which pixels darker than the above threshold value continue in the original image (FIG. 8). As a method for detecting a black area from a binarized image, a well-known labeling process or the like can be used as in the case of a white area.

黒領域を全て検出した後、検査部35は、面積が最大である黒領域を残し、それ以外の黒領域を全て消去する処理を行う。これにより、図10に示すように、黒い外装材及び黒い粘着テープに相当する部分だけを、背景のノイズ等を除去した状態で抽出することができる。ただし、黒領域を消去し過ぎて後述の輪郭検出時に良好な輪郭が得られない場合も考えられるので、面積の大きい順で複数の黒領域を残すようにしても良い。また、例えば、面積が最大である黒領域と、面積が2番目に大きい黒領域と、の面積比が所定の条件を満たす場合にだけ、両方の黒領域を残すようにしても良い。   After detecting all the black areas, the inspection unit 35 performs a process of leaving the black area having the maximum area and erasing all other black areas. As a result, as shown in FIG. 10, only the portion corresponding to the black exterior material and the black adhesive tape can be extracted with the background noise and the like removed. However, there may be a case where the black area is excessively erased and a good outline cannot be obtained at the time of detecting the outline described later. Therefore, a plurality of black areas may be left in descending order of area. Further, for example, both black regions may be left only when the area ratio between the black region having the largest area and the black region having the second largest area satisfies a predetermined condition.

次に、検査部35は、図10の画像を一時的に複製した上で、当該複製画像について、黒領域を膨張させた後、収縮させる画像処理を行う。黒領域の膨張処理とは、注目画素に上下左右斜めで隣接する8つの画素(いわゆる8近傍の画素)のうち少なくとも何れかが黒色であれば、当該注目画素を黒色とする処理を、全ての画素について行うものである。黒領域の収縮処理とは、注目画素に上下左右斜めで隣接する8つの画素のうち少なくとも何れかが白色であれば、当該注目画素を白色とする処理を、全ての画素について行うものである。   Next, after inspecting the image of FIG. 10 temporarily, the inspection unit 35 performs image processing for expanding the black region and then contracting the copied image. The black region expansion process is a process of setting a target pixel to black if at least one of eight pixels (so-called eight neighboring pixels) adjacent to the target pixel obliquely vertically and horizontally is black. This is done for pixels. The black region contraction process is a process in which, when at least one of the eight pixels that are diagonally adjacent to the pixel of interest is white, the pixel of interest is whitened for all the pixels.

黒領域の膨張処理を適宜の回数繰り返した後、収縮処理を同じ回数だけ繰り返すことにより、図11のように、図9の符号8eに相当する白い画素(即ち、黒領域の欠け)を除去した画像を得ることができる。   After repeating the expansion process of the black area an appropriate number of times, the contraction process is repeated the same number of times, thereby removing white pixels corresponding to the reference numeral 8e in FIG. 9 (that is, missing black areas) as shown in FIG. An image can be obtained.

その後、検査部35は、図11の画像について公知の輪郭検出処理を行うことにより、図12に示すように輪郭を抽出する。なお、事前に黒領域の欠けが除去されているので、輪郭を良好に得ることができる。そして、検査部35は、図9に示す元の2値画像に対して、図12で得られた輪郭を黒色で描画する。この結果として得られた画像(図13)では、図9に示す符号8dの部分を、符号8fの部分とは分断された形で白領域として検出し、巻き皺によるハイライトが生じているか否かを白領域の形状に基づいて適切に判断することができる。   Thereafter, the inspection unit 35 extracts a contour as shown in FIG. 12 by performing a known contour detection process on the image of FIG. In addition, since the black region chip has been removed in advance, a good outline can be obtained. And the test | inspection part 35 draws the outline obtained in FIG. 12 with black with respect to the original binary image shown in FIG. In the resulting image (FIG. 13), the portion 8d shown in FIG. 9 is detected as a white area in a form separated from the portion 8f, and whether or not highlighting due to curl has occurred. This can be appropriately determined based on the shape of the white region.

以上に説明したように、本実施形態の外観検査装置1は、電線と、外装材と、粘着テープと、を備えるワイヤハーネス5について、粘着テープが巻かれているか否かを検査する。外装材は、電線に装着される。粘着テープは、少なくとも外装材の周囲に巻かれる。この外観検査装置1は、カメラ12と、検査部35と、を備える。カメラ12は、ワイヤハーネス5を撮影する。検査部35は、カメラ12により得られた画像から、巻かれた粘着テープに生じている皺を検出することにより、粘着テープが巻かれているか否かを検査する。   As described above, the appearance inspection apparatus 1 according to the present embodiment inspects whether or not the adhesive tape is wound on the wire harness 5 including the electric wire, the exterior material, and the adhesive tape. The exterior material is attached to the electric wire. The adhesive tape is wound around at least the exterior material. The appearance inspection apparatus 1 includes a camera 12 and an inspection unit 35. The camera 12 images the wire harness 5. The inspection unit 35 inspects whether or not the adhesive tape is wound by detecting wrinkles generated on the wound adhesive tape from the image obtained by the camera 12.

これにより、例えば粘着テープの色が周囲と紛らわしい場合であっても、粘着テープに生じる皺を検出することで、検査を精度良く行うことができる。また、粘着テープの皺が内側の外装材の形状をある程度反映することを利用して、粘着テープに覆われている外装材の組付けが正しいか否かについても検査することが可能になる。   Thereby, for example, even when the color of the adhesive tape is confusing with the surroundings, the inspection can be performed with high accuracy by detecting wrinkles generated on the adhesive tape. Further, it is possible to inspect whether or not the assembly of the exterior material covered with the adhesive tape is correct by utilizing the fact that the wrinkles of the adhesive tape reflect the shape of the inner exterior material to some extent.

また、本実施形態の外観検査装置1において、検査部35は、外装材の周囲に当該外装材と同じ又は類似である色の粘着テープが巻かれているか否かを検査可能である。   Further, in the appearance inspection apparatus 1 of the present embodiment, the inspection unit 35 can inspect whether or not an adhesive tape having the same or similar color as the exterior material is wound around the exterior material.

即ち、本実施形態の外観検査装置1は、外装材と粘着テープの色が同じ又は類似である場合に特に有利である。   That is, the appearance inspection apparatus 1 of this embodiment is particularly advantageous when the colors of the exterior material and the adhesive tape are the same or similar.

また、本実施形態の外観検査装置1において、検査部35は、黒色の外装材の周囲に黒色の粘着テープが巻かれているか否かを検査可能である。   Moreover, in the external appearance inspection apparatus 1 of this embodiment, the test | inspection part 35 can test | inspect whether the black adhesive tape is wound around the black exterior material.

即ち、本実施形態の外観検査装置1は、外装材と粘着テープの色が何れも黒色である場合に特に有利である。   That is, the appearance inspection apparatus 1 according to the present embodiment is particularly advantageous when the exterior material and the adhesive tape are both black.

また、本実施形態の外観検査装置1において、検査部35は、画像を2値化して白領域を検出し、当該白領域の形状に基づいて前記皺を検出する。   Further, in the appearance inspection apparatus 1 according to the present embodiment, the inspection unit 35 binarizes the image to detect a white area, and detects the wrinkles based on the shape of the white area.

これにより、粘着テープの巻き皺に基づくハイライト部分が2値化後の白領域として現れ、この白領域の形状に特定の傾向があることを利用して、当該皺を適切に検出することができる。   Thereby, the highlight part based on the curl of the adhesive tape appears as a white area after binarization, and the fact that the shape of the white area has a specific tendency can be used to appropriately detect the wrinkle. it can.

また、本実施形態の外観検査装置1において、検査部35が画像から白領域を検出する前に、黒い画素によって、ワイヤハーネス5を長手方向で分割する線を描画する処理が行われる。   Further, in the appearance inspection apparatus 1 according to the present embodiment, before the inspection unit 35 detects a white area from the image, a process of drawing a line that divides the wire harness 5 in the longitudinal direction is performed by the black pixels.

これにより、白領域を、ワイヤハーネス5の長手方向で強制的に分断した形で検出することができる。従って、画像に乱れ等(例えば、図6及び図7の符号8bのような白い画素)があっても、粘着テープの巻き皺に基づくハイライト部分を白領域として安定して検出することができる。   Thereby, the white region can be detected in a form that is forcibly divided in the longitudinal direction of the wire harness 5. Therefore, even if the image is disturbed (for example, a white pixel as indicated by reference numeral 8b in FIGS. 6 and 7), the highlight portion based on the curl of the adhesive tape can be stably detected as a white region. .

また、本実施形態の外観検査装置1において、検査部35が前記画像から白領域を検出する前に、黒領域の輪郭線を検出する処理、及び、当該輪郭線を画像に黒い画素で描画する処理が行われる。   Further, in the appearance inspection apparatus 1 according to the present embodiment, before the inspection unit 35 detects a white area from the image, the process of detecting the outline of the black area, and the outline is drawn with black pixels on the image. Processing is performed.

これにより、白領域を、黒領域の輪郭の内外を分断した形で検出することができる。従って、粘着テープの巻き皺に基づくハイライト部分を安定して検出することができる。   Thereby, a white area | region can be detected in the form which divided | segmented the inside and outside of the outline of a black area | region. Therefore, the highlight part based on the curl of the adhesive tape can be detected stably.

また、本実施形態の外観検査装置1においては、黒領域の輪郭線を検出する前に、黒領域の欠けを除去する処理(具体的には、膨張処理と収縮処理の組合せ)が行われる。   In addition, in the appearance inspection apparatus 1 of the present embodiment, a process of removing black area defects (specifically, a combination of an expansion process and a contraction process) is performed before detecting the outline of the black area.

これにより、黒領域の欠けを無くすことができるので、粘着テープ等の形状を実質的に良好に反映させた輪郭線を得ることができる。従って、画像に乱れ等(例えば、図9の符号8eのような白い画素)があっても、巻き皺に基づくハイライトを白領域として適切に得ることができる。   As a result, the black area can be eliminated, and a contour line that substantially reflects the shape of the adhesive tape or the like can be obtained. Therefore, even if the image is disturbed (for example, a white pixel as indicated by reference numeral 8e in FIG. 9), highlights based on curl can be appropriately obtained as a white region.

また、本実施形態の外観検査装置1において、検査部35は、画像を2値化して黒領域を検出する。検査部35は、当該画像において、面積が最も大きい1又は複数の黒領域によって実質的に囲まれる部分(図12の輪郭で囲まれる部分)から白領域を検出する。   Further, in the appearance inspection apparatus 1 of the present embodiment, the inspection unit 35 binarizes the image and detects a black region. In the image, the inspection unit 35 detects a white region from a portion substantially surrounded by one or a plurality of black regions having the largest area (portion surrounded by the contour in FIG. 12).

これにより、面積の大きい黒領域によって実質的に囲まれる白領域を検出することで、粘着テープの巻き皺に基づくハイライトを白領域として適切に得ることができる。   Thereby, the highlight based on the curl of the adhesive tape can be appropriately obtained as the white region by detecting the white region substantially surrounded by the black region having a large area.

以上に本発明の好適な実施の形態を説明したが、上記の構成は例えば以下のように変更することができる。   The preferred embodiment of the present invention has been described above, but the above configuration can be modified as follows, for example.

外観検査装置1によって検査されるワイヤハーネス5の外装材及び粘着テープの色は、上記に限定されず、任意に定めて良い。例えば、高圧系のワイヤハーネスの場合、外装材及び粘着テープの両方がオレンジ色になる場合があるが、当然このような例も含まれる。   The color of the exterior material and the adhesive tape of the wire harness 5 inspected by the appearance inspection apparatus 1 is not limited to the above, and may be arbitrarily determined. For example, in the case of a high-voltage wire harness, both the exterior material and the adhesive tape may be orange, but such an example is naturally included.

外観検査装置1によって、粘着テープが巻かれているか以外の検査だけでなく、他の検査(例えば、コネクタが取り付けられているか)等の検査が行われても良い。   In addition to the inspection other than whether the adhesive tape is wound, the appearance inspection apparatus 1 may perform other inspections (for example, whether a connector is attached) or the like.

画像を2値化する明るさの基準としては、例えば輝度を用いれば良いが、これに代えて明度を用いても良い。また、例えば、画素の色をRGBで表した場合の特定の色の輝度値を基準にしても良い。更には、画像を2値化することなく、閾値より明るい画素が連続する領域(明領域)、及び、閾値より暗い画素が連続する領域(暗領域)を検出しても良い。   For example, brightness may be used as the brightness reference for binarizing the image, but brightness may be used instead. For example, the luminance value of a specific color when the pixel color is expressed in RGB may be used as a reference. Furthermore, an area in which pixels brighter than the threshold continue (bright area) and an area in which pixels darker than the threshold continue (dark area) may be detected without binarizing the image.

上記の実施形態では、硬質の外装材の場合には図7のように分割線を描画し、軟質の外装材の場合には図12のように輪郭線を描画するというように、画像の修正方法が外装材に応じて使い分けられている。しかしながら、図7のように分割線を描画する処理と、図12の輪郭線を描画する処理と、の両方が行われても良い。   In the above embodiment, the dividing line is drawn as shown in FIG. 7 in the case of a hard case, and the contour is drawn as shown in FIG. 12 in the case of a soft case. Different methods are used depending on the exterior material. However, both the process of drawing the dividing line as shown in FIG. 7 and the process of drawing the contour line of FIG. 12 may be performed.

黒領域の欠けを除去する処理は、膨張処理と収縮処理の組合せとすることに代えて、膨張処理だけとしても良い。   The process of removing the black region chip may be only the expansion process instead of the combination of the expansion process and the contraction process.

1 外観検査装置(画像検査装置)
5 ワイヤハーネス
12 カメラ(撮影部)
35 検査部
1 Visual inspection device (image inspection device)
5 Wire harness 12 Camera (shooting unit)
35 Inspection Department

Claims (10)

配線体と、
前記配線体に装着された外装材と、
少なくとも前記外装材の周囲に巻かれた粘着テープと、
を備えるワイヤハーネスについて、前記粘着テープが巻かれているか否かを検査する画像検査装置であって、
前記ワイヤハーネスを撮影する撮影部と、
前記撮影部により得られた画像から、巻かれた前記粘着テープに生じている皺を検出することにより、前記粘着テープが巻かれているか否かを検査する検査部と、
を備えることを特徴とする画像検査装置。
A wiring body;
An exterior material attached to the wiring body;
At least an adhesive tape wound around the exterior material;
An image inspection apparatus for inspecting whether or not the adhesive tape is wound on a wire harness comprising:
An imaging unit for imaging the wire harness;
From the image obtained by the photographing unit, an inspection unit that inspects whether or not the adhesive tape is wound by detecting wrinkles generated on the wound adhesive tape,
An image inspection apparatus comprising:
請求項1に記載の画像検査装置であって、
前記検査部は、前記外装材の周囲に当該外装材と同じ又は類似である色の粘着テープが巻かれているか否かを検査可能であることを特徴とする画像検査装置。
The image inspection apparatus according to claim 1,
The image inspection apparatus, wherein the inspection unit can inspect whether or not an adhesive tape having the same or similar color as the exterior material is wound around the exterior material.
請求項2に記載の画像検査装置であって、
前記検査部は、黒色の前記外装材の周囲に黒色の粘着テープが巻かれているか否かを検査可能であることを特徴とする画像検査装置。
The image inspection apparatus according to claim 2,
The image inspection apparatus, wherein the inspection unit can inspect whether or not a black adhesive tape is wound around the black exterior material.
請求項1から3までの何れか一項に記載の画像検査装置であって、
前記検査部は、前記画像から、所定値よりも明るい画素が連続する領域である明領域を検出し、当該明領域の形状に基づいて前記皺を検出することを特徴とする画像検査装置。
The image inspection apparatus according to any one of claims 1 to 3,
The image inspection apparatus, wherein the inspection unit detects, from the image, a bright region that is a region where pixels brighter than a predetermined value are continuous, and detects the wrinkles based on a shape of the bright region.
請求項4に記載の画像検査装置であって、
前記検査部が前記画像から前記明領域を検出する前に、前記所定値よりも暗い画素によって、前記ワイヤハーネスを長手方向で分割する線を描画する処理が行われることを特徴とする画像検査装置。
The image inspection apparatus according to claim 4,
An image inspection apparatus in which a process for drawing a line dividing the wire harness in a longitudinal direction is performed by pixels darker than the predetermined value before the inspection unit detects the bright area from the image. .
請求項4又は5に記載の画像検査装置であって、
前記検査部が前記画像から前記明領域を検出する前に、前記所定値よりも暗い画素が連続する領域である暗領域の輪郭線を検出する処理、及び、前記所定値よりも暗い画素によって前記輪郭線を描画する処理が行われることを特徴とする画像検査装置。
The image inspection apparatus according to claim 4 or 5,
Before the inspection unit detects the bright region from the image, a process of detecting a contour line of a dark region, which is a region where pixels darker than the predetermined value are continuous, and the pixels darker than the predetermined value An image inspection apparatus characterized in that a process of drawing an outline is performed.
請求項6に記載の画像検査装置であって、
前記輪郭線を検出する前に、前記暗領域の欠けを除去する処理が行われることを特徴とする画像検査装置。
The image inspection apparatus according to claim 6,
The image inspection apparatus according to claim 1, wherein a process for removing the lack of the dark region is performed before detecting the contour line.
請求項4から7までの何れか一項に記載の画像検査装置であって、
前記検査部は、前記画像から、前記所定値よりも暗い画素が連続する領域である暗領域を検出し、
前記検査部は、前記画像において、面積が大きい順に選択された1又は複数の前記暗領域によって実質的に囲まれる部分から前記明領域を検出することを特徴とする画像検査装置。
The image inspection apparatus according to any one of claims 4 to 7,
The inspection unit detects, from the image, a dark region that is a region in which pixels darker than the predetermined value are continuous,
The said inspection part detects the said bright area | region from the part substantially enclosed by the one or some said dark area selected in the order of the area in the said image, The image inspection apparatus characterized by the above-mentioned.
配線体と、
前記配線体に装着された外装材と、
少なくとも前記外装材の周囲に巻かれた粘着テープと、
を備えるワイヤハーネスについて、前記粘着テープが巻かれているか否かを検査する画像検査方法であって、
前記ワイヤハーネスを撮影する撮影工程と、
前記撮影工程で得られた画像から、巻かれた前記粘着テープに生じている皺を検出することにより、前記粘着テープが巻かれているか否かを検査する検査工程と、
を含むことを特徴とする画像検査方法。
A wiring body;
An exterior material attached to the wiring body;
At least an adhesive tape wound around the exterior material;
An image inspection method for inspecting whether or not the adhesive tape is wound,
A photographing step of photographing the wire harness;
From the image obtained in the photographing step, an inspection step for inspecting whether or not the adhesive tape is wound by detecting wrinkles occurring on the wound adhesive tape;
An image inspection method comprising:
配線体と、
前記配線体に装着された外装材と、
少なくとも前記外装材の周囲に巻かれた粘着テープと、
を備えるワイヤハーネスについて、前記粘着テープが巻かれているか否かを検査する画像検査プログラムであって、
前記ワイヤハーネスを撮影する撮影ステップと、
前記撮影ステップで得られた画像から、巻かれた前記粘着テープに生じている皺を検出することにより、前記粘着テープが巻かれているか否かを検査する検査ステップと、
を含むことを特徴とする画像検査プログラム。
A wiring body;
An exterior material attached to the wiring body;
At least an adhesive tape wound around the exterior material;
An image inspection program for inspecting whether or not the adhesive tape is wound on a wire harness comprising:
A photographing step of photographing the wire harness;
From the image obtained in the photographing step, an inspection step for inspecting whether or not the adhesive tape is wound by detecting wrinkles generated on the wound adhesive tape;
An image inspection program comprising:
JP2016088453A 2016-04-26 2016-04-26 Image inspection apparatus, image inspection method, and image inspection program Active JP6574402B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016088453A JP6574402B2 (en) 2016-04-26 2016-04-26 Image inspection apparatus, image inspection method, and image inspection program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016088453A JP6574402B2 (en) 2016-04-26 2016-04-26 Image inspection apparatus, image inspection method, and image inspection program

Publications (2)

Publication Number Publication Date
JP2017198510A JP2017198510A (en) 2017-11-02
JP6574402B2 true JP6574402B2 (en) 2019-09-11

Family

ID=60237671

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016088453A Active JP6574402B2 (en) 2016-04-26 2016-04-26 Image inspection apparatus, image inspection method, and image inspection program

Country Status (1)

Country Link
JP (1) JP6574402B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102327595B1 (en) * 2021-06-09 2021-11-17 주식회사 한울시스템 Method and device for determining wrinkle area for seat
WO2022260431A1 (en) * 2021-06-09 2022-12-15 주식회사 한울시스템 Method and device for determining wrinkled region for seat

Also Published As

Publication number Publication date
JP2017198510A (en) 2017-11-02

Similar Documents

Publication Publication Date Title
KR102206698B1 (en) Abnormality inspection device and abnormality inspection method
JP4150390B2 (en) Appearance inspection method and appearance inspection apparatus
JP6052590B2 (en) Surface inspection apparatus and surface inspection method for automobile body
JP5446849B2 (en) Wire rope inspection device
JP2009133085A (en) Crack checking device for tunnel lining
JP4633245B2 (en) Surface inspection apparatus and surface inspection method
JP6574402B2 (en) Image inspection apparatus, image inspection method, and image inspection program
JP4322230B2 (en) Surface defect inspection apparatus and surface defect inspection method
JP4279833B2 (en) Appearance inspection method and appearance inspection apparatus
JP2014020926A (en) Surface defect inspection device and surface defect inspection method
KR20180115645A (en) Apparatus for weld bead recognition of 2d image-based and soot removal method using the same
JP2018084542A (en) Wire harness inspection device and method for inspecting wire harness
JP2008014842A (en) Method and apparatus for detecting stain defects
JP3283356B2 (en) Surface inspection method
JP2008171142A (en) Spot defect detection method and device
JP2016217989A (en) Defect inspection device and defect inspection method
JP3935048B2 (en) Covered wire inspection equipment
JP5136277B2 (en) Defect detection method for netted or lined glass
JP6623545B2 (en) Inspection system, inspection method, program, and storage medium
JP4349960B2 (en) Surface defect inspection equipment
JP4956077B2 (en) Defect inspection apparatus and defect inspection method
JP2008292398A (en) Method of inspecting floating defect of component electrode and substrate inspecting device
JP2020118572A (en) Surface defect inspection device and surface defect inspection method
JP2000205846A (en) Device and method for inspecting painting for unevenness
JP2018040599A (en) Inspection system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181113

TRDD Decision of grant or rejection written
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190717

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190726

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190816

R151 Written notification of patent or utility model registration

Ref document number: 6574402

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350