JP2022146141A - Visual inspection method and visual inspection device - Google Patents

Visual inspection method and visual inspection device Download PDF

Info

Publication number
JP2022146141A
JP2022146141A JP2021046960A JP2021046960A JP2022146141A JP 2022146141 A JP2022146141 A JP 2022146141A JP 2021046960 A JP2021046960 A JP 2021046960A JP 2021046960 A JP2021046960 A JP 2021046960A JP 2022146141 A JP2022146141 A JP 2022146141A
Authority
JP
Japan
Prior art keywords
image
color
light
inspection
monochromatic light
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2021046960A
Other languages
Japanese (ja)
Inventor
哲也 疋田
Tetsuya Hikita
拓也 川村
Takuya Kawamura
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.)
Yasunaga Corp
Original Assignee
Yasunaga 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 Yasunaga Corp filed Critical Yasunaga Corp
Priority to JP2021046960A priority Critical patent/JP2022146141A/en
Priority to PCT/JP2022/007070 priority patent/WO2022202042A1/en
Publication of JP2022146141A publication Critical patent/JP2022146141A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination

Landscapes

  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

To improve inspection accuracy when performing a visual inspection on an inspection object using a color image.SOLUTION: A visual inspection method comprises the steps of: acquiring an image of a workpiece W irradiated with light; acquiring a first image being a monochromatic light image in a first color and a second image being a monochromatic light image in a second color being a different color from the first color from the acquired image of the workpiece W; combining the image based on the first image with the image based on the second image by adding the respective gradation values of a plurality of pixels constituting each image to each other; extracting a portion whose gradation value is within a prescribed range from the obtained composite image; and determining the presence/absence of a defect C on the basis of the extracted portion.SELECTED DRAWING: Figure 6

Description

ここに開示された技術は、外観検査方法及び外観検査装置に関する技術分野に属する。 The technology disclosed herein belongs to the technical field related to visual inspection methods and visual inspection apparatuses.

従来より、電子部品などの検査対象物を撮像して得られた画像に基づいて、検査対象物に欠けや異物の付着等の欠陥がないかを検査する外観検査方法が知られている。従来は、白黒画像に基づく検査が主流であったが、近年では、カラー画像を用いてより詳細な検査を行うことが検討されている。 2. Description of the Related Art Conventionally, there has been known a visual inspection method for inspecting an inspection object such as an electronic component for defects such as chipping and adhesion of foreign matter based on an image obtained by imaging the inspection object. Conventionally, inspections based on black-and-white images have been the mainstream, but in recent years, more detailed inspections using color images have been considered.

例えば、特許文献1に記載の外観検査装置では、複数の撮像画像のそれぞれを複数の色成分に分光処理して複数の分光画像を生成し、生成した分光画像を、検査目的に応じた分配率で合成した合成画像を生成し、生成された合成画像に基づいて検査対象物の外観を判定している。 For example, in the appearance inspection apparatus described in Patent Document 1, each of a plurality of captured images is spectrally processed into a plurality of color components to generate a plurality of spectral images, and the generated spectral images are divided into distribution ratios according to the purpose of inspection. generates a composite image synthesized in , and determines the appearance of the inspection object based on the generated composite image.

特開2019-124640号公報JP 2019-124640 A

ところで、欠陥に色がついている場合、分光画像のそれぞれにおいて欠陥部分のコントラストに差がある。各分光画像の欠陥部分のコントラストが小さい場合、各分光画像に対して分配率を定めて合成すると、コントラストの情報が劣化してしまうおそれがある。このため、外観検査の検査精度を向上させる観点からは改良の余地がある。 By the way, when the defect is colored, there is a difference in the contrast of the defect portion in each of the spectral images. When the contrast of the defect portion of each spectral image is low, if the distribution ratio is determined for each spectral image and synthesized, the contrast information may be degraded. Therefore, there is room for improvement from the viewpoint of improving the inspection accuracy of appearance inspection.

ここに開示された技術は斯かる点に鑑みてなされたものであり、その目的とするところは、カラー画像を用いて検査対象物の外観検査をする際の検査精度を向上させることにある。 The technique disclosed herein has been made in view of the above points, and its purpose is to improve the inspection accuracy when performing the appearance inspection of an inspection object using a color image.

前記課題を解決するために、ここに開示された技術では、検査対象物の表面に形成された欠陥を検査する外観検査方法を対象として、前記検査対象物に光を照射する照射工程と、光が照射された前記検査対象物の画像を取得する撮像工程と、取得された前記検査対象物の画像から第1色の単色光画像である第1画像と、該第1色とは異なる色の第2色の単色光画像である第2画像とを取得する単色光画像取得工程と、前記第1画像に基づく画像と前記第2画像に基づく画像とを、各画像を構成する複数の画素の各階調値を対応する画素毎にそれぞれ足し合わせることで合成する画像合成工程と、前記画像合成工程で得られた合成画像に基づいて前記欠陥の有無を判定する判定工程と、を含み、前記判定工程は、前記画像合成工程で得られた合成画像から、階調値が所定範囲内である部分を抜き出して、該抜き出した部分に基づいて前記欠陥の有無を判定する工程である、という構成にした。 In order to solve the above problems, the technology disclosed herein is directed to a visual inspection method for inspecting defects formed on the surface of an inspection object, and includes an irradiation step of irradiating the inspection object with light; a first image that is a monochromatic light image of a first color from the acquired image of the inspection object; and a color different from the first color. a monochromatic light image acquiring step of acquiring a second image that is a monochromatic light image of a second color; an image synthesizing step of synthesizing each tone value by adding it up for each corresponding pixel; and a judging step of judging the presence or absence of the defect based on the synthetic image obtained in the image synthesizing step. The step extracts a portion having a gradation value within a predetermined range from the synthesized image obtained in the image synthesizing step, and determines the presence or absence of the defect based on the extracted portion. did.

この構成によると、階調値を足し合わせて画像を合成するため、欠陥候補とその周辺の階調値の差が大きくなり、欠陥周辺のコントラストが大きくなる。特に、異なる色の単色光画像を用いることで、1つの画像の階調値を倍増する等して階調値の差を大きくする場合とは異なり、階調値の差が欠陥により発生していることを精度良く判定することができる。また、階調値が所定範囲内である部分を抜き出すことで、欠陥周辺を強調することができる。これにより、外観検査の検査精度を向上させることができる。 According to this configuration, since the image is synthesized by adding the gradation values, the difference between the gradation values of the defect candidate and its periphery becomes large, and the contrast around the defect becomes large. In particular, by using monochromatic light images of different colors, the difference in gradation value is caused by a defect, unlike the case where the gradation value of one image is doubled to increase the difference in gradation value. It can be determined with high accuracy that there is In addition, by extracting a portion whose gradation value is within a predetermined range, the periphery of the defect can be emphasized. Thereby, the inspection accuracy of the appearance inspection can be improved.

前記外観検査方法の一実施形態では、前記照射工程で照射される光は白色光であり、前記単色光画像取得工程は、前記撮像工程で取得された画像から、RGBのうちの2色の画像を、前記第1画像及び前記第2画像として取得する工程である。 In one embodiment of the appearance inspection method, the light irradiated in the irradiation step is white light, and the monochromatic light image obtaining step obtains an image of two colors of RGB from the image obtained in the imaging step. as the first image and the second image.

すなわち、白色光に照射された検査対象物の画像であれば、該画像からRGBの各色の画像を生成することができる。これにより、RGBの各色を検査対象物に照射した画像を取得する必要がなくなり、検査時間を短縮することができる。 That is, if it is an image of an inspection object irradiated with white light, an image of each color of RGB can be generated from the image. This eliminates the need to obtain an image in which the inspection object is irradiated with each color of RGB, thereby shortening the inspection time.

前記一実施形態において、前記単色光画像取得工程は、RGBのうち欠陥候補周辺のコントラストが最も大きい色の単色光画像を前記第1画像とし、RGBのうち前記欠陥候補周辺のコントラストが最も小さい色の単色光画像を前記第2画像とする工程であり、前記画像合成工程の前に、前記第2画像における階調値を反転させて反転画像を得る反転画像取得工程を更に含み、前記画像合成工程は、前記第1画像と前記反転画像とを合成する工程である、という構成でもよい。 In the above-described embodiment, the monochromatic light image acquiring step uses the monochromatic light image of a color having the highest contrast around the defect candidate among RGB as the first image, and the color having the smallest contrast around the defect candidate among RGB. using the monochromatic light image as the second image, further comprising a reversed image obtaining step of obtaining a reversed image by reversing the gradation value in the second image before the image synthesizing step, wherein the image synthesizing step The step may be a step of synthesizing the first image and the reverse image.

