JP2017032360A - Image inspection device, image inspection method and image inspection program - Google Patents

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

Info

Publication number
JP2017032360A
JP2017032360A JP2015151259A JP2015151259A JP2017032360A JP 2017032360 A JP2017032360 A JP 2017032360A JP 2015151259 A JP2015151259 A JP 2015151259A JP 2015151259 A JP2015151259 A JP 2015151259A JP 2017032360 A JP2017032360 A JP 2017032360A
Authority
JP
Japan
Prior art keywords
image data
inspection
setting
mode
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2015151259A
Other languages
Japanese (ja)
Inventor
晋也 高橋
Shinya Takahashi
晋也 高橋
和毅 名取
Kazuki Natori
和毅 名取
剛仁 寺口
Takehito Teraguchi
剛仁 寺口
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.)
Keyence Corp
Original Assignee
Keyence 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 Keyence Corp filed Critical Keyence Corp
Priority to JP2015151259A priority Critical patent/JP2017032360A/en
Publication of JP2017032360A publication Critical patent/JP2017032360A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Analysis (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Processing (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image inspection device and image inspection method that can easily and correctly inspect a shape of an object.SOLUTION: In a setting mode, texture image data on a setting object and height image data thereon are acquired, and one of the texture image data and height image data is selected by an operation and the like of an image selection operation unit 461. The selected image is registered as reference image data for the selected image data to be positioned. In an inspection mode, texture image data on an inspection object and height image data are acquired. Image data corresponding to the registered reference image data are set as positioning image data. By pattern matching, positioning image is positioned to the reference image data, and thereby the texture image data and height image data about the inspection object are positioned. On the basis of the positioned image data, an inspection of the inspection object is implemented.SELECTED DRAWING: Figure 13

Description

本発明は、画像データを用いて検査対象物の検査を行う画像検査装置、画像検査方法および画像検査プログラムに関する。   The present invention relates to an image inspection apparatus, an image inspection method, and an image inspection program for inspecting an inspection object using image data.

従来より、対象物を撮像することにより得られる画像データに基づいて対象物の形状を計測可能な画像計測装置がある(例えば、特許文献1,2参照)。画像計測装置においては、例えばステージ上に載置された対象物が、ステージの上方に配置された撮像装置により撮像される。撮像により得られる画像データに基づいて、対象物の形状が計測される。   Conventionally, there is an image measurement device capable of measuring the shape of an object based on image data obtained by imaging the object (see, for example, Patent Documents 1 and 2). In the image measuring device, for example, an object placed on a stage is imaged by an imaging device arranged above the stage. Based on the image data obtained by imaging, the shape of the object is measured.

画像計測装置を用いて対象物の形状を計測し、計測結果が許容範囲(公差)内にあるか否かを判定することにより対象物の検査を行うことが可能になる。   It is possible to inspect the object by measuring the shape of the object using the image measuring device and determining whether the measurement result is within an allowable range (tolerance).

特開平11−132740号公報Japanese Patent Laid-Open No. 11-132740 特開2010−169584号公報JP 2010-169584 A

特許文献1,2に記載された画像計測装置においては、二次元の画像に対応する画像データに基づいて対象物の形状が計測される。一方、近年では、三角測距方式の画像計測装置が提案されている。三角測距方式の画像計測装置では、ステージ上に載置された対象物の表面に光が照射され、その反射光が1次元または2次元に配列された画素を有する受光素子により受光される。受光素子により得られる受光量分布のピーク位置に基づいて、対象物の表面の高さを計測することができる。したがって、対象物の高さについても検査を行うことが可能になる。   In the image measurement devices described in Patent Documents 1 and 2, the shape of the object is measured based on image data corresponding to a two-dimensional image. On the other hand, in recent years, a triangulation image measuring apparatus has been proposed. In a triangulation type image measuring apparatus, light is irradiated on the surface of an object placed on a stage, and the reflected light is received by a light receiving element having pixels arranged one-dimensionally or two-dimensionally. Based on the peak position of the received light amount distribution obtained by the light receiving element, the height of the surface of the object can be measured. Therefore, it is possible to inspect also the height of the object.

対象物の検査を行う場合、画像計測装置の使用者は、例えば撮像により得られた対象物の画像から検査すべき部分を指定する必要がある。このとき、使用者により指定される部分が検査すべき部分からずれていると、正確な検査結果を得ることはできない。   When inspecting an object, the user of the image measuring device needs to specify a portion to be inspected from an image of the object obtained by imaging, for example. At this time, if the portion designated by the user is shifted from the portion to be inspected, an accurate inspection result cannot be obtained.

熟練していない検査作業者が複数の対象物を検査する場合、複数の対象物について検査すべき部分を正確に指定することは難しい。また、熟練した検査作業者であっても、検査すべき部分が対象物の外観上認識されにくい場合には、正確な作業が難しい。このように、画像計測装置を用いた対象物の検査は、熟練を要するとともに正確な作業が難しい。   When an unskilled inspection worker inspects a plurality of objects, it is difficult to accurately specify a portion to be inspected for the plurality of objects. Moreover, even if it is a skilled test | inspection operator, when the part which should be test | inspected is hard to recognize on the external appearance of a target object, exact work is difficult. Thus, inspection of an object using an image measuring device requires skill and is difficult to perform accurately.

本発明の目的は、対象物の形状を容易かつ正確に検査することが可能な画像検査装置、画像検査方法および画像検査プログラムを提供することである。   An object of the present invention is to provide an image inspection apparatus, an image inspection method, and an image inspection program capable of easily and accurately inspecting the shape of an object.

(1)第1の発明に係る画像検査装置は、測定対象物が載置されるステージと、ステージに載置された測定対象物の表面のテクスチャ画像を表す第1の画像データを取得する第1の画像データ取得手段と、ステージに載置された測定対象物の表面の高さ画像を表す第2の画像データを取得する第2の画像データ取得手段と、検査のための設定を行う設定モードと検査を実行する検査モードとで制御動作を行う制御手段と、表示手段とを備え、制御手段は、設定モードにおいて、ステージに測定対象物として設定用対象物が載置された状態で、設定用対象物の計測対象部分の寸法を計測するための第2の画像データを取得するように第2の画像データ取得手段に指令を与える第1の取得指令手段と、設定モードにおいて、ステージに設定用対象物が載置された状態で、第1および第2の画像データのうち選択されたまたは選択されることになる位置合わせのための画像データを取得するように第1または第2の画像データ取得手段に指令を与える第2の取得指令手段と、設定モードにおいて、第2の取得指令手段の指令により取得された画像データを位置合わせのための基準画像データとして登録する第1の登録手段と、設定モードにおいて、第1の取得指令手段の指令により取得された第2の画像データに基づいて、設定用対象物の計測対象部分の高さ方向に成分を持つ寸法を計測する第1の計測手段と、設定モードにおいて、設定用対象物の計測対象部分の設計値および公差のうち少なくとも一方の値の入力を受け付ける受け付け手段と、検査モードにおいて、ステージに測定対象物として検査対象物が載置された状態で、検査対象物の計測対象部分の寸法を計測するための第2の画像データを取得するように第2の画像データ取得手段に指令を与える第3の取得指令手段と、検査モードにおいて、ステージに検査対象物が載置された状態で、第1の登録手段により登録された基準画像データに対応する位置合わせのための画像データを取得するように第1または第2の画像データ取得手段に指令を与える第4の取得指令手段と、検査モードにおいて、第4の取得指令手段の指令により取得された画像データを位置合わせ用画像データとして登録する位置合わせ用画像データ登録手段と、検査モードにおいて、パターンマッチングにより位置合わせ用画像データと基準画像データとを位置合わせすることにより、第3の取得指令手段の指令により取得された第2の画像データの位置合わせを行う第1の位置合わせ手段と、検査モードにおいて、第1の位置合わせ手段により位置合わせされた第2の画像データに基づいて、設定用対象物の計測対象部分に対応する検査対象物の計測対象部分の高さ方向に成分を持つ寸法を計測する第2の計測手段と、検査モードにおいて、第1の計測手段により計測された寸法、および第2の計測手段により計測された寸法、ならびに受け付け手段により受け付けられた設計値および公差のうち少なくとも一方の値、に基づいて検査対象物の良否を判定する判定手段と、検査モードにおいて、判定手段により判定された判定結果を表示するように表示手段に指令を与える第1の表示指令手段とを含む。   (1) An image inspection apparatus according to a first invention acquires a first image data representing a stage on which a measurement object is placed and a texture image of a surface of the measurement object placed on the stage. 1 image data acquisition means, second image data acquisition means for acquiring second image data representing the height image of the surface of the measurement object placed on the stage, and settings for performing settings for inspection A control means for performing a control operation in the mode and the inspection mode for executing the inspection, and a display means, the control means in the setting mode in a state where the setting object is placed on the stage as a measurement object, First acquisition command means for giving a command to the second image data acquisition means so as to acquire second image data for measuring the dimension of the measurement target portion of the setting target object; Target for setting The first or second image data acquisition means so as to acquire the image data for alignment selected or to be selected from the first and second image data in a state where is mounted A second acquisition command means for giving a command to the first registration means, a first registration means for registering the image data acquired by the command of the second acquisition command means as reference image data for alignment in the setting mode; First measurement means for measuring a dimension having a component in the height direction of the measurement target portion of the setting object based on the second image data acquired by the command of the first acquisition command means in the mode; Receiving means for receiving at least one of a design value and a tolerance of the measurement target portion of the setting target object in the setting mode; In a state where the inspection object is placed as an object, a third command is given to the second image data acquisition means so as to acquire the second image data for measuring the dimension of the measurement target portion of the inspection object. In the inspection mode, the image data for alignment corresponding to the reference image data registered by the first registration unit is acquired in a state where the inspection object is placed on the stage in the inspection mode. A fourth acquisition command means for giving a command to the first or second image data acquisition means, and a position for registering the image data acquired by the command of the fourth acquisition command means as registration image data in the inspection mode. A third image is obtained by aligning the alignment image data and the reference image data by pattern matching in the alignment image data registration means and the inspection mode. Based on the first alignment means for aligning the second image data acquired by the instruction of the acquisition instruction means, and the second image data aligned by the first alignment means in the inspection mode. The second measuring means for measuring a dimension having a component in the height direction of the measurement target portion of the inspection target object corresponding to the measurement target portion of the setting target object, and the first measurement means in the inspection mode. A determination means for determining the quality of the inspection object based on the measured dimensions, the dimensions measured by the second measuring means, and at least one of the design value and the tolerance received by the receiving means, and an inspection mode And a first display command means for giving a command to the display means to display the determination result determined by the determination means.

この画像検査装置においては、検査のための設定を行う設定モードと検査を実行する検査モードとで制御動作が行われる。設定モード時に、設定作成者が測定対象物として設定用対象物をステージに載置する。設定モードにおいては、ステージに設定用対象物が載置された状態で、計測対象部分の寸法計測のための第2の画像データが取得される。また、第1および第2の画像データのうち位置合わせのために選択されたまたは選択されることになる画像データが取得される。ここで、第1の画像データは設定用対象物の表面のテクスチャ画像を表し、第2の画像データは設定用対象物の表面の高さ画像を表す。位置合わせのために選択された画像データが位置合わせのための基準画像データとして登録される。取得された寸法計測のための第2の画像データに基づいて、設定用対象物の計測対象部分の高さ方向に成分を持つ寸法が計測される。設定用対象物の計測対象部分の設計値および公差のうち少なくとも一方の入力が受け付けられる。   In this image inspection apparatus, control operations are performed in a setting mode for setting for inspection and an inspection mode for executing inspection. In the setting mode, the setting creator places a setting object as a measurement object on the stage. In the setting mode, the second image data for measuring the dimension of the measurement target portion is acquired in a state where the setting object is placed on the stage. Further, image data selected or to be selected for alignment among the first and second image data is acquired. Here, the first image data represents a texture image of the surface of the setting object, and the second image data represents a height image of the surface of the setting object. Image data selected for alignment is registered as reference image data for alignment. Based on the acquired second image data for dimension measurement, a dimension having a component in the height direction of the measurement target portion of the setting object is measured. At least one of the design value and tolerance of the measurement target portion of the setting object is accepted.

検査モード時に、検査作業者が測定対象物として検査対象物をステージに載置する。検査モードにおいては、ステージに検査対象物が載置された状態で、計測対象部分の寸法計測のための第2の画像データが取得される。また、第1および第2の画像データのうち、登録された基準画像データに対応する位置合わせのための画像データが取得される。取得された位置合わせのための画像データが位置合わせ用画像データとして登録される。パターンマッチングにより位置合わせ用データと基準画像データとが位置合わせされることにより、検査対象物についての寸法計測のための第2の画像データの位置合わせが行われる。位置合わせされた第2の画像データに基づいて、設定用対象物の計測対象部分に対応する検査対象物の計測対象部分の高さ方向に成分を持つ寸法が計測される。設定用対象物について計測された寸法、および検査対象物について計測された寸法、ならびに受け付けられた設計値および公差のうち少なくとも一方の値、に基づいて検査対象物の良否が判定される。判定された判定結果が表示手段に表示される。   In the inspection mode, the inspection operator places the inspection object on the stage as the measurement object. In the inspection mode, the second image data for measuring the dimension of the measurement target portion is acquired in a state where the inspection target is placed on the stage. In addition, image data for alignment corresponding to the registered reference image data is acquired from the first and second image data. The acquired image data for alignment is registered as alignment image data. By aligning the alignment data and the reference image data by pattern matching, the alignment of the second image data for measuring the dimension of the inspection object is performed. Based on the aligned second image data, a dimension having a component in the height direction of the measurement target portion of the inspection target corresponding to the measurement target portion of the setting target is measured. The quality of the inspection object is determined based on the dimension measured for the setting object, the dimension measured for the inspection object, and at least one of the received design value and tolerance. The determined determination result is displayed on the display means.

この構成によれば、検査モードにおいて取得される検査対象物についての寸法計測のための第2の画像データは、設定モードにおいて取得された設定用対象物についての第1または第2の画像データに高い精度でそれぞれ位置合わせされる。そのため、設定モードにおいて計測された設定用対象物の計測対象部分に対応する検査対象物の計測対象部分の寸法を検査モードにおいて高い精度で計測することが可能になる。これにより、検査作業者が熟練していない場合であっても、検査モードにおいて複数の検査対象物について所望の計測対象部分の寸法を計測することができる。その結果、検査対象物の形状を容易にかつ正確に検査することができる。   According to this configuration, the second image data for measuring the dimensions of the inspection object acquired in the inspection mode is the first or second image data of the setting object acquired in the setting mode. Each is aligned with high accuracy. Therefore, the dimension of the measurement target portion of the inspection target corresponding to the measurement target portion of the setting target measured in the setting mode can be measured with high accuracy in the inspection mode. Thereby, even if it is a case where an inspection worker is not skilled, the dimension of a desired measurement object part can be measured about a plurality of inspection objects in inspection mode. As a result, the shape of the inspection object can be inspected easily and accurately.

(2)画像検査装置は、第1および第2の画像データのうちいずれか一方を選択するために操作される第1の操作手段をさらに備え、第1の登録手段は、第1の操作手段の操作により選択された画像データを基準画像データとして登録してもよい。   (2) The image inspection apparatus further includes a first operation unit operated to select either one of the first and second image data, and the first registration unit is a first operation unit. The image data selected by the above operation may be registered as reference image data.

この場合、第1および第2の画像データのうちいずれかの画像データを基準画像データとして選択することができる。検査対象物の表面のテクスチャ画像および表面の高さ画像に応じて基準画像データを適切に選択することにより、検査対象物についての第2の画像データをそれぞれ設定用対象物についての第1または第2の画像データに高い精度で位置合わせすることができる。その結果、複数の検査対象物について所望の計測対象部分の寸法を高い精度で計測することができる。   In this case, any one of the first and second image data can be selected as the reference image data. By appropriately selecting the reference image data according to the texture image of the surface of the inspection object and the height image of the surface, the second image data for the inspection object is set to the first or the second for the setting object, respectively. It is possible to align the second image data with high accuracy. As a result, it is possible to measure the dimensions of a desired measurement target portion for a plurality of inspection objects with high accuracy.

(3)画像検査装置は、第1または第2の画像データから任意の特徴部分を指定するために操作される第2の操作手段をさらに備え、制御手段は、設定モードにおいて、ステージに設定用対象物が載置された状態で、第2の操作手段による特徴部分の指定のために第1または第2の画像データを取得するように第1または第2の画像データ取得手段に指令を与える第5の取得指令手段と、設定モードにおいて、第5の取得指令手段の指令により取得される画像データから第2の操作手段の操作により指定された特徴部分を登録する第2の登録手段と、検査モードにおいて、ステージに検査対象物が載置された状態で、第5の取得指令手段の指令により取得される画像データに対応する画像データを取得するように第1または第2の画像データ取得手段に指令を与える第6の取得指令手段とをさらに含み、第1の位置合わせ手段は、検査モードにおいて、パターンマッチングにより位置合わせ用画像データと基準画像データとを位置合わせした後、第2の登録手段により登録された特徴部分と第6の取得指令手段の指令により取得される画像データとに基づいて第3の取得指令手段の指令により取得される画像データの位置合わせを行ってもよい。   (3) The image inspection apparatus further includes a second operation unit operated to designate an arbitrary feature portion from the first or second image data, and the control unit is for setting the stage in the setting mode. A command is given to the first or second image data acquisition means so as to acquire the first or second image data for designating the characteristic portion by the second operation means in a state where the object is placed. A second registration means for registering a feature portion designated by the operation of the second operation means from the image data obtained by the instruction of the fifth acquisition instruction means in the setting mode; In the inspection mode, the first or second image data is acquired so as to acquire image data corresponding to the image data acquired by the command of the fifth acquisition command means in a state where the inspection object is placed on the stage. And sixth acquisition command means for giving a command to the obtaining means. The first alignment means aligns the image data for alignment and the reference image data by pattern matching in the inspection mode, and then The image data acquired by the command of the third acquisition command unit may be aligned based on the feature portion registered by the registration unit and the image data acquired by the command of the sixth acquisition command unit. .

この場合、設定モードにおいて、特徴部分の指定のための画像データが取得される。取得された画像データから第2の操作手段の操作により特徴部分が指定される。また、検査モードにおいて、特徴部分の指定のための画像データに対応する画像データが取得される。第2の操作手段により指定された特徴部分および特徴部分の指定のための画像データに対応する検査対象物の画像データに基づいて、検査対象物についての第2の画像データをそれぞれ設定用対象物についての第1または第2の画像データにより高い精度で位置合わせすることができる。その結果、複数の検査対象物について所望の計測対象部分の寸法をより高い精度で計測することができる。   In this case, in the setting mode, image data for designating the feature portion is acquired. A characteristic portion is designated by the operation of the second operation means from the acquired image data. In the inspection mode, image data corresponding to the image data for designating the characteristic portion is acquired. Based on the feature portion specified by the second operation means and the image data of the inspection subject corresponding to the image data for designating the feature portion, the second image data for the inspection subject is set as the setting subject, respectively. The first or second image data for can be aligned with high accuracy. As a result, it is possible to measure the dimensions of a desired measurement target part with a higher accuracy for a plurality of inspection objects.

(4)第1および前記第2の画像データ取得手段は、共通の軸上から第1および第2の画像データをそれぞれ取得するように配置されてもよい。   (4) The first and second image data acquisition means may be arranged so as to acquire the first and second image data from a common axis, respectively.

この場合、第1の画像データの部分と第2の画像データの部分とを容易に対応付けることができる。そのため、第1および第2の画像データのいずれかを位置合わせのための画像データとして選択的に用いるための構成を単純化することができる。   In this case, the first image data portion and the second image data portion can be easily associated with each other. Therefore, it is possible to simplify the configuration for selectively using either the first image data or the second image data as image data for alignment.

(5)画像検査装置は、第2の画像データ取得手段により取得された第2の画像データにおいて、任意の基準面を指定するために操作される第3の操作手段をさらに備え、制御手段は、設定モードにおいて、第3の操作手段の操作により指定された基準面を登録する第3の登録手段をさらに含み、第2の画像データ取得手段は、測定対象物の表面の各部分の位置が第3の登録手段により登録された基準面に直交する方向において基準面からの距離を表すように、取得した第2の画像データを補正してもよい。   (5) The image inspection apparatus further includes third operation means operated to designate an arbitrary reference plane in the second image data acquired by the second image data acquisition means, and the control means includes The setting mode further includes third registration means for registering the reference plane designated by the operation of the third operation means, wherein the second image data acquisition means is configured such that the position of each part of the surface of the measurement object is The acquired second image data may be corrected so as to represent the distance from the reference plane in a direction orthogonal to the reference plane registered by the third registration means.

この場合、補正された第2の画像データに基づいて、基準面に直交する方向における基準面からの測定対象物の表面の各部分の位置を容易に認識することができる。   In this case, based on the corrected second image data, the position of each part of the surface of the measurement object from the reference plane in the direction orthogonal to the reference plane can be easily recognized.

(6)画像検査装置は、パターンマッチングのための探索範囲を指定するために操作される第4の操作手段をさらに備え、第1の位置合わせ手段は、検査モードにおいて、第4の操作手段の操作により指定された探索範囲内でパターンマッチングにより位置合わせ用画像データと基準画像データとの位置合わせを行ってもよい。   (6) The image inspection apparatus further includes a fourth operation unit operated to designate a search range for pattern matching, and the first alignment unit is configured such that in the inspection mode, the fourth operation unit The alignment image data and the reference image data may be aligned by pattern matching within the search range designated by the operation.

この場合、パターンマッチングを行う探索範囲が指定されるので、位置合わせ用画像データを基準画像データに短時間で位置合わせすることができる。   In this case, since the search range for performing pattern matching is designated, the image data for alignment can be aligned with the reference image data in a short time.

探索範囲は、探索領域および探索角度の少なくとも一方を含んでもよい。この場合、パターンマッチングを行う探索領域および探索角度の少なくとも一方が指定されるので、位置合わせ用画像データを基準画像データに短時間で効率よく位置合わせすることができる。   The search range may include at least one of a search region and a search angle. In this case, since at least one of the search area and the search angle for pattern matching is designated, the alignment image data can be efficiently aligned with the reference image data in a short time.

(7)制御手段は、設定モードにおいて、第1の画像データに基づく画像および第2の画像データに基づく画像のうち少なくとも一方の画像を表示するように表示手段に指令を与える第2の表示指令手段をさらに含んでもよい。   (7) In the setting mode, the control means provides a second display command for giving a command to the display means to display at least one of the image based on the first image data and the image based on the second image data. Means may further be included.

この場合、設定モードにおいて登録するべき基準画像データとして第1および第2のいずれかの画像データを選択する際に、第1の画像データに基づく画像および第2の画像データに基づく画像のうち少なくとも一方を表示手段に表示させることが可能になる。そのため、設定作成者は、表示手段に表示された画像を視認しつつ登録するべき基準画像データを適切に選択することができる。   In this case, when selecting any one of the first and second image data as the reference image data to be registered in the setting mode, at least one of the image based on the first image data and the image based on the second image data. One can be displayed on the display means. Therefore, the setting creator can appropriately select the reference image data to be registered while viewing the image displayed on the display unit.

(8)画像検査装置は、測定対象物の表面のテクスチャ画像を表す第1の標本画像データおよび測定対象物の表面の高さ画像を表す第2の標本画像データを予め記憶する記憶手段をさらに備え、制御手段は、設定モードにおいて、パターンマッチングにより基準画像データを第1および第2の標本画像データのうち対応する標本画像データと比較する第2の位置合わせ手段と、設定モードにおいて、第2の位置合わせ手段による比較結果を表示するように表示手段に指令を与える第3の表示指令手段とをさらに含んでもよい。   (8) The image inspection apparatus further includes a storage unit that stores in advance first specimen image data representing a texture image of the surface of the measurement object and second specimen image data representing a height image of the surface of the measurement object. And the control means includes a second alignment means for comparing the reference image data with the corresponding specimen image data among the first and second specimen image data by pattern matching in the setting mode, and a second positioning means in the setting mode. And a third display command means for giving a command to the display means so as to display the comparison result by the positioning means.

この場合、設定モードにおいて、登録された基準画像データと、当該基準画像データ対応する標本画像データとの比較結果が表示手段に表示される。そのため、設定作成者は、表示手段に表示された比較結果を視認することにより、登録された基準画像データを位置合わせのために用いることができるか否かを判断することができる。   In this case, in the setting mode, the comparison result between the registered reference image data and the sample image data corresponding to the reference image data is displayed on the display means. Therefore, the setting creator can determine whether or not the registered reference image data can be used for alignment by visually recognizing the comparison result displayed on the display means.

(9)制御手段は、設定モードにおいて、ステージに設定用対象物が載置された状態で、位置決めのための第1または第2の画像データを取得するように第1または第2の画像データ取得手段に指令を与える第7の取得指令手段と、設定モードにおいて、第7の取得指令手段の指令により取得された画像データに基づいて、設定用対象物の位置および姿勢を示す位置決め用画像データを登録する第4の登録手段と、検査モードにおいて、第4の登録手段により登録された位置決め用画像データに基づく位置決め用画像により示される設定用対象物の位置および姿勢に検査対象物の位置および姿勢をそれぞれ近づけるように誘導を行う誘導手段とをさらに含んでもよい。   (9) In the setting mode, the control means obtains the first or second image data for positioning in a state where the setting object is placed on the stage. Seventh acquisition command means for giving a command to the acquisition means, and positioning image data indicating the position and orientation of the setting object based on the image data acquired by the command of the seventh acquisition command means in the setting mode In the inspection mode, the position of the inspection object and the position and posture of the setting object indicated by the positioning image based on the positioning image data registered by the fourth registration means in the inspection mode Guidance means for performing guidance so that the postures may approach each other may be further included.

この場合、設定モードにおいて、位置決めのための画像データが取得され、設定用対象物の位置および姿勢を示す位置決め用画像データが登録される。位置決め用画像データに基づく位置決め用画像データは、設定用対象物の位置および姿勢を示す。そのため、検査モードにおいて、位置決め用画像データに基づいて検査対象物の位置および姿勢を設定用対象物の位置および姿勢にそれぞれ近づけるように誘導を行うことが可能になる。これにより、検査対象物についての第2の画像データを設定用対象物についての第1または第2の画像データに高い精度でそれぞれ位置合わせすることが容易になる。その結果、検査対象物の形状をより容易にかつ正確に検査することができる。   In this case, in the setting mode, image data for positioning is acquired, and positioning image data indicating the position and orientation of the setting object is registered. The positioning image data based on the positioning image data indicates the position and orientation of the setting object. Therefore, in the inspection mode, guidance can be performed so that the position and orientation of the inspection object are close to the position and orientation of the setting object based on the positioning image data. Accordingly, it becomes easy to align the second image data for the inspection object with the first or second image data for the setting object with high accuracy. As a result, the shape of the inspection object can be inspected more easily and accurately.

(10)制御手段は、設定モードにおいて、ステージに設定用対象物が載置された状態で、位置決めのための第1または第2の画像データを取得するように第1または第2の画像データ取得手段に指令を与える第7の取得指令手段と、設定モードにおいて、第7の取得指令手段の指令により取得された画像データに基づいて、設定用対象物の位置および姿勢を示す位置決め用画像データを登録する第4の登録手段と、検査モードにおいて、第4の取得指令手段による指令の前に、ステージに検査対象物が載置された状態で、位置決めのための第1または第2の画像データを取得するように第1または第2の画像データ取得手段に指令を与える第8の取得指令手段とをさらに含み、検査モードにおいて、位置決め用画像データに基づく位置決め用画像を表示するとともに第8の取得指令手段の指令により取得された画像データに基づいて検査対象物の画像を表示するように表示手段に指令を与える第4の表示指令手段とをさらに含んでもよい。   (10) In the setting mode, the control means acquires the first or second image data for positioning in a state where the setting object is placed on the stage. Seventh acquisition command means for giving a command to the acquisition means, and positioning image data indicating the position and orientation of the setting object based on the image data acquired by the command of the seventh acquisition command means in the setting mode And a first or second image for positioning in a state where the inspection object is placed on the stage before the command by the fourth acquisition command unit in the inspection mode. And an eighth acquisition command means for giving a command to the first or second image data acquisition means so as to acquire data, and positioning based on the positioning image data in the inspection mode And a fourth display command unit that displays the image and gives a command to the display unit to display the image of the inspection object based on the image data acquired by the command of the eighth acquisition command unit. .

この場合、検査モードにおいて、位置合わせ用画像データが取得される前に、、検査対象物についての位置決めのための画像データが取得される。取得された画像データに基づく検査対象物の画像が、位置決め用画像とともに表示手段に表示される。検査作業者は、表示手段に表示された検査対象物の画像および位置決め用画像を視認することにより、ステージに検査対象物を載置する際に検査対象物の位置および姿勢を設定用対象物の位置および姿勢にそれぞれ近づけることができる。   In this case, in the inspection mode, the image data for positioning the inspection object is acquired before the alignment image data is acquired. An image of the inspection object based on the acquired image data is displayed on the display unit together with the positioning image. The inspection worker visually recognizes the image of the inspection object and the positioning image displayed on the display means, thereby setting the position and orientation of the inspection object when placing the inspection object on the stage. It can be close to the position and posture.

(11)制御手段は、検査モードにおいて、第4の登録手段により登録された位置決め用画像データと第8の取得指令手段の指令により取得された画像データとの一致度を算出する一致度算出手段と、検査モードにおいて、一致度算出手段による算出結果を表示するように表示手段に指令を与える第5の表示指令手段とをさらに含んでもよい。   (11) In the inspection mode, the control means calculates the degree of coincidence between the positioning image data registered by the fourth registration means and the image data obtained by the instruction of the eighth acquisition instruction means. And a fifth display command means for giving a command to the display means so as to display the calculation result by the coincidence degree calculation means in the inspection mode.

この場合、検査作業者は、表示手段に表示された一致度を視認することにより、ステージに検査対象物を載置する際に検査対象物の位置および姿勢を設定用対象物の位置および姿勢にそれぞれ容易に近づけることができる。   In this case, the inspection worker visually recognizes the degree of coincidence displayed on the display means, and when placing the inspection object on the stage, the inspection worker positions and the posture of the inspection object to the position and posture of the setting object. Each can be easily approached.

(12)第5の表示指令手段は、予め定められた一致度についてのしきい値を示す情報を表示するように表示手段に指令を与えてもよい。   (12) The fifth display command means may give a command to the display means so as to display information indicating a threshold value for a predetermined degree of coincidence.

この場合、検査作業者は、表示手段に表示された一致度についてのしきい値を視認することにより、検査対象物の位置および姿勢を設定用対象物の位置および姿勢にそれぞれ近づける際の許容度を認識することができる。   In this case, the inspection operator visually recognizes the threshold value for the degree of coincidence displayed on the display unit, thereby allowing the tolerance when bringing the position and posture of the inspection object closer to the position and posture of the setting object, respectively. Can be recognized.

(13)第4の登録手段により登録された位置決め用画像データは、設定用対象物の計測対象部分の寸法を計測するために用いられる第2の画像データとは異なってもよい。   (13) The positioning image data registered by the fourth registration means may be different from the second image data used for measuring the dimension of the measurement target portion of the setting object.

この場合、設定モードにおいて、検査対象物の位置および姿勢を設定用対象物の位置および姿勢にそれぞれ近づけるために適切な位置決め用画像データを登録することができる。   In this case, in the setting mode, appropriate positioning image data can be registered in order to bring the position and orientation of the inspection object closer to the position and orientation of the setting object, respectively.

(14)第2の発明に係る画像検査方法は、設定モードにおいて、ステージに測定対象物として設定用対象物が載置された状態で、設定用対象物の計測対象部分の寸法を計測するための第2の画像データを取得するステップと、設定モードにおいて、ステージに設定用対象物が載置された状態で、第1および第2の画像データのうち選択されたまたは選択されることになる位置合わせのための画像データを取得するステップと、設定モードにおいて、取得された位置合わせのための画像データを位置合わせのための基準画像データとして登録するステップと、設定モードにおいて、取得された寸法計測のための第2の画像データに基づいて、設定用対象物の計測対象部分の高さ方向に成分を持つ寸法を計測するステップと、設定モードにおいて、設定用対象物の計測対象部分の設計値および公差のうち少なくとも一方の値の入力を受け付けるステップと、検査モードにおいて、ステージに測定対象物として検査対象物が載置された状態で、検査対象物の計測対象部分の寸法を計測するための第2の画像データを取得するステップと、検査モードにおいて、ステージに検査対象物が載置された状態で、登録された基準画像データに対応する位置合わせのための画像データを取得するステップと、検査モードにおいて、取得された位置合わせのための画像データを位置合わせ用画像データとして登録するステップと、検査モードにおいて、パターンマッチングにより位置合わせ用データと基準画像データとを位置合わせすることにより、検査対象物についての寸法計測のための第2の画像データの位置合わせを行うステップと、検査モードにおいて、位置合わせされた第2の画像データに基づいて、設定用対象物の計測対象部分に対応する検査対象物の計測対象部分の高さ方向に成分を持つ寸法を計測するステップと、検査モードにおいて、設定用対象物について計測された寸法、および検査対象物について計測された寸法、ならびに受け付けられた設計値および公差のうち少なくとも一方の値、に基づいて検査対象物の良否を判定するステップと、検査モードにおいて、判定された判定結果を表示手段に表示するステップとを含む。   (14) In the image inspection method according to the second aspect of the invention, in the setting mode, the dimension of the measurement target portion of the setting target object is measured in a state where the setting target object is placed on the stage as the measurement target object. The second image data is acquired, and the setting object is selected or selected from the first and second image data in a state where the setting object is placed on the stage in the setting mode. The step of acquiring image data for alignment, the step of registering the acquired image data for alignment as reference image data for alignment in the setting mode, and the size acquired in setting mode In the setting mode, a step of measuring a dimension having a component in the height direction of the measurement target portion of the setting object based on the second image data for measurement, The step of accepting the input of at least one of the design value and tolerance of the measurement target portion of the setting target and the inspection target in the inspection mode with the inspection target placed on the stage as the measurement target A step of acquiring second image data for measuring a dimension of a measurement target portion of the object, and a position corresponding to the registered reference image data in a state where the inspection target object is placed on the stage in the inspection mode. A step of acquiring image data for alignment, a step of registering the acquired image data for alignment in the inspection mode as image data for alignment, and a data for alignment by pattern matching in the inspection mode; By aligning with the reference image data, a second image for measuring the dimension of the inspection object is obtained. A component in the height direction of the measurement target portion of the inspection target corresponding to the measurement target portion of the setting target based on the second image data aligned in the step of performing data alignment and the inspection mode Based on the dimension measured for the setting object in the inspection mode, the dimension measured for the inspection object, and at least one of the received design value and tolerance. Determining the quality of the inspection object, and displaying the determined determination result on the display means in the inspection mode.

この画像検査方法によれば、検査のための設定を行う設定モードと検査を実行する検査モードとで制御動作が行われる。設定モード時に、設定作成者が測定対象物として設定用対象物をステージに載置する。設定モードにおいては、ステージに設定用対象物が載置された状態で、計測対象部分の寸法計測のための第2の画像データが取得される。また、第1および第2の画像データのうち位置合わせのために選択されたまたは選択されることになる画像データが取得される。ここで、第1の画像データは設定用対象物の表面のテクスチャ画像を表し、第2の画像データは設定用対象物の表面の高さ画像を表す。位置合わせのために選択された画像データが位置合わせのための基準画像データとして登録される。取得された寸法計測のための第2の画像データに基づいて、設定用対象物の計測対象部分の高さ方向に成分を持つ寸法が計測される。設定用対象物の計測対象部分の設計値および公差のうち少なくとも一方の入力が受け付けられる。   According to this image inspection method, the control operation is performed in the setting mode for setting for inspection and the inspection mode for executing inspection. In the setting mode, the setting creator places a setting object as a measurement object on the stage. In the setting mode, the second image data for measuring the dimension of the measurement target portion is acquired in a state where the setting object is placed on the stage. Further, image data selected or to be selected for alignment among the first and second image data is acquired. Here, the first image data represents a texture image of the surface of the setting object, and the second image data represents a height image of the surface of the setting object. Image data selected for alignment is registered as reference image data for alignment. Based on the acquired second image data for dimension measurement, a dimension having a component in the height direction of the measurement target portion of the setting object is measured. At least one of the design value and tolerance of the measurement target portion of the setting object is accepted.

検査モード時に、検査作業者が測定対象物として検査対象物をステージに載置する。検査モードにおいては、ステージに検査対象物が載置された状態で、計測対象部分の寸法計測のための第2の画像データが取得される。また、第1および第2の画像データのうち、登録された基準画像データに対応する位置合わせのための画像データが取得される。取得された位置合わせのための画像データが位置合わせ用画像データとして登録される。パターンマッチングにより位置合わせ用データと基準画像データとが位置合わせされることにより、検査対象物についての寸法計測のための第2の画像データの位置合わせが行われる。位置合わせされた第2の画像データに基づいて、設定用対象物の計測対象部分に対応する検査対象物の計測対象部分の高さ方向に成分を持つ寸法が計測される。設定用対象物について計測された寸法、および検査対象物について計測された寸法、ならびに受け付けられた設計値および公差のうち少なくとも一方の値、に基づいて検査対象物の良否が判定される。判定された判定結果が表示手段に表示される。   In the inspection mode, the inspection operator places the inspection object on the stage as the measurement object. In the inspection mode, the second image data for measuring the dimension of the measurement target portion is acquired in a state where the inspection target is placed on the stage. In addition, image data for alignment corresponding to the registered reference image data is acquired from the first and second image data. The acquired image data for alignment is registered as alignment image data. By aligning the alignment data and the reference image data by pattern matching, the alignment of the second image data for measuring the dimension of the inspection object is performed. Based on the aligned second image data, a dimension having a component in the height direction of the measurement target portion of the inspection target corresponding to the measurement target portion of the setting target is measured. The quality of the inspection object is determined based on the dimension measured for the setting object, the dimension measured for the inspection object, and at least one of the received design value and tolerance. The determined determination result is displayed on the display means.

この方法によれば、検査モードにおいて取得される検査対象物についての寸法計測のための第2の画像データは、設定モードにおいて取得された設定用対象物についての第1または第2の画像データに高い精度でそれぞれ位置合わせされる。そのため、設定モードにおいて計測された設定用対象物の計測対象部分に対応する検査対象物の計測対象部分の寸法を検査モードにおいて高い精度で計測することが可能になる。これにより、検査作業者が熟練していない場合であっても、検査モードにおいて複数の検査対象物について所望の計測対象部分の寸法を計測することができる。その結果、検査対象物の形状を容易にかつ正確に検査することができる。   According to this method, the second image data for measuring the dimension of the inspection object acquired in the inspection mode is the first or second image data of the setting object acquired in the setting mode. Each is aligned with high accuracy. Therefore, the dimension of the measurement target portion of the inspection target corresponding to the measurement target portion of the setting target measured in the setting mode can be measured with high accuracy in the inspection mode. Thereby, even if it is a case where an inspection worker is not skilled, the dimension of a desired measurement object part can be measured about a plurality of inspection objects in inspection mode. As a result, the shape of the inspection object can be inspected easily and accurately.

(15)第3の発明に係る画像検査プログラムは、処理装置により実行可能な画像検査プログラムであって、設定モードにおいて、ステージに測定対象物として設定用対象物が載置された状態で、設定用対象物の計測対象部分の寸法を計測するための第2の画像データを取得する処理と、設定モードにおいて、ステージに設定用対象物が載置された状態で、第1および第2の画像データのうち選択されたまたは選択されることになる位置合わせのための画像データを取得する処理と、設定モードにおいて、取得された位置合わせのための画像データを位置合わせのための基準画像データとして登録する処理と、設定モードにおいて、取得された寸法計測のための第2の画像データに基づいて、設定用対象物の計測対象部分の高さ方向に成分を持つ寸法を計測する処理と、設定モードにおいて、取得された寸法計測のための第2の画像データに基づいて、設定用対象物の計測対象部分の高さ方向に成分を持つ寸法を計測する処理と、設定モードにおいて、設定用対象物の計測対象部分の設計値および公差のうち少なくとも一方の値の入力を受け付ける処理と、検査モードにおいて、ステージに測定対象物として検査対象物が載置された状態で、検査対象物の計測対象部分の寸法を計測するための第2の画像データを取得する処理と、検査モードにおいて、ステージに検査対象物が載置された状態で、登録された基準画像データに対応する位置合わせのための画像データを取得する処理と、検査モードにおいて、取得された位置合わせのための画像データを位置合わせ用画像データとして登録する処理と、検査モードにおいて、パターンマッチングにより位置合わせ用データと基準画像データとを位置合わせすることにより、検査対象物についての寸法計測のための第2の画像データの位置合わせを行う処理と、検査モードにおいて、位置合わせされた第2の画像データに基づいて、設定用対象物の計測対象部分に対応する検査対象物の計測対象部分の高さ方向に成分を持つ寸法を計測する処理と、検査モードにおいて、設定用対象物について計測された寸法、および検査対象物について計測された寸法、ならびに受け付けられた設計値および公差のうち少なくとも一方の値、に基づいて検査対象物の良否を判定する処理と、検査モードにおいて、判定された判定結果を表示手段に表示する処理とを、処理装置に実行させる。   (15) An image inspection program according to a third aspect of the present invention is an image inspection program that can be executed by a processing device, and is set in a setting mode in which a setting object is placed as a measurement object on a stage. In the process of acquiring the second image data for measuring the dimension of the measurement target portion of the target object and the setting object in the setting mode, the first and second images are placed on the stage. In the setting mode, the acquired image data for alignment is used as reference image data for alignment in the process of acquiring image data for alignment selected or to be selected from the data Based on the acquired second image data for dimension measurement in the registration process and the setting mode, the component is set in the height direction of the measurement target portion of the setting target object. Processing for measuring one dimension, and processing for measuring a dimension having a component in the height direction of the measurement target portion of the setting object based on the acquired second image data for dimension measurement in the setting mode In the setting mode, a process for receiving an input of at least one of the design value and tolerance of the measurement target portion of the setting target object, and in the inspection mode, the inspection target object is placed on the stage as the measurement target object. In the state, in the process of acquiring the second image data for measuring the dimension of the measurement target portion of the inspection target, and in the inspection mode, the registered reference image with the inspection target placed on the stage In the processing for acquiring the image data for alignment corresponding to the data and in the inspection mode, the acquired image data for alignment is used as the image data for alignment. A process of registering, and a process of aligning the second image data for measuring the dimension of the inspection object by aligning the alignment data and the reference image data by pattern matching in the inspection mode; In the inspection mode, processing for measuring a dimension having a component in the height direction of the measurement target portion of the inspection target corresponding to the measurement target portion of the setting target based on the aligned second image data In the inspection mode, the quality of the inspection object is determined based on the dimension measured for the setting object, the dimension measured for the inspection object, and at least one of the received design value and tolerance. The processing device executes processing for performing the processing for displaying the determined determination result on the display means in the inspection mode.

この画像検査プログラムによれば、検査のための設定を行う設定モードと検査を実行する検査モードとで制御動作が行われる。設定モード時に、設定作成者が測定対象物として設定用対象物をステージに載置する。設定モードにおいては、ステージに設定用対象物が載置された状態で、計測対象部分の寸法計測のための第2の画像データが取得される。また、第1および第2の画像データのうち位置合わせのために選択されたまたは選択されることになる画像データが取得される。ここで、第1の画像データは設定用対象物の表面のテクスチャ画像を表し、第2の画像データは設定用対象物の表面の高さ画像を表す。位置合わせのために選択された画像データが位置合わせのための基準画像データとして登録される。取得された寸法計測のための第2の画像データに基づいて、設定用対象物の計測対象部分の高さ方向に成分を持つ寸法が計測される。設定用対象物の計測対象部分の設計値および公差のうち少なくとも一方の入力が受け付けられる。   According to this image inspection program, the control operation is performed in a setting mode for setting for inspection and an inspection mode for executing inspection. In the setting mode, the setting creator places a setting object as a measurement object on the stage. In the setting mode, the second image data for measuring the dimension of the measurement target portion is acquired in a state where the setting object is placed on the stage. Further, image data selected or to be selected for alignment among the first and second image data is acquired. Here, the first image data represents a texture image of the surface of the setting object, and the second image data represents a height image of the surface of the setting object. Image data selected for alignment is registered as reference image data for alignment. Based on the acquired second image data for dimension measurement, a dimension having a component in the height direction of the measurement target portion of the setting object is measured. At least one of the design value and tolerance of the measurement target portion of the setting object is accepted.

検査モード時に、検査作業者が測定対象物として検査対象物をステージに載置する。検査モードにおいては、ステージに検査対象物が載置された状態で、計測対象部分の寸法計測のための第2の画像データが取得される。また、第1および第2の画像データのうち、登録された基準画像データに対応する位置合わせのための画像データが取得される。取得された位置合わせのための画像データが位置合わせ用画像データとして登録される。パターンマッチングにより位置合わせ用データと基準画像データとが位置合わせされることにより、検査対象物についての寸法計測のための第2の画像データの位置合わせが行われる。位置合わせされた第2の画像データに基づいて、設定用対象物の計測対象部分に対応する検査対象物の計測対象部分の高さ方向に成分を持つ寸法が計測される。設定用対象物について計測された寸法、および検査対象物について計測された寸法、ならびに受け付けられた設計値および公差のうち少なくとも一方の値、に基づいて検査対象物の良否が判定される。判定された判定結果が表示手段に表示される。   In the inspection mode, the inspection operator places the inspection object on the stage as the measurement object. In the inspection mode, the second image data for measuring the dimension of the measurement target portion is acquired in a state where the inspection target is placed on the stage. In addition, image data for alignment corresponding to the registered reference image data is acquired from the first and second image data. The acquired image data for alignment is registered as alignment image data. By aligning the alignment data and the reference image data by pattern matching, the alignment of the second image data for measuring the dimension of the inspection object is performed. Based on the aligned second image data, a dimension having a component in the height direction of the measurement target portion of the inspection target corresponding to the measurement target portion of the setting target is measured. The quality of the inspection object is determined based on the dimension measured for the setting object, the dimension measured for the inspection object, and at least one of the received design value and tolerance. The determined determination result is displayed on the display means.

このプログラムによれば、検査モードにおいて取得される検査対象物についての寸法計測のための第2の画像データは、設定モードにおいて取得された設定用対象物についての第1または第2の画像データに高い精度でそれぞれ位置合わせされる。そのため、設定モードにおいて計測された設定用対象物の計測対象部分に対応する検査対象物の計測対象部分の寸法を検査モードにおいて高い精度で計測することが可能になる。これにより、検査作業者が熟練していない場合であっても、検査モードにおいて複数の検査対象物について所望の計測対象部分の寸法を計測することができる。その結果、検査対象物の形状を容易にかつ正確に検査することができる。   According to this program, the second image data for measuring the dimensions of the inspection object acquired in the inspection mode is the first or second image data of the setting object acquired in the setting mode. Each is aligned with high accuracy. Therefore, the dimension of the measurement target portion of the inspection target corresponding to the measurement target portion of the setting target measured in the setting mode can be measured with high accuracy in the inspection mode. Thereby, even if it is a case where an inspection worker is not skilled, the dimension of a desired measurement object part can be measured about a plurality of inspection objects in inspection mode. As a result, the shape of the inspection object can be inspected easily and accurately.

本発明によれば、検査対象物の形状を容易かつ正確に検査することが可能になる。   According to the present invention, it is possible to easily and accurately inspect the shape of an inspection object.

本発明の一実施の形態に係る画像検査装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image inspection apparatus which concerns on one embodiment of this invention. 図1の画像検査装置の測定部の構成を示す模式図である。It is a schematic diagram which shows the structure of the measurement part of the image inspection apparatus of FIG. 三角測距方式の原理を説明するための図である。It is a figure for demonstrating the principle of a triangulation system. 投光部から出射される測定光のパターンの例を示す図である。It is a figure which shows the example of the pattern of the measurement light radiate | emitted from a light projection part. ステージ上に載置される測定対象物の一例を示す外観斜視図である。It is an external appearance perspective view which shows an example of the measuring object mounted on a stage. 図5の測定対象物のテクスチャ画像の例である。It is an example of the texture image of the measuring object of FIG. 図5の測定対象物の高さ画像の例である。It is an example of the height image of the measuring object of FIG. 画像検査装置の表示部に表示される初期画面の一例を示す図である。It is a figure which shows an example of the initial screen displayed on the display part of an image inspection apparatus. 設定モードでの画像検査装置の一使用例を説明するための図である。It is a figure for demonstrating the usage example of the image inspection apparatus in setting mode. 設定モードでの画像検査装置の一使用例を説明するための図である。It is a figure for demonstrating the usage example of the image inspection apparatus in setting mode. 設定モードでの画像検査装置の一使用例を説明するための図である。It is a figure for demonstrating the usage example of the image inspection apparatus in setting mode. 設定モードでの画像検査装置の一使用例を説明するための図である。It is a figure for demonstrating the usage example of the image inspection apparatus in setting mode. 設定モードでの画像検査装置の一使用例を説明するための図である。It is a figure for demonstrating the usage example of the image inspection apparatus in setting mode. 設定モードでの画像検査装置の一使用例を説明するための図である。It is a figure for demonstrating the usage example of the image inspection apparatus in setting mode. 設定モードでの画像検査装置の一使用例を説明するための図である。It is a figure for demonstrating the usage example of the image inspection apparatus in setting mode. 設定モードでの画像検査装置の一使用例を説明するための図である。It is a figure for demonstrating the usage example of the image inspection apparatus in setting mode. 設定モードでの画像検査装置の一使用例を説明するための図である。It is a figure for demonstrating the usage example of the image inspection apparatus in setting mode. 設定モードでの画像検査装置の一使用例を説明するための図である。It is a figure for demonstrating the usage example of the image inspection apparatus in setting mode. 設定モードでの画像検査装置の一使用例を説明するための図である。It is a figure for demonstrating the usage example of the image inspection apparatus in setting mode. 設定モードでの画像検査装置の一使用例を説明するための図である。It is a figure for demonstrating the usage example of the image inspection apparatus in setting mode. 設定モードでの画像検査装置の一使用例を説明するための図である。It is a figure for demonstrating the usage example of the image inspection apparatus in setting mode. 設定モードでの画像検査装置の一使用例を説明するための図である。It is a figure for demonstrating the usage example of the image inspection apparatus in setting mode. 設定モードでの画像検査装置の一使用例を説明するための図である。It is a figure for demonstrating the usage example of the image inspection apparatus in setting mode. 設定モードでの画像検査装置の一使用例を説明するための図である。It is a figure for demonstrating the usage example of the image inspection apparatus in setting mode. 設定モードでの画像検査装置の一使用例を説明するための図である。It is a figure for demonstrating the usage example of the image inspection apparatus in setting mode. 設定モードでの画像検査装置の一使用例を説明するための図である。It is a figure for demonstrating the usage example of the image inspection apparatus in setting mode. 設定モードでの画像検査装置の一使用例を説明するための図である。It is a figure for demonstrating the usage example of the image inspection apparatus in setting mode. 検査モードでの画像検査装置の一使用例を説明するための図である。It is a figure for demonstrating the usage example of the image inspection apparatus in test | inspection mode. 検査モードでの画像検査装置の一使用例を説明するための図である。It is a figure for demonstrating the usage example of the image inspection apparatus in test | inspection mode. 検査モードでの画像検査装置の一使用例を説明するための図である。It is a figure for demonstrating the usage example of the image inspection apparatus in test | inspection mode. 検査モードでの画像検査装置の一使用例を説明するための図である。It is a figure for demonstrating the usage example of the image inspection apparatus in test | inspection mode. 検査モードでの画像検査装置の一使用例を説明するための図である。It is a figure for demonstrating the usage example of the image inspection apparatus in test | inspection mode. 検査モードでの画像検査装置の一使用例を説明するための図である。It is a figure for demonstrating the usage example of the image inspection apparatus in test | inspection mode. 検査モードでの画像検査装置の一使用例を説明するための図である。It is a figure for demonstrating the usage example of the image inspection apparatus in test | inspection mode. 1つの設定用対象物に対して複数の計測対象部分が存在する場合の一例を示す図である。It is a figure which shows an example in case the some measurement object part exists with respect to one setting object. 検査設定結合機能の使用例を説明するための図である。It is a figure for demonstrating the usage example of a test | inspection setting coupling | bonding function. 検査設定結合機能の使用例を説明するための図である。It is a figure for demonstrating the usage example of a test | inspection setting coupling | bonding function. 連結テクスチャ画像データおよび連結高さ画像データの一生成例を説明するための図である。It is a figure for demonstrating one example of a production | generation of connection texture image data and connection height image data. PCのCPUにより実行される画像検査処理を示すフローチャートである。It is a flowchart which shows the image test | inspection process performed by CPU of PC. CPUの構成を示すブロック図である。It is a block diagram which shows the structure of CPU. 設定モードにおけるCPUの制御動作を示すフローチャートである。It is a flowchart which shows the control operation of CPU in setting mode. 設定モードにおけるCPUの制御動作を示すフローチャートである。It is a flowchart which shows the control operation of CPU in setting mode. 設定モードにおけるCPUの制御動作を示すフローチャートである。It is a flowchart which shows the control operation of CPU in setting mode. 設定モードにおけるCPUの制御動作を示すフローチャートである。It is a flowchart which shows the control operation of CPU in setting mode. 設定モードにおけるCPUの制御動作を示すフローチャートである。It is a flowchart which shows the control operation of CPU in setting mode. 検査モードにおけるCPUの制御動作を示すフローチャートである。It is a flowchart which shows the control operation of CPU in test | inspection mode. 検査モードにおけるCPUの制御動作を示すフローチャートである。It is a flowchart which shows the control operation of CPU in test | inspection mode. 位置決め用画像データに基づく映像誘導の一例を示す図である。It is a figure which shows an example of the image | video guidance based on the image data for positioning. 測定対象物の位置決めのための治具がステージに設けられた例を示す図である。It is a figure which shows the example in which the jig | tool for positioning of a measuring object was provided in the stage.

(1)画像検査装置の構成
図1は、本発明の一実施の形態に係る画像検査装置の構成を示すブロック図である。図2は、図1の画像検査装置500の測定部の構成を示す模式図である。以下、本実施の形態に係る画像検査装置500について、図1および図2を参照しながら説明する。図1に示すように、画像検査装置500は、測定部100、PC(パーソナルコンピュータ)200、制御部300および表示部400を備える。
(1) Configuration of Image Inspection Apparatus FIG. 1 is a block diagram showing a configuration of an image inspection apparatus according to an embodiment of the present invention. FIG. 2 is a schematic diagram illustrating a configuration of a measurement unit of the image inspection apparatus 500 of FIG. Hereinafter, an image inspection apparatus 500 according to the present embodiment will be described with reference to FIGS. 1 and 2. As shown in FIG. 1, the image inspection apparatus 500 includes a measurement unit 100, a PC (personal computer) 200, a control unit 300, and a display unit 400.

図1に示すように、測定部100は、例えば顕微鏡であり、投光部110、受光部120、照明光出力部130、ステージ装置140および制御基板150を含む。投光部110、受光部120および照明光出力部130により測定ヘッド100Hが構成される。図2に示すように、投光部110は、測定光源111、パターン生成部112および複数のレンズ113,114,115を含む。受光部120は、カメラ121および複数のレンズ122,123を含み、デジタルズーム機能を有する。   As shown in FIG. 1, the measurement unit 100 is a microscope, for example, and includes a light projecting unit 110, a light receiving unit 120, an illumination light output unit 130, a stage device 140, and a control board 150. The light projecting unit 110, the light receiving unit 120, and the illumination light output unit 130 constitute a measuring head 100H. As shown in FIG. 2, the light projecting unit 110 includes a measurement light source 111, a pattern generation unit 112, and a plurality of lenses 113, 114, 115. The light receiving unit 120 includes a camera 121 and a plurality of lenses 122 and 123 and has a digital zoom function.

図1に示すように、ステージ装置140は、ステージ141、ステージ操作部142およびステージ駆動部143を含む。ステージ141には、測定対象物Sが載置される。図2に示すように、ステージ141は、X−Yステージ10、Zステージ20およびθステージ30により構成される。ステージ141は、測定対象物Sが載置される面(以下、載置面と呼ぶ)に測定対象物Sを固定する図示しない固定部材(クランプ)をさらに含んでもよい。   As shown in FIG. 1, the stage apparatus 140 includes a stage 141, a stage operation unit 142, and a stage driving unit 143. A measurement object S is placed on the stage 141. As shown in FIG. 2, the stage 141 includes an XY stage 10, a Z stage 20, and a θ stage 30. The stage 141 may further include a fixing member (clamp) (not shown) that fixes the measurement object S to a surface (hereinafter referred to as a placement surface) on which the measurement object S is placed.

図2に示すように、投光部110は、ステージ141の斜め上方に配置される。測定部100は、複数の投光部110を含んでもよい。図2の例においては、測定部100は2つの投光部110を含む。以下、2つの投光部110を区別する場合は、一方の投光部110を投光部110Aと呼び、他方の投光部110を投光部110Bと呼ぶ。投光部110A,110Bは受光部120の光軸を挟んで対称に配置される。   As shown in FIG. 2, the light projecting unit 110 is disposed obliquely above the stage 141. The measuring unit 100 may include a plurality of light projecting units 110. In the example of FIG. 2, the measurement unit 100 includes two light projecting units 110. Hereinafter, when distinguishing the two light projecting units 110, one light projecting unit 110 is referred to as a light projecting unit 110A, and the other light projecting unit 110 is referred to as a light projecting unit 110B. The light projecting units 110 </ b> A and 110 </ b> B are arranged symmetrically across the optical axis of the light receiving unit 120.

各投光部110A,110Bの測定光源111は、例えば白色光を出射するハロゲンランプである。測定光源111は、白色光を出射する白色LED(発光ダイオード)等の他の光源であってもよい。測定光源111から出射された光(以下、測定光と呼ぶ)は、レンズ113により適切に集光された後、パターン生成部112に入射する。   The measurement light source 111 of each of the light projecting units 110A and 110B is, for example, a halogen lamp that emits white light. The measurement light source 111 may be another light source such as a white LED (light emitting diode) that emits white light. Light emitted from the measurement light source 111 (hereinafter referred to as measurement light) is appropriately condensed by the lens 113 and then enters the pattern generation unit 112.

パターン生成部112は、例えばDMD(デジタルマイクロミラーデバイス)である。パターン生成部112は、LCD(液晶ディスプレイ)、LCOS(Liquid Crystal on Silicon:反射型液晶素子)またはマスクであってもよい。パターン生成部112に入射した測定光は、予め設定されたパターンおよび予め設定された強度(明るさ)に変換されて出射される。以下、強度が所定の値以上の測定光の部分を明部分と呼び、強度が所定の値より小さい測定光の部分を暗部分と呼ぶ。   The pattern generation unit 112 is a DMD (digital micromirror device), for example. The pattern generation unit 112 may be an LCD (Liquid Crystal Display), LCOS (Liquid Crystal on Silicon), or a mask. The measurement light incident on the pattern generation unit 112 is converted into a preset pattern and a preset intensity (brightness) and emitted. Hereinafter, the portion of the measurement light whose intensity is a predetermined value or more is called a bright portion, and the portion of the measurement light whose intensity is smaller than a predetermined value is called a dark portion.

パターン生成部112により出射された測定光は、複数のレンズ114,115により比較的大きい径を有する光に変換された後、ステージ141上の測定対象物Sに照射される。受光部120は、ステージ141の上方に配置される。測定対象物Sによりステージ141の上方に反射された測定光は、受光部120の複数のレンズ122,123により集光および結像された後、カメラ121により受光される。   The measurement light emitted from the pattern generation unit 112 is converted into light having a relatively large diameter by the plurality of lenses 114 and 115 and then irradiated onto the measurement object S on the stage 141. The light receiving unit 120 is disposed above the stage 141. The measurement light reflected above the stage 141 by the measurement object S is collected and imaged by the plurality of lenses 122 and 123 of the light receiving unit 120 and then received by the camera 121.

カメラ121は、例えば撮像素子121aおよびレンズを含むCCD(電荷結合素子)カメラである。撮像素子121aは、例えばモノクロCCD(電荷結合素子)である。撮像素子121aは、カラーCCDであってもよいし、CMOS(相補性金属酸化膜半導体)イメージセンサ等の他の撮像素子であってもよい。撮像素子121aの各画素からは、受光量に対応するアナログの電気信号(以下、受光信号と呼ぶ。)が制御基板150に出力される。   The camera 121 is, for example, a CCD (Charge Coupled Device) camera including an image sensor 121a and a lens. The image sensor 121a is, for example, a monochrome CCD (charge coupled device). The image sensor 121a may be a color CCD or another image sensor such as a CMOS (complementary metal oxide semiconductor) image sensor. From each pixel of the image sensor 121a, an analog electrical signal (hereinafter referred to as a light reception signal) corresponding to the amount of received light is output to the control board 150.

制御基板150には、図示しないA/D変換器(アナログ/デジタル変換器)およびFIFO(First In First Out)メモリが実装される。カメラ121から出力される受光信号は、制御部300による制御に基づいて、制御基板150のA/D変換器により一定のサンプリング周期でサンプリングされるとともにデジタル信号に変換される。A/D変換器から出力されるデジタル信号は、FIFOメモリに順次蓄積される。FIFOメモリに蓄積されたデジタル信号は画素データとして順次PC200に転送される。   On the control board 150, an A / D converter (analog / digital converter) and a FIFO (First In First Out) memory (not shown) are mounted. The light reception signal output from the camera 121 is sampled at a constant sampling period by the A / D converter of the control board 150 and converted into a digital signal based on control by the control unit 300. Digital signals output from the A / D converter are sequentially stored in the FIFO memory. The digital signals stored in the FIFO memory are sequentially transferred to the PC 200 as pixel data.

図1に示すように、PC200は、CPU(中央演算処理装置)210、ROM(リードオンリメモリ)220、RAM(ランダムアクセスメモリ)230、記憶装置240および操作部250を含む。また、操作部250は、キーボードおよびポインティングデバイスを含む。ポインティングデバイスとしては、マウスまたはジョイスティック等が用いられる。   As shown in FIG. 1, the PC 200 includes a CPU (Central Processing Unit) 210, a ROM (Read Only Memory) 220, a RAM (Random Access Memory) 230, a storage device 240 and an operation unit 250. The operation unit 250 includes a keyboard and a pointing device. A mouse or a joystick is used as the pointing device.

ROM220には、システムプログラムが記憶される。RAM230は、種々のデータの処理のために用いられる。記憶装置240は、ハードディスク等からなる。記憶装置240には、画像検査プログラムが記憶される。また、記憶装置240は、制御基板150から与えられる画素データ等の種々のデータを保存するために用いられる。   The ROM 220 stores a system program. The RAM 230 is used for processing various data. The storage device 240 is composed of a hard disk or the like. The storage device 240 stores an image inspection program. The storage device 240 is used for storing various data such as pixel data supplied from the control board 150.

CPU210は、制御基板150から与えられる画素データに基づいて画像データを生成する。また、CPU210は、生成した画像データにRAM230を用いて各種処理を行うとともに、画像データに基づく画像を表示部400に表示させる。さらに、CPU210は、ステージ駆動部143に駆動パルスを与える。表示部400は、例えばLCDパネルまたは有機EL(エレクトロルミネッセンス)パネルにより構成される。   The CPU 210 generates image data based on the pixel data given from the control board 150. The CPU 210 performs various processes on the generated image data using the RAM 230 and causes the display unit 400 to display an image based on the image data. Further, the CPU 210 gives a driving pulse to the stage driving unit 143. The display unit 400 is configured by, for example, an LCD panel or an organic EL (electroluminescence) panel.

制御部300は、制御基板310および照明光源320を含む。制御基板310には、図示しないCPUが実装される。制御基板310のCPUは、PC200のCPU210からの指令に基づいて、投光部110、受光部120および制御基板150を制御する。   The control unit 300 includes a control board 310 and an illumination light source 320. A CPU (not shown) is mounted on the control board 310. The CPU of the control board 310 controls the light projecting unit 110, the light receiving unit 120, and the control board 150 based on a command from the CPU 210 of the PC 200.

照明光源320は、例えば赤色光、緑色光および青色光をそれぞれ出射する3つのLEDを含む。各LEDから出射される光の輝度を制御することにより、照明光源320から任意の色の光を発生することができる。照明光源320から発生される光(以下、照明光と呼ぶ。)は、導光部材(ライトガイド)を通して測定部100の照明光出力部130から出力される。なお、制御部300に照明光源320を設けずに、測定部100に照明光源320を設けてもよい。この場合、測定部100には照明光出力部130が設けられない。   The illumination light source 320 includes, for example, three LEDs that respectively emit red light, green light, and blue light. By controlling the luminance of the light emitted from each LED, light of an arbitrary color can be generated from the illumination light source 320. Light generated from the illumination light source 320 (hereinafter referred to as illumination light) is output from the illumination light output unit 130 of the measurement unit 100 through a light guide member (light guide). Note that the illumination light source 320 may be provided in the measurement unit 100 without providing the illumination light source 320 in the control unit 300. In this case, the illumination light output unit 130 is not provided in the measurement unit 100.

図2の照明光出力部130は、円環形状を有し、受光部120のレンズ122を取り囲むようにステージ141の上方に配置される。これにより、影が発生しないように照明光出力部130から測定対象物Sに照明光が照射される。照明光は測定対象物Sの略真上から照射されるので、測定対象物Sが孔部を有する場合でも、照明光は孔部の底部にまで到達する。したがって、照明光により測定対象物Sの表面だけでなく、孔部の底部も観察することができる。   The illumination light output unit 130 of FIG. 2 has an annular shape and is disposed above the stage 141 so as to surround the lens 122 of the light receiving unit 120. Thereby, illumination light is irradiated to the measuring object S from the illumination light output unit 130 so that no shadow is generated. Since the illumination light is irradiated from substantially directly above the measurement object S, the illumination light reaches the bottom of the hole even when the measurement object S has a hole. Therefore, not only the surface of the measuring object S but also the bottom of the hole can be observed with the illumination light.

測定部100においては、照明光出力部130からの照明光が測定対象物Sに照射された状態で、測定対象物Sの表面のパターンを表すデータがテクスチャ画像データとして生成される。表面のパターンには、例えば模様および色彩が含まれる。以下、テクスチャ画像データに基づく画像をテクスチャ画像と呼ぶ。また、測定部100においては、投光部110からの測定光が測定対象物Sに照射された状態で、測定対象物Sの表面の形状を表すデータが高さ画像データとして生成される。以下、高さ画像データに基づく画像を高さ画像と呼ぶ。さらに、測定部100においては、テクスチャ画像と高さ画像との合成画像を示す合成画像データが生成されてもよい。なお、高さ画像とは距離画像とも呼ばれる画像である。   In the measurement unit 100, data representing the pattern of the surface of the measurement target S is generated as texture image data in a state where the measurement target S is irradiated with the illumination light from the illumination light output unit 130. The surface pattern includes, for example, a pattern and a color. Hereinafter, an image based on the texture image data is referred to as a texture image. In the measurement unit 100, data representing the shape of the surface of the measurement object S is generated as height image data in a state where the measurement object S is irradiated with the measurement light from the light projecting unit 110. Hereinafter, an image based on the height image data is referred to as a height image. Further, in the measurement unit 100, composite image data indicating a composite image of the texture image and the height image may be generated. The height image is an image called a distance image.

表示部400には、テクスチャ画像および高さ画像が表示される。測定部100により上記の合成画像データが生成される場合、その合成画像データに基づく合成画像が表示部400に表示されてもよい。   The display unit 400 displays a texture image and a height image. When the composite image data is generated by the measurement unit 100, a composite image based on the composite image data may be displayed on the display unit 400.

(2)ステージの構成
測定部100には、装置固有の三次元座標系と原点位置とが定義されている。本例の三次元座標系は、互いに直交するX軸、Y軸およびZ軸を有する。図2においては、X軸に平行な方向をX方向として矢印Xで示し、Y軸に平行な方向をY方向として矢印Yで示し、Z軸に平行な方向をZ方向として矢印Zで示す。また、Z方向に平行な軸を中心に回転する方向をθ方向と定義し、矢印θで示す。本実施の形態においては、Z方向は受光部120の光軸に平行な方向である。
(2) Stage Configuration The measurement unit 100 defines a device-specific three-dimensional coordinate system and an origin position. The three-dimensional coordinate system of this example has an X axis, a Y axis, and a Z axis that are orthogonal to each other. In FIG. 2, the direction parallel to the X axis is indicated by the arrow X as the X direction, the direction parallel to the Y axis is indicated by the arrow Y, and the direction parallel to the Z axis is indicated by the arrow Z as the Z direction. Further, the direction of rotation about an axis parallel to the Z direction is defined as the θ direction and is indicated by an arrow θ. In the present embodiment, the Z direction is a direction parallel to the optical axis of the light receiving unit 120.

ステージ141の載置面はX方向およびY方向に平行な面に含まれる。X−Yステージ10は、X方向移動機構およびY方向移動機構を有する。Zステージ20は、Z方向移動機構を有する。θステージ30は、θ方向回転機構を有する。   The mounting surface of the stage 141 is included in a plane parallel to the X direction and the Y direction. The XY stage 10 has an X direction moving mechanism and a Y direction moving mechanism. The Z stage 20 has a Z direction moving mechanism. The θ stage 30 has a θ direction rotation mechanism.

受光部120の焦点に位置しかつ受光部120の光軸に垂直な平面を受光部120の焦点面と呼ぶ。投光部110A,110B、受光部120およびステージ141の相対的な位置関係は、投光部110Aの光軸、投光部110Bの光軸および受光部120の光軸が受光部120の焦点面で互いに交差するように設定される。   A plane located at the focal point of the light receiving unit 120 and perpendicular to the optical axis of the light receiving unit 120 is referred to as a focal plane of the light receiving unit 120. The relative positions of the light projecting units 110A and 110B, the light receiving unit 120, and the stage 141 are such that the optical axis of the light projecting unit 110A, the optical axis of the light projecting unit 110B, and the optical axis of the light receiving unit 120 are the focal planes of the light receiving unit 120. Are set to cross each other.

また、投光部110の焦点(測定光のパターンが結像する点)に位置しかつ投光部110の光軸に垂直な平面を投光部110の焦点面と呼ぶ。各投光部110A,110Bは、投光部110Aの焦点面および投光部110Bの焦点面が受光部120の焦点を含む位置で交差するように構成される。   A plane that is located at the focal point of the light projecting unit 110 (the point where the pattern of the measurement light is imaged) and is perpendicular to the optical axis of the light projecting unit 110 is referred to as a focal plane of the light projecting unit 110. Each of the light projecting units 110 </ b> A and 110 </ b> B is configured such that the focal plane of the light projecting unit 110 </ b> A and the focal plane of the light projecting unit 110 </ b> B intersect at a position including the focal point of the light receiving unit 120.

θステージ30のθ方向の回転軸の中心は、受光部120の光軸と一致している。そのため、θステージ30をθ方向に回転させた場合に、測定対象物Sを視野から外すことなく、回転軸を中心に視野内で回転させることができる。また、X−Yステージ10およびθステージ30は、Zステージ20により支持されている。   The center of the rotation axis of the θ stage 30 in the θ direction coincides with the optical axis of the light receiving unit 120. Therefore, when the θ stage 30 is rotated in the θ direction, the measuring object S can be rotated within the field of view around the rotation axis without removing the measuring object S from the field of view. The XY stage 10 and the θ stage 30 are supported by the Z stage 20.

ステージ141のX方向移動機構、Y方向移動機構、Z方向移動機構およびθ方向回転機構には、それぞれステッピングモータが用いられる。ステージ141のX方向移動機構、Y方向移動機構、Z方向移動機構およびθ方向回転機構は、図1のステージ操作部142またはステージ駆動部143により駆動される。   Stepping motors are used for the X direction moving mechanism, the Y direction moving mechanism, the Z direction moving mechanism, and the θ direction rotating mechanism of the stage 141, respectively. The X direction moving mechanism, the Y direction moving mechanism, the Z direction moving mechanism, and the θ direction rotating mechanism of the stage 141 are driven by the stage operation unit 142 or the stage driving unit 143 in FIG.

使用者は、図1のステージ操作部142を手動で操作することにより、ステージ141の載置面を受光部120に対して相対的にX方向、Y方向もしくはZ方向に移動させるか、またはθ方向に回転させることができる。ステージ駆動部143は、PC200より与えられる駆動パルスに基づいて、ステージ141のステッピングモータに電流を供給することにより、ステージ141を受光部120に相対的にX方向、Y方向もしくはZ方向に移動させるか、またはθ方向に回転させることができる。   The user manually operates the stage operation unit 142 in FIG. 1 to move the mounting surface of the stage 141 in the X direction, the Y direction, or the Z direction relative to the light receiving unit 120, or θ Can be rotated in the direction. The stage driving unit 143 moves the stage 141 relative to the light receiving unit 120 in the X direction, the Y direction, or the Z direction by supplying current to the stepping motor of the stage 141 based on the driving pulse given from the PC 200. Or can be rotated in the θ direction.

なお、本実施の形態では、ステージ141はステッピングモータにより駆動することが可能であるとともに手動により操作することが可能な電動ステージであるが、これに限定されない。ステージ141はステッピングモータでのみ駆動することが可能な電動ステージであってもよいし、手動でのみ操作することが可能な手動ステージであってもよい。また、X−Yステージ10、Zステージ20およびθステージ30の配置は、上記の例に限定されない。例えば、図2の例では、θステージ30上にX−Yステージ10が配置されるが、これに限定されず、X−Yステージ10上にθステージ30が配置されてもよい。   In this embodiment, the stage 141 is an electric stage that can be driven by a stepping motor and can be manually operated. However, the present invention is not limited to this. The stage 141 may be an electric stage that can be driven only by a stepping motor, or may be a manual stage that can be operated only manually. Further, the arrangement of the XY stage 10, the Z stage 20, and the θ stage 30 is not limited to the above example. For example, in the example of FIG. 2, the XY stage 10 is disposed on the θ stage 30, but the present invention is not limited to this, and the θ stage 30 may be disposed on the XY stage 10.

(3)測定対象物の形状測定
測定部100においては、三角測距方式により測定対象物Sの形状が測定される。図3は、三角測距方式の原理を説明するための図である。図3に示すように、投光部110から出射される測定光の光軸と受光部120に入射する測定光の光軸(受光部120の光軸)との間の角度αが予め設定される。角度αは、0度よりも大きく90度よりも小さい。
(3) Shape measurement of measurement object In the measurement unit 100, the shape of the measurement object S is measured by a triangulation method. FIG. 3 is a diagram for explaining the principle of the triangulation system. As shown in FIG. 3, the angle α between the optical axis of the measurement light emitted from the light projecting unit 110 and the optical axis of the measurement light incident on the light receiving unit 120 (the optical axis of the light receiving unit 120) is set in advance. The The angle α is larger than 0 degree and smaller than 90 degrees.

ステージ141上に測定対象物Sが載置されない場合、投光部110から出射される測定光は、ステージ141の載置面の点Oにより反射され、受光部120に入射する。一方、ステージ141上に測定対象物Sが載置される場合、投光部110から出射される測定光は、測定対象物Sの表面の点Aにより反射され、受光部120に入射する。   When the measuring object S is not placed on the stage 141, the measurement light emitted from the light projecting unit 110 is reflected by the point O on the placing surface of the stage 141 and enters the light receiving unit 120. On the other hand, when the measurement object S is placed on the stage 141, the measurement light emitted from the light projecting unit 110 is reflected by the point A on the surface of the measurement object S and enters the light receiving unit 120.

点Oと点Aとの間のX方向における距離をdとすると、ステージ141の載置面に対する測定対象物Sの点Aの高さhは、h=d÷tan(α)により与えられる。図1のPC200のCPU210は、制御基板150により与えられる測定対象物Sの画素データに基づいて、X方向における点Oと点Aとの間の距離dを測定する。また、CPU210は、測定された距離dに基づいて、測定対象物Sの表面の点Aの高さhを算出する。測定対象物Sの表面の全ての点の高さを算出することにより、測定対象物Sの三次元的な形状が測定される。   When the distance in the X direction between the point O and the point A is d, the height h of the point A of the measuring object S with respect to the mounting surface of the stage 141 is given by h = d ÷ tan (α). The CPU 210 of the PC 200 in FIG. 1 measures the distance d between the point O and the point A in the X direction based on the pixel data of the measurement object S given by the control board 150. Further, the CPU 210 calculates the height h of the point A on the surface of the measuring object S based on the measured distance d. By calculating the heights of all points on the surface of the measuring object S, the three-dimensional shape of the measuring object S is measured.

測定対象物Sの表面の全ての点に測定光を照射するために、図1の投光部110からは種々のパターンを有する測定光が出射される。図4は、投光部110から出射される測定光のパターンの例を示す図である。測定光のパターンの種類は、図1のパターン生成部112により制御される。   In order to irradiate measurement light to all points on the surface of the measurement object S, measurement light having various patterns is emitted from the light projecting unit 110 in FIG. FIG. 4 is a diagram illustrating an example of a pattern of measurement light emitted from the light projecting unit 110. The pattern type of the measurement light is controlled by the pattern generation unit 112 in FIG.

図4(a)の測定光をライン状測定光と呼ぶ。ライン状測定光は、一の方向に平行な直線状の断面を有する測定光である。図4(b)の測定光を正弦波状測定光と呼ぶ。正弦波状測定光は、一の方向に平行な直線状の断面を有しかつ当該一の方向に直交する他の方向に強度が正弦波状に変化するパターンを有する測定光である。   The measurement light in FIG. 4A is referred to as line-shaped measurement light. The line-shaped measurement light is measurement light having a linear cross section parallel to one direction. The measurement light in FIG. 4B is called sinusoidal measurement light. The sinusoidal measurement light is measurement light having a linear cross section parallel to one direction and a pattern in which the intensity changes in a sine wave shape in another direction orthogonal to the one direction.

図4(c)の測定光を縞状測定光と呼ぶ。縞状測定光は、一の方向に平行でかつ当該一の方向に直交する他の方向に並ぶような直線状の断面を有する測定光である。図8(d)の測定光をコード状測定光と呼ぶ。コード状測定光は、一の方向に平行な直線状の断面を有し、かつ明部分と暗部分とが当該一の方向に直交する他の方向に並ぶ測定光である。   The measurement light in FIG. 4C is referred to as striped measurement light. The striped measurement light is measurement light having a linear cross section that is parallel to one direction and aligned in another direction orthogonal to the one direction. The measurement light in FIG. 8D is referred to as code-shaped measurement light. Code-like measurement light is measurement light that has a linear cross section parallel to one direction and in which a bright portion and a dark portion are arranged in another direction orthogonal to the one direction.

ライン状測定光を測定対象物S上で走査する方法は一般に光切断法と呼ばれる。一般の光切断法に従ってライン状測定光の明部分が測定光の照射範囲の全体に少なくとも1回照射されるようにライン状測定光を走査することにより、測定対象物Sの高さ画像データが生成される。   A method of scanning the line-shaped measurement light on the measurement object S is generally called a light cutting method. By scanning the line-shaped measurement light so that the bright part of the line-shaped measurement light is irradiated at least once over the entire irradiation range of the measurement light according to a general light cutting method, the height image data of the measuring object S is obtained. Generated.

一方、正弦波状測定光、縞状測定光またはコード状測定光を測定対象物Sに照射する方法は、パターン投影法に分類される。また、パターン投影法の中でも、正弦波状測定光または縞状測定光を測定対象物Sに照射する方法は位相シフト法に分類され、コード状測定光を測定対象物Sに照射する方法は空間コード法に分類される。   On the other hand, the method of irradiating the measuring object S with sinusoidal measurement light, striped measurement light or code-like measurement light is classified as a pattern projection method. Among the pattern projection methods, the method of irradiating the measuring object S with sinusoidal measuring light or the striped measuring light is classified as a phase shift method, and the method of irradiating the measuring object S with code-like measuring light is a spatial code. Classified into law.

一般の位相シフト法に従って正弦波状測定光または縞状測定光の明部分が測定光の照射範囲の全体に少なくとも1回照射されるように正弦波状測定光または縞状測定光を走査することにより、測定対象物Sの高さ画像データが生成される。また、一般の空間コード法に従って、互いに異なるパターンを有する複数のコード状測定光を順次測定対象物Sに照射することにより、測定対象物Sの高さ画像データが生成される。   By scanning the sinusoidal measurement light or the striped measurement light so that the bright portion of the sinusoidal measurement light or the striped measurement light is irradiated at least once over the entire irradiation range of the measurement light according to a general phase shift method, Height image data of the measuring object S is generated. In addition, according to a general space code method, the measurement object S is sequentially irradiated with a plurality of code-like measurement lights having different patterns, whereby the height image data of the measurement object S is generated.

(4)テクスチャ画像および高さ画像の具体例
図5は、ステージ141上に載置される測定対象物Sの一例を示す外観斜視図である。図5の測定対象物Sは、薄肉部s10、厚肉部s20および円柱部s30を有する。薄肉部s10および厚肉部s20の各々は、矩形の板形状を有する。薄肉部s10の一側部と厚肉部s20の一側部とが互いに接合されている。薄肉部s10と厚肉部s20とが接合された状態で、薄肉部s10の下面s12と厚肉部s20の下面s22とは面一となっている。Z方向において厚肉部s20の厚みは薄肉部s10の厚みよりも大きい。厚肉部s20の上面s21上に上方に延びるように円柱部s30が設けられている。
(4) Specific Example of Texture Image and Height Image FIG. 5 is an external perspective view showing an example of the measurement object S placed on the stage 141. The measuring object S in FIG. 5 includes a thin part s10, a thick part s20, and a cylindrical part s30. Each of the thin part s10 and the thick part s20 has a rectangular plate shape. One side of the thin part s10 and one side of the thick part s20 are joined together. In a state where the thin portion s10 and the thick portion s20 are joined, the lower surface s12 of the thin portion s10 and the lower surface s22 of the thick portion s20 are flush with each other. In the Z direction, the thickness of the thick part s20 is larger than the thickness of the thin part s10. A cylindrical part s30 is provided on the upper surface s21 of the thick part s20 so as to extend upward.

薄肉部s10の上面s11、厚肉部s20の上面s21および円柱部s30の上面s31のZ方向における位置(高さ)を比較する。この場合、薄肉部s10の上面s11が最も低く、円柱部s30の上面s31が最も高い。厚肉部s20の上面s21は、薄肉部s10の上面s11よりも高く、円柱部s30の上面s31よりも低い。   The positions (heights) in the Z direction of the upper surface s11 of the thin portion s10, the upper surface s21 of the thick portion s20, and the upper surface s31 of the cylindrical portion s30 are compared. In this case, the upper surface s11 of the thin portion s10 is the lowest and the upper surface s31 of the cylindrical portion s30 is the highest. The upper surface s21 of the thick part s20 is higher than the upper surface s11 of the thin part s10 and lower than the upper surface s31 of the columnar part s30.

円柱部s30の上面s31には、白抜きの文字「A」が印字されている。図5の測定対象物Sの外表面は、白抜きの文字「A」以外の部分は濃い灰色で塗装されている。図6は図5の測定対象物Sのテクスチャ画像の例であり、図7は図5の測定対象物Sの高さ画像の例である。   A white letter “A” is printed on the upper surface s31 of the cylindrical portion s30. The outer surface of the measuring object S in FIG. 5 is painted in dark gray except for the white letter “A”. 6 is an example of a texture image of the measuring object S in FIG. 5, and FIG. 7 is an example of a height image of the measuring object S in FIG.

図6に示すように、テクスチャ画像TIは、測定対象物SをZ方向に見た画像である。図6のテクスチャ画像TIによれば、測定対象物Sの表面上のパターンとして円柱部s30(図5)の上面s31に印字された文字「A」を明りょうに識別することができる。一方、図5の測定対象物Sは文字「A」以外の部分が濃い灰色で塗装されているため、そのテクスチャ画像TIにおいては、図5の薄肉部s10、厚肉部s20および円柱部s30の画像上の境界を示す輪郭TEが識別されにくい。   As shown in FIG. 6, the texture image TI is an image of the measurement object S viewed in the Z direction. According to the texture image TI of FIG. 6, the character “A” printed on the upper surface s31 of the cylindrical portion s30 (FIG. 5) as a pattern on the surface of the measurement object S can be clearly identified. On the other hand, since the measurement object S in FIG. 5 is painted in dark gray except for the letter “A”, in the texture image TI, the thin portion s10, the thick portion s20, and the cylindrical portion s30 in FIG. The contour TE indicating the boundary on the image is difficult to be identified.

一方、図7に示すように、高さ画像HIは、測定対象物Sの表面の各部の高さを互いに異なる複数種類の色で表す。図7においては、色の違いがドットパターンの違いで表される。例えば、最も低い部分が青色で表され、最も高い部分が赤色で表される。他の部分は、高いほど赤色に近づき、低いほど青色に近づくように、高さに応じた色で表される。   On the other hand, as shown in FIG. 7, the height image HI represents the height of each part of the surface of the measuring object S with a plurality of different colors. In FIG. 7, the difference in color is represented by the difference in dot pattern. For example, the lowest part is represented in blue and the highest part is represented in red. The other part is represented by a color corresponding to the height so that the higher the color, the closer the color is to red, and the lower the color, the closer to blue.

図7の高さ画像では、測定対象物Sの表面上のパターンを識別することはできない。したがって、図6のテクスチャ画像TIに示される文字「A」を識別することはできない。一方、図7の高さ画像HIにおいては、測定対象物Sの表面が高さに応じた色で表されるので、図5の薄肉部s10、厚肉部s20および円柱部s30の画像上の境界を示す輪郭HEが識別されやすい。   In the height image of FIG. 7, the pattern on the surface of the measuring object S cannot be identified. Therefore, the character “A” shown in the texture image TI in FIG. 6 cannot be identified. On the other hand, in the height image HI of FIG. 7, the surface of the measurement object S is represented by a color corresponding to the height, so that the thin portion s10, the thick portion s20, and the cylindrical portion s30 of FIG. A contour HE indicating a boundary is easily identified.

(5)画像検査装置の使用例
(5−1)設定モードおよび検査モード
以下の説明では、画像検査装置500の使用者のうち測定対象物Sの検査作業を管理する使用者を適宜設定作成者と呼び、設定作成者の管理の下で測定対象物Sの検査作業を行う使用者を適宜検査作業者と呼ぶ。また、測定対象物Sの姿勢とは、ステージ141上の測定対象物Sの回転角度を意味する。
(5) Usage example of image inspection apparatus (5-1) Setting mode and inspection mode In the following description, among users of the image inspection apparatus 500, a user who manages the inspection work of the measuring object S is appropriately set and created. The user who inspects the measuring object S under the control of the setting creator is appropriately called an inspection operator. Further, the posture of the measuring object S means the rotation angle of the measuring object S on the stage 141.

画像検査装置500は、設定作成者用の設定モードおよび検査作業者用の検査モードを含む複数種類のモードで使用することができる。設定モードでは、設定作成者が一の測定対象物Sについて計測対象部分を決め、その計測対象部分の寸法を計測する。それにより、その測定対象物Sと同様に設計された他の測定対象物Sの検査を行うための情報が検査設定情報として生成される。生成された検査設定情報のデータファイルは検査設定ファイルとして図1の記憶装置240に記憶される。検査設定情報には、例えば設定用対象物Sの計測対象部分ならびに計測対象部分の寸法の設計値および公差が含まれる。以下、設定モードにおいて設定作成者により計測される測定対象物Sを設定用対象物Sと呼ぶ。   The image inspection apparatus 500 can be used in a plurality of types of modes including a setting mode for setting creators and an inspection mode for inspection workers. In the setting mode, the setting creator determines a measurement target part for one measurement object S, and measures the dimension of the measurement target part. Thereby, information for inspecting another measurement object S designed in the same manner as the measurement object S is generated as inspection setting information. The generated data file of inspection setting information is stored in the storage device 240 of FIG. 1 as an inspection setting file. The inspection setting information includes, for example, the measurement target portion of the setting object S and the design values and tolerances of the dimensions of the measurement target portion. Hereinafter, the measurement object S measured by the setting creator in the setting mode is referred to as a setting object S.

検査モードでは、検査作業者が、図1の記憶装置240に記憶された検査設定ファイルに基づいて他の測定対象物Sの検査を行うことができる。以下、検査モードにおいて検査作業者により検査される測定対象物Sを検査対象物Sと呼ぶ。   In the inspection mode, the inspection operator can inspect another measurement object S based on the inspection setting file stored in the storage device 240 of FIG. Hereinafter, the measurement object S to be inspected by the inspection operator in the inspection mode is referred to as the inspection object S.

検査対象物Sの検査時には、計測対象部分の寸法が計測されるとともに、計測された寸法が設計値の公差の範囲内にあるか否かが判定される。計測された寸法が公差の範囲内にある場合、当該検査対象物Sは良品であると判定される。一方、計測された寸法が公差の範囲内にない場合、当該検査対象物Sは不良品であると判定される。検査対象物Sの良否の判定結果は、検査結果として図1の表示部400に表示される。また、検査結果を示すデータファイルは検査結果ファイルとして図1の記憶装置240に記憶される。   When the inspection object S is inspected, the dimension of the measurement target portion is measured, and it is determined whether or not the measured dimension is within the tolerance of the design value. When the measured dimension is within the tolerance range, it is determined that the inspection object S is a non-defective product. On the other hand, when the measured dimension is not within the tolerance range, the inspection object S is determined to be defective. The determination result of the quality of the inspection object S is displayed on the display unit 400 in FIG. 1 as the inspection result. Further, the data file indicating the inspection result is stored in the storage device 240 of FIG. 1 as the inspection result file.

(5−2)設定モードの詳細
図8は、画像検査装置500の表示部400に表示される初期画面の一例を示す図である。図8に示すように、画像検査装置500の初期画面には、検査設定ボタン601、検査実行ボタン602、統計解析ボタン603および設定編集ボタン604が表示される。
(5-2) Details of Setting Mode FIG. 8 is a diagram illustrating an example of an initial screen displayed on the display unit 400 of the image inspection apparatus 500. As shown in FIG. 8, on the initial screen of the image inspection apparatus 500, an inspection setting button 601, an inspection execution button 602, a statistical analysis button 603, and a setting edit button 604 are displayed.

設定作成者は検査設定ボタン601を操作する。それにより、図1のCPU210が設定モードで動作する。図9〜図27は、設定モードでの画像検査装置500の一使用例を説明するための図である。設定作成者は、まず設定用対象物Sを所望の位置および姿勢で図1のステージ141上に載置する。   The setting creator operates the examination setting button 601. Thereby, the CPU 210 of FIG. 1 operates in the setting mode. 9 to 27 are diagrams for explaining an example of use of the image inspection apparatus 500 in the setting mode. The setting creator first places the setting object S on the stage 141 in FIG. 1 in a desired position and posture.

図9に示すように、表示部400に主表示欄411、上部副表示欄412および側部副表示欄413が表示される。主表示欄411は、表示部400の画面の左側辺から画面中央部にかけて広い領域に割り当てられる。上部副表示欄412は、主表示欄411の上方で帯状に割り当てられる。側部副表示欄413は、主表示欄411の右側方で帯状に割り当てられる。   As shown in FIG. 9, a main display field 411, an upper sub display field 412, and a side sub display field 413 are displayed on the display unit 400. The main display column 411 is assigned to a wide area from the left side of the screen of the display unit 400 to the center of the screen. The upper sub display column 412 is assigned in a band shape above the main display column 411. The side sub display column 413 is assigned in a band shape on the right side of the main display column 411.

主表示欄411には、主としてステージ141上に載置される設定用対象物Sのテクスチャ画像、高さ画像および合成画像の他、設定用対象物Sの寸法計測に関する種々の情報が表示される。   In the main display column 411, various information relating to the dimension measurement of the setting object S is displayed in addition to the texture image, the height image, and the composite image of the setting object S mainly placed on the stage 141. .

測定部100において、設定用対象物Sのテクスチャ画像は、所定のフレームレートで連続的に生成される。図9の例では、ステージ141の載置面および設定用対象物Sの画像を含む最新のテクスチャ画像が主表示欄411にリアルタイム表示(動画表示)されている。図9の設定用対象物Sは半導体パッケージである。   In the measurement unit 100, texture images of the setting object S are continuously generated at a predetermined frame rate. In the example of FIG. 9, the latest texture image including the placement surface of the stage 141 and the image of the setting object S is displayed in real time (moving image display) in the main display field 411. The setting object S in FIG. 9 is a semiconductor package.

主表示欄411には、テクスチャ画像とともにステージ操作ボタン421が表示される。使用者は、図1の操作部250を用いてステージ操作ボタン421を操作することにより、ステージ141の載置面の位置をX方向、Y方向およびZ方向に移動させることができる。   In the main display column 411, a stage operation button 421 is displayed together with the texture image. The user can move the position of the mounting surface of the stage 141 in the X, Y, and Z directions by operating the stage operation button 421 using the operation unit 250 of FIG.

設定作成者は、主表示欄411に表示されるテクスチャ画像を視認しつつ図1の投光部110および受光部120に対する設定用対象物Sの位置および姿勢を調整する。設定用対象物Sの位置および姿勢は、設定用対象物Sの計測対象部分の寸法が適切に計測できるように調整される。   The setting creator adjusts the position and orientation of the setting object S with respect to the light projecting unit 110 and the light receiving unit 120 in FIG. 1 while visually recognizing the texture image displayed in the main display field 411. The position and orientation of the setting object S are adjusted so that the dimension of the measurement target portion of the setting object S can be appropriately measured.

上部副表示欄412には、例えば受光部120の倍率、ステージ141上に照射される照明光および測定光の明るさ等の撮像条件をそれぞれ調整するための複数の操作部が表示される。そこで、設定作成者は、主表示欄411に表示されるテクスチャ画像を視認しつつ上部副表示欄412に表示される複数の操作部を操作することにより撮像条件を調整する。撮像条件は、設定用対象物Sの計測対象部分の寸法が適切に計測できるように調整される。   In the upper sub display column 412, for example, a plurality of operation units for adjusting imaging conditions such as the magnification of the light receiving unit 120, the illumination light irradiated on the stage 141, and the brightness of the measurement light are displayed. Therefore, the setting creator adjusts the imaging condition by operating a plurality of operation units displayed in the upper sub display column 412 while visually recognizing the texture image displayed in the main display column 411. The imaging condition is adjusted so that the dimension of the measurement target portion of the setting object S can be appropriately measured.

側部副表示欄413には、位置決め設定ボタン431および測定ボタン432が表示される。設定作成者は、位置決め設定ボタン431を操作することにより、後述する位置決め用画像データの登録方法を設定することができる。   In the side sub display column 413, a positioning setting button 431 and a measurement button 432 are displayed. A setting creator can set a registration method of positioning image data, which will be described later, by operating a positioning setting button 431.

設定用対象物Sの位置および姿勢が適切に調整されるとともに撮像条件が適切に調整された後、設定作成者は測定ボタン432を操作する。それにより、測定ボタン432の操作に応答してテクスチャ画像データが取得される。取得されたテクスチャ画像データは図1の記憶装置240に記憶される。また、ステージ141上の設定用対象物Sに測定光が照射され、高さ画像データが取得される。取得された高さ画像データは図1の記憶装置240に記憶される。さらに、本実施の形態では、生成されたテクスチャ画像データと高さ画像データとが合成されることにより、合成画像データが取得される。取得された合成画像データは図1の記憶装置240に記憶される。   After the position and orientation of the setting object S are appropriately adjusted and the imaging condition is appropriately adjusted, the setting creator operates the measurement button 432. Thereby, texture image data is acquired in response to the operation of the measurement button 432. The acquired texture image data is stored in the storage device 240 of FIG. Further, the setting object S on the stage 141 is irradiated with measurement light, and height image data is acquired. The acquired height image data is stored in the storage device 240 of FIG. Furthermore, in the present embodiment, synthesized image data is acquired by synthesizing the generated texture image data and height image data. The obtained composite image data is stored in the storage device 240 of FIG.

ここで、本実施の形態においては、テクスチャ画像データおよび高さ画像データを取得するために共通の光学系および撮像素子121aが用いられる。測定ボタン432の操作によるテクスチャ画像データおよび高さ画像データの取得時には、CPU210において撮像素子121aの画素ごとにテクスチャ画像データおよび高さ画像データの対応付けが行われる。それにより、取得されるテクスチャ画像データおよび高さ画像データは、画素ごとに対応付けられた状態で記憶装置240に記憶される。   Here, in the present embodiment, a common optical system and the image sensor 121a are used to acquire texture image data and height image data. When obtaining the texture image data and the height image data by operating the measurement button 432, the CPU 210 associates the texture image data and the height image data for each pixel of the image sensor 121a. Thereby, the acquired texture image data and height image data are stored in the storage device 240 in a state of being associated with each pixel.

テクスチャ画像データ、高さ画像データおよび合成画像データが生成されると、図10に示すように、生成されたテクスチャ画像データ、高さ画像データおよび合成画像データのいずれかに基づく設定用対象物Sの画像が主表示欄411に表示される。この状態で、側部副表示欄413には、主表示欄411に表示されるべき画像の種類を選択するための複数の画像選択ボタン433が表示される。   When the texture image data, the height image data, and the composite image data are generated, as shown in FIG. 10, the setting object S based on any one of the generated texture image data, height image data, and composite image data is generated. Are displayed in the main display field 411. In this state, the side sub display column 413 displays a plurality of image selection buttons 433 for selecting the type of image to be displayed in the main display column 411.

図10の例では、複数の画像選択ボタン433として、テクスチャ画像を選択するためのボタン、平面図に相当する高さ画像を選択するためのボタン、および外観斜視図に相当する立体的な高さ画像を選択するためのボタンが示される。設定作成者は、複数の画像選択ボタン433のいずれかを選択することにより、設定用対象物Sについての所望の画像を主表示欄411に切り替えて表示させることができる。   In the example of FIG. 10, as the plurality of image selection buttons 433, a button for selecting a texture image, a button for selecting a height image corresponding to a plan view, and a three-dimensional height corresponding to an external perspective view A button for selecting an image is shown. The setting creator can switch and display a desired image of the setting object S in the main display column 411 by selecting any of the plurality of image selection buttons 433.

側部副表示欄413の下部には、解析ボタン434および戻るボタン435が表示される。設定作成者は、戻るボタン435を操作することにより、表示部400を図9の表示状態に戻すことができる。それにより、設定作成者は、テクスチャ画像データ、高さ画像データおよび合成画像データを再取得することができる。   An analysis button 434 and a return button 435 are displayed below the side sub display column 413. The setting creator can return the display unit 400 to the display state of FIG. 9 by operating the return button 435. Thereby, the setting creator can re-acquire the texture image data, the height image data, and the composite image data.

設定作成者は、検査設定情報を生成するために図10の解析ボタン434を操作する。この場合、図11に示すように、主表示欄411には、直前の測定ボタン432の操作により記憶されたテクスチャ画像データ、高さ画像データおよび合成画像データに基づくテクスチャ画像、高さ画像および合成画像が一覧表示される。また、上部副表示欄412には、保存ボタン441、基準面設定ボタン442、位置合わせボタン443およびプロファイルボタン444が表示される。   The setting creator operates the analysis button 434 in FIG. 10 to generate examination setting information. In this case, as shown in FIG. 11, the main display column 411 has a texture image, a height image, and a composite image based on the texture image data, the height image data, and the composite image data stored by the operation of the previous measurement button 432. A list of images is displayed. In the upper sub display field 412, a save button 441, a reference plane setting button 442, an alignment button 443, and a profile button 444 are displayed.

設定モードにおいては、取得されたテクスチャ画像データおよび高さ画像データのうちいずれかを基準画像データとして登録することができる。基準画像データは、後述する検査モードで取得される検査対象物Sのテクスチャ画像データおよび高さ画像データの位置合わせを行うために用いられる。その位置合わせは、設定モードで登録された基準画像データと検査対象物Sのテクスチャ画像データおよび高さ画像データのうちのいずれかとのパターンマッチングにより実行される。それにより、検査モードにおいて検査対象物Sにおける計測対象箇所の寸法を正確に検査することが可能になる。基準画像データを用いた位置合わせの詳細は後述する。   In the setting mode, any one of the acquired texture image data and height image data can be registered as reference image data. The reference image data is used to align the texture image data and the height image data of the inspection object S acquired in the inspection mode described later. The alignment is performed by pattern matching between the reference image data registered in the setting mode and any one of the texture image data and the height image data of the inspection object S. Accordingly, it is possible to accurately inspect the dimensions of the measurement target portion in the inspection target S in the inspection mode. Details of the alignment using the reference image data will be described later.

設定作成者は、基準画像データについての設定を行うために図11の位置合わせボタン443を操作する。この場合、図12に示すように、主表示欄411に設定用対象物Sのテクスチャ画像が表示されるとともに、側部副表示欄413に基準画像データを登録しないことを指定するためのオフボタン451、および基準画像データを登録することを指定するためのオンボタン452が表示される。また、側部副表示欄413には、オフボタン451およびオンボタン452に加えて、詳細位置合わせ設定ボタン453、位置合わせテストボタン454、OKボタン455およびキャンセルボタン456が表示される。   The setting creator operates the alignment button 443 in FIG. 11 in order to set the reference image data. In this case, as shown in FIG. 12, a texture image of the setting object S is displayed in the main display field 411, and an off button for designating that the reference image data is not registered in the side sub display field 413 451 and an ON button 452 for designating registration of reference image data are displayed. In addition to the off button 451 and the on button 452, a detailed alignment setting button 453, an alignment test button 454, an OK button 455, and a cancel button 456 are displayed in the side sub display column 413.

治具等を用いることによりステージ141上に載置される設定用対象物Sおよび検査対象物Sの位置および姿勢が変化しない場合には、検査モードにおいて必ずしも位置合わせを行う必要はない。このような場合に、設定作成者は、オフボタン451を操作するとともにOKボタン455を操作する。それにより、基準画像データが登録されない。   When the positions and postures of the setting object S and the inspection object S placed on the stage 141 are not changed by using a jig or the like, the alignment is not necessarily performed in the inspection mode. In such a case, the setting creator operates the off button 451 and also operates the OK button 455. Thereby, the reference image data is not registered.

一方、基準画像データを登録するために設定作成者がオンボタン452を操作すると、図13に示すように、主表示欄411に表示されるテクスチャ画像上に領域指定画像が重畳表示される。この領域指定画像は、登録されることになる基準画像データに対応する画像上の領域を指定するための画像である。図13および後続の図面においては、矩形の領域指定画像が適宜白色のハッチングで示される。   On the other hand, when the setting creator operates the ON button 452 to register the reference image data, the region designation image is superimposed on the texture image displayed in the main display field 411 as shown in FIG. This area designation image is an image for designating an area on the image corresponding to the reference image data to be registered. In FIG. 13 and the subsequent drawings, the rectangular area designation image is appropriately indicated by white hatching.

また、図13の例では、側部副表示欄413に画像選択操作部461、矩形領域設定ボタン462、全領域設定ボタン463および回転範囲設定操作部464が表示される。設定作成者は、画像選択操作部461を操作することにより、基準画像データを登録するために用いる画像データとして、テクスチャ画像データおよび高さ画像データのいずれか一方を選択することができる。   In the example of FIG. 13, an image selection operation unit 461, a rectangular region setting button 462, an all region setting button 463 and a rotation range setting operation unit 464 are displayed in the side sub display field 413. The setting creator can select either texture image data or height image data as image data used to register the reference image data by operating the image selection operation unit 461.

テクスチャ画像データが選択されると、図13に示すように主表示欄411にテクスチャ画像が表示される。一方、高さ画像データが選択されると、図14に示すように主表示欄411に高さ画像が表示される。それにより、設定作成者は、画像選択操作部461を操作しつつ主表示欄411を視認することにより基準画像データに適した画像データを識別することができる。   When texture image data is selected, the texture image is displayed in the main display column 411 as shown in FIG. On the other hand, when the height image data is selected, the height image is displayed in the main display column 411 as shown in FIG. Accordingly, the setting creator can identify image data suitable for the reference image data by visually checking the main display field 411 while operating the image selection operation unit 461.

設定作成者は、基準画像データの登録に用いる画像データを選択した後、例えば矩形領域設定ボタン462を操作する。この場合、設定作成者は、主表示欄411上でドラッグ操作を行うことにより、矩形の領域指定画像の位置および大きさを変更することができる。それにより、設定作成者は、基準画像データに対応する画像上の領域を所望の位置および所望の大きさに設定し、設定された領域に対応する基準画像データを登録することができる。   The setting creator operates, for example, a rectangular area setting button 462 after selecting image data used for registration of the reference image data. In this case, the setting creator can change the position and size of the rectangular area designation image by performing a drag operation on the main display field 411. Thereby, the setting creator can set the region on the image corresponding to the reference image data to a desired position and a desired size, and register the reference image data corresponding to the set region.

一方、設定作成者は、基準画像データの登録に用いる画像データを選択した後、例えば全領域設定ボタン463を操作する。それにより、設定作成者は、選択された画像データの全領域に対応する基準画像データを登録することができる。   On the other hand, the setting creator operates the all area setting button 463, for example, after selecting the image data used for registration of the reference image data. Thereby, the setting creator can register the reference image data corresponding to the entire area of the selected image data.

上記の操作により登録される基準画像データの画像の領域は、後述する検査モードの位置合わせにおけるパターンマッチングの探索領域として設定される。本例の画像検査装置500においては、検査モードの位置合わせにおけるパターンマッチングの探索条件として、上記の探索領域に加えて探索角度を設定することができる。   The image area of the reference image data registered by the above operation is set as a pattern matching search area in the alignment of the inspection mode described later. In the image inspection apparatus 500 of this example, a search angle can be set in addition to the search area as a pattern matching search condition in the alignment of the inspection mode.

設定作成者は、図13および図14の回転範囲設定操作部464を操作することにより、探索角度を制限することまたは探索角度を制限しないことを設定することができる。さらに、設定作成者は、探索角度を制限する場合に、探索角度の大きさを指定することができる。この場合、指定された大きさで探索角度が設定される。   The setting creator can set to limit the search angle or not to limit the search angle by operating the rotation range setting operation unit 464 of FIGS. 13 and 14. Furthermore, the setting creator can specify the size of the search angle when limiting the search angle. In this case, the search angle is set with a designated size.

画像データの選択、探索領域の設定および探索角度の設定が終了すると、設定作成者は、側部副表示欄413に表示されるOKボタン455を操作する。それにより、基準画像データが登録された状態で、表示部400が図12の表示状態に戻る。   When the selection of the image data, the setting of the search area, and the setting of the search angle are completed, the setting creator operates an OK button 455 displayed in the side sub display field 413. Thereby, the display unit 400 returns to the display state of FIG. 12 with the reference image data registered.

設定モードにおいては、設定用対象物Sの特徴部分を登録しておくことにより、検査モードのパターンマッチングによる位置合わせの後、登録された特徴部分に基づいてより詳細な位置合わせ(以下、詳細位置合わせと呼ぶ。)を行うことができる。   In the setting mode, by registering the characteristic portion of the setting object S, after the alignment by pattern matching in the inspection mode, more detailed alignment (hereinafter, detailed position) is performed based on the registered characteristic portion. Can be performed).

設定用対象物Sの特徴部分を登録する場合、設定作成者は、基準画像データに関する登録作業の後に、図12の詳細位置合わせ設定ボタン453を操作する。この場合、図15に示すように、主表示欄411に設定用対象物Sのテクスチャ画像が表示されるとともに、側部副表示欄413に複数の描画ボタン471、エッジ検出ボタン472、画像選択操作部473および複数の詳細位置合わせ方法ボタン474が表示される。   When registering the characteristic portion of the setting object S, the setting creator operates the detailed alignment setting button 453 in FIG. 12 after the registration work related to the reference image data. In this case, as shown in FIG. 15, the texture image of the setting object S is displayed in the main display field 411, and a plurality of drawing buttons 471, edge detection buttons 472, and image selection operations are displayed in the side sub display field 413. A portion 473 and a plurality of detailed alignment method buttons 474 are displayed.

設定作成者は、まず画像選択操作部473を操作することにより、特徴部分を登録するために用いる画像データとして、テクスチャ画像データおよび高さ画像データのいずれか一方を選択することができる。   By first operating the image selection operation unit 473, the setting creator can select either texture image data or height image data as image data used for registering the feature portion.

テクスチャ画像データが選択されると、図15に示すように主表示欄411にテクスチャ画像が表示される。一方、高さ画像データが選択されると、主表示欄411に高さ画像が表示される。それにより、設定作成者は、画像選択操作部473を操作しつつ主表示欄411を視認することにより特徴部分を登録するために適した画像データを識別することができる。   When texture image data is selected, the texture image is displayed in the main display column 411 as shown in FIG. On the other hand, when the height image data is selected, the height image is displayed in the main display field 411. Accordingly, the setting creator can identify image data suitable for registering the characteristic portion by visually checking the main display field 411 while operating the image selection operation unit 473.

続いて、設定作成者は、複数の描画ボタン471を操作することにより、主表示欄411に表示される設定用対象物Sの画像上に、特徴部分を特定するための幾何図形として点または線を描画する。図15の例では、略長方形状を有する設定用対象物Sの画像の一の短辺とその短辺に直交する一の長辺にそれぞれ沿うように2本の直線が描画されている。ここで、設定作成者は、描画作業の前に予めエッジ検出ボタン472を操作しておくことにより、設定用対象物Sの画像上で検出されるエッジに沿うように2本の直線を描画することができる。   Subsequently, the setting creator operates a plurality of drawing buttons 471 to display points or lines as geometric figures for specifying the characteristic portion on the image of the setting object S displayed in the main display field 411. Draw. In the example of FIG. 15, two straight lines are drawn along one short side of the image of the setting object S having a substantially rectangular shape and one long side orthogonal to the short side. Here, the setting creator draws two straight lines along the edge detected on the image of the setting object S by operating the edge detection button 472 in advance before the drawing work. be able to.

特徴部分を特定するための幾何図形の描画が完了すると、設定作成者は、複数の詳細位置合わせ方法ボタン474のいずれかを操作する。それにより、描画された幾何図形に基づく特徴部分の特定方法が設定される。   When the drawing of the geometric figure for specifying the characteristic part is completed, the setting creator operates one of the plurality of detailed alignment method buttons 474. Thereby, a method for specifying a feature portion based on the drawn geometric figure is set.

図15の例では、テクスチャ画像上に描画された2本の直線により、2本の直線の交点に位置する設定用対象物Sの角部が特定される。また、その角部から延びる直線に沿う設定用対象物Sの一の短辺が特定される。特定された角部および一の短辺がその設定用対象物Sの特徴部分として登録される。   In the example of FIG. 15, the corner of the setting object S located at the intersection of the two straight lines is specified by the two straight lines drawn on the texture image. Further, one short side of the setting object S along a straight line extending from the corner is specified. The specified corner and one short side are registered as the characteristic part of the setting object S.

特徴部分の登録が終了すると、設定作成者は、側部副表示欄413に表示されるOKボタン455を操作する。それにより、表示部400が図12の表示状態に戻る。   When the registration of the feature portion is completed, the setting creator operates the OK button 455 displayed in the side sub display column 413. Thereby, the display part 400 returns to the display state of FIG.

設定用対象物Sを用いた検査設定情報の生成前には、設定用対象物Sと同じ形状を有する測定対象物Sのテクスチャ画像データおよび高さ画像データが予め標本画像データとして取得され、図1の記憶装置240に記憶されている。   Before the generation of the inspection setting information using the setting object S, the texture image data and the height image data of the measurement object S having the same shape as the setting object S are acquired in advance as sample image data. 1 storage device 240.

設定作成者は、登録された基準画像データにより検査モードの位置合わせが適切に実行されるか否かを、標本画像データに基づいて判定することができる。この場合、設定作成者は、図12の側部副表示欄413に表示される位置合わせテストボタン454を操作する。それにより、図16に示すように、主表示欄411に設定用対象物Sのテクスチャ画像が表示される。そのテクスチャ画像には、白い一点鎖線で示すように中心部で直交する2本の直線が重畳表示される。さらに、そのテクスチャ画像には、登録された基準画像データに対応する探索領域が重畳表示される。図16では、探索領域が白いハッチングで示される。   The setting creator can determine whether or not the alignment of the inspection mode is appropriately executed based on the registered reference image data based on the sample image data. In this case, the setting creator operates the alignment test button 454 displayed in the side sub display column 413 in FIG. Thereby, as shown in FIG. 16, the texture image of the setting object S is displayed in the main display field 411. In the texture image, two straight lines that are orthogonal to each other at the center are superimposed and displayed as indicated by a white dot-and-dash line. In addition, a search area corresponding to the registered reference image data is superimposed on the texture image. In FIG. 16, the search area is indicated by white hatching.

また、テクスチャ画像の下部には、テクスチャ画像上で横方向に延びる直線に対応する設定用対象物Sの表面形状が表される。さらに、テクスチャ画像の側部には、テクスチャ画像上で縦方向に延びる直線に対応する設定用対象物Sの表面形状が表される。この時点で主表示欄411に表示される複数の画像は、基準画像データの登録前に取得された設定用対象物Sのテクスチャ画像データおよび高さ画像データに基づく画像である。   In addition, the surface shape of the setting object S corresponding to a straight line extending in the horizontal direction on the texture image is displayed below the texture image. Further, the surface shape of the setting object S corresponding to a straight line extending in the vertical direction on the texture image is represented on the side of the texture image. The plurality of images displayed in the main display field 411 at this time are images based on the texture image data and the height image data of the setting object S acquired before registration of the reference image data.

上記のように、主表示欄411に複数の画像が表示された状態で、側部副表示欄413に標本画像選択操作部481、表示画像選択操作部482、テスト実行ボタン483および戻るボタン484が表示される。   As described above, in a state where a plurality of images are displayed in the main display column 411, the side image display selection unit 482, the display image selection operation unit 482, the test execution button 483, and the return button 484 are displayed in the side sub display column 413. Is displayed.

標本画像選択操作部481は、例えばプルダウンメニューを含み、予め図1の記憶装置240に記憶されている1または複数の標本画像データを選択可能に構成される。設定作成者は、標本画像選択操作部481を操作することにより、所望の標本画像データを選択する。それにより、選択された標本画像データが読み出される。   The sample image selection operation unit 481 includes, for example, a pull-down menu, and is configured to be able to select one or a plurality of sample image data stored in advance in the storage device 240 of FIG. The setting creator operates the sample image selection operation unit 481 to select desired sample image data. Thereby, the selected sample image data is read out.

次に、設定作成者は、表示画像選択操作部482を操作することにより、主表示欄411に表示される画像を選択することができる。例えば、設定作成者は、設定用対象物Sの画像のみを主表示欄411に表示させることができる。また、設定作成者は、読み出された標本画像データに基づく画像のみを主表示欄411に表示させることができる。さらに、設定作成者は、図17に示すように、設定用対象物Sの画像と標本画像データに基づく画像とを、主表示欄411上で重畳表示させることができる。   Next, the setting creator can select an image displayed in the main display column 411 by operating the display image selection operation unit 482. For example, the setting creator can display only the image of the setting object S in the main display field 411. Further, the setting creator can display only an image based on the read sample image data in the main display column 411. Further, as shown in FIG. 17, the setting creator can superimpose and display the image of the setting object S and the image based on the sample image data on the main display field 411.

設定用対象物Sに対応する標本画像データが読み出された状態で、設定作成者はテスト実行ボタン483を操作する。それにより、設定用対象物Sについて登録された基準画像データに対応する標本画像データが位置合わせ用画像データとして登録される。   In a state where the sample image data corresponding to the setting object S has been read, the setting creator operates the test execution button 483. Thereby, sample image data corresponding to the reference image data registered for the setting object S is registered as image data for alignment.

すなわち、基準画像データがテクスチャ画像データである場合には、テクスチャ画像データの標本画像データが位置合わせ用画像データとして登録される。一方、基準画像データが高さ画像データである場合には、高さ画像データの標本画像データが位置合わせ用画像データとして登録される。   That is, when the reference image data is texture image data, the sample image data of the texture image data is registered as image data for alignment. On the other hand, when the reference image data is height image data, the sample image data of the height image data is registered as image data for alignment.

その後、位置合わせ用画像データがパターンマッチングにより基準画像データに位置合わせされる。この状態で、設定作成者は、図18に示すように、例えば主表示欄411上で設定用対象物Sのテクスチャ画像と標本画像データに基づくテクスチャ画像とが広い範囲に渡って重なり合っていることを確認することができる。それにより、登録された基準画像データが適切であることを容易かつ短時間で判定することができる。   Thereafter, the alignment image data is aligned with the reference image data by pattern matching. In this state, as shown in FIG. 18, the setting creator confirms that the texture image of the setting object S and the texture image based on the sample image data overlap over a wide range on the main display field 411, for example. Can be confirmed. Thereby, it can be determined easily and in a short time that the registered reference image data is appropriate.

ここで、図19に示すように、設定用対象物Sのテクスチャ画像のうち特徴的なパターンが存在しない部分に対応する基準画像データが登録される場合には、パターンマッチングが適切に行われない可能性がある。この場合、図20に示すように、設定用対象物Sのテクスチャ画像と標本画像データに基づくテクスチャ画像とがほとんど重ならない状態で表示される。それにより、設定作成者は、主表示欄411を視認することにより登録された基準画像データが適切でないことを容易かつ短時間で判定することができる。したがって、設定作成者は、新たな基準画像データを再度登録することができる。   Here, as shown in FIG. 19, when reference image data corresponding to a portion where no characteristic pattern exists in the texture image of the setting object S is registered, pattern matching is not appropriately performed. there is a possibility. In this case, as shown in FIG. 20, the texture image of the setting object S and the texture image based on the sample image data are displayed in a state where they do not overlap each other. Thereby, the setting creator can easily and quickly determine that the registered reference image data is not appropriate by viewing the main display field 411. Therefore, the setting creator can register new reference image data again.

なお、図1のCPU210において、基準画像データへの位置合わせ用画像データの位置合わせが正確に行われたか否かを判定することが可能である場合には、その判定結果が表示部400に表示されてもよい。   In the case where the CPU 210 in FIG. 1 can determine whether or not the alignment image data is accurately aligned with the reference image data, the determination result is displayed on the display unit 400. May be.

上記のように、登録された基準画像データについての判定を行った後、設定作成者は、戻るボタン484を操作する。それにより、表示部400が図11の表示状態に戻る。   As described above, after making the determination for the registered reference image data, the setting creator operates the return button 484. Thereby, the display part 400 returns to the display state of FIG.

設定モードにおいては、設定用対象物Sのテクスチャ画像データおよび高さが像データが取得された後、Z方向に交差する任意の基準面を指定することが可能である。この場合、設定作成者は、図11の基準面設定ボタン442を操作する。それにより、図21に示すように、主表示欄411に設定用対象物Sのテクスチャ画像が表示される。そのテクスチャ画像には、図16の例と同様に、中心部で直交する2本の直線が重畳表示される。また、テクスチャ画像の下部に横方向に延びる直線に対応する設定用対象物Sの表面形状が表される。さらに、テクスチャ画像の側部に縦方向に延びる直線に対応する設定用対象物Sの表面形状が表される。   In the setting mode, after the texture image data and height of the setting object S are acquired, it is possible to specify an arbitrary reference plane that intersects the Z direction. In this case, the setting creator operates the reference plane setting button 442 in FIG. Thereby, as shown in FIG. 21, the texture image of the setting object S is displayed in the main display column 411. As in the example of FIG. 16, two straight lines orthogonal to each other at the center are superimposed on the texture image. Further, the surface shape of the setting object S corresponding to a straight line extending in the horizontal direction is displayed below the texture image. Furthermore, the surface shape of the setting object S corresponding to a straight line extending in the vertical direction is represented on the side of the texture image.

設定作成者は、主表示欄411上でドラッグ操作を行うことにより、白いハッチングで示すように、所望の位置に所望の大きさの矩形領域を所望の数指定することができる。この場合、指定された1または複数の矩形領域の全体が含まれるように基準面が算出され、登録される。具体的には、基準面は、例えば指定された1または複数の矩形領域の表面の各部分のZ方向の位置に基づいて、最小二乗法を用いることにより算出される。   The setting creator can specify a desired number of rectangular areas having a desired size at desired positions as indicated by white hatching by performing a drag operation on the main display field 411. In this case, the reference plane is calculated and registered so as to include the entire designated rectangular area or areas. Specifically, the reference plane is calculated by using the least square method, for example, based on the position in the Z direction of each part of the surface of the designated one or more rectangular areas.

このようにして算出された基準面が登録されることにより、設定用対象物Sについて取得された高さ画像データは、設定用対象物Sの表面の各部分の位置が登録された基準面に直交する方向においてその基準面からの距離を表すように補正される。この場合、補正後の高さデータによれば、基準面からの設定用対象物Sの表面の各部分の位置を容易に確認することができる。   By registering the reference plane calculated in this way, the height image data acquired for the setting object S is registered on the reference plane in which the position of each part of the surface of the setting object S is registered. Correction is performed to represent the distance from the reference plane in the orthogonal direction. In this case, according to the height data after correction, the position of each part of the surface of the setting object S from the reference plane can be easily confirmed.

例えば、図21に示すように、設定用対象物Sが載置されるステージ141の載置面の一部の領域に基準面が登録される場合、高さ画像データは設定用対象物Sの表面の各部分の位置がステージ141の載置面からの距離を表すように補正される。基準面の登録が完了すると、設定作成者は、側部副表示欄413に表示されるOKボタン455を操作する。それにより、表示部400が図11の表示状態に戻る。   For example, as shown in FIG. 21, when the reference plane is registered in a partial area of the placement surface of the stage 141 on which the setting object S is placed, the height image data is the setting object S. The position of each part of the surface is corrected so as to represent the distance from the mounting surface of the stage 141. When the registration of the reference plane is completed, the setting creator operates the OK button 455 displayed in the side sub display field 413. Thereby, the display part 400 returns to the display state of FIG.

設定作成者は、設定用対象物Sについて取得されたテクスチャ画像データおよび高さ画像データに基づいて予め定められた計測対象部分の寸法を計測する。この場合、設定作成者は、図11のプロファイルボタン444を操作する。それにより、図22に示すように、主表示欄411に設定用対象物Sの合成画像およびテクスチャ画像が隣り合うように表示される。また、合成画像およびテクスチャ画像の下方に、設定用対象物Sの表面形状を表示するための表示領域が形成される。   The setting creator measures the dimension of the measurement target portion determined in advance based on the texture image data and the height image data acquired for the setting object S. In this case, the setting creator operates the profile button 444 in FIG. Thereby, as shown in FIG. 22, the composite image and the texture image of the setting object S are displayed adjacent to each other in the main display field 411. Further, a display area for displaying the surface shape of the setting object S is formed below the synthesized image and the texture image.

図22の表示状態において、テクスチャ画像の上部には、表示画像切替ボタン419が表示される。設定作成者は、表示画像切替ボタン419を操作することにより、主表示欄411に表示されるテクスチャ画像を高さ画像に切り替えることができる。また、主表示欄411に表示される高さ画像をテクスチャ画像に切り替えることができる。   In the display state of FIG. 22, a display image switching button 419 is displayed above the texture image. The setting creator can switch the texture image displayed in the main display field 411 to the height image by operating the display image switching button 419. Also, the height image displayed in the main display field 411 can be switched to a texture image.

側部副表示欄413には、複数の描画ボタン471、エッジ検出ボタン472および画像選択操作部473が表示される。設定作成者は、まず画像選択操作部473を操作することにより、計測対象部分の寸法を計測するために用いる画像データとして、テクスチャ画像データおよび高さ画像データのいずれか一方を選択することができる。   In the side sub display field 413, a plurality of drawing buttons 471, an edge detection button 472, and an image selection operation unit 473 are displayed. By first operating the image selection operation unit 473, the setting creator can select either texture image data or height image data as image data used to measure the dimensions of the measurement target portion. .

続いて、設定作成者は、複数の描画ボタン471を操作することにより、主表示欄411に表示される設定用対象物Sの画像上に、計測対象部分を特定するための幾何図形として点または線を描画する。ここで、設定作成者は、描画作業の前に予めエッジ検出ボタン472を操作しておくことにより、設定用対象物Sの画像上で検出されるエッジに沿う線または点を容易に描画することができる。   Subsequently, the setting creator operates a plurality of drawing buttons 471 to display dots or geometrical figures for specifying the measurement target portion on the image of the setting object S displayed in the main display field 411. Draw a line. Here, the setting creator can easily draw a line or a point along the edge detected on the image of the setting object S by operating the edge detection button 472 in advance before the drawing work. Can do.

図23に示すように、主表示欄411に表示される設定用対象物Sの画像に描画された幾何図形が重畳表示される。図23の例では、主表示欄411に表示されるテクスチャ画像上に横方向に延びる直線が重畳表示される。また、直線に対応する設定用対象物Sの表面形状が合成画像およびテクスチャ画像の下方に表示される。   As shown in FIG. 23, the geometric figure drawn on the image of the setting object S displayed in the main display field 411 is displayed in a superimposed manner. In the example of FIG. 23, a straight line extending in the horizontal direction is superimposed and displayed on the texture image displayed in the main display field 411. Further, the surface shape of the setting object S corresponding to the straight line is displayed below the synthesized image and the texture image.

この状態で、側部副表示欄413に複数の寸法計測方法ボタン491が表示される。そこで、設定作成者は、複数の寸法計測方法ボタン491のいずれかを操作するとともに主表示欄411に表示される複数の画像上で計測対象部分を指定する。それにより、指定される計測対象部分の寸法が計測される。その結果、図24に示すように、計測対象部分を示す画像が設定用対象物Sの画像上に重畳表示されるとともに、計測結果(計測値)が主表示欄411に表示される。   In this state, a plurality of dimension measurement method buttons 491 are displayed in the side sub display column 413. Therefore, the setting creator operates one of the plurality of dimension measurement method buttons 491 and specifies the measurement target portion on the plurality of images displayed in the main display column 411. Thereby, the dimension of the specified measurement target part is measured. As a result, as shown in FIG. 24, an image showing the measurement target portion is displayed superimposed on the image of the setting object S, and a measurement result (measurement value) is displayed in the main display column 411.

上記のようにして、1または複数の計測対象部分の寸法が計測された後、設定作成者は、側部副表示欄413に表示されるOKボタン455を操作する。それにより、図25に示すように、主表示欄411に設定用対象物Sについての複数の画像が表示されるとともに、それらの画像の下方に計測結果が一覧表示される。このとき、計測対象部分ごとに寸法の設計値、上限値および下限値を入力するための複数の入力欄492が表示される。本例では、上限値と下限値との間の範囲が公差に相当する。   After the dimensions of one or a plurality of measurement target portions are measured as described above, the setting creator operates the OK button 455 displayed in the side sub display field 413. Thereby, as shown in FIG. 25, a plurality of images about the setting object S are displayed in the main display column 411, and a list of measurement results is displayed below these images. At this time, a plurality of input fields 492 for inputting the design value, the upper limit value, and the lower limit value of the dimension for each measurement target portion are displayed. In this example, the range between the upper limit value and the lower limit value corresponds to the tolerance.

設定作成者は、計測結果を確認しつつ計測対象部分の各々の設計値、上限値および下限値を入力する。それにより、計測結果が入力された上限値と下限値との間の範囲(公差)内である場合には、当該計測結果に対応する計測対象部分の寸法が適切であると判定することができる。一方、計測結果が入力された上限値と下限値との間の範囲(公差)内にない場合には、当該計測結果に対応する計測対象部分の寸法が適切でないと判定することができる。   The setting creator inputs the design value, the upper limit value, and the lower limit value of each measurement target portion while confirming the measurement result. Thereby, when the measurement result is within a range (tolerance) between the input upper limit value and lower limit value, it can be determined that the dimension of the measurement target portion corresponding to the measurement result is appropriate. . On the other hand, when the measurement result is not within the range (tolerance) between the input upper limit value and lower limit value, it can be determined that the dimension of the measurement target portion corresponding to the measurement result is not appropriate.

その後、設定作成者は、図25の上部副表示欄412の保存ボタン441を操作する。それにより、設定用対象物Sの計測対象部分の寸法を計測するための種々の情報を含む検査設定情報のデータファイルが、検査設定ファイルとして図1の記憶装置240に記憶される。それにより、検査設定情報の生成作業が終了する。   Thereafter, the setting creator operates the save button 441 in the upper sub display field 412 in FIG. Thereby, the data file of the inspection setting information including various information for measuring the dimension of the measurement target portion of the setting object S is stored in the storage device 240 of FIG. 1 as the inspection setting file. Thereby, the work of generating inspection setting information is completed.

検査設定情報には、主として、撮像条件、X−Yステージ10(ステージ141の載置面)の移動量、基準画像データ、画像処理の設定条件、特徴部分の指定方法、基準面の登録条件、計測対象部分の指定方法、寸法の計測方法、寸法の設計値、寸法の上限値、寸法の下限値、テクスチャ画像データ、高さ画像データ、合成画像データおよび後述する位置決め用画像データ等が含まれる。   The inspection setting information mainly includes imaging conditions, movement amount of the XY stage 10 (the mounting surface of the stage 141), reference image data, image processing setting conditions, a method for specifying a characteristic portion, reference surface registration conditions, Includes measurement target part specification method, dimensional measurement method, dimensional design value, dimensional upper limit value, dimensional lower limit value, texture image data, height image data, composite image data, and positioning image data described later. .

なお、図25の表示状態においては、側部副表示欄413に工程情報ボタン493および保存オプションボタン494が表示される。設定作成者は、工程情報ボタン493を操作することにより、検査設定情報として、後述する検査モードにおける検査対象物Sの「ロット番号」、「品名」および「納入先」等の情報を入力することができる。また、設定作成者は、保存オプションボタン494を操作することにより、後述する検査モードにおいて計測結果を保存すべき条件等の種々の情報を入力することができる。   25, a process information button 493 and a save option button 494 are displayed in the side sub display field 413. The setting creator operates the process information button 493 to input information such as “lot number”, “product name”, and “delivery destination” of the inspection object S in the inspection mode described later as inspection setting information. Can do. Further, the setting creator can input various information such as conditions for storing measurement results in an inspection mode described later by operating a save option button 494.

設定モードにおいては、検査設定情報として位置決め用画像データが登録される。位置決め用画像データが登録されることにより、後述する検査モードにおける検査対象物Sの検査時に、検査対象物Sの位置および姿勢を設定モードにおける設定用対象物Sの位置および姿勢に容易かつ正確に合わせることが可能になる。   In the setting mode, positioning image data is registered as inspection setting information. By registering the positioning image data, the position and orientation of the inspection object S can be easily and accurately set to the position and orientation of the setting object S in the setting mode when inspecting the inspection object S in the inspection mode described later. It becomes possible to match.

設定作成者は、上記のように、図9の側部副表示欄413に表示される位置決め設定ボタン431を操作することにより、位置決め用画像データの登録方法を設定することができる。以下の説明では、位置決め用画像データに基づく画像を位置決め用画像と呼ぶ。   As described above, the setting creator can set the registration method of the positioning image data by operating the positioning setting button 431 displayed in the side sub-display field 413 of FIG. In the following description, an image based on the positioning image data is referred to as a positioning image.

例えば、設定作成者は、図9の測定ボタン432の操作により取得される設定用対象物Sのテクスチャ画像データが位置決め用画像データとして登録されるように位置決め用画像データの登録方法を設定することができる。この場合、例えば図9に示される設定用対象物Sのテクスチャ画像が位置決め用画像となる。   For example, the setting creator sets the registration method of the positioning image data so that the texture image data of the setting object S acquired by operating the measurement button 432 in FIG. 9 is registered as the positioning image data. Can do. In this case, for example, the texture image of the setting object S shown in FIG. 9 is the positioning image.

また、設定作成者は、複数の位置決め用画像データが登録されるように位置決め用画像データの登録方法を設定することもできる。複数の位置決め用画像データの登録作業が開始されると、図26に示すように、主表示欄411に設定用対象物Sのテクスチャ画像が表示されるとともに側部副表示欄413に登録ボタン415および完了ボタン417が表示される。   The setting creator can also set the registration method of positioning image data so that a plurality of positioning image data are registered. When registration of a plurality of positioning image data is started, as shown in FIG. 26, the texture image of the setting object S is displayed in the main display column 411 and the registration button 415 in the side sub-display column 413. And a completion button 417 is displayed.

設定作成者は、設定用対象物Sが所望の位置および姿勢にある状態で登録ボタン415を操作する。それにより、取得されるテクスチャ画像データが一の位置決め用画像データとして登録される。続いて、設定作成者は、撮像条件を変更したり、X−Yステージ10(ステージ141の載置面)を移動させたりすることにより、設定用対象物Sの位置および姿勢を再調整した後登録ボタン415を操作する。それにより、新たに取得されるテクスチャ画像データが次の位置決め用画像データとして登録される。このような登録作業が繰り返されることにより、複数の位置決め用画像データが登録される。   The setting creator operates the registration button 415 in a state where the setting object S is in a desired position and posture. Thereby, the obtained texture image data is registered as one positioning image data. Subsequently, after the setting creator re-adjusts the position and orientation of the setting object S by changing the imaging condition or moving the XY stage 10 (the mounting surface of the stage 141). The registration button 415 is operated. Thereby, the newly acquired texture image data is registered as the next positioning image data. By repeating such registration work, a plurality of positioning image data are registered.

このとき、登録された位置決め用画像データに基づく位置決め用画像は、図26および図27に示すように、側部副表示欄413に順次縮小表示される。したがって、設定作成者は、登録された複数の位置決め用画像データを容易に認識することができる。   At this time, the positioning image based on the registered positioning image data is sequentially reduced and displayed in the side sub-display field 413 as shown in FIGS. Therefore, the setting creator can easily recognize the plurality of registered positioning image data.

ここで、1または複数の位置決め用画像データがそれぞれ登録される際には、各位置決め用画像データが取得される際の撮像条件がその位置決め用画像データに対応付けられた状態で図1の記憶装置240に記憶される。また、複数の位置決め用画像データが登録される場合、その登録作業時に設定作成者により移動されるX−Yステージ10のX方向、Y方向およびZ方向の移動量が、複数の位置決め用画像データに対応付けられた状態で記憶装置240に記憶される。   Here, when one or a plurality of positioning image data is registered, the image capturing conditions for acquiring each positioning image data are associated with the positioning image data and stored in FIG. Stored in device 240. Further, when a plurality of positioning image data are registered, the amount of movement in the X, Y, and Z directions of the XY stage 10 that is moved by the setting creator at the time of registration is determined by the plurality of positioning image data. Is stored in the storage device 240 in a state associated with.

例えば、まず受光部120が低倍率に設定された状態で、図26に示すように、設定用対象物Sの全体を示すテクスチャ画像データが取得され、取得されたテクスチャ画像データが1番目の位置決め用画像データとして登録される。このとき、その登録時点の受光部120の倍率を含む撮像条件が1番目の位置決め用画像データに対応付けられた状態で記憶装置240に記憶される。   For example, in the state where the light receiving unit 120 is set to a low magnification, as shown in FIG. 26, texture image data indicating the entire setting object S is acquired, and the acquired texture image data is the first positioning. Registered as image data. At this time, the imaging condition including the magnification of the light receiving unit 120 at the time of registration is stored in the storage device 240 in a state associated with the first positioning image data.

次に、設定作成者は、設定用対象物Sの一の角部がテクスチャ画像の中央に表示されるように、X−Yステージ10(ステージ141の載置面)をX方向およびY方向に移動させる。その後、設定作成者は、受光部120の倍率を低倍率から高倍率に変更する。それにより、図27に示すように、設定用対象物Sの一の角部が拡大された画像を示すテクスチャ画像データが取得される。この状態で、取得されたテクスチャ画像データが2番目の位置決め用画像データとして登録される。このとき、その登録時点の受光部120の倍率を含む撮像条件が2番目の位置決め用画像データに対応付けられた状態で記憶装置240に記憶される。また、1番目の位置決め用画像データが取得された後2番目の位置決め用画像データが取得されるまでのX−Yステージ10の移動量がそれらの位置決め用画像データに対応付けられた状態で記憶装置240に記憶される。   Next, the setting creator moves the XY stage 10 (the mounting surface of the stage 141) in the X direction and the Y direction so that one corner of the setting object S is displayed in the center of the texture image. Move. Thereafter, the setting creator changes the magnification of the light receiving unit 120 from a low magnification to a high magnification. Thereby, as shown in FIG. 27, texture image data indicating an image in which one corner of the setting object S is enlarged is acquired. In this state, the acquired texture image data is registered as second positioning image data. At this time, the imaging condition including the magnification of the light receiving unit 120 at the time of registration is stored in the storage device 240 in a state associated with the second positioning image data. Further, the movement amount of the XY stage 10 from the acquisition of the first positioning image data to the acquisition of the second positioning image data is stored in a state in which the movement amount is associated with the positioning image data. Stored in device 240.

所望の数の位置決め用画像データが登録されると、設定作成者は、完了ボタン417を操作する。それにより、表示部400は図9の表示状態に戻る。   When the desired number of positioning image data is registered, the setting creator operates the completion button 417. Thereby, the display part 400 returns to the display state of FIG.

(5−3)検査モードの詳細
検査作業者が図8の検査実行ボタン602を操作することにより、図1のCPU210が検査モードで動作する。検査モードにおいては、設定作成者によって生成された検査設定情報に基づいて検査作業者が検査対象物Sの検査を行う。
(5-3) Details of Inspection Mode When the inspection operator operates the inspection execution button 602 in FIG. 8, the CPU 210 in FIG. 1 operates in the inspection mode. In the inspection mode, the inspection operator inspects the inspection object S based on the inspection setting information generated by the setting creator.

図28〜図34は、検査モードでの画像検査装置500の一使用例を説明するための図である。図8の検査実行ボタン602が操作されることにより、図28に示すように、表示部400に主表示欄411、上部副表示欄412および側部副表示欄413が表示される。   FIG. 28 to FIG. 34 are diagrams for explaining an example of use of the image inspection apparatus 500 in the inspection mode. When the examination execution button 602 in FIG. 8 is operated, as shown in FIG. 28, a main display column 411, an upper sub display column 412 and a side sub display column 413 are displayed on the display unit 400.

図28の例では、主表示欄411にステージ141の載置面を示すテクスチャ画像が表示されている。上部副表示欄412には、例えば複数種類の撮像条件をそれぞれ調整するための複数のプルダウンメニューが表示される。   In the example of FIG. 28, a texture image indicating the placement surface of the stage 141 is displayed in the main display field 411. In the upper sub display field 412, for example, a plurality of pull-down menus for adjusting a plurality of types of imaging conditions are displayed.

側部副表示欄413には、検査設定ファイル選択部511および測定ボタン513が表示される。検査設定ファイル選択部511は、例えばプルダウンメニューを含み、設定モードにおいて予め図1の記憶装置240に記憶されている1または複数の検査設定ファイルのうちいずれか1つを選択可能に構成される。   In the side sub display column 413, an inspection setting file selection unit 511 and a measurement button 513 are displayed. The inspection setting file selection unit 511 includes a pull-down menu, for example, and is configured to be able to select any one of one or a plurality of inspection setting files stored in advance in the storage device 240 of FIG. 1 in the setting mode.

検査作業者は、検査設定ファイル選択部511を操作することにより、所望の検査設定ファイルを選択する。それにより、選択された検査設定ファイルの検査設定情報が読み出される。本例では、上記の設定モードにおいて図9〜図25に示す手順で生成される検査設定情報が読み出されるものとする。   The inspection operator operates the inspection setting file selection unit 511 to select a desired inspection setting file. Thereby, the inspection setting information of the selected inspection setting file is read out. In this example, it is assumed that the inspection setting information generated by the procedure shown in FIGS. 9 to 25 is read in the setting mode.

検査設定情報に含まれる位置決め用画像データが1つである場合、図29に示すように、その位置決め用画像データに基づく位置決め用画像がリアルタイム表示されるテクスチャ画像に重なるように半透明状態で主表示欄411に表示される。このとき、その位置決め用画像データに対応付けられた撮像条件が読み出される。それにより、受光部120の倍率等の撮像条件が、読み出された位置決め用画像データに対応する撮像条件に調整される。   When there is only one positioning image data included in the inspection setting information, as shown in FIG. 29, the positioning image based on the positioning image data is mainly displayed in a semi-transparent state so as to overlap the texture image displayed in real time. It is displayed in the display column 411. At this time, the imaging condition associated with the positioning image data is read out. Thereby, the imaging conditions such as the magnification of the light receiving unit 120 are adjusted to the imaging conditions corresponding to the read positioning image data.

この状態で、検査作業者はステージ141上に検査対象物Sを載置する。検査対象物Sが受光部120による撮像領域内に進入すると、図30に示すように、主表示欄411には設定用対象物Sの位置決め用画像と検査対象物Sの最新のテクスチャ画像とが同時に表示される。   In this state, the inspection operator places the inspection object S on the stage 141. When the inspection object S enters the imaging region of the light receiving unit 120, as shown in FIG. 30, the main display column 411 contains the positioning image of the setting object S and the latest texture image of the inspection object S. Displayed at the same time.

検査作業者は、主表示欄411を視認することにより、図31に示すように、位置決め用画像における設定用対象物Sの部分とテクスチャ画像における検査対象物Sの部分とがほぼ全ての領域に渡って重なり合うように検査対象物Sの位置および姿勢を調整する。それにより、検査対象物Sの位置および姿勢が、設定モードにおいて位置決め用画像が生成されるときの設定用対象物Sの位置および姿勢に一致するまたは近づく。   As shown in FIG. 31, the inspection operator visually recognizes the main display field 411 so that the setting object S portion in the positioning image and the inspection object S portion in the texture image are in almost all areas. The position and posture of the inspection object S are adjusted so as to overlap each other. Thereby, the position and orientation of the inspection object S coincide with or approach the position and orientation of the setting object S when the positioning image is generated in the setting mode.

主表示欄411に位置決め用画像が表示される際には、図1のCPU210において位置決め用画像データと最新のテクスチャ画像データとの一致の度合いが一致度として算出される。一致度は、位置決め用画像における設定用対象物Sの部分とテクスチャ画像における検査対象物Sの部分との重なり合う面積が大きいほど高くなり、その重なり合う面積が小さいほど低くなる。   When the positioning image is displayed in the main display field 411, the degree of matching between the positioning image data and the latest texture image data is calculated as the matching degree in the CPU 210 of FIG. The degree of coincidence increases as the overlapping area of the portion of the setting object S in the positioning image and the portion of the inspection object S in the texture image increases, and decreases as the overlapping area decreases.

本実施の形態においては、一致度には予め定められたしきい値が設定されている。しきい値は、一定以上の検査精度を得るために許容される検査対象物Sの位置および姿勢の誤差範囲を考慮して定められる。   In the present embodiment, a predetermined threshold is set for the degree of coincidence. The threshold value is determined in consideration of the error range of the position and orientation of the inspection object S that is allowed in order to obtain a certain level of inspection accuracy.

図29〜図31に示すように、側部副表示欄413には、一致度インジケータ512が表示される。一致度インジケータ512においては、算出される一致度が棒グラフで表されるとともに、しきい値が所定の目盛りで表される。それにより、検査作業者は、設定用対象物Sの位置決め用画像および検査対象物Sのテクスチャ画像を視認するとともに一致度インジケータ512により表示される一致度に基づいてステージ141上の検査対象物Sの位置および姿勢を容易かつ正確に調整することができる。   As shown in FIGS. 29 to 31, a coincidence indicator 512 is displayed in the side sub display column 413. In the coincidence indicator 512, the calculated coincidence is represented by a bar graph, and the threshold value is represented by a predetermined scale. Thereby, the inspection worker visually recognizes the positioning image of the setting object S and the texture image of the inspection object S, and based on the coincidence degree displayed by the coincidence degree indicator 512, the inspection object S on the stage 141. Can be adjusted easily and accurately.

検査作業者は、検査対象物Sの位置および姿勢の調整が完了すると、測定ボタン513を操作する。それにより、読み出された検査設定情報に基づいて、検査対象物Sの計測対象箇所が計測され、検査対象物Sの検査が行われる。   The inspection operator operates the measurement button 513 when the adjustment of the position and orientation of the inspection object S is completed. Thereby, based on the read inspection setting information, the measurement target portion of the inspection object S is measured, and the inspection object S is inspected.

具体的には、まずステージ141上の検査対象物Sについて計測対象部分の寸法を計測するためのテクスチャ画像データおよび高さ画像データが取得される。このとき、取得されたテクスチャ画像データおよび高さ画像データは、画素ごとに対応付けられた状態で記憶装置240に記憶される。その後、検査設定情報として読み出された基準画像データに対応する画像データが位置合わせ用画像データとして登録される。例えば、基準画像データがテクスチャ画像データである場合には、検査対象物Sのテクスチャ画像データが位置合わせ用画像データとして登録される。また、基準画像データが高さ画像データである場合には、検査対象物Sの高さ画像データが位置合わせ用画像データとして登録される。その後、パターンマッチングにより位置合わせ用画像データを基準画像データに位置合わせすることにより、検査対象物Sのテクスチャ画像データおよび高さ画像データが位置合わせされる。   Specifically, texture image data and height image data for measuring the dimensions of the measurement target portion of the inspection object S on the stage 141 are first acquired. At this time, the acquired texture image data and height image data are stored in the storage device 240 in a state of being associated with each pixel. Thereafter, image data corresponding to the reference image data read out as the inspection setting information is registered as alignment image data. For example, when the reference image data is texture image data, the texture image data of the inspection object S is registered as alignment image data. When the reference image data is height image data, the height image data of the inspection object S is registered as alignment image data. Thereafter, the texture image data and the height image data of the inspection object S are aligned by aligning the alignment image data with the reference image data by pattern matching.

次に、検査設定情報に詳細位置合わせのための特徴部分の情報が含まれる場合には、登録された特徴部分に対応する検査対象物Sの画像データの部分が検出される。また、検出された部分が登録された設定用対象物Sの画像データの特徴部分に合うように、検査対象物Sのテクスチャ画像データおよび高さ画像データがより詳細に位置合わせされる。   Next, when the inspection setting information includes information on the characteristic part for detailed alignment, the part of the image data of the inspection object S corresponding to the registered characteristic part is detected. Further, the texture image data and the height image data of the inspection object S are aligned in more detail so that the detected part matches the characteristic part of the registered image data of the setting object S.

続いて、検査設定情報に基準面の情報が含まれる場合には、その基準面を登録するために指定された1または複数の矩形領域に対応する1または複数の領域の高さ画像データが抽出される。また、抽出された高さ画像データに基づいて基準面が算出され、登録される。その後、検査対象物Sについて取得された高さ画像データは、検査対象物Sの表面の各部分の位置が登録された基準面に直交する方向においてその基準面からの距離を表すように補正される。この場合、補正後の高さデータによれば、基準面からの検査対象物Sの表面の各部分の位置を容易に確認することができる。   Subsequently, when the reference plane information is included in the inspection setting information, the height image data of one or more areas corresponding to one or more rectangular areas designated for registering the reference plane is extracted. Is done. A reference plane is calculated and registered based on the extracted height image data. Thereafter, the height image data acquired for the inspection object S is corrected so that the position of each part of the surface of the inspection object S represents a distance from the reference surface in a direction orthogonal to the registered reference surface. The In this case, according to the corrected height data, the position of each part of the surface of the inspection object S from the reference plane can be easily confirmed.

検査対象物Sについてテクスチャ画像データおよび高さ画像データの位置合わせが完了すると、設定モードにおいて実行された計測手順に従って検査対象物Sの計測対象部分の寸法が計測される。   When the alignment of the texture image data and the height image data for the inspection target S is completed, the dimension of the measurement target portion of the inspection target S is measured according to the measurement procedure executed in the setting mode.

計測が終了すると、各計測対象部分についての計測結果が設定モードにおいて設定された上限値と下限値との間の範囲(公差)内であるか否かが判定される。その結果、全ての計測対象部分についての計測結果が設定された上限値と下限値との間の範囲内である場合には、その検査対象物Sは良品であると判定される。一方、1または複数の計測対象部分のうち少なくとも1つの計測対象部分の計測結果が設定された上限値と下限値との間の範囲(公差)内にない場合には、その検査対象物Sは不良品であると判定される。   When the measurement is completed, it is determined whether or not the measurement result for each measurement target portion is within a range (tolerance) between the upper limit value and the lower limit value set in the setting mode. As a result, when the measurement results for all the measurement target portions are within the range between the set upper limit value and lower limit value, the inspection object S is determined to be non-defective. On the other hand, when the measurement result of at least one measurement target part among the one or more measurement target parts is not within the range (tolerance) between the set upper limit value and lower limit value, the inspection object S is It is determined that the product is defective.

画像検査装置500の誤操作、画像検査装置500の誤設定または外乱等の影響により一部または全ての計測対象部分について計測結果が得られない場合がある。この場合、図1のCPU210において当該検査対象物Sの検査に失敗したことが判定されてもよい。   In some cases, measurement results may not be obtained for some or all of the measurement target portions due to the influence of an erroneous operation of the image inspection apparatus 500, an erroneous setting of the image inspection apparatus 500, or disturbance. In this case, the CPU 210 in FIG. 1 may determine that the inspection of the inspection object S has failed.

上記の一連の処理が完了すると、図32に示すように、表示部400に例えば検査対象物Sのテクスチャ画像、高さ画像および検査結果の一覧が表示される。また、テクスチャ画像データ、高さ画像データ、合成画像データ、各計測対象部分の寸法および検査結果を含むデータファイルが、検査結果ファイルとして記憶装置240に記憶される。その後、検査作業者は、図32の閉じるボタン514を操作する。それにより、表示部400は、図8の表示状態に戻る。   When the above-described series of processing is completed, as shown in FIG. 32, for example, a list of texture images, height images, and inspection results of the inspection object S is displayed on the display unit 400. In addition, a data file including texture image data, height image data, composite image data, dimensions of each measurement target portion and inspection results is stored in the storage device 240 as an inspection result file. Thereafter, the inspection operator operates the close button 514 in FIG. Thereby, the display part 400 returns to the display state of FIG.

なお、検査結果の一覧においては、検査対象物Sが良品であると判定された場合に検査結果として「OK」が表示されてもよい。また、検査対象物Sが不良品であると判定された場合に検査結果として「NG」が表示されてもよい。検査対象物Sの検査に失敗したことが判定された場合に検査結果として「Fail」が表示されてもよい。さらに、検査結果の一覧においては、検査対象部分ごとに計測結果が上限値と下限値との間の範囲内であるか否かを示す判定結果が表示されてもよい。   In the list of inspection results, “OK” may be displayed as the inspection result when it is determined that the inspection object S is a non-defective product. Further, “NG” may be displayed as an inspection result when it is determined that the inspection object S is a defective product. When it is determined that the inspection of the inspection object S has failed, “Fail” may be displayed as the inspection result. Furthermore, in the list of inspection results, a determination result indicating whether or not the measurement result is within the range between the upper limit value and the lower limit value may be displayed for each inspection target portion.

ここで、検査モードにおいて読み出される検査設定情報に、図26および図27に示すように登録された複数の位置決め用画像データが含まれる場合について説明する。この場合、検査設定情報が読み出されると、図33に示すように、1番目に登録された位置決め用画像データに基づく位置決め用画像が半透明状態で主表示欄411に表示される。また、側部副表示欄413に、次へボタン515が表示される。   Here, a case where a plurality of registered image data registered as shown in FIGS. 26 and 27 is included in the inspection setting information read in the inspection mode will be described. In this case, when the inspection setting information is read, as shown in FIG. 33, the positioning image based on the first registered positioning image data is displayed in the main display column 411 in a semi-transparent state. Further, a next button 515 is displayed in the side sub display column 413.

図33の例では、1番目の位置決め用画像として、低倍率で取得された設定用対象物Sの全体の位置決め用画像が表示されている。このとき、受光部120の倍率等の撮像条件が、1番目の位置決め用画像データに対応する撮像条件に調整される。   In the example of FIG. 33, the entire positioning image of the setting object S acquired at a low magnification is displayed as the first positioning image. At this time, the imaging condition such as the magnification of the light receiving unit 120 is adjusted to the imaging condition corresponding to the first positioning image data.

検査作業者は、ステージ141上に検査対象物Sを載置し、設定用対象物Sの位置決め用画像および検査対象物Sのテクスチャ画像を視認するとともに一致度インジケータにより表示される一致度に基づいて検査対象物Sの位置および姿勢を調整する。   The inspection operator places the inspection object S on the stage 141, visually recognizes the positioning image of the setting object S and the texture image of the inspection object S, and based on the degree of coincidence displayed by the coincidence indicator. The position and posture of the inspection object S are adjusted.

その後、検査作業者は、次へボタン515を操作する。それにより、図34に示すように、2番目に登録された位置決め用画像データに基づく位置決め用画像が半透明状態で主表示欄411に表示される。次の位置決めデータ(3番目以降の位置決め用画像データ)が存在しない場合、側部副表示欄413に、図33の次へボタン515は表示されない。   Thereafter, the inspection operator operates the next button 515. As a result, as shown in FIG. 34, the positioning image based on the second registered positioning image data is displayed in the main display column 411 in a translucent state. When the next positioning data (third and subsequent positioning image data) does not exist, the next button 515 in FIG. 33 is not displayed in the side sub display column 413.

図34の例では、2番目の位置決め用画像として、高倍率で取得された設定用対象物Sの一の角部を示す位置決め用画像が表示されている。このとき、受光部120の倍率等の撮像条件が、2番目の位置決め用画像データに対応する撮像条件に調整される。また、X−Yステージ10が、1番目および2番目の位置決め用画像データに対応するように記憶された移動量分移動される。それにより、主表示欄411には、検査対象物Sの一の角部を示す最新のテクスチャ画像がリアルタイム表示される。   In the example of FIG. 34, a positioning image indicating one corner of the setting object S acquired at a high magnification is displayed as the second positioning image. At this time, the imaging conditions such as the magnification of the light receiving unit 120 are adjusted to the imaging conditions corresponding to the second positioning image data. Further, the XY stage 10 is moved by the stored movement amount so as to correspond to the first and second positioning image data. Thereby, in the main display column 411, the latest texture image showing one corner of the inspection object S is displayed in real time.

この場合、検査対象物Sは1番目の位置決め用画像に基づいてほぼ正確に位置決めされているので、2番目の位置決め用画像が表示される際に、ステージ141を微調整することにより、より正確な位置決めを短時間で行うことができる。   In this case, since the inspection object S is positioned almost accurately based on the first positioning image, when the second positioning image is displayed, the stage 141 is finely adjusted to make the inspection object S more accurate. Positioning can be performed in a short time.

検査モードにおいて検査結果ファイルが図1の記憶装置240に記憶された後、設定作成者は、図8の統計解析ボタン603を操作することにより、過去に実行された検査結果の統計解析を行うことができる。その統計解析においては、例えば、過去に検査が行われた検査対象物Sについての解析結果として、検査設定情報、検査された検査対象物Sの数、検査位置の合計、有効に検査が行われた計測対象部分の数および良品と判定された検査対象物Sの数等を表示部400に表示させることができる。   After the inspection result file is stored in the storage device 240 of FIG. 1 in the inspection mode, the setting creator performs statistical analysis of the inspection results executed in the past by operating the statistical analysis button 603 of FIG. Can do. In the statistical analysis, for example, as an analysis result of the inspection object S that has been inspected in the past, the inspection setting information, the number of inspection objects S that have been inspected, the sum of the inspection positions, and the inspection are effectively performed. The number of measurement target portions and the number of inspection objects S determined to be good can be displayed on the display unit 400.

また、設定作成者は、図8の統計解析ボタン603を操作することにより、印字装置を用いて所望の検査結果ファイルから所望の情報をプリントアウトすることができる。このとき、検査結果ファイルに検査対象物Sの「ロット番号」、「品名」および「納入先」等の情報が含まれている場合には、検査結果のレポートを容易かつ短時間で作製することができる。   Further, the setting creator can print out desired information from a desired inspection result file using the printing apparatus by operating the statistical analysis button 603 in FIG. At this time, if the inspection result file contains information such as “lot number”, “product name”, and “delivery destination” of the inspection object S, a report of the inspection result should be prepared easily and in a short time. Can do.

なお、設定作成者は、図8の設定編集ボタン604を操作することにより、記憶装置240に記憶された1または複数の検査設定ファイルから所望の検査設定ファイルを指定することができる。また、指定された検査設定ファイルの検査設定情報を編集し、編集後の検査設定ファイルを再度記憶装置240に記憶させることができる。例えば、設定作成者は、所望の検査設定ファイルを選択するとともに、その検査設定ファイルの検査設定情報のうち、位置決め用画像データを他の位置決め用画像データに変更することができる。   Note that the setting creator can specify a desired inspection setting file from one or a plurality of inspection setting files stored in the storage device 240 by operating the setting edit button 604 in FIG. Further, the inspection setting information of the designated inspection setting file can be edited, and the edited inspection setting file can be stored in the storage device 240 again. For example, the setting creator can select a desired inspection setting file and change the positioning image data to other positioning image data in the inspection setting information of the inspection setting file.

(5−4)検査設定結合機能
設定作成者は、図8の設定編集ボタン604を操作することにより、検査設定ファイルの編集に加えて、複数の検査設定ファイルを結合して新たな検査設定ファイルを生成することもできる。この機能を検査設定結合機能と呼ぶ。
(5-4) Examination setting combining function The setting creator operates the setting edit button 604 in FIG. 8 to combine a plurality of examination setting files in addition to editing the examination setting file, thereby creating a new examination setting file. Can also be generated. This function is called an inspection setting combination function.

検査設定結合機能について具体的な使用例とともに説明する。図35は、1つの設定用対象物Sに対して複数の計測対象部分が存在する場合の一例を示す図である。図35の例では、半導体パッケージである設定用対象物Sの四隅の近傍に第1の計測対象部分tp1、第2の計測対象部分tp2、第3の計測対象部分tp3および第4の計測対象部分tp4がそれぞれ存在する。   The inspection setting combination function will be described together with a specific use example. FIG. 35 is a diagram illustrating an example of the case where there are a plurality of measurement target portions for one setting target S. FIG. In the example of FIG. 35, the first measurement target part tp1, the second measurement target part tp2, the third measurement target part tp3, and the fourth measurement target part are located in the vicinity of the four corners of the setting target S that is a semiconductor package. Each tp4 exists.

ここで、第1〜第4の計測対象部分tp1〜tp4について、より高い精度で検査を行うために受光部120の倍率を高倍率に設定すると、設定用対象物Sの全体を受光部120の撮像範囲内に収めることができない。そこで、設定作成者は、第1〜第4の計測対象部分tp1〜tp4についてそれぞれ個別の検査設定情報を生成する。この場合、第1〜第4の計測対象部分tp1〜tp4をそれぞれ含む複数の部分が高倍率の受光部120により撮像される。図35では、高倍率の受光部120による撮像範囲が計測対象部分ごとに一点鎖線で示される。   Here, when the magnification of the light receiving unit 120 is set to a high magnification in order to perform inspection with higher accuracy for the first to fourth measurement target portions tp1 to tp4, the entire setting target S is removed from the light receiving unit 120. It cannot fit within the imaging range. Therefore, the setting creator generates individual examination setting information for each of the first to fourth measurement target portions tp1 to tp4. In this case, a plurality of portions each including the first to fourth measurement target portions tp1 to tp4 are imaged by the high-magnification light receiving unit 120. In FIG. 35, the imaging range by the high-magnification light receiving unit 120 is indicated by a one-dot chain line for each measurement target portion.

第1〜第4の計測対象部分tp1〜tp4についてそれぞれ個別の検査設定情報が生成されると、第1〜第4の計測対象部分tp1〜tp4にそれぞれ対応する4つの検査設定ファイルが記憶装置240に記憶される。以下の説明では、第1の計測対象部分tp1に対応する検査設定ファイルのファイル名を第1の計測対象部分ファイルと呼び、第2の計測対象部分tp2に対応する検査設定ファイルのファイル名を第2の計測対象部分ファイルと呼ぶ。また、第3の計測対象部分tp3に対応する検査設定ファイルのファイル名を第3の計測対象部分ファイルと呼び、第4の計測対象部分tp4に対応する検査設定ファイルのファイル名を第4の計測対象部分ファイルと呼ぶ。   When individual inspection setting information is generated for each of the first to fourth measurement target portions tp1 to tp4, four inspection setting files respectively corresponding to the first to fourth measurement target portions tp1 to tp4 are stored in the storage device 240. Is remembered. In the following description, the file name of the inspection setting file corresponding to the first measurement target part tp1 is referred to as the first measurement target part file, and the file name of the inspection setting file corresponding to the second measurement target part tp2 is the first. 2 is called a measurement target partial file. The file name of the inspection setting file corresponding to the third measurement target part tp3 is referred to as a third measurement target part file, and the file name of the inspection setting file corresponding to the fourth measurement target part tp4 is the fourth measurement. This is called the target partial file.

第1〜第4の計測対象部分ファイルが記憶装置240に記憶されることにより、設定作成者は、検査設定結合機能を用いて第1〜第4の計測対象部分ファイルを結合し、新たな検査設定ファイルを生成することができる。   When the first to fourth measurement target partial files are stored in the storage device 240, the setting creator combines the first to fourth measurement target partial files using the inspection setting combining function to perform a new inspection. A configuration file can be generated.

図36および図37は、検査設定結合機能の使用例を説明するための図である。検査設定結合機能を用いる場合、設定作成者は、まず図8の設定編集ボタン604を操作する。それにより、図36に示すように、表示部400の上部副表示欄412にファイルボタンおよびヘルプボタンとともに結合ボタン521が表示される。   36 and 37 are diagrams for explaining an example of use of the examination setting combination function. When using the examination setting combination function, the setting creator first operates the setting edit button 604 in FIG. As a result, as shown in FIG. 36, a join button 521 is displayed together with a file button and a help button in the upper sub display field 412 of the display unit 400.

さらに、設定作成者は、図36の結合ボタン521を操作する。それにより、図37に示すように、主表示欄411の中央部に、結合対象となる複数の検査設定ファイルのファイル名をそれぞれ入力するための複数の入力欄522が表示される。そこで、設定作成者は、各入力欄522に結合対象となる複数の検査設定ファイルのファイル名を入力する。本例では、4つの入力欄522にそれぞれ「第1の計測対象部分ファイル」、「第2の計測対象部分ファイル」、「第3の計測対象部分ファイル」および「第4の計測対象部分ファイル」が入力される。   Further, the setting creator operates the combination button 521 in FIG. As a result, as shown in FIG. 37, a plurality of input fields 522 for inputting the file names of a plurality of examination setting files to be combined are displayed at the center of the main display field 411. Therefore, the setting creator inputs the file names of a plurality of examination setting files to be combined in each input field 522. In this example, in each of the four input fields 522, “first measurement target partial file”, “second measurement target partial file”, “third measurement target partial file”, and “fourth measurement target partial file” are displayed. Is entered.

設定作成者は、結合対象をさらに追加したい場合、追加ボタン523を操作する。それにより、新たな入力欄522を主表示欄411上に表示させることができる。   The setting creator operates the add button 523 when he / she wants to add more combination targets. Thereby, a new input field 522 can be displayed on the main display field 411.

所望のファイル名を入力した後、設定作成者は、保存ボタン524を操作する。それにより、入力された複数の検査設定ファイルの検査設定情報が結合され、新たな検査設定ファイルが結合検査設定ファイルとして生成される。生成された結合検査設定ファイルは記憶装置240に記憶される。本例では、第1〜第4の計測対象部分ファイルが結合される。   After inputting the desired file name, the setting creator operates the save button 524. Thereby, the inspection setting information of the plurality of input inspection setting files is combined, and a new inspection setting file is generated as a combined inspection setting file. The generated combination inspection setting file is stored in the storage device 240. In this example, the first to fourth measurement target partial files are combined.

なお、測定管理者は、保存ボタン524の操作前に主表示欄411に表示される工程情報ボタン525を操作することにより、結合検査設定ファイルの検査設定情報として、上記の「ロット番号」、「品名」および「納入先」等の情報を入力することができる。   Note that the measurement manager operates the process information button 525 displayed in the main display field 411 before operating the save button 524, so that the “lot number”, “ Information such as “product name” and “delivery destination” can be entered.

検査モードにおいて検査作業者が結合検査設定ファイルを選択すると、第1〜第4の計測対象部分をそれぞれ検査するための複数の検査設定情報が一度に読み出される。その後、第1〜第4の計測対象部分ファイルの複数の検査設定情報に基づいて第1〜第4の計測対象部分の寸法が順次検査される。   When the inspection operator selects the combined inspection setting file in the inspection mode, a plurality of pieces of inspection setting information for inspecting the first to fourth measurement target portions are read at a time. Thereafter, the dimensions of the first to fourth measurement target parts are sequentially inspected based on a plurality of pieces of inspection setting information of the first to fourth measurement target part files.

(5−5)テクスチャ画像データおよび高さ画像データの連結機能
設定モードにおいては、X−Yステージ10を移動させつつ設定用対象物Sのテクスチャ画像データおよび高さ画像データを取得することができる。検査モードにおいても、X−Yステージ10を移動させつつ検査対象物Sのテクスチャ画像データおよび高さ画像データを取得することができる。
(5-5) Texture Image Data and Height Image Data Linking Function In the setting mode, the texture image data and height image data of the setting object S can be acquired while moving the XY stage 10. . Even in the inspection mode, the texture image data and the height image data of the inspection object S can be acquired while moving the XY stage 10.

この場合、X−Yステージ10の移動前に生成されたテクスチャ画像データおよび高さ画像データとX−Yステージ10の移動後に生成されたテクスチャ画像データおよび高さ画像データとを連結することができる。それにより、各モードにおいて複数のテクスチャ画像データが連結された連結テクスチャ画像データが生成される。また、複数の高さ画像データが連結された連結高さ画像データが生成される。   In this case, the texture image data and height image data generated before the movement of the XY stage 10 and the texture image data and height image data generated after the movement of the XY stage 10 can be linked. . Thereby, connected texture image data in which a plurality of texture image data is connected in each mode is generated. Also, connected height image data in which a plurality of height image data is connected is generated.

上記の機能によれば、設定作成者は、受光部120の撮像範囲よりも大きい範囲に対応する連結テクスチャ画像データおよび連結高さ画像データを取得することができる。それにより、設定作成者は、受光部120の撮像範囲よりも広い範囲に渡って散在する複数の計測対象部分に対応する一の検査設定情報を作成することが可能になる。   According to the above function, the setting creator can obtain the connected texture image data and the connected height image data corresponding to a range larger than the imaging range of the light receiving unit 120. Accordingly, the setting creator can create one piece of inspection setting information corresponding to a plurality of measurement target portions scattered over a wider range than the imaging range of the light receiving unit 120.

図38は、連結テクスチャ画像データおよび連結高さ画像データの一生成例を説明するための図である。図38(a)〜(c)においては、ステージ141の載置面を上方から見た平面図が示される。各平面図には、受光部120の撮像範囲が点線で示される。ステージ141の載置面上には、帯状の測定対象物SがX方向に延びるように載置されている。   FIG. 38 is a diagram for describing an example of generation of connected texture image data and connected height image data. 38A to 38C are plan views of the mounting surface of the stage 141 as viewed from above. In each plan view, the imaging range of the light receiving unit 120 is indicated by a dotted line. On the placement surface of the stage 141, a strip-shaped measurement object S is placed so as to extend in the X direction.

図38(a)に示すように、本例の測定対象物Sの長さは、受光部120の撮像範囲内に収まらない。そのため、測定対象物Sの全体を撮像するためには、X−Yステージ10をX方向に移動させつつ測定対象物Sの各部を複数回撮像する必要がある。   As shown in FIG. 38A, the length of the measuring object S in this example does not fall within the imaging range of the light receiving unit 120. Therefore, in order to image the entire measurement object S, it is necessary to image each part of the measurement object S a plurality of times while moving the XY stage 10 in the X direction.

この場合、設定作成者は、図38(b)に示すように、まず測定対象物Sの一端部が撮像されるようにX−Yステージ10を移動させ、測定対象物Sの一端部が撮像されるときのX−Yステージ10の位置を登録することができる。   In this case, as shown in FIG. 38B, the setting creator first moves the XY stage 10 so that one end of the measurement object S is imaged, and the one end of the measurement object S is imaged. The position of the XY stage 10 can be registered.

次に、設定作成者は、図38(c)に示すように、測定対象物Sの他端部が撮像されるようにX−Yステージ10を移動させ、測定対象物Sの他端部が撮像されるときのX−Yステージ10の位置を登録することができる。   Next, as shown in FIG. 38C, the setting creator moves the XY stage 10 so that the other end of the measurement object S is imaged, and the other end of the measurement object S is moved. The position of the XY stage 10 when imaged can be registered.

これにより、登録されたX−Yステージ10の複数の位置からその移動量が算出されるとともにその移動量に基づいて、登録されたX−Yステージ10の複数の位置の間でテクスチャ画像データおよび高さ画像データが取得されるべき回数(取得回数)が算出される。   As a result, the movement amount is calculated from the plurality of positions of the registered XY stage 10, and the texture image data between the plurality of positions of the registered XY stage 10 is calculated based on the movement amount. The number of times that the height image data should be acquired (the number of acquisition times) is calculated.

取得回数は、隣り合う位置で取得されるテクスチャ画像データおよび高さ画像データの一部が互いに重複するように算出される。当該重複部分は、隣接するテクスチャ画像データおよび高さ画像データを連結する際ののりしろとなる。重複部分を含むようにテクスチャ画像データおよび高さ画像データが取得されることにより、パターンマッチングを用いて隣接するテクスチャ画像データおよび高さ画像データを高い精度で連結することができる。   The number of acquisitions is calculated so that part of the texture image data and height image data acquired at adjacent positions overlap each other. The overlapping portion becomes a margin when connecting adjacent texture image data and height image data. By acquiring the texture image data and the height image data so as to include the overlapping portion, it is possible to connect the adjacent texture image data and the height image data with high accuracy using pattern matching.

上記のようにして、X−Yステージ10の移動範囲およびテクスチャ画像データおよび高さ画像データの取得回数が決定された後、X−Yステージ10が移動されつつ測定対象物Sが複数回撮像される。複数回の撮像により取得される複数のテクスチャ画像データおよび高さ画像データがそれぞれ連結されることにより、連結テクスチャ画像データおよび連結高さ画像データが生成される。   As described above, after the movement range of the XY stage 10 and the number of acquisitions of texture image data and height image data are determined, the measurement object S is imaged a plurality of times while the XY stage 10 is moved. The By connecting a plurality of texture image data and height image data acquired by a plurality of imaging operations, connected texture image data and connected height image data are generated.

ここで、連結テクスチャ画像データおよび連結高さ画像データは、それぞれ広範囲に渡る複数のテクスチャ画像データおよび複数の連結高さ画像データを含む。そのため、通常のテクスチャ画像データおよび高さ画像データに比べてデータ量が大きくなる。   Here, the connected texture image data and the connected height image data include a plurality of texture image data and a plurality of connected height image data over a wide range, respectively. For this reason, the amount of data is larger than that of normal texture image data and height image data.

そこで、本例の画像検査装置500においては、設定モードにおいて連結テクスチャ画像データおよび連結高さ画像データが生成される際に、保存するデータ量のサイズを複数の候補から選択するための選択操作部が表示部400に表示される。それにより、設定作成者は、所望のデータ量のサイズを選択することができる。この場合、データ量が選択されたサイズに収まるように生成された連結テクスチャ画像データおよび連結高さ画像データの画素データの間引き(ビニング処理)が実行され、間引きされた連結テクスチャ画像データおよび連結高さ画像データが記憶装置240に保存される。   Therefore, in the image inspection apparatus 500 of this example, when the connected texture image data and the connected height image data are generated in the setting mode, a selection operation unit for selecting the size of the data amount to be stored from a plurality of candidates Is displayed on the display unit 400. Thereby, the setting creator can select a size of a desired data amount. In this case, pixel data of the connected texture image data and the connected height image data generated so that the data amount is within the selected size is thinned out (binning process), and the thinned connected texture image data and the connected height are obtained. The image data is stored in the storage device 240.

(6)画像検査処理
(6−1)CPUの構成
測定部100において測定された高さ画像データを用いることにより、複数の測定対象物Sの各々について予め設定された検査対象部分の寸法を計測することができる。それにより、複数の測定対象物Sを検査することが可能になる。一方で、高さ画像データの測定においては、検査対象部分に正確な測定が不可能または困難な部分を含むことが多い。正確な測定が不可能または困難な部分とは、例えば影が発生する部分または光の多重反射が発生する部分である。
(6) Image inspection processing (6-1) CPU configuration By using the height image data measured by the measurement unit 100, the dimensions of the inspection target portion set in advance for each of the plurality of measurement objects S are measured. can do. Thereby, it becomes possible to inspect a plurality of measuring objects S. On the other hand, in the measurement of height image data, the inspection target portion often includes a portion where accurate measurement is impossible or difficult. The portion where accurate measurement is impossible or difficult is, for example, a portion where a shadow occurs or a portion where multiple reflection of light occurs.

したがって、検査対象部分が測定可能となるように、測定対象物Sの位置および姿勢を含めた測定条件を適切に調整しなければならない。しかしながら、熟練していない設定作成者には、測定対象物Sの測定条件を適切に調整することは難しい。また、複数の測定対象物Sを検査する場合、複数の測定対象物Sについて実際の検査対象部分のばらつきをなくすことは容易ではない。   Therefore, it is necessary to appropriately adjust the measurement conditions including the position and orientation of the measurement object S so that the inspection object part can be measured. However, it is difficult for an unskilled setting creator to appropriately adjust the measurement conditions of the measurement object S. Further, when inspecting a plurality of measurement objects S, it is not easy to eliminate variations in actual inspection object portions of the plurality of measurement objects S.

そこで、上述のように、画像検査装置500には、設定モードおよび検査モードが設けられる。図39は、PC200のCPU210により実行される画像検査処理を示すフローチャートである。図39に示すように、画像検査処理においては、設定モードにおけるCPU210の制御動作が行われた後(ステップS100)、検査モードにおけるCPU210の制御動作が行われる(ステップS200)。   Therefore, as described above, the image inspection apparatus 500 is provided with the setting mode and the inspection mode. FIG. 39 is a flowchart showing an image inspection process executed by the CPU 210 of the PC 200. As shown in FIG. 39, in the image inspection process, after the control operation of the CPU 210 in the setting mode is performed (step S100), the control operation of the CPU 210 in the inspection mode is performed (step S200).

図40は、CPU210の構成を示すブロック図である。図40に示すように、CPU210は、登録部210A、取得指令部210B、表示指令部210C、計測部210D、受け付け部210E、一致度算出部210F、位置合わせ部210Gおよび判定部210Hを含む。CPU210が図1の記憶装置240に記憶された画像検査プログラムを実行することにより、登録部210A、取得指令部210B、表示指令部210C、計測部210D、受け付け部210E、一致度算出部210F、位置合わせ部210Gおよび判定部210Hの機能が実現される。   FIG. 40 is a block diagram showing the configuration of the CPU 210. As shown in FIG. As shown in FIG. 40, the CPU 210 includes a registration unit 210A, an acquisition command unit 210B, a display command unit 210C, a measurement unit 210D, a reception unit 210E, a coincidence degree calculation unit 210F, an alignment unit 210G, and a determination unit 210H. When the CPU 210 executes the image inspection program stored in the storage device 240 of FIG. 1, the registration unit 210A, the acquisition command unit 210B, the display command unit 210C, the measurement unit 210D, the reception unit 210E, the coincidence degree calculation unit 210F, the position The functions of the matching unit 210G and the determination unit 210H are realized.

登録部210Aは、測定部100または制御部300を通して取得される種々のデータまたは情報を記憶装置240に記憶することにより、当該データまたは情報を登録する。取得指令部210Bは、測定対象物Sのテクスチャ画像データまたは高さ画像データを取得するように測定部100および制御部300に指令を与える。表示指令部210Cは、テクスチャ画像データ、高さ画像データまたは他の画像データに基づいて画像等を表示するように表示部400に指令を与える。   The registration unit 210A registers various data or information acquired through the measurement unit 100 or the control unit 300 in the storage device 240, thereby registering the data or information. The acquisition command unit 210B gives a command to the measurement unit 100 and the control unit 300 so as to acquire the texture image data or height image data of the measurement object S. The display command unit 210C gives a command to the display unit 400 to display an image or the like based on the texture image data, the height image data, or other image data.

計測部210Dは、測定対象物Sのテクスチャ画像データまたは高さ画像データに基づいて、測定対象物Sの計測対象部分の寸法を計測する。受け付け部210Eは、測定対象物Sの計測対象部分の設計値および公差の入力を受け付ける。一致度算出部210Fは、登録された位置決め用画像データと取得されたテクスチャ画像データとの一致度を算出する。   The measurement unit 210D measures the dimension of the measurement target portion of the measurement target S based on the texture image data or height image data of the measurement target S. The accepting unit 210E accepts input of design values and tolerances of the measurement target portion of the measurement object S. The coincidence calculation unit 210F calculates the coincidence between the registered positioning image data and the acquired texture image data.

位置合わせ部210Gは、パターンマッチングにより位置合わせ用画像データを基準画像データに位置合わせすることにより、テクスチャ画像データおよび高さ画像データの位置合わせを行う。判定部210Hは、測定対象物Sについて計測された寸法ならびに受け付けられた設計値および公差に基づいて測定対象物Sの良否を判定する。   The alignment unit 210G aligns the texture image data and the height image data by aligning the alignment image data with the reference image data by pattern matching. The determination unit 210H determines the quality of the measurement object S based on the dimension measured for the measurement object S and the accepted design value and tolerance.

以下、設定モードおよび検査モードにおけるCPU210の制御動作を図40および後述するフローチャートを用いて説明する。   Hereinafter, the control operation of the CPU 210 in the setting mode and the inspection mode will be described with reference to FIG. 40 and a flowchart described later.

(6−2)設定モードにおけるCPUの制御動作
図41〜図45は、設定モードにおけるCPU210の制御動作を示すフローチャートである。まず、設定作成者は、ステージ141に設定用対象物Sを載置し、適切な測定条件を設定する。この測定条件には、上記の撮像条件が含まれる。CPU210は、設定作成者による操作部250の操作に基づいて、測定条件を登録する(ステップS101)。
(6-2) CPU Control Operation in Setting Mode FIGS. 41 to 45 are flowcharts showing the control operation of the CPU 210 in the setting mode. First, the setting creator places the setting object S on the stage 141 and sets appropriate measurement conditions. The measurement conditions include the above imaging conditions. The CPU 210 registers measurement conditions based on the operation of the operation unit 250 by the setting creator (step S101).

次に、CPU210は、ステージ141に設定用対象物Sが載置された状態で、測定部100および制御部300に指令を与えることにより、設定用対象物Sのテクスチャ画像データを取得する(ステップS102)。CPU210は、表示部400に指令を与えることにより、取得したテクスチャ画像データに基づいて設定用対象物Sのテクスチャ画像を表示部400に表示する(ステップS103)。   Next, the CPU 210 gives texture image data of the setting object S by giving a command to the measurement unit 100 and the control unit 300 in a state where the setting object S is placed on the stage 141 (step S100). S102). CPU210 gives the instruction | indication to the display part 400, and displays the texture image of the target object S for a setting on the display part 400 based on the acquired texture image data (step S103).

