JP2022097562A - Inspection system, inspection method, and program - Google Patents

Inspection system, inspection method, and program Download PDF

Info

Publication number
JP2022097562A
JP2022097562A JP2022071238A JP2022071238A JP2022097562A JP 2022097562 A JP2022097562 A JP 2022097562A JP 2022071238 A JP2022071238 A JP 2022071238A JP 2022071238 A JP2022071238 A JP 2022071238A JP 2022097562 A JP2022097562 A JP 2022097562A
Authority
JP
Japan
Prior art keywords
inspection
image
focus
unit
focal position
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.)
Granted
Application number
JP2022071238A
Other languages
Japanese (ja)
Other versions
JP7287533B2 (en
Inventor
信隆 今西
Nobutaka Imanishi
豊 加藤
Yutaka Kato
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.)
Omron Corp
Original Assignee
Omron 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
Priority claimed from JP2018221071A external-priority patent/JP2020086152A/en
Application filed by Omron Corp filed Critical Omron Corp
Priority to JP2022071238A priority Critical patent/JP7287533B2/en
Publication of JP2022097562A publication Critical patent/JP2022097562A/en
Application granted granted Critical
Publication of JP7287533B2 publication Critical patent/JP7287533B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Lens Barrels (AREA)
  • Automatic Focus Adjustment (AREA)
  • Studio Devices (AREA)
  • Focusing (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an inspection system that can easily adjust a focal position according to a type and a portion to be inspected of an object, and can obtain an image focused on the object.
SOLUTION: An inspection system comprises: an autofocus processing unit; an inspection unit that inspects an object based on an inspection image created when a focal position is adjusted to a focused position; and a setting unit that sets condition data of autofocus processing according to at least one of a type and a portion to be inspected of the object. The autofocus processing unit executes the autofocus processing according to condition data.
SELECTED DRAWING: Figure 1
COPYRIGHT: (C)2022,JPO&INPIT

Description

本技術は、検査システム、検査方法およびプログラムに関する。 The art relates to inspection systems, inspection methods and programs.

特開2013-108875号公報(特許文献1)には、検査対象物の種類に応じてフォーカス位置データを切り替え、撮像部のフォーカス位置がフォーカス位置データに対応する位置になるようにフォーカス調節機構の動作を制御する画像処理装置が開示されている。 According to Japanese Patent Application Laid-Open No. 2013-108875 (Patent Document 1), the focus position data is switched according to the type of the inspection object, and the focus adjustment mechanism is provided so that the focus position of the image pickup unit is the position corresponding to the focus position data. An image processing device that controls the operation is disclosed.

特開2013-108875号公報Japanese Unexamined Patent Publication No. 2013-108875 国際公開第17/056557号International Publication No. 17/056557 特開2010-78681号公報Japanese Unexamined Patent Publication No. 2010-78681 特開平10-170817号公報Japanese Unexamined Patent Publication No. 10-170817

特許文献1に記載の画像処理装置は、検査対象物の種類に応じて、撮像部のフォーカス位置を容易に調節することができる。しかしながら、撮像部のフォーカス位置は、検査対象物の種類に応じた位置に固定される。そのため、検査対象物の個体差によって、検査対象物と撮像部との間の距離が変動した場合に、検査対象物に合焦した画像を得ることができない。 The image processing apparatus described in Patent Document 1 can easily adjust the focus position of the image pickup unit according to the type of the inspection object. However, the focus position of the imaging unit is fixed at a position corresponding to the type of the inspection object. Therefore, when the distance between the inspection target and the imaging unit fluctuates due to individual differences in the inspection target, it is not possible to obtain an image in focus on the inspection target.

本発明は、上記の問題を鑑みてなされたものであり、その目的は、対象物の品種および検査対象箇所の少なくとも一方に応じて焦点位置を容易に調節することができ、かつ、対象物に合焦した画像を得ることができる検査システム、検査方法およびプログラムを提供することである。 The present invention has been made in view of the above problems, and an object of the present invention is that the focal position can be easily adjusted according to at least one of the type of object and the inspection target location, and the object can be used. It is to provide an inspection system, inspection method and program capable of obtaining a focused image.

本開示の一例によれば、検査システムは、焦点位置が可変である光学系と、光学系を介して対象物からの光を受けることによって撮像画像を生成する撮像素子と、オートフォーカス処理部と、検査部と、設定部とを備える。オートフォーカス処理部は、撮像画像に基づいて、対象物に合焦する焦点位置である合焦位置の探索に関するオートフォーカス処理を実行する。検査部は、焦点位置が合焦位置に調節されたときに生成された検査画像に基づいて対象物を検査する。設定部は、対象物の品種および検査対象箇所の少なくとも一方に応じて、オートフォーカス処理の条件データを設定する。オートフォーカス処理部は、条件データに従ってオートフォーカス処理を実行する。 According to an example of the present disclosure, the inspection system includes an optical system having a variable focal position, an image pickup element that generates an image captured image by receiving light from an object through the optical system, and an autofocus processing unit. , An inspection unit and a setting unit are provided. The autofocus processing unit executes autofocus processing related to the search for the in-focus position, which is the focal position in which the object is in focus, based on the captured image. The inspection unit inspects the object based on the inspection image generated when the focal position is adjusted to the in-focus position. The setting unit sets the condition data for the autofocus process according to at least one of the product type and the inspection target location. The autofocus processing unit executes the autofocus processing according to the condition data.

この開示によれば、対象物の品種および検査対象箇所の少なくとも一方に応じた条件データに従ってオートフォーカス処理が実行される。そのため、対象物の品種および検査対象箇所の少なくとも一方に応じて、焦点位置を容易に調節することができる。さらに、オートフォーカス処理によって対象物に合焦する焦点位置が自動的に探索されるため、対象物に合焦した画像を得ることができる。 According to this disclosure, the autofocus process is executed according to the condition data corresponding to at least one of the product type and the inspection target location of the object. Therefore, the focal position can be easily adjusted according to at least one of the type of the object and the inspection target portion. Further, since the focus position in focus on the object is automatically searched by the autofocus process, an image in focus on the object can be obtained.

上述の開示において、オートフォーカス処理部は、撮像画像のうちの部分領域における合焦度に基づいて合焦位置を探索する。条件データは、部分領域のサイズおよび位置姿勢を指定するデータを含む。 In the above disclosure, the autofocus processing unit searches for the in-focus position based on the in-focus degree in a partial region of the captured image. Conditional data includes data that specify the size and position / orientation of the partial area.

この開示によれば、対象物の品種および検査対象箇所の少なくとも一方に適した部分領域から合焦度が算出される。これにより、対象物に合焦した画像を得やすくなる。 According to this disclosure, the degree of focus is calculated from a partial region suitable for at least one of the product type and the inspection target location. This makes it easier to obtain an image that is in focus on the object.

上述の開示において、条件データは、焦点位置の探索範囲、および合焦位置の探索を開始するときの焦点位置の少なくとも一方を指定するデータを含む。 In the above disclosure, the conditional data includes data that specifies at least one of the focus position search range and the focus position when the focus position search is started.

この開示によれば、対象物の品種および検査対象箇所の少なくとも一方に適した探索範囲から合焦位置を探索できる。あるいは、対象物の品種および検査対象箇所の少なくとも一方に適した焦点位置から探索を開始できる。 According to this disclosure, the focus position can be searched from the search range suitable for at least one of the variety of the object and the inspection target location. Alternatively, the search can be started from a focal position suitable for at least one of the product type and the inspection target location.

上述の開示において、オートフォーカス処理は、合焦位置の信頼性を示す評価値と閾値とを比較することにより、合焦位置の良否を判定する処理を含む。条件データは、評価値を算出するための評価関数、および閾値の少なくとも一方を指定するデータを含む。 In the above disclosure, the autofocus process includes a process of determining the quality of the in-focus position by comparing the evaluation value indicating the reliability of the in-focus position with the threshold value. Conditional data includes an evaluation function for calculating an evaluation value and data that specifies at least one of the threshold values.

この開示によれば、対象物の品種および検査対象箇所の少なくとも一方に適した評価関数および閾値の少なくとも一方が設定される。これにより、対象物の品種および検査対象箇所の少なくとも一方に応じて適切に合焦位置の信頼性を評価できる。 According to this disclosure, at least one of the evaluation function and the threshold value suitable for at least one of the product type and the inspection target site is set. This makes it possible to appropriately evaluate the reliability of the in-focus position according to at least one of the product type and the inspection target location.

上述の開示において、オートフォーカス処理は、合焦位置の信頼性を示す評価値と閾値とを比較することにより、合焦位置の良否を判定する処理を含む。評価値は、検査画像のうちの部分領域における合焦度に基づいて算出される。条件データは、部分領域のサイズおよび位置姿勢を指定するデータを含む。 In the above disclosure, the autofocus process includes a process of determining the quality of the in-focus position by comparing the evaluation value indicating the reliability of the in-focus position with the threshold value. The evaluation value is calculated based on the degree of focus in a partial region of the inspection image. Conditional data includes data that specify the size and position / orientation of the partial area.

この開示によれば、対象物の品種および検査対象箇所の少なくとも一方に適した部分領域における合焦度から評価値が算出される。これにより、対象物の品種および検査対象箇所の少なくとも一方に応じて適切に合焦位置の信頼性を評価できる。 According to this disclosure, the evaluation value is calculated from the degree of focus in the partial region suitable for at least one of the variety of the object and the inspection target part. This makes it possible to appropriately evaluate the reliability of the in-focus position according to at least one of the product type and the inspection target location.

本開示の一例によれば、検査システムは、焦点位置が可変である光学系と、光学系を介して対象物からの光を受けることによって撮像画像を生成する撮像素子と、撮像画像に基づいて、対象物に合焦する焦点位置である合焦位置を探索するオートフォーカス処理を実行するオートフォーカス処理部とを備える。当該検査システムにおける検査方法は、第1から第3のステップを備える。第1のステップは、対象物の品種または対象物の検査対象箇所に応じて、オートフォーカス処理の条件データを設定するステップである。第2のステップは、条件データに従って、オートフォーカス処理部にオートフォーカス処理を実行させるステップである。第3のステップは、焦点位置が合焦位置に調節されたときに生成された検査画像に基づいて対象物を検査するステップである。 According to an example of the present disclosure, the inspection system is based on an optical system having a variable focal position, an image pickup element that generates an image to be captured by receiving light from an object through the optical system, and an image to be captured. It also includes an autofocus processing unit that executes an autofocus process for searching for a focus position that is a focus position for an object. The inspection method in the inspection system includes the first to third steps. The first step is a step of setting condition data for autofocus processing according to the type of the object or the inspection target portion of the object. The second step is a step of causing the autofocus processing unit to execute the autofocus process according to the condition data. The third step is to inspect the object based on the inspection image generated when the focal position is adjusted to the in-focus position.

本開示の一例によれば、プログラムは、上記の検査方法をコンピュータに実行させる。これらの開示によっても、対象物の品種および検査対象箇所の少なくとも一方に応じた焦点位置の調節を容易に行なうことができ、かつ、対象物に合焦した画像を得ることができる。 According to an example of the present disclosure, the program causes a computer to perform the above inspection method. With these disclosures, it is possible to easily adjust the focal position according to at least one of the product type and the inspection target portion of the object, and it is possible to obtain an image in focus on the object.

本発明によれば、対象物の品種および検査対象箇所の少なくとも一方に応じた焦点位置の調節を容易に行なうことができ、かつ、対象物に合焦した画像を得ることができる。 According to the present invention, it is possible to easily adjust the focal position according to at least one of the product type and the inspection target portion of the object, and it is possible to obtain an image in focus on the object.

実施の形態に係る検査システムの1つの適用例を示す模式図である。It is a schematic diagram which shows one application example of the inspection system which concerns on embodiment. 検査システムに備えられる撮像装置の内部構成の一例を示す図である。It is a figure which shows an example of the internal structure of the image pickup apparatus provided in an inspection system. 合焦位置の探索方法を説明するための模式図である。It is a schematic diagram for demonstrating the search method of the in-focus position. 焦点位置が可変のレンズモジュールの構成の一例を示す図である。It is a figure which shows an example of the structure of the lens module which the focal position is variable. 焦点位置が可変のレンズモジュールの構成の別の例を示す図である。It is a figure which shows another example of the structure of the lens module which the focal position is variable. 実施の形態に係る画像処理装置のハードウェア構成の一例を示すブロック図である。It is a block diagram which shows an example of the hardware composition of the image processing apparatus which concerns on embodiment. 撮像装置によるワークWの撮像を模式的に示した図である。It is a figure which shows the image of the work W by the image pickup apparatus schematically. 相対的にサイズの大きい品種のワークの像を含む画像を示す図である。It is a figure which shows the image which contains the image of the work of a relatively large variety. 相対的にサイズの小さい品種のワークの像を含む画像を示す図である。It is a figure which shows the image which contains the image of the work of a relatively small variety. 合焦度波形の一例を示す図である。It is a figure which shows an example of the focusing degree waveform. 合焦位置の探索範囲の設定を支援するための設定画面の一例を示す図である。It is a figure which shows an example of the setting screen for supporting the setting of the search range of the in-focus position. 品種と条件データとが対応付けられたテーブルの一例を示す図である。It is a figure which shows an example of the table in which the product type and the condition data are associated. 検査対象箇所と条件データとが対応付けられたテーブルの一例を示す図である。It is a figure which shows an example of the table in which the inspection target part and the condition data are associated. 品種と検査対象箇所と条件データとが対応付けられたテーブルの一例を示す図である。It is a figure which shows an example of the table in which the product type, the inspection target part, and the condition data are associated with each other. 実施の形態に係る検査システムの検査処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of the inspection process of the inspection system which concerns on embodiment.

以下、図面を参照しつつ、本発明に従う実施の形態について説明する。以下の説明では、同一の部品および構成要素には同一の符号を付してある。それらの名称および機能も同じである。したがって、これらについての詳細な説明は繰り返さない。 Hereinafter, embodiments according to the present invention will be described with reference to the drawings. In the following description, the same parts and components are designated by the same reference numerals. Their names and functions are the same. Therefore, the detailed description of these will not be repeated.

§1 適用例
まず、図1および図2を参照して、本発明が適用される場面の一例について説明する。図1は、実施の形態に係る検査システムの1つの適用例を示す模式図である。図2は、検査システムに備えられる撮像装置の内部構成の一例を示す図である。
§1 Application example First, an example of a situation in which the present invention is applied will be described with reference to FIGS. 1 and 2. FIG. 1 is a schematic diagram showing one application example of the inspection system according to the embodiment. FIG. 2 is a diagram showing an example of the internal configuration of the image pickup apparatus provided in the inspection system.

図1に示すように、本実施の形態に係る検査システム1は、たとえば外観検査システムとして実現される。検査システム1は、たとえば工業製品の生産ラインなどにおいて、ステージ90上に載置されたワークW上の検査対象箇所を撮像し、得られた画像を用いて、ワークWの外観検査を行う。外観検査では、ワークWの傷、汚れ、異物の有無、寸法などが検査される。 As shown in FIG. 1, the inspection system 1 according to the present embodiment is realized as, for example, a visual inspection system. The inspection system 1 takes an image of an inspection target portion on the work W placed on the stage 90, for example, in a production line of an industrial product, and inspects the appearance of the work W using the obtained image. In the visual inspection, scratches, stains, the presence or absence of foreign matter, dimensions, etc. of the work W are inspected.

ステージ90上に載置されたワークWの外観検査が完了すると、次のワーク(図示せず)がステージ90上に搬送される。ワークWの撮像の際、ワークWは、ステージ90上の所定位置に所定姿勢で静止してもよい。あるいは、ワークWがステージ90上を移動しながら、ワークWが撮像されてもよい。 When the visual inspection of the work W placed on the stage 90 is completed, the next work (not shown) is conveyed onto the stage 90. When the work W is imaged, the work W may be stationary in a predetermined posture at a predetermined position on the stage 90. Alternatively, the work W may be imaged while the work W moves on the stage 90.

図1に示すように、検査システム1は、基本的な構成要素として、撮像装置10と、画像処理装置20とを備える。この実施の形態では、検査システム1は、さらに、PLC(Programmable Logic Controller)30と、入力装置40と、表示装置50とを備える。 As shown in FIG. 1, the inspection system 1 includes an image pickup device 10 and an image processing device 20 as basic components. In this embodiment, the inspection system 1 further includes a PLC (Programmable Logic Controller) 30, an input device 40, and a display device 50.

撮像装置10は、画像処理装置20に接続される。撮像装置10は、画像処理装置20からの指令に従って、撮像視野に存在する被写体(ワークW)を撮像して、ワークWの像を含む画像データを生成する。撮像装置10と画像処理装置20とは一体化されていてもよい。 The image pickup device 10 is connected to the image processing device 20. The image pickup apparatus 10 images a subject (work W) existing in the imaging field of view according to a command from the image processing apparatus 20, and generates image data including an image of the work W. The image pickup device 10 and the image processing device 20 may be integrated.

図2に示されるように、撮像装置10は、照明部11と、レンズモジュール12と、撮像素子13と、撮像素子制御部14と、レンズ制御部16と、レジスタ15,17と、通信インターフェース(I/F)部18とを含む。 As shown in FIG. 2, the image pickup device 10 includes an illumination unit 11, a lens module 12, an image pickup element 13, an image pickup element control unit 14, a lens control unit 16, and registers 15 and 17, and a communication interface ( I / F) Part 18 is included.

照明部11は、ワークWに対して光を照射する。照明部11から照射された光は、ワークWの表面で反射し、レンズモジュール12に入射する。照明部11は省略されてもよい。 The lighting unit 11 irradiates the work W with light. The light emitted from the illumination unit 11 is reflected on the surface of the work W and is incident on the lens module 12. The illumination unit 11 may be omitted.

レンズモジュール12は、ワークWからの光を撮像素子13の撮像面13a上に結像させるための光学系である。レンズモジュール12の焦点位置は、所定の可動範囲内で可変である。焦点位置とは、光軸に平行な入射光線が光軸と交わる点の位置である。 The lens module 12 is an optical system for forming an image of light from the work W on the image pickup surface 13a of the image pickup element 13. The focal position of the lens module 12 is variable within a predetermined movable range. The focal position is the position of the point where the incident light ray parallel to the optical axis intersects the optical axis.

レンズモジュール12は、レンズ12aと、レンズ群12bと、レンズ12cと、可動部12dと、フォーカス調節部12eとを有する。レンズ12aは、レンズモジュール12の焦点位置を変化させるためのレンズである。フォーカス調節部12eは、レンズ12aを制御して、レンズモジュール12の焦点位置を変化させる。 The lens module 12 includes a lens 12a, a lens group 12b, a lens 12c, a movable portion 12d, and a focus adjusting portion 12e. The lens 12a is a lens for changing the focal position of the lens module 12. The focus adjusting unit 12e controls the lens 12a to change the focal position of the lens module 12.

レンズ群12bは、焦点距離を変更するためのレンズ群である。焦点距離が変更されることにより、ズーム倍率が制御される。レンズ群12bは、可動部12dに設置され、光軸方向に沿って可動する。レンズ12cは、撮像装置10内の予め定められた位置に固定されるレンズである。 The lens group 12b is a lens group for changing the focal length. The zoom magnification is controlled by changing the focal length. The lens group 12b is installed in the movable portion 12d and moves along the optical axis direction. The lens 12c is a lens fixed at a predetermined position in the image pickup apparatus 10.

撮像素子13は、例えばCMOS(Complementary Metal Oxide Semiconductor)イメージセンサなどの光電変換素子であり、レンズモジュール12を介してワークWからの光を受けることによって画像信号を生成する。 The image pickup device 13 is a photoelectric conversion element such as a CMOS (Complementary Metal Oxide Semiconductor) image sensor, and generates an image signal by receiving light from the work W via the lens module 12.

撮像素子制御部14は、撮像素子13からの画像信号に基づいて撮像画像データを生成する。このとき、撮像素子制御部14は、予め設定されたシャッター速度(露光時間)となるようにシャッターを開閉し、予め設定された解像度の撮像画像データを生成する。シャッター速度および解像度を示す情報は、予めレジスタ15に記憶されている。 The image sensor control unit 14 generates image image data based on the image signal from the image sensor 13. At this time, the image sensor control unit 14 opens and closes the shutter so as to have a preset shutter speed (exposure time), and generates captured image data having a preset resolution. Information indicating the shutter speed and the resolution is stored in the register 15 in advance.

レンズ制御部16は、レジスタ17が記憶する命令に従って、撮像装置10のフォーカスを調整する。具体的には、レンズ制御部16は、ワークWの撮像される領域に応じてフォーカス位置が変化するように、フォーカス調節部12eを制御する。フォーカス調節部12eは、レンズ制御部16の制御により、レンズモジュール12の焦点位置を調整する。 The lens control unit 16 adjusts the focus of the image pickup apparatus 10 according to the command stored in the register 17. Specifically, the lens control unit 16 controls the focus adjustment unit 12e so that the focus position changes according to the imaged region of the work W. The focus adjusting unit 12e adjusts the focal position of the lens module 12 under the control of the lens control unit 16.

レンズ制御部16は、ワークWのうち撮像視野内に含まれる領域の大きさが略一定になるように、可動部12dを制御して、レンズ群12bの位置を調節してもよい。言い換えると、レンズ制御部16は、ワークWのうち撮像視野内に含まれる領域の大きさが予め定められた範囲内になるように、可動部12dを制御することができる。レンズ制御部16は、撮像位置とワークWとの距離に応じてレンズ群12bの位置を調節すればよい。なお、この実施の形態では、ズームの調節は必須ではない。 The lens control unit 16 may control the movable unit 12d to adjust the position of the lens group 12b so that the size of the region included in the imaging field of view of the work W is substantially constant. In other words, the lens control unit 16 can control the movable unit 12d so that the size of the region included in the imaging field of view of the work W is within a predetermined range. The lens control unit 16 may adjust the position of the lens group 12b according to the distance between the image pickup position and the work W. In this embodiment, the zoom adjustment is not essential.

通信I/F部18は、画像処理装置20との間でデータを送受信する。通信I/F部18は、撮像指示を画像処理装置20から受信する。通信I/F部18は、撮像素子制御部14によって生成された画像データを画像処理装置20に送信する。 The communication I / F unit 18 transmits / receives data to / from the image processing device 20. The communication I / F unit 18 receives an image pickup instruction from the image processing device 20. The communication I / F unit 18 transmits the image data generated by the image sensor control unit 14 to the image processing device 20.

図1に戻って、PLC30は、画像処理装置20に接続され、画像処理装置20を制御する。例えばPLC30は、画像処理装置20が撮像指令(撮像トリガ)を撮像装置10に出力するためのタイミングを制御する。 Returning to FIG. 1, the PLC 30 is connected to the image processing device 20 and controls the image processing device 20. For example, the PLC 30 controls the timing for the image processing device 20 to output an image pickup command (imaging trigger) to the image pickup device 10.

入力装置40および表示装置50は、画像処理装置20に接続される。入力装置40は、検査システム1の各種の設定に関するユーザの入力を受け付ける。表示装置50は、検査システム1の設定に関する情報、画像処理装置20によるワークWの画像処理の結果などを表示する。 The input device 40 and the display device 50 are connected to the image processing device 20. The input device 40 receives user input regarding various settings of the inspection system 1. The display device 50 displays information regarding the settings of the inspection system 1, the result of image processing of the work W by the image processing device 20, and the like.

画像処理装置20は、撮像装置10から撮像画像データを取得し、取得した撮像画像データに対する画像処理を行なう。画像処理装置20は、指令生成部21と、算出部22と、オートフォーカス制御部(以下、「AF制御部」という)23と、検査部24と、オートフォーカス評価部(以下、「AF評価部」という)25と、判定部26と、出力部27と、記憶部230と、条件作成部28と、設定部29とを含む。 The image processing device 20 acquires captured image data from the image pickup device 10 and performs image processing on the acquired captured image data. The image processing device 20 includes a command generation unit 21, a calculation unit 22, an autofocus control unit (hereinafter, referred to as “AF control unit”) 23, an inspection unit 24, and an autofocus evaluation unit (hereinafter, “AF evaluation unit”). 25, a determination unit 26, an output unit 27, a storage unit 230, a condition creation unit 28, and a setting unit 29.

指令生成部21は、PLC30からの制御指令を受けて、撮像装置10に撮像指令(撮像トリガ)を出力する。さらに、指令生成部21は、撮像装置10のレンズ制御部16の処理条件を撮像装置10に指定する。 The command generation unit 21 receives a control command from the PLC 30 and outputs an image pickup command (imaging trigger) to the image pickup apparatus 10. Further, the command generation unit 21 designates the processing conditions of the lens control unit 16 of the image pickup device 10 to the image pickup device 10.

算出部22は、撮像画像データから合焦度を算出する。合焦度とは、対象物に対して焦点がどの程度合っているかを表す度合いであり、公知の種々の方法を用いる算出される。たとえば、算出部22は、撮像画像データに対してハイパスフィルタを適用することにより高周波成分を抽出し、抽出された高周波成分の積算値を合焦度として算出する。このような合焦度は、画像の明暗差に依存した値を示す。 The calculation unit 22 calculates the degree of focus from the captured image data. The degree of focus is a degree indicating how much the object is in focus, and is calculated by using various known methods. For example, the calculation unit 22 extracts a high-frequency component by applying a high-pass filter to the captured image data, and calculates the integrated value of the extracted high-frequency component as the in-focus degree. Such a degree of focus indicates a value depending on the difference in brightness of the image.

AF制御部23は、ワークWに合焦する焦点位置である合焦位置を探索する。具体的には、AF制御部23は、レンズモジュール12の焦点位置を変えて生成された複数の撮像画像データの各々の合焦度を算出部22から取得する。AF制御部23は、取得した合焦度がピークとなる焦点位置を合焦位置として決定する。「合焦する」とは、ワークWの像が撮像素子13の撮像面13a(図2参照)に形成されることを意味する。AF制御部23は、レンズモジュール12の焦点位置が合焦位置であるときの撮像画像データを検査画像データとして特定する。 The AF control unit 23 searches for a focusing position, which is a focal position for focusing on the work W. Specifically, the AF control unit 23 acquires the in-focus degree of each of the plurality of captured image data generated by changing the focal position of the lens module 12 from the calculation unit 22. The AF control unit 23 determines the focal position at which the acquired in-focus degree peaks as the in-focus position. “Focusing” means that an image of the work W is formed on the image pickup surface 13a (see FIG. 2) of the image pickup element 13. The AF control unit 23 specifies the captured image data when the focal position of the lens module 12 is the in-focus position as inspection image data.

検査部24は、検査画像データで示される検査画像に基づいてワークWを検査し、検査結果を出力する。具体的には、検査部24は、検査画像に対して予め登録された画像処理を施すことにより、ワークWを検査する。検査部24は、公知の技術を用いて検査を行なえばよい。検査項目が傷の有無である場合、検査結果は「傷あり」または「傷なし」を示す。検査項目が寸法である場合、検査結果は寸法の計測値が所定範囲内であるか否かを示す。 The inspection unit 24 inspects the work W based on the inspection image indicated by the inspection image data, and outputs the inspection result. Specifically, the inspection unit 24 inspects the work W by performing image processing registered in advance on the inspection image. The inspection unit 24 may perform the inspection using a known technique. If the inspection item is the presence or absence of scratches, the inspection result indicates "with scratches" or "without scratches". When the inspection item is a dimension, the inspection result indicates whether or not the measured value of the dimension is within a predetermined range.

AF評価部25は、検査画像に基づいて合焦位置の信頼性を評価し、評価結果を出力する。具体的には、AF評価部25は、検査画像に対して予め登録された画像処理を施すことにより、合焦位置の信頼性を示す評価値を算出し、算出した評価値と閾値とを比較することにより、合焦位置の信頼性を評価する。AF評価部25は、例えば、信頼性が高い程大きくなる評価値を算出し、当該評価値が閾値以上である場合に合焦位置が正しいとの評価結果を出力し、当該評価値が閾値未満である場合に合焦位置が誤っている可能性があるとの評価結果を出力する。 The AF evaluation unit 25 evaluates the reliability of the in-focus position based on the inspection image and outputs the evaluation result. Specifically, the AF evaluation unit 25 calculates an evaluation value indicating the reliability of the in-focus position by performing image processing registered in advance on the inspection image, and compares the calculated evaluation value with the threshold value. By doing so, the reliability of the in-focus position is evaluated. The AF evaluation unit 25 calculates, for example, an evaluation value that increases as the reliability increases, outputs an evaluation result that the in-focus position is correct when the evaluation value is equal to or higher than the threshold value, and the evaluation value is less than the threshold value. If, the evaluation result that the focusing position may be incorrect is output.

判定部26は、検査部24から出力された検査結果とAF評価部25から出力された評価結果とに基づいて、ワークWの総合判定を行なう。例えば、判定部26は、傷なしを示す検査結果と、合焦位置が正しいことを示す評価結果を受けた場合に、ワークWが良品であると判定する。判定部26は、傷ありを示す検査結果と、合焦位置が正しいことを示す評価結果を受けた場合に、ワークWが不良品であると判定する。さらに、判定部26は、合焦位置が誤っている可能性があることを示す評価結果を受けた場合に、合焦位置の誤りにより精度良く検査できていない可能性があると判定する。 The determination unit 26 makes a comprehensive determination of the work W based on the inspection result output from the inspection unit 24 and the evaluation result output from the AF evaluation unit 25. For example, the determination unit 26 determines that the work W is a non-defective product when it receives an inspection result indicating that there is no scratch and an evaluation result indicating that the in-focus position is correct. The determination unit 26 determines that the work W is a defective product when it receives an inspection result indicating that there is a scratch and an evaluation result indicating that the focusing position is correct. Further, when the determination unit 26 receives the evaluation result indicating that the focusing position may be incorrect, it determines that the inspection may not be performed accurately due to the error in the focusing position.

出力部27は、判定部26による判定結果を出力する。例えば、出力部27は、表示装置50に判定結果を表示させる。出力部27は、検査結果および評価結果も表示装置50に表示させてもよい。 The output unit 27 outputs the determination result by the determination unit 26. For example, the output unit 27 causes the display device 50 to display the determination result. The output unit 27 may also display the inspection result and the evaluation result on the display device 50.

記憶部230は、各種のデータ、プログラム等を記憶する。例えば、記憶部230は、AF制御部23によって特定された検査画像データ、および所定の処理が施された検査画像データを保存する。記憶部230は、検査部24による検査結果、AF評価部25による評価結果、および判定部26による判定結果を保存してもよい。 The storage unit 230 stores various data, programs, and the like. For example, the storage unit 230 stores the inspection image data specified by the AF control unit 23 and the inspection image data subjected to predetermined processing. The storage unit 230 may store the inspection result by the inspection unit 24, the evaluation result by the AF evaluation unit 25, and the determination result by the determination unit 26.

本実施の形態に係る検査システム1は、合焦位置の探索に関するオートフォーカス処理を実行するオートフォーカス処理部として、レンズ制御部16と算出部22とAF制御部23とAF評価部25とを備える。本実施の形態では、ワークWの品種および検査対象箇所の少なくとも一方に応じて、当該オートフォーカス処理の条件が切り替えられる。 The inspection system 1 according to the present embodiment includes a lens control unit 16, a calculation unit 22, an AF control unit 23, and an AF evaluation unit 25 as an autofocus processing unit that executes autofocus processing related to the search for the in-focus position. .. In the present embodiment, the conditions of the autofocus process are switched according to at least one of the work W type and the inspection target portion.

記憶部230は、ワークWの品種および検査対象箇所を識別する識別情報と、オートフォーカス処理の条件を示す条件データとを対応付けた条件テーブル232を記憶する。 The storage unit 230 stores the condition table 232 in which the identification information for identifying the type of the work W and the inspection target location and the condition data indicating the conditions of the autofocus process are associated with each other.

条件作成部28は、記憶部230が記憶する条件テーブル232を作成する。条件作成部28は、ワークWの品種および検査対象箇所の少なくとも一方ごとに条件データを作成し、作成した条件データとワークWの品種および検査対象箇所を識別する識別情報とを対応付けた条件テーブル232を記憶部230に格納する。 The condition creation unit 28 creates a condition table 232 to be stored in the storage unit 230. The condition creation unit 28 creates condition data for at least one of the work W type and the inspection target location, and associates the created condition data with the identification information for identifying the work W variety and the inspection target location. The 232 is stored in the storage unit 230.

設定部29は、ワークWの品種および検査対象箇所に対応する条件データを条件テーブル232から読み出し、読み出した条件データで示される条件をオートフォーカス処理の実行条件として設定する。オートフォーカス処理部として動作するレンズ制御部16、算出部22、AF制御部23およびAF評価部25の少なくとも1つは、設定部29によって設定された条件に従った処理を実行する。 The setting unit 29 reads the condition data corresponding to the product type of the work W and the inspection target portion from the condition table 232, and sets the condition indicated by the read condition data as the execution condition of the autofocus process. At least one of the lens control unit 16, the calculation unit 22, the AF control unit 23, and the AF evaluation unit 25 that operate as the autofocus processing unit executes processing according to the conditions set by the setting unit 29.

本実施の形態によれば、ワークWの品種および検査対象箇所に応じた条件データに従ってオートフォーカス処理が実行される。そのため、ワークWの品種および検査対象箇所に応じて、焦点位置を容易に調節することができる。さらに、オートフォーカス処理によってワークWに合焦する焦点位置が自動的に探索されるため、ワークWに合焦した画像を得ることができる。 According to this embodiment, the autofocus process is executed according to the condition data according to the type of the work W and the inspection target location. Therefore, the focal position can be easily adjusted according to the type of the work W and the inspection target location. Further, since the focus position focused on the work W is automatically searched by the autofocus process, an image focused on the work W can be obtained.

§2 具体例
<A.レンズモジュールの構成例>
図3は、合焦位置の探索方法を説明するための模式図である。説明を簡単にするため、図3には、レンズモジュール12のうちの1枚のレンズのみを示している。
§2 Specific example <A. Lens module configuration example>
FIG. 3 is a schematic diagram for explaining a method of searching for a focus position. For simplicity of explanation, FIG. 3 shows only one lens of the lens module 12.

図3に示すように、レンズモジュール12の主点Oから対象面(ワークWにおける検査対象箇所の表面)までの距離をaとし、レンズモジュール12の主点Oから撮像面13aまでの距離をbとし、レンズモジュール12の主点Oからレンズモジュール12の焦点位置(後側焦点位置)Fまでの距離(焦点距離)をfとする。ワークWの検査対象箇所の像が撮像面13aの位置で結ばれる場合に、以下の式(1)が成立する。
1/a+1/b=1/f・・・(1)
すなわち、式(1)が成り立つときに、ワークWの検査対象箇所の表面に合焦した画像を撮像することができる。
As shown in FIG. 3, the distance from the principal point O of the lens module 12 to the target surface (the surface of the inspection target portion in the work W) is a, and the distance from the principal point O of the lens module 12 to the imaging surface 13a is b. Let f be the distance (focal length) from the principal point O of the lens module 12 to the focal position (rear focal length) F of the lens module 12. When the image of the inspection target portion of the work W is connected at the position of the image pickup surface 13a, the following equation (1) is established.
1 / a + 1 / b = 1 / f ... (1)
That is, when the equation (1) holds, an image focused on the surface of the inspection target portion of the work W can be captured.

ワークWの検査対象箇所の高さの個体差に応じて、撮像面13aと検査対象箇所との距離が変化し得る。撮像面13aと検査対象箇所との距離が変化した場合であっても検査対象箇所に合焦した画像を得るために、レンズモジュール12の焦点位置Fが調節される。レンズモジュール12の焦点位置Fを調節する方法には、以下の方法(A)および方法(B)がある。 The distance between the image pickup surface 13a and the inspection target portion may change according to the individual difference in the height of the inspection target portion of the work W. Even when the distance between the image pickup surface 13a and the inspection target portion changes, the focal position F of the lens module 12 is adjusted in order to obtain an image focused on the inspection target portion. There are the following methods (A) and (B) as methods for adjusting the focal position F of the lens module 12.

方法(A)は、レンズモジュール12を構成する少なくとも1つのレンズ(例えばレンズ12a)を光軸方向に平行移動させる方法である。方法(A)によれば、レンズモジュール12の主点Oが光軸方向に移動するとともに、焦点位置Fが変化する。その結果、距離bが変化する。式(1)を満たす距離bに対応する焦点位置Fが合焦位置として探索される。 The method (A) is a method of translating at least one lens (for example, the lens 12a) constituting the lens module 12 in the optical axis direction. According to the method (A), the principal point O of the lens module 12 moves in the optical axis direction, and the focal position F changes. As a result, the distance b changes. The focal position F corresponding to the distance b satisfying the equation (1) is searched for as the in-focus position.

方法(B)は、レンズモジュール12を構成する少なくとも1つのレンズ(例えばレンズ12a)の屈折方向を変化させる方法である。方法(B)によれば、レンズモジュール12の焦点距離fが変化することに伴い、焦点位置Fが変化する。式(1)を満たす焦点距離fに対応する焦点位置Fが合焦位置として探索される。 The method (B) is a method of changing the refraction direction of at least one lens (for example, the lens 12a) constituting the lens module 12. According to the method (B), the focal position F changes as the focal length f of the lens module 12 changes. The focal length F corresponding to the focal length f satisfying the equation (1) is searched for as the in-focus position.

レンズモジュール12の焦点位置Fを変化させるためのレンズ12aの構成は特に限定されない。以下に、レンズ12aの構成の例を説明する。 The configuration of the lens 12a for changing the focal position F of the lens module 12 is not particularly limited. An example of the configuration of the lens 12a will be described below.

図4は、焦点位置が可変のレンズモジュール12の構成の一例を示す図である。なお、図4に示す例では、レンズモジュール12を構成するレンズ12aを平行移動させる。ただし、レンズモジュール12を構成する少なくとも1つのレンズ(レンズ12a、レンズ群12bおよびレンズ12cのうちの少なくとも1つのレンズ)を平行移動させてもよい。 FIG. 4 is a diagram showing an example of the configuration of the lens module 12 having a variable focal position. In the example shown in FIG. 4, the lens 12a constituting the lens module 12 is translated. However, at least one lens (at least one lens of the lens 12a, the lens group 12b, and the lens 12c) constituting the lens module 12 may be translated.

図4に示す構成のレンズ12aを用いることにより、上記の方法(A)に従って、レンズモジュール12の焦点位置Fが変化する。すなわち、図4に示した構成では、フォーカス調節部12eは、レンズ12aを光軸方向に沿って移動させる。レンズ12aの位置を移動させることによって、レンズモジュール12の焦点位置Fが変化する。焦点位置Fが取り得る可動範囲Raは、レンズ12aの可動範囲Rbに対応する。 By using the lens 12a having the configuration shown in FIG. 4, the focal position F of the lens module 12 changes according to the above method (A). That is, in the configuration shown in FIG. 4, the focus adjusting unit 12e moves the lens 12a along the optical axis direction. By moving the position of the lens 12a, the focal position F of the lens module 12 changes. The movable range Ra that the focal position F can take corresponds to the movable range Rb of the lens 12a.

レンズ制御部16は、レンズ12aの移動量を制御することにより、レンズモジュール12の焦点位置Fを変化させる。 The lens control unit 16 changes the focal position F of the lens module 12 by controlling the amount of movement of the lens 12a.

算出部22は、各焦点位置Fの撮像画像データから合焦度を算出する。AF制御部23は、合焦度がピークとなるレンズ12aの移動量に対応する焦点位置Fを合焦位置として決定する。 The calculation unit 22 calculates the degree of focus from the captured image data of each focal position F. The AF control unit 23 determines the focal position F corresponding to the amount of movement of the lens 12a at which the in-focus degree peaks as the in-focus position.

図4では、1枚のレンズ12aの例が示されている。通常では、フォーカス調節用のレンズは複数枚の組レンズで構成されることが多い。しかしながら、組レンズにおいても、組レンズを構成する少なくとも1枚のレンズの移動量を制御することにより、レンズモジュール12の焦点位置Fを変化させることができる。 FIG. 4 shows an example of one lens 12a. Usually, the lens for focus adjustment is often composed of a plurality of sets of lenses. However, also in the assembled lens, the focal position F of the lens module 12 can be changed by controlling the amount of movement of at least one lens constituting the assembled lens.

図5は、焦点位置が可変のレンズモジュール12の構成の別の例を示す図である。図5に示す構成のレンズ12aを用いることにより、上記の方法(B)に従って、レンズモジュール12の焦点位置Fが変化する。 FIG. 5 is a diagram showing another example of the configuration of the lens module 12 having a variable focal position. By using the lens 12a having the configuration shown in FIG. 5, the focal position F of the lens module 12 changes according to the above method (B).

図5に示すレンズ12aは液体レンズである。レンズ12aは、透光性容器70と、電極73a,73b,74a,74bと、絶縁体75a,75bと、絶縁層76a,76bとを含む。 The lens 12a shown in FIG. 5 is a liquid lens. The lens 12a includes a translucent container 70, electrodes 73a, 73b, 74a, 74b, insulators 75a, 75b, and insulating layers 76a, 76b.

透光性容器70内の密閉空間には、水などの導電性液体71と、油などの絶縁性液体72とが充填される。導電性液体71と絶縁性液体72とは混合せず、互いに屈折率が異なる。 The closed space in the translucent container 70 is filled with a conductive liquid 71 such as water and an insulating liquid 72 such as oil. The conductive liquid 71 and the insulating liquid 72 do not mix and have different refractive indexes from each other.

電極73a,73bは、絶縁体75a,75bと透光性容器70との間にそれぞれ固定され、導電性液体71中に位置する。 The electrodes 73a and 73b are fixed between the insulators 75a and 75b and the translucent container 70, respectively, and are located in the conductive liquid 71.

電極74a,74bは、導電性液体71と絶縁性液体72との界面の端部付近に配置される。電極74aと導電性液体71および絶縁性液体72との間には絶縁層76aが介在する。電極74bと導電性液体71および絶縁性液体72との間には絶縁層76bが介在する。電極74aと電極74bとは、レンズ12aの光軸に対して対称な位置に配置される。 The electrodes 74a and 74b are arranged near the end of the interface between the conductive liquid 71 and the insulating liquid 72. An insulating layer 76a is interposed between the electrode 74a and the conductive liquid 71 and the insulating liquid 72. An insulating layer 76b is interposed between the electrode 74b and the conductive liquid 71 and the insulating liquid 72. The electrodes 74a and 74b are arranged at positions symmetrical with respect to the optical axis of the lens 12a.

図5に示す構成において、フォーカス調節部12eは、電圧源12e1と、電圧源12e2とを含む。電圧源12e1は、電極74aと電極73aとの間に電圧Vaを印加する。電圧源12e2は、電極74bと電極73bとの間に電圧Vbを印加する。 In the configuration shown in FIG. 5, the focus adjusting unit 12e includes a voltage source 12e1 and a voltage source 12e2. The voltage source 12e1 applies a voltage Va between the electrodes 74a and 73a. The voltage source 12e2 applies a voltage Vb between the electrodes 74b and 73b.

電極74aと電極73aとの間に電圧Vaを印加すると、導電性液体71は、電極74aに引っ張られる。同様に、電極74bと電極73bとの間に電圧Vbを印加すると、導電性液体71は、電極74bに引っ張られる。これにより、導電性液体71と絶縁性液体72との界面の曲率が変化する。導電性液体71と絶縁性液体72との屈折率が異なるため、導電性液体71と絶縁性液体72との界面の曲率が変化することにより、レンズモジュール12の焦点位置Fが変化する。 When a voltage Va is applied between the electrode 74a and the electrode 73a, the conductive liquid 71 is pulled by the electrode 74a. Similarly, when a voltage Vb is applied between the electrode 74b and the electrode 73b, the conductive liquid 71 is pulled by the electrode 74b. As a result, the curvature of the interface between the conductive liquid 71 and the insulating liquid 72 changes. Since the refractive indexes of the conductive liquid 71 and the insulating liquid 72 are different, the focal position F of the lens module 12 changes due to the change in the curvature of the interface between the conductive liquid 71 and the insulating liquid 72.

導電性液体71と絶縁性液体72との界面の曲率は、電圧Va,Vbの大きさに依存する。そのため、レンズ制御部16は、電圧Va,Vbの大きさを制御することにより、レンズモジュール12の焦点位置Fを変化させる。焦点位置Fが取り得る可動範囲Raは、電圧Va,Vbが取り得る電圧範囲によって定まる。 The curvature of the interface between the conductive liquid 71 and the insulating liquid 72 depends on the magnitudes of the voltages Va and Vb. Therefore, the lens control unit 16 changes the focal position F of the lens module 12 by controlling the magnitudes of the voltages Va and Vb. The movable range Ra that the focal position F can take is determined by the voltage range that the voltages Va and Vb can take.

算出部22は、各焦点位置Fの撮像画像データから合焦度を算出する。AF制御部23は、合焦度がピークとなる電圧Va,Vbの大きさに対応する焦点位置Fを合焦位置として決定する。 The calculation unit 22 calculates the degree of focus from the captured image data of each focal position F. The AF control unit 23 determines the focal position F corresponding to the magnitude of the voltages Va and Vb at which the in-focus degree peaks as the in-focus position.

通常は、電圧Vaと電圧Vbとは同値に制御される。これにより、導電性液体71と絶縁性液体72との界面は、光軸に対して対称に変化する。ただし、電圧Vaと電圧Vbとが異なる値に制御されてもよい。これにより、導電性液体71と絶縁性液体72との界面が光軸に対して非対称となり、撮像装置10の撮像視野の向きを変更することができる。 Normally, the voltage Va and the voltage Vb are controlled to the same value. As a result, the interface between the conductive liquid 71 and the insulating liquid 72 changes symmetrically with respect to the optical axis. However, the voltage Va and the voltage Vb may be controlled to different values. As a result, the interface between the conductive liquid 71 and the insulating liquid 72 becomes asymmetric with respect to the optical axis, and the direction of the image pickup field of view of the image pickup apparatus 10 can be changed.

さらに液体レンズと固体レンズとを組み合わせてもよい。この場合、上記の方法(A)および方法(B)の両方を用いてレンズモジュール12の焦点位置Fを変化させ、式(1)を満たすときの焦点位置Fが合焦位置として決定される。 Further, a liquid lens and a solid lens may be combined. In this case, the focal position F of the lens module 12 is changed by using both the above method (A) and the method (B), and the focal position F when the equation (1) is satisfied is determined as the in-focus position.

<B.合焦位置の探索方法>
AF制御部23による合焦位置の探索方法としては、山登り法と全スキャン法とがあり、いずれを用いてもよい。
<B. How to search for the in-focus position>
As a method for searching the in-focus position by the AF control unit 23, there are a mountain climbing method and a full scan method, and either of them may be used.

山登り法とは、レンズモジュール12の焦点位置を設定された探索範囲内で変化させながら、合焦度が極大となる焦点位置を見つけた時点で探索を終了し、合焦度が極大となる焦点位置を合焦位置として決定する方法である。具体的には、山登り法は、探索開始時の焦点位置における合焦度と隣の焦点位置における合焦度との大小関係に基づいて、合焦度が大きくなる焦点位置の方向を探索方向として決定する。さらに、山登り法は、探索方向に焦点位置を変化させながら、先の焦点位置での合焦度と次の焦点位置での合焦度との差を順次演算し、この差が正からゼロまたは負に変化した時点の焦点位置を合焦位置として決定する。 In the hill climbing method, while changing the focal position of the lens module 12 within the set search range, the search ends when the focal position where the in-focus degree is maximized is found, and the focal point where the in-focus degree becomes maximum is found. This is a method of determining the position as the in-focus position. Specifically, in the hill climbing method, the direction of the focal position where the degree of focus increases is set as the search direction based on the magnitude relationship between the degree of focus at the focal position at the start of the search and the degree of focus at the adjacent focal position. decide. In addition, the hill climbing method sequentially calculates the difference between the degree of focus at the previous focal position and the degree of focus at the next focal position while changing the focal position in the search direction, and this difference is positive to zero or The focal position at the time of a negative change is determined as the in-focus position.

全スキャン法とは、レンズモジュール12の焦点位置を設定された探索範囲の全域で変化させ、各焦点位置での合焦度を取得し、合焦度が最大となる焦点位置を合焦位置として決定する方法である。全スキャン法には、粗い第1探索処理を行なった後に細かい第2探索処理を行なう方法も含む。第1探索処理は、粗いピッチ間隔で焦点位置を探索範囲の全域で変化させ、合焦度が最大となる焦点位置を探索する処理である。第2探索処理は、第1探索処理で探索された焦点位置を含む局所範囲の全域において細かいピッチ間隔で焦点位置を変化させ、合焦度が最大となる焦点位置を合焦位置として探索する処理である。 In the full scan method, the focal position of the lens module 12 is changed over the entire set search range, the in-focus degree at each focal position is acquired, and the focal position where the in-focus degree is maximized is set as the in-focus position. How to decide. The full scan method also includes a method of performing a fine second search process after performing a coarse first search process. The first search process is a process of searching the focal position where the degree of focus is maximized by changing the focal position over the entire search range at coarse pitch intervals. The second search process is a process of changing the focal position at fine pitch intervals over the entire range including the focal position searched by the first search process, and searching for the focal position having the maximum focusing degree as the focusing position. Is.

山登り法は、全スキャン法に比べて探索時間が短いというメリットがある。ただし、探索された合焦位置は、合焦度が極大となる位置ではあるものの、探索範囲内で合焦度が最大となる位置とは限らない。 The mountain climbing method has the advantage that the search time is shorter than the full scan method. However, although the searched focus position is the position where the focus degree is maximum, it is not always the position where the focus degree is maximum within the search range.

一方、全スキャン法は、探索範囲内で合焦度が最大となる合焦位置を確実に探索できるものの、探索時間が長くなる。 On the other hand, the full scan method can reliably search for the in-focus position where the degree of focus is maximum within the search range, but the search time is long.

山登り法では、AF制御部23は、合焦度が極大を示した撮像画像データを検査画像データとして特定すればよい。 In the mountain climbing method, the AF control unit 23 may specify the captured image data having the maximum focusing degree as the inspection image data.

全スキャン法では、AF制御部23は、各焦点位置の撮像画像データを記憶しておき、記憶している撮像画像データの中から、合焦度が最大となる焦点位置の撮像画像データを検査画像データとして特定する。もしくは、AF制御部23は、焦点位置を合焦位置に調節して撮像する指令を出力するように指令生成部21に指示し、当該指令に応じて撮像装置10から受けた撮像画像データを検査画像データとして特定してもよい。 In the full scan method, the AF control unit 23 stores the captured image data of each focal position, and inspects the captured image data of the focal position having the maximum focusing degree from the stored captured image data. Specify as image data. Alternatively, the AF control unit 23 instructs the command generation unit 21 to adjust the focal position to the in-focus position and output a command for imaging, and inspects the captured image data received from the imaging device 10 in response to the command. It may be specified as image data.

<C.画像処理装置のハードウェア構成>
図6は、実施の形態に係る画像処理装置のハードウェア構成の一例を示すブロック図である。図6に示す例の画像処理装置20は、演算処理部であるCPU(Central Processing Unit)210と、記憶部としてのメインメモリ234およびハードディスク236と、カメラインターフェース216と、入力インターフェース218と、表示コントローラ220と、PLCインターフェース222と、通信インターフェース224と、データリーダ/ライタ226とを含む。これらの各部は、バス228を介して、互いにデータ通信可能に接続される。
<C. Image processing device hardware configuration>
FIG. 6 is a block diagram showing an example of the hardware configuration of the image processing apparatus according to the embodiment. The image processing device 20 of the example shown in FIG. 6 includes a CPU (Central Processing Unit) 210 which is an arithmetic processing unit, a main memory 234 and a hard disk 236 as a storage unit, a camera interface 216, an input interface 218, and a display controller. It includes 220, a PLC interface 222, a communication interface 224, and a data reader / writer 226. Each of these parts is connected to each other via bus 228 so as to be capable of data communication.

CPU210は、ハードディスク236に格納されたプログラム(コード)をメインメモリ234に展開して、これらを所定順序で実行することで、各種の演算を実施する。図1に示す指令生成部21、算出部22、AF制御部23、検査部24、AF評価部25、判定部26、条件作成部28および設定部29は、CPU210が制御プログラム238を実行することにより実現される。 The CPU 210 expands the programs (codes) stored in the hard disk 236 to the main memory 234 and executes them in a predetermined order to perform various operations. In the command generation unit 21, calculation unit 22, AF control unit 23, inspection unit 24, AF evaluation unit 25, determination unit 26, condition creation unit 28, and setting unit 29 shown in FIG. 1, the CPU 210 executes the control program 238. Is realized by.

メインメモリ234は、典型的には、DRAM(Dynamic Random Access Memory)などの揮発性の記憶装置であり、ハードディスク236から読み出されたプログラムに加えて、撮像装置10によって取得された画像データ、ワークデータなどを保持する。さらに、ハードディスク236には、各種設定値などが格納されてもよい。図1に示す記憶部230は、メインメモリ234およびハードディスク236によって構成される。なお、ハードディスク236に加えて、あるいは、ハードディスク236に代えて、フラッシュメモリなどの半導体記憶装置を採用してもよい。 The main memory 234 is typically a volatile storage device such as a DRAM (Dynamic Random Access Memory), and in addition to a program read from the hard disk 236, image data and work acquired by the image pickup device 10 Holds data etc. Further, various setting values and the like may be stored in the hard disk 236. The storage unit 230 shown in FIG. 1 is composed of a main memory 234 and a hard disk 236. In addition to the hard disk 236, or instead of the hard disk 236, a semiconductor storage device such as a flash memory may be adopted.

カメラインターフェース216は、CPU210と撮像装置10との間のデータ伝送を仲介する。すなわち、カメラインターフェース216は、ワークWを撮像して画像データを生成するための撮像装置10と接続される。より具体的には、カメラインターフェース216は、撮像装置10からの画像データを一時的に蓄積するための画像バッファ216aを含む。そして、カメラインターフェース216は、画像バッファ216aに所定コマ数の画像データが蓄積されると、その蓄積されたデータをメインメモリ234へ転送する。また、カメラインターフェース216は、CPU210が発生した内部コマンドに従って、撮像装置10に対して撮像指令を送る。 The camera interface 216 mediates data transmission between the CPU 210 and the image pickup device 10. That is, the camera interface 216 is connected to an image pickup device 10 for capturing an image of the work W and generating image data. More specifically, the camera interface 216 includes an image buffer 216a for temporarily storing image data from the image pickup apparatus 10. Then, when the image data of a predetermined number of frames is accumulated in the image buffer 216a, the camera interface 216 transfers the accumulated data to the main memory 234. Further, the camera interface 216 sends an image pickup command to the image pickup apparatus 10 according to an internal command generated by the CPU 210.

入力インターフェース218は、CPU210と入力装置40との間のデータ伝送を仲介する。すなわち、入力インターフェース218は、作業者が入力装置40を操作することで与えられる操作指令を受付ける。 The input interface 218 mediates data transmission between the CPU 210 and the input device 40. That is, the input interface 218 receives an operation command given by the operator operating the input device 40.

表示コントローラ220は、表示装置50と接続され、CPU210における処理の結果などをユーザに通知する。すなわち、表示コントローラ220は、表示装置50の画面を制御する。図1に示す出力部27は、表示コントローラ220によって構成される。 The display controller 220 is connected to the display device 50 and notifies the user of the result of processing in the CPU 210 and the like. That is, the display controller 220 controls the screen of the display device 50. The output unit 27 shown in FIG. 1 is configured by a display controller 220.

PLCインターフェース222は、CPU210とPLC30との間のデータ伝送を仲介する。より具体的には、PLCインターフェース222は、PLC30からの制御指令をCPU210へ伝送する。 The PLC interface 222 mediates data transmission between the CPU 210 and the PLC 30. More specifically, the PLC interface 222 transmits a control command from the PLC 30 to the CPU 210.

通信インターフェース224は、CPU210とコンソール(あるいは、パーソナルコンピュータやサーバ装置)などとの間のデータ伝送を仲介する。通信インターフェース224は、典型的には、イーサネット(登録商標)やUSB(Universal Serial Bus)などからなる。なお、後述するように、メモリカード206に格納されたプログラムを画像処理装置20にインストールする形態に代えて、通信インターフェース224を介して、配信サーバなどからダウンロードしたプログラムを画像処理装置20にインストールしてもよい。 The communication interface 224 mediates data transmission between the CPU 210 and a console (or a personal computer or server device). The communication interface 224 typically comprises Ethernet (registered trademark), USB (Universal Serial Bus), or the like. As will be described later, instead of installing the program stored in the memory card 206 in the image processing device 20, the program downloaded from the distribution server or the like is installed in the image processing device 20 via the communication interface 224. You may.

データリーダ/ライタ226は、CPU210と記録媒体であるメモリカード206との間のデータ伝送を仲介する。すなわち、メモリカード206には、画像処理装置20で実行されるプログラムなどが格納された状態で流通し、データリーダ/ライタ226は、このメモリカード206からプログラムを読出す。また、データリーダ/ライタ226は、CPU210の内部指令に応答して、撮像装置10によって取得された画像データおよび/または画像処理装置20における処理結果などをメモリカード206へ書込む。なお、メモリカード206は、SD(Secure Digital)などの汎用的な半導体記憶デバイスや、フレキシブルディスク(Flexible Disk)などの磁気記憶媒体や、CD-ROM(Compact Disk Read Only Memory)などの光学記憶媒体等からなる。 The data reader / writer 226 mediates data transmission between the CPU 210 and the memory card 206, which is a recording medium. That is, the memory card 206 is distributed in a state in which a program or the like executed by the image processing device 20 is stored, and the data reader / writer 226 reads the program from the memory card 206. Further, the data reader / writer 226 writes the image data acquired by the image pickup apparatus 10 and / or the processing result in the image processing apparatus 20 to the memory card 206 in response to the internal command of the CPU 210. The memory card 206 is a general-purpose semiconductor storage device such as SD (Secure Digital), a magnetic storage medium such as a flexible disk, or an optical storage medium such as a CD-ROM (Compact Disk Read Only Memory). And so on.

<D.ワークの例>
図7は、撮像装置によるワークWの撮像を模式的に示した図である。図7に示す例のワークWは、透明体(ガラスなど)である。透明体のワークWであるため、ワークWのおもて面および裏面のいずれかに合焦させることができる。ワークWのおもて面に合焦した検査画像データを取得することにより、ワークWのおもて面を検査することができる。ワークWの裏面に合焦した検査画像データを取得することにより、ワークWの裏面を検査することができる。
<D. Work example>
FIG. 7 is a diagram schematically showing the imaging of the work W by the imaging device. The work W of the example shown in FIG. 7 is a transparent body (glass or the like). Since it is a transparent work W, it can be focused on either the front surface or the back surface of the work W. By acquiring the inspection image data focused on the front surface of the work W, the front surface of the work W can be inspected. By acquiring the inspection image data focused on the back surface of the work W, the back surface of the work W can be inspected.

ただし、ワークWのおもて面を検査したいにもかかわらず、ワークWの裏面に合焦した検査画像データが得られると、正しく検査することができない。同様に、ワークWの裏面を検査したいにもかかわらず、ワークWのおもて面に合焦した検査画像データが得られると、正しく検査ができない。このような問題を解決するために、撮像装置10は、レンズモジュール12の焦点位置の可動範囲Ra(図4,図5参照)の全てから合焦位置を探索するのではなく、可動範囲Raの一部である探索範囲の中から合焦位置を探索することが好ましい。例えば、ワークWのおもて面を検査したい場合には、可動範囲Raのうち、ワークWの裏面に合焦するような焦点位置の範囲を除く探索範囲の中から合焦位置が探索される。これにより、ワークWの裏面に合焦した検査画像データが取得されることを回避できる。 However, even though the front surface of the work W is desired to be inspected, if the inspection image data focused on the back surface of the work W is obtained, the inspection cannot be performed correctly. Similarly, even though the back surface of the work W is desired to be inspected, if the inspection image data focused on the front surface of the work W is obtained, the inspection cannot be performed correctly. In order to solve such a problem, the image pickup apparatus 10 does not search for the in-focus position from all of the movable range Ra (see FIGS. 4 and 5) of the focal position of the lens module 12, but rather the movable range Ra. It is preferable to search the in-focus position from a part of the search range. For example, when it is desired to inspect the front surface of the work W, the in-focus position is searched from the search range excluding the range of the focal position that focuses on the back surface of the work W in the movable range Ra. .. As a result, it is possible to avoid acquiring the inspection image data focused on the back surface of the work W.

図8は、相対的にサイズの大きい品種のワークW1の像を含む画像を示す図である。図9は、相対的にサイズの小さい品種のワークW2の像を含む画像を示す図である。 FIG. 8 is a diagram showing an image including an image of a work W1 of a relatively large variety. FIG. 9 is a diagram showing an image including an image of a work W2 of a relatively small variety.

図8,9に示されるように、サイズの異なる品種がある場合、画像65中のワークのサイズが品種ごとに異なる。図9に示す例のワークW2のように、画像65においてワークW2の背景が占める面積が大きくなると、背景部分に合焦した画像が取得される可能性がある。そのため、AF制御部23は、画像65のうちのワークW2の像を含む部分領域(以下、「合焦度算出領域A1」という)における合焦度に基づいて合焦位置を探索することが好ましい。これにより、背景部分に合焦した画像が取得される可能性を低減できる。 As shown in FIGS. 8 and 9, when there are varieties having different sizes, the size of the work in the image 65 is different for each variety. When the area occupied by the background of the work W2 in the image 65 becomes large as in the work W2 of the example shown in FIG. 9, an image in focus on the background portion may be acquired. Therefore, it is preferable that the AF control unit 23 searches for the focusing position based on the focusing degree in the partial region (hereinafter referred to as “focusing degree calculation area A1”) including the image of the work W2 in the image 65. .. This makes it possible to reduce the possibility of acquiring an image in focus on the background portion.

なお、図8に示す例のワークW1のように、画像65においてワークW1の背景が占める面積が比較的小さい場合には、画像全体の合焦度に基づいて合焦位置を探索したとしても、ワークW1に合焦した画像を取得できる。ただし、図8に示す例のワークW1であったとしても、画像65のうちのワークW1の像を含む合焦度算出領域A1における合焦度に基づいて合焦位置を探索することにより、ワークW1に合焦した画像を取得しやすくなる。 When the area occupied by the background of the work W1 in the image 65 is relatively small as in the work W1 of the example shown in FIG. 8, even if the in-focus position is searched for based on the in-focus degree of the entire image. An image focused on the work W1 can be acquired. However, even if it is the work W1 of the example shown in FIG. 8, the work is searched for the in-focus position based on the in-focus degree in the in-focus degree calculation area A1 including the image of the work W1 in the image 65. It becomes easier to acquire an image focused on W1.

<E.合焦位置の信頼性の評価方法>
次に、AF評価部25による合焦位置の信頼性の評価方法について説明する。AF評価部25は、検査画像データで示される検出画像から合焦度を算出し、算出した合焦度に基づいて合焦位置の信頼を示す評価値を算出する。合焦度は、上述したように、例えば、画像から抽出された高周波成分の積算値である。
<E. How to evaluate the reliability of the in-focus position>
Next, a method of evaluating the reliability of the in-focus position by the AF evaluation unit 25 will be described. The AF evaluation unit 25 calculates the in-focus degree from the detected image indicated by the inspection image data, and calculates an evaluation value indicating the reliability of the in-focus position based on the calculated in-focus degree. As described above, the in-focus degree is, for example, an integrated value of high-frequency components extracted from an image.

例えば、AF評価部25は、検査画像データから算出した合焦度cと、予め定められた基準合焦度dとの比(=c/d)を評価値として算出する。すなわち、AF評価部25は、評価関数f(=c/d)の変数に値を代入することにより、評価値を算出する。この場合、評価値が大きいほど、合焦位置の信頼性が高い。基準合焦度dは、基準ワークの検査対象箇所に合焦した画像から算出した合焦度であり、予め実験により算出される。 For example, the AF evaluation unit 25 calculates the ratio (= c / d) of the in-focus degree c calculated from the inspection image data to the predetermined reference in-focus degree d as an evaluation value. That is, the AF evaluation unit 25 calculates the evaluation value by substituting the value into the variable of the evaluation function f (= c / d). In this case, the larger the evaluation value, the higher the reliability of the in-focus position. The reference focusing degree d is a focusing degree calculated from an image focused on the inspection target portion of the reference work, and is calculated in advance by an experiment.

あるいは、全スキャン法に従って合焦位置が探索される場合、AF評価部25は、合焦位置の探索の際に得られる合焦度波形の第1ピークの合焦度gと第2ピークの合焦度hとの比(=g/h)を評価値として算出してもよい。すなわち、AF評価部25は、評価関数f(=g/h)の変数に値を代入することにより、評価値を算出する。合焦度波形とは、レンズモジュール12の焦点位置を変化させたときの焦点位置に対する合焦度の変化を示す波形である。第1ピークは、合焦度が最も大きいピークである。第2ピークは、合焦度が2番目に大きいピークである。 Alternatively, when the in-focus position is searched according to the full scan method, the AF evaluation unit 25 focuses on the in-focus degree g of the first peak and the in-focus degree g of the second peak obtained when searching for the in-focus position. The ratio (= g / h) to the degree of focus h may be calculated as an evaluation value. That is, the AF evaluation unit 25 calculates the evaluation value by substituting the value into the variable of the evaluation function f (= g / h). The in-focus waveform is a waveform showing a change in the in-focus degree with respect to the focal position when the focal position of the lens module 12 is changed. The first peak is the peak with the highest degree of focus. The second peak is the peak with the second highest degree of focus.

図10は、合焦度波形の一例を示す図である。図10に示す例の合焦度波形は、焦点位置F1,F2の2つのピークを含む。焦点位置F1は、ワークWの検査対象箇所に合焦するときの焦点位置である。そのため、オートフォーカス処理が正常に行なわれた場合、合焦度波形は、焦点位置F1の1つのピークのみを含む。しかしながら、何らかの原因により、焦点位置F1とは別の焦点位置にピークが生じ得る。例えば、画像中にコントラストの大きい模様が形成されたシートが映り込んだ場合に、焦点位置F1とは別の焦点位置にピークが生じる。 FIG. 10 is a diagram showing an example of a focus waveform. The focus waveform of the example shown in FIG. 10 includes two peaks at focal positions F1 and F2. The focal position F1 is the focal position when focusing on the inspection target portion of the work W. Therefore, when the autofocus process is normally performed, the focus waveform includes only one peak at the focal position F1. However, for some reason, a peak may occur at a focal position other than the focal position F1. For example, when a sheet having a high-contrast pattern is reflected in an image, a peak occurs at a focal position different from the focal position F1.

図10に示す例の合焦度波形が得られた場合、焦点位置F1とは異なる焦点位置F2が合焦位置として誤って判定され、焦点位置F2に調節されたときの画像データが検査画像データとして画像処理装置20に出力され得る。 When the in-focus degree waveform of the example shown in FIG. 10 is obtained, the focal position F2 different from the focal position F1 is erroneously determined as the in-focus position, and the image data when adjusted to the focal position F2 is the inspection image data. Can be output to the image processing device 20.

そこで、AF評価部25は、検査画像データから算出された合焦度を第1ピークの合焦度gとして取得する。さらに、AF評価部25は、合焦度が2番目に大きい第2ピークの合焦度を第2ピークの合焦度hとして取得する。AF評価部25は、合焦度g,hに基づいて評価値(=g/h)を算出する。 Therefore, the AF evaluation unit 25 acquires the in-focus degree calculated from the inspection image data as the in-focus degree g of the first peak. Further, the AF evaluation unit 25 acquires the in-focus degree of the second peak having the second largest in-focus degree as the in-focus degree h of the second peak. The AF evaluation unit 25 calculates an evaluation value (= g / h) based on the in-focus degree g and h.

なお、上記の例では、合焦位置の信頼性が高いほど大きくなる評価値が算出される。しかしながら、AF評価部25は、合焦位置の信頼性が高いほど小さくなる評価値を算出してもよい。 In the above example, the higher the reliability of the in-focus position, the larger the evaluation value is calculated. However, the AF evaluation unit 25 may calculate an evaluation value that becomes smaller as the reliability of the in-focus position becomes higher.

その他、AF評価部25は、公知の技術を用いて評価値を算出してもよい。例えば、AF評価部25は、国際公開第17/056557号(特許文献2)、特開2010-78681号公報(特許文献3)、特開平10-170817号公報(特許文献4)に記載の技術を用いて評価値を算出してもよい。 In addition, the AF evaluation unit 25 may calculate an evaluation value using a known technique. For example, the AF evaluation unit 25 describes the techniques described in International Publication No. 17/056557 (Patent Document 2), Japanese Patent Application Laid-Open No. 2010-78681 (Patent Document 3), and Japanese Patent Application Laid-Open No. 10-170817 (Patent Document 4). The evaluation value may be calculated using.

AF評価部25は、検査画像の全領域から算出した合焦度に基づいて評価値を算出してもよいし、検査画像のうちの合焦度算出領域A1(図8,9参照)から算出した合焦度に基づいて評価値を算出してもよい。 The AF evaluation unit 25 may calculate the evaluation value based on the in-focus degree calculated from the entire area of the inspection image, or calculate from the in-focus degree calculation area A1 (see FIGS. 8 and 9) in the inspection image. The evaluation value may be calculated based on the degree of focusing.

<F.条件データの作成>
<F-1.作成例1>
図7に示されるような複数の箇所に合焦する可能性があるワークWについて、ワークWの検査対象箇所に応じた探索範囲を設定することが好ましい。そのため、複数の箇所に合焦する可能性があるワークWに対して、検査対象箇所ごとに、探索範囲を指定するデータを含む条件データが作成される。
<F. Creating condition data>
<F-1. Creation example 1>
For the work W that may be in focus at a plurality of locations as shown in FIG. 7, it is preferable to set a search range according to the inspection target portion of the work W. Therefore, for the work W that may be in focus at a plurality of locations, condition data including data for designating a search range is created for each inspection target location.

条件作成部28は、探索範囲の設定を支援するための設定画面を表示装置50に表示し、入力装置40への入力に従って、ワークWの検査対象箇所ごとに探索範囲を設定する。 The condition creation unit 28 displays a setting screen for supporting the setting of the search range on the display device 50, and sets the search range for each inspection target portion of the work W according to the input to the input device 40.

図11は、合焦位置の探索範囲の設定を支援するための設定画面の一例を示す図である。図11に示す例の設定画面51は、領域52a,52bと、つまみ55,57と、OKボタン60と、キャンセルボタン61とを含む。図11に示す例の設定画面51は、レンズモジュール12が図4に示す例のレンズ12aを含む検査システム1において表示される。 FIG. 11 is a diagram showing an example of a setting screen for supporting the setting of the search range of the in-focus position. The setting screen 51 of the example shown in FIG. 11 includes areas 52a and 52b, knobs 55 and 57, an OK button 60, and a cancel button 61. The setting screen 51 of the example shown in FIG. 11 is displayed in the inspection system 1 in which the lens module 12 includes the lens 12a of the example shown in FIG.

条件作成部28は、基準ワークがステージ90上に置かれた状態において、指令生成部21に対して、焦点位置を可動範囲Raの全域で変化させるスキャン指令を撮像装置10に出力させる。スキャン指令を受けた撮像装置10のレンズ制御部16は、レンズ12aを可動範囲Rbの一方端から他方端まで所定の間隔ずつ変化させることにより、レンズモジュール12の焦点位置Fを可動範囲Raの全域で変化させる。そして、算出部22は、撮像装置10から受けた各焦点位置Fの撮像画像データに対して合焦度を算出する。 The condition creation unit 28 causes the command generation unit 21 to output a scan command for changing the focal position over the entire range of the movable range Ra to the image pickup device 10 while the reference work is placed on the stage 90. Upon receiving the scan command, the lens control unit 16 of the image pickup apparatus 10 changes the lens 12a from one end of the movable range Rb to the other end by a predetermined interval, whereby the focal position F of the lens module 12 is changed over the entire movable range Ra. Change with. Then, the calculation unit 22 calculates the in-focus degree with respect to the captured image data of each focal position F received from the image pickup device 10.

条件作成部28は、レンズモジュール12の焦点位置と合焦度との関係を示す図形である折れ線グラフ53を領域52aに表示させる。折れ線グラフ53は、可動範囲Ra全域の焦点位置と合焦度との関係を示す。折れ線グラフ53において、横軸はレンズ12aの移動量を示し、縦軸は合焦度を示す。なお、レンズモジュール12の焦点位置Fが可動範囲Raの一方端であるときのレンズ12aの移動量は0であり、レンズモジュール12の焦点位置Fが可動範囲Raの他方端であるときのレンズ12aの移動量は100である。 The condition creation unit 28 displays a line graph 53, which is a figure showing the relationship between the focal position of the lens module 12 and the degree of focus, in the area 52a. The line graph 53 shows the relationship between the focal position and the degree of focus in the entire movable range Ra. In the line graph 53, the horizontal axis indicates the amount of movement of the lens 12a, and the vertical axis indicates the degree of focus. The amount of movement of the lens 12a when the focal position F of the lens module 12 is one end of the movable range Ra is 0, and the lens 12a when the focal position F of the lens module 12 is the other end of the movable range Ra. The amount of movement of is 100.

折れ線グラフ53上には、合焦位置の探索範囲の中心に対応する点56aが表示される。さらに、領域52bには、点56aから横軸に下した垂線56bが表示される。点56aのデフォルト位置は予め設定される。点56aのデフォルト位置は、たとえば、レンズ12aの移動量が0の位置である。 On the line graph 53, a point 56a corresponding to the center of the search range of the in-focus position is displayed. Further, in the region 52b, a perpendicular line 56b descending from the point 56a on the horizontal axis is displayed. The default position of point 56a is preset. The default position of the point 56a is, for example, a position where the amount of movement of the lens 12a is 0.

さらに、折れ線グラフ53には、探索範囲の下限に対応するレンズ12aの移動量を示す点線58と、探索範囲の上限に対応するレンズ12aの移動量を示す点線59とが重畳して表示される。 Further, on the line graph 53, a dotted line 58 indicating the amount of movement of the lens 12a corresponding to the lower limit of the search range and a dotted line 59 indicating the amount of movement of the lens 12a corresponding to the upper limit of the search range are superimposed and displayed. ..

条件作成部28は、点56aの移動量に対応する撮像画像データで示される撮像画像54を領域52bに表示させる。条件作成部28は、点56aの位置が変更されるたびに、領域52bに表示される撮像画像を切り替える。 The condition creation unit 28 displays the captured image 54 represented by the captured image data corresponding to the movement amount of the point 56a in the region 52b. The condition creation unit 28 switches the captured image displayed in the area 52b each time the position of the point 56a is changed.

つまみ55は、点56aの現在位置を示す。設定部29は、つまみ55に対する操作に応じて、点56a、垂線56bおよび点線58,59の位置を更新する。作業者は、入力装置40を用いてつまみ55を操作することにより、探索範囲の中心に対応する点56aを折れ線グラフ53上の任意の位置に変更することができる。 The knob 55 indicates the current position of the point 56a. The setting unit 29 updates the positions of the points 56a, the perpendicular lines 56b, and the dotted lines 58, 59 in response to the operation on the knob 55. The operator can change the point 56a corresponding to the center of the search range to an arbitrary position on the line graph 53 by operating the knob 55 using the input device 40.

つまみ57は、合焦位置の探索範囲の幅を調整するためのものである。探索範囲の幅とは、探索範囲の下限に対応するレンズ12aの移動量と、探索範囲の上限に対応するレンズ12aの移動量との差分である。具体的には、つまみ57で示される値「±d」(dは0~100)の「d」は、点56aに対応する移動量と探索範囲の下限に対応する移動量との差を示すとともに、探索範囲の上限に対応する移動量と点56aに対応する移動量との差を示す。つまり、つまみ57で示される値「±d」の「d」の2倍が探索範囲の幅となる。条件作成部28は、つまみ57の操作に応じて、点線58,59の位置を更新する。作業者は、入力装置40を用いてつまみ57を操作することにより、点56aを中心とする探索範囲の幅を変更することができる。 The knob 57 is for adjusting the width of the search range of the in-focus position. The width of the search range is the difference between the amount of movement of the lens 12a corresponding to the lower limit of the search range and the amount of movement of the lens 12a corresponding to the upper limit of the search range. Specifically, the “d” of the value “± d” (d is 0 to 100) indicated by the knob 57 indicates the difference between the movement amount corresponding to the point 56a and the movement amount corresponding to the lower limit of the search range. In addition, the difference between the movement amount corresponding to the upper limit of the search range and the movement amount corresponding to the point 56a is shown. That is, twice the "d" of the value "± d" indicated by the knob 57 is the width of the search range. The condition creation unit 28 updates the positions of the dotted lines 58 and 59 in response to the operation of the knob 57. The operator can change the width of the search range centered on the point 56a by operating the knob 57 using the input device 40.

OKボタン60は、現在設定されている探索範囲を登録するためのボタンである。キャンセルボタン61は、現在設定されている探索範囲を破棄するためのボタンである。 The OK button 60 is a button for registering the currently set search range. The cancel button 61 is a button for discarding the currently set search range.

条件作成部28は、OKボタン60が操作されると、ワークWの品種および検査対象箇所を識別するための識別情報の入力を促し、入力装置40から当該識別情報を取得する。条件作成部28は、取得した識別情報と、現在設定されている探索範囲を指定するデータを含む条件データとを対応付けた条件テーブル232を記憶部230に格納する。 When the OK button 60 is operated, the condition creation unit 28 prompts the input of the identification information for identifying the type of the work W and the inspection target portion, and acquires the identification information from the input device 40. The condition creation unit 28 stores the condition table 232 in which the acquired identification information and the condition data including the data specifying the search range currently set are associated with each other in the storage unit 230.

設定部29は、検査対象となる品種および検査対象箇所を識別する識別情報の入力を受け付け、受け付けた識別情報に対応する条件データを読み出し、読み出した条件データで示される条件をオートフォーカス処理の実行条件として設定する。指令生成部21は、設定部29によって設定された実行条件に含まれる探索範囲で焦点位置Fを変化させる指令を撮像装置10に出力する。レンズ制御部16は、設定された探索範囲内で焦点位置Fを変化させる。そして、AF制御部23は、指令された探索範囲から合焦位置を探索する。 The setting unit 29 accepts the input of the identification information for identifying the product to be inspected and the inspection target location, reads the condition data corresponding to the received identification information, and executes the autofocus process for the condition indicated by the read condition data. Set as a condition. The command generation unit 21 outputs a command for changing the focal position F within the search range included in the execution conditions set by the setting unit 29 to the image pickup apparatus 10. The lens control unit 16 changes the focal position F within the set search range. Then, the AF control unit 23 searches for the in-focus position from the commanded search range.

<F-2.作成例2>
上述したように、AF制御部23による合焦位置の探索方法としては、山登り法と全スキャン法とがある。条件作成部28は、ワークWの品種および検査対象箇所ごとに、合焦位置の探索方法を設定してもよい。条件作成部28は、ワークWの品種および検査対象箇所を識別するための識別情報と、合焦位置の探索方法(山登り法および全スキャン法のいずれか)との入力を促す画面を表示装置50に表示し、入力装置40への入力に従って、探索方法を設定すればよい。
<F-2. Creation example 2>
As described above, there are a mountain climbing method and a full scan method as a method for searching the in-focus position by the AF control unit 23. The condition creation unit 28 may set a method for searching the in-focus position for each type of work W and the inspection target location. The condition creation unit 28 displays a screen for prompting input of identification information for identifying the type of work W and the inspection target location and a method for searching the in-focus position (either a mountain climbing method or a full scanning method). The search method may be set according to the input to the input device 40.

山登り法では、指定された範囲の中央の焦点位置から探索を開始することが好ましい。一方、全スキャン法では、指定された範囲の一方端の焦点位置から探索を開始することが好ましい。これらにより、合焦位置を効率的に探索できる。 In the hill climbing method, it is preferable to start the search from the focal position in the center of the specified range. On the other hand, in the full scan method, it is preferable to start the search from the focal position at one end of the specified range. These make it possible to efficiently search for the in-focus position.

そこで、条件作成部28は、探索方法として山登り法が指定された場合、探索範囲の中央の焦点位置を、合焦位置の探索開始時の焦点位置(以下、「初期位置」という)として決定する。条件作成部28は、探索方法として全スキャン法が指定された場合、探索範囲の一方端の焦点位置を初期位置として決定する。そして、条件作成部28は、探索方法とともに決定した初期位置を指定するデータを含む条件データを作成する。条件作成部28は、ワークWの品種および検査対象箇所を識別するための識別情報と作成した条件データとを対応付けた条件テーブル232を記憶部230に格納する。 Therefore, when the mountain climbing method is specified as the search method, the condition creation unit 28 determines the focal position at the center of the search range as the focal position at the start of the search for the in-focus position (hereinafter referred to as "initial position"). .. When the full scan method is specified as the search method, the condition creation unit 28 determines the focal position at one end of the search range as the initial position. Then, the condition creation unit 28 creates condition data including data for designating the initial position determined together with the search method. The condition creation unit 28 stores the condition table 232 in which the identification information for identifying the type of the work W and the inspection target location and the created condition data are associated with each other in the storage unit 230.

設定部29は、検査対象となる品種および検査対象箇所を識別する識別情報の入力を受け付け、受け付けた識別情報に対応する条件データを読み出し、読み出した条件データで示される条件をオートフォーカス処理の実行条件として設定する。指令生成部21は、合焦位置を探索していないときのレンズモジュール12の焦点位置を実行条件に含まれる初期位置とする指令を撮像装置10に出力する。撮像装置10のレンズ制御部16は、当該指令に従って、合焦位置の探索が終了すると、レンズモジュール12の焦点位置を設定された初期位置に移動させ、次の検査対象ワークに対する撮像指令を受けるまで待機する。これにより、次の検査対象ワークに対する撮像指令を受けると、レンズ制御部16は、即座に、レンズモジュール12の焦点位置を探索範囲内で変化させることができる。 The setting unit 29 accepts the input of the identification information for identifying the product to be inspected and the inspection target location, reads the condition data corresponding to the received identification information, and executes the autofocus process for the condition indicated by the read condition data. Set as a condition. The command generation unit 21 outputs a command to the image pickup apparatus 10 to set the focal position of the lens module 12 as the initial position included in the execution condition when the focus position is not searched. When the search for the in-focus position is completed, the lens control unit 16 of the image pickup apparatus 10 moves the focal position of the lens module 12 to the set initial position until it receives an image pickup command for the next work to be inspected. stand by. As a result, upon receiving an imaging command for the next workpiece to be inspected, the lens control unit 16 can immediately change the focal position of the lens module 12 within the search range.

<F-3.作成例3>
図8,図9を参照して上述したように、サイズの異なる品種がある場合、品種ごとに合焦度算出領域A1を設定することが好ましい。そのため、サイズの異なる品種ごとに、合焦度算出領域A1を指定するデータを含む条件データが作成される。
<F-3. Creation example 3>
As described above with reference to FIGS. 8 and 9, when there are varieties having different sizes, it is preferable to set the focus degree calculation area A1 for each variety. Therefore, condition data including data for designating the in-focus degree calculation area A1 is created for each variety having a different size.

条件作成部28は、合焦度算出領域A1の設定を支援するための設定画面を表示装置50に表示し、入力装置40への入力に従って、ワークの品種ごとに合焦度算出領域を設定する。 The condition creation unit 28 displays a setting screen for supporting the setting of the in-focus degree calculation area A1 on the display device 50, and sets the in-focus degree calculation area for each work type according to the input to the input device 40. ..

作業者は、ステージ90(図1参照)の所定位置に、品種ごとの基準ワークを所定姿勢の状態で置く。画像処理装置20は、撮像指令を撮像装置10に出力し、撮像装置10から画像データを取得する。 The operator places the reference work for each product type in a predetermined position on the stage 90 (see FIG. 1) in a predetermined posture. The image processing device 20 outputs an image pickup command to the image pickup device 10 and acquires image data from the image pickup device 10.

条件作成部28は、撮像装置10から取得した画像データで示される画像(例えば、図8または図9に示される画像)を表示装置50に表示させ、合焦度算出領域A1の指定を作業者に促す。条件作成部28は、入力装置40への入力に応じて、合焦度算出領域A1を設定する。例えば、作業者は、矩形である合焦度算出領域A1の4頂点を入力する。作業者は、ワークにおける検査対象箇所と同じ高さであり、かつ、コントラストの大きい部分を含む領域を合焦度算出領域A1として設定する。条件作成部28は、合焦度算出領域A1のサイズおよび位置姿勢を指定するデータを含む条件データを作成する。 The condition creation unit 28 causes the display device 50 to display an image shown by the image data acquired from the image pickup device 10 (for example, the image shown in FIG. 8 or FIG. 9), and the operator designates the in-focus degree calculation area A1. To urge. The condition creation unit 28 sets the in-focus degree calculation area A1 according to the input to the input device 40. For example, the operator inputs four vertices of the focusing degree calculation area A1 which is a rectangle. The operator sets a region having the same height as the inspection target portion in the work and including a portion having a large contrast as the in-focus degree calculation region A1. The condition creation unit 28 creates condition data including data for designating the size and position / orientation of the focus calculation area A1.

図8および図9に示す例では、ワークのエッジ部分を含む領域が合焦度算出領域A1として設定されている。コントラストの大きい部分としては、エッジ部分の他にも、表面に印刷された文字、表面に形成された模様、ネジなどの部品が取り付けられた部分などが含まれる。 In the examples shown in FIGS. 8 and 9, the region including the edge portion of the work is set as the in-focus degree calculation region A1. In addition to the edge portion, the portion having high contrast includes characters printed on the surface, a pattern formed on the surface, a portion to which parts such as screws are attached, and the like.

図8および図9に示す例では、矩形の合焦度算出領域A1が設定されているが、各領域の形状はこれに限定されない。例えば、合焦度算出領域A1の形状は、円形状、枠状、あるいは領域を形成することが可能な任意の自由な形状であってもよい。また、合焦度算出領域A1は、1つにまとまった領域であると限定される必要はない。たとえば、合焦度算出領域A1は、分散して存在する複数の領域であってもよい。 In the examples shown in FIGS. 8 and 9, a rectangular in-focus degree calculation region A1 is set, but the shape of each region is not limited to this. For example, the shape of the in-focus degree calculation region A1 may be a circular shape, a frame shape, or any free shape capable of forming the region. Further, the focus calculation area A1 does not have to be limited to a single area. For example, the in-focus degree calculation region A1 may be a plurality of regions that exist in a dispersed manner.

条件作成部28は、ワークWの品種および検査対象箇所を識別するための識別情報の入力を促し、入力装置40から当該識別情報を取得する。条件作成部28は、取得した識別情報と条件データとを対応付けて記憶部230に格納する。 The condition creation unit 28 prompts the input of the identification information for identifying the type of the work W and the inspection target portion, and acquires the identification information from the input device 40. The condition creation unit 28 stores the acquired identification information and the condition data in the storage unit 230 in association with each other.

設定部29は、検査対象となる品種および検査対象箇所を識別する識別情報の入力を受け付け、受け付けた識別情報に対応する条件データを読み出し、読み出した条件データで示される条件をオートフォーカス処理の実行条件として設定する。算出部22は、焦点位置を変化させながら得られる撮像画像のうちの合焦度算出領域A1における合焦度を算出する。これにより、品種および検査対象箇所に応じた合焦度算出領域A1から合焦度を算出することができ、ワークの検査対象箇所に合焦した画像を得やすくなる。 The setting unit 29 accepts the input of the identification information for identifying the product to be inspected and the inspection target location, reads the condition data corresponding to the received identification information, and executes the autofocus process for the condition indicated by the read condition data. Set as a condition. The calculation unit 22 calculates the in-focus degree in the in-focus degree calculation region A1 in the captured image obtained while changing the focal position. As a result, the in-focus degree can be calculated from the in-focus degree calculation area A1 according to the product type and the inspection target portion, and it becomes easy to obtain an image in focus on the inspection target portion of the work.

また、AF評価部25は、検査画像データで示される検査画像のうちの合焦度算出領域A1から算出された合焦度に基づいて評価値を算出する。これにより、品種および検査対象箇所に応じて、合焦位置の信頼性を適切に評価することができる。 Further, the AF evaluation unit 25 calculates an evaluation value based on the in-focus degree calculated from the in-focus degree calculation area A1 in the inspection image shown by the inspection image data. This makes it possible to appropriately evaluate the reliability of the in-focus position according to the product type and the inspection target location.

<F-4.作成例4>
ワークWの検査対象箇所に合焦する焦点位置は、ワークWの品種および検査対象箇所によって異なる。そのため、合焦位置の信頼性の評価基準は、ワークWの品種および検査対象箇所に応じて設定されることが好ましい。従って、ワークWの品種および検査対象箇所ごとに、評価値と比較される閾値を指定するデータを含む条件データが作成される。
<F-4. Creation example 4>
The focal position for focusing on the inspection target portion of the work W differs depending on the type of the work W and the inspection target location. Therefore, it is preferable that the evaluation criteria for the reliability of the in-focus position are set according to the type of work W and the inspection target location. Therefore, condition data including data for designating the threshold value to be compared with the evaluation value is created for each type of work W and the inspection target location.

作業者は、ステージ90(図1参照)の所定位置に、品種ごとの複数個の基準ワークを所定姿勢の状態で順次置く。画像処理装置20は、撮像指令を撮像装置10に出力し、撮像装置10から基準ワークの検査対象箇所に合焦した画像データを取得する。画像処理装置20は、複数個の基準ワークにそれぞれ対応する複数の画像データを取得する。 The operator sequentially places a plurality of reference workpieces for each type in a predetermined position on the stage 90 (see FIG. 1) in a predetermined posture. The image processing device 20 outputs an image pickup command to the image pickup device 10, and acquires image data focused on the inspection target portion of the reference work from the image pickup device 10. The image processing device 20 acquires a plurality of image data corresponding to each of the plurality of reference workpieces.

条件作成部28は、撮像装置10から取得した複数の画像データの各々について、AF評価部25と同じ手法を用いて評価値を算出する。条件作成部28は、算出した評価値の統計データに基づいて閾値を決定する。条件作成部28は、閾値を指定するデータを含む条件データを作成する。 The condition creation unit 28 calculates an evaluation value for each of the plurality of image data acquired from the image pickup apparatus 10 by using the same method as the AF evaluation unit 25. The condition creation unit 28 determines the threshold value based on the calculated statistical data of the evaluation value. The condition creation unit 28 creates condition data including data for designating a threshold value.

例えば、信頼性が高いほど大きくなる評価値の場合、条件作成部28は、算出した評価値の最小値を閾値として決定してもよいし、算出した評価値の平均値と標準偏差σとから得られる値(例えば、平均値-3σ)を閾値として決定してもよい。 For example, in the case of an evaluation value that increases as the reliability increases, the condition creation unit 28 may determine the minimum value of the calculated evaluation value as a threshold value, or from the average value of the calculated evaluation values and the standard deviation σ. The obtained value (for example, the average value -3σ) may be determined as a threshold value.

もしくは、条件作成部28は、算出した評価値の統計データを表示装置50に表示させ、入力装置40に入力された値を閾値に決定してもよい。作業者は、ワークWの品種および検査対象箇所ごとに閾値を入力すればよい。 Alternatively, the condition creation unit 28 may display the statistical data of the calculated evaluation value on the display device 50 and determine the value input to the input device 40 as the threshold value. The operator may input the threshold value for each type of work W and the inspection target location.

条件作成部28は、ワークWの品種および検査対象箇所を識別するための識別情報の入力を促し、入力装置40から当該識別情報を取得する。条件作成部28は、取得した識別情報と条件データとを対応付けて記憶部230に格納する。 The condition creation unit 28 prompts the input of the identification information for identifying the type of the work W and the inspection target portion, and acquires the identification information from the input device 40. The condition creation unit 28 stores the acquired identification information and the condition data in the storage unit 230 in association with each other.

設定部29は、検査対象となる品種および検査対象箇所を識別する識別情報の入力を受け付け、受け付けた識別情報に対応する条件データを読み出し、読み出した条件データで示される条件をオートフォーカス処理の実行条件として設定する。設定部29は、実行条件に含まれる閾値をAF評価部25に設定する。AF評価部25は、検査画像から算出された評価値と設定された閾値とを比較することにより、合焦位置の信頼性を評価する。これにより、品種および検査対象箇所に応じて、合焦位置の信頼性を適切に評価することができる。 The setting unit 29 accepts the input of the identification information for identifying the product to be inspected and the inspection target location, reads the condition data corresponding to the received identification information, and executes the autofocus process for the condition indicated by the read condition data. Set as a condition. The setting unit 29 sets the threshold value included in the execution condition in the AF evaluation unit 25. The AF evaluation unit 25 evaluates the reliability of the in-focus position by comparing the evaluation value calculated from the inspection image with the set threshold value. This makes it possible to appropriately evaluate the reliability of the in-focus position according to the product type and the inspection target location.

なお、条件作成部28は、閾値の代わりに、もしくは、閾値に加えて、合焦度から評価値を算出するための評価関数を品種および検査対象箇所に応じて設定してもよい。この場合、条件作成部28は、評価関数を指定するデータを含む条件データを作成する。 The condition creation unit 28 may set an evaluation function for calculating an evaluation value from the degree of focus in place of the threshold value or in addition to the threshold value, depending on the type of product and the inspection target location. In this case, the condition creation unit 28 creates condition data including data for designating the evaluation function.

<G.条件テーブル>
次に、図12から図14を参照して、記憶部230が記憶する条件テーブル232の例について説明する。図12は、品種と条件データとが対応付けられたテーブルの一例を示す図である。図13は、検査対象箇所と条件データとが対応付けられたテーブルの一例を示す図である。図14は、品種と検査対象箇所と条件データとが対応付けられたテーブルの一例を示す図である。
<G. Condition table>
Next, an example of the condition table 232 stored in the storage unit 230 will be described with reference to FIGS. 12 to 14. FIG. 12 is a diagram showing an example of a table in which a product type and condition data are associated with each other. FIG. 13 is a diagram showing an example of a table in which the inspection target location and the condition data are associated with each other. FIG. 14 is a diagram showing an example of a table in which a product type, an inspection target location, and condition data are associated with each other.

検査システム1が特定の1つの品種のワークWのみについて複数の検査対象箇所を検査する場合、図12に示されるような条件テーブル232が条件作成部28によって作成される。検査システム1が複数の品種のワークWの各々について1つの検査対象箇所を検査する場合、図13に示されるような条件テーブル232が条件作成部28によって作成される。検査システム1が複数の品種の少なくとも1つの品種について複数の検査対象箇所を検査する場合、図14に示されるような条件テーブル232が条件作成部28によって作成される。 When the inspection system 1 inspects a plurality of inspection target points only for the work W of a specific type, the condition table 232 as shown in FIG. 12 is created by the condition creation unit 28. When the inspection system 1 inspects one inspection target portion for each of the work Ws of a plurality of types, the condition table 232 as shown in FIG. 13 is created by the condition creation unit 28. When the inspection system 1 inspects a plurality of inspection target points for at least one variety of the plurality of varieties, the condition table 232 as shown in FIG. 14 is created by the condition creation unit 28.

条件テーブル232は、品種および検査対象箇所の少なくとも一方に応じて異なる項目の条件データを含む。条件テーブル232に含まれる項目の個数は1個であっても複数であってもよい。例えば、図14に示す条件テーブル232は、探索範囲および合焦度算出領域を指定する条件データを含む。品種および検査対象箇所の少なくとも一方に応じて異なる項目以外の項目の条件データは、共通データとして記憶部230に格納される。設定部29は、品種および検査対象箇所に応じた条件データと共通データとで示される条件を実行条件として設定すればよい。 The condition table 232 contains condition data of different items depending on at least one of the product type and the inspection target location. The number of items included in the condition table 232 may be one or a plurality. For example, the condition table 232 shown in FIG. 14 includes condition data for designating a search range and a focus calculation area. Conditional data of items other than items that differ depending on at least one of the product type and the inspection target location are stored in the storage unit 230 as common data. The setting unit 29 may set the condition indicated by the condition data and the common data according to the product type and the inspection target location as the execution condition.

<G.検査の流れ>
次に、図15を参照して、本実施の形態に係る検査処理の流れについて説明する。図15は、実施の形態に係る検査システムの検査処理の流れの一例を示すフローチャートである。なお、検査処理の前に、条件作成部28は、品種および検査対象領域の少なくとも一方に応じた条件データを予め作成し、品種および検査対象領域の少なくとも一方を識別する識別情報と条件データとを対応付けた条件テーブル232を記憶部230に格納している。
<G. Inspection flow>
Next, with reference to FIG. 15, the flow of the inspection process according to the present embodiment will be described. FIG. 15 is a flowchart showing an example of the flow of inspection processing of the inspection system according to the embodiment. Prior to the inspection process, the condition creation unit 28 creates condition data in advance according to at least one of the variety and the inspection target area, and creates identification information and condition data for identifying at least one of the variety and the inspection target area. The associated condition table 232 is stored in the storage unit 230.

画像処理装置20は、品種および検査対象箇所の切替指示が入力されたか否かを判定する(ステップS1)。作業者は、品種および検査対象箇所の切替を行なう場合、切替指示と、切替後の品種および検査対象箇所を識別する識別情報とを入力装置40に入力する。 The image processing apparatus 20 determines whether or not a switching instruction for the product type and the inspection target portion has been input (step S1). When switching between the product type and the inspection target location, the operator inputs the switching instruction and the identification information for identifying the product type and the inspection target location after switching to the input device 40.

切替指示が入力された場合(ステップS1でYES)、画像処理装置20の設定部29は、ステップS2において、入力された識別情報に対応する条件データを条件テーブル232から読み出す。さらに、設定部29は、読み出した条件データで示される条件をオートフォーカス処理部(レンズ制御部16、算出部22、AF制御部23およびAF評価部25)の実行条件として設定する。 When the switching instruction is input (YES in step S1), the setting unit 29 of the image processing device 20 reads the condition data corresponding to the input identification information from the condition table 232 in step S2. Further, the setting unit 29 sets the condition indicated by the read condition data as the execution condition of the autofocus processing unit (lens control unit 16, calculation unit 22, AF control unit 23, and AF evaluation unit 25).

切替指示が入力されていない場合(ステップS1でNO)、設定部29は、前回と同じ条件をオートフォーカス処理部(レンズ制御部16、算出部22、AF制御部23およびAF評価部25)の実行条件として設定する(ステップS3)。 When the switching instruction is not input (NO in step S1), the setting unit 29 sets the same conditions as the previous time in the autofocus processing unit (lens control unit 16, calculation unit 22, AF control unit 23, and AF evaluation unit 25). It is set as an execution condition (step S3).

ステップS2またはステップS3の後、撮像装置10および画像処理装置20は、合焦位置の探索処理を実行する(ステップS4)。ステップS4において、レンズ制御部16、算出部22およびAF制御部23は、ステップS2またはステップS3で設定された条件データに従って、合焦位置の探索を実行する。 After step S2 or step S3, the image pickup apparatus 10 and the image processing apparatus 20 execute the focusing position search process (step S4). In step S4, the lens control unit 16, the calculation unit 22, and the AF control unit 23 execute the search for the in-focus position according to the condition data set in step S2 or step S3.

次に、AF制御部23は、レンズモジュール12の焦点位置が合焦位置に調節されたときの検査画像データを特定する(ステップS5)。 Next, the AF control unit 23 identifies the inspection image data when the focal position of the lens module 12 is adjusted to the in-focus position (step S5).

次に、画像処理装置20の検査部24は、検査画像データで示される検査画像に基づいてワークWを検査し、検査結果を出力する(ステップS6)。 Next, the inspection unit 24 of the image processing apparatus 20 inspects the work W based on the inspection image indicated by the inspection image data, and outputs the inspection result (step S6).

さらに、画像処理装置20のAF評価部25は、検査画像データで示される検査画像に基づいて、合焦位置の信頼性を評価し、評価結果を出力する(ステップS7)。ステップS7において、AF評価部25は、ステップS2またはステップS3で設定された条件データに従って、合焦位置の信頼性を評価する。 Further, the AF evaluation unit 25 of the image processing apparatus 20 evaluates the reliability of the in-focus position based on the inspection image indicated by the inspection image data, and outputs the evaluation result (step S7). In step S7, the AF evaluation unit 25 evaluates the reliability of the in-focus position according to the condition data set in step S2 or step S3.

なお、ステップS6およびステップS7の処理順序はこれに限定されず、ステップS7の後にステップS6が実行されてもよいし、ステップS6とステップS7とが並行して実行されてもよい。 The processing order of steps S6 and S7 is not limited to this, and step S6 may be executed after step S7, or step S6 and step S7 may be executed in parallel.

次に、画像処理装置20の判定部26は、検査結果および評価結果に基づいて総合判定を行なう(ステップS8)。その後、出力部27は、判定結果を表示装置50に表示させる(ステップS9)。ステップS9の後、検査処理は終了する。 Next, the determination unit 26 of the image processing apparatus 20 makes a comprehensive determination based on the inspection result and the evaluation result (step S8). After that, the output unit 27 causes the display device 50 to display the determination result (step S9). After step S9, the inspection process ends.

§3 付記
以上のように、実施の形態は以下のような開示を含む。
§3 Addendum As described above, the embodiments include the following disclosures.

(構成1)
焦点位置が可変である光学系(12)と、
前記光学系(12)を介して対象物(W)からの光を受けることによって撮像画像を生成する撮像素子(13)と、
前記撮像画像に基づいて、対象物(W)に合焦する前記焦点位置である合焦位置の探索に関するオートフォーカス処理を実行するオートフォーカス処理部(16,22,23,25)と、
前記焦点位置が前記合焦位置に調節されたときに生成された検査画像に基づいて前記対象物を検査する検査部(22)と、
前記対象物の品種および検査対象箇所の少なくとも一方に応じて、前記オートフォーカス処理の条件データを設定する設定部(28)とを備え、
前記オートフォーカス処理部(16,22,23,25)は、前記条件データに従って前記オートフォーカス処理を実行する、検査システム(1)。
(Structure 1)
An optical system (12) with a variable focal position and
An image pickup device (13) that generates an image pickup image by receiving light from an object (W) via the optical system (12).
Based on the captured image, the autofocus processing unit (16, 22, 23, 25) that executes the autofocus process related to the search for the in-focus position, which is the focal position that focuses on the object (W), and the autofocus processing unit (16, 22, 23, 25).
An inspection unit (22) that inspects the object based on an inspection image generated when the focal position is adjusted to the in-focus position.
A setting unit (28) for setting condition data for the autofocus process is provided according to at least one of the product type and the inspection target location.
The inspection system (1), wherein the autofocus processing unit (16, 22, 23, 25) executes the autofocus processing according to the condition data.

(構成2)
前記オートフォーカス処理部(16,22,23,25)は、前記撮像画像のうちの部分領域における合焦度に基づいて前記合焦位置を探索し、
前記条件データは、前記部分領域のサイズおよび位置姿勢を指定するデータを含む、構成1に記載の検査システム(1)。
(Structure 2)
The autofocus processing unit (16, 22, 23, 25) searches for the in-focus position based on the in-focus degree in a partial region of the captured image.
The inspection system (1) according to configuration 1, wherein the condition data includes data for designating the size and position / orientation of the partial region.

(構成3)
前記条件データは、前記焦点位置の探索範囲、および前記合焦位置の探索を開始するときの前記焦点位置の少なくとも一方を指定するデータを含む、構成1に記載の検査システム(1)。
(Structure 3)
The inspection system (1) according to configuration 1, wherein the condition data includes data that specifies at least one of the focus position search range and the focus position when the search for the focus position is started.

(構成4)
前記オートフォーカス処理は、前記合焦位置の信頼性を示す評価値と閾値とを比較することにより、前記合焦位置の良否を判定する処理を含み、
前記条件データは、前記評価値を算出するための評価関数、および前記閾値の少なくとも一方を指定するデータを含む、構成1に記載の検査システム(1)。
(Structure 4)
The autofocus process includes a process of determining the quality of the in-focus position by comparing an evaluation value indicating the reliability of the in-focus position with a threshold value.
The inspection system (1) according to the configuration 1, wherein the condition data includes an evaluation function for calculating the evaluation value and data for designating at least one of the threshold values.

(構成5)
前記オートフォーカス処理は、前記合焦位置の信頼性を示す評価値と閾値とを比較することにより、前記合焦位置の良否を判定する処理を含み、
前記評価値は、前記検査画像のうちの部分領域における合焦度に基づいて算出され、
前記条件データは、前記部分領域のサイズおよび位置姿勢を指定するデータを含む、構成1に記載の検査システム(1)。
(Structure 5)
The autofocus process includes a process of determining the quality of the in-focus position by comparing an evaluation value indicating the reliability of the in-focus position with a threshold value.
The evaluation value is calculated based on the degree of focus in a partial region of the inspection image.
The inspection system (1) according to configuration 1, wherein the condition data includes data for designating the size and position / orientation of the partial region.

(構成6)
焦点位置が可変である光学系(12)と、
前記光学系(12)を介して対象物(W)からの光を受けることによって撮像画像を生成する撮像素子(13)と、
前記撮像画像に基づいて、前記対象物(W)に合焦する前記焦点位置である合焦位置を探索するオートフォーカス処理を実行するオートフォーカス処理部(16,22,23,25)とを備えた検査システム(1)における検査方法であって、
前記対象物(W)の品種および検査対象箇所の少なくとも一方に応じて、前記オートフォーカス処理の条件データを設定するステップと、
前記条件データに従って、前記オートフォーカス処理部(16,22,23,25)に前記オートフォーカス処理を実行させるステップと、
前記焦点位置が前記合焦位置に調節されたときに生成された検査画像に基づいて前記対象物(W)を検査するステップとを備える、検査方法。
(Structure 6)
An optical system (12) with a variable focal position and
An image pickup device (13) that generates an image pickup image by receiving light from an object (W) via the optical system (12).
It is provided with an autofocus processing unit (16, 22, 23, 25) that executes an autofocus process for searching for a focused position, which is the focal position that focuses on the object (W), based on the captured image. This is the inspection method in the inspection system (1).
A step of setting condition data for the autofocus process according to at least one of the product type of the object (W) and the inspection target location, and
A step of causing the autofocus processing unit (16, 22, 23, 25) to execute the autofocus processing according to the condition data, and
An inspection method comprising a step of inspecting the object (W) based on an inspection image generated when the focal position is adjusted to the in-focus position.

(構成7)
焦点位置が可変である光学系(12)と、
前記光学系(12)を介して対象物(W)からの光を受けることによって撮像画像を生成する撮像素子(13)と、
前記撮像画像に基づいて、前記対象物(W)に合焦する前記焦点位置である合焦位置を探索するオートフォーカス処理を実行するオートフォーカス処理部(16a,16b,23)とを備えた検査システム(1)における検査方法をコンピュータに実行させるためのプログラム(215)であって、
前記検査方法は、
前記対象物の品種および検査対象箇所の少なくとも一方に応じて、前記オートフォーカス処理の条件データを設定するステップと、
前記条件データに従って、前記オートフォーカス処理部(16,22,23,25)に前記オートフォーカス処理を実行させるステップと、
前記焦点位置が前記合焦位置に調節されたときに生成された検査画像に基づいて前記対象物を検査するステップとを備える、プログラム(215)。
(Structure 7)
An optical system (12) with a variable focal position and
An image pickup device (13) that generates an image pickup image by receiving light from an object (W) via the optical system (12).
An inspection provided with an autofocus processing unit (16a, 16b, 23) that executes an autofocus process for searching for a focused position, which is the focal position that focuses on the object (W), based on the captured image. A program (215) for causing a computer to execute an inspection method in the system (1).
The inspection method is
A step of setting condition data for the autofocus process according to at least one of the product type and the inspection target location, and
A step of causing the autofocus processing unit (16, 22, 23, 25) to execute the autofocus processing according to the condition data, and
A program (215) comprising inspecting the object based on an inspection image generated when the focal position is adjusted to the in-focus position.

本発明の実施の形態について説明したが、今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は請求の範囲によって示され、請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。 Although embodiments of the present invention have been described, it should be considered that the embodiments disclosed this time are exemplary in all respects and not restrictive. The scope of the present invention is indicated by the scope of claims and is intended to include all modifications within the meaning and scope equivalent to the scope of claims.

1 検査システム、10 撮像装置、11 照明部、12 レンズモジュール、12a,12c レンズ、12b レンズ群、12d 可動部、12e フォーカス調節部、12e1,12e2 電圧源、13 撮像素子、13a 撮像面、14 撮像素子制御部、15,17 レジスタ、16 レンズ制御部、18 通信I/F部、20 画像処理装置、21 指令生成部、22 算出部、23 AF制御部、24 検査部、25 AF評価部、26 判定部、27 出力部、28 条件作成部、29 設定部、30 PLC、40 入力装置、50 表示装置、51 設定画面、52a,52b 領域、53 折れ線グラフ、54 撮像画像、55,57 つまみ、56a 点、56b 垂線、58,59 点線、60 OKボタン、61 キャンセルボタン、65 画像、70 透光性容器、71 導電性液体、72 絶縁性液体、73a,73b,74a,74b 電極、75a,75b 絶縁体、76a,76b 絶縁層、90 ステージ、206 メモリカード、216 カメラインターフェース、216a 画像バッファ、218 入力インターフェース、220 表示コントローラ、222 PLCインターフェース、224 通信インターフェース、226 データリーダ/ライタ、228 バス、230 記憶部、232 条件テーブル、234 メインメモリ、236 ハードディスク、238 制御プログラム、A1 合焦度算出領域、F,F1,F2 焦点位置、Ra,Rb 可動範囲、W,W1,W2 ワーク。 1 Inspection system, 10 image pickup device, 11 lighting unit, 12 lens module, 12a, 12c lens, 12b lens group, 12d movable part, 12e focus adjustment unit, 12e1, 12e2 voltage source, 13 image pickup element, 13a image pickup surface, 14 image pickup Element control unit, 15, 17 registers, 16 lens control unit, 18 communication I / F unit, 20 image processing device, 21 command generation unit, 22 calculation unit, 23 AF control unit, 24 inspection unit, 25 AF evaluation unit, 26 Judgment unit, 27 output unit, 28 condition creation unit, 29 setting unit, 30 PLC, 40 input device, 50 display device, 51 setting screen, 52a, 52b area, 53 broken line graph, 54 captured image, 55, 57 knob, 56a Dot, 56b vertical line, 58,59 point line, 60 OK button, 61 cancel button, 65 image, 70 translucent container, 71 conductive liquid, 72 insulating liquid, 73a, 73b, 74a, 74b electrode, 75a, 75b insulation Body, 76a, 76b Insulation layer, 90 stages, 206 memory card, 216 camera interface, 216a image buffer, 218 input interface, 220 display controller, 222 PLC interface, 224 communication interface, 226 data reader / writer, 228 bus, 230 storage Unit, 232 condition table, 234 main memory, 236 hard disk, 238 control program, A1 focus calculation area, F, F1, F2 focal position, Ra, Rb movable range, W, W1, W2 work.

Claims (7)

焦点位置が可変である光学系と、
前記光学系を介して対象物からの光を受けることによって撮像画像を生成する撮像素子と、
前記撮像画像に基づいて、対象物に合焦する前記焦点位置である合焦位置の探索に関するオートフォーカス処理を実行するオートフォーカス処理部と、
前記焦点位置が前記合焦位置に調節されたときに生成された検査画像に基づいて前記対象物を検査する検査部と、
前記対象物の品種および検査対象箇所を識別する識別情報と、前記オートフォーカス処理の条件を示す条件データとを対応付けた条件テーブルを記憶する記憶部と、
前記対象物の品種および検査対象箇所を識別する対象識別情報の入力を受け付け、受け付けた前記対象識別情報に対応する対象条件データを前記記憶部から読み出し、読み出した前記対象条件データによって示される条件を前記オートフォーカス処理の条件として設定する設定部とを備え、
前記オートフォーカス処理部は、前記対象条件データに従って前記オートフォーカス処理を実行する、検査システム。
An optical system with a variable focal position and
An image pickup device that generates an image pickup image by receiving light from an object via the optical system, and an image pickup device.
Based on the captured image, an autofocus processing unit that executes an autofocus process for searching for a focused position, which is the focal position for focusing on an object, and an autofocus processing unit.
An inspection unit that inspects the object based on an inspection image generated when the focal position is adjusted to the in-focus position.
A storage unit that stores a condition table in which identification information for identifying the product type and inspection target location of the object and condition data indicating the condition of the autofocus process are associated with each other.
The input of the target identification information for identifying the type of the object and the inspection target location is accepted, the target condition data corresponding to the received target identification information is read from the storage unit, and the condition indicated by the read target condition data is set. It is equipped with a setting unit that is set as a condition for the autofocus process.
The autofocus processing unit is an inspection system that executes the autofocus processing according to the target condition data.
前記オートフォーカス処理部は、前記撮像画像のうちの部分領域における合焦度に基づいて前記合焦位置を探索し、
前記条件データは、前記部分領域のサイズおよび位置姿勢を指定するデータを含む、請求項1に記載の検査システム。
The autofocus processing unit searches for the in-focus position based on the degree of in-focus in a partial region of the captured image.
The inspection system according to claim 1, wherein the condition data includes data for designating the size and position / orientation of the partial region.
前記条件データは、前記焦点位置の探索範囲、および前記合焦位置の探索を開始するときの前記焦点位置の少なくとも一方を指定するデータを含む、請求項1に記載の検査システム。 The inspection system according to claim 1, wherein the conditional data includes data that specifies at least one of the focal position search range and the focal position when the search for the in-focus position is started. 前記オートフォーカス処理は、前記合焦位置の信頼性を示す評価値と閾値とを比較することにより、前記合焦位置の良否を判定する処理を含み、
前記条件データは、前記評価値を算出するための評価関数、および前記閾値の少なくとも一方を指定するデータを含む、請求項1に記載の検査システム。
The autofocus process includes a process of determining the quality of the in-focus position by comparing an evaluation value indicating the reliability of the in-focus position with a threshold value.
The inspection system according to claim 1, wherein the condition data includes an evaluation function for calculating the evaluation value and data for designating at least one of the threshold values.
前記オートフォーカス処理は、前記合焦位置の信頼性を示す評価値と閾値とを比較することにより、前記合焦位置の良否を判定する処理を含み、
前記評価値は、前記検査画像のうちの部分領域における合焦度に基づいて算出され、
前記条件データは、前記部分領域のサイズおよび位置姿勢を指定するデータを含む、請求項1に記載の検査システム。
The autofocus process includes a process of determining the quality of the in-focus position by comparing an evaluation value indicating the reliability of the in-focus position with a threshold value.
The evaluation value is calculated based on the degree of focus in a partial region of the inspection image.
The inspection system according to claim 1, wherein the condition data includes data for designating the size and position / orientation of the partial region.
焦点位置が可変である光学系と、
前記光学系を介して対象物からの光を受けることによって撮像画像を生成する撮像素子と、
前記撮像画像に基づいて、前記対象物に合焦する前記焦点位置である合焦位置を探索するオートフォーカス処理を実行するオートフォーカス処理部とを備えた検査システムにおける検査方法であって、
前記対象物の品種および検査対象箇所に応じて、前記オートフォーカス処理の対象条件データを設定するステップと、
前記対象条件データに従って、前記オートフォーカス処理部に前記オートフォーカス処理を実行させるステップと、
前記焦点位置が前記合焦位置に調節されたときに生成された検査画像に基づいて前記対象物を検査するステップとを備え、
前記設定するステップは、
前記対象物の品種および検査対象箇所を識別する対象識別情報の入力を受け付けるステップと、
前記対象物の品種および検査対象箇所を識別する識別情報と、前記オートフォーカス処理の条件を示す条件データとを対応付けた条件テーブルから、前記対象識別情報に対応する前記対象条件データを読み出すステップと、を含む、検査方法。
An optical system with a variable focal position and
An image pickup device that generates an image pickup image by receiving light from an object via the optical system, and an image pickup device.
An inspection method in an inspection system including an autofocus processing unit that executes an autofocus process for searching for a focus position that is the focal position that focuses on the object based on the captured image.
A step of setting target condition data for the autofocus process according to the type of the object and the inspection target location, and
A step of causing the autofocus processing unit to execute the autofocus processing according to the target condition data, and
It comprises a step of inspecting the object based on an inspection image generated when the focal position is adjusted to the in-focus position.
The step to be set is
A step of accepting input of target identification information for identifying the product type and inspection target location of the object, and
A step of reading out the target condition data corresponding to the target identification information from a condition table in which the identification information for identifying the product type and the inspection target location of the object and the condition data indicating the conditions of the autofocus processing are associated with each other. , Including inspection methods.
焦点位置が可変である光学系と、
前記光学系を介して対象物からの光を受けることによって撮像画像を生成する撮像素子と、
前記撮像画像に基づいて、前記対象物に合焦する前記焦点位置である合焦位置を探索するオートフォーカス処理を実行するオートフォーカス処理部とを備えた検査システムにおける検査方法をコンピュータに実行させるためのプログラムであって、
前記検査方法は、
前記対象物の品種および検査対象箇所に応じて、前記オートフォーカス処理の対象条件データを設定するステップと、
前記対象条件データに従って、前記オートフォーカス処理部に前記オートフォーカス処理を実行させるステップと、
前記焦点位置が前記合焦位置に調節されたときに生成された検査画像に基づいて前記対象物を検査するステップとを備え、
前記設定するステップは、
前記対象物の品種および検査対象箇所を識別する対象識別情報の入力を受け付けるステップと、
前記対象物の品種および検査対象箇所を識別する識別情報と、前記オートフォーカス処理の条件を示す条件データとを対応付けた条件テーブルから、前記対象識別情報に対応する前記対象条件データを読み出すステップと、を含む、プログラム。
An optical system with a variable focal position and
An image pickup device that generates an image pickup image by receiving light from an object via the optical system, and an image pickup device.
To make a computer execute an inspection method in an inspection system including an autofocus processing unit that executes an autofocus process for searching for a focus position that is the focal position that focuses on the object based on the captured image. Program of
The inspection method is
A step of setting target condition data for the autofocus process according to the type of the object and the inspection target location, and
A step of causing the autofocus processing unit to execute the autofocus processing according to the target condition data, and
It comprises a step of inspecting the object based on an inspection image generated when the focal position is adjusted to the in-focus position.
The step to be set is
A step of accepting input of target identification information for identifying the product type and inspection target location of the object, and
A step of reading out the target condition data corresponding to the target identification information from a condition table in which the identification information for identifying the product type and the inspection target location of the object and the condition data indicating the conditions of the autofocus processing are associated with each other. , Including the program.
JP2022071238A 2018-11-27 2022-04-25 Inspection system, inspection method and program Active JP7287533B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022071238A JP7287533B2 (en) 2018-11-27 2022-04-25 Inspection system, inspection method and program

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2018221071A JP2020086152A (en) 2018-11-27 2018-11-27 Inspection system, inspection method, and program
JP2022071238A JP7287533B2 (en) 2018-11-27 2022-04-25 Inspection system, inspection method and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2018221071A Division JP2020086152A (en) 2018-11-27 2018-11-27 Inspection system, inspection method, and program

Publications (2)

Publication Number Publication Date
JP2022097562A true JP2022097562A (en) 2022-06-30
JP7287533B2 JP7287533B2 (en) 2023-06-06

Family

ID=87890988

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022071238A Active JP7287533B2 (en) 2018-11-27 2022-04-25 Inspection system, inspection method and program

Country Status (1)

Country Link
JP (1) JP7287533B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09101116A (en) * 1995-10-05 1997-04-15 Hitachi Ltd Automatic focusing method and its device, and pattern detection method and its device
JPH09184711A (en) * 1994-12-19 1997-07-15 Omron Corp Observation region setting method and device and visual inspection method and device using the observation region setting method
JP2005156554A (en) * 2003-11-24 2005-06-16 Mitsutoyo Corp Estimation optimum focus position determination control method for image measurement inspection system, and control method for training mode operation of image measurement inspection system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09184711A (en) * 1994-12-19 1997-07-15 Omron Corp Observation region setting method and device and visual inspection method and device using the observation region setting method
JPH09101116A (en) * 1995-10-05 1997-04-15 Hitachi Ltd Automatic focusing method and its device, and pattern detection method and its device
JP2005156554A (en) * 2003-11-24 2005-06-16 Mitsutoyo Corp Estimation optimum focus position determination control method for image measurement inspection system, and control method for training mode operation of image measurement inspection system

Also Published As

Publication number Publication date
JP7287533B2 (en) 2023-06-06

Similar Documents

Publication Publication Date Title
WO2020110712A1 (en) Inspection system, inspection method, and program
US10120163B2 (en) Auto-focus method for a coordinate-measuring apparatus
TWI667530B (en) Inspection method and inspection device
US20110141558A1 (en) Spherical aberration correction for non-descanned applications
CN109781745A (en) A kind of optical element surface defects detection Atomatic focusing method and device
JP2019191429A (en) Control device, imaging device, control method and program
US10827114B2 (en) Imaging system and setting device
JP6312410B2 (en) Alignment apparatus, microscope system, alignment method, and alignment program
JP6588527B2 (en) Method, digital microscope, and data processing program for correcting illumination-dependent aberration in a modular digital microscope
JP7287533B2 (en) Inspection system, inspection method and program
JP7047725B2 (en) Inspection system, inspection method and program
JP5050282B2 (en) Focus detection device, focus detection method, and focus detection program
JP2000028336A (en) Device for measuring shape and method therefor
JP2015105897A (en) Inspection method of mask pattern
JP7087984B2 (en) Imaging system and setting device
US20220398778A1 (en) Lens calibration method for digital imaging apparatus
US9658444B2 (en) Autofocus system and autofocus method for focusing on a surface
JP2015210396A (en) Aligment device, microscope system, alignment method and alignment program
JP7135586B2 (en) Image processing system, image processing method and program
JP2010121955A (en) Height information acquisition device, height information acquisition method, and program
JP2006153636A (en) 3-dimensional measurement method and program making computer perform 3-dimensional measurement method
JP2003295066A (en) Microscope apparatus
JPH109819A (en) Distance measuring equipment
JP6615438B2 (en) Model registration method and model registration apparatus
CN116263535A (en) Method for determining z-stack boundaries of an image of an object

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220425

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230124

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230320

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20230425

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230508

R150 Certificate of patent or registration of utility model

Ref document number: 7287533

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150