この構成によると、欠陥候補周辺のコントラストが最も小さい色の単色光画像の階調値を反転させた反転画像を第1画像と合成することで、欠陥部分の階調値にはほとんど影響を与えることなく、背景部分の階調値を出来る限り小さくすることができる。これにより、欠陥周辺のコントラストを強調することができる。この結果、外観検査の検査精度をより向上させることができる。 According to this configuration, by synthesizing an inverted image obtained by inverting the gradation value of the monochromatic light image of the color with the lowest contrast around the defect candidate with the first image, the gradation value of the defect portion is almost affected. gradation value of the background portion can be made as small as possible. Thereby, the contrast around the defect can be enhanced. As a result, it is possible to further improve the inspection accuracy of the appearance inspection.

前記一実施形態において、前記画像合成工程の前に、前記第1画像の各画素の階調値の平均値と、前記第2画像の各画素の階調値の平均値とが同じになるように、前記第1画像の各画素の階調値及び前記第2画像の各画素の階調値を補正する階調値調整工程を更に含み、前記画像合成工程は、各画素の階調値がそれぞれ調整された後の第1画像と各画素の階調値がそれぞれ調整された後の第2画像とを合成する工程である、という構成でもよい。 In the one embodiment, before the image synthesizing step, the average value of the gradation values of the pixels of the first image and the average value of the gradation values of the pixels of the second image are adjusted to be the same. and further comprising a gradation value adjustment step of correcting the gradation value of each pixel of the first image and the gradation value of each pixel of the second image, wherein the image synthesizing step is performed so that the gradation value of each pixel is It may be a step of synthesizing the first image after each adjustment and the second image after each adjustment of the gradation value of each pixel.

この構成によると、撮像工程で用いるカメラの受光感度がRGBで異なる場合や、照明装置のRGBの波長バランスが異なる場合などであっても、第1画像及び第2画像の階調値の平均値をそろえることで、これらの影響を低減することができる。これにより、欠陥周辺のコントラストを強調しやすくすることができ、外観検査の検査精度をより向上させることができる。 According to this configuration, even if the light receiving sensitivity of the camera used in the imaging process is different for RGB, or if the wavelength balance of RGB of the lighting device is different, the average value of the gradation values of the first image and the second image These effects can be reduced by aligning the Thereby, the contrast around the defect can be easily emphasized, and the inspection accuracy of the appearance inspection can be further improved.

ここに開示された技術の他の態様は、検査対象物の表面に形成された欠陥を検査する外観検査装置を対象として、前記検査対象物に光を照射する照射部と、光が照射された前記検査対象物の画像を取得する撮像部と、取得された前記検査対象物の画像から欠陥の有無を検査する検査部と、を備え、前記検査部は、前記撮像部により取得された前記検査対象物の画像から第1色の単色光画像である第1画像と、該第1色とは異なる色の第2色の単色光画像である第2画像とを取得し、前記第1画像に基づく画像と前記第2画像に基づく画像とを、各画像を構成する複数の画素の各階調値を対応する画素毎にそれぞれ足し合わせることで合成して合成画像を生成し、前記合成画像から、階調値が所定範囲内である部分を抜き出して、該抜き出した部分に基づいて前記欠陥の有無を判定する、という構成とした。 Another aspect of the technology disclosed herein is directed to a visual inspection apparatus for inspecting defects formed on a surface of an inspection object, and includes an irradiation unit for irradiating the inspection object with light, and an imaging unit that acquires an image of the inspection object; and an inspection unit that inspects whether or not there is a defect from the acquired image of the inspection object, wherein the inspection unit performs the inspection acquired by the imaging unit. obtaining a first image, which is a monochromatic light image of a first color, and a second image, which is a monochromatic light image of a second color different from the first color, from the image of the object; generating a composite image by combining the base image and the image based on the second image by adding up the tone values of the plurality of pixels constituting each image for each corresponding pixel, and from the composite image, A portion having a gradation value within a predetermined range is extracted, and the presence or absence of the defect is determined based on the extracted portion.

この構成でも、欠陥周辺の階調値の差を大きくできるとともに、欠陥周辺のコントラストを強調することができる。これにより、外観検査の検査精度を向上させることができる。 With this configuration as well, the difference in gradation value around the defect can be increased, and the contrast around the defect can be enhanced. Thereby, the inspection accuracy of the appearance inspection can be improved.

前記外観検査装置において、前記照射部が照射する光は白色光であり、前記検査部は、前記撮像部により取得された画像から、RGBのうちの2色の画像を、前記第1画像及び前記第2画像として取得する、という構成でもよい。 In the appearance inspection apparatus, the light emitted by the irradiation unit is white light, and the inspection unit converts images of two colors of RGB from the image acquired by the imaging unit into the first image and the A configuration in which the image is obtained as the second image may also be used.

この構成によると、取得した画像からRGBの各色の画像を生成することができる。これにより、RGBの各色を検査対象物に照射した画像を取得する必要がなくなり、検査時間を短縮することができる。 According to this configuration, an image of each color of RGB can be generated from the acquired image. This eliminates the need to obtain an image in which the inspection object is irradiated with each color of RGB, thereby shortening the inspection time.

ここに開示された技術における外観検査方法の他の態様は、検査対象物の表面に形成された欠陥を検査する外観検査方法を対象として、前記検査対象物に光を照射する照射工程と、光が照射された前記検査対象物の画像を1つ又は複数取得する撮像工程と、前記画像が1つである場合には、該1つの画像から取得される複数の単色光画像に対して、各単色光画像を構成する複数の画素の各階調値を対応する画素毎にそれぞれ足し合わせることで各単色光画像を合成し、前記画像が複数である場合には、該各画像を構成する複数の画素の各階調値を対応する画素毎にそれぞれ足し合わせることで各画像を合成する画像合成工程と、前記画像合成工程で得られた合成画像に基づいて前記欠陥の有無を判定する判定工程と、を含み、前記判定工程は、前記画像合成工程で得られた合成画像から、階調値が所定範囲内である部分を抜き出して、該抜き出した部分に基づいて前記欠陥の有無を判定する工程である、という構成とした。 Another aspect of the visual inspection method in the technique disclosed herein is directed to a visual inspection method for inspecting defects formed on the surface of an inspection object, and includes an irradiation step of irradiating the inspection object with light; an imaging step of acquiring one or more images of the inspected object irradiated with, and when the image is one, for a plurality of monochromatic light images acquired from the one image, each Each monochromatic light image is synthesized by summing up the respective gradation values of a plurality of pixels constituting the monochromatic light image for each corresponding pixel, and when there are a plurality of said images, the plurality of monochromatic light images constituting the respective images are synthesized. an image synthesizing step of synthesizing each image by adding up the respective gradation values of the pixels for each corresponding pixel; and a determining step of determining the presence or absence of the defect based on the synthesized image obtained in the image synthesizing step; wherein the determining step is a step of extracting a portion having a gradation value within a predetermined range from the synthesized image obtained in the image synthesizing step, and determining the presence or absence of the defect based on the extracted portion. It was configured as follows.

この構成でも、欠陥周辺の階調値の差を大きくできるとともに、欠陥周辺のコントラストを強調することができる。これにより、外観検査の検査精度を向上させることができる。 With this configuration as well, the difference in gradation value around the defect can be increased, and the contrast around the defect can be enhanced. Thereby, the inspection accuracy of the appearance inspection can be improved.

以上説明したように、ここに開示された技術によると、カラー画像を用いて検査対象物の外観検査をする際の検査精度を向上させることができる。 As described above, according to the technology disclosed herein, it is possible to improve the inspection accuracy when performing a visual inspection of an inspection object using a color image.

図1は、実施形態1に係る外観検査装置の概略図である。FIG. 1 is a schematic diagram of a visual inspection apparatus according to Embodiment 1. FIG. 図2は、外観検査装置のカメラ周辺を示す概略図である。FIG. 2 is a schematic diagram showing the periphery of the camera of the visual inspection apparatus. 図3は、外観検査装置の制御系を示すブロック図である。FIG. 3 is a block diagram showing the control system of the visual inspection apparatus. 図4は、カメラで撮像された画像から単色光画像を生成した状態を示す模式図である。FIG. 4 is a schematic diagram showing a state in which a monochromatic light image is generated from an image captured by a camera. 図5は、画像合成工程を概略的に示す図である。FIG. 5 is a diagram schematically showing the image synthesizing process. 図6は、合成画像から判定用の画像を取得する様子を示す図である。FIG. 6 is a diagram showing how an image for determination is acquired from a synthesized image. 図7は、コントローラによる外観検査の処理動作を示すフローチャートである。FIG. 7 is a flow chart showing the processing operation of appearance inspection by the controller. 図8は、実施形態2に係る外観検査装置において、反転画像生成工程を概略的に示す図である。FIG. 8 is a diagram schematically showing a reverse image generation process in the visual inspection apparatus according to the second embodiment. 図9は、実施形態2に係る外観検査装置において、合成画像から判定用の画像を取得する様子を示す図である。FIG. 9 is a diagram showing how an image for judgment is acquired from a synthesized image in the appearance inspection apparatus according to the second embodiment. 図10は、実施形態3に係る外観検査装置において、階調値調整工程を概略的に示す図である。FIG. 10 is a diagram schematically showing a gradation value adjusting process in the visual inspection apparatus according to the third embodiment.

