JP2020159847A - Spectroscopic inspection method, spectroscopic image processing device, and robot system - Google Patents

Spectroscopic inspection method, spectroscopic image processing device, and robot system Download PDF

Info

Publication number
JP2020159847A
JP2020159847A JP2019059124A JP2019059124A JP2020159847A JP 2020159847 A JP2020159847 A JP 2020159847A JP 2019059124 A JP2019059124 A JP 2019059124A JP 2019059124 A JP2019059124 A JP 2019059124A JP 2020159847 A JP2020159847 A JP 2020159847A
Authority
JP
Japan
Prior art keywords
spectroscopic
image
wavelength
camera
unit
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
JP2019059124A
Other languages
Japanese (ja)
Inventor
政司 相磯
Masashi Aiiso
政司 相磯
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2019059124A priority Critical patent/JP2020159847A/en
Publication of JP2020159847A publication Critical patent/JP2020159847A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Manipulator (AREA)
  • Image Analysis (AREA)
  • Spectrometry And Color Measurement (AREA)

Abstract

To provide a spectroscopic inspection method, a spectroscopic image processing device and a robot system with which it is possible to locate a position where an article exists that is the object to be imaged with excellent accuracy without incurring an increase in device size.SOLUTION: This spectroscopic inspection method of the present invention comprises: a detection step for acquiring the spectral information of an object as a spectroscopic spectral image using a spectroscopic camera, executing image inspection to detect the object and the background of the object in the spectroscopic spectral image, and specifying a high contrast wavelength with which the contrast of the object and the background of the object is higher than a prescribed value; and an acquisition step for acquiring a monochrome image of the object using the high contrast wavelength and specifying a boundary between the object and the background of the object in the monochrome image.SELECTED DRAWING: Figure 4

Description

本発明は、分光検査方法、分光画像処理装置およびロボットシステムに関するものである。 The present invention relates to spectroscopic inspection methods, spectroscopic image processing devices and robot systems.

物品を生産する際に、生産された、または、生産途中の物品を検査する検査工程において、カメラを用いて物品の画像を取得し、この画像を用いて物品の位置を検知してロボットが有するロボットアーム等により、物品をピックアップすることが行われている。 When producing an article, in the inspection process of inspecting the produced or in-process article, an image of the article is acquired by using a camera, and the position of the article is detected using this image and the robot has it. Articles are picked up by a robot arm or the like.

通常、この物品の位置決めは、RGBベイヤー配列のカラーフィルターを備えたRGBカメラを用いて取得された画像を用いて、RGB成分のうちの例えばR成分を抽出してグレイ画像を生成し、その上でサーチライン上の最もコントラストの高い輝度変化点を見つけることで実施される(例えば、特許文献1参照)。 Usually, the positioning of this article uses an image acquired using an RGB camera equipped with a color filter of an RGB Bayer arrangement to extract, for example, the R component of the RGB components to generate a gray image, and then obtains a gray image. It is carried out by finding the brightness change point having the highest contrast on the search line in (see, for example, Patent Document 1).

特開2000−329617号公報Japanese Unexamined Patent Publication No. 2000-329617

しかしながら、ベイヤー配列のカラーフィルターを備えたRGBカメラを用いてRGB画像を生成すると、RGB画像の画素数はRGBカメラの画素数の1/4となるため、空間分解能が低下し、物品の位置決め精度が低下する、という課題があった。 However, when an RGB image is generated using an RGB camera equipped with a Bayer array color filter, the number of pixels of the RGB image is 1/4 of the number of pixels of the RGB camera, so that the spatial resolution is lowered and the positioning accuracy of the article is reduced. There was a problem that

本発明は、上述の課題を解決するためになされたものであり、以下の適用例として実現することが可能である。 The present invention has been made to solve the above-mentioned problems, and can be realized as the following application examples.

本発明の適用例に係る分光検査方法は、対象物のスペクトル情報を分光スペクトル画像として分光カメラを用いて取得し、前記分光スペクトル画像において、前記対象物と、前記対象物の背景とを検出する画像検査を実行し、前記対象物と、前記対象物の背景とのコントラストが所定の値より高い高コントラスト波長を特定する検出工程と、
前記高コントラスト波長を用いて、前記対象物の単色画像を取得し、前記単色画像において、前記対象物と前記対象物の背景との境界部を特定する取得工程とを有する。
In the spectroscopic inspection method according to an application example of the present invention, spectral information of an object is acquired as a spectral spectral image using a spectroscopic camera, and the object and the background of the object are detected in the spectral image. A detection step of performing an image inspection to identify a high contrast wavelength in which the contrast between the object and the background of the object is higher than a predetermined value.
It has an acquisition step of acquiring a monochromatic image of the object using the high contrast wavelength and specifying a boundary portion between the object and the background of the object in the monochromatic image.

本発明のロボットシステムの実施形態を示す側面図である。It is a side view which shows the embodiment of the robot system of this invention. 図1に示すロボットシステムが備える分光カメラのレンズ側を示す平面図である。It is a top view which shows the lens side of the spectroscopic camera provided in the robot system shown in FIG. 図2に示す分光カメラのA−A線断面図である。FIG. 2 is a sectional view taken along line AA of the spectroscopic camera shown in FIG. 図1に示すロボットシステムの概略構成を示すブロック図である。It is a block diagram which shows the schematic structure of the robot system shown in FIG. 図1に示すロボットシステムにパーソナルコンピューターを装着したときの概略構成を示すブロック図である。It is a block diagram which shows the schematic structure when the personal computer is attached to the robot system shown in FIG. 図2、図3に示す分光カメラが備える分光部が有する波長可変干渉フィルターをファブリーペローエタロンフィルターに適用した一例を示す縦断面図である。2 is a vertical cross-sectional view showing an example in which a tunable interference filter included in a spectroscopic unit included in the spectroscopic cameras shown in FIGS. 2 and 3 is applied to a Fabry-Perot Etalon filter. フォーカスが合う位置と、波長可変干渉フィルターを透過する光の波長との関係を示す模式図である。It is a schematic diagram which shows the relationship between the focus position and the wavelength of the light which passes through a tunable interference filter. フォーカスが合う位置と、波長可変干渉フィルターを透過する光の波長との関係を示すグラフである。It is a graph which shows the relationship between the focus position and the wavelength of the light which passes through a tunable interference filter. 波長可変干渉フィルターを透過する光の波長と、その波長において得られる分光画像の倍率との関係を示すグラフである。It is a graph which shows the relationship between the wavelength of light which passes through a tunable interference filter, and the magnification of the spectroscopic image obtained at that wavelength. 物品の表面性状を検査する検査方法で実施される、調整処理および検査処理の概略を説明するための模式図である。It is a schematic diagram for demonstrating the outline of the adjustment process and the inspection process performed by the inspection method for inspecting the surface property of an article. 物品の表面性状を検査する検査方法で実施される、調整処理を説明するための模式図である。It is a schematic diagram for demonstrating the adjustment process performed by the inspection method for inspecting the surface property of an article. 物品の表面性状を検査する検査方法で実施される、調整処理を説明するための模式図である。It is a schematic diagram for demonstrating the adjustment process performed by the inspection method for inspecting the surface property of an article. 図5に示すロボットシステムにより物品の表面性状を検査する検査方法が有する調整処理を実施する際のフローチャートである。It is a flowchart at the time of carrying out the adjustment process which the inspection method for inspecting the surface property of an article by the robot system shown in FIG. 各波長において、フォーカスが合う位置を決定する方法を説明するための模式図である。It is a schematic diagram for demonstrating the method of determining the focus position at each wavelength. 波長と、各波長において決定されたフォーカスが合う位置の位置P1からのズレ量ΔZ、および、各波長において取得される分光画像の倍率との関係の一例を示す表である。It is a table which shows an example of the relationship between the wavelength, the deviation amount ΔZ from the position P1 of the focus position determined at each wavelength, and the magnification of the spectroscopic image acquired at each wavelength. 図4に示すロボットシステムにより物品の表面性状を検査する検査方法が有する検査処理を実施する際に入力する条件の一例を示す模式図である。It is a schematic diagram which shows an example of the condition to be input when performing the inspection process which the inspection method for inspecting the surface property of an article by the robot system shown in FIG. 図4に示すロボットシステムにより物品の表面性状を検査する検査方法が有する検査処理を実施する際のタイミングチャートである。It is a timing chart at the time of carrying out the inspection process which the inspection method which inspects the surface property of an article by the robot system shown in FIG. 4 has. 各波長について倍率変換がなされた分光画像が重ね合わされた状態を示す模式図である。It is a schematic diagram which shows the state which superposed the spectroscopic images which performed the magnification conversion for each wavelength. 各波長について倍率変換がなされた分光画像を重ね合せることで得られた分光スペクトル画像を示す模式図である。It is a schematic diagram which shows the spectroscopic spectrum image obtained by superimposing the spectroscopic image which performed the magnification conversion for each wavelength. 物品が存在している位置を決定する位置決め方法で実施される、検出工程および取得工程の概略を説明するための模式図である。It is a schematic diagram for demonstrating the outline of the detection process and the acquisition process carried out by the positioning method which determines the position where an article exists. 図4に示すロボットシステムにより物品が存在している位置を決定する位置決め方法が有する検出工程を実施する際のフローチャートである。It is a flowchart at the time of carrying out the detection process which the positioning method which determines the position where an article exists by the robot system shown in FIG. 対象物に対応する位置である第1点PT1における分光スペクトル情報と、作業台に対応する位置である第2点PT2における分光スペクトル情報とを示すグラフである。It is a graph which shows the spectroscopic spectrum information at the 1st point PT1 which is a position corresponding to an object, and the spectroscopic spectrum information at a 2nd point PT2 which is a position corresponding to a workbench. 第1点PT1における分光スペクトル画像Ssam(PT1)の強度と、第2点PT2における分光スペクトル画像Ssam(PT2)の強度との差を示す図である。It is a figure which shows the difference between the intensity of the spectroscopic spectrum image Ssam (PT1) at the 1st point PT1 and the intensity of the spectroscopic spectrum image Ssam (PT2) at the 2nd point PT2. 第1点PT1における分光スペクトル画像Ssam(PT1)の強度と、第2点PT2における分光スペクトル画像Ssam(PT2)の強度との差が最大となる波長maxであるときを示す図である。It is a figure which shows the time when the wavelength max which the difference between the intensity of the spectroscopic spectrum image Ssam (PT1) at the first point PT1 and the intensity of the spectroscopic spectrum image Ssam (PT2) at the second point PT2 is the maximum. 図4に示すロボットシステムにより物品が存在している位置を決定する位置決め方法が有する取得工程を実施する際のフローチャートである。It is a flowchart at the time of carrying out the acquisition process which the positioning method which determines the position where an article exists by the robot system shown in FIG. 取得工程において、サーチラインと、対象物の境界部との交点であるエッジ点を検出することで対象物の位置決めを行う方法を説明するための模式図である。It is a schematic diagram for demonstrating the method of positioning an object by detecting the edge point which is the intersection of the search line and the boundary part of the object in the acquisition process.

以下、本発明の分光検査方法、分光画像処理装置およびロボットシステムを添付図面に示す好適な実施形態に基づいて詳細に説明する。 Hereinafter, the spectroscopic inspection method, the spectroscopic image processing apparatus, and the robot system of the present invention will be described in detail based on the preferred embodiments shown in the accompanying drawings.

まず、本発明の分光検査方法を説明するのに先立って、本発明の分光検査方法が適用されたロボットシステム、すなわち、本発明のロボットシステムについて説明する。 First, prior to explaining the spectroscopic inspection method of the present invention, a robot system to which the spectroscopic inspection method of the present invention is applied, that is, the robot system of the present invention will be described.

<ロボットシステム>
図1は、本発明のロボットシステムの実施形態を示す側面図、図2は、図1に示すロボットシステムが備える分光カメラのレンズ側を示す平面図、図3は、図2に示す分光カメラのA−A線断面図、図4は、図1に示すロボットシステムの概略構成を示すブロック図、図5は、図1に示すロボットシステムにパーソナルコンピューターを装着したときの概略構成を示すブロック図、図6は、図2、図3に示す分光カメラが備える分光部が有する波長可変干渉フィルターをファブリーペローエタロンフィルターに適用した一例を示す縦断面図である。なお、図1では、表示装置61および入力装置62の図示は省略されている。
<Robot system>
1 is a side view showing an embodiment of the robot system of the present invention, FIG. 2 is a plan view showing a lens side of a spectroscopic camera included in the spectroscopic camera shown in FIG. 1, and FIG. 3 is a plan view of the spectroscopic camera shown in FIG. AA sectional view, FIG. 4 is a block diagram showing a schematic configuration of the robot system shown in FIG. 1, and FIG. 5 is a block diagram showing a schematic configuration when a personal computer is attached to the robot system shown in FIG. FIG. 6 is a vertical sectional view showing an example in which a variable wavelength interference filter included in a spectroscopic unit included in the spectroscopic cameras shown in FIGS. 2 and 3 is applied to a Fabry Perot Etalon filter. Note that in FIG. 1, the display device 61 and the input device 62 are not shown.

なお、図1では、説明の便宜上、互いに直交する3軸として、x軸、y軸およびz軸を図示している。また、以下では、x軸に平行な方向を「x軸方向」とも言い、y軸に平行な方向を「y軸方向」とも言い、z軸に平行な方向を「z軸方向」とも言う。さらに、以下では、図示された各矢印の先端側を「+(プラス)」、基端側を「−(マイナス)」と言い、+x軸方向に平行な方向を「+x軸方向」とも言い、−x軸方向に平行な方向を「−x軸方向」とも言い、+y軸方向に平行な方向を「+y軸方向」とも言い、−y軸方向に平行な方向を「−y軸方向」とも言い、+z軸方向に平行な方向を「+z軸方向」とも言い、−z軸方向に平行な方向を「−z軸方向」とも言う。 In FIG. 1, for convenience of explanation, the x-axis, the y-axis, and the z-axis are shown as three axes orthogonal to each other. Further, in the following, the direction parallel to the x-axis is also referred to as "x-axis direction", the direction parallel to the y-axis is also referred to as "y-axis direction", and the direction parallel to the z-axis is also referred to as "z-axis direction". Further, in the following, the tip side of each of the illustrated arrows is referred to as "+ (plus)", the proximal end side is referred to as "-(minus)", and the direction parallel to the + x-axis direction is also referred to as "+ x-axis direction". The direction parallel to the −x axis direction is also referred to as “−x axis direction”, the direction parallel to the + y axis direction is also referred to as “+ y axis direction”, and the direction parallel to the −y axis direction is also referred to as “−y axis direction”. The direction parallel to the + z-axis direction is also referred to as "+ z-axis direction", and the direction parallel to the -z-axis direction is also referred to as "-z-axis direction".

さらに、以下では、説明の便宜上、図1中の+z軸方向(z軸方向+側)(上側)を「上」、−z軸方向(z軸方向−側)(下側)を「下」とも言う。また、ロボットアーム20については、図1中の基台21側を「基端」、その反対側(分光カメラ7側)を「先端」と言う。また、図1中のz軸方向(上下方向)を「鉛直方向」とし、x軸方向およびy軸方向(左右方向)を「水平方向」とする。 Further, in the following, for convenience of explanation, the + z-axis direction (z-axis direction + side) (upper side) in FIG. 1 is "upper", and the -z-axis direction (z-axis direction-side) (lower side) is "lower". Also called. Regarding the robot arm 20, the base 21 side in FIG. 1 is referred to as a “base end”, and the opposite side (spectral camera 7 side) is referred to as a “tip”. Further, the z-axis direction (vertical direction) in FIG. 1 is defined as the "vertical direction", and the x-axis direction and the y-axis direction (horizontal direction) are defined as the "horizontal direction".

また、本明細書において、「水平」とは、完全に水平な場合のみならず、水平に対して±5°以内で傾斜している場合も含む。同様に、本明細書において、「鉛直」とは、完全に鉛直な場合のみならず、鉛直に対して±5°以内で傾斜している場合も含む。また、本明細書において、「平行」とは、2つの線(軸を含む)または面が、互いに完全な平行である場合のみならず、±5°以内で傾斜している場合も含む。また、本明細書において、「一致」とは、2つの線(軸を含む)または面が、互いに完全に一致している場合のみならず、±5°以内で傾斜している場合も含む。また、本明細書において、「直交」とは、2つの線(軸を含む)または面が、互いに完全な直交である場合のみならず、±5°以内で傾斜している場合も含む。 Further, in the present specification, "horizontal" includes not only the case where it is completely horizontal but also the case where it is inclined within ± 5 ° with respect to the horizontal. Similarly, as used herein, the term "vertical" includes not only the case of being completely vertical, but also the case of being tilted within ± 5 ° with respect to the vertical. Further, in the present specification, "parallel" includes not only the case where two lines (including axes) or planes are completely parallel to each other but also the case where they are inclined within ± 5 °. Further, as used herein, the term "match" includes not only the case where two lines (including axes) or planes are completely aligned with each other, but also the case where they are inclined within ± 5 °. Further, in the present specification, "orthogonal" includes not only the case where two lines (including axes) or planes are completely orthogonal to each other but also the case where they are inclined within ± 5 °.

図1、図4および図5に示すロボットシステム100は、例えば、生産ラインで生産された、または、生産途中の物品の表面性状、すなわち、物品の色や物品に付着している異物の有無を検査するために、この物品を対象物Xとして、対象物Xの分光情報を取得するために用いられるものである。このロボットシステム100は、制御装置1と、ロボット2と、分光カメラ7と、表示装置61(表示部)と、入力装置62(入力部)とを備え、さらに、装脱着が可能なパーソナルコンピューター3を備えている。 The robot system 100 shown in FIGS. 1, 4 and 5 determines, for example, the surface texture of an article produced or in the process of being produced on a production line, that is, the color of the article and the presence or absence of foreign matter adhering to the article. In order to inspect, this article is used as an object X to acquire spectral information of the object X. The robot system 100 includes a control device 1, a robot 2, a spectroscopic camera 7, a display device 61 (display unit), and an input device 62 (input unit), and is a personal computer 3 that can be attached and detached. It has.

なお、図示の構成では、制御装置1は、ロボット2の外側に配置されているが、これに限定されず、ロボット2に内蔵されていてもよい。 In the illustrated configuration, the control device 1 is arranged outside the robot 2, but the present invention is not limited to this, and the control device 1 may be built in the robot 2.

また、図示の構成では、ロボット2、分光カメラ7およびパーソナルコンピューター3と制御装置1とは、それぞれ、ケーブル200等を介して電気的に接続(以下、単に「接続」とも言う)されているが、これに限定されず、無線方式で通信を行うようになっていてもよい。すなわち、ロボット2と制御装置1とは、有線通信で接続されていてもよく、また、無線通信で接続されていてもよい。 Further, in the illustrated configuration, the robot 2, the spectroscopic camera 7, the personal computer 3, and the control device 1 are electrically connected to each other via a cable 200 or the like (hereinafter, also simply referred to as “connection”). However, the communication is not limited to this, and communication may be performed by a wireless method. That is, the robot 2 and the control device 1 may be connected by wired communication or may be connected by wireless communication.

以下、ロボットシステム100を構成する各部について説明する。
<ロボット>
ロボット2の種類は、分光カメラ7を鉛直方向に移動させ得る構成のものであれば、特に限定されないが、本実施形態では、ロボット2は、水平多関節ロボットの1例であるスカラロボットで構成される。
Hereinafter, each part constituting the robot system 100 will be described.
<Robot>
The type of the robot 2 is not particularly limited as long as it can move the spectroscopic camera 7 in the vertical direction, but in the present embodiment, the robot 2 is composed of a SCARA robot which is an example of a horizontal articulated robot. Will be done.

ロボット2は、図1に示すように、基台21と、第1アーム22と、第2アーム23と、作業ヘッド24と、配管部材9とを備えている。なお、これら第1アーム22、第2アーム23および作業ヘッド24等によりロボットアーム20が構成される。 As shown in FIG. 1, the robot 2 includes a base 21, a first arm 22, a second arm 23, a work head 24, and a piping member 9. The robot arm 20 is composed of the first arm 22, the second arm 23, the work head 24, and the like.

また、ロボット2は、第1アーム22を基台21に対して回動(駆動)させる駆動部25と、第2アーム23を第1アーム22に対して回動させる駆動部26と、作業ヘッド24のシャフト241を第2アーム23に対して回動させる駆動部27と、シャフト241を第2アーム23に対してz軸方向に移動させる駆動部28と、角速度センサー29とを備えている。 Further, the robot 2 includes a drive unit 25 that rotates (drives) the first arm 22 with respect to the base 21, a drive unit 26 that rotates the second arm 23 with respect to the first arm 22, and a work head. It includes a drive unit 27 that rotates the shaft 241 of the 24 with respect to the second arm 23, a drive unit 28 that moves the shaft 241 with respect to the second arm 23 in the z-axis direction, and an angular velocity sensor 29.

駆動部25は、図4、図5に示すように、第1アーム22の筐体220内に内蔵されており、駆動力を発生するモーター251と、モーター251の駆動力を減速する図示しない減速機と、モーター251または減速機の回転軸の回転角度を検出する位置センサー252とを有している。 As shown in FIGS. 4 and 5, the drive unit 25 is built in the housing 220 of the first arm 22, and has a motor 251 that generates a driving force and a deceleration (not shown) that reduces the driving force of the motor 251. It has a machine and a position sensor 252 that detects the rotation angle of the rotation shaft of the motor 251 or the speed reducer.

駆動部26は、第2アーム23の筐体230に内蔵されており、駆動力を発生するモーター261と、モーター261の駆動力を減速する図示しない減速機と、モーター261または減速機の回転軸の回転角度を検出する位置センサー262とを有している。 The drive unit 26 is built in the housing 230 of the second arm 23, and includes a motor 261 that generates a driving force, a speed reducer (not shown) that reduces the driving force of the motor 261, and a rotation shaft of the motor 261 or the speed reducer. It has a position sensor 262 that detects the rotation angle of the motor.

駆動部27は、第2アーム23の筐体230に内蔵されており、駆動力を発生するモーター271と、モーター271の駆動力を減速する図示しない減速機と、モーター271または減速機の回転軸の回転角度を検出する位置センサー272とを有している。 The drive unit 27 is built in the housing 230 of the second arm 23, and includes a motor 271 that generates a driving force, a speed reducer (not shown) that reduces the driving force of the motor 271, and a rotation shaft of the motor 271 or the speed reducer. It has a position sensor 272 that detects the rotation angle of the motor.

駆動部28は、第2アーム23の筐体230に内蔵されており、駆動力を発生するモーター281と、モーター281の駆動力を減速する図示しない減速機と、モーター281または減速機の回転軸の回転角度を検出する位置センサー282とを有している。 The drive unit 28 is built in the housing 230 of the second arm 23, and includes a motor 281 that generates a driving force, a speed reducer (not shown) that reduces the driving force of the motor 281, and a rotation shaft of the motor 281 or the speed reducer. It has a position sensor 282 that detects the rotation angle of the motor.

モーター251、モーター261、モーター271およびモーター281としては、例えば、ACサーボモーター、DCサーボモーター等のサーボモーターを用いることができる。また、減速機としては、例えば、遊星ギア型の減速機、波動歯車装置等を用いることができる。また、位置センサー252、位置センサー262、位置センサー272および位置センサー282は、例えば、角度センサーとすることができる。 As the motor 251 and the motor 261 and the motor 271 and the motor 281, for example, a servomotor such as an AC servomotor or a DC servomotor can be used. Further, as the speed reducer, for example, a planetary gear type speed reducer, a wave gear device, or the like can be used. Further, the position sensor 252, the position sensor 262, the position sensor 272 and the position sensor 282 can be, for example, an angle sensor.

駆動部25、駆動部26、駆動部27および駆動部28は、それぞれ、対応する図示しないモータードライバーに接続されており、モータードライバーを介して制御装置1のロボット制御部11により制御される。なお、各減速機は省略されていてもよい。 The drive unit 25, the drive unit 26, the drive unit 27, and the drive unit 28 are each connected to a corresponding motor driver (not shown), and are controlled by the robot control unit 11 of the control device 1 via the motor driver. In addition, each speed reducer may be omitted.

また、角速度センサー29(センサー)は、第2アーム23に内蔵されている。このため、第2アーム23の角速度を検出することができる。この検出した角速度の情報に基づいて、制御装置1は、ロボット2の制御を行う。また、角速度センサー29は、駆動部26〜28よりも−y軸側、すなわち、基台21の遠位側に設置されている。 Further, the angular velocity sensor 29 (sensor) is built in the second arm 23. Therefore, the angular velocity of the second arm 23 can be detected. Based on the detected angular velocity information, the control device 1 controls the robot 2. Further, the angular velocity sensor 29 is installed on the −y axis side of the drive units 26 to 28, that is, on the distal side of the base 21.

基台21は、例えば、図示しない床面にボルト等によって固定されている。基台21の上端部には第1アーム22が連結されている。第1アーム22は、基台21に対して鉛直方向に沿う第1回動軸O1回りに回動可能となっている。第1アーム22を回動させる駆動部25が駆動すると、第1アーム22が基台21に対して第1回動軸O1回りに水平面内で回動する。また、位置センサー252により、基台21に対する第1アーム22の駆動(回動量)が検出できるようになっている。 The base 21 is fixed to, for example, a floor surface (not shown) with bolts or the like. The first arm 22 is connected to the upper end of the base 21. The first arm 22 is rotatable around the first rotation shaft O1 along the vertical direction with respect to the base 21. When the drive unit 25 that rotates the first arm 22 is driven, the first arm 22 rotates with respect to the base 21 around the first rotation shaft O1 in a horizontal plane. Further, the position sensor 252 can detect the drive (rotation amount) of the first arm 22 with respect to the base 21.