続いて、CPU210は、取得したテクスチャ画像データを位置決め用画像データとして登録するか否かを判定する(ステップS104)。上記の具体例では、設定作成者は、複数の位置決め用画像データを登録することが設定されている場合に、操作部250を操作することにより、テクスチャ画像データを位置決め用画像データとして登録するか否かをCPU210に指示することができる。   Subsequently, the CPU 210 determines whether or not to register the acquired texture image data as positioning image data (step S104). In the above specific example, the setting creator registers the texture image data as positioning image data by operating the operation unit 250 when registration of a plurality of positioning image data is set. Whether or not can be instructed to the CPU 210.

テクスチャ画像データを位置決め用画像データとして登録することが指示された場合、CPU210は、テクスチャ画像データを位置決め用画像データとして登録する(ステップS105)。一方、テクスチャ画像データを位置決め用画像データとして登録することが指示されない場合、CPU210はステップS102の処理に戻る。位置決め用画像データが登録されるまで、ステップS102〜S104の処理が繰り返される。   When it is instructed to register the texture image data as positioning image data, the CPU 210 registers the texture image data as positioning image data (step S105). On the other hand, when it is not instructed to register the texture image data as positioning image data, the CPU 210 returns to the process of step S102. Until the positioning image data is registered, the processes of steps S102 to S104 are repeated.