以下、例示的な実施形態について、図面を参照しながら詳細に説明する。尚、以下の説明における、前後方向、上下方向、及び左右方向は、説明を簡単にするために便宜上規定した方向であり、実際の使用状態を限定するものではない。 Exemplary embodiments are described in detail below with reference to the drawings. Note that the front-back direction, the up-down direction, and the left-right direction in the following description are directions defined for the sake of convenience in order to simplify the description, and do not limit the actual usage conditions.

(実施形態1)
図1及び図2は、本実施形態1に係る外観検査装置1を概略的に示す。この外観検査装置1は、例えば、検査対象物(以下、ワークWという)としての半導体部品等の欠陥を外観から検査する装置である。ここでいう「欠陥」とは、傷、凹み、異物の付着等である。
(Embodiment 1)
1 and 2 schematically show an appearance inspection apparatus 1 according to the first embodiment. This visual inspection apparatus 1 is, for example, an apparatus for inspecting the defects of a semiconductor component or the like as an inspection object (hereinafter referred to as a work W) from its appearance. The term "defect" as used herein means scratches, dents, adherence of foreign matter, and the like.

外観検査装置1は、箱状の筐体2を有する。筐体2内には、3つのトレー収納部4,5,6と、1つの検査部3とが設けられている。トレー収納部4,5,6は、検査前のワークWが並べられたトレーを収納する検査前トレー収納部4と、欠陥無しと判定されたワークWが並べられたトレーを収納する良品トレー収納部5と、欠陥有りと判定されたワークWが並べられたトレーを収納する欠陥品トレー収納部6とを含む。検査部3の詳細については後述する。尚、3つのトレー収納部4,5,6及び1つの検査部3の配置については、特に限定されない。 A visual inspection apparatus 1 has a box-shaped housing 2 . Inside the housing 2, three tray storage units 4, 5, 6 and one inspection unit 3 are provided. Tray storage units 4, 5, and 6 include a pre-inspection tray storage unit 4 for storing trays in which works W before inspection are arranged, and a non-defective tray storage unit for storing trays in which works W judged to be free of defects are arranged. and a defective product tray storage unit 6 for storing trays in which works W determined to be defective are arranged. Details of the inspection unit 3 will be described later. The arrangement of the three tray storage units 4, 5, 6 and one inspection unit 3 is not particularly limited.

各トレー収納部4,5,6及び検査部3の上側には、各トレー収納部4,5,6及び検査部3が並ぶ方向に沿って延びるレール7が設けられている。レール7にはワークWを保持するアーム8が、該レール7に沿ってスライド可能に支持されている。アーム8の先端(ここでは下側端)には、実際にワークWを保持する保持部8aが設けられている。保持部8aは、ワークWを真空吸着により吸着保持する。保持部8aは、上下方向に移動可能に構成されている。アーム8は、レール7に沿って移動することで、保持部8aに保持されたワークWを、検査前トレー収納部4から、検査部3、良品トレー収納部5若しくは欠陥品トレー収納部6に搬送する。アーム8は、後述するコントローラ100のアーム制御部101により制御される。 A rail 7 extending along the direction in which the tray storage units 4, 5, 6 and the inspection unit 3 are arranged is provided above the tray storage units 4, 5, 6 and the inspection unit 3. As shown in FIG. An arm 8 for holding a workpiece W is supported on the rail 7 so as to be slidable along the rail 7 . A holding portion 8a that actually holds the workpiece W is provided at the tip (here, the lower end) of the arm 8. As shown in FIG. The holding portion 8a sucks and holds the work W by vacuum suction. The holding portion 8a is configured to be vertically movable. The arm 8 moves along the rail 7 to move the workpiece W held by the holding portion 8 a from the pre-inspection tray storage portion 4 to the inspection portion 3 , the non-defective product tray storage portion 5 or the defective product tray storage portion 6 . transport. The arm 8 is controlled by an arm control section 101 of a controller 100 which will be described later.

各トレー収納部4,5,6に収納されたトレーは、コンベヤ(図示省略)により、レール7及び上下方向の両方に直交する方向に移動可能に構成されている。このコンベヤにより、アーム8とトレーとの位置合わせができるようになっている。尚、レール7が、該レール7及び上下方向の両方に直交する方向に移動可能に構成されていて、レール7を移動させることで、アーム8とトレーとの位置合わせをする構成でもよい。 The trays stored in the respective tray storage sections 4, 5 and 6 are movable in a direction perpendicular to both the rails 7 and the vertical direction by a conveyor (not shown). This conveyor allows alignment between the arm 8 and the tray. Alternatively, the rail 7 may be movable in a direction perpendicular to both the rail 7 and the vertical direction, and the arm 8 and the tray may be aligned by moving the rail 7 .

検査部3は、角筒状の壁部3aを有する。検査部3は、壁部3aの内側に、ワークWの画像を取得する1つのカメラ10と、ワークWにおける検査領域に光を照射する複数(ここでは4つ)の照明装置20とを備える。 The inspection unit 3 has a wall portion 3a in the shape of a rectangular tube. The inspection unit 3 includes one camera 10 that acquires an image of the work W, and a plurality of (here, four) illumination devices 20 that irradiate an inspection area of the work W with light inside the wall 3a.

本実施形態では、カメラ10は、1つの検査部3に対して1つだけ設けられている。つまり、外観検査装置1の検査部3は、画像取得装置として単一のカメラを備える。カメラ10は、アーム8に保持されたワークWを撮影する。カメラ10は、ワークWのカラー画像を取得可能なカメラである。カメラ10は、図3に示すように、コントローラ100と通信可能に構成されていて、コントローラ100の光学系制御部102により制御される。 In this embodiment, only one camera 10 is provided for one inspection unit 3 . That is, the inspection unit 3 of the visual inspection apparatus 1 has a single camera as an image acquisition device. A camera 10 photographs the workpiece W held by the arm 8 . The camera 10 is a camera capable of acquiring a color image of the workpiece W. As shown in FIG. The camera 10 is configured to be able to communicate with the controller 100 and is controlled by an optical system control section 102 of the controller 100 as shown in FIG.

図2に示すように、複数の照明装置20は、カメラ10を囲むようにそれぞれ配置されている。各照明装置20は、可視光領域の光を照射するように構成されている。具体的には、白色光、赤色光、緑色光、及び青色光の波長の異なる光を、単色で照射したり、組み合わせて照射したりする。各照明装置20は、それぞれ壁部3aに支持されている。各照明装置20が照射する光のワークWへの入射角度、及び光量は、コントローラ100の光学系制御部102により、それぞれ独立して調整される。すなわち、コントローラ100により、一部の照明装置20のみを作動させかつ他の照明装置20を停止させたり、全ての照明装置20を作動させかつ各照明装置20の光量をそれぞれ異ならせたりすることができる。尚、照明装置20の数や配置は、照明装置20が2つ以上設けられるのであれば、特に限定されない。特に、照明装置20は、カメラ10の周囲全体を囲むように、壁部3aの内周面の周方向全体に配置されてもよい。 As shown in FIG. 2 , the plurality of lighting devices 20 are arranged so as to surround the camera 10 . Each lighting device 20 is configured to emit light in the visible light region. Specifically, white light, red light, green light, and blue light having different wavelengths are irradiated singly or in combination. Each lighting device 20 is supported by the wall portion 3a. The angle of incidence of the light emitted from each illumination device 20 on the workpiece W and the amount of light are independently adjusted by the optical system control section 102 of the controller 100 . That is, the controller 100 can operate only some of the lighting devices 20 and stop the other lighting devices 20, or operate all the lighting devices 20 and vary the light amount of each lighting device 20. can. The number and arrangement of lighting devices 20 are not particularly limited as long as two or more lighting devices 20 are provided. In particular, the illumination device 20 may be arranged along the entire circumferential direction of the inner peripheral surface of the wall portion 3a so as to surround the entire periphery of the camera 10 .

外観検査装置1は、カメラ10により撮影された画像や、後述する外観検査の結果を表示することができる表示装置30(図3参照)を備える。表示装置30は、コントローラ100を経由して送られてきた画像等を表示する。表示装置30は、カメラ10及び照明装置20を操作するためのアイコンが表示されるように構成されていてもよい。 The visual inspection apparatus 1 includes a display device 30 (see FIG. 3) capable of displaying an image captured by the camera 10 and the results of the visual inspection described later. The display device 30 displays images and the like sent via the controller 100 . The display device 30 may be configured to display icons for operating the camera 10 and the lighting device 20 .