また、第1アーム22の先端部には、第2アーム23が連結されている。第2アーム23は、第1アーム22に対して鉛直方向に沿う第2回動軸O2回りに回動可能となっている。第1回動軸O1の軸方向と第2回動軸O2の軸方向とは同一である。すなわち、第2回動軸O2は、第1回動軸O1と平行である。第2アーム23を回動させる駆動部26が駆動すると、第2アーム23が第1アーム22に対して第2回動軸O2回りに水平面内で回動する。また、位置センサー262により、第1アーム22に対する第2アーム23の駆動(回動量)が検出できるようになっている。 A second arm 23 is connected to the tip of the first arm 22. The second arm 23 is rotatable around the second rotation shaft O2 along the vertical direction with respect to the first arm 22. The axial direction of the first rotating shaft O1 and the axial direction of the second rotating shaft O2 are the same. That is, the second rotation shaft O2 is parallel to the first rotation shaft O1. When the drive unit 26 that rotates the second arm 23 is driven, the second arm 23 rotates with respect to the first arm 22 around the second rotation shaft O2 in a horizontal plane. Further, the position sensor 262 can detect the drive (rotation amount) of the second arm 23 with respect to the first arm 22.

また、第2アーム23は、底板231、天板232およびこれらを連結している側壁233を有する筐体230を有している。この筐体230の内部、すなわち、底板231上には、角速度センサー29、駆動部26、駆動部27および駆動部28が+y軸側からこの順で並んでいる。 Further, the second arm 23 has a housing 230 having a bottom plate 231 and a top plate 232 and a side wall 233 connecting them. The angular velocity sensor 29, the drive unit 26, the drive unit 27, and the drive unit 28 are arranged in this order from the + y-axis side inside the housing 230, that is, on the bottom plate 231.

また、筐体230は、天板232と側壁233との間に位置する傾斜部234を有している。この傾斜部234は、天板232の−y軸側に設けられている。また、この傾斜部234は、z軸に対して傾斜して設けられている。 Further, the housing 230 has an inclined portion 234 located between the top plate 232 and the side wall 233. The inclined portion 234 is provided on the −y axis side of the top plate 232. Further, the inclined portion 234 is provided so as to be inclined with respect to the z-axis.

また、第2アーム23の先端部には、シャフト241を有する作業ヘッド24が設置されている。シャフト241は、第2アーム23に対して、鉛直方向に沿う第3回動軸O3回りに回動可能であり、かつ、上下方向すなわち鉛直方向に沿って移動(昇降)可能となっている。このシャフト241は、ロボットアーム20の第3アームであり、ロボットアーム20の最も先端のアームである。 A work head 24 having a shaft 241 is installed at the tip of the second arm 23. The shaft 241 can rotate about the third rotation shaft O3 along the vertical direction with respect to the second arm 23, and can move (up and down) in the vertical direction, that is, in the vertical direction. The shaft 241 is the third arm of the robot arm 20, and is the most advanced arm of the robot arm 20.

シャフト241を回動させる駆動部27が駆動すると、シャフト241は、z軸回りに正逆回転(回動)する。また、位置センサー272により、第2アーム23に対するシャフト241の回転量が検出できるようになっている。 When the drive unit 27 that rotates the shaft 241 is driven, the shaft 241 rotates (rotates) forward and reverse around the z-axis. Further, the position sensor 272 can detect the amount of rotation of the shaft 241 with respect to the second arm 23.

また、シャフト241をz軸方向に移動させる駆動部28が駆動すると、シャフト241は、上下方向(z軸方向)に移動する。また、位置センサー282により、第2アーム23に対するシャフト241のz軸方向の移動量が検出できるようになっている。 Further, when the drive unit 28 that moves the shaft 241 in the z-axis direction is driven, the shaft 241 moves in the vertical direction (z-axis direction). Further, the position sensor 282 can detect the amount of movement of the shaft 241 with respect to the second arm 23 in the z-axis direction.

また、シャフト241の先端部(下端部)には、分光カメラ7が着脱可能に配置される。この分光カメラ7は、生産ラインで生産された、または、生産途中の物品を対象物Xすなわち測定対象として、その表面性状を検査するために、対象物Xの分光情報すなわち分光スペクトルを取得するために使用されるが、その詳細については、以下で説明する。 Further, a spectroscopic camera 7 is detachably arranged at the tip end portion (lower end portion) of the shaft 241. This spectroscopic camera 7 takes an article produced or in the process of production on a production line as an object X, that is, a measurement target, and obtains spectral information, that is, a spectral spectrum of the object X in order to inspect the surface texture thereof. It is used for, but the details will be described below.

なお、分光カメラ7は、本実施形態では、ロボット2の構成要素になっていないが、分光カメラ7の一部または全部がロボット2の構成要素になっていてもよい。また、分光カメラ7は、本実施形態では、ロボットアーム20の構成要素になっていないが、分光カメラ7の一部または全部がロボットアーム20の構成要素になっていてもよい。 Although the spectroscopic camera 7 is not a component of the robot 2 in the present embodiment, a part or all of the spectroscopic camera 7 may be a component of the robot 2. Further, although the spectroscopic camera 7 is not a component of the robot arm 20 in this embodiment, a part or all of the spectroscopic camera 7 may be a component of the robot arm 20.

<分光カメラ>
分光カメラ7は、図1に示すように、シャフト241の先端部(下端部)に、直接または図示しない連結部材を介して、上下方向が分光カメラ7の光軸方向と一致するように着脱可能に連結されている。
<Spectroscopic camera>
As shown in FIG. 1, the spectroscopic camera 7 can be attached to and detached from the tip end (lower end portion) of the shaft 241 so that the vertical direction coincides with the optical axis direction of the spectroscopic camera 7 directly or via a connecting member (not shown). It is connected to.

この分光カメラ7は、制御装置1の制御に基づいて、生産された、または、生産途中の物品である対象物Xが有する固有の分光情報を取得するものであり、より具体的には、対象物Xで反射した反射光を受光し、分光することで、特定波長または特定波長領域(以下では、「特定波長」で代表して説明する。)の光を得た後、この特定波長を有する光を撮像することにより、対象物Xの分光画像すなわち分光スペクトル画像を取得するものである。 The spectroscopic camera 7 acquires the unique spectroscopic information possessed by the object X, which is an article produced or in the process of being produced, based on the control of the control device 1, and more specifically, the object. By receiving and splitting the reflected light reflected by the object X, light having a specific wavelength or a specific wavelength region (hereinafter, will be described as being represented by a “specific wavelength”) is obtained, and then the light has this specific wavelength. By imaging the light, a spectroscopic image of the object X, that is, a spectroscopic spectrum image is acquired.

なお、対象物Xは、分光カメラ7の光軸方向すなわち上下方向の延長線上に、ロボット2が備える作業台8上に設置されている。 The object X is installed on the workbench 8 provided by the robot 2 on the extension line in the optical axis direction of the spectroscopic camera 7, that is, in the vertical direction.

このように、分光カメラ7では、所定の波長領域における対象物Xが有する固有の分光スペクトル画像を取得し、この分光スペクトル画像に基づいて、対象物Xすなわち生産された、または、生産途中の物品の表面性状を検査することから、かかる物品の表面性状の検査、すなわち、物品の色や物品に付着している異物の有無を、優れた精度をもって実施することができる。 As described above, the spectroscopic camera 7 acquires a unique spectroscopic spectrum image of the object X in a predetermined wavelength region, and based on the spectroscopic spectrum image, the object X, that is, an article produced or in the process of being produced. Since the surface property of the article is inspected, the surface property of the article can be inspected, that is, the color of the article and the presence or absence of foreign matter adhering to the article can be inspected with excellent accuracy.

なお、分光カメラ7により、対象物Xすなわち生産された、または、生産途中の物品の表面性状を検査するために取得する波長領域は、可視光領域から選択されたものであってもよいし、赤外線領域や、紫外線領域等から選択されたものであってもよいし、これらのうちの少なくとも2つの領域から選択されたものであってもよい。 The wavelength region acquired by the spectroscopic camera 7 for inspecting the surface texture of the object X, that is, the article produced or in the process of being produced, may be selected from the visible light region. It may be selected from an infrared region, an ultraviolet region, or the like, or may be selected from at least two of these regions.

この分光カメラ7は、図1〜図5に示すように、本実施形態では、対象物Xに光を照射する光源31と、対象物Xを反射した反射光に基づいた、画像を撮像する撮像素子71と、入射光から所定の波長の光を選択的に出射させ、かつ出射させる出射光の波長もしくは波長領域を変更可能な分光部41とを備えている。 As shown in FIGS. 1 to 5, the spectroscopic camera 7 captures an image based on the light source 31 that irradiates the object X with light and the reflected light reflected from the object X in the present embodiment. It includes an element 71 and a spectroscopic unit 41 capable of selectively emitting light having a predetermined wavelength from incident light and changing the wavelength or wavelength region of the emitted light.

このような分光カメラ7において、図2、図3に示すように、光源31、撮像素子71が、分光カメラ7のレンズ側において同一方向を向くように配置された状態で、分光部41は、撮像素子71と対象物Xとの間に配置されている。光源31と、分光部41と、撮像素子71とをこのような位置関係で配置することで、これらにより、分光カメラ7は、後分光方式の分光カメラで構成される。なお、分光カメラ7は、分光部41が光源31と対象物Xとの間に配置された、前分光方式の分光カメラを構成していてもよい。 In such a spectroscopic camera 7, as shown in FIGS. 2 and 3, the spectroscopic unit 41 is in a state where the light source 31 and the image sensor 71 are arranged so as to face the same direction on the lens side of the spectroscopic camera 7. It is arranged between the image sensor 71 and the object X. By arranging the light source 31, the spectroscopic unit 41, and the image sensor 71 in such a positional relationship, the spectroscopic camera 7 is composed of a post-spectral spectroscopic camera. The spectroscopic camera 7 may constitute a pre-spectral spectroscopic camera in which the spectroscopic unit 41 is arranged between the light source 31 and the object X.

以下、分光カメラ7が備える各部の構成について説明する。
光源31は、対象物Xに向かって照明光を照射する光素子である。
Hereinafter, the configuration of each part included in the spectroscopic camera 7 will be described.
The light source 31 is an optical element that irradiates the object X with illumination light.

光源31は、図2、図3に示すように、分光カメラ7の筐体内に配置された回路基板51上に、対象物Xに向かって照明光を照射し得るように、分光カメラ7のレンズ側に配置されている。 As shown in FIGS. 2 and 3, the light source 31 is a lens of the spectroscopic camera 7 so that the illumination light can be irradiated toward the object X on the circuit board 51 arranged in the housing of the spectroscopic camera 7. It is located on the side.

この光源31と対象物Xとの間には分光部41が配置されておらず、これにより、光源31から出射された光が、対象物Xに対して、直接、照射される。 The spectroscopic unit 41 is not arranged between the light source 31 and the object X, whereby the light emitted from the light source 31 is directly irradiated to the object X.

このような光源31は、例えば、LED光源、OLED光源、キセノンランプ、ハロンゲンランプ等が挙げられ、波長可変干渉フィルターで構成される分光部41により分光測定を行う波長領域の全体に光強度を持つ光源、すなわち、可視光領域の全体にわたって光強度を有する白色光を照射可能な光源が好ましく用いられる。また、光源31は、白色光源以外にも、例えば、赤外光等の所定波長の光を照射可能な光源を備えていてもよい。 Examples of such a light source 31 include an LED light source, an OLED light source, a xenon lamp, a halongen lamp, and the like, and the light intensity is applied to the entire wavelength region for spectroscopic measurement by the spectroscopic unit 41 composed of a wavelength variable interference filter. A light source having a light source, that is, a light source capable of irradiating white light having a light intensity over the entire visible light region is preferably used. Further, the light source 31 may include a light source capable of irradiating light having a predetermined wavelength such as infrared light, in addition to the white light source.

なお、この光源31は、分光カメラ7において、省略することもできる。この場合、対象物Xを反射した反射光は、太陽のような自然光、蛍光灯のような外部光源により対象物Xに対して照射された光が反射されることで生成される。 The light source 31 may be omitted in the spectroscopic camera 7. In this case, the reflected light reflected by the object X is generated by reflecting the light emitted to the object X by a natural light such as the sun or an external light source such as a fluorescent lamp.

撮像素子71は、対象物Xを反射した反射光に基づいた、画像を撮像することで、対象物Xを反射した反射光を検出する検出部として機能するものである。 The image sensor 71 functions as a detection unit that detects the reflected light reflected by the object X by capturing an image based on the reflected light reflected by the object X.

撮像素子71は、図2、図3に示すように、分光カメラ7の筐体内に配置された回路基板51上に、対象物Xを反射した反射光を受光し得るように、分光カメラ7のレンズ側に配置されている。 As shown in FIGS. 2 and 3, the image pickup device 71 of the spectroscopic camera 7 can receive the reflected light reflected by the object X on the circuit board 51 arranged in the housing of the spectroscopic camera 7. It is located on the lens side.

そして、この撮像素子71と対象物Xとの間には分光部41が配置されている。これにより、対象物Xから分光部41に入射された入射光のうち、特定波長を有する出射光が選択的に出射され、この出射光が撮像素子71により、分光画像すなわち分光情報として撮像される。
このような撮像素子71は、例えば、CCDやCMOS等で構成される。
A spectroscopic unit 41 is arranged between the image sensor 71 and the object X. As a result, among the incident light incident on the spectroscopic unit 41 from the object X, the emitted light having a specific wavelength is selectively emitted, and the emitted light is imaged by the image sensor 71 as a spectroscopic image, that is, spectroscopic information. ..
Such an image sensor 71 is composed of, for example, CCD, CMOS, or the like.

分光部41は、入射光から特定波長である分光波長の光を選択的に出射させ、かつ出射させる出射光の波長領域を変更可能なものである。すなわち、入射光から特定波長の光を出射光として撮像素子71へ向けて出射させるものである。 The spectroscopic unit 41 can selectively emit light having a spectral wavelength of a specific wavelength from the incident light, and can change the wavelength region of the emitted light to be emitted. That is, light having a specific wavelength is emitted from the incident light as emitted light toward the image sensor 71.

分光部41は、図3に示すように、分光カメラ7の筐体内に配置された回路基板52上に配置されている。 As shown in FIG. 3, the spectroscopic unit 41 is arranged on the circuit board 52 arranged in the housing of the spectroscopic camera 7.

この分光部41は、撮像素子71と対象物Xとの間、すなわち、これらの間の光軸上に配置されている。これにより、対象物Xから分光部41に入射された入射光のうち、特定波長を有する出射光を、撮像素子71に向けて選択的に出射する。 The spectroscopic unit 41 is arranged between the image sensor 71 and the object X, that is, on the optical axis between them. As a result, among the incident light incident on the spectroscopic unit 41 from the object X, the emitted light having a specific wavelength is selectively emitted toward the image sensor 71.

このような分光部41は、出射させる出射光の波長領域を変更可能なように、波長可変干渉フィルターで構成されている。この波長可変干渉フィルターとしては、特に限定されないが、例えば、静電アクチュエーターにより2つのフィルター(ミラー)間のギャップの大きさを調整することで透過する反射光の波長を制御する、波長可変型のファブリーペローエタロンフィルター、音響光学チューナブルフィルター(AOTF)、リニアバリアブルフィルター(LVF)、液晶チューナブルフィルター(LCTF)等が挙げられるが、中でも、ファブリーペローエタロンフィルターであるのが好ましい。 Such a spectroscopic unit 41 is composed of a tunable interference filter so that the wavelength region of the emitted light to be emitted can be changed. The wavelength-variable interference filter is not particularly limited, but is, for example, a wavelength-variable type that controls the wavelength of the reflected light transmitted by adjusting the size of the gap between the two filters (mirrors) with an electrostatic actuator. Examples thereof include a Fabry-Perot Etalon filter, an acoustic-optical tunable filter (AOTF), a linear variable filter (LVF), and a liquid crystal tunable filter (LCTF). Among them, the Fabry-Perot Etalon filter is preferable.

ファブリーペローエタロンフィルターは、2つのフィルターによる多重干渉を利用して所望波長の反射光を取り出すものである。そのため、厚み寸法を極めて小さくすることができ、具体的には、2.0mm以下に設定することが可能となる。そのため、分光部41ひいては分光カメラ7をより小型なものとし得る。したがって、波長可変フィルターとして、ファブリーペローエタロンフィルターを用いることにより、分光カメラ7のさらなる小型化を実現することができる。 The Fabry-Perot Etalon filter extracts reflected light of a desired wavelength by utilizing multiple interferences of the two filters. Therefore, the thickness dimension can be made extremely small, and specifically, it can be set to 2.0 mm or less. Therefore, the spectroscopic unit 41 and thus the spectroscopic camera 7 can be made smaller. Therefore, by using the Fabry-Perot Etalon filter as the tunable wavelength filter, the spectroscopic camera 7 can be further miniaturized.

以下、波長可変干渉フィルターとして波長可変型のファブリーペローエタロンフィルターが適用された分光部41について、図6を参照しつつ説明する。 Hereinafter, the spectroscopic unit 41 to which the tunable Fabry-Perot Etalon filter is applied as the tunable interference filter will be described with reference to FIG.

ファブリーペローエタロンフィルターは、平面視において、矩形板状の光学部材であり、固定基板410と、可動基板420と、固定反射膜411と、可動反射膜421と、固定電極412と可動電極422と、接合膜414とを備えている。そして、固定基板410と可動基板420とが積層した状態で、接合膜414を介して一体的に接合されている。 The Fabry-Perot Etalon filter is a rectangular plate-shaped optical member in a plan view, and includes a fixed substrate 410, a movable substrate 420, a fixed reflective film 411, a movable reflective film 421, a fixed electrode 412, and a movable electrode 422. It includes a bonding membrane 414. Then, the fixed substrate 410 and the movable substrate 420 are integrally joined via the bonding film 414 in a laminated state.

固定基板410は、その中央部に反射膜設置部415が形成されるように、中央部を取り囲んで、厚さ方向に対するエッチングにより溝413が形成されている。かかる構成の固定基板410において、反射膜設置部415の可動基板420側に固定反射膜411で構成される固定光学ミラーが設けられ、溝413の可動基板420側に固定電極412が設けられている。 The fixed substrate 410 surrounds the central portion so that the reflective film installation portion 415 is formed in the central portion thereof, and a groove 413 is formed by etching in the thickness direction. In the fixed substrate 410 having such a configuration, a fixed optical mirror composed of the fixed reflective film 411 is provided on the movable substrate 420 side of the reflective film installation portion 415, and a fixed electrode 412 is provided on the movable substrate 420 side of the groove 413. ..

また、可動基板420は、その中央部に反射膜設置部425である可動部が形成されるように、中央部を取り囲んで、厚さ方向に対するエッチングにより溝423である保持部が形成されている。かかる構成の可動基板420において、反射膜設置部425の固定基板410側すなわち下面側に可動反射膜421で構成される可動光学ミラーが設けられ、さらに、固定基板410側に可動電極422が設けられている。 Further, the movable substrate 420 surrounds the central portion so that the movable portion which is the reflective film installation portion 425 is formed in the central portion thereof, and a holding portion which is a groove 423 is formed by etching in the thickness direction. .. In the movable substrate 420 having such a configuration, a movable optical mirror composed of the movable reflective film 421 is provided on the fixed substrate 410 side, that is, the lower surface side of the reflective film installation portion 425, and a movable electrode 422 is provided on the fixed substrate 410 side. ing.

この可動基板420は、反射膜設置部425と比較して、溝423の厚み寸法が小さく形成されており、これにより、溝423は、固定電極412および可動電極422間に電圧を印加した際の静電引力により撓むダイアフラムとして機能する。 The movable substrate 420 is formed so that the thickness dimension of the groove 423 is smaller than that of the reflective film installation portion 425, whereby the groove 423 is formed when a voltage is applied between the fixed electrode 412 and the movable electrode 422. It functions as a diaphragm that bends due to electrostatic attraction.

これら固定基板410と可動基板420とは、0.1mm以上1.0mm以下程度の厚みであれば作製可能である。よって、ファブリーペローエタロンフィルターの全体としての厚みを、2.0mm以下に設定し得るため、分光カメラ7の小型化を実現することができる。 The fixed substrate 410 and the movable substrate 420 can be manufactured as long as they have a thickness of 0.1 mm or more and 1.0 mm or less. Therefore, since the overall thickness of the Fabry-Perot Etalon filter can be set to 2.0 mm or less, the spectroscopic camera 7 can be downsized.

このような固定基板410と可動基板420との間において、固定反射膜411と可動反射膜421とは、固定基板410および可動基板420のほぼ中央部で、ギャップを介して対向配置されている。また、固定電極412と可動電極422とは、前記中央部を取り囲む溝部で、ギャップを介して対向配置されている。これらのうち、固定電極412と可動電極422とにより、固定反射膜411と可動反射膜421との間のギャップの大きさを調整する静電アクチュエーター45が構成される。 Between the fixed substrate 410 and the movable substrate 420, the fixed reflective film 411 and the movable reflective film 421 are arranged to face each other with a gap at substantially the center of the fixed substrate 410 and the movable substrate 420. Further, the fixed electrode 412 and the movable electrode 422 are grooved portions surrounding the central portion, and are arranged so as to face each other with a gap. Of these, the fixed electrode 412 and the movable electrode 422 constitute an electrostatic actuator 45 that adjusts the size of the gap between the fixed reflective film 411 and the movable reflective film 421.

静電アクチュエーター45を構成する、固定電極412および可動電極422間に電圧を印加することで生じる静電引力により、溝423である保持部に撓みが生じる。その結果、固定反射膜411と可動反射膜421との間のギャップの大きさすなわち距離を変化させることができる。そして、このギャップの大きさを適宜設定することにより、透過する光の波長を選択すること、入射光から所望の波長(波長領域)の光を選択的に出射させることができる。また、固定反射膜411および可動反射膜421の構成を変えることにより、透過する光の半値幅、すなわちファブリーペローエタロンフィルターの分解能を制御することができる。 Due to the electrostatic attraction generated by applying a voltage between the fixed electrode 412 and the movable electrode 422 that constitute the electrostatic actuator 45, the holding portion that is the groove 423 is bent. As a result, the size of the gap between the fixed reflective film 411 and the movable reflective film 421, that is, the distance can be changed. Then, by appropriately setting the size of this gap, it is possible to select the wavelength of the transmitted light and selectively emit light having a desired wavelength (wavelength region) from the incident light. Further, by changing the configurations of the fixed reflection film 411 and the movable reflection film 421, the half width of the transmitted light, that is, the resolution of the Fabry-Perot Etalon filter can be controlled.

なお、固定基板410および可動基板420は、それぞれ、例えば、ソーダガラス、結晶性ガラス、石英ガラス、鉛ガラス、カリウムガラス、ホウケイ酸ガラス、無アルカリガラス等の各種ガラスや、水晶等により構成され、接合膜414は、例えば、シロキサンを主材料とするプラズマ重合膜等により構成され、また、固定反射膜411および可動反射膜421は、例えば、Ag等の金属膜や、Ag合金等の合金膜で構成される他、高屈折層としてTiO、低屈折層としてSiOを備える誘電体多層膜で構成され、さらに、固定電極412および可動電極422は、各種導電性材料で構成される。 The fixed substrate 410 and the movable substrate 420 are each made of, for example, various glasses such as soda glass, crystalline glass, quartz glass, lead glass, potassium glass, borosilicate glass, non-alkali glass, and crystals. The bonding film 414 is made of, for example, a plasma polymerized film containing siloxane as a main material, and the fixed reflective film 411 and the movable reflective film 421 are, for example, a metal film such as Ag or an alloy film such as Ag alloy. In addition, the fixed electrode 412 and the movable electrode 422 are made of various conductive materials, and are made of a dielectric multilayer film having TiO 2 as a high refraction layer and SiO 2 as a low refraction layer.

また、分光カメラ7は、本実施形態では、図4、図5に示すように、各種光学部品で構成される光学系81、83を有する構成のものである。 Further, in the present embodiment, the spectroscopic camera 7 has an optical system 81, 83 composed of various optical components, as shown in FIGS. 4 and 5.

分光部側光学系81は、対象物Xと分光部41との間に配置され、入射光学系としての入射レンズ811と、投射レンズ812とを備え、対象物Xを反射した反射光を分光部41に導く。 The spectroscopic unit side optical system 81 is arranged between the object X and the spectroscopic unit 41, includes an incident lens 811 as an incident optical system and a projection lens 812, and disperses the reflected light reflected from the object X. Lead to 41.

また、撮像素子側光学系83は、分光部41と撮像素子71との間に配置され、入出射レンズ831を備え、分光部41により出射された出射光を撮像素子71に導く。 Further, the image sensor side optical system 83 is arranged between the spectroscopic unit 41 and the image sensor 71, includes an input / output lens 831, and guides the emitted light emitted by the spectroscopic unit 41 to the image sensor 71.

このような光学系81、83のうちの少なくとも1つを分光カメラ7が備えることで、対象物Xを反射する反射光の撮像素子71による集光率の向上を図ることができる。 When the spectroscopic camera 7 is provided with at least one of such optical systems 81 and 83, it is possible to improve the collection rate of the reflected light reflected by the object X by the image sensor 71.

なお、光学系81、83は、これらのうちの少なくとも1つが、撮像素子71による前記集光率を考慮して、省略されたものであってもよい。 Note that at least one of the optical systems 81 and 83 may be omitted in consideration of the light collection rate of the image pickup device 71.

また、分光部側光学系81は、上記のような配置とする場合(図4、図5参照)の他、分光部41と撮像素子側光学系83との間に配置されている構成をなすものであってもよい。 In addition to the case where the spectroscopic unit side optical system 81 is arranged as described above (see FIGS. 4 and 5), the spectroscopic unit side optical system 81 is arranged between the spectroscopic unit 41 and the image sensor side optical system 83. It may be one.

なお、上述したような構成の分光カメラ7は、モーター271の回転軸の回転角度を検出する図示しない角度センサーを有しており、その位置センサーにより、モーター271の回転軸の回転角度が検出できるようになっている。 The spectroscopic camera 7 having the above-described configuration has an angle sensor (not shown) that detects the rotation angle of the rotation axis of the motor 271, and the position sensor can detect the rotation angle of the rotation axis of the motor 271. It has become like.

また、本実施形態では、分光カメラ7は、ロボットアーム20に対して着脱可能であることとしたが、これに限定されず、例えば、分光カメラ7は、ロボットアーム20から離脱不能になっていてもよい。 Further, in the present embodiment, the spectroscopic camera 7 is detachable from the robot arm 20, but the present invention is not limited to this. For example, the spectroscopic camera 7 cannot be detached from the robot arm 20. May be good.