ステップS105の後、CPU210は、位置決め用画像データを追加するか否かを判定する(ステップS106)。設定作成者は、操作部250を操作することにより、位置決め用画像データを追加するか否かをCPU210に指示することができる。位置決め用画像データを追加することが指示された場合、CPU210はステップS102の処理に戻る。全ての位置決め用画像データが追加されるまで、ステップS102〜S106の処理が繰り返される。   After step S105, the CPU 210 determines whether or not to add positioning image data (step S106). The setting creator can instruct the CPU 210 whether or not to add positioning image data by operating the operation unit 250. When it is instructed to add the positioning image data, the CPU 210 returns to the process of step S102. The processes in steps S102 to S106 are repeated until all the positioning image data is added.

なお、上記の具体例では、1つの位置決め用画像データのみを登録することが設定されている場合に、ステップS104から後述するステップS106までの処理が省略され、後述するステップS107の処理で取得されるテクスチャ画像データが位置決め用画像データとして登録される。   In the above specific example, when it is set to register only one piece of positioning image data, the processing from step S104 to step S106 described later is omitted, and acquired in the processing of step S107 described later. Texture image data is registered as positioning image data.

全ての位置決め用画像データが追加された後、CPU210は、設定作成者による操作部250の操作に応答して測定部100および制御部300に指令を与えることにより、設定用対象物Sのテクスチャ画像データおよび高さ画像データを順次取得する(ステップS107)。CPU210は、表示部400に指令を与えることにより、取得したテクスチャ画像データおよび高さ画像データに基づいて設定用対象物Sのテクスチャ画像および高さ画像を表示部400に表示する(ステップS108)。   After all the positioning image data is added, the CPU 210 gives a command to the measurement unit 100 and the control unit 300 in response to the operation of the operation unit 250 by the setting creator, whereby the texture image of the setting object S is obtained. Data and height image data are sequentially acquired (step S107). CPU210 gives the instruction | indication to the display part 400, and displays the texture image and height image of the setting object S on the display part 400 based on the acquired texture image data and height image data (step S108).