〈制御系〉
外観検査装置1は、コントローラ100により作動制御される。コントローラ100は、CPUを有するプロセッサ、複数のモジュールが格納されたメモリ等を有する。コントローラ100は、カメラ10により撮影された画像に基づいて、ワークWの欠陥を検査する機能を有する。特に、コントローラ100は、カメラ10により撮影されたカラー画像に基づいて、ワークWの欠陥を検査する。このような機能は、メモリのモジュールにソフトウェアとして格納されている。プロセッサ及びメモリの数は1つに限定されず、コントローラ100が2つ以上のプロセッサ及びメモリを有していてもよい。
<Control system>
The appearance inspection apparatus 1 is operated and controlled by a controller 100 . The controller 100 has a processor having a CPU, a memory storing a plurality of modules, and the like. The controller 100 has a function of inspecting the workpiece W for defects based on the image captured by the camera 10 . In particular, the controller 100 inspects the workpiece W for defects based on the color image captured by the camera 10 . Such functions are stored as software in memory modules. The number of processors and memories is not limited to one, and the controller 100 may have two or more processors and memories.

図3に示すように、コントローラ100は、アーム8の動作を制御するアーム制御部101と、カメラ10及び各照明装置20を制御する光学系制御部102と、カメラ10により取得された画像に所定の処理を施す画像処理部103と、画像処理部103により処理された画像を合成して合成画像を生成する画像合成部104と、合成画像に基づいて欠陥の有無を判定する判定部105と、を有する。アーム制御部101、光学系制御部102、画像処理部103、画像合成部104、及び判定部105は、それぞれ、メモリに格納されたモジュールの一例である。 As shown in FIG. 3, the controller 100 includes an arm control unit 101 that controls the operation of the arm 8, an optical system control unit 102 that controls the camera 10 and each lighting device 20, and a predetermined an image processing unit 103 that performs processing, an image combining unit 104 that combines images processed by the image processing unit 103 to generate a composite image, a determination unit 105 that determines the presence or absence of a defect based on the composite image, have The arm control unit 101, the optical system control unit 102, the image processing unit 103, the image synthesizing unit 104, and the determination unit 105 are examples of modules stored in the memory.

アーム制御部101は、アーム8の移動、保持部8aの動作等を制御する。アーム制御部101は、アーム8に設けられた位置センサ(図示省略)によりアーム8の位置に関する情報を取得する。アーム制御部101は、位置センサからの情報に基づいて、アーム8が所望の位置に位置するように、アーム8を移動させる。アーム制御部101は、ワークWが適切に搬送されるように、保持部8aの上下動及び吸着動作を制御する。 The arm control section 101 controls the movement of the arm 8, the operation of the holding section 8a, and the like. The arm control unit 101 acquires information about the position of the arm 8 from a position sensor (not shown) provided on the arm 8 . Arm control unit 101 moves arm 8 so that arm 8 is positioned at a desired position based on information from the position sensor. The arm control unit 101 controls the vertical movement and the suction operation of the holding unit 8a so that the workpiece W is properly transported.

光学系制御部102は、カメラ10のピント調整をしたり、各照明装置20の位置、角度、光量、及び照射する光の色等を調整したりする。カメラ10は、光学系制御部102からの制御信号にしたがって、ワークWのカラー画像を取得する。本実施形態1では、各照明装置20は、ワークWに対して白色光を照射する。カメラ10は、光学系制御部102の制御信号に基づいて、各照明装置20により白色光が照射されたワークWのカラー画像を取得する。 The optical system control unit 102 adjusts the focus of the camera 10, and adjusts the position, angle, amount of light, color of light emitted, and the like of each lighting device 20. FIG. The camera 10 acquires a color image of the work W according to a control signal from the optical system control section 102 . In the first embodiment, each lighting device 20 irradiates the work W with white light. The camera 10 acquires a color image of the work W irradiated with white light from each illumination device 20 based on the control signal from the optical system control unit 102 .

画像処理部103は、カメラ10により取得したカラー画像に対して、RGBの各色の画像を抽出する。すなわち、画像処理部103は、RGBの24ビット画像から赤色、緑色、及び青色の8ビットの単色光画像をそれぞれ抽出する。画像処理部103により生成された赤色、緑色、及び青色の8ビット画像から、第1画像と、該第1画像とは異なる色の第2画像を選択する。 The image processing unit 103 extracts RGB images from the color image acquired by the camera 10 . That is, the image processing unit 103 extracts 8-bit monochromatic light images of red, green, and blue from the RGB 24-bit image. A first image and a second image having a different color from the first image are selected from the red, green, and blue 8-bit images generated by the image processing unit 103 .

画像合成部104は、画像処理部103により選択された第1画像と第2画像とに対して、各画像を構成する複数の画素の各階調値をそれぞれ足し合わせることで合成する。階調値は、例えば、輝度の階調値である。画像合成の詳細については後述する。尚、階調値として、彩度の階調値を採用してもよい。 The image synthesizing unit 104 synthesizes the first image and the second image selected by the image processing unit 103 by adding the gradation values of the plurality of pixels forming each image. The gradation value is, for example, a luminance gradation value. The details of image composition will be described later. Note that the gradation value of saturation may be used as the gradation value.

判定部105は、画像合成部104により生成された合成画像に基づいてワークWの欠陥の有無を判定する。判定部105による判定については後述する。 The determination unit 105 determines whether or not the workpiece W has a defect based on the synthesized image generated by the image synthesis unit 104 . Determination by the determination unit 105 will be described later.

コントローラ100は、判定部105の判定結果を表示するように表示装置30に制御信号を出力する。コントローラ100は、判定部105が欠陥ありと判定したときには、ワークWの欠陥箇所が分かるように表示装置30に表示させる。 The controller 100 outputs a control signal to the display device 30 to display the determination result of the determination unit 105 . When the determination unit 105 determines that there is a defect, the controller 100 causes the display device 30 to display the defective portion of the work W so that the defect can be identified.

コントローラ100は、判定部105により良品と判定されたワークWの合成画像を記憶部40に記憶させる。記憶された合成画像は、例えば、判定部105による判定に利用される。 The controller 100 causes the storage unit 40 to store the composite image of the workpiece W determined to be non-defective by the determination unit 105 . The stored composite image is used for determination by the determination unit 105, for example.

〈画像処理及び画像合成〉
画像処理部103及び画像合成部104の処理について説明する。
<Image processing and image synthesis>
Processing of the image processing unit 103 and the image synthesizing unit 104 will be described.

画像処理部103は、図4に示すように、カメラ10により取得した24ビットのカラー画像から赤色、緑色、及び青色の8ビットの単色光画像をそれぞれ生成する。このとき、例えば欠陥Cが黄色であったとすると、図4に示すように、赤色の単色光画像と、緑色の単色光画像には欠陥Cが現れる一方で、青色の単色光画像には欠陥Cが現れない。画像処理部103は、これらの画像から第1画像及び第2画像を選択する。本実施形態1では、例えば、欠陥候補の周辺のコントラスト(欠陥Cの候補となる部分とその周辺との輝度差)が大きい2つの画像を、第1画像及び第2画像として選択することができる。以下、第1画像として、赤色の単色光画像が選択され、第2画像として、緑色の単色光画像が選択されたとして説明する。 The image processing unit 103 generates 8-bit monochromatic light images of red, green, and blue from the 24-bit color image acquired by the camera 10, as shown in FIG. At this time, for example, if the defect C is yellow, as shown in FIG. 4, the defect C appears in the red monochromatic light image and the green monochromatic light image, while the defect C does not appear. The image processing unit 103 selects the first image and the second image from these images. In the first embodiment, for example, two images having a large contrast around the defect candidate (difference in luminance between the candidate for defect C and its surroundings) can be selected as the first image and the second image. . In the following description, it is assumed that a red monochromatic light image is selected as the first image and a green monochromatic light image is selected as the second image.

次に、図5を参照しながら画像合成部104の処理について説明する。画像合成部104は、実際には二次元画像を合成しているが、ここでは、説明を簡単にするために、一次元プロファイルを元に説明する。 Next, the processing of the image synthesizing unit 104 will be described with reference to FIG. The image synthesizing unit 104 actually synthesizes two-dimensional images, but here, for the sake of simplicity, the description will be based on a one-dimensional profile.