<制御装置>
制御装置1は、図4、図5に示すように、ロボット制御部11と、分光画像処理部12と、表示制御部13と、記憶部14と、受付部15とを備えており、ロボット2、分光カメラ7および表示装置61等、ロボットシステム100の各部の駆動をそれぞれ制御する。
<Control device>
As shown in FIGS. 4 and 5, the control device 1 includes a robot control unit 11, a spectroscopic image processing unit 12, a display control unit 13, a storage unit 14, and a reception unit 15, and the robot 2 , The spectroscopic camera 7, the display device 61, and other parts of the robot system 100 are controlled.

また、制御装置1は、ロボット制御部11と、分光画像処理部12と、表示制御部13と、記憶部14と、受付部15と、パーソナルコンピューター3との間で、それぞれ、通信可能に構成されている。すなわち、ロボット制御部11と、分光画像処理部12と、表示制御部13と、記憶部14と、受付部15とは、互いに、有線または無線通信で接続されている。 Further, the control device 1 is configured so that the robot control unit 11, the spectroscopic image processing unit 12, the display control unit 13, the storage unit 14, the reception unit 15, and the personal computer 3 can communicate with each other. Has been done. That is, the robot control unit 11, the spectroscopic image processing unit 12, the display control unit 13, the storage unit 14, and the reception unit 15 are connected to each other by wired or wireless communication.

また、制御装置1には、ロボット2と、表示装置61と、入力装置62と、分光カメラ7と、パーソナルコンピューター3とが、それぞれ、有線または無線通信で接続されている。なお、パーソナルコンピューター3は、図4、図5に示すように、制御装置1すなわちロボットシステム100から装脱着が可能なように構成されている。 Further, the robot 2, the display device 61, the input device 62, the spectroscopic camera 7, and the personal computer 3 are connected to the control device 1 by wire or wireless communication, respectively. As shown in FIGS. 4 and 5, the personal computer 3 is configured to be detachable from the control device 1, that is, the robot system 100.

(ロボット制御部)
ロボット制御部11は、ロボット2の駆動、すなわち、ロボット2が備えるロボットアーム20等の各部の駆動を制御する。ロボット制御部11は、OS等のプログラムがインストールされたコンピューターである。このロボット制御部11は、例えば、プロセッサーとしてのCPUと、RAMと、プログラムが記憶されたROMとを有する。また、ロボット制御部11の機能は、例えば、CPUにより各種プログラムを実行することにより実現することができる。
(Robot control unit)
The robot control unit 11 controls the drive of the robot 2, that is, the drive of each unit such as the robot arm 20 included in the robot 2. The robot control unit 11 is a computer in which a program such as an OS is installed. The robot control unit 11 has, for example, a CPU as a processor, a RAM, and a ROM in which a program is stored. Further, the function of the robot control unit 11 can be realized, for example, by executing various programs by the CPU.

このロボット制御部11は、具体的には、入力装置62に入力されたユーザーの操作指示、記憶部14に記憶されたプログラム等のソフトウェアを読み込むことで、ロボット2が備える各部の駆動を制御する。 Specifically, the robot control unit 11 controls the drive of each unit included in the robot 2 by reading software such as a user's operation instruction input to the input device 62 and a program stored in the storage unit 14. ..

このロボット制御部11は、本実施形態では、図4、図5に示すように、カメラポイント補正部102を有するプログラム実行部101を備えている。プログラム実行部101は、記憶部14から読み込まれたプログラムを実行することで、ロボット2が備える各部の駆動を制御し、例えば、プログラム実行部101が有するカメラポイント補正部102の作動により、第2アーム23に対してシャフト241をz軸方向に移動させることができ、これにより、分光カメラ7のz軸方向に対する位置補正が実現される。 In this embodiment, the robot control unit 11 includes a program execution unit 101 having a camera point correction unit 102, as shown in FIGS. 4 and 5. The program execution unit 101 controls the drive of each unit included in the robot 2 by executing the program read from the storage unit 14, and for example, by operating the camera point correction unit 102 of the program execution unit 101, the second unit The shaft 241 can be moved in the z-axis direction with respect to the arm 23, whereby the position correction of the spectroscopic camera 7 in the z-axis direction is realized.

(分光画像処理部)
分光画像処理部12は、光源31、撮像素子71、分光部41等の各部の作動、すなわち、分光カメラ7の全体または各部の駆動を制御し、かつ、分光カメラ7で得られた分光画像の処理を施すことで、対象物Xの表面性状の検査を実施する。分光画像処理部12は、OS等のプログラムがインストールされたコンピューターである。この分光画像処理部12は、例えば、プロセッサーとしてのCPUと、RAMと、プログラムが記憶されたROMとを有する。また、分光画像処理部12の機能は、例えば、CPUにより各種プログラムを実行することにより実現することができる。
(Spectroscopic image processing unit)
The spectroscopic image processing unit 12 controls the operation of each part such as the light source 31, the image sensor 71, and the spectroscopic unit 41, that is, the drive of the entire or each part of the spectroscopic camera 7, and the spectroscopic image obtained by the spectroscopic camera 7. By performing the treatment, the surface texture of the object X is inspected. The spectroscopic image processing unit 12 is a computer in which a program such as an OS is installed. The spectroscopic image processing unit 12 has, for example, a CPU as a processor, a RAM, and a ROM in which a program is stored. Further, the function of the spectroscopic image processing unit 12 can be realized by executing various programs by the CPU, for example.

この分光画像処理部12は、具体的には、入力装置62に入力されたユーザーの操作指示、すなわち、対象物Xが有する固有の分光情報を取得するための条件に基づいて、記憶部14に記憶されたプログラム等のソフトウェアを読み込むことで、光源31、分光部41および撮像素子71の作動を制御する。そして、これにより得られた対象物Xの分光画像すなわち分光情報に基づいて、生産ラインで生産された、または、生産途中の物品としての対象物Xの表面性状の検査を実施し、その検査における結果等の情報を、表示装置61において表示する。 Specifically, the spectroscopic image processing unit 12 stores the storage unit 14 based on the user's operation instruction input to the input device 62, that is, the condition for acquiring the unique spectroscopic information of the object X. By reading software such as a stored program, the operation of the light source 31, the spectroscopic unit 41, and the image sensor 71 is controlled. Then, based on the spectroscopic image of the object X obtained by this, that is, the spectroscopic information, the surface texture of the object X as an article produced or in the process of being produced on the production line is inspected, and the inspection is performed. Information such as the result is displayed on the display device 61.

この分光画像処理部12は、本実施形態では、図4、図5に示すように、カメラ制御部60と、画像処理実行部65とを有している。これらのうち、カメラ制御部60は、光源制御部601と、分光制御部602と、分光画像取得部603とを備え、分光カメラ7の全体または各部の駆動を制御する。また、画像処理実行部65は、倍率調整部605を有するスペクトル情報生成部604を備え、分光カメラ7で得られた分光画像の処理を施すことで、対象物Xの表面性状の検査を実施する。 In this embodiment, the spectroscopic image processing unit 12 has a camera control unit 60 and an image processing execution unit 65, as shown in FIGS. 4 and 5. Of these, the camera control unit 60 includes a light source control unit 601, a spectroscopic control unit 602, and a spectroscopic image acquisition unit 603, and controls the drive of the entire spectroscopic camera 7 or each unit. Further, the image processing execution unit 65 includes a spectrum information generation unit 604 having a magnification adjustment unit 605, and inspects the surface texture of the object X by processing the spectral image obtained by the spectroscopic camera 7. ..

カメラ制御部60が有する光源制御部601は、入力装置62に入力されたユーザーの操作指示、具体的には、対象物Xの分光情報を取得するための条件に基づいて、光源31の点灯、消灯を制御するものである。 The light source control unit 601 included in the camera control unit 60 turns on the light source 31 based on the user's operation instruction input to the input device 62, specifically, the conditions for acquiring the spectral information of the object X. It controls turning off.

分光制御部602は、記憶部14に記憶されているV−λデータに基づいて、出射させる分光波長すなわち特定波長に対応する駆動電圧の電圧値(入力値)を取得する。そして、取得した電圧値を、分光部41としてのファブリーペローエタロンフィルターの静電アクチュエーター45に印加させるために指令信号を出力する。すなわち、分光制御部602は、分光部41の作動を制御して、分光部41から出射される光の特定波長の大きさを特定する。また、分光制御部602は、記憶部14に記憶されている各種データに基づいて、波長の変更タイミングの検出、波長の変更、波長の変更に応じた駆動電圧の変更、および測定終了の判断等を行い、当該判断に基づいて指令信号を出力する。 The spectroscopic control unit 602 acquires the voltage value (input value) of the driving voltage corresponding to the spectral wavelength to be emitted, that is, the specific wavelength, based on the V-λ data stored in the storage unit 14. Then, a command signal is output in order to apply the acquired voltage value to the electrostatic actuator 45 of the Fabry-Perot Etalon filter as the spectroscopic unit 41. That is, the spectroscopic control unit 602 controls the operation of the spectroscopic unit 41 to specify the magnitude of a specific wavelength of the light emitted from the spectroscopic unit 41. Further, the spectroscopic control unit 602 detects the wavelength change timing, changes the wavelength, changes the drive voltage according to the wavelength change, determines the end of measurement, etc., based on various data stored in the storage unit 14. Is performed, and a command signal is output based on the judgment.

分光画像取得部603は、対象物Xを反射した反射光に基づいた、光量測定データ(受光量)を分光画像すなわち分光情報として、撮像素子71において取得(撮像)し、その後、取得された分光画像を記憶部14に記憶させる。なお、分光画像取得部603は、分光画像を記憶部14に記憶させる際に、分光画像とともにかかる分光画像が取得された波長等も併せて記憶部14に記憶させる。 The spectroscopic image acquisition unit 603 acquires (imaging) the light amount measurement data (light receiving amount) based on the reflected light reflected from the object X as a spectral image, that is, spectral information in the imaging element 71, and then acquires (imaging) the spectroscopic image. The image is stored in the storage unit 14. When the spectroscopic image is stored in the storage unit 14, the spectroscopic image acquisition unit 603 stores the spectroscopic image and the wavelength at which the spectroscopic image is acquired in the storage unit 14.

また、画像処理実行部65が有するスペクトル情報生成部604は、記憶部14に記憶された、対象物Xの分光画像および測定された波長等を取得し、スペクトル情報生成部604が備える倍率調整部605において分光画像の倍率を考慮した後に、各波長における分光画像を重ね合せるすなわち重畳することで分光スペクトル画像を取得し、これらの分析処理を行う。換言すれば、得られた分光スペクトル画像と、記憶部14に記憶された対象物Xのデータベースとを比較する分光処理を実施することで、対象物Xすなわち生産された、または、生産途中の物品の表面性状を検査し、生産された、または、生産途中の物品が良品であるか否かを判定する。 Further, the spectrum information generation unit 604 included in the image processing execution unit 65 acquires the spectral image of the object X and the measured wavelength stored in the storage unit 14, and the magnification adjustment unit included in the spectrum information generation unit 604. After considering the magnification of the spectroscopic image in 605, the spectroscopic spectrum image is acquired by superimposing or superimposing the spectroscopic images at each wavelength, and these analysis processes are performed. In other words, by performing spectroscopic processing that compares the obtained spectral spectrum image with the database of the object X stored in the storage unit 14, the object X, that is, an article produced or in the process of being produced. Inspect the surface properties of the product to determine whether the product produced or in the process of production is a good product.

なお、スペクトル情報生成部604による、分光画像および測定された波長の取得は、記憶部14を介することなく、分光画像取得部603から、直接、実施することもできる。 The spectral image and the measured wavelength can be acquired by the spectral information generation unit 604 directly from the spectral image acquisition unit 603 without going through the storage unit 14.

(表示制御部)
表示制御部13は、表示装置61にウィンドウ等の各種の画面や文字等を表示させる機能を有している。すなわち、表示制御部13は、表示装置61の駆動を制御する。この表示制御部13の機能は、例えば、グラフィックチップ(GPU)等により実現することができる。
(Display control unit)
The display control unit 13 has a function of displaying various screens such as windows, characters, and the like on the display device 61. That is, the display control unit 13 controls the drive of the display device 61. The function of the display control unit 13 can be realized by, for example, a graphic chip (GPU) or the like.

(記憶部)
記憶部14は、各種の情報(データやプログラム等を含む)を記憶する機能を有する。この記憶部14は、制御プログラム等を記憶する。記憶部14の機能は、ROM等やいわゆる外部記憶装置(図示せず)によって実現することができる。
(Memory)
The storage unit 14 has a function of storing various types of information (including data, programs, and the like). The storage unit 14 stores a control program and the like. The function of the storage unit 14 can be realized by a ROM or the like or a so-called external storage device (not shown).

当該データは、例えば、制御装置1の各機能を実現させるためのアプリケーション、プログラム等の他、分光部41のファブリーペローエタロンフィルターが備える静電アクチュエーター45に印加する駆動電圧に対する透過光の波長を示す相関データV−λデータ、対象物Xが有する固有の分光情報に基づいて対象物Xの種類等を特定するためのデータベース等が挙げられる。なお、ここで言うデータベースとは、表面性状の検査に供される生産ラインで生産された、または、生産途中の物品としての対象物Xについての分光情報のことを示し、生産された、または、生産途中の物品を良品と判定し得る対象物Xの分光情報を含んでいる。 The data shows, for example, the wavelength of transmitted light with respect to the drive voltage applied to the electrostatic actuator 45 included in the Fabry-Perot Etalon filter of the spectroscopic unit 41, in addition to applications, programs, etc. for realizing each function of the control device 1. Examples include a database for specifying the type of the object X based on the correlation data V-λ data and the unique spectral information of the object X. The database referred to here refers to spectral information about an object X as an article produced or in the process of being produced on a production line used for surface texture inspection, and is produced or produced. It contains the spectral information of the object X that can determine the article in production as a good product.

(受付部)
受付部15は、入力装置62からの入力を受け付ける機能を有している。この受付部15の機能は、例えば、インターフェース回路によって実現することができる。なお、例えばタッチパネルを用いる場合には、受付部15は、ユーザーの指のタッチパネルへの接触等を検知する入力検知部としての機能を有する。
(Reception department)
The reception unit 15 has a function of receiving input from the input device 62. The function of the reception unit 15 can be realized by, for example, an interface circuit. When a touch panel is used, for example, the reception unit 15 has a function as an input detection unit for detecting contact of a user's finger with the touch panel.

<表示装置>
表示装置61は、例えば、液晶ディスプレイ、有機ELディスプレイ等で構成されたモニター(図示せず)を備えており、例えば、各種の画像(ウィンドウ等の各種の画面等を含む)や文字等を表示する機能を有する。
<Display device>
The display device 61 includes, for example, a monitor (not shown) composed of a liquid crystal display, an organic EL display, or the like, and displays, for example, various images (including various screens such as windows), characters, and the like. Has the function of

この表示装置61は、検査に供された対象物Xすなわち生産された、または、生産途中の物品の表面性状の検査結果の情報を含む各種の可視化画像を表示する。 The display device 61 displays various visualization images including information on the inspection result of the surface texture of the object X that has been inspected, that is, the article that has been produced or is in the process of being produced.

表示装置61で表示する可視化画像すなわち検査に供された対象物Xの情報としては、例えば、対象物Xすなわち生産された、または、生産途中の物品が良品か否かの判定結果、不良品と判定された場合、その理由、さらには不良が生じている位置、良品か否かの判定精度(%)等が挙げられる。 As the information of the visualized image displayed on the display device 61, that is, the object X subjected to the inspection, for example, the object X, that is, the determination result of whether the produced or in-process article is a non-defective product, is regarded as a defective product. If it is determined, the reason, the position where the defect occurs, the accuracy of determining whether the product is non-defective (%), and the like can be mentioned.

<入力装置>
入力装置62は、例えば、マウスや、キーボード等で構成されている。したがって、ユーザーは、入力装置62を操作することで、制御装置1に対して各種の処理等の指示、例えば、対象物Xの分光情報を取得するための指示を行うことができる。
<Input device>
The input device 62 is composed of, for example, a mouse, a keyboard, or the like. Therefore, by operating the input device 62, the user can give an instruction to the control device 1 for various processes and the like, for example, an instruction for acquiring the spectral information of the object X.

具体的には、ユーザーは、表示装置61に表示される各種画面(ウィンドウ等)に対して入力装置62のマウスでクリックする操作や、入力装置62のキーボードで文字や数字等を入力する操作により、制御装置1に対する指示を行うことができる。 Specifically, the user can click on various screens (windows, etc.) displayed on the display device 61 with the mouse of the input device 62, or input characters, numbers, etc. with the keyboard of the input device 62. , It is possible to give an instruction to the control device 1.

なお、本実施形態では、表示装置61および入力装置62の代わりに、表示装置61および入力装置62を兼ね備えた表示入力装置を設けてもよい。表示入力装置としては、例えば静電式タッチパネルや感圧式タッチパネル等のタッチパネルを用いることができる。また、入力装置62は、音声等の音を認識する構成であってもよい。 In the present embodiment, instead of the display device 61 and the input device 62, a display input device having both the display device 61 and the input device 62 may be provided. As the display input device, for example, a touch panel such as an electrostatic touch panel or a pressure sensitive touch panel can be used. Further, the input device 62 may be configured to recognize sounds such as voice.

<パーソナルコンピューター>
パーソナルコンピューター3は、入力装置36に入力されたユーザーの操作指示に基づいて、制御装置1が備える分光画像処理部12およびロボット制御部11が備えるプログラム等のソフトウェアの編集等を実施するとともに、ロボット2および分光カメラ7の駆動を制御することで、後述する調整処理を実施し、これらの実施の状況等が表示装置35において表示される。このパーソナルコンピューター3は、例えば、プロセッサーとしてのCPUと、RAMと、プログラムが記憶されたROMとを有する。また、パーソナルコンピューター3の機能は、例えば、CPUにより各種プログラムを実行することにより実現することができる。
<Personal computer>
Based on the user's operation instructions input to the input device 36, the personal computer 3 edits software such as programs included in the spectral image processing unit 12 and the robot control unit 11 included in the control device 1 and edits the robot. By controlling the drive of 2 and the spectroscopic camera 7, adjustment processing described later is performed, and the status of these executions is displayed on the display device 35. The personal computer 3 has, for example, a CPU as a processor, a RAM, and a ROM in which a program is stored. Further, the function of the personal computer 3 can be realized, for example, by executing various programs by the CPU.

このパーソナルコンピューター3は、本実施形態では、図5に示すように、ロボット制御プログラム編集部301と、画像処理編集部302と、収差補正キャリブレーション実行部303とを備えている。 In the present embodiment, the personal computer 3 includes a robot control program editing unit 301, an image processing editing unit 302, and an aberration correction calibration execution unit 303, as shown in FIG.

ロボット制御プログラム編集部301は、ロボット制御部11が備えるプログラム実行部101が実行するプログラムの編集を行い、これにより、ロボット2が作動する条件等が変更される。 The robot control program editing unit 301 edits the program executed by the program execution unit 101 included in the robot control unit 11, thereby changing the conditions for operating the robot 2 and the like.

画像処理編集部302は、分光画像処理部12が備える画像処理実行部65が実行するプログラムの編集を行い、これにより、分光カメラ7が作動する条件、分光カメラ7により取得された分光画像を処理する条件等が変更される。 The image processing editing unit 302 edits the program executed by the image processing execution unit 65 included in the spectral image processing unit 12, thereby processing the conditions under which the spectral camera 7 operates and the spectral image acquired by the spectral camera 7. The conditions to be used are changed.

収差補正キャリブレーション実行部303は、ロボット2および分光カメラ7の駆動を制御することで、後述する調整処理を実施する。 The aberration correction calibration execution unit 303 performs the adjustment process described later by controlling the drive of the robot 2 and the spectroscopic camera 7.

なお、このパーソナルコンピューター3は、制御装置1すなわちロボットシステム100に対して、装脱着が可能なように構成されており、分光画像処理部12およびロボット制御部11が備えるプログラム等のソフトウェアを編集する際、ならびに、後述する調整処理を実施する際には、図5に示すように、制御装置1に対して装着される。これに対して、それ以外のとき、例えば、後述する検査処理を実施する際には、パーソナルコンピューター3は、図4に示すように、制御装置1から脱着されていてもよい。 The personal computer 3 is configured so that it can be attached to and detached from the control device 1, that is, the robot system 100, and edits software such as programs included in the spectral image processing unit 12 and the robot control unit 11. At this time, and when performing the adjustment process described later, it is attached to the control device 1 as shown in FIG. On the other hand, at other times, for example, when performing the inspection process described later, the personal computer 3 may be detached from the control device 1 as shown in FIG.

また、本実施形態では、ロボットアーム20の回動軸の数は、3つであるが、本発明では、これに限定されず、ロボットアーム20の回動軸の数は、例えば、1つ、2つ、または、4つ以上でもよい。すなわち、本実施形態では、アーム(リンク)の数は、3つであるが、本発明では、これに限定されず、アームの数は、例えば、2つ、または、4つ以上でもよい。 Further, in the present embodiment, the number of rotation axes of the robot arm 20 is three, but the present invention is not limited to this, and the number of rotation axes of the robot arm 20 is, for example, one. It may be two or four or more. That is, in the present embodiment, the number of arms (links) is three, but the present invention is not limited to this, and the number of arms may be, for example, two or four or more.

さらに、本実施形態では、ロボットアーム20の数は、1つであるが、本発明では、これに限定されず、ロボットアーム20の数は、例えば、2つ以上でもよい。すなわち、ロボット2は、例えば、双腕ロボット等の複数腕ロボットであってもよい。 Further, in the present embodiment, the number of robot arms 20 is one, but the present invention is not limited to this, and the number of robot arms 20 may be, for example, two or more. That is, the robot 2 may be a multi-arm robot such as a double-arm robot, for example.

また、本発明では、ロボット2(ロボット本体)は、他の種類(形式)のロボットであってもよい。具体例としては、例えば、垂直多関節ロボット、脚部を有する脚式歩行(走行)ロボット等が挙げられる。「垂直多関節ロボット」とは、軸数(アーム数)が3つ以上であり、かつ、3つの軸のうちの2つの軸が互いに交差(直交)しているロボットのことを言う。 Further, in the present invention, the robot 2 (robot body) may be another type (type) of robot. Specific examples include, for example, a vertical articulated robot, a leg-type walking (running) robot having legs, and the like. The "vertical articulated robot" refers to a robot having three or more axes (number of arms) and two of the three axes intersecting (orthogonally) with each other.

また、本実施形態では、制御装置1がロボット制御部11と分光画像処理部12とを備える場合については説明したが、かかる構成に限定されず、ロボット制御部11は、ロボット制御装置として独立して設けられていてもよいし、分光画像処理部12は、分光画像処理装置として独立して設けられていてもよい。 Further, in the present embodiment, the case where the control device 1 includes the robot control unit 11 and the spectroscopic image processing unit 12 has been described, but the present invention is not limited to such a configuration, and the robot control unit 11 is independent as a robot control device. The spectroscopic image processing unit 12 may be provided independently as a spectroscopic image processing device.

以上のような分光カメラ7とロボット2とを備えるロボットシステム100は、記憶部14が備えるプログラムをロボット制御部11および分光画像処理部12において起動させることで、生産ラインで生産された、または、生産途中の物品における表面性状の検査、すなわち、対象物Xを検査する本発明の分光検査方法を実施することができる。以下、このロボットシステム100を用いた物品の表面性状を検査する検査方法について、説明する。 The robot system 100 including the spectroscopic camera 7 and the robot 2 as described above is produced or produced on the production line by activating the program included in the storage unit 14 in the robot control unit 11 and the spectroscopic image processing unit 12. It is possible to carry out the inspection of the surface texture of the article in the process of production, that is, the spectroscopic inspection method of the present invention for inspecting the object X. Hereinafter, an inspection method for inspecting the surface properties of an article using this robot system 100 will be described.

[物品の表面性状を検査する検査方法]
以下、前述したロボットシステム100を用いた、対象物Xとしての物品の表面性状を検査する検査方法を、すなわち、物品の色や物品に付着している異物の有無を検査する検査方法を、図7〜図19を用いて、以下に詳述する。
[Inspection method for inspecting the surface properties of articles]
Hereinafter, an inspection method for inspecting the surface properties of an article as an object X, that is, an inspection method for inspecting the color of the article and the presence or absence of foreign matter adhering to the article, using the robot system 100 described above is shown in FIG. 7 to 19 will be used in detail below.

図7は、フォーカスが合う位置と、波長可変干渉フィルターを透過する光の波長との関係を示す模式図、図8は、フォーカスが合う位置と、波長可変干渉フィルターを透過する光の波長との関係を示すグラフ、図9は、波長可変干渉フィルターを透過する光の波長と、その波長において得られる分光画像の倍率との関係を示すグラフ、図10は、物品の表面性状を検査する検査方法で実施される、調整処理および検査処理の概略を説明するための模式図、図11は、物品の表面性状を検査する検査方法で実施される、調整処理を説明するための模式図、図12は、物品の表面性状を検査する検査方法で実施される、調整処理を説明するための模式図、図13は、図5に示すロボットシステムにより物品の表面性状を検査する検査方法が有する調整処理を実施する際のフローチャート、図14は、各波長において、フォーカスが合う位置を決定する方法を説明するための模式図、図15は、波長と、各波長において決定されたフォーカスが合う位置の位置P1からのズレ量ΔZ、および、各波長において取得される分光画像の倍率との関係の一例を示す表、図16は、図4に示すロボットシステムにより物品の表面性状を検査する検査方法が有する検査処理を実施する際に入力する条件の一例を示す模式図、図17は、図4に示すロボットシステムにより物品の表面性状を検査する検査方法が有する検査処理を実施する際のタイミングチャート、図18は、各波長について倍率変換がなされた分光画像が重ね合わされた状態を示す模式図、図19は、各波長について倍率変換がなされた分光画像を重ね合せることで得られた分光スペクトル画像を示す模式図である。 FIG. 7 is a schematic diagram showing the relationship between the focused position and the wavelength of the light passing through the wavelength variable interference filter, and FIG. 8 shows the focusing position and the wavelength of the light passing through the wavelength variable interference filter. A graph showing the relationship, FIG. 9 is a graph showing the relationship between the wavelength of light passing through the wavelength variable interference filter and the magnification of the spectral image obtained at that wavelength, and FIG. 10 is an inspection method for inspecting the surface texture of the article. FIG. 11 is a schematic diagram for explaining the outline of the adjustment process and the inspection process carried out in FIG. 11, and FIG. 11 is a schematic diagram for explaining the adjustment process carried out by the inspection method for inspecting the surface texture of the article. Is a schematic diagram for explaining the adjustment process carried out by the inspection method for inspecting the surface texture of the article, and FIG. 13 is an adjustment process included in the inspection method for inspecting the surface property of the article by the robot system shown in FIG. FIG. 14 is a schematic diagram for explaining a method of determining a focus position at each wavelength, and FIG. 15 is a position of a wavelength and a focus position determined at each wavelength. A table showing an example of the relationship between the amount of deviation ΔZ from P1 and the magnification of the spectral image acquired at each wavelength, FIG. 16 shows an inspection method for inspecting the surface texture of an article by the robot system shown in FIG. A schematic diagram showing an example of conditions to be input when performing the inspection process, FIG. 17 is a timing chart and a diagram when performing the inspection process included in the inspection method for inspecting the surface texture of an article by the robot system shown in FIG. FIG. 18 is a schematic diagram showing a state in which spectroscopic images subjected to magnification conversion for each wavelength are superimposed, and FIG. 19 shows a spectral spectrum image obtained by superimposing spectroscopic images subjected to magnification conversion for each wavelength. It is a schematic diagram.