次に、CPU210は、取得したテクスチャ画像データが基準画像データとして選択されたか否かを判定する(ステップS109)。設定作成者は、操作部250を操作することにより、テクスチャ画像データを基準画像データとして選択するかまたは高さ画像データを基準画像データとして選択するかをCPU210に指示することができる。上記の具体例では、設定作成者が操作部250を用いて図13および図14の画像選択操作部461を操作することにより画像データの選択が行われる。   Next, the CPU 210 determines whether or not the acquired texture image data is selected as the reference image data (step S109). By operating the operation unit 250, the setting creator can instruct the CPU 210 to select texture image data as reference image data or height image data as reference image data. In the above specific example, the setting creator operates the image selection operation unit 461 in FIGS. 13 and 14 using the operation unit 250 to select image data.

ここで、表示部400には、テクスチャ画像および高さ画像が表示される。そのため、設定作成者は、テクスチャ画像および高さ画像を視認しつつ、テクスチャ画像データおよび高さ画像データのいずれを基準画像データとして選択するべきか否かを判断することができる。   Here, a texture image and a height image are displayed on the display unit 400. Therefore, the setting creator can determine which of the texture image data and the height image data should be selected as the reference image data while visually recognizing the texture image and the height image.

テクスチャ画像データを基準画像データとして選択することが指示された場合、CPU210は、テクスチャ画像データを基準画像データとして選択する(ステップS110)。一方、テクスチャ画像データを基準画像データとして選択することが指示されず、高さ画像データを基準画像データとして選択することが指示された場合、CPU210は、高さ画像データを基準画像データとして選択する(ステップS111)。   When it is instructed to select the texture image data as the reference image data, the CPU 210 selects the texture image data as the reference image data (step S110). On the other hand, when it is not instructed to select the texture image data as the reference image data and the height image data is instructed to be selected as the reference image data, the CPU 210 selects the height image data as the reference image data. (Step S111).