図5に示すプロファイルは、欠陥Cの部分を含む第1画像、第2画像、及び合成画像の各一次元プロファイルである。(a)は第1画像、(b)は第2画像、(c)は合成画像である。縦軸は、輝度の階調値であり、第1画像及び第2画像は8ビットの画像であるため、図5(a),(b)の階調値の最小値は0であり、最大値は255となる。 The profiles shown in FIG. 5 are one-dimensional profiles of the first image, the second image, and the composite image including the defect C portion. (a) is the first image, (b) is the second image, and (c) is the composite image. The vertical axis represents luminance gradation values. Since the first and second images are 8-bit images, the minimum value of the gradation values in FIGS. The value is 255.

画像合成部104は、第1画像を構成する複数の画素の各階調値と、第2画像を構成する複数の画素の各階調値とを、対応する画素毎にそれぞれ足し合わせる。これにより、図5(c)に示すように、合成画像は511階調となり、階調値の最大値は510となる。図5(c)では、グラフの縦軸を縮小して示しているため、図5(a),(b)と差が無いように見えるが、実際には、欠陥Cの部分の階調値と欠陥Cの周辺部分の階調値との差は大きくなっている。画像合成部104は、色を区別することなく階調値を足し合わせる。例えば、第1画像(赤色光の画像)における任意の画素Xの階調値が110であり、第2画像(緑色光の画像)における画素Xに対応する画素の階調値が130であるときには、合成画像における画素Xに対応する画素の階調値は240になる。 The image synthesizing unit 104 adds the gradation values of the plurality of pixels forming the first image and the gradation values of the plurality of pixels forming the second image for each corresponding pixel. As a result, the synthesized image has 511 gradations and the maximum gradation value is 510, as shown in FIG. 5(c). In FIG. 5(c), since the vertical axis of the graph is shown in a reduced scale, there appears to be no difference from FIGS. 5(a) and 5(b). and the gradation values of the peripheral portion of the defect C are large. The image synthesizing unit 104 adds the gradation values together without distinguishing colors. For example, when the gradation value of an arbitrary pixel X in the first image (red light image) is 110 and the gradation value of the pixel corresponding to the pixel X in the second image (green light image) is 130 , the gradation value of the pixel corresponding to the pixel X in the synthesized image is 240.

〈欠陥の判定〉
次に、判定部105の判定について説明する。ここでも、説明を簡単にするために、一次元プロファイルを元に説明する。
<Defect judgment>
Next, determination by the determination unit 105 will be described. Again, to simplify the explanation, the explanation will be based on the one-dimensional profile.

判定部105は、図6に示すように、画像合成部104により生成された合成画像から、階調値が所定範囲内である部分を抜き出して、抜き出した部分に基づいて欠陥Cの有無を判定する。具体的には、判定部105は、合成画像から8ビット分の範囲、すなわち、256階調分の範囲を抜き出す。判定部105は、例えば、256を挟むように129~384の範囲を抜き出すことができる。判定部105が抜き出す256階調分の範囲は、ユーザーが任意に設定してもよいし、予め設定された範囲でもよい。また、抜き出す範囲は、16ビットよりも小さくかつ欠陥候補部分の階調値が全て含まれる範囲であれば、7ビット以下でもよく、9ビット以上でもよい。 As shown in FIG. 6, the determination unit 105 extracts a portion whose gradation value is within a predetermined range from the synthesized image generated by the image synthesis unit 104, and determines whether or not there is a defect C based on the extracted portion. do. Specifically, the determination unit 105 extracts an 8-bit range, that is, a range of 256 gradations from the synthesized image. The determination unit 105 can extract, for example, a range from 129 to 384 with 256 interposed therebetween. The range of 256 gradations extracted by the determination unit 105 may be arbitrarily set by the user, or may be a preset range. The range to be extracted may be 7 bits or less or 9 bits or more as long as it is smaller than 16 bits and includes all the gradation values of the defect candidate portion.

そして、判定部105は、抜き出した256階調分の画像に基づいて欠陥Cの有無を判定する。欠陥Cの判定の具体的な態様は特に限定されない。例えば、判定部105は、記憶部40に記憶された良品の合成画像と比較して、階調値の差の絶対値が所定値以上の部分があるときには、ワークWに欠陥Cがあると判定してもよい。尚、判定部105は、良品の合成画像と比較する際に、検査用合成画像と比較用合成画像との階調値の平均値が揃うように、検査用合成画像及び比較用合成画像の少なくとも一方の階調値を一律に増減させてもよい。 Then, the determination unit 105 determines the presence or absence of the defect C based on the extracted image for 256 gradations. A specific mode of determining the defect C is not particularly limited. For example, the determining unit 105 determines that the work W has a defect C when there is a portion where the absolute value of the difference in tone value is greater than or equal to a predetermined value in comparison with the non-defective composite image stored in the storage unit 40. You may Note that the determination unit 105 determines that at least the inspection synthesized image and the comparison synthesized image are adjusted so that the average values of the gradation values of the inspection synthesized image and the comparison synthesized image are the same when comparing with the non-defective synthesized image. One of the gradation values may be uniformly increased or decreased.

〈フローチャート〉
図7は、コントローラ100によるワークの外観検査の動作処理を示すフローチャートである。
<flowchart>
FIG. 7 is a flow chart showing operation processing of visual inspection of a workpiece by the controller 100 .

まず、ステップS1において、コントローラ100は、アーム8を制御して、検査前のワークWを取り出して、検査部3の上まで移動させる。 First, in step S<b>1 , the controller 100 controls the arm 8 to take out the workpiece W before inspection and move it above the inspection section 3 .

次に、ステップS2において、コントローラ100は、照明装置20によりワークWに白色光を照射する。 Next, in step S<b>2 , the controller 100 irradiates the workpiece W with white light from the illumination device 20 .

次いで、ステップS3において、コントローラ100は、白色光が照射されたワークWのカラー画像を取得する。 Next, in step S3, the controller 100 acquires a color image of the work W irradiated with white light.

次に、ステップS4において、コントローラ100は、取得されたカラー画像から第1画像及び第2画像を生成する。コントローラ100は、カラー画像から、RGBの各色の単色光画像を生成し、その中から、第1画像及び第2画像を選択することで、第1画像及び第2画像を生成する。 Next, in step S4, the controller 100 generates a first image and a second image from the acquired color images. The controller 100 generates a monochromatic light image of each color of RGB from the color image, and selects the first image and the second image from among them to generate the first image and the second image.

次いで、ステップS5において、コントローラ100は、生成された第1画像と第2画像とを合成する。コントローラ100は、各画像の各画素の階調値を足し合わせることで、第1画像と第2画像とを合成する。 Next, in step S5, the controller 100 synthesizes the generated first image and second image. The controller 100 synthesizes the first image and the second image by adding the gradation values of each pixel of each image.

次に、ステップS6において、コントローラ100は、前記ステップS5で生成された合成画像から階調値が所定範囲の部分を抜き出す。コントローラ100は、8ビット分の範囲を合成画像から抜き出す。 Next, in step S6, the controller 100 extracts a portion having a predetermined range of gradation values from the composite image generated in step S5. Controller 100 extracts an 8-bit range from the composite image.

そして、ステップS7において、コントローラ100は、前記ステップS6で抜き出した8ビット分の画像に基づいて、欠陥Cの有無を判定する。コントローラ100は、欠陥CがないYESのときにはステップS8に進む。一方で、コントローラ100は、欠陥CがあるNOのときにはステップS9に進む。 Then, in step S7, the controller 100 determines whether or not there is a defect C based on the 8-bit image extracted in step S6. If YES, the controller 100 proceeds to step S8. On the other hand, the controller 100 advances to step S9 when the answer is NO that there is a defect C.

前記ステップS8において、欠陥Cがないことを表示装置30により報知した後、リターンして、次のワークWの検査を実行する準備を行う。 In step S8, after notifying that there is no defect C by the display device 30, the process returns and preparations are made for inspecting the next work W. FIG.

一方で、前記ステップS9では、コントローラ100は、表示装置30により、欠陥Cの箇所が分かるような画像を表示して欠陥Cがあることを報知する。その後、コントローラ100は、リターンして、次のワークWの検査を実行する準備を行う。 On the other hand, in the step S9, the controller 100 causes the display device 30 to display an image showing the location of the defect C to inform that the defect C exists. After that, the controller 100 returns and prepares to inspect the next workpiece W. FIG.