このロボットシステム100を用いた検査方法は、分光カメラ7の光軸方向における、作業台8に設置された対象物Xと、分光カメラ7との間の距離を変化させ、第1波長において、分光カメラ7のフォーカスが対象物Xに合う第1位置で、第1波長における第1分光画像を取得し、第1波長より長い波長である第2波長において、分光カメラ7のフォーカスが対象物Xに合う第2位置で、前記第2波長における第2分光画像を取得する撮像工程と、第1分光画像に含まれる対象物Xの大きさに対し、第2分光画像に含まれる対象物Xの大きさが同一となるように第2分光画像を拡大した後に、拡大された前記第2分光画像を重ね合わせることで、分光スペクトル画像を取得する重畳工程とを有している。 In the inspection method using the robot system 100, the distance between the object X installed on the work table 8 and the spectroscopic camera 7 in the optical axis direction of the spectroscopic camera 7 is changed, and spectroscopy is performed at the first wavelength. The first spectral image at the first wavelength is acquired at the first position where the focus of the camera 7 is on the object X, and the focus of the spectroscopic camera 7 is on the object X at the second wavelength which is longer than the first wavelength. The size of the object X included in the second spectroscopic image is larger than the size of the object X included in the first spectroscopic image and the imaging step of acquiring the second spectroscopic image at the second wavelength at the matching second position. It has a superimposition step of acquiring a spectroscopic spectrum image by superimposing the magnified second spectroscopic image after enlarging the second spectroscopic image so that the two are the same.

ここで、波長可変干渉フィルターである分光部41で、短波長である600nmの光を透過させた場合と、長波長である1000nmの光を透過させた場合とでは、図7に示すように、分光カメラ7が備える投射レンズ812における光の屈折率がそれぞれの波長において異なってくる。なお、説明の便宜上、図7では、分光カメラ7が備える投射レンズ812以外のレンズについては、その記載を省略している。 Here, as shown in FIG. 7, there are cases where the spectroscopic unit 41, which is a wavelength variable interference filter, transmits light having a short wavelength of 600 nm and a case where light having a long wavelength of 1000 nm is transmitted. The refractive index of light in the projection lens 812 included in the spectroscopic camera 7 differs at each wavelength. For convenience of explanation, the description of lenses other than the projection lens 812 included in the spectroscopic camera 7 is omitted in FIG. 7.

そのため、波長600nmの光を透過させて分光画像を撮像素子71で得るときと、波長1000nmの光を透過させて分光画像を撮像素子71で得るときとでは、投射レンズ812と撮像素子71との間の焦点距離が一定であるとすると、検査すべき物品すなわち対象物Xにフォーカスが合う位置は、図7、図8に示す通り、波長600nmの光を透過させたときが近位となり、波長1000nmの光を透過させたときが遠位となる差が生じる。 Therefore, the projection lens 812 and the image pickup element 71 are used when the light with a wavelength of 600 nm is transmitted and the spectral image is obtained by the image pickup element 71 and when the light with a wavelength of 1000 nm is transmitted and the spectral image is obtained by the image pickup element 71. Assuming that the focal length between them is constant, the position where the object to be inspected, that is, the object X, is in focus is proximal when light having a wavelength of 600 nm is transmitted, as shown in FIGS. 7 and 8. There is a distal difference when light of 1000 nm is transmitted.

このようにフォーカスが合う位置が波長600nmの光を透過させた場合と、波長1000nmの光を透過させた場合とでは異なることから、図9に示す通り、波長600nmの光を透過させたときに得られる分光画像の倍率すなわち大きさは、波長1000nmの光を透過させたときに得られる分光画像の倍率すなわち大きさと比較して、大きくなる倍率色収差が発生する。 Since the focus position differs between the case where light having a wavelength of 600 nm is transmitted and the case where light having a wavelength of 1000 nm is transmitted, as shown in FIG. 9, when light having a wavelength of 600 nm is transmitted. The magnification, that is, the magnitude of the obtained spectroscopic image is larger than the magnification, that is, the size of the spectroscopic image obtained when light having a wavelength of 1000 nm is transmitted.

したがって、異なる波長において撮像された分光画像を、そのまま重ねると、重ねた分光画像同士の間で位置ずれが生じる倍率色収差を含んだ分光画像が生成されることになる。 Therefore, when the spectroscopic images captured at different wavelengths are superimposed as they are, a spectroscopic image including a chromatic aberration of magnification that causes a positional deviation between the superimposed spectral images is generated.

これに対して、本発明では、作業台8に設置された対象物Xと、分光カメラ7とを、分光カメラ7の光軸方向に、相対的に移動させつつ、分光カメラ7により、対象物Xのフォーカスが合う位置で、異なる波長における分光画像を取得する撮像工程により、フォーカスが合致した分光画像を、異なる波長毎に取得する。その後、分光画像中の対象物Xの大きさが同一となるように、最小の波長において取得された分光画像に対して、各分光画像を拡大した後に、拡大された各分光画像を重ね合わせることで、分光スペクトル画像を取得する重畳工程により、各分光画像倍率を一致させて重ね合せることから、重ねた分光画像同士の間で位置ずれを生じることなく、倍率色収差を含まない分光画像を得ることができる。そのため、生産された、または、生産途中の物品について、その表面性状の検査を、優れた精度で実施することができる。なお、分光画像中の対象物Xの大きさが同一、とは、分光画像において対象物Xが占める領域と、比較対象となる他の分光画像において対象物Xが占める領域との差分が、所定の範囲内にあることを言う。大きさを比較する要素は領域に限らず、輪郭、画素数、対象物Xの基準となる形状データに対するマッチング度、であってもよい。 On the other hand, in the present invention, the object X installed on the workbench 8 and the spectroscopic camera 7 are relatively moved in the optical axis direction of the spectroscopic camera 7 while being moved by the spectroscopic camera 7 by the spectroscopic camera 7. By the imaging step of acquiring the spectroscopic images at different wavelengths at the positions where the X is in focus, the spectroscopic images in which the focus is matched are acquired for each different wavelength. Then, after enlarging each spectroscopic image with respect to the spectroscopic image acquired at the minimum wavelength so that the size of the object X in the spectroscopic image becomes the same, each enlarged spectroscopic image is superimposed. In the superimposition step of acquiring the spectroscopic spectrum image, each spectroscopic image magnification is matched and superposed, so that a spectroscopic image free of chromatic aberration of magnification can be obtained without causing a positional shift between the superimposed spectroscopic images. Can be done. Therefore, it is possible to inspect the surface properties of the produced or in-process articles with excellent accuracy. The size of the object X in the spectroscopic image is the same, which means that the difference between the region occupied by the object X in the spectroscopic image and the region occupied by the object X in another spectroscopic image to be compared is predetermined. Say that it is within the range of. The elements for comparing the sizes are not limited to the area, but may be the contour, the number of pixels, and the degree of matching with the shape data that is the reference of the object X.

ところで、このような本発明の分光検査方法、すなわち、物品の表面性状を検査する検査方法では、予め、L字やT字のような文字等のマークに対するフォーカスの調整を行うことで、分光部41すなわち分光カメラ7で透過させる光の波長と、投射レンズ812すなわち分光カメラ7のフォーカスが合う位置および撮像素子71で得られる分光画像の倍率との関係を決定する調整処理を実施し、その後、所定の領域であるSpectrum Match01またはSpectrum Match02に配置された物品の表面性状を検査する検査処理を実施する(図10参照)。 By the way, in such a spectroscopic inspection method of the present invention, that is, an inspection method for inspecting the surface texture of an article, the spectroscopic unit is formed by adjusting the focus on marks such as letters such as L-shape and T-shape in advance. An adjustment process is performed to determine the relationship between the wavelength of light transmitted by 41, that is, the spectroscopic camera 7, the focused position of the projection lens 812, that is, the spectroscopic camera 7, and the magnification of the spectroscopic image obtained by the image pickup element 71. An inspection process for inspecting the surface texture of the article placed in the predetermined area Spectrum Match 01 or Spectrum Match 02 is performed (see FIG. 10).

したがって、以下では、この検査方法における、調整処理および検査処理について、順次、説明する。 Therefore, in the following, the adjustment process and the inspection process in this inspection method will be sequentially described.

(調整処理)
まず、物品の表面性状を検査する検査方法における調整処理について説明する。なお、この調整処理では、前述の通り、ロボットシステム100が備える制御装置1にパーソナルコンピューター3が装着された状態で実施される。
(Adjustment process)
First, the adjustment process in the inspection method for inspecting the surface texture of an article will be described. As described above, this adjustment process is performed with the personal computer 3 attached to the control device 1 included in the robot system 100.

<1A> まず、図13に示すように、ユーザーは、パーソナルコンピューター3が備える入力装置36の操作により、分光部41すなわち分光カメラ7で透過させる光の波長と、投射レンズ812すなわち分光カメラ7のフォーカスが合う位置および撮像素子71で得られる分光画像の倍率との関係を決定する調整処理を実施する収差補正キャリブレーションのプログラムを起動させた後、このプログラムの指示に従って、必要に応じて条件等の選択を行う(S1A)。 <1A> First, as shown in FIG. 13, the user operates the input device 36 included in the personal computer 3 to obtain the wavelength of light transmitted by the spectroscopic unit 41, that is, the spectroscopic camera 7, and the projection lens 812, that is, the spectroscopic camera 7. After starting the aberration correction calibration program that executes the adjustment process to determine the relationship between the in-focus position and the magnification of the spectroscopic image obtained by the image pickup element 71, conditions and the like are required according to the instructions of this program. Is selected (S1A).

なお、プログラムの指示に従って入力する条件としては、例えば、ロボット2に複数の分光カメラ7が設置されている場合には、測定する分光カメラ7の指定、その分光カメラ7の設定位置、ロボット2による分光カメラ7の移動後に分光カメラ7による撮像を開始するまでの時間、分光部41で透過させる光の最小の波長、最大の波長および波長のピッチ、分光カメラ7を設置する位置P1、および、位置P1から移動させる最大距離等が挙げられる。 The conditions for inputting according to the instructions of the program include, for example, when a plurality of spectroscopic cameras 7 are installed in the robot 2, the designation of the spectroscopic camera 7 to be measured, the set position of the spectroscopic camera 7, and the robot 2. The time from the movement of the spectroscopic camera 7 to the start of imaging by the spectroscopic camera 7, the minimum wavelength, the maximum wavelength and wavelength pitch of the light transmitted by the spectroscopic unit 41, the position P1 where the spectroscopic camera 7 is installed, and the position. The maximum distance to be moved from P1 and the like can be mentioned.

<2A> 次いで、分光部41で透過させる光の最小の波長、すなわち最も短い波長である最短波長と、投射レンズ812すなわち分光カメラ7のフォーカスが合う位置および撮像素子71で得られる分光画像の倍率との関係を決定する。すなわち、分光部41で最小の波長の光を透過させたときにおける、分光カメラ7のフォーカスが合う位置および撮像素子71で得られる分光画像の倍率を特定する。 <2A> Next, the minimum wavelength of the light transmitted by the spectroscopic unit 41, that is, the shortest wavelength, which is the shortest wavelength, is in focus with the projection lens 812, that is, the spectroscopic camera 7, and the magnification of the spectroscopic image obtained by the image pickup element 71. Determine the relationship with. That is, the position where the spectroscopic camera 7 is in focus and the magnification of the spectroscopic image obtained by the image sensor 71 when the light of the minimum wavelength is transmitted by the spectroscopic unit 41 are specified.

<2A−1> まず、入力装置36における、ユーザーによる入力指示に従って、パーソナルコンピューター3が備える収差補正キャリブレーション実行部303は、ロボット制御部11が備えるカメラポイント補正部102の作動により、ロボット2のシャフト241をz軸方向に移動させることで、図14に示すように、分光カメラ7を初期設定位置である位置P1に移動させる(S2A)。 <2A-1> First, according to an input instruction by the user in the input device 36, the aberration correction calibration execution unit 303 included in the personal computer 3 is operated by the camera point correction unit 102 included in the robot control unit 11 to cause the robot 2. By moving the shaft 241 in the z-axis direction, as shown in FIG. 14, the spectroscopic camera 7 is moved to the position P1 which is the initial setting position (S2A).

<2A−2> 次いで、収差補正キャリブレーション実行部303は、カメラ制御部60が備える分光制御部602の作動により、分光部41で透過される光の波長を、最小の波長、すなわち、図14、図15では、600nmに設定する(S3A)。 <2A-2> Next, the aberration correction calibration execution unit 303 sets the wavelength of the light transmitted by the spectroscopic unit 41 to the minimum wavelength, that is, FIG. 14 by the operation of the spectroscopic control unit 602 included in the camera control unit 60. , In FIG. 15, it is set to 600 nm (S3A).

なお、分光画像処理部12による、分光部41で透過される光の波長の設定は、記憶部14に記憶されているV−λデータに基づいて、透過される光の波長、すなわち、出射させる分光波長に対応する駆動電圧の電圧値(入力値)を取得し、その後、取得した電圧値を、分光部41としてのファブリーペローエタロンフィルターの静電アクチュエーター45に印加することで実施される。 The spectroscopic image processing unit 12 sets the wavelength of the light transmitted by the spectroscopic unit 41, that is, emits the wavelength of the transmitted light based on the V-λ data stored in the storage unit 14. This is carried out by acquiring the voltage value (input value) of the drive voltage corresponding to the spectral wavelength, and then applying the acquired voltage value to the electrostatic actuator 45 of the Fabry Perot Etalon filter as the spectroscopic unit 41.

<2A−3> 次いで、収差補正キャリブレーション実行部303は、カメラ制御部60が備える分光画像取得部603の作動により、撮像素子71により分光画像を取得することと、ロボット制御部11が備えるカメラポイント補正部102の作動により、分光カメラ7をz軸方向に移動させることとを、繰り返して実施することで、分光部41で透過される光の波長が、最小の波長、すなわち、600nmであるときに、フォーカスが合う位置、換言すれば、フォーカス値最小のポイントを特定する(S4A)。フォーカスの合う位置は、フォーカスの合う度合を表すフォーカス値を最小とするポイントとして決定する。たとえば、輝度勾配が一定以上の領域のピクセル数を指標として、それを最小とするポイントとする方法がある。物体の輪郭がぼやけている幅の平均ピクセル数を指標として、それを最小とするポイントでもよい。 <2A-3> Next, the aberration correction calibration execution unit 303 acquires a spectroscopic image by the image pickup element 71 by operating the spectroscopic image acquisition unit 603 included in the camera control unit 60, and the camera included in the robot control unit 11. By repeatedly moving the spectroscopic camera 7 in the z-axis direction by operating the point correction unit 102, the wavelength of the light transmitted by the spectroscopic unit 41 is the minimum wavelength, that is, 600 nm. Occasionally, the focus position, in other words, the point with the smallest focus value, is specified (S4A). The focus position is determined as a point that minimizes the focus value indicating the degree of focus. For example, there is a method in which the number of pixels in a region where the brightness gradient is above a certain level is used as an index and the point is set to the minimum. The average number of pixels in the width where the outline of the object is blurred may be used as an index, and the point may be the minimum.

このフォーカス値最小のポイントの特定は、図14に示すように、例えば、分光カメラ7が最初に設置されている位置P1から+z軸方向すなわち上方向に小さな間隔で移動させた後に、分光画像取得部603の作動による撮像素子71での分光画像の取得と、スペクトル情報生成部604の作動による取得された分光画像の画像処理とを実施するFocusTestシーケンス実行を繰り返して実施することで行うことができる。 As shown in FIG. 14, the point having the minimum focus value is specified, for example, after moving the spectroscopic camera 7 in the + z-axis direction, that is, in the upward direction at small intervals from the position P1 where the spectroscopic camera 7 is first installed, the spectroscopic image acquisition It can be performed by repeatedly executing the Focus Test sequence that acquires the spectroscopic image on the imaging device 71 by the operation of the unit 603 and the image processing of the acquired spectroscopic image by the operation of the spectral information generation unit 604. ..

より具体的には、取得された分光画像の画像処理は、図11に示す、Geom01のモデルでは、図中のL字の画像を検出した後に、このL字の画像について解析を行い、各位置において取得された分光画像において、L字のフレームすなわち境界部が占有している画素の数が最小となっている位置を、フォーカスが合う位置、すなわち、フォーカス値最小のポイントとして特定する。 More specifically, in the image processing of the acquired spectral image, in the Geom01 model shown in FIG. 11, after detecting the L-shaped image in the figure, the L-shaped image is analyzed and each position is analyzed. In the spectral image acquired in, the position where the number of pixels occupied by the L-shaped frame, that is, the boundary portion is the minimum is specified as the position where the focus is achieved, that is, the point where the focus value is the minimum.

以上のように、最小の波長において、作業台8に設置された対象物XすなわちマークとしてのL字を含む分光画像を、分光カメラ7の光軸方向にL字と分光カメラ7との間の距離を変化させた状態で、分光カメラ7により連続的に取得し、分光画像においてL字の境界部が、占有している画素の数が最小となっている分光画像が取得された位置を、フォーカスが合う合焦位置として特定する。 As described above, at the minimum wavelength, the spectroscopic image including the object X installed on the work table 8, that is, the L-shape as a mark is placed between the L-shape and the spectroscopic camera 7 in the optical axis direction of the spectroscopic camera 7. The position where the spectroscopic image was continuously acquired by the spectroscopic camera 7 with the distance changed and the number of pixels occupied by the L-shaped boundary in the spectroscopic image was the minimum was acquired. Specify as the in-focus position in focus.

なお、フォーカス値最小のポイントの特定の際には、上記の通り、位置P1を最下点として、そこからロボット2が有するシャフト241すなわち分光カメラ7を上方に移動させる構成とするのが好ましい。そのため、位置P1は、最小の波長のときに焦点の合う位置、またはそれよりも少し下側の位置に設定しておくのが好ましい。すなわち、フォーカスが合う位置すなわち合焦位置よりも近い位置に、対象物XとしてのL字に対して分光カメラ7を配置し、その後、分光カメラ7を、光軸方向に沿って、L字から遠ざかるように移動させること、すなわち分光カメラ7とL字との間の距離が長くなるように変化させることが好ましい。これにより、位置P1よりも対象物X側にシャフト241および分光カメラ7が近づく必要がなく、分光カメラ7と対象物Xとが衝突する可能性がなくなるため、安全性の向上が図られる。 When specifying the point with the minimum focus value, as described above, it is preferable that the position P1 is set as the lowest point and the shaft 241 of the robot 2, that is, the spectroscopic camera 7 is moved upward from there. Therefore, it is preferable to set the position P1 to a position where the focus is at the minimum wavelength or a position slightly lower than that. That is, the spectroscopic camera 7 is arranged with respect to the L-shape as the object X at a position in focus, that is, a position closer to the in-focus position, and then the spectroscopic camera 7 is moved from the L-shape along the optical axis direction. It is preferable to move it away, that is, to change it so that the distance between the spectroscopic camera 7 and the L-shape becomes long. As a result, it is not necessary for the shaft 241 and the spectroscopic camera 7 to come closer to the object X side than the position P1, and there is no possibility that the spectroscopic camera 7 and the spectroscopic camera 7 collide with each other, so that safety is improved.

また、フォーカス値最小のポイントの特定は、L字の画像について解析を行う場合に限らず、例えば、図12に示すような、円形をなす外枠の境界部が占有している画素の数を求めることによって実施することも可能である。 Further, the point with the minimum focus value is not limited to the case of analyzing an L-shaped image, and for example, the number of pixels occupied by the boundary portion of the circular outer frame as shown in FIG. 12 is determined. It can also be implemented by request.

<2A−4> 次いで、収差補正キャリブレーション実行部303は、分光部41で透過される光の波長が、最小の波長、すなわち、600nmであるときのフォーカス値最小のポイントの位置P1からのズレ量ΔZ、および、このズレ量ΔZときに取得された分光画像の倍率を1として、記憶部14に記憶させる(S5A)。 <2A-4> Next, the aberration correction calibration execution unit 303 deviates from the position P1 of the point where the focus value is the minimum when the wavelength of the light transmitted by the spectroscopic unit 41 is the minimum wavelength, that is, 600 nm. The magnification of the spectroscopic image acquired when the amount ΔZ and the deviation amount ΔZ is set to 1, and the image is stored in the storage unit 14 (S5A).

<3A> 次に、最小の波長の光における、フォーカス値最小のポイントの特定の後に、最小の波長の光よりも長波長の光におけるフォーカス値最小のポイントの特定が必要か否かを、前記工程<1A>において、ユーザーによって選択された条件、すなわち、分光部41で透過させる光の最小の波長、最大の波長および波長の選択されたピッチに基づいて判定する。すなわち、最小の波長の光から、最大の波長の光となる波長域において、この波長域を一定の波長の幅で分割したピッチで、続けて、その波長の光におけるフォーカス値最小のポイントの特定を、取得する必要があると判定し、最大の波長、すなわち最も長い波長である最長波長を超えた光となった時点で、その波長の光におけるフォーカス値最小のポイントの特定を終了する(S6A)。 <3A> Next, after specifying the point with the minimum focus value in the light having the minimum wavelength, it is necessary to specify the point having the minimum focus value in the light having a longer wavelength than the light having the minimum wavelength. In step <1A>, the determination is made based on the conditions selected by the user, that is, the minimum wavelength, the maximum wavelength, and the selected pitch of the wavelengths of light transmitted by the spectroscopic unit 41. That is, in the wavelength range from the light of the minimum wavelength to the light of the maximum wavelength, the point where the focus value is the minimum in the light of that wavelength is continuously specified at a pitch obtained by dividing this wavelength range by a width of a certain wavelength. Is determined to be necessary to be acquired, and when the light exceeds the maximum wavelength, that is, the longest wavelength, the longest wavelength, the identification of the point with the minimum focus value in the light having that wavelength is completed (S6A). ).