次に、CPU210は、選択された基準画像データにおいて、探索領域として矩形領域が指定されたか否かを判定する(ステップS112)。設定作成者は、操作部250を操作することにより、探索領域として矩形領域を指定するかまたは探索領域として全領域を指定するかをCPU210に指示することができる。また、矩形領域を指定する場合には、設定作成者は、操作部250を操作することにより、矩形領域の位置および大きさを指定することができる。   Next, the CPU 210 determines whether or not a rectangular area is designated as a search area in the selected reference image data (step S112). By operating the operation unit 250, the setting creator can instruct the CPU 210 to designate a rectangular area as a search area or an entire area as a search area. Further, when specifying a rectangular area, the setting creator can specify the position and size of the rectangular area by operating the operation unit 250.

探索領域として矩形領域を指定することが指示された場合、CPU210は、指定された矩形領域を探索領域として登録する(ステップS113)。一方、探索領域として矩形領域を指定することが指示されず、全領域を指定することが指示された場合、CPU210は、探索領域として全領域を登録する(ステップS114)。   When instructed to designate a rectangular area as the search area, the CPU 210 registers the designated rectangular area as the search area (step S113). On the other hand, if it is not instructed to specify a rectangular area as a search area but an instruction to specify all areas, the CPU 210 registers all areas as search areas (step S114).