したがって、本実施形態1によると、ワークWに光を照射し、光が照射されたワークWの画像を取得し、取得されたワークWの画像から第1色の単色光画像である第1画像と、該第1色とは異なる色の第2色の単色光画像である第2画像とを取得し、第1画像と第2画像とを、各画像を構成する複数の画素の各階調値をそれぞれ足し合わせることで合成し、得られた合成画像から、階調値が所定範囲内である部分を抜き出して、該抜き出した部分に基づいて欠陥Cの有無を判定する。これにより、階調値を足し合わせて画像を合成するため、欠陥周辺の階調値の差が大きくなり、コントラストが大きくなる。また、階調値が所定範囲内である部分を抜き出すことで、欠陥周辺を強調することができる。これにより、外観検査の検査精度を向上させることができる。 Therefore, according to the first embodiment, the work W is irradiated with light, an image of the work W irradiated with light is acquired, and the first image, which is a monochromatic light image of the first color, is obtained from the acquired image of the work W. and a second image that is a monochromatic light image of a second color different from the first color, and the first image and the second image are obtained by obtaining the respective gradation values of a plurality of pixels constituting each image. are added together to synthesize, and from the resulting synthesized image, a portion having a gradation value within a predetermined range is extracted, and the presence or absence of defect C is determined based on the extracted portion. As a result, since the image is synthesized by adding the gradation values, the difference in the gradation values around the defect becomes large and the contrast becomes large. In addition, by extracting a portion whose gradation value is within a predetermined range, the periphery of the defect can be emphasized. Thereby, the inspection accuracy of the appearance inspection can be improved.

また、本実施形態1では、撮像されたワークWの画像から、RGBのうちの2色の画像を、第1画像及び前記第2画像として取得する。白色光に照射された検査対象物の画像であれば、該画像からRGBの各色の画像を生成することができる。これにより、RGBの各色を検査対象物に照射した画像を取得する必要がなくなり、検査時間を短縮することができる。 In addition, in the first embodiment, two-color images of RGB are obtained as the first image and the second image from the captured image of the work W. FIG. If it is an image of an object to be inspected illuminated with white light, an image of each color of RGB can be generated from the image. This eliminates the need to obtain an image in which the inspection object is irradiated with each color of RGB, thereby shortening the inspection time.

(実施形態2)
以下、実施形態2について、図面を参照しながら詳細に説明する。尚、以下の説明において前記実施形態1と共通の部分については、同じ符号を付して、その詳細な説明を省略する。
(Embodiment 2)
Hereinafter, Embodiment 2 will be described in detail with reference to the drawings. In the following description, the same reference numerals are assigned to the same parts as in the first embodiment, and detailed description thereof will be omitted.

本実施形態2では、画像処理部103及び画像合成部104での処理が、前記実施形態1とは異なる。具体的には、画像処理部103は、カラー画像からRGBの各色の単色光画像を生成した後、各単色光画像のうち、欠陥候補周辺のコントラストが最も大きい色の単色光画像を第1画像とし、欠陥候補周辺のコントラストが最も小さい色の単色光画像を第2画像とする。次に、画像処理部103は、図8に示すように、第2画像について階調値を反転させて、反転画像を取得する反転画像取得工程を実行する。画像処理部103は、階調値0が255となり、階調値255が0となるように、階調の中央値である階調値127.5を基準に階調値を反転させる。 In the second embodiment, processing in the image processing unit 103 and the image synthesizing unit 104 is different from that in the first embodiment. Specifically, the image processing unit 103 generates a monochromatic light image of each color of RGB from the color image, and then, among the monochromatic light images, converts the monochromatic light image of the color with the highest contrast around the defect candidate into the first image. , and the monochromatic light image of the color with the smallest contrast around the defect candidate is taken as the second image. Next, as shown in FIG. 8, the image processing unit 103 inverts the gradation values of the second image and executes a reversed image obtaining step of obtaining a reversed image. The image processing unit 103 inverts the gradation value based on the gradation value 127.5, which is the median value of the gradation, so that the gradation value 0 becomes 255 and the gradation value 255 becomes 0.

画像合成部104は、図9に示すように、第1画像(図9(a))と反転画像(図9(b))とを合成して、合成画像(図9(c))を生成する。画像合成部104は、前記実施形態1と同様に、第1画像及び反転画像の各画素の階調値を足し合わせることで、第1画像と反転画像とを合成する。このように、欠陥候補周辺のコントラストが大きい画像に対して、欠陥候補周辺のコントラストが小さい画像の反転画像を足し合わせることで、図9(c)に示すように、背景部分の階調値を出来る限り小さくすることができ、欠陥周辺のコントラストを強調することができる。 As shown in FIG. 9, the image synthesizing unit 104 synthesizes the first image (FIG. 9(a)) and the reverse image (FIG. 9(b)) to generate a synthetic image (FIG. 9(c)). do. The image synthesizing unit 104 synthesizes the first image and the reverse image by adding the gradation values of the pixels of the first image and the reverse image, as in the first embodiment. In this way, by adding the inverted image of the image with low contrast around the defect candidate to the image with high contrast around the defect candidate, the gradation value of the background portion is reduced as shown in FIG. It can be made as small as possible, and the contrast around the defect can be emphasized.

そして、判定部105は、前記実施形態1と同様に、合成画像から256階調分の範囲を抜き出す。判定部105は、抜き出した後の画像に基づいて欠陥Cの有無を判定する。 Then, the determination unit 105 extracts a range of 256 gradations from the composite image, as in the first embodiment. The determination unit 105 determines whether or not there is a defect C based on the extracted image.

したがって、本実施形態2によると、欠陥候補周辺のコントラストが最も小さい色の単色光画像の階調値を反転させた反転画像を、欠陥候補周辺のコントラストが最も大きい色の単色光画像である第1画像と合成することで、欠陥部分の階調値にはほとんど影響を与えることなく、背景部分の階調値を出来る限り小さくすることができる。これにより、欠陥部分のコントラストを強調することができ、外観検査の検査精度をより向上させることができる。 Therefore, according to the second embodiment, the inverted image obtained by inverting the gradation value of the monochromatic light image of the color with the lowest contrast around the defect candidate is the monochromatic light image of the color with the highest contrast around the defect candidate. By synthesizing with one image, the gradation value of the background portion can be reduced as much as possible without substantially affecting the gradation value of the defective portion. As a result, the contrast of the defect portion can be enhanced, and the inspection accuracy of the appearance inspection can be further improved.

(実施形態3)
以下、実施形態3について、図面を参照しながら詳細に説明する。尚、以下の説明において前記実施形態1及び2と共通の部分については、同じ符号を付して、その詳細な説明を省略する。
(Embodiment 3)
Hereinafter, Embodiment 3 will be described in detail with reference to the drawings. In the following description, the parts common to those of the first and second embodiments are denoted by the same reference numerals, and detailed description thereof will be omitted.

本実施形態3では、画像処理部103及び画像合成部104での処理が、前記実施形態1及び2とは異なる。具体的には、画像処理部103は、カラー画像からRGBの各色の単色光画像を生成して、第1画像及び第2画像を選択した後、第1画像の各画素の階調値の平均値と、第2画像の各画素の階調値の平均値とが同じになるように、第1画像の各画素の階調値及び前記第2画像の各画素の階調値を補正する階調値調整工程を実行する。画像処理部103は、例えば図10に示すように、画像処理部103は、第1画像及び第2画像の階調値の平均値をそれぞれ算出して、該平均値が同じ値になるように、第1画像の各画素の階調値を減少させる補正を行うともに、第2画像については、第2画像の各画素の階調値を増加させる補正を行う。 In the third embodiment, processing in the image processing unit 103 and the image synthesizing unit 104 is different from those in the first and second embodiments. Specifically, the image processing unit 103 generates a monochromatic light image of each color of RGB from the color image, selects the first image and the second image, and averages the gradation value of each pixel of the first image. A step for correcting the tone value of each pixel of the first image and the tone value of each pixel of the second image so that the tone value of each pixel of the first image and the average value of the tone values of each pixel of the second image are the same. Execute the adjustment process. For example, as shown in FIG. 10, the image processing unit 103 calculates the average values of the gradation values of the first image and the second image, and adjusts the average values so that the average values are the same. , correction is performed to decrease the gradation value of each pixel of the first image, and correction is performed to increase the gradation value of each pixel of the second image with respect to the second image.

画像合成部104は、補正後の第1画像と補正後の第2画像とを合成して、合成画像を生成する。画像合成部104は、前記実施形態1と同様に、補正後の第1画像及び補正後の第2画像の各画素の階調値を足し合わせることで、2つの画像を合成する。 The image synthesizing unit 104 synthesizes the corrected first image and the corrected second image to generate a synthesized image. The image synthesizing unit 104 synthesizes the two images by adding the gradation values of the pixels of the corrected first image and the corrected second image, as in the first embodiment.

そして、判定部105は、前記実施形態1と同様に、合成画像から256階調分の範囲を抜き出す。判定部105は、抜き出した後の画像に基づいて欠陥Cの有無を判定する。 Then, the determination unit 105 extracts a range of 256 gradations from the composite image, as in the first embodiment. The determination unit 105 determines whether or not there is a defect C based on the extracted image.