この判定(S6A)において、フォーカス値最小のポイントの特定がなされた波長の光よりも長波長の光で、フォーカス値最小のポイントを特定する必要がある場合には、ユーザーにより設定されたピッチ分、すなわち、図14、図15では100nmを加算した波長の光を分光部41で透過し得るように、収差補正キャリブレーション実行部303は、分光制御部602を作動させ(S3’A)、その後、前記工程<2A>〜本工程<3A>を繰り返して実施する。これにより、フォーカス値最小のポイントの特定がなされた波長の光よりも長波長の光における、フォーカス値最小のポイントすなわちフォーカスが合う位置が特定される。このような最小の波長以上の光におけるフォーカス値最小のポイントの特定を、最小の波長から一定のピッチで最大の波長となるまで、繰り返して実施する。すなわち、図14、図15では、600nmから、100nmのピッチで、1000nmとなるまで、繰り返して実施する。 In this determination (S6A), when it is necessary to specify the point having the minimum focus value with light having a wavelength longer than that of the light having the wavelength at which the point having the minimum focus value is specified, the pitch amount set by the user is used. That is, in FIGS. 14 and 15, the aberration correction calibration execution unit 303 operates the spectroscopic control unit 602 (S3'A) so that the spectroscopic unit 41 can transmit light having a wavelength obtained by adding 100 nm. , The above steps <2A> to this step <3A> are repeated. As a result, the point with the minimum focus value, that is, the in-focus position in the light having a wavelength longer than that of the light having the wavelength at which the minimum focus value is specified is specified. The point with the minimum focus value in the light having the minimum wavelength or higher is repeatedly specified from the minimum wavelength to the maximum wavelength at a constant pitch. That is, in FIGS. 14 and 15, the process is repeated from 600 nm to 1000 nm at a pitch of 100 nm.

上記の通り、前記工程<2A>〜本工程<3A>を繰り返して実施することで、最小の波長の光から、一定のピッチで、最大の波長の光を分光部41で透過させたときのフォーカス値最小のポイントの位置P1からのズレ量ΔZ、および、このときの分光画像の倍率を得ることができる。 As described above, by repeating the steps <2A> to the main step <3A>, the light of the maximum wavelength is transmitted by the spectroscopic unit 41 from the light of the minimum wavelength at a constant pitch. The amount of deviation ΔZ from the position P1 of the point having the minimum focus value and the magnification of the spectroscopic image at this time can be obtained.

すなわち、最小の波長600nmから、100nmのピッチで、最大の波長1000nmまで分光部41を透過させる光を変化させたときの各波長と、フォーカス値最小のポイントの位置P1からのズレ量ΔZ、および、このときの分光画像の倍率との関係は、図15に示す通りとなる。 That is, each wavelength when the light transmitted through the spectroscopic unit 41 is changed from the minimum wavelength of 600 nm to the maximum wavelength of 1000 nm at a pitch of 100 nm, the amount of deviation ΔZ from the position P1 of the point with the minimum focus value, and The relationship with the magnification of the spectroscopic image at this time is as shown in FIG.

一方、最大の波長を超えた光となり、その波長の光におけるフォーカス値最小のポイントを特定する必要がない場合には、前記工程<2A>〜本工程<3A>の繰り返しを終了し、次工程<4A>に移行する。 On the other hand, when the light exceeds the maximum wavelength and it is not necessary to specify the point where the focus value is the minimum in the light of that wavelength, the repetition of the above steps <2A> to this step <3A> is completed, and the next step is performed. Move to <4A>.

<4A> 次に、収差補正キャリブレーション実行部303は、分光部41で透過される光の波長が、最小の波長から一定のピッチで最大の波長となるまで、繰り返して特定された、フォーカス値最小のポイントの位置P1からのズレ量ΔZ、および、このときに得られる分光画像の倍率を、分光部41で透過される光の波長と、フォーカス値最小のポイントの位置P1からのズレ量ΔZ、および、このときに得られる分光画像の倍率との関係を示すキャリブレーションデータとして、改めて、記憶部14に記憶させる(S7A)。 <4A> Next, the aberration correction calibration execution unit 303 repeatedly identifies the focus value from the minimum wavelength to the maximum wavelength of the light transmitted by the spectroscopic unit 41 at a constant pitch. The amount of deviation ΔZ from the position P1 of the minimum point and the magnification of the spectroscopic image obtained at this time are the wavelength of the light transmitted by the spectroscopic unit 41 and the amount of deviation ΔZ from the position P1 of the point with the minimum focus value. , And, as calibration data showing the relationship with the magnification of the spectroscopic image obtained at this time, it is stored in the storage unit 14 again (S7A).

すなわち、図14、図15のように、最小の波長600nmから、100nmのピッチで、最大の波長1000nmまで分光部41を透過させる光を変化させたときには、図16に示す、各波長と、フォーカス値最小のポイントの位置P1からのズレ量ΔZ、および、このときの分光画像の倍率との関係をキャリブレーションデータとして、記憶部14に記憶させる。 That is, as shown in FIGS. 14 and 15, when the light transmitted through the spectroscopic unit 41 is changed from the minimum wavelength of 600 nm to the maximum wavelength of 1000 nm at a pitch of 100 nm, each wavelength and focus shown in FIG. 16 are changed. The relationship between the amount of deviation ΔZ from the position P1 of the point with the smallest value and the magnification of the spectroscopic image at this time is stored in the storage unit 14 as calibration data.

以上のように、フォーカスを調整する調整処理、すなわち、工程<1A>〜工程<4A>を経ることで、分光部41すなわち分光カメラ7で透過させる光の波長と、投射レンズ812すなわち分光カメラ7のフォーカスが合う位置および撮像素子71すなわち分光カメラ7で得られる分光画像の倍率との関係を決定することができる。 As described above, the wavelength of the light transmitted by the spectroscopic unit 41, that is, the spectroscopic camera 7 and the projection lens 812, that is, the spectroscopic camera 7 by going through the adjustment process for adjusting the focus, that is, the steps <1A> to <4A>. The relationship between the focused position and the magnification of the spectroscopic image obtained by the image pickup element 71, that is, the spectroscopic camera 7 can be determined.

換言すれば、以上のようなフォーカスを調整する調整処理により、異なる波長において、前記波長と、取得される分光画像のフォーカスが合う位置、および、分光画像の倍率との関係を特定する、すなわち、予め受け付けた設定波長において、分光カメラ7のフォーカスが対象物Xに合う位置と、前記位置で取得される分光画像の倍率と、の関係を特定する調整工程が構成される。 In other words, by the adjustment process for adjusting the focus as described above, the relationship between the wavelength, the position where the acquired spectroscopic image is in focus, and the magnification of the spectroscopic image is specified at different wavelengths, that is, An adjustment step is configured to specify the relationship between the position where the focus of the spectroscopic camera 7 is aligned with the object X and the magnification of the spectroscopic image acquired at the position at the set wavelength received in advance.

次に、フォーカスを調整する調整処理が実施されたロボットシステム100を用いて、所定の領域であるSpectrum Match01またはSpectrum Match02に配置された物品の表面性状を検査する検査処理が実施される。 Next, using the robot system 100 that has been subjected to the adjustment process for adjusting the focus, an inspection process for inspecting the surface texture of the article placed in the predetermined area Spectrum Match 01 or Spectrum Match 02 is performed.

(検査処理)
次に、物品の表面性状を検査する検査方法における検査処理について説明する。なお、この検査処理では、ロボットシステム100が備える制御装置1から、通常、パーソナルコンピューター3が取り外された状態で実施される。なお、このパーソナルコンピューター3が取り外されたロボットシステム100、すなわち、ロボット2と、分光カメラ7と、制御装置1とにより、本発明の分光画像処理装置が構成される。
(Inspection processing)
Next, the inspection process in the inspection method for inspecting the surface properties of the article will be described. In addition, this inspection process is usually carried out in a state where the personal computer 3 is removed from the control device 1 included in the robot system 100. The robot system 100 from which the personal computer 3 is removed, that is, the robot 2, the spectroscopic camera 7, and the control device 1 constitute the spectroscopic image processing device of the present invention.

<1B> まず、ユーザーは、図17に示すように、入力装置62の操作により、所定の領域に配置された物品の表面性状を検査する検査処理を実施するプログラムを起動させた後、このプログラムの指示に従って、必要に応じて条件等の選択を行う(S1B)。 <1B> First, as shown in FIG. 17, the user activates a program for inspecting the surface properties of articles arranged in a predetermined area by operating the input device 62, and then this program. Conditions and the like are selected as necessary according to the instructions in (S1B).

なお、プログラムの指示に従って入力する条件としては、例えば、物品の表面性状を検査する領域、具体的には、Spectrum Match01およびSpectrum Match02の領域のうち何れにおいて検査を実施するのかを指定すること、物品の表面性状を検査する検査の種類、具体的には、物品の色または物品に付着している異物の有無のうち何れの検査を実施するのかを指定すること、検査開始時および検査終了時に分光カメラ7を配置させる位置、ロボット2による分光カメラ7の移動の後に、分光カメラ7による物品の分光画像の取得までに待機する時間、ならびに、分光カメラ7で物品の分光画像を取得する際の波長領域およびこの波長領域において波長を変化させるピッチ等が挙げられる(図16参照)。 In addition, as a condition to be input according to the instruction of the program, for example, it is specified in the area where the surface texture of the article is inspected, specifically, which of the areas of Spectrum Match 01 and Spectrum Match 02 the inspection is to be performed, and the article. Specify the type of inspection to inspect the surface properties of the article, specifically the color of the article or the presence or absence of foreign matter adhering to the article, and spectroscopically at the start and end of the inspection. The position where the camera 7 is arranged, the time to wait until the spectroscopic camera 7 acquires the spectroscopic image of the article after the movement of the spectroscopic camera 7 by the robot 2, and the wavelength at which the spectroscopic camera 7 acquires the spectroscopic image of the article. Examples include a region and a pitch that changes the wavelength in this wavelength region (see FIG. 16).

<2B> 次いで、前述した調整処理で取得した、分光部41すなわち分光カメラ7で透過させる光の波長と、投射レンズ812すなわち分光カメラ7のフォーカスが合う位置および撮像素子71すなわち分光カメラ7で得られる分光画像の倍率との関係に基づいて、前記工程<1B>において設定された波長領域において、設定されたピッチで、撮像素子71すなわち分光カメラ7により分光画像を取得する。 <2B> Next, the wavelength of the light transmitted by the spectroscopic unit 41, that is, the spectroscopic camera 7 and the position where the projection lens 812, that is, the spectroscopic camera 7 is in focus and the imaging element 71, that is, the spectroscopic camera 7 obtained by the above-mentioned adjustment process are obtained. Based on the relationship with the magnification of the spectroscopic image to be obtained, the spectroscopic image is acquired by the imaging element 71, that is, the spectroscopic camera 7 at the set pitch in the wavelength region set in the step <1B>.

<2B−1> まず、入力装置62における、ユーザーによる入力指示に従って、画像処理実行部65は、ロボット制御部11が備えるカメラポイント補正部102の作動により、シャフト241をz軸方向すなわち光軸方向に移動させることで、分光カメラ7を位置P0に配置させた後に、前記工程<1B>において設定された波長領域のうち最低の波長すなわち第1波長において、分光カメラ7のフォーカスが合う位置、すなわち、図18、図19では、600nmにおいて、分光カメラ7のフォーカスが合う、P1からのズレ量ΔZが5mmとなっている位置に移動させる(S2B)。 <2B-1> First, according to an input instruction by the user in the input device 62, the image processing execution unit 65 moves the shaft 241 in the z-axis direction, that is, the optical axis direction by the operation of the camera point correction unit 102 included in the robot control unit 11. After arranging the spectroscopic camera 7 at position P0, the spectroscopic camera 7 is in focus at the lowest wavelength, that is, the first wavelength, in the wavelength region set in the step <1B>. In FIGS. 18 and 19, the spectroscopic camera 7 is moved to a position where the focus is set and the amount of deviation ΔZ from P1 is 5 mm at 600 nm (S2B).

このようなシャフト241すなわちロボットアーム20の駆動により、分光カメラ7を、対象物Xに対して光軸方向に移動させることができる。すなわち、光軸方向における、分光カメラ7と対象物Xとの間の距離を変化させることができる。 By driving the shaft 241 or the robot arm 20, the spectroscopic camera 7 can be moved in the optical axis direction with respect to the object X. That is, the distance between the spectroscopic camera 7 and the object X in the optical axis direction can be changed.

<2B−2> 次いで、画像処理実行部65は、カメラ制御部60が備える分光制御部602の作動により、分光部41で透過される光の波長を、前記工程<1B>において設定された波長領域のうち最低の波長、すなわち、図18、図19では、600nmに設定する(S3B)。 <2B-2> Next, the image processing execution unit 65 sets the wavelength of the light transmitted by the spectroscopic unit 41 by the operation of the spectroscopic control unit 602 included in the camera control unit 60 to the wavelength set in the step <1B>. The lowest wavelength in the region, that is, in FIGS. 18 and 19, is set to 600 nm (S3B).

なお、分光画像処理部12による、分光部41で透過される光の波長の設定は、記憶部14に記憶されているV−λデータに基づいて、透過される光の波長、すなわち、出射させる分光波長に対応する駆動電圧の電圧値(入力値)を取得し、その後、取得した電圧値を、分光部41としてのファブリーペローエタロンフィルターの静電アクチュエーター45に印加することで実施される。 The spectroscopic image processing unit 12 sets the wavelength of the light transmitted by the spectroscopic unit 41, that is, emits the wavelength of the transmitted light based on the V-λ data stored in the storage unit 14. This is carried out by acquiring the voltage value (input value) of the drive voltage corresponding to the spectral wavelength, and then applying the acquired voltage value to the electrostatic actuator 45 of the Fabry Perot Etalon filter as the spectroscopic unit 41.

<2B−3> 次いで、画像処理実行部65は、カメラ制御部60が備える分光画像取得部603の作動により、撮像素子71により分光画像すなわち第1分光画像を取得する(S4B)。 <2B-3> Next, the image processing execution unit 65 acquires a spectroscopic image, that is, a first spectroscopic image by the image sensor 71 by the operation of the spectroscopic image acquisition unit 603 included in the camera control unit 60 (S4B).

なお、図10に示す、Geom02のモデルでは、図中のSpectrum Match01またはSpectrum Match02の領域に配置された物品が含まれるように、撮像素子71により分光画像を取得する。 In addition, in the model of Geom02 shown in FIG. 10, a spectroscopic image is acquired by the image sensor 71 so as to include an article arranged in the region of Spectrum Match01 or Spectrum Match02 in the figure.

<2B−4> 次いで、画像処理実行部65は、前記工程<2B−3>で取得された分光カメラ7のフォーカスが合っている分光画像と、この分光画像が取得された光の波長が最小の波長(第1波長)、すなわち、600nmであることと、このときに取得された分光画像(第1分光画像)の倍率が1であることとを、記憶部14に記憶させる(S5B)。 <2B-4> Next, the image processing execution unit 65 has the smallest wavelength of the focused spectral image of the spectroscopic camera 7 acquired in the step <2B-3> and the light from which the spectroscopic image was acquired. The wavelength (first wavelength) of the above, that is, 600 nm, and the magnification of the spectroscopic image (first spectroscopic image) acquired at this time are stored in the storage unit 14 (S5B).

<3B> 次に、最小の波長の光における、分光カメラ7のフォーカスが合う位置での分光カメラ7による分光画像の取得の後に、最小の波長の光よりも長波長の光における、分光カメラ7のフォーカスが合う位置での分光カメラ7による分光画像の取得が必要か否かを、前記工程<1B>において、ユーザーによって選択された条件、すなわち、分光部41で透過させる光の最小の波長、最大の波長および波長のピッチに基づいて判定する。すなわち、最小の波長の光から、選択された波長のピッチで、最大の波長の光となるまで、続けて、その波長の光における、分光カメラ7のフォーカスが合う位置での分光画像の取得を、実施する必要があると判定し、最大の波長を超えた光となった時点で、その波長の光における分光画像の取得を終了する(S6B)。 <3B> Next, after acquiring the spectroscopic image by the spectroscopic camera 7 at the position where the spectroscopic camera 7 is in focus in the light of the minimum wavelength, the spectroscopic camera 7 in the light having a wavelength longer than the light of the minimum wavelength. Whether or not it is necessary to acquire a spectroscopic image by the spectroscopic camera 7 at a position where the spectroscopic camera 7 is in focus is determined by the condition selected by the user in the step <1B>, that is, the minimum wavelength of the light transmitted by the spectroscopic unit 41. Judgment is based on the maximum wavelength and wavelength pitch. That is, the acquisition of the spectral image at the position where the spectroscopic camera 7 is in focus in the light of that wavelength is continuously obtained from the light of the minimum wavelength to the light of the maximum wavelength at the pitch of the selected wavelength. , It is determined that it is necessary to carry out, and when the light exceeds the maximum wavelength, the acquisition of the spectral image in the light of that wavelength is terminated (S6B).

この判定(S6B)において、フォーカスが合う位置での分光カメラ7による分光画像の取得がなされた波長の光よりも長波長(第2波長)の光で、フォーカスが合う位置での分光カメラ7による分光画像(第2分光画像)を取得する必要がある場合には、ユーザーにより設定されたピッチ分、すなわち、図18、図19では20nmを加算した波長の光を分光部41で透過し得るように、画像処理実行部65は、分光制御部602を作動させ、その後、前記工程<2B>〜本工程<3B>を繰り返して実施する。これにより、フォーカスが合う位置での分光カメラ7による分光画像の取得がなされた波長の光よりも長波長の光における、フォーカスが合う位置での分光カメラ7による分光画像の取得が実施される。このような最小の波長以上の光におけるフォーカスが合う位置での分光カメラ7による分光画像の取得を、前記工程<1B>において、ユーザーによって選択された波長領域において、最小の波長から一定のピッチで最大の波長となるまで、繰り返して実施する。すなわち、図18、図19では、600nmから、20nmのピッチで、1000nmとなるまで、繰り返して実施する。 In this determination (S6B), the light has a wavelength longer than the wavelength at which the spectroscopic image was acquired by the spectroscopic camera 7 at the focused position (second wavelength), and the spectroscopic camera 7 at the focused position. When it is necessary to acquire a spectroscopic image (second spectroscopic image), the spectroscopic unit 41 can transmit light having a pitch set by the user, that is, a wavelength obtained by adding 20 nm in FIGS. 18 and 19. In addition, the image processing execution unit 65 operates the spectroscopic control unit 602, and then repeats the steps <2B> to the main step <3B>. As a result, the spectroscopic image is acquired by the spectroscopic camera 7 at the focused position in the light having a wavelength longer than that of the light having the wavelength obtained by the spectroscopic camera 7 at the focused position. In the step <1B>, the acquisition of the spectroscopic image by the spectroscopic camera 7 at the position where the light having the minimum wavelength or higher is in focus is obtained at a constant pitch from the minimum wavelength in the wavelength region selected by the user. Repeat until the maximum wavelength is reached. That is, in FIGS. 18 and 19, the process is repeated from 600 nm to 1000 nm at a pitch of 20 nm.

このように、分光画像を取得する最小の波長、分光画像を取得する最大の波長、および、最小の波長から最大の波長までの間で分光画像を取得する波長のピッチを設定して、最小の波長から、前記ピッチの間隔で、最大の波長まで、順次、フォーカスが合う位置での分光カメラ7による分光画像の取得が実施される。すなわち、分光画像を取得する、最も短い波長である最短波長から最も長い波長である最長波長までの波長域と、波長域を一定の波長で分割するピッチを設定し、前記最短波長、前記最長波長および前記ピッチに基づいて、前記最短波長から、前記ピッチの間隔で、前記最長波長まで、順次、フォーカスが合う位置となるように、分光カメラ7と対象物Xとの間の距離を変化させた状態で、分光カメラ7による分光画像の取得が実施される。これにより、一定の間隔の波長における分光画像の情報を含む、精度の良い分光スペクトル画像を取得することが出来る。 In this way, the minimum wavelength at which the spectroscopic image is acquired, the maximum wavelength at which the spectroscopic image is acquired, and the pitch of the wavelength at which the spectroscopic image is acquired between the minimum wavelength and the maximum wavelength are set to be the minimum. The spectroscopic image is sequentially acquired by the spectroscopic camera 7 at the in-focus position from the wavelength to the maximum wavelength at the pitch interval. That is, the wavelength range from the shortest wavelength, which is the shortest wavelength, to the longest wavelength, which is the longest wavelength, and the pitch for dividing the wavelength range into constant wavelengths for acquiring a spectral image are set, and the shortest wavelength and the longest wavelength are set. And, based on the pitch, the distance between the spectroscopic camera 7 and the object X was changed so as to sequentially focus from the shortest wavelength to the longest wavelength at the pitch interval. In this state, the acquisition of the spectral image by the spectroscopic camera 7 is performed. As a result, it is possible to acquire an accurate spectroscopic spectrum image including information on the spectroscopic image at wavelengths at regular intervals.

また、分光画像を取得する波長を、最小の波長から、前記ピッチの間隔で、最大の波長まで変更することで、分光カメラ7を、光軸方向に沿って、対象物Xから遠ざかるように移動させること、すなわち、分光カメラ7と対象物Xとの間の距離が長くなるように変化させることができる。これにより、分光カメラ7に対象物Xが接触するのを確実に防止することができる。 Further, by changing the wavelength for acquiring the spectroscopic image from the minimum wavelength to the maximum wavelength at the pitch interval, the spectroscopic camera 7 is moved along the optical axis direction so as to move away from the object X. That is, it can be changed so that the distance between the spectroscopic camera 7 and the object X becomes long. As a result, it is possible to reliably prevent the object X from coming into contact with the spectroscopic camera 7.

なお、分光画像を取得する波長のピッチは、上記では20nmとしたが、これに限定されず、前記調整処理において、分光カメラ7で透過させる光の波長と、分光カメラ7のフォーカスが合う位置および分光カメラ7で得られる分光画像の倍率との関係が明らかとなっており、これらの関係が満足していれば、前記波長のピッチは、20nm以上であっても、20nm以下であってもよい。 The pitch of the wavelength at which the spectroscopic image is acquired is 20 nm in the above, but is not limited to this, and in the adjustment process, the wavelength of the light transmitted by the spectroscopic camera 7 and the position where the spectroscopic camera 7 is in focus and The relationship with the magnification of the spectroscopic image obtained by the spectroscopic camera 7 has been clarified, and if these relationships are satisfied, the pitch of the wavelength may be 20 nm or more or 20 nm or less. ..

上記の通り、前記工程<2B>〜本工程<3B>を繰り返して実施することで、前記工程<1B>において、ユーザーによって選択された波長領域において、最小の波長の光から、一定のピッチで、最大の波長の光における分光画像が、フォーカスが合ったものとして取得することができる。 As described above, by repeating the steps <2B> to the main step <3B>, in the step <1B>, in the wavelength region selected by the user, from the light having the smallest wavelength, at a constant pitch. , The spectroscopic image in the light of the maximum wavelength can be acquired as in focus.

すなわち、図18、図19のように、最小の波長600nmから、20nmのピッチで、最大の波長1000nmまで分光部41を透過させる光を変化させたときの分光画像が、フォーカスが合ったものとして取得することができる。なお、このようにして取得された各波長における分光画像と、これら分光画像の倍率との関係についても、前記調整処理を経ていることから、明らかとなっている。 That is, as shown in FIGS. 18 and 19, the spectroscopic image when the light transmitted through the spectroscopic unit 41 is changed from the minimum wavelength of 600 nm to the maximum wavelength of 1000 nm at a pitch of 20 nm is assumed to be in focus. Can be obtained. The relationship between the spectroscopic images at each wavelength thus acquired and the magnification of these spectroscopic images has also been clarified from the above-mentioned adjustment processing.

一方、最大の波長を超えた光となり、その波長の光におけるフォーカスが合う位置での分光画像の取得が必要ない場合には、前記工程<2B>〜本工程<3B>の繰り返しを終了し、次工程<4B>に移行する。 On the other hand, when the light exceeds the maximum wavelength and it is not necessary to acquire a spectroscopic image at a position where the light of that wavelength is in focus, the repetition of the above steps <2B> to this step <3B> is completed. The process proceeds to the next step <4B>.

以上のような、前記工程<2B>〜本工程<3B>の繰り返しにより、分光カメラ7の光軸方向における、作業台8に設置された対象物Xと、分光カメラ7との間の距離を変化せ、分光カメラ7により、第1波長において、対象物Xのフォーカスが合う第1位置で、第1波長における第1分光画像を取得し、第1波長より長い波長である第2波長において分光カメラのフォーカスが合う第2位置で、第2波長における第2分光画像を取得する撮像工程が構成される。 By repeating the steps <2B> to this step <3B> as described above, the distance between the object X installed on the work table 8 and the spectroscopic camera 7 in the optical axis direction of the spectroscopic camera 7 is increased. The spectroscopic camera 7 acquires a first spectroscopic image at the first wavelength at the first position where the object X is in focus at the first wavelength, and spectroscopically at a second wavelength longer than the first wavelength. An imaging step of acquiring a second spectroscopic image at a second wavelength is configured at the second position where the camera is in focus.

<4B> 次に、画像処理実行部65は、分光部41で透過される光の波長が、前記工程<1B>において、ユーザーによって選択された波長領域において、最小の波長から一定のピッチで最大の波長となるまで、繰り返して取得された、分光カメラ7のフォーカスが合っている分光画像と、その分光画像が取得された光の波長と、その分光画像が取得された波長における分光画像の倍率とを、検査すべき物品の分光画像データとして、改めて、記憶部14に記憶させる(S7B)。 <4B> Next, in the image processing execution unit 65, the wavelength of the light transmitted by the spectroscopic unit 41 is the maximum at a constant pitch from the minimum wavelength in the wavelength region selected by the user in the step <1B>. The spectral image in which the spectroscopic camera 7 is in focus, the wavelength of the light from which the spectral image was acquired, and the magnification of the spectral image at the wavelength at which the spectral image was acquired, which were repeatedly acquired until the wavelength reached Is stored in the storage unit 14 again as spectroscopic image data of the article to be inspected (S7B).

すなわち、図18、図19のように、最小の波長600nmから、20nmのピッチで、最大の波長1000nmまで分光カメラ7のフォーカスが合っている分光画像を取得したときには、これらの分光画像とともに、これに対応する光の波長と、その波長における分光画像の倍率とを、検査すべき物品の分光画像データとして、記憶部14に記憶させる。 That is, as shown in FIGS. 18 and 19, when the spectroscopic images in which the spectroscopic camera 7 is in focus from the minimum wavelength of 600 nm to the maximum wavelength of 1000 nm at a pitch of 20 nm are acquired, they are combined with these spectroscopic images. The wavelength of light corresponding to the above and the magnification of the spectroscopic image at that wavelength are stored in the storage unit 14 as spectroscopic image data of the article to be inspected.

以上のように、工程<1B>〜工程<4B>を経ることで、ユーザーによって選択された波長領域において、最小の波長から一定のピッチで最大の波長となるまでの間で、分光カメラ7のフォーカスが合っている分光画像を取得し得るとともに、各波長における分光画像の倍率を決定することができる。 As described above, by going through the steps <1B> to <4B>, the spectroscopic camera 7 has a wavelength range selected by the user from the minimum wavelength to the maximum wavelength at a constant pitch. It is possible to obtain an in-focus spectroscopic image and determine the magnification of the spectroscopic image at each wavelength.

<5B> 次に、画像処理実行部65が備えるスペクトル情報生成部604が有する倍率調整部605は、記憶部14に記憶された、検査すべき物品の分光画像データ、すなわち、ユーザーによって選択された波長領域において、最小の波長から一定のピッチで最大の波長となるまで、繰り返して取得された、分光カメラ7のフォーカスが合っている分光画像と、その分光画像が取得された光の波長と、その分光画像が取得された波長における分光画像の倍率とを取得する。そして、各波長に対応する分光画像について、それぞれ、その波長に対応する分光画像の倍率の逆数を掛ける(S8B)。これにより、各波長について、倍率変換がなされた分光画像を、図18に示すように、最小の波長すなわち600nmにおける分光画像が最も小さく、最大の波長すなわち1000nmにおける分光画像が最も大きいものとして得られ、その結果、各波長における分光画像で撮像されている対象物Xを、同一の大きさを有するものとし得る。 <5B> Next, the magnification adjustment unit 605 of the spectrum information generation unit 604 included in the image processing execution unit 65 is the spectroscopic image data of the article to be inspected stored in the storage unit 14, that is, selected by the user. In the wavelength region, the spectroscopic image in which the spectroscopic camera 7 is in focus and the wavelength of the light from which the spectroscopic image was acquired, which are repeatedly acquired from the minimum wavelength to the maximum wavelength at a constant pitch, The magnification of the spectroscopic image at the wavelength at which the spectroscopic image was acquired is acquired. Then, the spectroscopic image corresponding to each wavelength is multiplied by the reciprocal of the magnification of the spectroscopic image corresponding to that wavelength (S8B). As a result, as shown in FIG. 18, the spectroscopic image subjected to the magnification conversion for each wavelength is obtained as the smallest spectroscopic image at the minimum wavelength, that is, 600 nm, and the largest spectroscopic image at the maximum wavelength, that is, 1000 nm. As a result, the objects X imaged in the spectroscopic images at each wavelength can have the same size.

<6B> 次に、画像処理実行部65が備えるスペクトル情報生成部604は、図18、図19に示すように、各波長において、それぞれ、拡大された分光画像すなわち倍率変換がなされた分光画像を、z軸方向に沿った光軸に対応する点を視野中心とし、この視野中心を基準点として、重ね合せることで分光スペクトル画像Ssamを得ることができる(S9B)。 <6B> Next, as shown in FIGS. 18 and 19, the spectrum information generation unit 604 included in the image processing execution unit 65 produces an enlarged spectroscopic image, that is, a spectroscopic image subjected to magnification conversion at each wavelength. The spectroscopic spectrum image Ssam can be obtained by superimposing the points corresponding to the optical axes along the z-axis direction as the center of the visual field and the center of the visual field as the reference point (S9B).

なお、倍率が1の最小の波長における分光画像を基準として、倍率が1未満となっている他の波長における分光画像については、基準とする分光画像の外側に位置する領域をトリミングする。これにより、図18に示すように、倍率変換がなされた各波長の分光画像を同視野の画像として重ね合せて分光スペクトル画像Ssamとすることができる。 It should be noted that, with respect to the spectroscopic image at the minimum wavelength of 1 and the spectroscopic image at other wavelengths having a magnification of less than 1, the region located outside the reference spectroscopic image is trimmed. As a result, as shown in FIG. 18, the spectroscopic images of each wavelength that have undergone magnification conversion can be superposed as images of the same field of view to form a spectroscopic spectrum image Ssam.

以上のように、各波長で取得された分光画像を重ね合せることで分光スペクトル画像Ssamを得る際に、各波長における分光画像の倍率を考慮して倍率変換がなされた後の分光画像を重ね合せていることから、重ね合わせた分光画像同士の間で位置ずれが生じるのを的確に抑制または防止することができる。したがって、倍率色収差が含まれることが的確に抑制または防止された分光スペクトル画像Ssamを得ることができる。 As described above, when the spectroscopic spectrum image Ssam is obtained by superimposing the spectroscopic images acquired at each wavelength, the spectroscopic images after the magnification conversion is performed in consideration of the magnification of the spectroscopic image at each wavelength are superposed. Therefore, it is possible to accurately suppress or prevent the occurrence of misalignment between the superimposed spectroscopic images. Therefore, it is possible to obtain a spectroscopic spectrum image Ssam in which the inclusion of chromatic aberration of magnification is accurately suppressed or prevented.

以上のような、前記工程<5B>〜本工程<6B>により、第1分光画像に含まれる対象物Xの大きさに対し、第2分光画像に含まれる対象物Xの大きさが同一となるように第2分光画像を拡大した後に、拡大された第2分光画像を重ね合わせることで、分光スペクトル画像を取得する重畳工程が構成される。 By the above steps <5B> to this step <6B>, the size of the object X included in the second spectroscopic image is the same as the size of the object X included in the first spectroscopic image. By superimposing the magnified second spectroscopic image after enlarging the second spectroscopic image so as to be, a superimposition step of acquiring the spectroscopic spectrum image is configured.

また、各波長における分光画像は、前述の通り、z軸方向を光軸方向として分光カメラ7を、このz軸方向に移動させることで取得している。そのため、z軸方向に沿った光軸の中心を視野中心として、重ね合せるだけで、各波長における分光画像同士の間で位置ずれが生じるのを的確に抑制または防止した状態で、分光スペクトル画像Ssamを得ることができる。すなわち、各波長における分光画像同士の重ね合わせを、位置ずれが生じるのを的確に抑制または防止した状態で、容易に実施することができるため、この重ね合わせにより得られる分光スペクトル画像Ssamを容易に取得することができる。このように、対象物Xすなわち生産された、または、生産途中の物品の分光スペクトル画像Ssamを、正確なスペクトル情報として得ることができるため、生産された、または、生産途中の物品における表面性状を優れた精度で検査することができる。 Further, as described above, the spectroscopic images at each wavelength are acquired by moving the spectroscopic camera 7 in the z-axis direction with the z-axis direction as the optical axis direction. Therefore, the spectroscopic spectrum image Ssam is in a state where the misalignment between the spectroscopic images at each wavelength is accurately suppressed or prevented by simply superimposing the center of the optical axis along the z-axis direction as the center of the field of view. Can be obtained. That is, since superposition of spectroscopic images at each wavelength can be easily performed in a state where the occurrence of misalignment is accurately suppressed or prevented, the spectroscopic spectrum image Ssam obtained by this superposition can be easily obtained. Can be obtained. In this way, since the spectroscopic spectrum image Ssam of the object X, that is, the produced or in-production article can be obtained as accurate spectral information, the surface texture of the produced or in-produced article can be obtained. It can be inspected with excellent accuracy.

なお、本工程<6B>において分光スペクトル画像Ssamを得る際には、ロボット2の作動を伴わないことから、検査処理の終了後のことを考慮して、カメラポイント補正部102は、シャフト241を第2アーム23に対してz軸方向に移動させることで、例えば、分光カメラ7を位置P10の位置に配置させることが好ましい。 Since the robot 2 is not operated when the spectroscopic spectrum image Ssam is obtained in this step <6B>, the camera point correction unit 102 uses the shaft 241 in consideration of the completion of the inspection process. It is preferable that the spectroscopic camera 7 is arranged at the position P10 by moving the second arm 23 in the z-axis direction, for example.

<7B> 次いで、スペクトル情報生成部604は、得られた分光スペクトル画像Ssamに基づいて、検査すべき物品すなわち対象物Xの表面性状を検査する(検査工程)。 <7B> Next, the spectrum information generation unit 604 inspects the surface texture of the article to be inspected, that is, the object X, based on the obtained spectral spectrum image Ssam (inspection step).

換言すれば、スペクトル情報生成部604は、前記工程<6B>において得られた、分光スペクトル画像Ssamを取得する。その後、分光情報としての分光スペクトル画像Ssamを、特徴量として用い、データベースと比較する分析処理を実施することで、検査すべき物品である対象物Xの表面性状を検査する。 In other words, the spectrum information generation unit 604 acquires the spectral spectrum image Ssam obtained in the step <6B>. Then, the spectroscopic spectrum image Ssam as the spectroscopic information is used as a feature amount, and an analysis process for comparison with a database is performed to inspect the surface texture of the object X, which is an article to be inspected.

具体的には、スペクトル情報生成部604は、記憶部14に予め記憶された表面性状が良品であると判断された物品のデータrを取得し、このデータrを用いて対象物Xの分光スペクトル画像Ssamがデータrと一致するか否かを判別することで、対象物Xの表面性状を検査する。 Specifically, the spectral information generation unit 604 acquires data r of an article whose surface texture is determined to be good, which is stored in advance in the storage unit 14, and uses this data r to obtain the spectral spectrum of the object X. The surface texture of the object X is inspected by determining whether or not the image Ssam matches the data r.

より詳しくは、まず、データrと一致するか否かを判別するのに適した判別空間へ、特徴量としての分光スペクトル画像Ssamを射影する。すなわち、射影関数f(・)を特定の判別基準に基づき生成する。なお、この判別基準としては、例えば、フィッシャー判別基準、最小二乗基準等が挙げられる。そして、対象物Xの分光スペクトル画像Ssamを判別空間に射影し、位置yとする。 More specifically, first, the spectroscopic spectrum image Ssam as a feature quantity is projected onto a discrimination space suitable for discriminating whether or not the data r matches. That is, the projection function f (・) is generated based on a specific discrimination criterion. Examples of the discrimination standard include a Fisher discrimination standard, a least squares standard, and the like. Then, the spectroscopic spectrum image Ssam of the object X is projected onto the discrimination space and set to the position y.

y=f(Ssam) y = f (Ssam)

同様に、良品と判断された物品のデータrについても、判別空間に投影し、y(r)とする。そして、対象物Xの判別空間上の位置yと、良品と判断された物品との判別空間での距離mを計算する。 Similarly, the data r of the article judged to be a non-defective item is also projected onto the discrimination space and set as y (r). Then, the position y of the object X in the discrimination space and the distance m in the discrimination space between the article judged to be a good product are calculated.

m=g(y,y(r)) m = g (y, y (r))

ここで、g(a,b)は判別空間でのaとbとの距離を算出する関数である。また、距離としては、例えば、マハラノビス距離、ユークリッド距離等を用いることができる。 Here, g (a, b) is a function that calculates the distance between a and b in the discrimination space. Further, as the distance, for example, Mahalanobis distance, Euclidean distance or the like can be used.

そして、この得られた距離mが、一定の閾値よりも小さいものを、対象物Xが良品であると判断する。すなわち、対象物Xは良品と同等の色を有している、または、対象物Xには異物が付着していないと判断する。 Then, when the obtained distance m is smaller than a certain threshold value, it is determined that the object X is a good product. That is, it is determined that the object X has the same color as the good product, or that no foreign matter is attached to the object X.

以上のように、前記工程<6B>では、各波長で取得された分光画像を重ね合せることで分光スペクトル画像Ssamを得る際に、各波長における分光画像の倍率を考慮して倍率変換がなされた後の分光画像を重ね合せていることから、重ね合わせた分光画像同士の間で位置ずれが生じるのを的確に抑制または防止することができる。したがって、倍率色収差が含まれることが的確に抑制または防止された分光スペクトル画像Ssamを得ることができる。 As described above, in the step <6B>, when the spectroscopic spectrum image Ssam is obtained by superimposing the spectroscopic images acquired at each wavelength, the magnification conversion is performed in consideration of the magnification of the spectroscopic image at each wavelength. Since the later spectroscopic images are superposed, it is possible to accurately suppress or prevent the occurrence of positional deviation between the superposed spectroscopic images. Therefore, it is possible to obtain a spectroscopic spectrum image Ssam in which the inclusion of chromatic aberration of magnification is accurately suppressed or prevented.

また、各波長における分光画像は、前述の通り、z軸方向を光軸方向として分光カメラ7を、このz軸方向に移動させることで取得している。そのため、z軸方向に沿った光軸の中心を視野中心として、重ね合せるだけで、各波長における分光画像同士の間で位置ずれが生じるのを的確に抑制または防止した状態で、分光スペクトル画像Ssamを得ることができる。すなわち、各波長における分光画像同士の重ね合わせを、位置ずれが生じるのを的確に抑制または防止した状態で、容易に実施することができるため、この重ね合わせにより得られる分光スペクトル画像Ssamを容易に取得することができる。このように、対象物Xすなわち生産された、または、生産途中の物品の分光スペクトル画像Ssamを、正確なスペクトル情報として得ることができる。そのため、生産された、または、生産途中の物品における表面性状の検査を、本工程<7B>において、優れた精度で実施することができる。 Further, as described above, the spectroscopic images at each wavelength are acquired by moving the spectroscopic camera 7 in the z-axis direction with the z-axis direction as the optical axis direction. Therefore, the spectroscopic spectrum image Ssam is in a state where the misalignment between the spectroscopic images at each wavelength is accurately suppressed or prevented by simply superimposing the center of the optical axis along the z-axis direction as the center of the field of view. Can be obtained. That is, since superposition of spectroscopic images at each wavelength can be easily performed in a state where the occurrence of misalignment is accurately suppressed or prevented, the spectroscopic spectrum image Ssam obtained by this superposition can be easily obtained. Can be obtained. In this way, the spectroscopic spectrum image Ssam of the object X, that is, the produced or in the process of production, can be obtained as accurate spectral information. Therefore, the inspection of the surface texture of the produced or in-process article can be performed with excellent accuracy in this step <7B>.

<8B> 次に、表示制御部13は、スペクトル情報生成部604で特定された対象物Xの検査結果を可視化画像として作成し、その後、この可視化画像を、表示装置61に表示させる(S7B)。 <8B> Next, the display control unit 13 creates an inspection result of the object X specified by the spectrum information generation unit 604 as a visualization image, and then displays this visualization image on the display device 61 (S7B). ..

この可視化画像として、表示装置61に表示させる対象物Xの情報としては、対象物Xが良品または不良品であるかの検査結果、また、良品である場合、良品である確率(%)、さらに、不良品である場合、不良品と判断された理由、異物が付着している位置等の情報が挙げられる。 As the information of the object X to be displayed on the display device 61 as this visualized image, the inspection result of whether the object X is a non-defective product or a defective product, and if it is a non-defective product, the probability (%) of the non-defective product, and further. In the case of a defective product, information such as the reason why the product is determined to be defective and the position where foreign matter is attached can be mentioned.

以上のような、ロボットシステム100を用いた、工程<1B>〜工程<8B>を経る検査処理を実施することで、対象物Xの検査が行われる。 The object X is inspected by performing the inspection process through the steps <1B> to <8B> using the robot system 100 as described above.

なお、分光情報としての分光スペクトルと、記憶部14に記憶されたデータベースとを比較する分光処理を、上記では、判別空間での距離mを用いて実施する場合について説明したが、これに限定されず、前記分析処理は、ニューラルネットワーク等の機械学習により実施するようにすることもできる。 In the above description, the case where the spectroscopic process for comparing the spectroscopic spectrum as the spectroscopic information and the database stored in the storage unit 14 is performed using the distance m in the discrimination space has been described, but the present invention is limited to this. However, the analysis process may be performed by machine learning such as a neural network.

また、本実施形態では、シャフト241をz軸方向に移動させることで、作業台8に設置された対象物Xと、シャフト241に連結された分光カメラ7とを、分光カメラ7の光軸方向に、相対的に移動させることとしたが、これに限定されず、作業台8をz軸方向に移動させることで、対象物Xと分光カメラ7とを、分光カメラ7の光軸方向に、相対的に移動させるようにしてもよい。 Further, in the present embodiment, by moving the shaft 241 in the z-axis direction, the object X installed on the workbench 8 and the spectroscopic camera 7 connected to the shaft 241 are moved in the optical axis direction of the spectroscopic camera 7. However, the movement is not limited to this, and by moving the workbench 8 in the z-axis direction, the object X and the spectroscopic camera 7 can be moved in the optical axis direction of the spectroscopic camera 7. It may be moved relatively.

さて、以上のようなロボットシステム100を用いた検査方法において、対象物Xとしての物品の表面性状を優れた精度で検査するには、対象物Xが配置される領域である、作業台8上のSpectrum Match01またはSpectrum Match02において対象物Xが存在している位置を、優れた精度で認識することが求められる。すなわち、対象物Xの位置決めを優れた精度で実施した後に、この対象物Xに対して表面性状の検査を実施することが求められる。 By the way, in the inspection method using the robot system 100 as described above, in order to inspect the surface texture of the article as the object X with excellent accuracy, it is on the workbench 8 which is the area where the object X is arranged. It is required to recognize the position where the object X exists in Spectrum Match 01 or Spectrum Match 02 of the above with excellent accuracy. That is, it is required to inspect the surface texture of the object X after positioning the object X with excellent accuracy.

この位置決めを、一般的に使用されるRGBカメラを用いた場合、前述したように、このRGBカメラがRGBベイヤー配列のカラーフィルターを備えるものである場合、同じ解像度のモノクロカメラに比べて空間分解能の低下を招くことから、対象物Xの位置決めを優れた精度で実施することができない。 When this positioning is performed using a commonly used RGB camera, as described above, when the RGB camera is equipped with an RGB Bayer array color filter, the spatial resolution is higher than that of a monochrome camera having the same resolution. Since the object X is lowered, the positioning of the object X cannot be performed with excellent accuracy.

また、空間分解能が低下しない、3板式のRGBカメラを用いることも考えられるが、この3板式のRGBカメラは、RGBの各カラーフィルターに対してそれぞれ1個ずつ、合計3個のCCDのような撮像素子を備えるため、カメラの構成が複雑となり、装置の大型化を招くと言う問題が生じる。 It is also conceivable to use a three-plate RGB camera that does not reduce the spatial resolution, but this three-plate RGB camera is like a total of three CCDs, one for each RGB color filter. Since the image sensor is provided, the configuration of the camera becomes complicated, which causes a problem that the size of the device is increased.

これに対して、ロボットシステム100は、物品すなわち対象物Xの表面性状を検査する際に用いるカメラとして、分光カメラ7を備えている。そのため、分光カメラ7すなわちロボットシステム100の大型化を招くことなく、作業台8上のSpectrum Match01またはSpectrum Match02において対象物Xとしての物品が存在している位置を、優れた精度で認識すること、換言すれば、対象物Xの位置決めを優れた精度で実施することができる。 On the other hand, the robot system 100 includes a spectroscopic camera 7 as a camera used when inspecting the surface texture of an article, that is, an object X. Therefore, the position where the article as the object X exists on the workbench 8 in Spectrum Match 01 or Spectrum Match 02 can be recognized with excellent accuracy without causing the spectroscopic camera 7, that is, the robot system 100 to become large. In other words, the positioning of the object X can be performed with excellent accuracy.

以下、ロボットシステム100すなわち分光カメラ7を用いた物品が存在している位置を決定する位置決め方法について、説明する。 Hereinafter, a positioning method for determining the position where an article exists using the robot system 100, that is, the spectroscopic camera 7, will be described.

[物品が存在している位置を決定する位置決め方法]
以下、ロボットシステム100すなわち分光カメラ7を用いた、対象物Xとしての物品が存在している位置を決定する位置決め方法、すなわち、物品の色や物品に付着している異物の有無を検査する検査方法を、図20〜図26を用いて、以下に詳述する。
[Positioning method to determine the position where the article exists]
Hereinafter, a positioning method using a robot system 100, that is, a spectroscopic camera 7, for determining the position where an article as an object X exists, that is, an inspection for inspecting the color of the article and the presence or absence of foreign matter adhering to the article. The method will be described in detail below with reference to FIGS. 20-26.

図20は、物品が存在している位置を決定する位置決め方法で実施される、検出工程および取得工程の概略を説明するための模式図、図21は、図4に示すロボットシステムにより物品が存在している位置を決定する位置決め方法が有する検出工程を実施する際のフローチャート、図22は、対象物に対応する位置である第1点PT1における第1分光スペクトル情報と、作業台に対応する位置である第2点PT2における第2分光スペクトル情報とを示すグラフ、図23は、第1点PT1における第1分光スペクトル情報、すなわち分光スペクトル画像Ssam(PT1)の強度と、第2点PT2における第2分光スペクトル情報、すなわち分光スペクトル画像Ssam(PT2)の強度との差を示す図、図24は、第1点PT1における分光スペクトル画像Ssam(PT1)の強度と、第2点PT2における分光スペクトル画像Ssam(PT2)の強度との差が最大となる波長maxであるときを示す図、図25は、図4に示すロボットシステムにより物品が存在している位置を決定する位置決め方法が有する取得工程を実施する際のフローチャート、図26は、取得工程において、サーチラインと、対象物の境界部との交点であるエッジ点を検出することで対象物の位置決めを行う方法を説明するための模式図である。 FIG. 20 is a schematic diagram for explaining the outline of the detection process and the acquisition process carried out by the positioning method for determining the position where the article exists, and FIG. 21 shows the article present by the robot system shown in FIG. FIG. 22 shows a flowchart when carrying out the detection step of the positioning method for determining the position, showing the first spectral spectrum information at the first point PT1 which is the position corresponding to the object and the position corresponding to the workbench. FIG. 23 is a graph showing the second spectral spectrum information at the second point PT2, which is the intensity of the first spectral spectrum information at the first point PT1, that is, the spectral spectrum image Ssam (PT1), and the second point PT2. The figure showing the difference between the two spectral spectrum information, that is, the intensity of the spectral spectrum image Ssam (PT2), FIG. 24 shows the intensity of the spectral spectrum image Ssam (PT1) at the first point PT1 and the spectral spectrum image at the second point PT2. The figure showing the time when the difference from the intensity of Ssam (PT2) is the maximum wavelength max, FIG. 25 shows the acquisition process included in the positioning method for determining the position where the article is present by the robot system shown in FIG. FIG. 26 is a schematic diagram for explaining a method of positioning an object by detecting an edge point which is an intersection of a search line and a boundary portion of the object in the acquisition process. is there.

このロボットシステム100を用いた位置決め方法は、対象物Xのスペクトル情報を分光カメラ7を用いて取得した後に、スペクトル情報において、対象物Xと、対象物Xの背景としての作業台8とを検出する画像検査を実行し、その後、対象物Xと、この対象物Xの背景とのコントラストが所定の値よりも高くなる高コントラスト波長を特定する検出工程と、前記コントラストが所定の値よりも高くなる高コントラスト波長に基づいて、対象物Xの単色画像を取得した後に、この単色画像において、対象物Xと、対象物Xの背景としての作業台8との境界部を特定する取得工程とを有している。 In the positioning method using the robot system 100, after the spectrum information of the object X is acquired by using the spectroscopic camera 7, the object X and the workbench 8 as the background of the object X are detected in the spectrum information. An image inspection is performed, and then a detection step of specifying a high contrast wavelength at which the contrast between the object X and the background of the object X becomes higher than a predetermined value and the contrast being higher than a predetermined value are performed. After acquiring a monochromatic image of the object X based on the high contrast wavelength, the acquisition step of specifying the boundary between the object X and the workbench 8 as the background of the object X in this monochromatic image is performed. Have.

以下では、ロボットシステム100を用いた位置決め方法、すなわち、本発明の分光検査方法における、検出工程および取得工程について、順次、説明する。なお、以下では、作業台8上のSpectrum Match01に対象物Xが設置されており、この対象物Xの位置決めを実施する場合について説明する(図20参照)。 Hereinafter, the positioning method using the robot system 100, that is, the detection step and the acquisition step in the spectroscopic inspection method of the present invention will be sequentially described. In the following, an object X is installed on the Spectrum Match 01 on the workbench 8, and a case where the object X is positioned will be described (see FIG. 20).

1.検出工程
まず、物品が存在している位置を決定する位置決め方法における検出工程について説明する。なお、この検出工程では、ロボットシステム100が備える制御装置1からパーソナルコンピューター3が脱着された状態で実施される。
1. 1. Detection Step First, the detection step in the positioning method for determining the position where the article is present will be described. In this detection step, the personal computer 3 is detached from the control device 1 included in the robot system 100.

<1C> まず、図21に示すように、ユーザーは、制御装置1が備える入力装置62の操作により、検出工程を実施する分光画像処理部12を駆動させるプログラムを起動させた後、このプログラムの指示に従って、必要に応じて条件等の選択を行う(S1C)。 <1C> First, as shown in FIG. 21, the user activates a program for driving the spectroscopic image processing unit 12 that executes the detection step by operating the input device 62 included in the control device 1, and then the user of this program. According to the instructions, the conditions and the like are selected as necessary (S1C).

なお、プログラムの指示に従って入力する条件としては、例えば、分光カメラ7で取得する分光スペクトル画像の波長領域、換言すれば、分光部41で透過させる光の最小の波長、最大の波長および波長のピッチ、対象物Xに対応する位置の分光スペクトル情報を取得する第1点PT1の指定、作業台8に対応する位置の分光スペクトル情報を取得する第2点PT2の指定等が挙げられる。 The conditions for input according to the instructions of the program include, for example, the wavelength region of the spectroscopic spectrum image acquired by the spectroscopic camera 7, in other words, the minimum wavelength, the maximum wavelength, and the pitch of the wavelengths of the light transmitted by the spectroscopic unit 41. , Designation of the first point PT1 for acquiring the spectral spectrum information of the position corresponding to the object X, designation of the second point PT2 for acquiring the spectral spectrum information of the position corresponding to the workbench 8 and the like.

<2C> 次いで、前述した物品の表面性状を検査する検査方法の調整処理で取得した、分光部41すなわち分光カメラ7で透過させる光の波長と、分光カメラ7のフォーカスが合う位置および分光カメラ7で得られる分光画像の倍率との関係に基づいて、前記工程<1C>において設定された波長領域において、設定されたピッチで、分光カメラ7により分光画像を取得する(S2C)。 <2C> Next, the wavelength of the light transmitted by the spectroscopic unit 41, that is, the spectroscopic camera 7, obtained by the adjustment processing of the inspection method for inspecting the surface texture of the article described above, the position where the spectroscopic camera 7 is in focus, and the spectroscopic camera 7 Based on the relationship with the magnification of the spectroscopic image obtained in the above step <1C>, the spectroscopic image is acquired by the spectroscopic camera 7 at the set pitch in the wavelength region set in the step <1C> (S2C).

<2C−1> まず、入力装置62における、ユーザーによる入力指示に従って、画像処理実行部65は、ロボット制御部11が備えるカメラポイント補正部102の作動により、シャフト241をz軸方向すなわち光軸方向に移動させることで、分光カメラ7を位置P0に配置させた後に、前記工程<1C>において設定された波長領域のうち最低の波長において、分光カメラ7のフォーカスが合う位置に移動させる。 <2C-1> First, according to an input instruction by the user in the input device 62, the image processing execution unit 65 moves the shaft 241 in the z-axis direction, that is, the optical axis direction by the operation of the camera point correction unit 102 included in the robot control unit 11. After arranging the spectroscopic camera 7 at the position P0, the spectroscopic camera 7 is moved to a position where the spectroscopic camera 7 is in focus at the lowest wavelength in the wavelength region set in the step <1C>.

<2C−2> 次いで、画像処理実行部65は、カメラ制御部60が備える分光制御部602の作動により、分光部41で透過される光の波長を、前記工程<1C>において設定された波長領域のうち最低の波長に設定する。 <2C-2> Next, the image processing execution unit 65 sets the wavelength of the light transmitted by the spectroscopic unit 41 by the operation of the spectroscopic control unit 602 included in the camera control unit 60 to the wavelength set in the step <1C>. Set to the lowest wavelength in the region.

<2C−3> 次いで、画像処理実行部65は、カメラ制御部60が備える分光画像取得部603の作動により、図20に示すように、Spectrum Match01の領域に配置された物品としての対象物Xが含まれるように、撮像素子71により分光画像を取得する。 <2C-3> Next, the image processing execution unit 65 operates the spectral image acquisition unit 603 included in the camera control unit 60, and as shown in FIG. 20, the object X as an article arranged in the region of Spectrum Match 01. The spectroscopic image is acquired by the image sensor 71 so as to include.

<2C−4> 次いで、画像処理実行部65は、前記工程<2C−3>で取得された分光カメラ7のフォーカスが合っている分光画像と、この分光画像が取得された光の波長が最小の波長であることと、このときに取得された分光画像の倍率が1であることとを、記憶部14に記憶させる。 <2C-4> Next, the image processing execution unit 65 has the smallest wavelength of the focused spectral image of the spectroscopic camera 7 acquired in the step <2C-3> and the light from which the spectroscopic image was acquired. The storage unit 14 stores that the wavelength is 1 and that the magnification of the spectroscopic image acquired at this time is 1.

<3C> 次に、最小の波長の光における、分光カメラ7のフォーカスが合う位置での分光カメラ7による分光画像の取得の後に、最小の波長の光よりも長波長の光における、分光カメラ7のフォーカスが合う位置での分光カメラ7による分光画像の取得が必要か否かを、前記工程<1C>において、ユーザーによって選択された条件、すなわち、分光部41で透過させる光の最小の波長、最大の波長および波長のピッチに基づいて判定する。すなわち、最小の波長の光から、選択された波長のピッチで、最大の波長の光となるまで、続けて、その波長の光における、分光カメラ7のフォーカスが合う位置での分光画像の取得を、実施する必要があると判定し、最大の波長を超えた光となった時点で、その波長の光における分光画像の取得を終了する。 <3C> Next, after acquiring the spectroscopic image by the spectroscopic camera 7 at the position where the spectroscopic camera 7 is in focus in the light of the minimum wavelength, the spectroscopic camera 7 in the light having a wavelength longer than the light of the minimum wavelength. Whether or not it is necessary to acquire a spectroscopic image by the spectroscopic camera 7 at a position where the spectroscopic camera 7 is in focus is determined by the condition selected by the user in the step <1C>, that is, the minimum wavelength of the light transmitted by the spectroscopic unit 41. Judgment is based on the maximum wavelength and wavelength pitch. That is, the acquisition of the spectral image at the position where the spectroscopic camera 7 is in focus in the light of that wavelength is continuously obtained from the light of the minimum wavelength to the light of the maximum wavelength at the pitch of the selected wavelength. , It is determined that it is necessary to carry out, and when the light exceeds the maximum wavelength, the acquisition of the spectral image in the light of that wavelength is terminated.

かかる判定において、フォーカスが合う位置での分光カメラ7による分光画像の取得がなされた波長の光よりも長波長の光で、フォーカスが合う位置での分光カメラ7による分光画像を取得する必要がある場合には、ユーザーにより設定されたピッチ分の波長の光を分光部41で透過し得るように、画像処理実行部65は、分光制御部602を作動させることで設定し、その後、前記工程<2C>〜本工程<3C>を繰り返して実施する。これにより、フォーカスが合う位置での分光カメラ7による分光画像の取得がなされた波長の光よりも長波長の光における、フォーカスが合う位置での分光カメラ7による分光画像の取得が実施される。このような最小の波長以上の光におけるフォーカスが合う位置での分光カメラ7による分光画像の取得を、前記工程<1C>において、ユーザーによって選択された波長領域で、最小の波長から一定のピッチで最大の波長となるまで、繰り返して実施する。 In such a determination, it is necessary to acquire the spectroscopic image by the spectroscopic camera 7 at the in-focus position with light having a wavelength longer than the light having the wavelength at which the spectroscopic image was acquired by the spectroscopic camera 7 at the in-focus position. In this case, the image processing execution unit 65 is set by operating the spectroscopic control unit 602 so that the spectroscopic unit 41 can transmit light having a wavelength equal to the pitch set by the user, and then the step < 2C> to this step <3C> are repeated. As a result, the spectroscopic image is acquired by the spectroscopic camera 7 at the focused position in the light having a wavelength longer than that of the light having the wavelength obtained by the spectroscopic camera 7 at the focused position. In the step <1C>, the acquisition of a spectroscopic image by the spectroscopic camera 7 at a position where the light having the minimum wavelength or higher is in focus is obtained at a constant pitch from the minimum wavelength in the wavelength region selected by the user. Repeat until the maximum wavelength is reached.

上記の通り、前記工程<2C>〜本工程<3C>を繰り返して実施することで、前記工程<1C>において、ユーザーによって選択された波長領域において、最小の波長の光から、一定のピッチで、最大の波長の光までの分光画像を、フォーカスが合ったものとして取得することができる。 As described above, by repeating the steps <2C> to the main step <3C>, in the step <1C>, in the wavelength region selected by the user, from the light having the smallest wavelength, at a constant pitch. , The spectroscopic image up to the light of the maximum wavelength can be acquired as in focus.

一方、最大の波長を超えた光となり、その波長の光におけるフォーカスが合う位置での分光画像の取得が必要ない場合には、前記工程<2C>〜本工程<3C>の繰り返しを終了し、次工程<4C>に移行する。 On the other hand, when the light exceeds the maximum wavelength and it is not necessary to acquire a spectroscopic image at a position where the light of that wavelength is in focus, the repetition of the steps <2C> to this step <3C> is completed. The process proceeds to the next step <4C>.

<4C> 次に、画像処理実行部65は、分光部41で透過される光の波長が、前記工程<1C>において、ユーザーによって選択された波長領域において、最小の波長から一定のピッチで最大の波長となるまで、繰り返して取得された、分光カメラ7のフォーカスが合っている分光画像と、その分光画像が取得された光の波長と、その分光画像が取得された波長における分光画像の倍率とを、位置決めをすべき物品すなわち対象物Xの分光画像データとして、改めて、記憶部14に記憶させる(S3C)。 <4C> Next, in the image processing execution unit 65, the wavelength of the light transmitted by the spectroscopic unit 41 is the maximum at a constant pitch from the minimum wavelength in the wavelength region selected by the user in the step <1C>. The spectral image in which the spectroscopic camera 7 is in focus, the wavelength of the light from which the spectral image was acquired, and the magnification of the spectral image at the wavelength at which the spectral image was acquired, which were repeatedly acquired until the wavelength reached Is stored in the storage unit 14 again as spectroscopic image data of the article to be positioned, that is, the object X (S3C).

<5C> 次に、画像処理実行部65が備えるスペクトル情報生成部604が有する倍率調整部605は、記憶部14に記憶された、検査すべき物品の分光画像データ、すなわち、ユーザーによって選択された波長領域において、最小の波長から一定のピッチで最大の波長となるまで、繰り返して取得された、分光カメラ7のフォーカスが合っている分光画像と、その分光画像が取得された光の波長と、その分光画像が取得された波長における分光画像の倍率とを取得する。そして、各波長に対応する分光画像について、それぞれ、その波長に対応する分光画像の倍率の逆数を掛ける。これにより、各波長における分光画像で撮像されている対象物Xを、同一の大きさを有するものに調整する(S4C)。 <5C> Next, the magnification adjustment unit 605 of the spectrum information generation unit 604 included in the image processing execution unit 65 is the spectroscopic image data of the article to be inspected stored in the storage unit 14, that is, selected by the user. In the wavelength region, the spectroscopic image in which the spectroscopic camera 7 is in focus and the wavelength of the light from which the spectroscopic image was acquired, which are repeatedly acquired from the minimum wavelength to the maximum wavelength at a constant pitch, The magnification of the spectroscopic image at the wavelength at which the spectroscopic image was acquired is acquired. Then, the spectroscopic image corresponding to each wavelength is multiplied by the reciprocal of the magnification of the spectroscopic image corresponding to that wavelength. As a result, the object X imaged in the spectroscopic image at each wavelength is adjusted to have the same size (S4C).

<6C> 次に、画像処理実行部65が備えるスペクトル情報生成部604は、各波長において、それぞれ、拡大された分光画像すなわち倍率変換がなされた分光画像を、z軸方向に沿った光軸の中心を視野中心として、重ね合せることで分光スペクトル画像Ssamを得ることができる(S5C)。 <6C> Next, the spectrum information generation unit 604 included in the image processing execution unit 65 displays an enlarged spectroscopic image, that is, a spectroscopic image after magnification conversion, at each wavelength on the optical axis along the z-axis direction. A spectroscopic spectrum image Ssam can be obtained by superimposing the center as the center of the field (S5C).

なお、倍率が1の最小の波長における分光画像を基準として、倍率が1未満となっている他の波長における分光画像については、基準とする分光画像の外側に位置する領域をトリミングする。これにより、倍率変換がなされた各波長の分光画像を重ね合せることで得られる分光スペクトル画像Ssamを同視野の画像とすることができる。 It should be noted that, with respect to the spectroscopic image at the minimum wavelength of 1 and the spectroscopic image at other wavelengths having a magnification of less than 1, the region located outside the reference spectroscopic image is trimmed. As a result, the spectroscopic spectrum image Ssam obtained by superimposing the spectroscopic images of each wavelength after the magnification conversion can be made into an image of the same field of view.

<7C> 次いで、画像処理実行部65は、得られた撮像領域における分光スペクトル画像Ssamのうち、図20に示すような、位置決めすべき物品すなわち対象物Xと重なる第1点PT1における分光スペクトル画像Ssam(PT1)と、対象物Xが存在しない背景としての作業台8と重なる第2点PT2における分光スペクトル画像Ssam(PT2)とを取得する画像検査を実行する(S6C;図22参照)。 <7C> Next, the image processing execution unit 65 selects the spectral spectrum image at the first point PT1 that overlaps with the article to be positioned, that is, the object X, as shown in FIG. 20 of the obtained spectral spectrum image Ssam in the imaging region. An image inspection is performed to acquire the Ssam (PT1) and the spectral spectrum image Ssam (PT2) at the second point PT2 that overlaps the workbench 8 as the background in which the object X does not exist (S6C; see FIG. 22).

なお、分光スペクトル画像Ssamを取得する、第1点PT1および第2点PT2は、それぞれ、対象物Xと重なる位置および作業台8と重なる位置であれば、任意の位置であってよい。 The first point PT1 and the second point PT2 for acquiring the spectroscopic spectrum image Ssam may be at arbitrary positions as long as they overlap the object X and the workbench 8, respectively.

このように、対象物Xと重なる第1点PT1における分光スペクトル画像Ssam(PT1)と、対象物Xが存在しない背景としての作業台8と重なる第2点PT2における分光スペクトル画像Ssam(PT2)とを取得することにより、分光スペクトル画像Ssam中における、対象物Xと、対象物Xが存在しない背景とを検出することができる。 As described above, the spectroscopic spectrum image Ssam (PT1) at the first point PT1 overlapping the object X and the spectroscopic spectrum image Ssam (PT2) at the second point PT2 overlapping the workbench 8 as the background in which the object X does not exist. By acquiring the above, it is possible to detect the object X and the background in which the object X does not exist in the spectroscopic spectrum image Ssam.

<8C> 次いで、画像処理実行部65は、得られた対象物Xと重なる第1点PT1における分光スペクトル画像Ssam(PT1)と、作業台8と重なる第2点PT2における分光スペクトル画像Ssam(PT2)とに基づいて、最小の波長から最大の波長までにおいて、第1点PT1における分光スペクトル画像Ssam(PT1)の強度と、第2点PT2における分光スペクトル画像Ssam(PT2)の強度との差(Ssam(PT2)−Ssam(PT1))の大きさを算出する(S7C;図23参照)。 <8C> Next, the image processing execution unit 65 includes a spectral spectrum image Ssam (PT1) at the first point PT1 that overlaps the obtained object X and a spectral spectrum image Ssam (PT2) at the second point PT2 that overlaps the workbench 8. ), The difference between the intensity of the spectroscopic spectrum image Ssam (PT1) at the first point PT1 and the intensity of the spectroscopic spectrum image Ssam (PT2) at the second point PT2 from the minimum wavelength to the maximum wavelength () The size of Ssam (PT2) -Ssam (PT1)) is calculated (S7C; see FIG. 23).