続いて、CPU210は、選択された基準画像データにおいて、探索角度が指定されたか否かを判定する(ステップS115)。設定作成者は、操作部250を操作することにより、探索角度を指定するかまたは探索角度を制限しないかをCPU210に指示することができる。また、探索角度を指定する場合には、設定作成者は、操作部250を操作することにより、探索角度の大きさを指定することができる。   Subsequently, the CPU 210 determines whether or not a search angle is designated in the selected reference image data (step S115). The setting creator can operate the operation unit 250 to instruct the CPU 210 to specify the search angle or not limit the search angle. When specifying the search angle, the setting creator can specify the size of the search angle by operating the operation unit 250.

探索角度を指定することが指示された場合、CPU210は、指定された角度を探索角度として登録する(ステップS116)。一方、探索角度を指定することが指示されず、探索角度を制限しないことが指示された場合、CPU210は、探索角度を無制限に登録する(ステップS117)。   When instructed to specify the search angle, the CPU 210 registers the specified angle as the search angle (step S116). On the other hand, if no instruction is given to specify the search angle and no instruction is given to limit the search angle, the CPU 210 registers the search angle without limitation (step S117).

その後、CPU210は、ステップS109〜S117において設定された内容で基準画像データを登録するか否かを判定する(ステップS118)。設定作成者は、操作部250を操作することにより、基準画像データを登録するか否かをCPU210に指示することができる。基準画像データを登録することが指示された場合、CPU210は、基準画像データを登録する(ステップS119)。一方、基準画像データを登録することが指示されていない場合、CPU210は、ステップS122の処理に進む。   Thereafter, the CPU 210 determines whether or not to register the reference image data with the contents set in steps S109 to S117 (step S118). The setting creator can instruct the CPU 210 whether or not to register the reference image data by operating the operation unit 250. When instructed to register reference image data, the CPU 210 registers reference image data (step S119). On the other hand, if it is not instructed to register the reference image data, the CPU 210 proceeds to the process of step S122.

基準画像データが登録された場合、CPU210は、取得したテクスチャ画像データまたは高さ画像データの特徴部分が指定されたか否かを判定する(ステップS120)。設定作成者は、操作部250を操作することにより、取得したテクスチャ画像データまたは高さ画像データの任意の特徴部分をCPU210に指定することができる。取得したテクスチャ画像データまたは高さ画像データの特徴部分が指定された場合、CPU210は、指定された画像データの特徴部分を登録する(ステップS121)。一方、基準画像データの特徴部分が指定されていない場合、CPU210は、ステップS122の処理に進む。   When the reference image data is registered, the CPU 210 determines whether or not a characteristic portion of the acquired texture image data or height image data is designated (step S120). The setting creator can specify any characteristic portion of the acquired texture image data or height image data to the CPU 210 by operating the operation unit 250. When the feature portion of the acquired texture image data or height image data is designated, the CPU 210 registers the feature portion of the designated image data (step S121). On the other hand, when the characteristic part of the reference image data is not designated, the CPU 210 proceeds to the process of step S122.

次に、CPU210は、設定用対象物Sの高さ画像データの基準面が指定されたか否かを判定する(ステップS122)。設定作成者は、操作部250を操作することにより、設定用対象物Sの高さ画像データの基準面をCPU210に指定することができる。基準面が指定された場合、CPU210は、設定用対象物Sの高さ画像データの指定された基準面を登録する(ステップS123)。一方、基準面が指定されていない場合、CPU210は、ステップS125の処理に進む。   Next, the CPU 210 determines whether or not the reference plane of the height image data of the setting object S has been designated (step S122). The setting creator can designate the reference plane of the height image data of the setting object S to the CPU 210 by operating the operation unit 250. When the reference plane is specified, the CPU 210 registers the specified reference plane of the height image data of the setting object S (step S123). On the other hand, when the reference plane is not designated, the CPU 210 proceeds to the process of step S125.

基準面が登録された場合、CPU210は、登録した基準面に基づいて設定用対象物Sの高さ画像データを補正する(ステップS124)。具体的には、CPU210は、設定用対象物Sの表面の各部分の位置が高さ方向において登録された基準面からの距離を表すように、取得した高さ画像データを補正する。   When the reference plane is registered, the CPU 210 corrects the height image data of the setting object S based on the registered reference plane (step S124). Specifically, the CPU 210 corrects the acquired height image data so that the position of each part of the surface of the setting object S represents the distance from the registered reference surface in the height direction.

次に、CPU210は、設定用対象物Sの計測対象部分が指定されたか否かを判定する(ステップS125)。設定作成者は、操作部250を操作することにより、設定用対象物Sの計測対象部分をCPU210に指定することができる。計測対象部分が指定された場合、CPU210は、指定された設定用対象物Sの計測対象部分を登録する(ステップS126)。一方、計測対象部分が指定されていない場合、CPU210は、ステップS130の処理に進む。計測対象部分が登録された場合、CPU210は、取得したテクスチャ画像データまたは高さ画像データに基づいて、登録した計測対象部分の寸法を計測する(ステップS127)。   Next, the CPU 210 determines whether or not the measurement target portion of the setting target S has been designated (step S125). The setting creator can designate the measurement target portion of the setting object S to the CPU 210 by operating the operation unit 250. When the measurement target part is designated, the CPU 210 registers the measurement target part of the designated setting object S (step S126). On the other hand, when the measurement target portion is not designated, the CPU 210 proceeds to the process of step S130. When the measurement target portion is registered, the CPU 210 measures the dimension of the registered measurement target portion based on the acquired texture image data or height image data (step S127).

続いて、CPU210は、設定用対象物Sの計測対象部分の設計値および公差が入力されたか否かを判定する(ステップS128)。なお、設計値および公差のうち一方の入力が省略されてもよい。設定作成者は、操作部250を操作することにより、設定用対象物Sの計測対象部分の設計値および公差をCPU210に入力することができる。設計値および公差が入力された場合、CPU210は、入力された設定用対象物Sの計測対象部分の設計値および公差を登録する(ステップS129)。一方、設計値および公差が入力されていない場合、CPU210は、ステップS130の処理に進む。   Subsequently, the CPU 210 determines whether or not the design value and tolerance of the measurement target portion of the setting object S have been input (step S128). Note that one of the design value and the tolerance may be omitted. The setting creator can input the design value and tolerance of the measurement target portion of the setting object S to the CPU 210 by operating the operation unit 250. When the design value and the tolerance are input, the CPU 210 registers the design value and the tolerance of the measurement target portion of the input setting object S (step S129). On the other hand, when the design value and the tolerance are not input, the CPU 210 proceeds to the process of step S130.

その後、CPU210は、設定モードの終了が指示されたか否かを判定する(ステップS130)。設定作成者は、操作部250を操作することにより、設定モードの終了をCPU210に指示することができる。上記の具体例では、設定作成者が操作部250を用いて図25の保存ボタン441を操作することにより設定モードの終了が指示される。このとき、CPU210は、設定モードの終了の指示に応答して上記のステップS101〜S129の処理により登録された情報を含む検査設定情報のデータファイルを検査設定ファイルとして記憶装置240に記憶する。   Thereafter, the CPU 210 determines whether or not the end of the setting mode has been instructed (step S130). The setting creator can instruct the CPU 210 to end the setting mode by operating the operation unit 250. In the above specific example, the setting creator is instructed to end the setting mode by operating the save button 441 in FIG. At this time, in response to the instruction to end the setting mode, the CPU 210 stores, in the storage device 240, a data file of inspection setting information including information registered by the processes in steps S101 to S129 as an inspection setting file.