したがって、本実施形態3によると、第1画像と第2画像との平均輝度をそろえるようにすることで、カメラ10の受光感度がRGBで異なる場合や、照明装置20のRGBの波長バランスが異なる場合などであっても、これらの影響を低減することができる。これにより、外観検査の検査精度をより向上させることができる。 Therefore, according to the third embodiment, by aligning the average brightness of the first image and the second image, when the light receiving sensitivity of the camera 10 is different between RGB, or when the wavelength balance of the RGB of the lighting device 20 is different. Even in such cases, these effects can be reduced. Thereby, the inspection accuracy of the appearance inspection can be further improved.

(その他の実施形態)
ここに開示された技術は、前述の実施形態に限られるものではなく、請求の範囲の主旨を逸脱しない範囲で代用が可能である。
(Other embodiments)
The technology disclosed herein is not limited to the above-described embodiments, and substitutions are possible without departing from the scope of the claims.

例えば、前述の実施形態では、ワークWに白色光を照射して、カメラ10でカラー画像を取得して、該カラー画像からRGBの各色の単色光画像を取得していた。これに限らず、照明装置20により赤色光をワークWに照射して赤色の単色光画像を取得し、緑色光を照射して緑色の単色光画像を取得し、及び青色光を照射して青色の単色光画像を取得してもよい。この場合、カメラ10の撮影位置を固定した状態で、すなわち、各画像でワークWの座標が同じになる状態で、各色の単色光画像をそれぞれ取得する必要がある。 For example, in the above-described embodiment, the work W is irradiated with white light, a color image is acquired by the camera 10, and a monochromatic light image of each color of RGB is acquired from the color image. Not limited to this, the lighting device 20 irradiates the work W with red light to obtain a red monochromatic light image, irradiates green light to obtain a green monochromatic light image, and irradiates blue light to obtain a blue light image. of monochromatic light images may be acquired. In this case, it is necessary to acquire monochromatic light images of respective colors with the photographing position of the camera 10 fixed, that is, with the coordinates of the workpiece W being the same in each image.

また、前述の実施形態では、画像処理部103は、RGBの各色の単色光画像を生成して、第1画像及び第2画像を選択していた。これに限らず、例えば、ワークW毎に予め何色の単色光画像を生成するかテーブル等でコントローラ100のメモリに記憶させておき、画像処理部103はメモリに記憶されたテーブルを参照して、予め設定された色の単色光画像のみを生成するようにしてもよい。 Further, in the above-described embodiment, the image processing unit 103 selects the first image and the second image by generating a monochromatic light image of each color of RGB. Not limited to this, for example, a table or the like indicating which monochromatic light image is to be generated for each workpiece W is stored in advance in the memory of the controller 100, and the image processing unit 103 refers to the table stored in the memory. , may generate only a monochromatic light image of a preset color.

また、前述の実施形態2と実施形態3とを組み合わせても良い。すなわち、第1画像と第2画像との階調値の平均値を同じにしてから、第2画像の階調値を反転させて、反転画像を作成するようにしてもよい。これにより、第1画像の階調値と反転画像の階調値とを足し合わせた際に、背景部分の階調値が欠陥部分に対して小さくなり、欠陥周辺のコントラストを出来る限り強調することができる。 Also, the second embodiment and the third embodiment described above may be combined. That is, after making the average value of the gradation values of the first image and the second image the same, the gradation values of the second image may be inverted to create an inverted image. As a result, when the gradation value of the first image and the gradation value of the reverse image are added, the gradation value of the background portion becomes smaller than that of the defect portion, and the contrast around the defect is emphasized as much as possible. can be done.

また、前述の実施形態1~3では、RGBの各色の単色光画像を生成していたが、YCMの各色の単色光画像を生成するようにしてもよい。 Further, in Embodiments 1 to 3 described above, a monochromatic light image of each color of RGB is generated, but a monochromatic light image of each color of YCM may be generated.

また、前述の実施形態1~3では、2色の単色光画像を合成していたが、3色以上の単色光画像を合成するようにしてもよい。また、照明装置20の照明条件(光のワークWへの入射角度や光量)が異なる複数の白色光画像を合成するようにしてもよい。 Further, in Embodiments 1 to 3 described above, monochromatic light images of two colors are synthesized, but monochromatic light images of three or more colors may be synthesized. Also, a plurality of white light images with different lighting conditions (incident angle and light amount of light to the workpiece W) of the lighting device 20 may be synthesized.

また、前述の実施形態1~3では、ワークWの二次元画像を用いていたが、三次元画像を用いるようにしてもよい。この場合でも、各画像でワークWの座標が同じになるように撮影する。 Further, although the two-dimensional image of the work W is used in the first to third embodiments described above, a three-dimensional image may be used. Even in this case, each image is photographed so that the coordinates of the work W are the same.

前述の実施形態は単なる例示に過ぎず、本開示の範囲を限定的に解釈してはならない。本開示の範囲は請求の範囲によって定義され、請求の範囲の均等範囲に属する変形や変更は、全て本開示の範囲内のものである。 The above-described embodiments are merely examples, and should not be construed as limiting the scope of the present disclosure. The scope of the present disclosure is defined by the claims, and all modifications and changes within the equivalent range of the claims are within the scope of the present disclosure.

ここに開示された技術は、検査対象物の表面に形成された欠陥を検査する際に有用である。 The technology disclosed herein is useful when inspecting defects formed on the surface of an inspection object.

1 外観検査装置
10 カメラ
20 照明装置
100 コントローラ(検査部)
W ワーク(検査対象物)
1 Appearance inspection device 10 Camera 20 Lighting device 100 Controller (inspection unit)
W work (object to be inspected)

Claims (7)