<8C−1> まず、最小の波長において、第1点PT1における分光スペクトル画像Ssam(PT1)の強度と、第2点PT2における分光スペクトル画像Ssam(PT2)の強度との差(Ssam(PT2)−Ssam(PT1))の大きさを算出する。 <8C-1> First, at the minimum wavelength, the difference between the intensity of the spectral spectrum image Ssam (PT1) at the first point PT1 and the intensity of the spectral spectrum image Ssam (PT2) at the second point PT2 (Ssam (PT2)). −Ssam (PT1)) is calculated.

<8C−2> 次に、最小の波長における、差(Ssam(PT2)−Ssam(PT1))の算出の後に、最小の波長よりも長波長における分光スペクトル画像Ssam(PT1)、Ssam(PT2)が存在するか否かを判定する。すなわち、最小の波長の光から、選択された波長のピッチで、最大の波長の光となるまで、続けて、その波長の光における、差(Ssam(PT2)−Ssam(PT1))の大きさを算出し、最大の波長を超えた光となった時点で、その波長における差(Ssam(PT2)−Ssam(PT1))の大きさの算出を終了する。 <8C-2> Next, after calculating the difference (Ssam (PT2) -Ssam (PT1)) at the minimum wavelength, the spectral spectral images at wavelengths longer than the minimum wavelength Ssam (PT1), Ssam (PT2). Determines if is present. That is, the magnitude of the difference (Ssam (PT2) -Ssam (PT1)) in the light of that wavelength is continued from the light of the smallest wavelength to the light of the maximum wavelength at the pitch of the selected wavelength. Is calculated, and when the light exceeds the maximum wavelength, the calculation of the magnitude of the difference (Ssam (PT2) -Ssam (PT1)) at that wavelength is completed.