設定モードの終了が指示されていない場合、CPU210は、ステップS109の処理に戻る。これにより、設定モードの終了が指示されるまで、ステップS109〜S130の処理が繰り返される。一方、設定モードの終了が指示された場合、CPU210は設定モードを終了する。   When the end of the setting mode is not instructed, the CPU 210 returns to the process of step S109. Thereby, the process of steps S109 to S130 is repeated until the end of the setting mode is instructed. On the other hand, when the end of the setting mode is instructed, the CPU 210 ends the setting mode.

(6−3)検査モードにおけるCPUの制御動作
図46および図47は、検査モードにおけるCPU210の制御動作を示すフローチャートである。図46および図47の処理は、検査作業者が任意の検査設定ファイルを指定することにより、指定された検査設定ファイルの検査設定情報に基づいて実行される。
(6-3) CPU Control Operation in Inspection Mode FIGS. 46 and 47 are flowcharts showing the control operation of the CPU 210 in the inspection mode. 46 and 47 are executed based on the inspection setting information of the designated inspection setting file when the inspection operator designates an arbitrary inspection setting file.

まず、CPU210は、表示部400に指令を与えることにより、登録された1または複数の位置決め用画像データのうち1つの位置決め用画像データに基づいて位置決め用画像を表示部400に表示する(ステップS201)。検査作業者は、ステージ141に検査対象物Sを載置する。   First, the CPU 210 gives a command to the display unit 400 to display a positioning image on the display unit 400 based on one positioning image data among one or more registered positioning image data (step S201). ). The inspection operator places the inspection object S on the stage 141.

CPU210は、ステージ141に検査対象物Sが載置された状態で、テクスチャ画像データを取得するように測定部100および制御部300に指令を与えることにより、検査対象物Sのテクスチャ画像データを取得する(ステップS202)。CPU210は、表示部400に指令を与えることにより、取得したテクスチャ画像データに基づいて検査対象物Sのテクスチャ画像を表示部400に表示する(ステップS203)。   The CPU 210 obtains the texture image data of the inspection object S by giving a command to the measurement unit 100 and the control unit 300 to acquire the texture image data in a state where the inspection object S is placed on the stage 141. (Step S202). CPU210 gives the instruction | indication to the display part 400, and displays the texture image of the test target S on the display part 400 based on the acquired texture image data (step S203).

ここで、表示部400には、位置決め用画像および検査対象物Sのテクスチャ画像が表示されている。そのため、検査作業者は、位置決め用画像および検査対象物Sのテクスチャ画像を視認しつつステージ141に載置された検査対象物Sの位置および姿勢を調整することができる。これにより、検査作業者は、検査対象物Sの位置および姿勢を設定用対象物Sの位置および姿勢にそれぞれ近づけることができる。   Here, the display unit 400 displays the positioning image and the texture image of the inspection object S. Therefore, the inspection operator can adjust the position and posture of the inspection object S placed on the stage 141 while visually recognizing the positioning image and the texture image of the inspection object S. Thereby, the inspection operator can bring the position and posture of the inspection object S closer to the position and posture of the setting object S, respectively.

また、CPU210は、位置決め用画像データと検査対象物Sのテクスチャ画像データとの一致度を算出する(ステップS204)。CPU210は、表示部400に指令を与えることにより、算出した一致度および一致度についてのしきい値を表示部400に表示する(ステップS205)。上記の具体例では、一致度およびしきい値が図29〜図31の一致度インジケータ512により表示される。検査作業者は、表示部400に表示された一致度を視認することにより、ステージ141に検査対象物Sを載置する際に検査対象物Sの位置および姿勢を設定用対象物Sの位置および姿勢にそれぞれ容易に近づけることができる。また、検査作業者は、表示部400に表示された一致度についてのしきい値を視認することにより、検査対象物Sの位置および姿勢を設定用対象物Sの位置および姿勢にそれぞれ近づける際の許容度を認識することができる。   Further, the CPU 210 calculates the degree of coincidence between the positioning image data and the texture image data of the inspection object S (step S204). CPU210 gives the instruction | indication to the display part 400, and displays the threshold value about the calculated coincidence degree and a coincidence degree on the display part 400 (step S205). In the above specific example, the coincidence degree and the threshold value are displayed by the coincidence degree indicator 512 of FIGS. The inspection worker visually recognizes the degree of coincidence displayed on the display unit 400, and thereby sets the position and orientation of the inspection target S when placing the inspection target S on the stage 141 and the position of the setting target S and Each can be easily approached. In addition, the inspection operator visually recognizes the threshold value for the degree of coincidence displayed on the display unit 400, thereby bringing the position and posture of the inspection target S closer to the position and posture of the setting target S, respectively. Tolerance can be recognized.

続いて、CPU210は、他の位置決め用画像の表示が指示されたか否かを判定する(ステップS206)。検査作業者は、操作部250を操作することにより、他の位置決め用画像を表示するか否かをCPU210に指示することができる。他の位置決め用画像の表示が指示された場合、CPU210は、ステップS201の処理に戻る。   Subsequently, the CPU 210 determines whether display of another positioning image is instructed (step S206). The inspection operator can instruct the CPU 210 whether or not to display another positioning image by operating the operation unit 250. When display of another positioning image is instructed, the CPU 210 returns to the process of step S201.

他の位置決め用画像の表示が指示されない場合、CPU210は、登録された全ての位置決め用画像データに基づく位置決め用画像が表示部400に表示されたか否かを判定する(ステップS207)。全ての位置決め用画像が表示されていない場合、CPU210はステップS200の処理に戻る。一方、全ての位置決め用画像が表示された場合、CPU210は、検査対象物Sの画像データの取得が指示されたか否かを判定する(ステップS208)。設定作成者は、操作部250を操作することにより、検査対象物Sの画像データの取得をCPU210に指示することができる。検査対象物Sの画像データの取得が指示されていない場合、CPU210は、ステップS201の処理に戻る。   When display of other positioning images is not instructed, the CPU 210 determines whether or not positioning images based on all registered positioning image data are displayed on the display unit 400 (step S207). When all the positioning images are not displayed, the CPU 210 returns to the process of step S200. On the other hand, when all the positioning images are displayed, the CPU 210 determines whether acquisition of image data of the inspection object S has been instructed (step S208). The setting creator can instruct the CPU 210 to acquire the image data of the inspection object S by operating the operation unit 250. If acquisition of image data of the inspection target S has not been instructed, the CPU 210 returns to the process of step S201.

上記のフローによれば、複数の位置決め用画像が登録されている場合に、全ての位置決め用画像が表示されるまで、ステップS201〜S207の処理が繰り返される。これにより、検査作業者は、複数の位置決め用画像を用いて検査対象物Sの位置および姿勢を段階的に調整することができる。   According to the above flow, when a plurality of positioning images are registered, the processes of steps S201 to S207 are repeated until all the positioning images are displayed. Thereby, the inspection worker can adjust the position and posture of the inspection object S step by step using a plurality of positioning images.

検査対象物Sの画像データの取得が指示された場合、CPU210は、測定部100および制御部300に指令を与えることにより検査対象物Sのテクスチャ画像データおよび高さ画像データを順次取得する(ステップS209)。次に、CPU210は、取得した検査対象物Sのテクスチャ画像データおよび高さ画像データのうち、登録した基準画像データに対応する画像データを位置合わせ用画像データとして登録する(ステップS210)。   When the acquisition of the image data of the inspection object S is instructed, the CPU 210 sequentially acquires the texture image data and the height image data of the inspection object S by giving instructions to the measurement unit 100 and the control unit 300 (step S100). S209). Next, the CPU 210 registers image data corresponding to the registered reference image data among the acquired texture image data and height image data of the inspection object S as registration image data (step S210).

続いて、CPU210は、設定した位置合わせ用画像データに基づいて、検査対象物Sのテクスチャ画像データおよび高さ画像データを位置合わせする(ステップS211)。具体的には、CPU210は、パターンマッチングにより位置合わせ用データを基準画像データに位置合わせすることにより、検査対象物Sのテクスチャ画像データおよび高さ画像データを位置合わせする。探索領域または探索角度が設定されている場合には、パターンマッチングは設定された探索領域内または探索角度内で行われる。   Subsequently, the CPU 210 aligns the texture image data and the height image data of the inspection object S based on the set alignment image data (step S211). Specifically, the CPU 210 aligns the texture image data and the height image data of the inspection object S by aligning the alignment data with the reference image data by pattern matching. When a search area or search angle is set, pattern matching is performed within the set search area or search angle.

その後、CPU210は、登録された画像データの特徴部分に基づいて、検査対象物Sのテクスチャ画像データおよび高さ画像データを詳細に位置合わせする(ステップS212)。設定モードにおいて基準画像の特徴部分が登録されていない場合には、ステップS211の処理は省略される。次に、CPU210は、登録された基準面に基づいて検査対象物Sの高さ画像データを補正する(ステップS213)。設定モードにおいて基準面が登録されていない場合には、ステップS213の処理は省略される。   Thereafter, the CPU 210 aligns the texture image data and the height image data of the inspection object S in detail based on the characteristic part of the registered image data (step S212). If the characteristic portion of the reference image is not registered in the setting mode, the process of step S211 is omitted. Next, the CPU 210 corrects the height image data of the inspection object S based on the registered reference plane (step S213). If the reference plane is not registered in the setting mode, the process of step S213 is omitted.

続いて、CPU210は、登録された設定用対象物Sの計測対象部分に対応する検査対象物Sの計測対象部分の寸法を計測する(ステップS214)。その後、CPU210は、設定用対象物Sについて計測された寸法、検査対象物Sについて計測された寸法ならびに受け付けた設計値および公差に基づいて検査対象物Sの良否を判定する(ステップS215)。なお、設定モードにおいて、設計値および公差のうち一方が省略されている場合、CPU210は、設定用対象物Sについて計測された寸法、検査対象物Sについて計測された寸法ならびに受け付けた設計値および公差のうち他方に基づいて検査対象物Sの良否を判定する。CPU210は、表示部400に指令を与えることにより、判定結果を表示部400に表示する(ステップS216)。これにより、CPU210は検査モードを終了する。なお、検査モードの終了時に、CPU210は上記の判定結果等のデータファイルを検査結果ファイルとして記憶装置240に記憶する。   Subsequently, the CPU 210 measures the dimension of the measurement target portion of the inspection target S corresponding to the measurement target portion of the registered setting target S (step S214). Thereafter, the CPU 210 determines pass / fail of the inspection object S based on the dimension measured for the setting object S, the dimension measured for the inspection object S, and the received design value and tolerance (step S215). In the setting mode, when one of the design value and the tolerance is omitted, the CPU 210 measures the dimension measured for the setting object S, the dimension measured for the inspection object S, and the accepted design value and tolerance. The quality of the inspection object S is determined based on the other of them. CPU210 displays the determination result on the display part 400 by giving a command to the display part 400 (step S216). As a result, the CPU 210 ends the inspection mode. At the end of the inspection mode, the CPU 210 stores the data file such as the determination result in the storage device 240 as an inspection result file.

(7)効果
本実施の形態に係る画像検査装置500においては、設定モードにおいて、設定用対象物Sのテクスチャ画像データおよび高さ画像データが取得される。取得されたテクスチャ画像データおよび高さ画像データのうち一方が、設定作成者により位置合わせのための基準画像データとして選択され、登録される。その後、設定用対象物Sの計測対象部分の寸法が計測される。設定用対象物Sの計測対象部分の設計値および公差の入力が受け付けられる。
(7) Effects In the image inspection apparatus 500 according to the present embodiment, texture image data and height image data of the setting object S are acquired in the setting mode. One of the acquired texture image data and height image data is selected and registered as reference image data for alignment by the setting creator. Thereafter, the dimension of the measurement target portion of the setting object S is measured. Input of the design value and tolerance of the measurement target portion of the setting object S is accepted.

検査モード時において、検査対象物Sのテクスチャ画像データおよび高さ画像データが取得される。取得されたテクスチャ画像データおよび高さ画像データのうち、登録された基準画像データに対応する画像データが位置合わせ用画像データとして設定される。パターンマッチングにより位置合わせ用データが基準画像データに位置合わせされることにより、検査対象物Sについてのテクスチャ画像データおよび高さ画像データの位置合わせが行われる。   In the inspection mode, texture image data and height image data of the inspection object S are acquired. Of the acquired texture image data and height image data, image data corresponding to the registered reference image data is set as image data for alignment. By aligning the alignment data with the reference image data by pattern matching, the alignment of the texture image data and the height image data for the inspection object S is performed.

位置合わせされたテクスチャ画像データおよび高さ画像データに基づいて、設定用対象物Sの計測対象部分に対応する検査対象物Sの計測対象部分の寸法が計測される。設定用対象物Sについて計測された寸法および検査対象物Sについて計測された寸法ならびに受け付けられた設計値および公差に基づいて検査対象物Sの良否が判定される。判定された判定結果が表示部400に表示される。   Based on the aligned texture image data and height image data, the dimension of the measurement target portion of the inspection target S corresponding to the measurement target portion of the setting target S is measured. The quality of the inspection object S is determined based on the dimension measured for the setting object S, the dimension measured for the inspection object S, and the accepted design value and tolerance. The determined determination result is displayed on the display unit 400.

上記のように、検査モードにおいて取得される検査対象物Sについてのテクスチャ画像データおよび高さ画像データは、設定モードにおいて取得された設定用対象物Sについてのテクスチャ画像データおよび高さ画像データに高い精度でそれぞれ位置合わせされる。そのため、設定モードにおいて計測された設定用対象物Sの計測対象部分に対応する検査対象物Sの計測対象部分の寸法を検査モードにおいて高い精度で計測することが可能になる。これにより、検査作業者が熟練していない場合であっても、検査モードにおいて複数の検査対象物Sについて所望の計測対象部分の寸法を計測することができる。その結果、検査対象物Sの形状を容易かつ正確に検査することができる。   As described above, the texture image data and the height image data for the inspection object S acquired in the inspection mode are higher than the texture image data and the height image data for the setting object S acquired in the setting mode. Each is aligned with accuracy. Therefore, the dimension of the measurement target portion of the inspection target S corresponding to the measurement target portion of the setting target S measured in the setting mode can be measured with high accuracy in the inspection mode. Thereby, even if it is a case where an inspection worker is not skilled, the dimension of a desired measurement object part can be measured about a plurality of inspection objects S in inspection mode. As a result, the shape of the inspection object S can be inspected easily and accurately.

(8)他の実施の形態
(8−1)上記実施の形態では、設定モードにおいて設定用対象物Sのテクスチャ画像データおよび高さ画像データが取得された後、基準画像データの登録に用いる画像データが選択されるが、本発明はこれに限定されない。基準画像データの登録に用いる画像データの選択は、テクスチャ画像データおよび高さ画像データの取得される前に行われてもよい。この場合、画像検査装置500においては、基準画像データの登録時に選択された画像データのみが基準画像データとして取得されてもよい。
(8) Other Embodiments (8-1) In the above embodiment, after the texture image data and height image data of the setting object S are acquired in the setting mode, the image used for registration of the reference image data. Data is selected, but the present invention is not limited to this. The selection of the image data used for registration of the reference image data may be performed before the texture image data and the height image data are acquired. In this case, in the image inspection apparatus 500, only the image data selected when registering the reference image data may be acquired as the reference image data.

(8−2)上記実施の形態では、測定ボタン432,513の操作によりテクスチャ画像データおよび高さ画像データが取得され、取得されたテクスチャ画像データおよび高さ画像データに基づいて、基準画像データ、位置合わせ用画像データおよび位置決め用画像データが登録され、特徴部分を登録するために用いる画像データが選択され、測定対象物Sの計測対象部分が計測されるが、本発明はこれに限定されない。   (8-2) In the above embodiment, texture image data and height image data are acquired by operating the measurement buttons 432 and 513, and based on the acquired texture image data and height image data, reference image data, The registration image data and the positioning image data are registered, the image data used to register the feature portion is selected, and the measurement target portion of the measurement object S is measured. However, the present invention is not limited to this.

基準画像データの登録処理、位置合わせ用画像データの登録処理、位置決め用画像データの登録処理、特徴部分を登録するために用いる画像データの選択処理、および測定対象物Sの計測対象部分の計測処理ごとに、各処理に必要な画像データが取得されてもよい。   Registration processing of reference image data, registration processing of registration image data, registration processing of positioning image data, selection processing of image data used for registering a feature portion, and measurement processing of a measurement target portion of the measurement object S Every time, image data necessary for each process may be acquired.

例えば、基準画像データとして予めテクスチャ画像データを登録することが既知である場合には、基準画像データの登録処理時に測定対象物Sのテクスチャ画像データのみが取得されてもよい。また、測定対象物Sの高さ方向に成分を持つ寸法のみを計測する場合には、測定対象物Sの計測対象部分の計測処理時に測定対象物Sの高さ画像データのみが取得されてもよい。   For example, when it is already known to register texture image data as reference image data in advance, only the texture image data of the measuring object S may be acquired during the reference image data registration process. Further, when measuring only a dimension having a component in the height direction of the measuring object S, even if only the height image data of the measuring object S is acquired during the measurement processing of the measuring object portion of the measuring object S. Good.

(8−3)上記実施の形態では、測定対象物Sの計測対象部分の計測を行うためにテクスチャ画像データおよび高さ画像データが取得されるが、本発明はこれに限定されない。例えば、測定対象物Sの高さ方向に成分を持つ寸法のみを計測する場合には、計測対象部分の寸法を計測するための画像データとして高さ画像データのみが取得されてもよい。   (8-3) In the above embodiment, the texture image data and the height image data are acquired in order to measure the measurement target portion of the measurement object S, but the present invention is not limited to this. For example, when measuring only a dimension having a component in the height direction of the measurement object S, only height image data may be acquired as image data for measuring the dimension of the measurement target portion.

(8−4)上記実施の形態において、テクスチャ画像データと高さ画像データとが共通の受光部120を用いて生成されるが、本発明はこれに限定されない。テクスチャ画像データと高さ画像データとが別個の受光部を用いて生成されてもよい。この場合、画像検査装置500には、一方の受光部により生成されたテクスチャ画像データと高さ他方の受光部により生成された画像データとを関連付けて記憶する記憶部が設けられる。当該記憶部は、一方の受光部に設けられてもよいし、他方の受光部に設けられもよい。あるいは、当該記憶部は、PC200の記憶装置240により実現されてもよい。   (8-4) In the above embodiment, the texture image data and the height image data are generated using the common light receiving unit 120, but the present invention is not limited to this. The texture image data and the height image data may be generated using separate light receiving units. In this case, the image inspection apparatus 500 is provided with a storage unit that stores the texture image data generated by one light receiving unit and the image data generated by the other light receiving unit in association with each other. The storage unit may be provided in one light receiving unit, or may be provided in the other light receiving unit. Alternatively, the storage unit may be realized by the storage device 240 of the PC 200.

(8−5)上記実施の形態では、設定モードにおいて取得された設定用対象物Sのテクスチャ画像データおよび高さ画像データのうち一方が設定作成者により基準画像データとして選択されるが、本発明はこれに限定されない。基準画像データとして用いる画像データの選択は、設定作成者による画像選択操作部461の操作に基づいて行われる代わりに、予め定められた条件に従ってCPU210により実行されてもよい。   (8-5) In the above embodiment, one of the texture image data and the height image data of the setting object S acquired in the setting mode is selected as reference image data by the setting creator. Is not limited to this. The selection of the image data used as the reference image data may be executed by the CPU 210 according to a predetermined condition instead of being performed based on the operation of the image selection operation unit 461 by the setting creator.

予め定められた条件として、例えば取得されたテクスチャ画像データおよび高さ画像データのうちエッジの検出量が大きい画像データを基準画像データとして用いることが記憶装置240に記憶される。CPU210は、記憶装置240に記憶された条件に従って、位置合わせに適した画像データを選択する。この場合、熟練していない設定作成者が、位置合わせに適していない画像データを誤って選択することが防止される。   As a predetermined condition, for example, the use of image data with a large edge detection amount among the acquired texture image data and height image data as reference image data is stored in the storage device 240. The CPU 210 selects image data suitable for alignment according to the conditions stored in the storage device 240. In this case, an unskilled setting creator is prevented from erroneously selecting image data that is not suitable for alignment.

(8−6)上記実施の形態では、位置決め用画像データとして設定用対象物Sのテクスチャ画像データが用いられるが、本発明はこれに限定されない。位置決め用画像データは、設定用対象物Sの計測対象部分の寸法を計測するために用いられるテクスチャ画像データとは異なってもよい。例えば、位置決め用画像データとして、設定用対象物Sの高さ画像データが用いられてもよい。また、位置決め用画像データとして、設定用対象物Sとは異なる物体を撮像することにより得られるテクスチャ画像データまたは高さ画像データが用いられてもよい。   (8-6) In the above embodiment, the texture image data of the setting object S is used as the positioning image data, but the present invention is not limited to this. The positioning image data may be different from the texture image data used for measuring the dimension of the measurement target portion of the setting object S. For example, the height image data of the setting object S may be used as the positioning image data. Further, texture image data or height image data obtained by imaging an object different from the setting object S may be used as the positioning image data.

(8−7)上記実施の形態の検査モードにおいて、検査対象物Sの位置および姿勢を検査作業者に調整させるための位置決め用画像が位置決め用画像データに基づいて表示部400に表示されるが、本発明はこれに限定されない。検査モードにおいて、位置決め用画像が位置決め用画像データに基づいて表示部400に表示されなくてもよい。   (8-7) In the inspection mode of the above embodiment, a positioning image for causing the inspection operator to adjust the position and orientation of the inspection object S is displayed on the display unit 400 based on the positioning image data. However, the present invention is not limited to this. In the inspection mode, the positioning image may not be displayed on the display unit 400 based on the positioning image data.

例えば、検査モードにおいて、位置決め用画像データに基づいてステージ141がステージ駆動部143により移動されてもよい。この場合、位置決め用画像データおよびステージ141に載置された検査対象物Sのテクスチャ画像データに基づいて、検査対象物Sの位置および姿勢が設定用対象物Sの位置および姿勢にそれぞれ近づくようにステージ141が自動的に移動される。そのため、検査作業者は、検査対象物Sの位置および姿勢の調整を行う必要がない。   For example, in the inspection mode, the stage 141 may be moved by the stage driving unit 143 based on the positioning image data. In this case, based on the positioning image data and the texture image data of the inspection object S placed on the stage 141, the position and orientation of the inspection object S are close to the position and orientation of the setting object S, respectively. The stage 141 is automatically moved. Therefore, the inspection operator does not need to adjust the position and posture of the inspection object S.

あるいは、検査モードにおいて、検査対象物Sの位置および姿勢を検査作業者に調整させるための音声誘導または映像誘導が位置決め用画像データに基づいて行われてもよい。図48は、位置決め用画像データに基づく映像誘導の一例を示す図である。投光部110のパターン生成部112は、測定光を用いてプロジェクタとして映像をステージ141に投影することが可能である。そこで、図48に示すように、検査モードにおいて、測定対象物Sの平面映像Sxが位置決め用画像データに基づいてステージ141に投影されてもよい。検査作業者は、平面映像Sxに重なるように測定対象物Sをステージ141に載置することにより、検査対象物Sの位置および姿勢を調整することができる。   Alternatively, in the inspection mode, voice guidance or video guidance for causing the inspection operator to adjust the position and posture of the inspection object S may be performed based on the positioning image data. FIG. 48 is a diagram illustrating an example of video guidance based on positioning image data. The pattern generation unit 112 of the light projecting unit 110 can project an image on the stage 141 as a projector using the measurement light. Therefore, as shown in FIG. 48, in the inspection mode, the planar video Sx of the measurement object S may be projected onto the stage 141 based on the positioning image data. The inspection operator can adjust the position and orientation of the inspection object S by placing the measurement object S on the stage 141 so as to overlap the planar image Sx.

あるいは、治具がステージ141に設けられてもよい。図49は、測定対象物Sの位置決めのための治具がステージ141に設けられた例を示す図である。図49に示すように、治具144はステージ141の略中央に固定される。治具144には測定対象物Sを挿入可能である。設計モードにおいて、測定管理者は、設定用対象物Sの位置および姿勢を調整した状態で設定用対象物Sを治具144に挿入する。検査モードにおいて、検査作業者は、検査対象物Sを治具144に挿入することにより、検査対象物Sの位置および姿勢を調整することができる。この場合、設定モードにおいて、位置決め用画像データが登録されなくてもよい。   Alternatively, a jig may be provided on the stage 141. FIG. 49 is a diagram showing an example in which a jig for positioning the measuring object S is provided on the stage 141. As shown in FIG. 49, the jig 144 is fixed to the approximate center of the stage 141. The measuring object S can be inserted into the jig 144. In the design mode, the measurement manager inserts the setting object S into the jig 144 with the position and orientation of the setting object S adjusted. In the inspection mode, the inspection operator can adjust the position and orientation of the inspection object S by inserting the inspection object S into the jig 144. In this case, the positioning image data may not be registered in the setting mode.

(8−8)上記実施の形態では、検査モードにおいて位置決め用画像が半透明状態で主表示欄411上に表示されるが、本発明はこれに限定されない。位置決め用画像は、主表示欄411に表示されるテクスチャ画像の表示領域とは異なる領域に表示されてもよい。例えば、位置決め用画像は、側部副表示欄413に表示されてもよい。この場合においても、検査作業者は、位置決め用画像を視認しつつ検査対象物Sの位置および姿勢を調整することができる。   (8-8) In the above embodiment, the positioning image is displayed on the main display column 411 in a semi-transparent state in the inspection mode, but the present invention is not limited to this. The positioning image may be displayed in an area different from the display area of the texture image displayed in the main display field 411. For example, the positioning image may be displayed in the side sub display field 413. Even in this case, the inspection operator can adjust the position and orientation of the inspection object S while visually recognizing the positioning image.

(8−9)上記実施の形態では、同一の画像検査装置500において、設定モードにより検査設定情報が生成され、検査モードにおいてその検査設定情報に基づく検査対象物Sの検査が行われるが、本発明はこれに限定されない。例えば、一の画像検査装置500において設定モードで生成された検査設定情報を、他の画像検査装置500の記憶装置240に記憶させてもよい。この場合、他の画像検査装置500の検査モードにおいて、一の画像検査装置500で作成された検査設定情報を用いて検査対象物Sの検査を行ってもよい。   (8-9) In the above embodiment, inspection setting information is generated in the same image inspection apparatus 500 in the setting mode, and the inspection object S is inspected based on the inspection setting information in the inspection mode. The invention is not limited to this. For example, inspection setting information generated in the setting mode in one image inspection apparatus 500 may be stored in the storage device 240 of another image inspection apparatus 500. In this case, in the inspection mode of another image inspection apparatus 500, the inspection object S may be inspected using inspection setting information created by one image inspection apparatus 500.

(8−10)上記実施の形態において、測定ヘッド100Hが固定され、測定ヘッド100Hに対してステージ141が相対的に移動するように構成されるが、本発明はこれに限定されない。例えば、ステージ141が固定され、ステージ141に対して測定ヘッド100Hが移動するように構成されてもよい。   (8-10) In the above embodiment, the measurement head 100H is fixed and the stage 141 moves relative to the measurement head 100H. However, the present invention is not limited to this. For example, the stage 141 may be fixed, and the measurement head 100H may be configured to move with respect to the stage 141.

(8−11)上記実施の形態において、画像検査装置500は三角測距方式に基づいて高さ画像データを生成するが、本発明はこれに限定されない。画像検査装置500は、他の方式に基づいて高さ画像データを生成してもよい。   (8-11) In the above embodiment, the image inspection apparatus 500 generates height image data based on the triangulation method, but the present invention is not limited to this. The image inspection apparatus 500 may generate height image data based on other methods.

例えば、画像検査装置500は、測定対象物Sと受光部120との距離を変化させつつ画像データを生成し、測定対象物Sに焦点が合った部分の画像データを合成することにより高さ画像データを生成してもよい。この場合、測定ヘッド100Hは、単一焦点型の光学系により構成されてもよいし、共焦点型の光学系により構成されてもよいし、光干渉型の光学系により構成されてもよい。   For example, the image inspection apparatus 500 generates image data while changing the distance between the measurement object S and the light receiving unit 120, and synthesizes the image data of a portion focused on the measurement object S to obtain a height image. Data may be generated. In this case, the measurement head 100H may be configured by a single focus type optical system, may be configured by a confocal type optical system, or may be configured by an optical interference type optical system.

(9)請求項の各構成要素と実施の形態の各部との対応関係
以下、請求項の各構成要素と実施の形態の各構成要素との対応の例について説明するが、本発明は下記の例に限定されない。
(9) Correspondence between each constituent element of claim and each part of the embodiment Hereinafter, an example of correspondence between each constituent element of the claim and each constituent element of the embodiment will be described. It is not limited to examples.

上記実施の形態においては、測定対象物S、設定用対象物Sおよび検査対象物Sが測定対象物の例であり、ステージ141がステージの例であり、受光部120、照明光出力部130、制御基板310および照明光源320が第1の画像データ取得手段の例である。投光部110、受光部120および制御基板310が第2の画像データ取得手段の例であり、CPU210が制御手段および処理装置の例であり、表示部400が表示手段の例であり、表示部400および操作部250が第1〜第4の操作手段の例であり、表示部400が誘導手段の例であり、記憶装置240が記憶手段の例であり、画像検査装置500が画像検査装置の例である。   In the above embodiment, the measurement object S, the setting object S, and the inspection object S are examples of the measurement object, the stage 141 is an example of the stage, the light receiving unit 120, the illumination light output unit 130, The control board 310 and the illumination light source 320 are examples of first image data acquisition means. The light projecting unit 110, the light receiving unit 120, and the control board 310 are examples of the second image data acquisition unit, the CPU 210 is an example of the control unit and the processing device, the display unit 400 is an example of the display unit, and the display unit 400 and the operation unit 250 are examples of the first to fourth operation units, the display unit 400 is an example of the guidance unit, the storage device 240 is an example of the storage unit, and the image inspection apparatus 500 is the image inspection apparatus. It is an example.

また、取得指令部210Bが第1〜第8の取得指令手段の例であり、登録部210Aが第1〜第4の登録手段および位置合わせ用画像データ登録手段の例であり、計測部210Dが第1および第2の計測手段の例であり、受け付け部210Eが受け付け手段の例である。表示指令部210Cが第1〜第5の表示指令手段の例であり、位置合わせ部210Gが第1および第2の位置合わせ手段の例であり、判定部210Hが判定手段の例であり、一致度算出部210Fが一致度算出手段の例である。   The acquisition command unit 210B is an example of first to eighth acquisition command units, the registration unit 210A is an example of first to fourth registration units and registration image data registration units, and the measurement unit 210D is It is an example of the 1st and 2nd measurement means, and the reception part 210E is an example of a reception means. The display command unit 210C is an example of first to fifth display command units, the alignment unit 210G is an example of first and second alignment units, the determination unit 210H is an example of determination unit, and matches The degree calculation unit 210F is an example of a coincidence degree calculation unit.

請求項の各構成要素として、請求項に記載されている構成または機能を有する他の種々の構成要素を用いることもできる。   As each constituent element in the claims, various other constituent elements having configurations or functions described in the claims can be used.

本発明は、種々の対象物の寸法の検査に有効に利用することができる。   The present invention can be effectively used for inspection of dimensions of various objects.