検査対象物の表面に形成された欠陥を検査する外観検査方法であって、
前記検査対象物に光を照射する照射工程と、
光が照射された前記検査対象物の画像を取得する撮像工程と、
取得された前記検査対象物の画像から第1色の単色光画像である第1画像と、該第1色とは異なる色の第2色の単色光画像である第2画像とを取得する単色光画像取得工程と、
前記第1画像に基づく画像と前記第2画像に基づく画像とを、各画像を構成する複数の画素の各階調値を対応する画素毎にそれぞれ足し合わせることで合成する画像合成工程と、
前記画像合成工程で得られた合成画像に基づいて前記欠陥の有無を判定する判定工程と、
を含み、
前記判定工程は、前記画像合成工程で得られた合成画像から、階調値が所定範囲内である部分を抜き出して、該抜き出した部分に基づいて前記欠陥の有無を判定する工程であることを特徴とする外観検査方法。
A visual inspection method for inspecting defects formed on the surface of an inspection object,
an irradiation step of irradiating the inspection object with light;
an imaging step of acquiring an image of the inspection object irradiated with light;
Monochromatic acquiring a first image that is a monochromatic light image of a first color and a second image that is a monochromatic light image of a second color different from the first color from the acquired image of the inspection object. an optical image acquisition step;
an image synthesizing step of synthesizing an image based on the first image and an image based on the second image by adding up the tone values of the plurality of pixels constituting each image for each corresponding pixel;
A determination step of determining the presence or absence of the defect based on the synthesized image obtained in the image synthesis step;
including
The determining step is a step of extracting a portion having a gradation value within a predetermined range from the synthesized image obtained in the image synthesizing step, and determining the presence or absence of the defect based on the extracted portion. Characteristic appearance inspection method.
請求項1に記載の外観検査方法において、
前記照射工程で照射される光は白色光であり、
前記単色光画像取得工程は、前記撮像工程で取得された画像から、RGBのうちの2色の画像を、前記第1画像及び前記第2画像として取得する工程であることを特徴とする外観検査方法。
In the appearance inspection method according to claim 1,
The light irradiated in the irradiation step is white light,
The appearance inspection, wherein the monochromatic light image acquiring step is a step of acquiring two color images of RGB from the image acquired in the imaging step as the first image and the second image. Method.
請求項2に記載の外観検査方法において、
前記単色光画像取得工程は、RGBのうち欠陥候補周辺のコントラストが最も大きい色の単色光画像を前記第1画像とし、RGBのうち前記欠陥候補周辺のコントラストが最も小さい色の単色光画像を前記第2画像とする工程であり、
前記画像合成工程の前に、前記第2画像における階調値を反転させて反転画像を得る反転画像取得工程を更に含み、
前記画像合成工程は、前記第1画像と前記反転画像とを合成する工程であることを特徴とする外観検査方法。
In the appearance inspection method according to claim 2,
In the monochromatic light image acquisition step, a monochromatic light image of a color having the highest contrast around the defect candidate among RGB is used as the first image, and a monochromatic light image of a color having the smallest contrast around the defect candidate is used as the first image. A step of forming a second image,
Further comprising a reversed image obtaining step of obtaining a reversed image by inverting the gradation value in the second image before the image synthesizing step,
The visual inspection method, wherein the image synthesizing step is a step of synthesizing the first image and the reverse image.
請求項1又は2に記載の外観検査方法において、
前記画像合成工程の前に、前記第1画像の各画素の階調値の平均値と、前記第2画像の各画素の階調値の平均値とが同じになるように、前記第1画像の各画素の階調値及び前記第2画像の各画素の階調値を補正する階調値調整工程を更に含み、
前記画像合成工程は、各画素の階調値がそれぞれ調整された後の第1画像と各画素の階調値がそれぞれ調整された後の第2画像とを合成する工程であることを特徴とする外観検査方法。
In the appearance inspection method according to claim 1 or 2,
Before the image synthesizing step, the first image is generated so that the average value of the gradation values of the pixels of the first image and the average value of the gradation values of the pixels of the second image are the same. further comprising a gradation value adjusting step of correcting the gradation value of each pixel of the second image and the gradation value of each pixel of the second image;
The image synthesizing step is a step of synthesizing the first image after adjusting the tone value of each pixel and the second image after adjusting the tone value of each pixel. Appearance inspection method.
検査対象物の表面に形成された欠陥を検査する外観検査装置であって、
前記検査対象物に光を照射する照射部と、
光が照射された前記検査対象物の画像を取得する撮像部と、
取得された前記検査対象物の画像から欠陥の有無を検査する検査部と、を備え、
前記検査部は、
前記撮像部により取得された前記検査対象物の画像から第1色の単色光画像である第1画像と、該第1色とは異なる色の第2色の単色光画像である第2画像とを取得し、
前記第1画像に基づく画像と前記第2画像に基づく画像とを、各画像を構成する複数の画素の各階調値を対応する画素毎にそれぞれ足し合わせることで合成して合成画像を生成し、
前記合成画像から、階調値が所定範囲内である部分を抜き出して、該抜き出した部分に基づいて前記欠陥の有無を判定することを特徴とする外観検査装置。
A visual inspection apparatus for inspecting defects formed on the surface of an inspection object,
an irradiation unit that irradiates the inspection object with light;
an imaging unit that acquires an image of the inspection object irradiated with light;
an inspection unit that inspects the presence or absence of defects from the acquired image of the inspection object,
The inspection unit
A first image that is a monochromatic light image of a first color and a second image that is a monochromatic light image of a second color different from the first color from the image of the inspection object acquired by the imaging unit; and get
generating a composite image by synthesizing an image based on the first image and an image based on the second image by adding up the tone values of the plurality of pixels constituting each image for each corresponding pixel;
A visual inspection apparatus, wherein a portion having a gradation value within a predetermined range is extracted from the composite image, and the presence or absence of the defect is determined based on the extracted portion.
請求項5に記載の外観検査装置において、
前記照射部が照射する光は白色光であり、
前記検査部は、前記撮像部により取得された画像から、RGBのうちの2色の画像を、前記第1画像及び前記第2画像として取得することを特徴とする外観検査装置。
In the appearance inspection apparatus according to claim 5,
The light emitted by the irradiation unit is white light,
The visual inspection apparatus, wherein the inspection unit acquires images of two colors of RGB as the first image and the second image from the images acquired by the imaging unit.
検査対象物の表面に形成された欠陥を検査する外観検査方法であって、
前記検査対象物に光を照射する照射工程と、
光が照射された前記検査対象物の画像を1つ又は複数取得する撮像工程と、
前記画像が1つである場合には、該1つの画像から取得される複数の単色光画像に対して、各単色光画像を構成する複数の画素の各階調値を対応する画素毎にそれぞれ足し合わせることで各単色光画像を合成し、前記画像が複数である場合には、該各画像を構成する複数の画素の各階調値を対応する画素毎にそれぞれ足し合わせることで各画像を合成する画像合成工程と、
前記画像合成工程で得られた合成画像に基づいて前記欠陥の有無を判定する判定工程と、
を含み、
前記判定工程は、前記画像合成工程で得られた合成画像から、階調値が所定範囲内である部分を抜き出して、該抜き出した部分に基づいて前記欠陥の有無を判定する工程であることを特徴とする外観検査方法。
A visual inspection method for inspecting defects formed on the surface of an inspection object,
an irradiation step of irradiating the inspection object with light;
an imaging step of acquiring one or more images of the inspected object irradiated with light;
When there is one image, each gradation value of a plurality of pixels constituting each monochromatic light image is added for each corresponding pixel to a plurality of monochromatic light images obtained from the one image. Each monochromatic light image is synthesized by combining them, and when there are a plurality of said images, each image is synthesized by adding each gradation value of a plurality of pixels constituting each image for each corresponding pixel. an image synthesizing process;
A determination step of determining the presence or absence of the defect based on the synthesized image obtained in the image synthesis step;
including
The determining step is a step of extracting a portion having a gradation value within a predetermined range from the synthesized image obtained in the image synthesizing step, and determining the presence or absence of the defect based on the extracted portion. Characteristic appearance inspection method.
JP2021046960A 2021-03-22 2021-03-22 Visual inspection method and visual inspection device Pending JP2022146141A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2021046960A JP2022146141A (en) 2021-03-22 2021-03-22 Visual inspection method and visual inspection device
PCT/JP2022/007070 WO2022202042A1 (en) 2021-03-22 2022-02-22 Visual inspection method and visual inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021046960A JP2022146141A (en) 2021-03-22 2021-03-22 Visual inspection method and visual inspection device

Publications (1)

Publication Number Publication Date
JP2022146141A true JP2022146141A (en) 2022-10-05

Family

ID=83397056

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021046960A Pending JP2022146141A (en) 2021-03-22 2021-03-22 Visual inspection method and visual inspection device

Country Status (2)

Country Link
JP (1) JP2022146141A (en)
WO (1) WO2022202042A1 (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0682390A (en) * 1992-06-26 1994-03-22 Kawasaki Steel Corp Method and apparatus for inspecting surface defect
JP3374030B2 (en) * 1996-12-27 2003-02-04 三洋電機株式会社 CD printing surface inspection method
KR101338576B1 (en) * 2005-12-26 2013-12-06 가부시키가이샤 니콘 Defect inspection device for inspecting defect by image analysis
JP4930775B2 (en) * 2007-01-12 2012-05-16 横河電機株式会社 Defect inspection apparatus and defect inspection method
DE102010061505B4 (en) * 2010-12-22 2012-10-31 Kla-Tencor Mie Gmbh Method for inspection and detection of defects on surfaces of disc-shaped objects
JP2015197361A (en) * 2014-04-01 2015-11-09 セイコーエプソン株式会社 Surface inspection device and surface inspection method
JP6625475B2 (en) * 2016-04-22 2019-12-25 株式会社 東京ウエルズ Defect inspection method and defect inspection system
JP7008528B2 (en) * 2018-02-09 2022-01-25 東芝Itコントロールシステム株式会社 Visual inspection equipment

Also Published As

Publication number Publication date
WO2022202042A1 (en) 2022-09-29

Similar Documents

Publication Publication Date Title
US10796428B2 (en) Inspection system and inspection method
KR20190101857A (en) Visual inspection device and illumination condition setting method of visual inspection device
JP5424659B2 (en) Inspection device for inspection object
JP2018189561A (en) Image inspection device
JP2013011856A (en) Imaging system and control method thereof
JP2008096439A (en) Method and device for determining three-dimensional coordinates of object
CN105372259B (en) Measurement apparatus, base board checking device and its control method, storage media
JP5728699B2 (en) Surface inspection apparatus, surface inspection method, and surface inspection program
JP6230434B2 (en) Image inspection apparatus, image inspection method, image inspection program, and computer-readable recording medium
CN109856164A (en) A kind of machine vision acquires the optimization device and its detection method of a wide range of image
JP2015068668A (en) Appearance inspection device
KR100903346B1 (en) Method for optical visual examination of three-dimensional shape
WO2022202042A1 (en) Visual inspection method and visual inspection device
JP2008232837A (en) Method and system of defective enhancement, and detection of defect, and program
JP2011191170A (en) Image processing apparatus
KR20070115067A (en) Apparatus for optical visual examination and method for optical visual examination
CN112815846A (en) 2D and 3D composite high-precision vision device and measuring method
JP5168049B2 (en) Image processing method and image processing apparatus
JP2010117182A (en) Shape measuring apparatus and defect inspecting method
JP7402745B2 (en) Imaging device and image inspection system
CN214333663U (en) 2D and 3D combined high-precision vision device
KR101767174B1 (en) The pattern search method in controlling a mixed color light source for improving quality of wide images
JP7013321B2 (en) Image processing system for visual inspection and image processing method
JP2020193867A (en) Image processing device, control method, control program, and computer-readable recording medium
JP2014089156A (en) Visual inspection method