上記の通り、前記工程<8C−1>〜本工程<8C−2>を繰り返して実施することで、最小の波長から最大の波長までの、第1点PT1における分光スペクトル画像Ssam(PT1)の強度と、第2点PT2における分光スペクトル画像Ssam(PT2)の強度との差(Ssam(PT2)−Ssam(PT1))の大きさを特定することができる。 As described above, by repeating the steps <8C-1> to this step <8C-2>, the spectroscopic spectrum image Ssam (PT1) at the first point PT1 from the minimum wavelength to the maximum wavelength. The magnitude of the difference (Ssam (PT2) -Ssam (PT1)) between the intensity and the intensity of the spectroscopic spectrum image Ssam (PT2) at the second point PT2 can be specified.

一方、最大の波長を超えた大きさとなり、第1点PT1における第1分光スペクトル画像Ssam(PT1)と、第2点PT2における第2分光スペクトル画像Ssam(PT2) が存在しない場合には、前記工程<8C−1>〜本工程<8C−2>の繰り返しを終了し、次工程<9C>に移行する。 On the other hand, if the size exceeds the maximum wavelength and the first spectral spectrum image Ssam (PT1) at the first point PT1 and the second spectral spectrum image Ssam (PT2) at the second point PT2 do not exist, the above The repetition of the step <8C-1> to the main step <8C-2> is completed, and the process proceeds to the next step <9C>.

<9C> 次いで、画像処理実行部65は、特定された、最小の波長から最大の波長までの、第1点PT1における第1分光スペクトル画像Ssam(PT1)の強度と、第2点PT2における第2分光スペクトル画像Ssam(PT2)の強度とを比較して、これらの差(Ssam(PT2)−Ssam(PT1))のうち、差(Ssam(PT2)−Ssam(PT1))の大きさが予め定めた所定の値よりも大きな値、例えば最大の差(Ssam(PT2)−Ssam(PT1))maxとなるときの波長maxを特定する(S8C;図24参照)。 <9C> Next, the image processing execution unit 65 determines the intensity of the first spectroscopic spectrum image Ssam (PT1) at the first point PT1 and the second at the second point PT2 from the specified minimum wavelength to the maximum wavelength. 2 Spectroscopic spectrum image Compared with the intensity of Ssam (PT2), the magnitude of the difference (Ssam (PT2) -Ssam (PT1)) among these differences (Ssam (PT2) -Ssam (PT1)) is in advance. The wavelength max when a value larger than a predetermined value, for example, the maximum difference (Ssam (PT2) -Ssam (PT1)) max is obtained, is specified (S8C; see FIG. 24).

すなわち、対象物Xと、対象物Xの背景としての作業台8と、のコントラストが所定の値よりも高く(大きく)なる、すなわち高コントラストとなる波長maxを特定する。 That is, the wavelength max at which the contrast between the object X and the workbench 8 as the background of the object X becomes higher (larger) than a predetermined value, that is, the high contrast is specified is specified.

このように、差(Ssam(PT2)−Ssam(PT1))の大きさが最大の差(Ssam(PT2)−Ssam(PT1))maxとなる波長maxを特定して、この波長maxにおける分光画像を取得することで、図23と図24との比較の通り、対象物Xと作業台8とのコントラストを所定の値よりも高くすることができる。また、作業台8は、分光カメラ7を用いて取得された分光スペクトル画像Ssamにおいて、波長maxであるときのように、対象物Xとのコントラストが所定の値より大きいことが好ましい。それにより、波長maxにおける分光画像すなわち単色画像を用いることで、後述する取得工程において、対象物Xと背景としての作業台8との識別、すなわち、作業台8に設置された対象物Xの位置決めを優れた精度で実施することができる。 In this way, the wavelength max at which the magnitude of the difference (Ssam (PT2) -Ssam (PT1)) is the maximum difference (Ssam (PT2) -Ssam (PT1)) max is specified, and the spectroscopic image at this wavelength max is specified. As a comparison between FIGS. 23 and 24, the contrast between the object X and the workbench 8 can be made higher than a predetermined value. Further, it is preferable that the workbench 8 has a contrast with the object X larger than a predetermined value as in the case of the wavelength max in the spectroscopic spectrum image Ssam acquired by using the spectroscopic camera 7. As a result, by using the spectroscopic image at the wavelength max, that is, the monochromatic image, in the acquisition step described later, the object X and the workbench 8 as the background are identified, that is, the object X installed on the workbench 8 is positioned. Can be carried out with excellent accuracy.

<10C> 次に、画像処理実行部65は、第1点PT1における分光スペクトル画像Ssam(PT1)の強度と第2点PT2における分光スペクトル画像Ssam(PT2)の強度との差の大きさが最大となる差(Ssam(PT2)−Ssam(PT1))maxと、このときの波長maxの大きさとを、記憶部14に記憶させる。 <10C> Next, the image processing execution unit 65 has the largest difference between the intensity of the spectral spectrum image Ssam (PT1) at the first point PT1 and the intensity of the spectral spectrum image Ssam (PT2) at the second point PT2. The difference (Ssam (PT2) -Ssam (PT1)) max and the magnitude of the wavelength max at this time are stored in the storage unit 14.

以上のような検出工程、すなわち、工程<1C>〜工程<10C>を経ることで、差(Ssam(PT2)−Ssam(PT1))の大きさが最大となる差(Ssam(PT2)−Ssam(PT1))maxにおける波長maxを特定することができる。 By going through the above detection steps, that is, steps <1C> to <10C>, the difference (Ssam (PT2) -Ssam (PT1)) that maximizes the magnitude of the difference (Ssam (PT2) -Ssam) (PT1)) The wavelength max at max can be specified.

したがって、上記のような工程<1C>〜<10C>により、対象物Xのスペクトル情報を分光カメラ7を用いて取得した後に、このスペクトル情報において、対象物Xと、対象物Xの背景とを検出する画像検査を実行し、その後、対象物Xと、対象物Xの背景とのコントラストが所定の値よりも高くなる波長maxを特定する検出工程が構成される。 Therefore, after the spectral information of the object X is acquired by using the spectroscopic camera 7 in the above steps <1C> to <10C>, the object X and the background of the object X are obtained in this spectral information. An image inspection to be detected is executed, and then a detection step of specifying a wavelength max at which the contrast between the object X and the background of the object X becomes higher than a predetermined value is configured.

2.取得工程
次に、物品が存在している位置を決定する位置決め方法における取得工程について説明する。なお、この取得工程では、ロボットシステム100が備える制御装置1からパーソナルコンピューター3が脱着された状態で実施される。
2. 2. Acquisition step Next, the acquisition step in the positioning method for determining the position where the article is present will be described. In this acquisition step, the personal computer 3 is detached from the control device 1 included in the robot system 100.

また、取得工程では、位置決めすべき物品としての対象物Xの位置決めを、図20に示すように、作業台8上のSpectrum Match01に設置された対象物Xの任意の第1通過点と、作業台8の任意の第2通過点とを通る直線SLと、対象物Xと作業台8との境界である境界部BDとの交点であるエッジ点EPを検出することで実施されるが、以下、この取得工程について、詳述する。 Further, in the acquisition process, as shown in FIG. 20, the positioning of the object X as an article to be positioned is performed with an arbitrary first passing point of the object X installed on the Spectrum Match 01 on the workbench 8. It is carried out by detecting the edge point EP which is the intersection of the straight line SL passing through the arbitrary second passing point of the table 8 and the boundary portion BD which is the boundary between the object X and the workbench 8. , This acquisition process will be described in detail.

<1D> まず、図25に示すように、ユーザーは、制御装置1が備える入力装置62の操作により、取得工程を実施する分光画像処理部12を駆動させるプログラムを起動させた後、このプログラムの指示に従って、必要に応じて条件等の選択を行う(S1D)。 <1D> First, as shown in FIG. 25, the user activates a program for driving the spectroscopic image processing unit 12 that executes the acquisition process by operating the input device 62 included in the control device 1, and then the user of this program. According to the instructions, the conditions and the like are selected as necessary (S1D).

なお、プログラムの指示に従って入力する条件としては、例えば、分光カメラ7で取得する分光画像の波長、すなわち、前記検出工程で特定された波長max、対象物Xに対応する任意の第1通過点と作業台8に対応する任意の第2通過点とを通過する直線SLの指定等が挙げられる。 The conditions for inputting according to the instructions of the program include, for example, the wavelength of the spectroscopic image acquired by the spectroscopic camera 7, that is, the wavelength max specified in the detection step, and an arbitrary first passing point corresponding to the object X. Designation of a straight line SL passing through an arbitrary second passing point corresponding to the workbench 8 and the like can be mentioned.

<2D> 次いで、前記工程<1D>で指定された分光画像を取得すべき波長、すなわち、前記検出工程で特定された波長maxにおいて、分光カメラ7により対象物Xの分光画像すなわち単色画像を取得する(S2D)。 <2D> Next, at the wavelength at which the spectroscopic image specified in the step <1D> should be acquired, that is, the wavelength max specified in the detection step, the spectroscopic camera 7 acquires a spectroscopic image, that is, a monochromatic image of the object X. (S2D).

この波長maxにおける対象物Xの単色画像の取得に、本発明では、分光カメラ7が用いられる。そのため、RGBベイヤー配列のカラーフィルターを備えるRGBカメラを用いて、対象物Xの単色画像を取得した場合と比較して、高い解像度で単色画像を取得し得ることから、Spectrum Match01における対象物Xの位置決めを優れた精度で実施することができる。また、3板式のRGBカメラと比較して、分光カメラ7は、小型化が実現されたカメラであることから、ロボットシステム100を、小型化が図られたものとし得る。 In the present invention, the spectroscopic camera 7 is used to acquire a monochromatic image of the object X at the wavelength max. Therefore, since it is possible to acquire a monochromatic image with a higher resolution than when a monochromatic image of the object X is acquired by using an RGB camera equipped with a color filter of an RGB Bayer arrangement, the monochromatic image of the object X in Spectrum Match 01 can be acquired. Positioning can be performed with excellent accuracy. Further, since the spectroscopic camera 7 is a camera that has been miniaturized as compared with the three-panel RGB camera, the robot system 100 can be considered to have been miniaturized.

波長maxにおける対象物Xの単色画像を取得して、後工程<6D>において、対象物Xが配置された位置の位置決めを実施していることから、この位置決めされた位置を誤認定するのを的確に抑制または防止することができる。 Since a monochromatic image of the object X at the wavelength max is acquired and the position where the object X is arranged is positioned in the subsequent step <6D>, it is not possible to erroneously recognize the positioned position. It can be accurately suppressed or prevented.

<2D−1> まず、入力装置62における、ユーザーによる入力指示に従って、画像処理実行部65は、ロボット制御部11が備えるカメラポイント補正部102の作動により、シャフト241をz軸方向すなわち光軸方向に移動させることで、分光カメラ7を位置P0に配置させた後に、前記工程<1D>において設定された波長maxにおいて、分光カメラ7のフォーカスが合う位置に移動させる。 <2D-1> First, according to an input instruction by the user in the input device 62, the image processing execution unit 65 moves the shaft 241 in the z-axis direction, that is, the optical axis direction by the operation of the camera point correction unit 102 included in the robot control unit 11. After arranging the spectroscopic camera 7 at the position P0, the spectroscopic camera 7 is moved to a position where the spectroscopic camera 7 is in focus at the wavelength max set in the step <1D>.

<2D−2> 次いで、画像処理実行部65は、カメラ制御部60が備える分光制御部602の作動により、分光部41で透過される光の波長を、前記工程<1D>において設定された波長maxに設定する。 <2D-2> Next, the image processing execution unit 65 sets the wavelength of the light transmitted by the spectroscopic unit 41 by the operation of the spectroscopic control unit 602 included in the camera control unit 60 to the wavelength set in the step <1D>. Set to max.

<2D−3> 次いで、画像処理実行部65は、カメラ制御部60が備える分光画像取得部603の作動により、図26に示すように、Spectrum Match01の領域に配置された物品としての対象物Xが含まれるように、撮像素子71により分光画像を取得する。すなわち、波長maxにおける対象物Xの単色画像を取得する。 <2D-3> Next, the image processing execution unit 65 operates the spectral image acquisition unit 603 included in the camera control unit 60, and as shown in FIG. 26, the object X as an article arranged in the region of Spectrum Match 01. The spectroscopic image is acquired by the image sensor 71 so as to include. That is, a monochromatic image of the object X at the wavelength max is acquired.

<3D> 次に、画像処理実行部65は、前記工程<2D>で取得された分光カメラ7のフォーカスが合っている分光画像と、この分光画像が取得された光の波長が波長maxであることとを、記憶部14に記憶させる(S3D)。 <3D> Next, in the image processing execution unit 65, the wavelength max of the focused spectral image of the spectroscopic camera 7 acquired in the step <2D> and the light wavelength from which the spectroscopic image is acquired is the maximum wavelength. This is stored in the storage unit 14 (S3D).

<4D> 次いで、画像処理実行部65は、記憶部14から、光の波長が波長maxで取得された分光画像すなわち単色画像を入手し、図20、図26に示すように、この分光画像に、対象物Xと重なる任意の点である第1通過点と、作業台8と重なる任意の点である第2通過点とを通るサーチラインとしての直線SLを描画する(S4D)。 <4D> Next, the image processing execution unit 65 obtains a spectroscopic image, that is, a monochromatic image, in which the wavelength of light is acquired at the wavelength max from the storage unit 14, and displays the spectroscopic image as shown in FIGS. 20 and 26. , A straight line SL as a search line passing through a first passing point which is an arbitrary point overlapping the object X and a second passing point which is an arbitrary point overlapping the workbench 8 is drawn (S4D).