10 X−Yステージ
20 Zステージ
30 θステージ
100 測定部
100H 測定ヘッド
110,110A,110B 投光部
111 測定光源
112 パターン生成部
113,114,115,122,123 レンズ
120 受光部
121 カメラ
121a 撮像素子
130 照明光出力部
140 ステージ装置
141 ステージ
142 ステージ操作部
143 ステージ駆動部
144 治具
150,310 制御基板
200 PC
210 CPU
210A 登録部
210B 取得指令部
210C 表示指令部
210D 計測部
210E 受け付け部
210F 一致度算出部
210G 位置合わせ部
210H 判定部
220 ROM
230 RAM
240 記憶装置
250 操作部
300 制御部
320 照明光源
400 表示部
411 主表示欄
412 上部副表示欄
413 側部副表示欄
415 登録ボタン
417 完了ボタン
419 表示画像切替ボタン
421 ステージ操作ボタン
431 位置決め設定ボタン
432,513 測定ボタン
433 画像選択ボタン
434 解析ボタン
435,484 戻るボタン
441,524 保存ボタン
442 基準面設定ボタン
443 位置合わせボタン
444 プロファイルボタン
451 オフボタン
452 オンボタン
453 詳細位置合わせ設定ボタン
454 テストボタン
455 OKボタン
456 キャンセルボタン
461,473 画像選択操作部
462 矩形領域設定ボタン
463 全領域設定ボタン
464 回転範囲設定操作部
471 描画ボタン
472 エッジ検出ボタン
474 詳細位置合わせ方法ボタン
481 標本画像選択操作部
482 表示画像選択操作部
483 テスト実行ボタン
491 寸法計測方法ボタン
492,522 入力欄
493,525 工程情報ボタン
494 保存オプションボタン
500 画像検査装置
511 検査設定ファイル選択部
512 一致度インジケータ
514 閉じるボタン
515 次へボタン
521 結合ボタン
523 追加ボタン
601 検査設定ボタン
602 検査実行ボタン
603 統計解析ボタン
604 設定編集ボタン
HE,TE 輪郭
HI 高さ画像
S 検査対象物、設定用対象物、測定対象物
Sx 平面映像
TI テクスチャ画像
s10 薄肉部
s11,s21,s31 上面
s12,s22 下面
s20 厚肉部
s30 円柱部
tp1 第1の計測対象部分
tp2 第2の計測対象部分
tp3 第3の計測対象部分
tp4 第4の計測対象部分
DESCRIPTION OF SYMBOLS 10 XY stage 20 Z stage 30 (theta) stage 100 Measurement part 100H Measurement head 110,110A, 110B Light projection part 111 Measurement light source 112 Pattern generation part 113,114,115,122,123 Lens 120 Light reception part 121 Camera 121a Image sensor DESCRIPTION OF SYMBOLS 130 Illumination light output part 140 Stage apparatus 141 Stage 142 Stage operation part 143 Stage drive part 144 Jig 150,310 Control board 200 PC
210 CPU
210A Registration unit 210B Acquisition command unit 210C Display command unit 210D Measurement unit 210E Acceptance unit 210F Matching degree calculation unit 210G Positioning unit 210H Judgment unit 220 ROM
230 RAM
240 Storage Device 250 Operation Unit 300 Control Unit 320 Illumination Light Source 400 Display Unit 411 Main Display Field 412 Upper Sub Display Field 413 Side Sub Display Field 415 Registration Button 417 Complete Button 419 Display Image Switch Button 421 Stage Operation Button 431 Positioning Setting Button 432 , 513 Measurement button 433 Image selection button 434 Analysis button 435, 484 Back button 441, 524 Save button 442 Reference plane setting button 443 Alignment button 444 Profile button 451 Off button 452 On button 453 Detailed alignment setting button 454 Test button 455 OK Button 456 Cancel button 461,473 Image selection operation part 462 Rectangular area setting button 463 All area setting button 464 Rotation range setting operation part 471 Drawing button 472 Edge detection button 474 Detailed alignment method button 481 Specimen image selection operation unit 482 Display image selection operation unit 483 Test execution button 491 Dimension measurement method button 492, 522 Input field 493, 525 Process information button 494 Save option button 500 Image inspection device 511 Inspection setting file selection part 512 Consistency indicator 514 Close button 515 Next button 521 Join button 523 Add button 601 Inspection setting button 602 Inspection execution button 603 Statistical analysis button 604 Setting edit button HE, TE Contour HI Height image S Inspection object Object, Setting object, Measurement object Sx Plane image TI Texture image s10 Thin part s11, s21, s31 Upper surface s12, s22 Lower surface s20 Thick part s30 Cylindrical part tp1 First meter Measurement target part tp2 Second measurement target part tp3 Third measurement target part tp4 Fourth measurement target part

Claims (15)

測定対象物が載置されるステージと、
前記ステージに載置された前記測定対象物の表面のテクスチャ画像を表す第1の画像データを取得する第1の画像データ取得手段と、
前記ステージに載置された前記測定対象物の表面の高さ画像を表す第2の画像データを取得する第2の画像データ取得手段と、
検査のための設定を行う設定モードと検査を実行する検査モードとで制御動作を行う制御手段と、
表示手段とを備え、
前記制御手段は、
前記設定モードにおいて、前記ステージに前記測定対象物として設定用対象物が載置された状態で、前記設定用対象物の計測対象部分の寸法を計測するための第2の画像データを取得するように前記第2の画像データ取得手段に指令を与える第1の取得指令手段と、
前記設定モードにおいて、前記ステージに前記設定用対象物が載置された状態で、第1および第2の画像データのうち選択されたまたは選択されることになる位置合わせのための画像データを取得するように前記第1または第2の画像データ取得手段に指令を与える第2の取得指令手段と、
前記設定モードにおいて、前記第2の取得指令手段の指令により取得された画像データを位置合わせのための基準画像データとして登録する第1の登録手段と、
前記設定モードにおいて、前記第1の取得指令手段の指令により取得された第2の画像データに基づいて、前記設定用対象物の計測対象部分の高さ方向に成分を持つ寸法を計測する第1の計測手段と、
前記設定モードにおいて、前記設定用対象物の計測対象部分の設計値および公差のうち少なくとも一方の値の入力を受け付ける受け付け手段と、
前記検査モードにおいて、前記ステージに前記測定対象物として検査対象物が載置された状態で、前記検査対象物の計測対象部分の寸法を計測するための第2の画像データを取得するように前記第2の画像データ取得手段に指令を与える第3の取得指令手段と、
前記検査モードにおいて、前記ステージに前記検査対象物が載置された状態で、前記第1の登録手段により登録された前記基準画像データに対応する位置合わせのための画像データを取得するように前記第1または第2の画像データ取得手段に指令を与える第4の取得指令手段と、
前記検査モードにおいて、前記第4の取得指令手段の指令により取得された画像データを位置合わせ用画像データとして登録する位置合わせ用画像データ登録手段と、
前記検査モードにおいて、パターンマッチングにより前記位置合わせ用画像データと前記基準画像データとを位置合わせすることにより、前記第3の取得指令手段の指令により取得された第2の画像データの位置合わせを行う第1の位置合わせ手段と、
前記検査モードにおいて、前記第1の位置合わせ手段により位置合わせされた第2の画像データに基づいて、前記設定用対象物の計測対象部分に対応する前記検査対象物の計測対象部分の高さ方向に成分を持つ寸法を計測する第2の計測手段と、
前記検査モードにおいて、前記第1の計測手段により計測された寸法、および前記第2の計測手段により計測された寸法、ならびに前記受け付け手段により受け付けられた設計値および公差のうち少なくとも一方の値、に基づいて前記検査対象物の良否を判定する判定手段と、
前記検査モードにおいて、前記判定手段により判定された判定結果を表示するように前記表示手段に指令を与える第1の表示指令手段とを含む、画像検査装置。
A stage on which the measurement object is placed;
First image data acquisition means for acquiring first image data representing a texture image of the surface of the measurement object placed on the stage;
Second image data acquisition means for acquiring second image data representing a height image of the surface of the measurement object placed on the stage;
Control means for performing control operations in a setting mode for performing settings for inspection and an inspection mode for performing inspection;
Display means,
The control means includes
In the setting mode, the second image data for measuring the dimension of the measurement target portion of the setting target object is acquired in a state where the setting target object is placed on the stage as the measurement target object. First acquisition command means for giving a command to the second image data acquisition means;
In the setting mode, image data for alignment that is selected or will be selected from the first and second image data is acquired in a state where the setting object is placed on the stage. Second acquisition command means for giving a command to the first or second image data acquisition means,
In the setting mode, first registration means for registering image data acquired by the command of the second acquisition command means as reference image data for alignment;
In the setting mode, a first dimension for measuring a dimension having a component in the height direction of the measurement target portion of the setting target object based on the second image data acquired by the command of the first acquisition command means. Measuring means of
In the setting mode, receiving means for receiving an input of at least one value among a design value and a tolerance of the measurement target portion of the setting object;
In the inspection mode, the second image data for measuring the dimension of the measurement target portion of the inspection object is obtained in a state where the inspection object is placed on the stage as the measurement object. Third acquisition command means for giving a command to the second image data acquisition means;
In the inspection mode, the image data for alignment corresponding to the reference image data registered by the first registration means is acquired in a state where the inspection object is placed on the stage. Fourth acquisition command means for giving a command to the first or second image data acquisition means;
In the inspection mode, registration image data registration means for registering the image data acquired by the command of the fourth acquisition command means as registration image data;
In the inspection mode, alignment of the second image data acquired by the command of the third acquisition command means is performed by aligning the image data for alignment and the reference image data by pattern matching. First alignment means;
In the inspection mode, based on the second image data aligned by the first alignment means, the height direction of the measurement target portion of the inspection target corresponding to the measurement target portion of the setting target A second measuring means for measuring a dimension having a component in
In the inspection mode, at least one of the dimension measured by the first measuring unit, the dimension measured by the second measuring unit, and the design value and tolerance received by the receiving unit. Determining means for determining the quality of the inspection object based on;
An image inspection apparatus comprising: a first display command unit that gives a command to the display unit to display a determination result determined by the determination unit in the inspection mode.
前記第1および第2の画像データのうちいずれか一方を選択するために操作される第1の操作手段をさらに備え、
前記第1の登録手段は、前記第1の操作手段の操作により選択された画像データを前記基準画像データとして登録する、請求項1記載の画像検査装置。
A first operation means operated to select any one of the first and second image data;
The image inspection apparatus according to claim 1, wherein the first registration unit registers image data selected by the operation of the first operation unit as the reference image data.
前記第1または第2の画像データから任意の特徴部分を指定するために操作される第2の操作手段をさらに備え、
前記制御手段は、
前記設定モードにおいて、前記ステージに前記設定用対象物が載置された状態で、前記第2の操作手段による特徴部分の指定のために第1または第2の画像データを取得するように前記第1または第2の画像データ取得手段に指令を与える第5の取得指令手段と、
前記設定モードにおいて、前記第5の取得指令手段の指令により取得される画像データから前記第2の操作手段の操作により指定された前記特徴部分を登録する第2の登録手段と、
前記検査モードにおいて、前記ステージに前記検査対象物が載置された状態で、第5の取得指令手段の指令により取得される画像データに対応する画像データを取得するように前記第1または第2の画像データ取得手段に指令を与える第6の取得指令手段とをさらに含み、
前記第1の位置合わせ手段は、前記検査モードにおいて、パターンマッチングにより前記位置合わせ用画像データと前記基準画像データとを位置合わせした後、前記第2の登録手段により登録された前記特徴部分と前記第6の取得指令手段の指令により取得される画像データとに基づいて前記第3の取得指令手段の指令により取得される画像データの位置合わせを行う、請求項1または2記載の画像検査装置。
A second operation means operated to designate an arbitrary characteristic portion from the first or second image data;
The control means includes
In the setting mode, the first or second image data is acquired for designating a characteristic portion by the second operation means in a state where the setting object is placed on the stage. Fifth acquisition command means for giving a command to the first or second image data acquisition means;
In the setting mode, a second registration unit that registers the feature portion designated by the operation of the second operation unit from the image data acquired by the command of the fifth acquisition command unit;
In the inspection mode, in a state where the inspection object is placed on the stage, the first or second image data corresponding to the image data acquired by the command of the fifth acquisition command unit is acquired. And sixth acquisition command means for giving a command to the image data acquisition means of
In the inspection mode, the first alignment unit aligns the image data for alignment and the reference image data by pattern matching, and then the feature portion registered by the second registration unit The image inspection apparatus according to claim 1, wherein the image data acquired by the command of the third acquisition command unit is aligned based on the image data acquired by the command of the sixth acquisition command unit.
前記第1および前記第2の画像データ取得手段は、共通の軸上から第1および第2の画像データをそれぞれ取得するように配置される、請求項1〜3のいずれか一項に記載の画像検査装置。 The said 1st and said 2nd image data acquisition means is arrange | positioned so that the 1st and 2nd image data may each be acquired from on a common axis | shaft, respectively. Image inspection device. 前記第2の画像データ取得手段により取得された第2の画像データにおいて、任意の基準面を指定するために操作される第3の操作手段をさらに備え、
前記制御手段は、前記設定モードにおいて、前記第3の操作手段の操作により指定された前記基準面を登録する第3の登録手段をさらに含み、
前記第2の画像データ取得手段は、前記測定対象物の表面の各部分の位置が前記第3の登録手段により登録された前記基準面に直交する方向において前記基準面からの距離を表すように、取得した第2の画像データを補正する、請求項1〜4のいずれか一項に記載の画像検査装置。
In the second image data acquired by the second image data acquisition means, further comprising third operating means operated to designate an arbitrary reference plane,
The control means further includes third registration means for registering the reference plane designated by the operation of the third operation means in the setting mode,
The second image data acquisition unit represents a distance from the reference plane in a direction orthogonal to the reference plane registered by the third registration unit, with the position of each part of the surface of the measurement object being set. The image inspection apparatus according to claim 1, wherein the acquired second image data is corrected.
パターンマッチングのための探索範囲を指定するために操作される第4の操作手段をさらに備え、
前記第1の位置合わせ手段は、前記検査モードにおいて、前記第4の操作手段の操作により指定された前記探索範囲内でパターンマッチングにより前記位置合わせ用画像データと前記基準画像データとの位置合わせを行う、請求項1〜5のいずれか一項に記載の画像検査装置。
A fourth operation means operated to specify a search range for pattern matching;
In the inspection mode, the first alignment unit aligns the alignment image data and the reference image data by pattern matching within the search range specified by the operation of the fourth operation unit. The image inspection apparatus according to claim 1, wherein the image inspection apparatus is performed.
前記制御手段は、前記設定モードにおいて、前記第1の画像データに基づく画像および前記第2の画像データに基づく画像のうち少なくとも一方の画像を表示するように前記表示手段に指令を与える第2の表示指令手段をさらに含む、請求項1〜6のいずれか一項に記載の画像検査装置。 The control means gives a command to the display means to display at least one of the image based on the first image data and the image based on the second image data in the setting mode. The image inspection apparatus according to claim 1, further comprising a display command unit. 前記測定対象物の表面のテクスチャ画像を表す第1の標本画像データおよび前記測定対象物の表面の高さ画像を表す第2の標本画像データを予め記憶する記憶手段をさらに備え、
前記制御手段は、
前記設定モードにおいて、パターンマッチングにより基準画像データを前記第1および第2の標本画像データのうち対応する標本画像データと比較する第2の位置合わせ手段と、
前記設定モードにおいて、前記第2の位置合わせ手段による比較結果を表示するように前記表示手段に指令を与える第3の表示指令手段とをさらに含む、請求項1〜7のいずれか一項に記載の画像検査装置。
Storage means for preliminarily storing first specimen image data representing a texture image of the surface of the measurement object and second specimen image data representing a height image of the surface of the measurement object;
The control means includes
In the setting mode, a second alignment unit that compares reference image data with corresponding sample image data among the first and second sample image data by pattern matching;
The display mode according to any one of claims 1 to 7, further comprising third display command means for giving a command to the display means so as to display a comparison result by the second alignment means in the setting mode. Image inspection equipment.
前記制御手段は、
前記設定モードにおいて、前記ステージに前記設定用対象物が載置された状態で、位置決めのための第1または第2の画像データを取得するように前記第1または第2の画像データ取得手段に指令を与える第7の取得指令手段と、
前記設定モードにおいて、前記第7の取得指令手段の指令により取得された画像データに基づいて、前記設定用対象物の位置および姿勢を示す位置決め用画像データを登録する第4の登録手段と、
前記検査モードにおいて、前記第4の登録手段により登録された前記位置決め用画像データに基づく位置決め用画像により示される前記設定用対象物の位置および姿勢に前記検査対象物の位置および姿勢をそれぞれ近づけるように誘導を行う誘導手段とをさらに含む、請求項1〜8のいずれか一項に記載の画像検査装置。
The control means includes
In the setting mode, the first or second image data acquisition unit is configured to acquire the first or second image data for positioning in a state where the setting object is placed on the stage. A seventh acquisition command means for giving a command;
Fourth registration means for registering positioning image data indicating the position and orientation of the setting object based on the image data acquired by the command of the seventh acquisition command means in the setting mode;
In the inspection mode, the position and orientation of the inspection object are brought close to the position and orientation of the setting object indicated by the positioning image based on the positioning image data registered by the fourth registration unit. The image inspection apparatus according to claim 1, further comprising guidance means for performing guidance.
前記制御手段は、
前記設定モードにおいて、前記ステージに前記設定用対象物が載置された状態で、位置決めのための第1または第2の画像データを取得するように前記第1または第2の画像データ取得手段に指令を与える第7の取得指令手段と、
前記設定モードにおいて、前記第7の取得指令手段の指令により取得された画像データに基づいて、前記設定用対象物の位置および姿勢を示す位置決め用画像データを登録する第4の登録手段と、
前記検査モードにおいて、前記第4の取得指令手段による指令の前に、前記ステージに前記検査対象物が載置された状態で、位置決めのための第1または第2の画像データを取得するように前記第1または第2の画像データ取得手段に指令を与える第8の取得指令手段とをさらに含み、
前記検査モードにおいて、前記位置決め用画像に基づく位置決め用画像を表示するとともに前記第8の取得指令手段の指令により取得された画像データに基づいて前記検査対象物の画像を表示するように前記表示手段に指令を与える第4の表示指令手段とをさらに含む、請求項1〜8のいずれか一項に記載の画像検査装置。
The control means includes
In the setting mode, the first or second image data acquisition unit is configured to acquire the first or second image data for positioning in a state where the setting object is placed on the stage. A seventh acquisition command means for giving a command;
Fourth registration means for registering positioning image data indicating the position and orientation of the setting object based on the image data acquired by the command of the seventh acquisition command means in the setting mode;
In the inspection mode, before the instruction by the fourth acquisition instruction means, the first or second image data for positioning is acquired in a state where the inspection object is placed on the stage. And an eighth acquisition command means for giving a command to the first or second image data acquisition means,
In the inspection mode, the display unit displays a positioning image based on the positioning image and displays an image of the inspection object based on image data acquired by a command of the eighth acquisition command unit. The image inspection apparatus according to claim 1, further comprising: a fourth display command unit that gives a command to the camera.
前記制御手段は、
前記検査モードにおいて、前記第4の登録手段により登録された前記位置決め用画像データと前記第8の取得指令手段の指令により取得された画像データとの一致度を算出する一致度算出手段と、
前記検査モードにおいて、前記一致度算出手段による算出結果を表示するように前記表示手段に指令を与える第5の表示指令手段とをさらに含む、請求項10記載の画像検査装置。
The control means includes
In the inspection mode, a degree of coincidence calculating unit that calculates the degree of coincidence between the positioning image data registered by the fourth registration unit and the image data acquired by the command of the eighth acquisition command unit;
The image inspection apparatus according to claim 10, further comprising: a fifth display command unit that gives a command to the display unit so as to display a calculation result by the matching degree calculation unit in the inspection mode.
前記第5の表示指令手段は、予め定められた一致度についてのしきい値を示す情報を表示するように前記表示手段に指令を与える、請求項11記載の画像検査装置。 The image inspection apparatus according to claim 11, wherein the fifth display command unit gives a command to the display unit to display information indicating a threshold value for a predetermined degree of coincidence. 前記第4の登録手段により登録された位置決め用画像データは、前記設定用対象物の計測対象部分の寸法を計測するために用いられる第2の画像データとは異なる、請求項9〜12のいずれか一項に記載の画像検査装置。 The positioning image data registered by the fourth registration means is different from the second image data used for measuring the dimension of the measurement target portion of the setting object. The image inspection apparatus according to claim 1. 設定モードにおいて、ステージに測定対象物として設定用対象物が載置された状態で、前記設定用対象物の計測対象部分の寸法を計測するための第2の画像データを取得するステップと、
前記設定モードにおいて、前記ステージに前記設定用対象物が載置された状態で、第1および第2の画像データのうち選択されたまたは選択されることになる位置合わせのための画像データを取得するステップと、
前記設定モードにおいて、取得された位置合わせのための画像データを位置合わせのための基準画像データとして登録するステップと、
前記設定モードにおいて、取得された寸法計測のための第2の画像データに基づいて、前記設定用対象物の計測対象部分の高さ方向に成分を持つ寸法を計測するステップと、
前記設定モードにおいて、前記設定用対象物の計測対象部分の設計値および公差のうち少なくとも一方の値の入力を受け付けるステップと、
検査モードにおいて、前記ステージに前記測定対象物として検査対象物が載置された状態で、前記検査対象物の計測対象部分の寸法を計測するための第2の画像データを取得するステップと、
前記検査モードにおいて、前記ステージに前記検査対象物が載置された状態で、登録された基準画像データに対応する位置合わせのための画像データを取得するステップと、
前記検査モードにおいて、取得された位置合わせのための画像データを位置合わせ用画像データとして登録するステップと、
前記検査モードにおいて、パターンマッチングにより前記位置合わせ用データと前記基準画像データとを位置合わせすることにより、前記検査対象物についての寸法計測のための第2の画像データの位置合わせを行うステップと、
前記検査モードにおいて、位置合わせされた第2の画像データに基づいて、前記設定用対象物の計測対象部分に対応する前記検査対象物の計測対象部分の高さ方向に成分を持つ寸法を計測するステップと、
前記検査モードにおいて、前記設定用対象物について計測された寸法、および前記検査対象物について計測された寸法、ならびに受け付けられた設計値および公差のうち少なくとも一方の値、に基づいて前記検査対象物の良否を判定するステップと、
前記検査モードにおいて、判定された判定結果を表示手段に表示するステップとを含む、画像検査方法。
In the setting mode, obtaining a second image data for measuring the dimension of the measurement target portion of the setting object in a state where the setting object is placed on the stage as the measurement object;
In the setting mode, image data for alignment that is selected or will be selected from the first and second image data is acquired in a state where the setting object is placed on the stage. And steps to
Registering the acquired image data for alignment as reference image data for alignment in the setting mode;
In the setting mode, based on the acquired second image data for dimension measurement, measuring a dimension having a component in the height direction of the measurement target portion of the setting object;
In the setting mode, receiving an input of at least one of a design value and a tolerance of the measurement target portion of the setting object;
In the inspection mode, in a state where the inspection object is placed as the measurement object on the stage, obtaining second image data for measuring the dimension of the measurement target portion of the inspection object;
In the inspection mode, with the inspection object placed on the stage, obtaining image data for alignment corresponding to registered reference image data;
In the inspection mode, registering the acquired image data for alignment as alignment image data;
In the inspection mode, aligning the alignment data and the reference image data by pattern matching, thereby aligning the second image data for dimension measurement of the inspection object;
In the inspection mode, based on the aligned second image data, a dimension having a component in the height direction of the measurement target portion of the inspection target corresponding to the measurement target portion of the setting target is measured. Steps,
In the inspection mode, based on the dimension measured for the setting object, the dimension measured for the inspection object, and at least one of the received design value and tolerance, the inspection object A step of judging pass / fail;
And a step of displaying the determined determination result on a display means in the inspection mode.
処理装置により実行可能な画像検査プログラムであって、
設定モードにおいて、ステージに測定対象物として設定用対象物が載置された状態で、前記設定用対象物の計測対象部分の寸法を計測するための第2の画像データを取得する処理と、
前記設定モードにおいて、前記ステージに前記設定用対象物が載置された状態で、第1および第2の画像データのうち選択されたまたは選択されることになる位置合わせのための画像データを取得する処理と、
前記設定モードにおいて、取得された位置合わせのための画像データを位置合わせのための基準画像データとして登録する処理と、
前記設定モードにおいて、取得された寸法計測のための第2の画像データに基づいて、前記設定用対象物の計測対象部分の高さ方向に成分を持つ寸法を計測する処理と、
前記設定モードにおいて、取得された寸法計測用の第2の画像データに基づいて、前記設定用対象物の計測対象部分の高さ方向に成分を持つ寸法を計測する処理と、
前記設定モードにおいて、前記設定用対象物の計測対象部分の設計値および公差のうち少なくとも一方の値の入力を受け付ける処理と、
検査モードにおいて、前記ステージに前記測定対象物として検査対象物が載置された状態で、前記検査対象物の計測対象部分の寸法を計測するための第2の画像データを取得する処理と、
前記検査モードにおいて、前記ステージに前記検査対象物が載置された状態で、登録された基準画像データに対応する位置合わせのための画像データを取得する処理と、
前記検査モードにおいて、取得された位置合わせのための画像データを位置合わせ用画像データとして登録する処理と、
前記検査モードにおいて、パターンマッチングにより前記位置合わせ用データと前記基準画像データとを位置合わせすることにより、前記検査対象物についての寸法計測のための第2の画像データの位置合わせを行う処理と、
前記検査モードにおいて、位置合わせされた第2の画像データに基づいて、前記設定用対象物の計測対象部分に対応する前記検査対象物の計測対象部分の高さ方向に成分を持つ寸法を計測する処理と、
前記検査モードにおいて、前記設定用対象物について計測された寸法、および前記検査対象物について計測された寸法、ならびに受け付けられた設計値および公差のうち少なくとも一方の値、に基づいて前記検査対象物の良否を判定する処理と、
前記検査モードにおいて、判定された判定結果を表示手段に表示する処理とを、
前記処理装置に実行させる、画像検査プログラム。
An image inspection program executable by a processing device,
In the setting mode, in a state where the setting object is placed on the stage as the measurement object, a process of acquiring second image data for measuring the dimension of the measurement target part of the setting object;
In the setting mode, image data for alignment that is selected or will be selected from the first and second image data is acquired in a state where the setting object is placed on the stage. Processing to
In the setting mode, processing for registering the acquired image data for alignment as reference image data for alignment;
In the setting mode, based on the acquired second image data for dimension measurement, a process of measuring a dimension having a component in the height direction of the measurement target portion of the setting object;
In the setting mode, based on the acquired second image data for dimension measurement, a process of measuring a dimension having a component in the height direction of the measurement target portion of the setting target object;
In the setting mode, a process of receiving an input of at least one of a design value and a tolerance of the measurement target portion of the setting object;
In the inspection mode, in a state where the inspection object is placed on the stage as the measurement object, a process of acquiring second image data for measuring the dimension of the measurement target portion of the inspection object;
In the inspection mode, in a state where the inspection object is placed on the stage, processing for acquiring image data for alignment corresponding to registered reference image data;
In the inspection mode, processing for registering the acquired image data for alignment as alignment image data;
In the inspection mode, by aligning the alignment data and the reference image data by pattern matching, a process of aligning the second image data for dimension measurement of the inspection object;
In the inspection mode, based on the aligned second image data, a dimension having a component in the height direction of the measurement target portion of the inspection target corresponding to the measurement target portion of the setting target is measured. Processing,
In the inspection mode, based on the dimension measured for the setting object, the dimension measured for the inspection object, and at least one of the received design value and tolerance, the inspection object A process for determining pass / fail;
In the inspection mode, processing for displaying the determined determination result on the display means,
An image inspection program to be executed by the processing apparatus.
JP2015151259A 2015-07-30 2015-07-30 Image inspection device, image inspection method and image inspection program Pending JP2017032360A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015151259A JP2017032360A (en) 2015-07-30 2015-07-30 Image inspection device, image inspection method and image inspection program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015151259A JP2017032360A (en) 2015-07-30 2015-07-30 Image inspection device, image inspection method and image inspection program

Publications (1)

Publication Number Publication Date
JP2017032360A true JP2017032360A (en) 2017-02-09

Family

ID=57988583

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015151259A Pending JP2017032360A (en) 2015-07-30 2015-07-30 Image inspection device, image inspection method and image inspection program

Country Status (1)

Country Link
JP (1) JP2017032360A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019181560A1 (en) * 2018-03-22 2019-09-26 キヤノン株式会社 Image processing device, image pickup device, image processing method, and program
JP2020128930A (en) * 2019-02-08 2020-08-27 株式会社キーエンス Inspection device
JPWO2021038685A1 (en) * 2019-08-26 2021-03-04

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012037257A (en) * 2010-08-04 2012-02-23 Keyence Corp Measurement setting data creation device, measurement setting data creation method, and program for measurement setting data creation device
JP2014109491A (en) * 2012-11-30 2014-06-12 Keyence Corp Measurement microscope device, measurement method employing the same, operation program and computer readable recording medium
JP2015029559A (en) * 2013-07-31 2015-02-16 キヤノン株式会社 Imaging apparatus and imaging method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012037257A (en) * 2010-08-04 2012-02-23 Keyence Corp Measurement setting data creation device, measurement setting data creation method, and program for measurement setting data creation device
JP2014109491A (en) * 2012-11-30 2014-06-12 Keyence Corp Measurement microscope device, measurement method employing the same, operation program and computer readable recording medium
JP2015029559A (en) * 2013-07-31 2015-02-16 キヤノン株式会社 Imaging apparatus and imaging method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
KEYENCE ワンショット3D測定マイクロスコープ VR−3000 リファレンスマニュアル, JPN6018050936, 17 July 2014 (2014-07-17), pages 4 - 4, ISSN: 0004229624 *
KEYENCE 超高速インラインプロファイル測定器 LJ−V7000シリーズ ユーザーズマニュアル, JPN6018050934, 23 August 2013 (2013-08-23), pages 6 - 32, ISSN: 0004229623 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019181560A1 (en) * 2018-03-22 2019-09-26 キヤノン株式会社 Image processing device, image pickup device, image processing method, and program
JP2019169769A (en) * 2018-03-22 2019-10-03 キヤノン株式会社 Image processing system, imaging device, image processing method, and program
US20200410279A1 (en) * 2018-03-22 2020-12-31 Canon Kabushiki Kaisha Image processing device, imaging device, image processing method, and recording medium
JP7080688B2 (en) 2018-03-22 2022-06-06 キヤノン株式会社 Image processing device, image pickup device, image processing method, program
US11663710B2 (en) 2018-03-22 2023-05-30 Canon Kabushiki Kaisha Image processing device, imaging device, image processing method, and recording medium
JP2020128930A (en) * 2019-02-08 2020-08-27 株式会社キーエンス Inspection device
JP7266416B2 (en) 2019-02-08 2023-04-28 株式会社キーエンス inspection equipment
JPWO2021038685A1 (en) * 2019-08-26 2021-03-04
WO2021038685A1 (en) * 2019-08-26 2021-03-04 日本電気株式会社 Surface abnormality detection device, system, method, and non-transitory computer-readable medium
JP7447906B2 (en) 2019-08-26 2024-03-12 日本電気株式会社 Surface abnormality detection device, system, method, and program

Similar Documents

Publication Publication Date Title
JP6474334B2 (en) Image inspection apparatus, image inspection method, and image inspection program
US10508902B2 (en) Three-dimensional measurement device
US9970745B2 (en) Measurement target measuring program, measurement target measuring method, and magnifying observation device
JP5547105B2 (en) Dimension measuring apparatus, dimension measuring method and program for dimension measuring apparatus
US9291450B2 (en) Measurement microscope device, image generating method, measurement microscope device operation program, and computer-readable recording medium
US8503758B2 (en) Image measurement device, method for image measurement, and computer readable medium storing a program for image measurement
US8994810B2 (en) Magnification observation device
JP5972563B2 (en) Edge detection using structured illumination
EP2618135B1 (en) Method for registering inspection standard for soldering inspection and board inspection apparatus thereby
JP5997989B2 (en) Image measuring apparatus, control method thereof, and program for image measuring apparatus
JP5878328B2 (en) Precision solder resist registration inspection method
JP6462823B2 (en) Image inspection device
JP6230434B2 (en) Image inspection apparatus, image inspection method, image inspection program, and computer-readable recording medium
US9122048B2 (en) Image processing apparatus and image processing program
US11776110B2 (en) Image measuring apparatus
JP5467962B2 (en) Measurement setting data creation device, measurement setting data creation method, program for measurement setting data creation device, and dimension measurement device
JP2017032360A (en) Image inspection device, image inspection method and image inspection program
JP2012037257A (en) Measurement setting data creation device, measurement setting data creation method, and program for measurement setting data creation device
US10846881B2 (en) Image measuring apparatus
JP6694248B2 (en) Three-dimensional image inspection apparatus, three-dimensional image inspection method, three-dimensional image inspection program, and computer-readable recording medium
JP7154084B2 (en) Three-dimensional shape measuring device and three-dimensional shape measuring program
JP2010032329A (en) Image measuring device and computer program
JP2017032340A (en) Three-dimensional image inspection device, three-dimensional image inspection method, three-dimensional image inspection program, and computer readable recording medium
JP6234253B2 (en) Image inspection apparatus, image inspection method, image inspection program, and computer-readable recording medium
JP7308689B2 (en) 3D shape measuring device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180228

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20181212

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190108

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190307

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190903

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20200310