なお、直線SLを描画するための、第1通過点および第2通過点は、それぞれ、対象物Xに対応する位置および作業台8に対応する位置であれば、任意の位置であってよい。 The first passing point and the second passing point for drawing the straight line SL may be arbitrary positions as long as they are the positions corresponding to the object X and the positions corresponding to the workbench 8, respectively.

<5D> 次いで、画像処理実行部65は、光の波長が波長maxで取得された分光画像に基づいて、直線SLの基端から、直線SLの先端に向かって、波長maxで取得された分光画像の直線SL上に位置する各画素における強度すなわち輝度を順次読み取る(S5D)。 <5D> Next, the image processing execution unit 65 detects the spectrum acquired at the wavelength max from the base end of the straight line SL toward the tip of the straight line SL based on the spectroscopic image acquired at the wavelength max of the light wavelength. The intensity, that is, the brightness of each pixel located on the straight line SL of the image is sequentially read (S5D).

<5D−1> まず、波長maxで取得された分光画像の直線SLの基端上に位置する画素における強度を読み取る。 <5D-1> First, the intensity at the pixel located on the base end of the straight line SL of the spectroscopic image acquired at the wavelength max is read.

<5D−2> 次に、直線SLの基端上に位置する画素における強度の読み取りの後に、直線SLの基端上に位置する画素に先端側で隣接する画素における強度が存在するか否かを判定する。すなわち、直線SLの基端上に位置する画素から、先端上に位置する画素となるまで、続けて、隣接する画素における強度を読み取り、先端上に位置する画素を超えた時点で、その画素における強度の読み取りを終了する。 <5D-2> Next, after reading the intensity of the pixel located on the base end of the straight line SL, whether or not the intensity of the pixel located on the base end of the straight line SL exists in the pixel adjacent to the tip side. To judge. That is, the intensity of the adjacent pixel is continuously read from the pixel located on the base end of the straight line SL to the pixel located on the tip end, and when the pixel located on the tip end is exceeded, the pixel is used. Finish reading the intensity.

上記の通り、本工程<5D−2>を繰り返して実施することで、直線SLの基端上に位置する画素から先端上に位置する画素まで、隣接する画素における、波長maxで取得された分光画像の強度を読み取ることができる。 As described above, by repeating this step <5D-2>, the spectroscopy acquired at the wavelength max in the adjacent pixels from the pixel located on the base end of the straight line SL to the pixel located on the tip end. The intensity of the image can be read.

一方、直線SLの先端上に位置する画素を超えた場合には、本工程<5D−2>の繰り返しを終了し、次工程<6D>に移行する。 On the other hand, when the number of pixels located on the tip of the straight line SL is exceeded, the repetition of this step <5D-2> is ended, and the process proceeds to the next step <6D>.

<6D> 次いで、画像処理実行部65は、直線SL上の基端側に位置する画素における強度すなわち輝度をIT(n)とし、直線SL上の先端側で隣接する画素における強度をIT(n+1)としたとき、これらの差の絶対値|IT(n+1)−IT(n)|を算出する。そして、この差の絶対値|IT(n+1)−IT(n)|すなわち直線SL上の輝度の変化量すなわちコントラストが予め設定した閾値を超えたときに、この直線SL上に位置する画素を、対象物Xと作業台8との境界である境界部BDと直線SLとの交点であるエッジ点EPとして認定する(S6D;図26参照)。 <6D> Next, the image processing execution unit 65 sets the intensity, that is, the brightness of the pixel located on the base end side on the straight line SL to IT (n), and sets the intensity of the adjacent pixel on the tip end side on the straight line SL to IT (n + 1). ), The absolute value of these differences | IT (n + 1) -IT (n) | is calculated. Then, when the absolute value of this difference | IT (n + 1) -IT (n) |, that is, the amount of change in brightness on the straight line SL, that is, the contrast exceeds a preset threshold value, the pixels located on this straight line SL are displayed. It is certified as an edge point EP, which is the intersection of the boundary portion BD, which is the boundary between the object X and the workbench 8, and the straight line SL (S6D; see FIG. 26).

このエッジ点EPの特定により、対象物Xと、背景としての作業台8との境界部BDすなわち変化点が特定されることから、作業台8において物品としての対象物Xが配置された位置の位置決めが実施されることとなる。 By specifying the edge point EP, the boundary portion BD, that is, the change point between the object X and the workbench 8 as the background is specified, so that the position where the object X as an article is arranged on the workbench 8 is located. Positioning will be performed.

また、前記閾値は、例えば、前記検出工程で特定された波長maxにおける最大の差(Ssam(PT2)−Ssam(PT1))maxに基づいて算出することができ、差(Ssam(PT2)−Ssam(PT1))maxの80%であることが好ましく、90%であることがより好ましく、100%であることがさらに好ましい。これにより、エッジ点EPの特定をより優れた精度で実施することができる。 Further, the threshold value can be calculated based on, for example, the maximum difference (Ssam (PT2) -Ssam (PT1)) max at the wavelength max specified in the detection step, and the difference (Ssam (PT2) -Ssam). (PT1)) It is preferably 80% of max, more preferably 90%, and even more preferably 100%. As a result, the edge point EP can be specified with better accuracy.

上記の通り、前記絶対値|IT(n+1)−IT(n)|を算出することで直線SL上の隣り合う第1画素と第2画素との間において、輝度が高輝度から低輝度、または、低輝度から高輝度に変化しているか否かを知ることができる。したがって、前記絶対値|IT(n+1)−IT(n)|を算出することにより、直線SL上の隣接する画素同士間において、輝度が高輝度から低輝度、または、低輝度から高輝度に変化する位置、すなわち、変化点を見つけることができ、さらに、この変化点を見つけることで、対象物Xと作業台8との境界である境界部BDを特定することができる。また、変化点の認定は、輝度が高輝度から低輝度、または、低輝度から高輝度に変化するコントラストの大きさが予め設定した閾値を超えたときに行われる。換言すれば、変化点の認定は、第1画素の輝度と前記第2画素の輝度の差分である絶対値|IT(n+1)−IT(n)|の大きさが予め設定した閾値を超えたときに行われる。 As described above, by calculating the absolute value | IT (n + 1) -IT (n) |, the brightness is changed from high brightness to low brightness or between the adjacent first pixel and second pixel on the straight line SL. , It is possible to know whether or not the brightness has changed from low brightness to high brightness. Therefore, by calculating the absolute value | IT (n + 1) -IT (n) |, the brightness changes from high brightness to low brightness or from low brightness to high brightness between adjacent pixels on the straight line SL. The position to be used, that is, the change point can be found, and further, by finding this change point, the boundary portion BD which is the boundary between the object X and the workbench 8 can be specified. Further, the recognition of the change point is performed when the magnitude of the contrast at which the brightness changes from high brightness to low brightness or from low brightness to high brightness exceeds a preset threshold value. In other words, in the recognition of the change point, the magnitude of the absolute value | IT (n + 1) -IT (n) |, which is the difference between the brightness of the first pixel and the brightness of the second pixel, exceeds a preset threshold value. Sometimes done.

なお、差の絶対値|IT(n+1)−IT(n)|が前記閾値を超えることなく、エッジ点EPが特定されなかった場合には、本工程すなわち取得工程を終了し、前記検出工程に戻り、分光カメラ7で取得する分光スペクトル画像の波長領域を変更した後に、再度、検出工程と取得工程とを実施することで、エッジ点EPの特定を実施する。 If the absolute value of the difference | IT (n + 1) -IT (n) | does not exceed the threshold value and the edge point EP is not specified, this step, that is, the acquisition step is terminated and the detection step is performed. After returning and changing the wavelength region of the spectroscopic spectrum image acquired by the spectroscopic camera 7, the edge point EP is specified by performing the detection step and the acquisition step again.

<7D> 次に、画像処理実行部65は、直線SLで特定されたエッジ点EPを、記憶部14に記憶させる(S7D)。 <7D> Next, the image processing execution unit 65 stores the edge point EP specified by the straight line SL in the storage unit 14 (S7D).

以上のような取得工程、すなわち、工程<1D>〜工程<7D>を経ることで、直線SL上におけるエッジ点EPを特定すること、すなわち、作業台8上に設置された対象物Xの位置決めを実施することができる。 By going through the acquisition steps as described above, that is, steps <1D> to <7D>, the edge point EP on the straight line SL is specified, that is, the positioning of the object X installed on the workbench 8 is performed. Can be carried out.

したがって、上記のような工程<1D>〜<7D>により、前記コントラストが最も高くなる波長に基づいて、対象物Xの単色画像を取得した後に、この単色画像において、対象物Xと、対象物Xの背景としての作業台8との境界部を特定する取得工程が構成される。 Therefore, after acquiring a monochromatic image of the object X based on the wavelength at which the contrast is highest by the steps <1D> to <7D> as described above, in this monochromatic image, the object X and the object An acquisition process for specifying the boundary with the workbench 8 as the background of X is configured.

なお、上記の通り、1つのサーチライン上すなわち直線SL上におけるエッジ点EPを特定することで、作業台8における対象物Xの位置決めがなされるが、上記とは異なる第1通過点と第2通過点とを通過する少なくとも1つの直線SLを指定し、この直線SL上におけるエッジ点EPをさらに特定することで、作業台8における対象物Xの位置決めをより優れた精度で実施し得る。 As described above, by specifying the edge point EP on one search line, that is, on the straight line SL, the object X on the workbench 8 is positioned, but the first passing point and the second passing point are different from the above. By designating at least one straight line SL passing through the passing point and further specifying the edge point EP on this straight line SL, the positioning of the object X on the workbench 8 can be performed with better accuracy.

なお、本実施形態では、生産ラインで生産された、または、生産途中の物品としての対象物Xの表面性状を、ロボットシステム100を用いて検査する際に、作業台8のSpectrum Match01に設置された対象物Xの位置決めを、このロボットシステム100により実施する場合について説明したが、この場合に限らず、ロボットシステム100を用いた対象物Xの位置決めは、生産された物品のうち良品と判断されたものを梱包する際、または、生産途中の物品を次工程に移送する際に、ロボットが有するロボットアーム等により、物品をピックアップするときにおける物品の位置の検知にも適用し得る。 In the present embodiment, when the surface texture of the object X produced on the production line or as an article in the middle of production is inspected by using the robot system 100, it is installed on Spectrum Match 01 of the work table 8. The case where the positioning of the object X is performed by the robot system 100 has been described, but not limited to this case, the positioning of the object X using the robot system 100 is determined to be a good product among the produced articles. It can also be applied to the detection of the position of an article when the article is picked up by the robot arm or the like possessed by the robot when packing the article or when the article being produced is transferred to the next process.

以上、本発明の分光検査方法、分光画像処理装置およびロボットシステムを、図示の実施形態に基づいて説明したが、本発明はこれらに限定されるものでない。 The spectroscopic inspection method, the spectroscopic image processing apparatus, and the robot system of the present invention have been described above based on the illustrated embodiments, but the present invention is not limited thereto.

例えば、本発明のロボットシステムにおいて、各構成は、同様の機能を発揮し得る任意のものと置換することができ、あるいは、任意の構成のものを付加することができる。
また、本発明の分光検査方法において、任意の工程が追加されたものであってもよい。
For example, in the robot system of the present invention, each configuration can be replaced with any configuration capable of exhibiting similar functions, or any configuration can be added.
In addition, any step may be added to the spectroscopic inspection method of the present invention.

さらに、前記実施形態では、作業台に設置された対象物と、分光カメラとを、分光カメラの光軸方向に、相対的に移動させることで、分光カメラのフォーカスを対象物に一致させていたが、このフォーカスを一致させる方法は、これに限定されず、ロボットアームを固定した状態で、分光カメラが有するレンズと撮像素子との間の離間距離である焦点距離、すなわち、フォーカスを変更することによっても、技術的には可能である。 Further, in the above-described embodiment, the object installed on the workbench and the spectroscopic camera are relatively moved in the optical axis direction of the spectroscopic camera so that the focus of the spectroscopic camera is aligned with the object. However, the method of matching the focus is not limited to this, and the focal length, which is the distance between the lens and the image pickup element of the spectroscopic camera, that is, the focus is changed while the robot arm is fixed. It is also technically possible.

また、前記実施形態では、最大の差(Ssam(PT2)−Ssam(PT1))maxとなっている波長maxにおける対象物Xの単色画像を用いて、エッジ点EPすなわち境界部BDを特定することとしたが、最大の差(Ssam(PT2)−Ssam(PT1))maxよりも若干小さい差となっている波長における対象物Xの単色画像を用いたとしても、若干の精度の低下を招くものの、境界部BDを特定することは、技術的に可能である。 Further, in the above embodiment, the edge point EP, that is, the boundary portion BD is specified by using a monochromatic image of the object X at the wavelength max where the maximum difference (Ssam (PT2) -Ssam (PT1)) is max. However, even if a monochromatic image of the object X at a wavelength with a difference slightly smaller than the maximum difference (Ssam (PT2) -Ssam (PT1)) max is used, the accuracy will be slightly reduced. , It is technically possible to identify the boundary BD.

1…制御装置、2…ロボット、3…パーソナルコンピューター、7…分光カメラ、8…作業台、9…配管部材、11…ロボット制御部、12…分光画像処理部、13…表示制御部、14…記憶部、15…受付部、20…ロボットアーム、21…基台、22…第1アーム、23…第2アーム、24…作業ヘッド、25…駆動部、26…駆動部、27…駆動部、28…駆動部、29…角速度センサー、31…光源、35…表示装置、36…入力装置、41…分光部、45…静電アクチュエーター、51…回路基板、52…回路基板、60…カメラ制御部、61…表示装置、62…入力装置、65…分光処理実行部、71…撮像素子、81…分光部側光学系、83…撮像素子側光学系、100…ロボットシステム、101…プログラム実行部、102…カメラポイント補正部、200…ケーブル、220…筐体、230…筐体、231…底板、232…天板、233…側壁、234…傾斜部、241…シャフト、251…モーター、252…位置センサー、261…モーター、262…位置センサー、271…モーター、272…位置センサー、281…モーター、282…位置センサー、301…ロボット制御プログラム編集部、302…画像処理編集部、303…収差補正キャリブレーション実行部、410…固定基板、411…固定反射膜、412…固定電極、413…溝、414…接合膜、415…反射膜設置部、420…可動基板、421…可動反射膜、422…可動電極、423…溝、425…反射膜設置部、601…光源制御部、602…分光制御部、603…分光画像取得部、604…スペクトル情報生成部、605…倍率調整部、811…入射レンズ、812…投射レンズ、831…入出射レンズ、BD…境界部、EP…エッジ点、SL…直線、O1…第1回動軸、O2…第2回動軸、O3…第3回動軸、PT1…第1点、PT2…第2点、X…対象物 1 ... Control device, 2 ... Robot, 3 ... Personal computer, 7 ... Spectral camera, 8 ... Worktable, 9 ... Piping member, 11 ... Robot control unit, 12 ... Spectral image processing unit, 13 ... Display control unit, 14 ... Storage unit, 15 ... reception unit, 20 ... robot arm, 21 ... base, 22 ... first arm, 23 ... second arm, 24 ... work head, 25 ... drive unit, 26 ... drive unit, 27 ... drive unit, 28 ... drive unit, 29 ... angular velocity sensor, 31 ... light source, 35 ... display device, 36 ... input device, 41 ... spectroscopic unit, 45 ... electrostatic actuator, 51 ... circuit board, 52 ... circuit board, 60 ... camera control unit , 61 ... Display device, 62 ... Input device, 65 ... Spectral processing execution unit, 71 ... Imaging element, 81 ... Spectroscopic unit side optical system, 83 ... Imaging element side optical system, 100 ... Robot system, 101 ... Program execution unit, 102 ... Camera point correction unit, 200 ... Cable, 220 ... Housing, 230 ... Housing, 231 ... Bottom plate, 232 ... Top plate, 233 ... Side wall, 234 ... Inclined part, 241 ... Shaft, 251 ... Motor, 252 ... Position Sensor, 261 ... motor, 262 ... position sensor, 271 ... motor, 272 ... position sensor, 281 ... motor, 282 ... position sensor, 301 ... robot control program editorial department, 302 ... image processing editorial department, 303 ... aberration correction calibration Execution part, 410 ... Fixed substrate, 411 ... Fixed reflective film, 412 ... Fixed electrode, 413 ... Groove, 414 ... Bonding film, 415 ... Reflective film installation part, 420 ... Movable substrate, 421 ... Movable reflective film, 422 ... Movable electrode 423 ... Groove, 425 ... Reflective film installation unit, 601 ... Light source control unit, 602 ... Spectral control unit, 603 ... Spectral image acquisition unit, 604 ... Spectral information generation unit, 605 ... Magnification adjustment unit, 811 ... Incident lens, 812 ... Projection lens, 831 ... Input / output lens, BD ... Boundary, EP ... Edge point, SL ... Straight line, O1 ... First rotation axis, O2 ... Second rotation axis, O3 ... Third rotation axis, PT1 ... 1st point, PT2 ... 2nd point, X ... Object

Claims (9)

対象物のスペクトル情報を分光スペクトル画像として分光カメラを用いて取得し、前記分光スペクトル画像において、前記対象物と、前記対象物の背景とを検出する画像検査を実行し、前記対象物と、前記対象物の背景とのコントラストが所定の値より高い高コントラスト波長を特定する検出工程と、
前記高コントラスト波長を用いて、前記対象物の単色画像を取得し、前記単色画像において、前記対象物と前記対象物の背景との境界部を特定する取得工程とを有することを特徴とする分光検査方法。
The spectral information of the object is acquired as a spectroscopic spectrum image using a spectroscopic camera, and an image inspection for detecting the object and the background of the object is performed on the spectroscopic image, and the object and the object are described. A detection step that identifies a high contrast wavelength whose contrast with the background of the object is higher than a predetermined value,
Spectroscopy characterized by acquiring a monochromatic image of the object using the high contrast wavelength, and having an acquisition step of identifying a boundary portion between the object and the background of the object in the monochromatic image. Inspection method.
前記検出工程は、前記分光スペクトル画像において、前記対象物と重なる第1点における第1分光スペクトル情報と、前記対象物の背景と重なる第2点における第2分光スペクトル情報とを比較することで、前記高コントラスト波長を特定することを特徴とする請求項1に記載の分光検査方法。 The detection step compares the first spectral spectrum information at the first point overlapping with the object with the second spectral spectrum information at the second point overlapping with the background of the object in the spectral spectrum image. The spectroscopic inspection method according to claim 1, wherein the high contrast wavelength is specified. 前記取得工程は、前記単色画像において、前記対象物と重なる第1通過点と前記対象物の背景と重なる第2通過点とを結ぶ直線を設定し、前記直線上の輝度の変化点を検出することで前記境界部を特定することを特徴とする請求項1または2に記載の分光検査方法。 In the acquisition step, a straight line connecting a first passing point overlapping the object and a second passing point overlapping the background of the object is set in the monochromatic image, and a change point of brightness on the straight line is detected. The spectroscopic inspection method according to claim 1 or 2, wherein the boundary portion is specified. 前記変化点は、前記直線上の第1画素の輝度と、前記第1画素と隣り合う前記直線上の第2画素の輝度が、高輝度から低輝度、または、低輝度から高輝度に変化する位置であることを特徴とする請求項3に記載の分光検査方法。 At the change point, the brightness of the first pixel on the straight line and the brightness of the second pixel on the straight line adjacent to the first pixel change from high brightness to low brightness or from low brightness to high brightness. The spectroscopic inspection method according to claim 3, wherein the position is used. 前記変化点は、前記第1画素の輝度と前記第2画素の輝度の差分が所定の閾値より大きいことを特徴とする請求項4に記載の分光検査方法。 The spectroscopic inspection method according to claim 4, wherein the change point is such that the difference between the brightness of the first pixel and the brightness of the second pixel is larger than a predetermined threshold value. 前記差分が閾値を超えないとき、
前記分光カメラで取得する前記スペクトル情報の波長領域を変更し、前記検出工程と、前記取得工程とを、再度、実施することを特徴とする請求項5に記載の分光検査方法。
When the difference does not exceed the threshold
The spectroscopic inspection method according to claim 5, wherein the wavelength region of the spectral information acquired by the spectroscopic camera is changed, and the detection step and the acquisition step are performed again.
前記対象物は作業台に設置され、前記作業台は、前記分光カメラを用いて取得された前記分光スペクトル画像において、前記対象物とのコントラストが前記所定の値より大きいことを特徴とする請求項1ないし6のいずれか1項に記載の分光検査方法。 The object is installed on a workbench, and the workbench is characterized in that the contrast with the object is larger than the predetermined value in the spectroscopic spectrum image acquired by using the spectroscopic camera. The spectroscopic inspection method according to any one of 1 to 6. 対象物のスペクトル情報を分光スペクトル画像として取得する分光カメラと、前記分光カメラの駆動を制御する分光画像処理部とを有し、
前記分光画像処理部は、前記分光スペクトル画像を、前記分光カメラを用いて取得し、前記分光スペクトル画像において、前記対象物と、前記対象物の背景とを検出する画像検査を実行し、
検出した前記対象物と、前記対象物の背景とのコントラストが所定の値よりも高い高コントラスト波長を選択し、前記高コントラスト波長を用いて、前記対象物の単色画像を取得し、前記単色画像において、前記対象物と前記対象物の背景との境界部を特定するよう構成されていることを特徴とする分光画像処理装置。
It has a spectroscopic camera that acquires spectral information of an object as a spectroscopic spectral image, and a spectroscopic image processing unit that controls the driving of the spectroscopic camera.
The spectroscopic image processing unit acquires the spectroscopic spectrum image by using the spectroscopic camera, executes an image inspection for detecting the object and the background of the object in the spectroscopic image.
A high contrast wavelength in which the contrast between the detected object and the background of the object is higher than a predetermined value is selected, and a monochromatic image of the object is acquired using the high contrast wavelength to obtain the monochromatic image. A spectroscopic image processing apparatus, characterized in that it is configured to specify a boundary portion between the object and the background of the object.
ロボットアームと、
分光カメラと、
前記分光カメラを制御して分光スペクトル画像を取得する分光画像処理装置と、
前記分光スペクトル画像に基づいて、前記ロボットアームを制御するロボット制御装置と、を有し、
前記分光画像処理装置は、
対象物の前記分光スペクトル画像を、前記分光カメラを用いて取得し、前記分光スペクトル画像において、前記対象物と、前記対象物の背景とを検出する画像検査を実行し、
検出した前記対象物と、前記対象物の背景とのコントラストが所定の値よりも高い高コントラスト波長を選択し、前記高コントラスト波長を用いて、前記対象物の単色画像を取得し、前記単色画像において、前記対象物と前記対象物の背景との境界部を特定するよう構成されていることを特徴とするロボットシステム。
With the robot arm
With a spectroscopic camera
A spectroscopic image processing device that controls the spectroscopic camera to acquire a spectroscopic spectrum image,
A robot control device that controls the robot arm based on the spectroscopic spectrum image.
The spectroscopic image processing apparatus is
The spectroscopic spectrum image of the object is acquired by using the spectroscopic camera, and an image inspection for detecting the object and the background of the object in the spectroscopic spectrum image is performed.
A high contrast wavelength in which the contrast between the detected object and the background of the object is higher than a predetermined value is selected, and a monochromatic image of the object is acquired using the high contrast wavelength to obtain the monochromatic image. The robot system is configured to specify a boundary portion between the object and the background of the object.
JP2019059124A 2019-03-26 2019-03-26 Spectroscopic inspection method, spectroscopic image processing device, and robot system Pending JP2020159847A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019059124A JP2020159847A (en) 2019-03-26 2019-03-26 Spectroscopic inspection method, spectroscopic image processing device, and robot system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019059124A JP2020159847A (en) 2019-03-26 2019-03-26 Spectroscopic inspection method, spectroscopic image processing device, and robot system

Publications (1)

Publication Number Publication Date
JP2020159847A true JP2020159847A (en) 2020-10-01

Family

ID=72642813

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019059124A Pending JP2020159847A (en) 2019-03-26 2019-03-26 Spectroscopic inspection method, spectroscopic image processing device, and robot system

Country Status (1)

Country Link
JP (1) JP2020159847A (en)

Similar Documents

Publication Publication Date Title
TWI575626B (en) System and method for inspecting a wafer (4)
JP5342210B2 (en) Alignment apparatus control apparatus and alignment method
US8649591B2 (en) Pattern inspection apparatus and pattern inspection method
US20070103893A1 (en) Defect inspection device and substrate manufacturing system using the same
JP5119602B2 (en) Periodic pattern defect inspection method and defect inspection apparatus
JP2001281158A (en) Inspecting device and inspecting method for defect in wafer frame
JP2013527925A (en) Inspection apparatus and method for moving semiconductor wafer
JPWO2007141857A1 (en) Appearance inspection device
JP2008032433A (en) Substrate inspection device
KR20190088930A (en) Display Pixel Automatic Inspection System and method
JP2020165666A (en) Spectroscopic inspection method and spectroscopic inspection device
JP6085188B2 (en) Pattern inspection device
JP2006208084A (en) Inspection device for irregularities in cyclic pattern
JP7247700B2 (en) Spectral camera device and inspection system
JP6939640B2 (en) Image inspection equipment and image inspection method
KR101652355B1 (en) optical apparatus for examining pattern image of semiconductor wafer
JP2020159847A (en) Spectroscopic inspection method, spectroscopic image processing device, and robot system
US20090010525A1 (en) Method and apparatus for detecting positions of electrode pads
JP2020153826A (en) Spectroscopic inspection method, spectroscopic image processing device, and robot system
JP2020159832A (en) Spectroscopic inspection method and inspection system
JP2001343907A (en) Laser repair device and production method for display cell
JP4850014B2 (en) Spectrophotometric system and method for correcting illumination light source position of the system
JP2000002514A (en) Film thickness measuring apparatus, alignment sensor and alignment apparatus
JP5316924B2 (en) Observation apparatus and observation method
US20220238396A1 (en) Laser repair method and laser repair device