JPH11132901A - Optical member-inspecting apparatus, image-processing apparatus and computer readable medium - Google Patents

Optical member-inspecting apparatus, image-processing apparatus and computer readable medium

Info

Publication number
JPH11132901A
JPH11132901A JP29600697A JP29600697A JPH11132901A JP H11132901 A JPH11132901 A JP H11132901A JP 29600697 A JP29600697 A JP 29600697A JP 29600697 A JP29600697 A JP 29600697A JP H11132901 A JPH11132901 A JP H11132901A
Authority
JP
Japan
Prior art keywords
fillet
image data
optical member
image
area
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
JP29600697A
Other languages
Japanese (ja)
Other versions
JP3831498B2 (en
Inventor
Kiyoshi Yamamoto
山本  清
Masayuki Sugiura
正之 杉浦
Taichi Nakanishi
太一 中西
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.)
Pentax Corp
Original Assignee
Asahi Kogaku Kogyo Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Asahi Kogaku Kogyo Co Ltd filed Critical Asahi Kogaku Kogyo Co Ltd
Priority to JP29600697A priority Critical patent/JP3831498B2/en
Publication of JPH11132901A publication Critical patent/JPH11132901A/en
Application granted granted Critical
Publication of JP3831498B2 publication Critical patent/JP3831498B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an optical member-inspecting apparatus which can automatically judge whether a linear failure detected in an optical member to be inspected is caused by a flaw or a flash. SOLUTION: When image data corresponding to an optical member to be inspected are compositd in an image memory area 62a, a CUP 60 takes out images of failure factors one by from the image data and recognizes for every image of the taken-out individual failure factors whether the failure factor is a spot defect or a linear defect. When recognizing that the failure factor is the linear defect, the CPU 60 recognizes further whether the failure factor is a flaw or a flash. In the recognition process, the CPU 60 measures a maximum fillet and a minimum fillet of the taken image, thereby recognizing that the failure factor is the flaw only when a ratio of the minimum fillet to the maximum fillet is smaller than 50% and the minimum fillet is smaller than 50 dots, and that the failure factor is the flash in other than the above case.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明が属する技術分野】本発明は、レンズ等の光学部
材の不良要因を検出するための光学部材検査装置,画像
処理装置,及びプログラムを格納したコンピュータ可読
媒体に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to an optical member inspection apparatus for detecting a cause of a defect of an optical member such as a lens, an image processing apparatus, and a computer readable medium storing a program.

【0002】[0002]

【従来の技術】レンズ,プリズム等の光学部材は、入射
した光束が規則正しく屈折したり、平行に進行したり、
一点又は線状に収束したり発散するように設計されてい
る。しかしながら、光学部材の形成時において糸くず等
が光学部材内に混入してしまっていたり(いわゆる「ケ
バ」)、成形後の人的取り扱いによって光学部材の表面
上にキズ等が生じていると、入射した光束が乱れてしま
うので、所望の性能を得ることができなくなる。
2. Description of the Related Art An optical member such as a lens or a prism is used to refract an incident light beam regularly or to travel in parallel.
It is designed to converge or diverge at one point or linearly. However, when lint or the like is mixed in the optical member during the formation of the optical member (so-called “burr”), scratches or the like are generated on the surface of the optical member due to human handling after molding, Since the incident light flux is disturbed, desired performance cannot be obtained.

【0003】そのため、光学部材の不良要因を検出して
自動的に良否判定を行うための光学部材検査装置が、従
来、種々提案されている。例えば、本出願人は、特願平
9−50760号において、検査対象光学部材をその光
軸を中心に回転させる回転機構及びラインセンサを用い
て検査対象光学部材全体を撮像する光学部材検査装置
を、提案した。
[0003] For this reason, various optical member inspection apparatuses for automatically detecting the cause of a defect in an optical member and automatically determining the quality of the optical member have been proposed. For example, the present applicant discloses in Japanese Patent Application No. 9-50760 an optical member inspection apparatus that images the entire inspection target optical member using a rotation mechanism and a line sensor that rotates the inspection target optical member around its optical axis. ,Proposed.

【0004】このような種々の光学部材検査装置は、何
れの方式にて不良要因を検出するものであっても、検出
した不良要因をその種別毎に分類して、分類した種別毎
に不良要因の特徴量を統計し、統計結果に基づいて検査
対象光学部材の総合的評価を行っていた。
[0004] In any of the various optical member inspection apparatuses, the detected defect factors are classified by type, and the defect factors are classified by type. Of the optical members to be inspected were comprehensively evaluated based on the statistical results.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、従来不
良要因を分類するために用いられてきた画像処理プログ
ラムのアルゴリズムは、各不良要因が点状欠点であるか
線状欠点であるかの分類しかできなかった。つまり、或
る不良要因が点状欠点であるか線状欠点であるかは、そ
の不良要因の直交する二方向におけるフィレの比率(フ
ィレ比),及び、その不良要因と同じフィレ幅を有する
矩形領域の面積に対するその不良要因の実際の面積の比
に基づけば、容易に認識可能である。しかしながら、或
る不良要因が線状欠点であると分類された場合に、その
線状欠点がキズであるのかケバであるのかを分類するた
めのアルゴリズムは、未だ確立されていなかったのであ
る。
However, the algorithm of the image processing program which has been conventionally used to classify the causes of failure can only classify whether each cause of failure is a point defect or a linear defect. Did not. In other words, whether a certain defect factor is a point defect or a linear defect depends on the fillet ratio (filler ratio) in two directions orthogonal to the defect factor and a rectangle having the same fillet width as the defect factor. It is easily recognizable based on the ratio of the actual area of the defect factor to the area of the region. However, when a certain defect factor is classified as a linear defect, an algorithm for classifying whether the linear defect is a flaw or a fluff has not been established yet.

【0006】そのため、従来の光学部材検査装置による
と、光学部材表面を多少研磨するだけで修復可能なキズ
が発生している場合であっても、修復が一切不可能なケ
バの場合と同じ評価基準にて、一律に不良品であると判
定されてしまっていた。
[0006] Therefore, according to the conventional optical member inspection apparatus, even if a scratch that can be repaired by merely polishing the surface of the optical member is generated, the same evaluation as in the case of a limp that cannot be repaired at all is obtained. By the standard, it was uniformly determined to be defective.

【0007】本発明の課題は、このような問題に鑑み、
検査対象光学部材中に検出された線状の不良要因がキズ
であるかケバであるかを自動的に判定することができる
光学部材検査装置,画像処理装置,及び、プログラムを
格納したコンピュータ可読媒体を、提供することであ
る。
[0007] The object of the present invention is to solve the above problems.
Optical member inspection device, image processing device, and computer-readable medium storing a program that can automatically determine whether a linear defect factor detected in an inspection target optical member is a flaw or a fluff Is to provide.

【0008】[0008]

【課題を解決するための手段】各請求項記載の発明は、
上記課題を解決するためになされたものである。まず、
請求項1記載の光学部材検査装置は、検査対象光学部材
を撮像して当該検査対象光学部材の像を含む画像データ
を出力する撮像装置と、この撮像装置から出力された画
像データを格納する画像メモリと、この画像メモリに格
納されている画像データ中から前記検査対象光学部材の
不良要因を示す領域を特定する領域特定手段と、この領
域特定手段によって特定された領域の最大フィレ及び最
小フィレを夫々測定するフィレ測定手段と、このフィレ
測定手段によって測定された最大フィレと最小フィレと
の比率を所定の閾値と比較する比率比較手段と、この比
率比較手段による比較結果に基づいて前記領域特定手段
によって特定された領域が前記検査対象光学部材のキズ
及びケバの何れかを示すのかの認識を行う不良要因種別
認識手段とを、備えたことを特徴とする。
The invention described in each claim is
It has been made to solve the above problems. First,
An optical member inspection apparatus according to claim 1, wherein the image pickup apparatus captures an inspection target optical member and outputs image data including an image of the inspection target optical member, and an image that stores image data output from the imaging apparatus. A memory, an area specifying means for specifying an area indicating a cause of a defect of the inspection target optical member from the image data stored in the image memory, and a maximum fillet and a minimum fillet of the area specified by the area specifying means. A fillet measuring means for measuring each; a ratio comparing means for comparing the ratio of the maximum fillet to the minimum fillet measured by the fillet measuring means with a predetermined threshold value; and the region specifying means based on a comparison result by the ratio comparing means. Defect type recognizing means for recognizing whether the area specified by the above indicates any of a flaw and a bulge of the optical member to be inspected. Characterized in that was.

【0009】このように構成されると、撮像装置は、検
査対象光学部材を撮像して、当該検査対象光学部材の像
を含む画像データを出力する。このように出力された画
像データは、画像メモリ内に格納される。領域特定手段
は、画像メモリに格納されている画像データ中から、前
記検査対象光学部材の不良要因を示す領域を、特定す
る。領域特定手段がこのようにして領域を一つ特定する
毎に、フィレ測定手段は、特定された領域の最大フィレ
及び最小フィレを夫々測定し、比率比較手段は、測定さ
れた最大フィレと最小フィレとの比率を所定の閾値と比
較し、不良要因種別認識手段は、比率比較手段による比
較結果に基づいて、前記領域特定手段によって特定され
た領域が前記検査対象光学部材のキズ及びケバの何れか
を示すかの認識を行う。このように最大フィレと最小フ
ィレとの比率を求めれば、不良要因のおおよその形状を
認識することができるので、線状の不良要因がキズであ
るかケバであるかの認識を自動的に行うことが可能とな
るのである。
With such a configuration, the imaging device captures an image of the optical member to be inspected and outputs image data including an image of the optical member to be inspected. The output image data is stored in the image memory. The area specifying means specifies, from the image data stored in the image memory, an area indicating a cause of a defect of the inspection target optical member. Each time the area specifying means specifies one area in this way, the fillet measuring means measures the maximum fillet and the minimum fillet of the specified area, respectively, and the ratio comparing means sets the measured maximum fillet and the minimum fillet. Is compared with a predetermined threshold value, and the defect factor type recognizing means determines, based on the comparison result by the ratio comparing means, that the area specified by the area specifying means is any one of a flaw and a fluff of the optical member to be inspected. Is recognized. If the ratio between the maximum fillet and the minimum fillet is obtained in this manner, the approximate shape of the defect factor can be recognized, so that it is automatically recognized whether the linear defect factor is a flaw or a fluff. It becomes possible.

【0010】また、請求項2記載の光学部材検査装置
は、請求項1の不良要因種別認識手段が、前記最小フィ
レの前記最大フィレに対する比率が前記所定の閾値より
も大きい事を前記比率比較手段による比較結果が示す場
合には、前記領域特定手段によって特定された領域が前
記検査対象光学部材のケバを示すと認識することを特徴
とする。
According to a second aspect of the present invention, in the optical member inspection apparatus, the failure factor type recognizing means determines that a ratio of the minimum fillet to the maximum fillet is larger than the predetermined threshold. When the comparison result indicates that the area specified by the area specifying means indicates the fluff of the optical member to be inspected.

【0011】また、請求項3記載の光学部材検査装置
は、請求項2において、フィレ測定手段によって測定さ
れた最小フィレを所定の閾値と比較する最小フィレ比較
手段を更に備えるとともに、前記不良要因種別認識手段
が、前記最小フィレの前記最大フィレに対する比率が前
記所定の閾値よりも小さい事を前記比率比較手段による
比較結果が示す場合には、前記最小フィレが前記所定の
閾値よりも小さいと前記最小フィレ比較手段による比較
結果が示すときに限り、前記領域特定手段によって特定
された領域が前記検査対象光学部材のキズを示すと認識
し、それ以外のときには前記領域特定手段によって特定
された領域が前記検査対象光学部材のケバを示すと認識
することで、特定したものである。
According to a third aspect of the present invention, the optical member inspection apparatus according to the second aspect further includes a minimum fillet comparing unit that compares a minimum fillet measured by the fillet measuring unit with a predetermined threshold value, and When the comparison result by the ratio comparing means indicates that the ratio of the minimum fillet to the maximum fillet is smaller than the predetermined threshold, the recognizing means determines that the minimum fillet is smaller than the predetermined threshold. Only when the comparison result by the fillet comparing means indicates, the area specified by the area specifying means is recognized as indicating a flaw in the optical member to be inspected, and otherwise, the area specified by the area specifying means is the It is specified by recognizing that the inspection target optical member shows a fluff.

【0012】また、請求項4記載の光学部材検査装置
は、請求項1において、直交座標に従って画像データを
保持する作業メモリと、前記領域特定手段が特定した領
域を前記画像メモリに格納されている画像データから切
り出して前記作業メモリに貼り付ける画像データ切出手
段とを更に備えるとともに、フィレ測定手段が、前記作
業メモリに貼り付けられた画像データを回転させる画像
データ回転手段と、この画像データ回転手段が前記作業
メモリに貼り付けられた画像データを回転させている間
に前記直交座標の各軸方向における前記領域のフィレを
夫々計測するフィレ計測手段と、前記フィレ計測手段に
よって計測された最大のフィレを前記最大フィレとして
特定する最大フィレ特定手段と、前記フィレ計測手段に
よって計測された最小のフィレを前記最小フィレとして
特定する最小フィレ特定手段とからなることで、特定し
たものである。
According to a fourth aspect of the present invention, in the optical member inspection apparatus according to the first aspect, a work memory for holding image data in accordance with rectangular coordinates and an area specified by the area specifying means are stored in the image memory. Image data cutting means for cutting out the image data and pasting the image data to the working memory, wherein the fillet measuring means rotates the image data pasted to the working memory; Filet measuring means for measuring the fillet of the area in each axis direction of the Cartesian coordinates while the means is rotating the image data pasted on the working memory; and the maximum fillet measured by the fillet measuring means. Maximum fillet specifying means for specifying a fillet as the maximum fillet; and a maximum fillet measured by the fillet measuring means. By becoming a fillet from a minimum fillets specifying means for specifying as the minimum fillet, those identified.

【0013】また、請求項5記載の光学部材検査装置
は、請求項1において、直交座標に従って画像データを
保持する作業メモリと、前記領域特定手段が特定した領
域を前記画像メモリに格納されている画像データから切
り出して前記作業メモリに貼り付ける画像データ切出手
段とを更に備えるとともに、フィレ測定手段が、前記作
業メモリに貼り付けられた画像データの慣性主軸ベクト
ルを測定する慣性主軸ベクトル測定手段と、前記慣性主
軸ベクトルが前記直交座標の何れかの軸方向を向くよう
に前記作業メモリに貼り付けられた画像データを回転さ
せる画像データ回転手段と、この画像データ回転手段に
よる回転後において前記直交座標の各軸方向における前
記領域のフィレを夫々計測するフィレ計測手段と、前記
フィレ計測手段によって計測された各フィレのうち大き
い方を前記最大フィレとして特定する最大フィレ特定手
段と、前記フィレ計測手段によって計測された各フィレ
のうち小さい方を前記最小フィレとして特定する最小フ
ィレ特定手段とからなることで、特定したものである。
According to a fifth aspect of the present invention, in the optical member inspection apparatus according to the first aspect, a work memory for holding image data in accordance with rectangular coordinates and an area specified by the area specifying means are stored in the image memory. Image data extracting means for cutting out from the image data and pasting it to the working memory, and a fillet measuring means for measuring an inertial principal axis vector of the image data pasted to the working memory; and Image data rotating means for rotating image data pasted on the working memory such that the inertia principal axis vector is oriented in any axis direction of the rectangular coordinates, and the rectangular coordinates after rotation by the image data rotating means. A fillet measuring means for measuring the fillet of the area in each axial direction, and a fillet measuring means. Maximum fillet specifying means for specifying the larger one of the fillets measured as the maximum fillet, and minimum fillet specifying means for specifying the smaller one of the fillets measured by the fillet measuring means as the minimum fillet. That is what we have identified.

【0014】また、請求項6記載の光学部材検査装置
は、請求項1において、直交座標に従って画像データを
保持する作業メモリと、前記領域特定手段が特定した領
域を前記画像メモリに格納されている画像データから切
り出して前記作業メモリに貼り付ける画像データ切出手
段とを更に備えるとともに、フィレ測定手段が、前記作
業メモリに貼り付けられた画像データの慣性主軸ベクト
ルを測定する慣性主軸ベクトル測定手段と、前記慣性主
軸ベクトルと平行な方向及び直交する方向における前記
領域のフィレを夫々計測するフィレ計測手段と、前記フ
ィレ計測手段によって計測された前記慣性主軸ベクトル
と平行な方向におけるフィレを前記最大フィレとして特
定する最大フィレ特定手段と、前記フィレ計測手段によ
って計測された前記慣性主軸ベクトルに直交する方向に
おけるフィレを前記最小フィレとして特定する最小フィ
レ特定手段とからなることで、特定したものである。
According to a sixth aspect of the present invention, in the optical member inspection apparatus according to the first aspect, a work memory for storing image data in accordance with rectangular coordinates and an area specified by the area specifying means are stored in the image memory. Image data extracting means for cutting out from the image data and pasting it to the working memory, and a fillet measuring means for measuring an inertial principal axis vector of the image data pasted to the working memory; and A fillet measuring means for measuring the fillet of the region in a direction parallel to and perpendicular to the inertial principal axis vector, and a fillet in a direction parallel to the inertial principal axis vector measured by the fillet measuring means as the maximum fillet. The maximum fillet specifying means for specifying, and the The fillet in a direction perpendicular to sexual principal axis vector that consists of a minimum fillets specifying means for specifying as the minimum fillet, those identified.

【0015】また、請求項7記載の画像処理装置は、検
査対象光学部材を撮像して得られた画像データを格納す
る画像メモリと、この画像メモリに格納されている画像
データ中から前記検査対象光学部材の不良要因を示す領
域を特定する領域特定手段と、この領域特定手段によっ
て特定された領域の最大フィレ及び最小フィレを夫々測
定するフィレ測定手段と、このフィレ測定手段によって
測定された最大フィレと最小フィレとの比率を所定の閾
値と比較する比率比較手段と、この比率比較手段による
比較結果に基づいて、前記領域特定手段によって特定さ
れた領域が前記検査対象光学部材のキズ及びケバの何れ
かを示すのかの認識を行う不良要因種別認識手段とを、
備えたことを特徴とする。
According to a seventh aspect of the present invention, there is provided an image processing apparatus comprising: an image memory for storing image data obtained by imaging an optical member to be inspected; and an image memory for storing the image data to be inspected from the image data stored in the image memory. Area specifying means for specifying an area indicating a cause of failure of the optical member; fillet measuring means for measuring the maximum fillet and minimum fillet of the area specified by the area specifying means; and maximum fillet measured by the fillet measuring means. A ratio comparing unit that compares a ratio of the minimum fillet to a predetermined threshold value, and a region specified by the region specifying unit based on a comparison result obtained by the ratio comparing unit. And a failure factor type recognizing means for recognizing whether or not
It is characterized by having.

【0016】また、請求項8記載のコンピュータ可読媒
体は、画像メモリを備えたコンピュータに対して、検査
対象光学部材を撮像して得られた画像データを前記画像
メモリに格納させ、この画像メモリに格納されている画
像データ中から前記検査対象光学部材の不良要因を示す
領域を特定させ、特定した領域の最大フィレ及び最小フ
ィレを夫々測定させ、測定した最大フィレと最小フィレ
との比率を所定の閾値と比較させ、この比較結果に基づ
いて前記特定された領域が前記検査対象光学部材のキズ
及びケバの何れかを示すのかの認識を行わさせるプログ
ラムを、格納したことを特徴とする。
According to another aspect of the present invention, a computer having an image memory stores image data obtained by imaging an optical member to be inspected in the image memory. From the stored image data, an area indicating a cause of failure of the inspection target optical member is specified, the maximum fillet and the minimum fillet of the specified area are respectively measured, and the ratio between the measured maximum fillet and the minimum fillet is determined by a predetermined value. A program is stored which is compared with a threshold value and which recognizes, based on a result of the comparison, whether the specified area indicates a flaw or a fluff of the optical member to be inspected.

【0017】[0017]

【発明の実施の形態】以下、図面に基づいて、本発明の
実施の形態を説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0018】[0018]

【実施形態1】 <光学部材検査装置の構成>本第1実施形態による光学
部材検査装置の概略構成を、図1の側面断面図に示す。
この図1に示すように、光学部材検査装置を構成する照
明ランプ1,拡散板2,及び撮像装置3は、同一の光軸
l上に配置されている。
First Embodiment <Configuration of Optical Member Inspection Apparatus> The schematic configuration of an optical member inspection apparatus according to the first embodiment is shown in a side sectional view of FIG.
As shown in FIG. 1, the illumination lamp 1, the diffusion plate 2, and the imaging device 3 that constitute the optical member inspection device are arranged on the same optical axis l.

【0019】この撮像装置3は、正レンズ系である撮像
レンズ4と、この撮像レンズ4によって収束された光に
よる像を撮像する撮像素子(複数の画素を一方向に並べ
てなるCCDラインセンサ)5とから、構成されてい
る。図1において、撮像素子5は、左右にその画素列を
向かせるように設置されている。また、撮像素子5の画
素列は、その中央において、撮像レンズ4の光軸lと垂
直に交わっている。なお、撮像レンズ4は、撮像装置3
内において撮像素子5に対して進退自在(ピント調節可
能)であり、撮像装置3自体も、光軸l方向に進退調整
し得る様に光学部材検査装置の図示せぬフレームに取り
付けられている。
The image pickup apparatus 3 includes an image pickup lens 4 as a positive lens system, and an image pickup element (CCD line sensor having a plurality of pixels arranged in one direction) 5 for picking up an image formed by light converged by the image pickup lens 4. And from. In FIG. 1, the image sensor 5 is installed so that its pixel row is directed to the left and right. The pixel array of the image sensor 5 intersects with the optical axis 1 of the image pickup lens 4 perpendicularly at the center. Note that the imaging lens 4 is
The image pickup device 3 is attached to a frame (not shown) of the optical member inspection device so that the image pickup device 3 itself can move forward and backward in the direction of the optical axis l.

【0020】撮像素子5は、所定時間(各画素に電荷が
適度に蓄積する程度の時間)毎にライン状に画像を繰り
返し撮像し、画素の並び順に各画素を自己走査して、各
画素に蓄積した電荷を出力する。このようにして撮像素
子5から出力された電荷は、所定の増幅処理やA/D変
換処理を受けた後に、1ライン分の輝度信号からなる画
像データとして、制御装置6に入力される。
The image pickup element 5 repeatedly picks up an image in a line at predetermined time intervals (a period in which electric charges are appropriately accumulated in each pixel), and scans each pixel in the order in which the pixels are arranged. Output the accumulated charge. The charges output from the image sensor 5 in this manner are subjected to predetermined amplification processing and A / D conversion processing, and then input to the control device 6 as image data including luminance signals for one line.

【0021】検査対象光学部材14は、撮像装置3側か
ら見た平面図である図2に示す様に円形のレンズであ
り、光学部材検査装置の図示せぬフレームに取り付けら
れたホルダ15によって、撮像レンズ4に関してその表
面(撮像レンズ4に対向する面)が撮像素子5の撮像面
と共役となるように、保持されている。このホルダ15
は、撮像レンズ4の光軸lを中心とした環状の形状を有
しており、検査対象光学部材14の周縁をその全周に亘
って保持する。従って、検査対象光学部材14の周縁の
中心と光軸とが一致している限り、検査対象光学部材1
4の光軸は、撮像レンズ4の光軸lに対して同軸とな
る。
The optical member 14 to be inspected is a circular lens as shown in FIG. 2 which is a plan view as viewed from the side of the image pickup device 3, and is held by a holder 15 attached to a frame (not shown) of the optical member inspection device. The imaging lens 4 is held such that its surface (the surface facing the imaging lens 4) is conjugate with the imaging surface of the imaging element 5. This holder 15
Has an annular shape centered on the optical axis l of the imaging lens 4, and holds the periphery of the inspection target optical member 14 over the entire periphery thereof. Therefore, as long as the center of the peripheral edge of the inspection target optical member 14 and the optical axis coincide with each other, the inspection target optical member 1
The optical axis 4 is coaxial with the optical axis 1 of the imaging lens 4.

【0022】また、ホルダ15は、撮像レンズ4の光軸
lを中心として、光軸lに直交する面内で回転可能とな
っている。そして、このホルダ15の周縁には、環状ギ
ア16が形成されている。この環状ギア16は、駆動モ
ータ8の駆動軸に取り付けられたピニオンギア7に噛合
している。従って、駆動モータ8がその駆動軸を回転さ
せると、両ギア7,16を介してホルダ15が回転駆動
を受け、ホルダ15に保持されている検査対象光学部材
14が、光軸lに直交する面内において回転駆動され
る。
The holder 15 is rotatable about an optical axis l of the imaging lens 4 in a plane orthogonal to the optical axis l. An annular gear 16 is formed on the periphery of the holder 15. This annular gear 16 meshes with the pinion gear 7 attached to the drive shaft of the drive motor 8. Accordingly, when the drive motor 8 rotates its drive shaft, the holder 15 is rotationally driven via the two gears 7 and 16, and the inspection target optical member 14 held by the holder 15 is orthogonal to the optical axis l. It is rotationally driven in the plane.

【0023】なお、撮像レンズ4の倍率(即ち、撮像装
置3自体の位置,及び撮像レンズ4の撮像素子5に対す
る位置)は、検査対象光学部材14の直径方向における
全幅を撮像素子5の撮像面に結像し得るように、調整さ
れている。図2においては、撮像素子5によって撮像さ
れ得る一ライン分の撮像対象領域が、二点鎖線によって
示されている。
The magnification of the image pickup lens 4 (ie, the position of the image pickup device 3 itself and the position of the image pickup lens 4 with respect to the image pickup element 5) is determined by the total width in the diameter direction of the optical member 14 to be inspected. Is adjusted so that an image can be formed. In FIG. 2, an imaging target area for one line that can be imaged by the imaging element 5 is indicated by a two-dot chain line.

【0024】照明ランプ1は、照明光(白色光)を発光
する白熱ランプであり、光学部材検査装置の図示せぬフ
レームに固定されている。この照明ランプ1と検査対象
光学部材14との間に配置されている拡散板2は、図2
に示すように、検査対象光学部材14よりも大径な円盤
形状を有しており、その表面は粗面として加工されてい
る。従って、この拡散板2は、照明ランプ1から出射さ
れた照明光をその裏面全面で受けて、検査対象光学部材
14に向けて拡散することができる。なお、この拡散板
2は、その中心において撮像レンズ4の光軸lと直交す
る様に、光学部材検査装置の図示せぬフレームに固定さ
れている。
The illumination lamp 1 is an incandescent lamp that emits illumination light (white light), and is fixed to a frame (not shown) of the optical member inspection device. The diffusing plate 2 disposed between the illumination lamp 1 and the optical member 14 to be inspected has a structure shown in FIG.
As shown in (1), it has a disk shape larger in diameter than the optical member 14 to be inspected, and its surface is processed as a rough surface. Accordingly, the diffusion plate 2 can receive the illumination light emitted from the illumination lamp 1 on the entire back surface and diffuse the illumination light toward the optical member 14 to be inspected. The diffusion plate 2 is fixed to a frame (not shown) of the optical member inspection device so that the center of the diffusion plate 2 is orthogonal to the optical axis 1 of the imaging lens 4.

【0025】この拡散板2の表面上には、帯状の形状を
有する遮光板9が、その長手方向を撮像素子5の画素列
の方向と平行な方向に向けて、貼り付けられている。こ
の遮光板9の中心は撮像レンズ4の光軸lと一致してい
る。また、遮光板9の長手方向における全長は検査対象
光学部材14の直径よりも長い。そして、図2に示すよ
うに、撮像装置3の位置から見ると、遮光板9の両端
は、検査対象光学部材14の外縁よりも外側にはみ出し
ている。また、遮光板9の幅は、撮像素子5の画素列の
方向に直交する方向における光学部材検査装置の断面図
である図4に示すように、撮像素子5の各画素に入射す
る光の周縁光線m,mの間隔よりも広い。
A light-shielding plate 9 having a band shape is attached on the surface of the diffusion plate 2 with its longitudinal direction oriented parallel to the direction of the pixel rows of the image sensor 5. The center of the light shielding plate 9 coincides with the optical axis l of the imaging lens 4. The total length of the light shielding plate 9 in the longitudinal direction is longer than the diameter of the optical member 14 to be inspected. Then, as shown in FIG. 2, when viewed from the position of the imaging device 3, both ends of the light shielding plate 9 protrude outside the outer edge of the inspection target optical member 14. Further, as shown in FIG. 4 which is a cross-sectional view of the optical member inspection apparatus in a direction orthogonal to the direction of the pixel rows of the image sensor 5, the width of the light shielding plate 9 is the margin of light incident on each pixel of the image sensor 5. It is wider than the interval between the light beams m and m.

【0026】制御装置6は、撮像装置3から入力された
画像データに基づいて検査対象光学部材14が良品であ
るか不良品であるかの判定を行うとともに、この判定に
伴って駆動モータ8に駆動電流を供給する処理装置であ
る。
The control device 6 determines whether the optical member 14 to be inspected is a non-defective product or a defective product based on the image data input from the image pickup device 3. This is a processing device that supplies a drive current.

【0027】図3は、この制御装置6の内部回路構成を
示すブロック図である。図3に示す様に、制御装置6
は、バスBを介して相互に接続されたCPU60,フレ
ームメモリ61,ホストメモリ62,及びモータ駆動回
路63から、構成されている。
FIG. 3 is a block diagram showing the internal circuit configuration of the control device 6. As shown in FIG.
Is composed of a CPU 60, a frame memory 61, a host memory 62, and a motor drive circuit 63 which are interconnected via a bus B.

【0028】フレームメモリ61は、撮像装置3から入
力された画像データが書き込まれるバッファである。ホ
ストメモリ62は、画像メモリ領域62a,作業メモリ
領域62b,及び、CPU60にて実行される画像処理
プログラムを格納するコンピュータ可読媒体としての画
像処理プログラム格納領域62cを、含んでいる。この
うち、画像メモリ領域62aは、フレームメモリ61に
書き込まれた画像データが所定時間毎に先頭行から行単
位で書き込まれる領域である。この画像メモリ領域62
aに書き込まれた画像データは、撮像装置3での撮像方
式故に極座標系によるデータ(極座標データ)である
が、CPU60が画像処理プログラムを実行して座標変
換(極座標−直交座標変換)を施すことにより、直交座
標系によるデータ(直交座標データ)に変換される。作
業メモリ領域62bは、CPU60が画像処理プログラ
ムを実行して画像メモリ領域62aから切り出した各不
良要因毎の画像データを直交座標に従って一時格納する
領域である。
The frame memory 61 is a buffer in which image data input from the imaging device 3 is written. The host memory 62 includes an image memory area 62a, a work memory area 62b, and an image processing program storage area 62c as a computer-readable medium for storing an image processing program executed by the CPU 60. The image memory area 62a is an area in which the image data written in the frame memory 61 is written every predetermined time from the top row in row units. This image memory area 62
The image data written in a is data based on the polar coordinate system (polar coordinate data) because of the imaging method of the imaging device 3, but the CPU 60 executes the image processing program to perform the coordinate conversion (polar coordinate-rectangular coordinate conversion). Is converted into data in a rectangular coordinate system (rectangular coordinate data). The work memory area 62b is an area in which the CPU 60 executes the image processing program and temporarily stores image data for each defect factor cut out from the image memory area 62a in accordance with rectangular coordinates.

【0029】モータ駆動回路63は、撮像装置3側から
見てホルダ15及び検査対象光学部材14が反時計方向
に等速回転する様に駆動モータ8を駆動させる駆動電流
を、この駆動モータ8に供給する。
The motor drive circuit 63 supplies a drive current for driving the drive motor 8 such that the holder 15 and the optical member 14 to be inspected rotate counterclockwise at a constant speed when viewed from the imaging device 3 side. Supply.

【0030】CPU60は、制御装置6全体の制御を行
うコンピュータであり、領域特定手段,画像データ切出
手段,フィレ測定手段,比率比較手段,最小フィレ比較
手段,及び、不良要因種別認識手段に、相当する。即
ち、CPU60は、ホストメモリ62の画像処理プログ
ラム格納領域62cに格納されている画像処理プログラ
ムを実行し、フレームメモリ61に書き込まれた画像デ
ータを定期的にホストメモリ62の画像メモリ領域62
aに書き写すとともに、画像メモリ領域62a中に検査
対象光学部材14全体に対応する極座標データが合成さ
れた時点でこの極座標データを直交座標データに変換す
る。そして、CPU60は、直交座標データ中に不良要
因があるか否かを検知し、検知した各不良要因の画像を
切り出して作業メモリ62bに貼り付け、作業メモリ6
2b上においてその種別を認識する。さらに、CPU6
0は、全不良要因をその種別毎に分類し、分類した種別
毎に不良要因の特徴量を統計し、統計結果に基づいて良
否判定を行う。また、CPU60は、フレームメモリ6
1からの画像データ取り込みを行うのと同期して、モー
タ駆動回路63に対して、駆動電流を駆動モータ8に供
給させる指示を行う。
The CPU 60 is a computer for controlling the entire control device 6, and includes an area specifying unit, an image data extracting unit, a fillet measuring unit, a ratio comparing unit, a minimum fillet comparing unit, and a defect factor type recognizing unit. Equivalent to. That is, the CPU 60 executes the image processing program stored in the image processing program storage area 62c of the host memory 62, and periodically stores the image data written in the frame memory 61 in the image memory area 62c of the host memory 62.
a, and when the polar coordinate data corresponding to the entire inspection target optical member 14 is synthesized in the image memory area 62a, the polar coordinate data is converted into rectangular coordinate data. Then, the CPU 60 detects whether or not there is a defect factor in the orthogonal coordinate data, cuts out an image of each detected defect factor, pastes the image into the work memory 62b, and
The type is recognized on 2b. Further, the CPU 6
A value of 0 classifies all failure factors for each type, statistic features of the failure factors for each classified type, and determines pass / fail based on the statistical result. In addition, the CPU 60 controls the frame memory 6
An instruction to supply a drive current to the drive motor 8 is issued to the motor drive circuit 63 in synchronization with the capture of image data from No. 1.

【0031】<不良要因検出の原理>以上のように構成
される光学部材検査装置において、図4の面内では、撮
像レンズ4に入射して撮像素子5の各画素に入射し得る
光は、撮像レンズ4の光軸lに沿った光線を主光線とす
る光束であり且つ図4に示される周縁光線m,m間を通
る光のみである。この周縁光線m,mを逆方向に辿る
と、検査対象光学部材14の表面において交差した後
に、拡散板2に向かって拡がっている。そして、拡散板
2上において、この周縁光線m,mの間が遮光板9によ
って遮られている。従って、図4に示すように、検査対
象光学部材14における撮像素子5による撮像対象領域
(撮像レンズ4に関して撮像素子5の画素列の受光面と
共役な部位及び光軸方向におけるその近傍)に不良要因
がないとすると、撮像素子5の各画素に入射する光はな
い。即ち、拡散板2の表面における遮光板9の側方箇所
から拡散した光nは、検査対象光学部材14における撮
像対象領域を透過するが、周縁光線m,mの外側を通る
ので、撮像レンズ4には入射しない。また、拡散板2の
表面における遮光板9の側方箇所から拡散して検査対象
光学部材14における撮像対象領域以外の箇所を透過し
た光は、撮像レンズ4に入射し得るが、撮像素子5の各
画素上には収束されない。そのため、撮像装置3から出
力される画像データは、検査対象光学部材14の外縁に
対応する明部(側面での拡散光に因る)を除き、全域に
おいて暗くなっている。
<Principle of Failure Factor Detection> In the optical member inspection apparatus configured as described above, in the plane of FIG. 4, light that can enter the image pickup lens 4 and enter each pixel of the image pickup element 5 is: It is a light beam having a light ray along the optical axis l of the imaging lens 4 as a principal ray, and only light passing between the marginal rays m, m shown in FIG. When the marginal rays m, m are traced in the opposite direction, they intersect at the surface of the inspection target optical member 14 and then spread toward the diffusion plate 2. Then, on the diffusion plate 2, the space between the marginal rays m, m is shielded by the light shielding plate 9. Therefore, as shown in FIG. 4, the image pickup target area of the optical element 14 to be inspected by the image pickup element 5 (a part conjugate with the light receiving surface of the pixel array of the image pickup element 5 with respect to the image pickup lens 5 and its vicinity in the optical axis direction) is defective. If there is no factor, no light is incident on each pixel of the image sensor 5. That is, the light n diffused from the side of the light-shielding plate 9 on the surface of the diffusion plate 2 is transmitted through the imaging target region in the inspection target optical member 14, but passes outside the marginal rays m, m. Does not enter. The light diffused from the side of the light-shielding plate 9 on the surface of the diffusion plate 2 and transmitted through a portion of the inspection target optical member 14 other than the imaging target region can enter the imaging lens 4. It does not converge on each pixel. Therefore, the image data output from the imaging device 3 is dark over the entire area except for a bright portion (due to diffused light on the side surface) corresponding to the outer edge of the inspection target optical member 14.

【0032】これに対して、図2に示すように、検査対
象光学部材14表面における撮像対象領域内にキズC及
びゴミDがある場合、図5に示すように、拡散板2の表
面における遮光板9の側方箇所から拡散した光nがこれ
らキズC及びゴミDに当たると、この光がこれらキズC
及びゴミDによって拡散される。この拡散光n’は、周
縁光線m,mの交点を中心として発散するので、その一
部は、撮像レンズ4を介して撮像素子5の画素上に入射
する。従って、キズC及びゴミDの像(周囲よりも明る
い像)が撮像素子5の撮像面に形成される。
On the other hand, as shown in FIG. 2, when there are a flaw C and a dust D in the imaging target area on the surface of the optical member 14 to be inspected, as shown in FIG. When the light n diffused from the side portion of the plate 9 hits these flaws C and dust D, this light
And dust D. The diffused light n ′ diverges around the intersection of the marginal rays m, m, and a part of the light is incident on the pixels of the image sensor 5 via the image pickup lens 4. Therefore, images of the flaw C and the dust D (images brighter than the surroundings) are formed on the imaging surface of the imaging element 5.

【0033】撮像素子5による撮像(電荷蓄積及び走
査)は、駆動モータ8による検査対象光学部材14の回
転と同期して、この検査対象光学部材14が所定角度だ
け回転する毎に行われる。そして、撮像素子5による撮
像(電荷蓄積及び走査)がなされる毎に、ライン状の画
像データが、制御装置6のフレームメモリ61に書き込
まれて、ホストメモリ62の画像メモリ領域62aに取
り込まれる。その結果、検査対象光学部材14が回転す
るにつれて、画像メモリ領域62aの各行には、撮像装
置3によって撮像された各ライン状画像データが、先頭
行から順に書き込まれる。
The image pickup (charge accumulation and scanning) by the image pickup device 5 is performed every time the inspection target optical member 14 rotates by a predetermined angle in synchronization with the rotation of the inspection target optical member 14 by the drive motor 8. Then, every time imaging (charge accumulation and scanning) is performed by the imaging element 5, the linear image data is written into the frame memory 61 of the control device 6 and taken into the image memory area 62 a of the host memory 62. As a result, as the inspection target optical member 14 rotates, each line of image data captured by the imaging device 3 is sequentially written in each row of the image memory area 62a from the top row.

【0034】検査対象光学部材14が半回転した時点で
ホストメモリ62の画像メモリ領域62aに格納されて
いる画像データ(極座標データ)の横軸は、検査対象光
学部材14の中心(光軸)Oからの径方向における距離
を示し、縦軸は、点A,B間を結ぶ直径を基準とした検
査対象光学部材14の回転角を示す。制御装置6のCP
U60は、上述したように、この極座標データを直交座
標データへ変換する。
The horizontal axis of the image data (polar coordinate data) stored in the image memory area 62a of the host memory 62 when the optical member 14 to be inspected makes a half rotation is the center (optical axis) O of the optical member 14 to be inspected. , And the vertical axis indicates the rotation angle of the inspection target optical member 14 based on the diameter connecting the points A and B. CP of control device 6
U60 converts the polar coordinate data into rectangular coordinate data as described above.

【0035】極座標データの全画素に関してこのような
座標変換が完了すると、画像メモリ領域62aに格納さ
れている画像データ(直交座標データ)は、検査対象光
学部材14をエリアセンサによって撮像して得た画像デ
ータと略等価となる。従って、不良要因の位置如何に拘
わらず、直交座標データ中の不良要因の面積は、実際の
不良要因の面積に正比例し、直交座標データ中の不良要
因の形状は、実際の不良要因の形状と相似となる。その
ために、この画像メモリ領域62aに格納されている画
像データに基づいて、CPU60が良否判定を行えるよ
うになるのである。
When such coordinate conversion is completed for all the pixels of the polar coordinate data, the image data (orthogonal coordinate data) stored in the image memory area 62a is obtained by imaging the optical member 14 to be inspected by the area sensor. It is substantially equivalent to image data. Therefore, regardless of the position of the defect factor, the area of the defect factor in the rectangular coordinate data is directly proportional to the area of the actual defect factor, and the shape of the defect factor in the rectangular coordinate data is the same as the shape of the actual defect factor. Be similar. Therefore, based on the image data stored in the image memory area 62a, the CPU 60 can make a pass / fail judgment.

【0036】<不良要因の種別の認識原理>次に、上述
した不良要因の種別の認識原理を説明する。この種別の
認識は、不良要因が点状欠点(光学部材内に混入したか
光学部材表面に付着したゴミ,等)であるか線状欠点で
あるかを判定する第1段階と、不良要因が線状欠点であ
る場合にその不良要因がキズであるかケバであるかを判
定する第2段階とからなる。
<Principle of Recognition of Type of Failure Factor> Next, the principle of recognition of the type of failure factor described above will be described. Recognition of this type includes a first step of determining whether the defect factor is a point defect (dust mixed in the optical member or dust adhering to the surface of the optical member) or a linear defect; If the defect is a linear defect, the second step is to determine whether the cause of the defect is a flaw or a fluff.

【0037】図6は、画像メモリ領域62aから作業メ
モリ領域62bに書き写された不良要因(ケバ)の画像
データを示している。なお、この作業メモリ領域62b
は、直交座標系である。この図6に示されるように、不
良要因のx軸方向における最大幅は、「xフィレ」と定
義され、y軸方向における最大幅は、「yフィレ」と定
義される。そして、xフィレ及びyフィレのうち大きい
方の他方に対する比率は、「フィレ比」と定義される。
FIG. 6 shows the image data of the cause of the defect (burr) written from the image memory area 62a to the working memory area 62b. The working memory area 62b
Is an orthogonal coordinate system. As shown in FIG. 6, the maximum width in the x-axis direction of the failure factor is defined as “x fillet”, and the maximum width in the y-axis direction is defined as “y fillet”. The ratio of the larger one of the x fillet and the y fillet to the other is defined as “filler ratio”.

【0038】ところで、xフィレ及びyフィレは、図1
3及び図14に示すように、作業メモリ領域62b内で
不良要因の画像データが回転するとともに変動する。そ
して、このような回転中において最大値となったxフィ
レ又はyフィレの値は「最大フィレ」と定義され、最小
値となったyフィレ又はxフィレの値を「最小フィレ」
と定義される。また、最大フィレに対する最小フィレの
比率は、「最大フィレ比」と定義される。
Incidentally, the x fillet and the y fillet are shown in FIG.
As shown in FIG. 3 and FIG. 14, the image data of the defective factor rotates and fluctuates in the work memory area 62b. Then, the value of the x fillet or y fillet that has become the maximum value during such rotation is defined as “maximum fillet”, and the value of the y fillet or x fillet that has become the minimum value is “minimum fillet”.
Is defined as The ratio of the minimum fillet to the maximum fillet is defined as “maximum fillet ratio”.

【0039】このような定義の結果、点状欠点の場合、
不良要因の画像データの回転位置如何に拘わらずxフィ
レの値とyフィレの値とは非常に近くなるので、フィレ
比は非常に高い値となる。但し、このフィレ比は、不良
要因の画像データの回転位置に従って、多少変動する。
しかしながら、不良要因の画像データの回転に伴ってフ
ィレ比が最小(50%)となった場合には、xフィレ及
びyフィレの積(図6に示す矩形領域の面積)に対する
不良要因自体の面積の比(以下、「占有率」という)が
最大(100%)となり、フィレ比が最大(100%)
となった場合には占有率が最小(50%)となる。従っ
て、不良要因が点状欠点であるか線状欠点であるかを認
識するための第1段階の認識には、図7のようにフィレ
比に対して占有率が逆比例している閾値関数が用意さ
れ、不良要因の画像データの回転位置如何に拘わらず、
その不良要因について測定されたフィレ比と占有率との
組み合わせがこの閾値関数を超えていれば、この不良要
因が点状欠点であると認識する。
As a result of such a definition, in the case of a point defect,
The value of the x fillet and the value of the y fillet are very close irrespective of the rotational position of the defective image data, so that the fillet ratio is a very high value. However, the fillet ratio slightly fluctuates in accordance with the rotational position of the image data that causes the failure.
However, when the fillet ratio becomes minimum (50%) with the rotation of the image data of the defect factor, the area of the defect factor itself with respect to the product of the x fillet and the y fillet (the area of the rectangular area shown in FIG. 6). (Hereinafter referred to as “occupancy ratio”) is the maximum (100%), and the fillet ratio is the maximum (100%)
Is satisfied, the occupancy becomes the minimum (50%). Therefore, in the first stage recognition for recognizing whether the defect factor is a point defect or a linear defect, a threshold function whose occupancy is inversely proportional to the fillet ratio as shown in FIG. Is prepared, regardless of the rotation position of the image data of the defect factor,
If the combination of the fillet ratio and the occupancy measured for the cause of the defect exceeds this threshold function, it is recognized that the cause of the defect is a point defect.

【0040】しかしながら、これらフィレ比及び占有率
に基づいては、線状欠点がキズであるか或いはケバであ
るかの認識はできない。なぜならば、キズの画像データ
の回転位置及びフィレの画像データの回転位置如何で
は、ケバのフィレ比がキズのフィレ比よりも高くなる可
能性があるからである。
However, based on the fillet ratio and the occupancy, it is not possible to recognize whether the linear defect is a flaw or a fluff. This is because, depending on the rotational position of the image data of the flaw and the rotational position of the image data of the fillet, the fillet ratio of the fluff may be higher than the fillet ratio of the flaw.

【0041】ところで、キズは直線からなるが故に最大
フィレ幅に対する最小フィレの比率が非常に低い一方、
ケバは曲線からなることが多い故に最大フィレに対する
最小フィレの比率がキズの場合よりも高くなることが多
いという特性がある。そのため、線状欠点がキズである
かケバであるかを認識するための第2段階の認識には、
最大フィレ比が用いられ、図8に示すように、最大フィ
レ比が50%以上である場合には常にケバであると認識
される。但し、ケバが直線状である可能性を考慮する
と、最大フィレ比が50%未満である場合には、線状欠
点がキズであるかケバであるかの認識はできない。この
場合には、キズが絶対的に細いという前提に立ち、最小
フィレ自体の値が用いられ、図8に示すように、最小フ
ィレのドット数(1ドットに対応する検査対象光学部材
14の表面における長さは、50μmであるとする)が
15ドット未満である場合には、線状欠点がキズである
と認識され、15ドット以上である場合には、線状欠点
がケバであると認識される。
Meanwhile, the ratio of the minimum fillet to the maximum fillet width is very low because the scratch is formed by a straight line.
The fluff often has a characteristic that the ratio of the minimum fillet to the maximum fillet is often higher than the case of a flaw because the fluff is composed of a curve. Therefore, in the second stage recognition for recognizing whether the linear defect is a flaw or a fluff,
The maximum fillet ratio is used, and as shown in FIG. 8, when the maximum fillet ratio is 50% or more, it is always recognized as a fluff. However, in consideration of the possibility that the fluff is linear, if the maximum fillet ratio is less than 50%, it cannot be recognized whether the linear defect is flawed or fluffy. In this case, on the assumption that the scratch is absolutely thin, the value of the minimum fillet itself is used, and as shown in FIG. 8, the number of dots of the minimum fillet (the surface of the inspection target optical member 14 corresponding to one dot) is used. If the length is less than 15 dots, the linear defect is recognized as being flawed, and if it is 15 dots or more, the linear defect is recognized as being fuzzy. Is done.

【0042】<制御処理>次に、上述した不良要因検出
の原理及び不良要因の種別の認識原理に基づいた良否判
定を行うために、画像処理プログラム格納領域62cか
ら読み出した画像処理プログラムに従って制御装置6
(CPU60)が実行する制御処理の内容を、図9乃至
図11のフローチャートを用いて説明する。
<Control Processing> Next, in order to make a pass / fail judgment based on the principle of detecting the cause of the defect and the principle of recognizing the type of the cause of the defect, the control device according to the image processing program read from the image processing program storage area 62c. 6
The contents of the control processing executed by the (CPU 60) will be described with reference to the flowcharts of FIGS.

【0043】図9の制御処理は、制御装置6に接続され
た図示せぬ検査開始ボタンが押下されることによりスタ
ートする。スタート後最初のS001では、CPU60
は、モータ駆動回路63に対して駆動モータ8への駆動
電流の供給を指示し、検査対象光学部材14を等速回転
させる。
The control process shown in FIG. 9 starts when an unillustrated inspection start button connected to the control device 6 is pressed. In the first S001 after the start, the CPU 60
Instructs the motor drive circuit 63 to supply a drive current to the drive motor 8, and rotates the inspection target optical member 14 at a constant speed.

【0044】次のS002では、CPU60は、撮像装
置3からフレームメモリ61に書き込まれた画像データ
を、ホストメモリ62の画像メモリ領域62aへ格納す
る。次のS003では、CPU60は、S002での画
像データの格納によって画像メモリ領域62a内に検査
対象光学部材14全体に対応する極座標データが合成さ
れたかどうかをチェックする。そして、未だ検査対象光
学部材14全体に対応する極座標データが合成されてい
ない場合には、処理をS002に戻し、撮像装置3が次
の撮像による画像データをフレームメモリ61に書き込
むのを待つ。
In the next step S002, the CPU 60 stores the image data written from the imaging device 3 into the frame memory 61 in the image memory area 62a of the host memory 62. In the next S003, the CPU 60 checks whether or not the polar coordinate data corresponding to the entire inspection target optical member 14 has been combined in the image memory area 62a by storing the image data in S002. If the polar coordinate data corresponding to the entire inspection target optical member 14 has not been synthesized yet, the process returns to S002, and waits for the imaging device 3 to write the image data obtained by the next imaging to the frame memory 61.

【0045】これに対して、検査対象光学部材14全体
に対応する極座標データが合成された場合には、CPU
60は、S004において、この極座標データに対して
極座標−直交座標変換を実行する。
On the other hand, when the polar coordinate data corresponding to the entire inspection target optical member 14 is synthesized, the CPU
In step S004, the polarizer 60 performs a polar coordinate-rectangular coordinate conversion on the polar coordinate data.

【0046】次のS005では、CPU60は、ラベリ
ング工程を実行する。即ち、CPU60は、画像メモリ
領域62a内に格納されている画像データ(直交座標デ
ータ)から所定閾値以上の輝度値を有する一連の画素か
らなる領域を抽出し、抽出した各領域に対して夫々一意
の番号(ラベル)n(n=1,2,3,……)を付与す
る(領域特定手段に相当)。
In the next S005, the CPU 60 executes a labeling step. That is, the CPU 60 extracts, from the image data (orthogonal coordinate data) stored in the image memory area 62a, an area composed of a series of pixels having a luminance value equal to or greater than a predetermined threshold value, and uniquely identifies each extracted area. (Labels) n (n = 1, 2, 3,...) (Corresponding to area specifying means).

【0047】次のS006では、CPU60は、種別認
識対象たる不良要因を特定するための変数iを初期化し
て、“1”と設定する(領域特定手段に相当)。次のS
007では、CPU60は、i番目の不良要因の種別認
識処理を実行する。図10は、このS007にて実行さ
れる不良要因の種別認識処理サブルーチンを示す。この
サブルーチンに入って最初のS101では、CPU60
は、i番目の不良要因の画像を、画像メモリ領域62a
に格納されている画像データ(直交座標データ)から切
り出して、作業メモリ領域62bに貼り付ける(画像デ
ータ切出手段に相当)。
In the next step S006, the CPU 60 initializes a variable i for specifying the cause of the defect whose type is to be recognized, and sets it to "1" (corresponding to the area specifying means). Next S
In 007, the CPU 60 executes the type recognition process of the i-th defect factor. FIG. 10 shows a subroutine for recognizing the type of a defect factor executed in S007. In the first step S101 after entering this subroutine, the CPU 60
Stores the image of the i-th defect factor in the image memory area 62a.
Is cut out from the image data (orthogonal coordinate data) stored in the storage area 62b and pasted into the work memory area 62b (corresponding to an image data cutting means).

【0048】次のS102では、CPU60は、作業メ
モリ領域62bに貼り付けた不良要因の画像データの面
積(画素総数)を求める。次のS103では、CPU6
0は、その時点での回転位置における不良要因のxフィ
レ及びyフィレを測定する。
In the next step S102, the CPU 60 obtains the area (total number of pixels) of the image data of the defective factor attached to the working memory area 62b. In the next S103, the CPU 6
0 measures the x fillet and the y fillet of the defective factor at the rotational position at that time.

【0049】次のS104では、CPU60は、S10
3にて求めたxフィレ及びyフィレに対して下記式
(1)を実行することによって、フィレ比を算出する。 フィレ比=小さい方のフィレ/大きい方のフィレ×100 …(1) また、CPU60は、S103にて求めたxフィレ及び
yフィレ,並びに、S102にて求めた不良要因の面積
に対して下記式(2)を実行することによって、占有率
を算出する。
In the next step S104, the CPU 60 determines in step S10
The fillet ratio is calculated by executing the following equation (1) for the x fillet and the y fillet obtained in 3. Filler ratio = small fillet / larger fillet × 100 (1) Further, the CPU 60 calculates the following formula with respect to the x fillet and the y fillet obtained in S103 and the area of the defect factor obtained in S102. By performing (2), the occupancy is calculated.

【0050】 占有率=不良要因の面積/(xフィレ×yフィレ)×100 …(2) CPU60は、フィレ比及び占有率と図7に示す閾値関
数とを比較し、作業メモリ領域62bに貼り付けた不良
要因が点状欠点であるか線状欠点であるかの判定を行
う。即ち、CPU60は、図7のグラフ上においてフィ
レ比と占有率との交点が閾値関数よりも上に位置してい
れば、不良要因が点状欠点であると認識し、フィレ比と
占有率との交点が閾値関数よりも下に位置していれば不
良要因が線状欠点であると認識する。そして、不良要因
が点状欠点であると認識した場合には、CPU60は、
この不良要因認識サブルーチンをこのまま終了して、処
理を図9のメインルーチンに戻す。一方、CPU60
は、不良要因が線状欠点であると認識した場合には、C
PU60は、処理をS105に進める。
Occupancy rate = Area of defective factor / (x fillet × y fillet) × 100 (2) The CPU 60 compares the fillet ratio and the occupancy rate with the threshold function shown in FIG. 7, and pastes it into the work memory area 62 b. It is determined whether the attached defect factor is a point defect or a linear defect. That is, if the intersection between the fillet ratio and the occupancy on the graph of FIG. 7 is located above the threshold function, the CPU 60 recognizes that the defect factor is a point-like defect, and determines the fillet ratio and the occupancy. Is located below the threshold function, it is recognized that the defect factor is a linear defect. When the CPU 60 recognizes that the defect factor is a point defect, the CPU 60
This defect factor recognition subroutine is terminated as it is, and the process returns to the main routine of FIG. On the other hand, the CPU 60
Indicates that if the defect factor is recognized as a linear defect,
The PU 60 advances the process to S105.

【0051】次のS105では、CPU60は、作業メ
モリ領域62bに貼り付けた不良要因の最大フィレ及び
最小フィレを算出する(フィレ測定手段に相当)。図1
1は、このS105にて実行される最大フィレ及び最小
フィレの算出サブルーチンを示す。このサブルーチンに
入って最初のS201では、CPU60は、作業メモリ
領域62b内における不良要因の画像の初期状態からの
回転角度を示す変数Rを初期化して、“0”と設定す
る。
In the next step S105, the CPU 60 calculates the maximum fillet and the minimum fillet of the defective factor attached to the working memory area 62b (corresponding to fillet measuring means). FIG.
Reference numeral 1 denotes a maximum fillet and minimum fillet calculation subroutine executed in S105. In the first step S201 after entering this subroutine, the CPU 60 initializes a variable R indicating the rotation angle from the initial state of the image of the cause of the defect in the work memory area 62b and sets it to “0”.

【0052】次のS202では、CPU60は、変数Fm
axを初期化して“0”と設定するとともに、変数Fminを
初期化して“1000”と設定する。次に、CPU60は、
各回転位置毎にxフィレ及びyフィレを測定して変数Fm
ax及び変数Fminを更新するためのS203乃至S210
のループ処理を、実行する。このループ処理に入って最
初のS203では、その時点で作業メモリ領域62bに
貼り付けられている不良要因のxフィレ及びyフィレを
測定し、これらのうち大きい方を変数Fcmaxに代入する
とともに、小さい方を変数Fcminに代入する(フィレ計
測手段に相当)。
In the next S202, the CPU 60 sets the variable Fm
ax is initialized and set to “0”, and a variable Fmin is initialized and set to “1000”. Next, the CPU 60
The x fillet and y fillet are measured at each rotation position and the variable Fm
S203 to S210 for updating ax and variable Fmin
Is executed. In the first step S203 after entering this loop processing, the x fillet and the y fillet of the defect factor pasted in the working memory area 62b at that time are measured, and the larger one of these is substituted for the variable Fcmax and the smaller one. Is assigned to the variable Fcmin (corresponding to fillet measuring means).

【0053】次のS204では、CPU60は、変数Fc
maxの値が変数Fmaxの値よりも大きいか否かをチェック
する。そして、変数Fcmaxの値が変数Fmaxの値よりも大
きい場合には、CPU60は、S205において変数Fc
maxの値を変数Fmaxに上書きすることによってこの変数F
maxを更新した後に、処理をS206に進める(最大フ
ィレ特定手段に相当)。これに対して、変数Fcmaxの値
が変数Fmaxの値以下である場合には、CPU60は、処
理をそのままS206に進める。
In the next S204, the CPU 60 determines whether the variable Fc
Check whether the value of max is greater than the value of variable Fmax. If the value of the variable Fcmax is larger than the value of the variable Fmax, the CPU 60 determines in step S205 that the variable Fcmax
By overwriting the value of max with the variable Fmax, this variable F
After max is updated, the process proceeds to S206 (corresponding to the maximum fillet specifying means). On the other hand, when the value of the variable Fcmax is equal to or less than the value of the variable Fmax, the CPU 60 advances the processing to S206 as it is.

【0054】S206では、CPU60は、変数Fcmin
の値が変数Fminの値よりも小さいか否かをチェックす
る。そして、変数Fcminの値が変数Fminの値よりも小さ
い場合には、CPU60は、S207において変数Fcmi
nの値を変数Fminに上書きすることによってこの変数Fmi
nを更新した後に、処理をS208に進める(最小フィ
レ特定手段に相当)。これに対して、変数Fcminの値が
変数Fminの値以上である場合には、CPU60は、処理
をそのままS208に進める。
In S206, the CPU 60 sets the variable Fcmin
Check whether the value of is smaller than the value of the variable Fmin. If the value of the variable Fcmin is smaller than the value of the variable Fmin, the CPU 60 determines in step S207 that the variable Fcmin
This variable Fmi by overwriting the value of n with the variable Fmin
After updating n, the process proceeds to S208 (corresponding to minimum fillet specifying means). On the other hand, when the value of the variable Fcmin is equal to or larger than the value of the variable Fmin, the CPU 60 advances the process to S208.

【0055】S208では、CPU60は、変数Rの値
が90以上であるか否かをチェックする。そして、変数
Rの値が90未満である場合には、CPU60は、S2
09において、変数Rの値をaだけ加算する。この値a
は、作業メモリ領域62b内における不良要因の画像の
回転ステップを示す。具体的には、この値aは、“1
(度)”である。
In S208, the CPU 60 checks whether or not the value of the variable R is 90 or more. If the value of the variable R is less than 90, the CPU 60 proceeds to S2
At 09, the value of the variable R is added by a. This value a
Indicates a rotation step of the image of the cause of the defect in the work memory area 62b. Specifically, this value a is “1”
(Degree) ".

【0056】次のS210では、CPU60は、作業メ
モリ領域62b内における不良要因の画像を、初期状態
からの回転角がR度となるように一定方向に回転させる
(画像データ回転手段に相当)。その後、CPU60
は、処理をS203に戻し、回転後における不良要因の
各フィレを測定する。
In the next step S210, the CPU 60 rotates the image of the defective factor in the working memory area 62b in a fixed direction so that the rotation angle from the initial state becomes R degrees (corresponding to image data rotating means). After that, the CPU 60
Returns the process to S203, and measures each fillet as a cause of failure after rotation.

【0057】以上説明したS203乃至S210のルー
プ処理を繰り返した結果、変数Rの値が90以上となっ
たとS208にて判定した場合,即ち、作業メモリ領域
62b内における不良要因の画像の初期状態からの回転
角度が90度となった時には、CPU60は、この最大
フィレ及び最小フィレの算出サブルーチンを終了して、
処理を図10の不良要因認識ルーチンに戻す。この時、
変数Fmaxには、作業メモリ領域62b内の不良要因の最
大フィレが残され、変数Fminには、最小フィレが残され
る。
When it is determined in S208 that the value of the variable R has become 90 or more as a result of repeating the loop processing of S203 to S210 described above, that is, from the initial state of the image of the defective factor in the work memory area 62b. When the rotation angle becomes 90 degrees, the CPU 60 terminates this maximum fillet and minimum fillet calculation subroutine,
The process returns to the failure factor recognition routine of FIG. At this time,
The maximum fillet of the cause of the defect in the work memory area 62b is left in the variable Fmax, and the minimum fillet is left in the variable Fmin.

【0058】処理が戻された図10の不良要因認識ルー
チンでは、CPU60は、次のS106において、変数
Fmax及びFminに対して下記式(3)を実行し、最大フィ
レ比を算出する。
In the defective factor recognition routine of FIG. 10 to which the processing has been returned, the CPU 60 determines whether the variable
The following equation (3) is executed for Fmax and Fmin, and the maximum fillet ratio is calculated.

【0059】 最大フィレ比=Fmin/Fmax×100 …(3) 次のS107では、CPU60は、S106にて算出し
た最大フィレ比が50%未満であるか否かをチェックす
る(比率比較手段に相当)。そして、CPU60は、最
大フィレ比が50%以上である場合には処理をS110
に進め、最大フィレ比が50%未満である場合には処理
をS108に進める。
Maximum fillet ratio = Fmin / Fmax × 100 (3) In the next S107, the CPU 60 checks whether or not the maximum fillet ratio calculated in S106 is less than 50% (corresponding to a ratio comparing means). ). Then, if the maximum fillet ratio is 50% or more, the CPU 60 executes the processing in S110.
If the maximum fillet ratio is less than 50%, the process proceeds to S108.

【0060】S108では、CPU60は、変数Fminの
値が15未満であるか否かをチェックする(最小フィレ
比較手段に相当)。そして、CPU60は、変数Fminの
値が15以上である場合には処理をS110に進め、変
数Fminの値が15未満である場合には処理をS109に
進める。
In S108, the CPU 60 checks whether or not the value of the variable Fmin is less than 15 (corresponding to the minimum fillet comparing means). Then, if the value of variable Fmin is equal to or greater than 15, the process proceeds to S110, and if the value of variable Fmin is less than 15, the process proceeds to S109.

【0061】S109では、CPU60は、作業メモリ
領域62b内の不良要因がキズを示すと認識する(不良
要因種別認識手段に相当)。一方、S110では、CP
U60は、作業メモリ領域62b内の不良要因がケバを
示すと認識する(不良要因種別認識手段に相当)。何れ
の場合においても、CPU60は、この不良要因認識ル
ーチンを終了し、処理を図9のメインルーチンに戻す。
At S109, the CPU 60 recognizes that the defect factor in the work memory area 62b indicates a flaw (corresponding to a defect factor type recognizing means). On the other hand, in S110, the CP
U60 recognizes that the failure factor in the work memory area 62b indicates a fluff (corresponding to a failure factor type recognition unit). In any case, the CPU 60 ends the failure factor recognition routine and returns the processing to the main routine of FIG.

【0062】処理が戻された図9のメインルーチンで
は、CPU60は、次のS008において、変数iが最
大値(S005にてラベリングされた最大数値)に達し
ているか否かをチェックする。そして、未だ変数iが最
大値に達していない場合には、S009にて変数iをイ
ンクリメントした後に、処理をS007に戻し、次の不
良要因の種別認識処理を実行する。これに対して、変数
iが最大値に達している場合には、CPU60は、処理
をS010に進める。
In the main routine of FIG. 9 to which the processing has been returned, the CPU 60 checks in the next S008 whether the variable i has reached the maximum value (the maximum numerical value labeled in S005). If the variable i has not yet reached the maximum value, the process returns to S007 after incrementing the variable i in S009, and executes the next failure factor type recognition process. On the other hand, when the variable i has reached the maximum value, the CPU 60 advances the processing to S010.

【0063】S010では、CPU60は、S007に
て認識した各種別毎に、画像メモリ領域62a内の画像
データ中の全不良要因を分類する。そして、分類された
各種別毎に、不良要因の特徴量の統計を行う。例えば、
分類された不良要因の面積総和,最大フィレ総和,面積
総和に対する最大フィレ総和の比率,等を、算出する。
In S010, the CPU 60 classifies all the causes of failure in the image data in the image memory area 62a for each type recognized in S007. Then, statistics of the characteristic amounts of the failure factors are performed for each of the classified types. For example,
The total area of the classified defective factors, the maximum total fillet, the ratio of the maximum total fillet to the total area, and the like are calculated.

【0064】次のS011では、CPU60は、S01
0での統計結果に基づいて良否判定を行う。即ち、S0
10にて算出された各値が、夫々に対応して予め用意さ
れている判定閾値を超えているか否かのチェックを行
う。
In the next S011, the CPU 60 sets
A pass / fail judgment is made based on the statistical result of 0. That is, S0
It is checked whether or not each value calculated in 10 exceeds a judgment threshold value prepared in advance for each value.

【0065】次のS012では、CPU60は、S01
1での良否判定結果が良品を示すか不良品を示すかをチ
ェックする。そして、良否判定結果が良品を示している
場合には、CPU60は、S013において、当該検査
対象光学部材14が良品である旨を外部出力(画像表
示,音声出力)する。これに対して、判定結果が不良品
を示している場合には、CPU60は、S014におい
て、当該検査対象光学部材14が不良品である旨を外部
出力(画像表示,音声出力)する。以上の後に、CPU
60は、この制御処理を終了する。
In the next S012, the CPU 60 sets
It is checked whether the result of the pass / fail judgment in 1 indicates a good product or a bad product. If the result of the pass / fail judgment indicates a non-defective product, in S013, the CPU 60 externally outputs (image display, audio output) indicating that the inspection target optical member 14 is a non-defective product. On the other hand, if the result of the determination indicates a defective product, the CPU 60 outputs, in S014, an external output (image display, audio output) indicating that the inspection target optical member 14 is a defective product. After the above, CPU
60 ends this control processing.

【0066】<実施形態の作用>以上のように構成され
た本実施形態によると、検査対象光学部材14を透過し
て撮像レンズ4に入射するとともに撮像素子5の各画素
に入射し得る様な光は、遮光板9によって、予め拡散板
2上にて遮られる。従って、撮像素子5による撮像対象
領域内において検査対象光学部材14に不良要因が生じ
ていなければ、撮像素子5によって撮像される画像デー
タ中の各画素の輝度値は、全て黒の値(8ビットグレー
スケールにおける“0”)となっている。
<Operation of the Embodiment> According to the present embodiment configured as described above, it is possible to transmit the light through the optical member 14 to be inspected, enter the imaging lens 4 and enter each pixel of the imaging element 5. The light is blocked by the light shielding plate 9 on the diffusion plate 2 in advance. Therefore, if no defect factor occurs in the inspection target optical member 14 in the imaging target region of the imaging element 5, the luminance values of the pixels in the image data imaged by the imaging element 5 are all black values (8 bits). "0" in the gray scale).

【0067】これに対して、撮像素子5によって撮像さ
れ得る範囲において検査対象光学部材14に不良要因が
生じている場合には、遮光板9の側方からこの領域内に
入射した光が不良要因によって拡散され、その拡散光の
一部が撮像レンズ4に入射する。この結果、遮光板9の
暗い陰を背景とした不良要因の明るい像が、撮像素子5
の撮像面に形成される。このとき、画像データ中の不良
要因の明るい像を撮像して得られた画素の輝度値は、そ
の像の明るさ(及び、像と撮像素子5の画素との重なり
具合)に応じた値(8ビットグレースケールにおける
“1〜255”)となっている。
On the other hand, when a defect factor is generated in the optical member 14 to be inspected in a range where the image can be picked up by the image pickup device 5, light incident into the area from the side of the light-shielding plate 9 causes the defect factor. And a part of the diffused light enters the imaging lens 4. As a result, a bright image of a defect factor against the background of the dark shadow of the light-shielding plate 9 is formed on the image sensor 5.
Is formed on the image pickup surface. At this time, the luminance value of the pixel obtained by imaging the bright image of the cause of the defect in the image data is a value corresponding to the brightness of the image (and the degree of overlap between the image and the pixel of the image sensor 5) ( "1 to 255" in an 8-bit gray scale).

【0068】そして、検査対象光学部材14が半回転す
る間に、撮像素子5による撮像が一定周期でなされ、各
撮像によって得られたライン状の画像データが画像メモ
リ領域62aに蓄積される(S002)。
Then, while the optical member 14 to be inspected makes a half rotation, the image pickup by the image pickup device 5 is performed at a constant period, and the linear image data obtained by each image pickup is stored in the image memory area 62a (S002). ).

【0069】制御装置6のCPU60は、画像メモリ領
域62aに蓄積された極座標データを直交座標データに
変換する(S004)。その結果、この直交座標データ
においては、検査対象光学部材14の不良要因が、相似
形状の画像として写り込む。CPU60は、この直交座
標データから各不良要因の画像を一つづつ切り出して、
夫々、その種別の認識処理を行う。この際、認識処理の
第1段階では、CPU60は、従来と同じく、その作業
メモリ領域62bに貼り付けた時点における不良要因の
xフィレ及びyフィレ,並びに、その不良要因の画像デ
ータ中での面積に基づいて、その不良要因が点状欠点で
あるか線状欠点であるかの認識を行う。また、不良要因
が線状欠点であると認識された時に実行される認識処理
の第2段階では、CPU60は、作業メモリ領域62b
内でその不良要因の画像を1度づつ回転させるととも
に、不良要因が1度回転する毎に、その不良要因のxフ
ィレ及びyフィレを測定する。そして、不良要因が90
度回転する間に測定されたxフィレの値及びyフィレの
値のうち、最大のもの(最大フィレ)及び最小のもの
(最小フィレ)に基き、最小フィレの最大フィレに対す
る比(最大フィレ比)が50%未満であり且つ最小フィ
レが15ドット未満である場合のみ、その不良要因がキ
ズであると認識し、それ以外の場合には、その不良要因
がケバであると認識する。最小フィレ比が15ドット以
上である場合には、キズとしては太すぎるし、最大フィ
レ比が50%以上である場合は、不良要因が曲線状であ
ると考えられるからである。
The CPU 60 of the control device 6 converts the polar coordinate data stored in the image memory area 62a into rectangular coordinate data (S004). As a result, in the orthogonal coordinate data, the cause of the defect of the inspection target optical member 14 appears as an image having a similar shape. The CPU 60 cuts out the image of each defect factor one by one from the rectangular coordinate data,
Each of them performs recognition processing of the type. At this time, in the first stage of the recognition process, the CPU 60 determines, as in the related art, the x-fillet and y-fillet of the defect factor at the time of pasting to the working memory area 62b, and the area of the defect factor in the image data. , The failure factor is recognized as a point defect or a linear defect. In the second stage of the recognition process executed when the defect factor is recognized as a linear defect, the CPU 60 sets the work memory area 62b
Then, the image of the defect factor is rotated once by one, and each time the defect factor is rotated once, the x fill and the y fillet of the defect factor are measured. And the failure factor is 90
The ratio of the minimum fillet to the maximum fillet (maximum fillet ratio) based on the maximum (maximum fillet) and minimum (minimum fillet) values of the x fillet value and the y fillet value measured during rotation by degrees. Is less than 50% and the minimum fillet is less than 15 dots, the defect factor is recognized as being flawed, otherwise, the defect factor is recognized as being fuzzy. This is because when the minimum fillet ratio is 15 dots or more, the flaw is too thick as a flaw, and when the maximum fillet ratio is 50% or more, the cause of the defect is considered to be a curved shape.

【0070】このように、本実施形態によると、不良要
因がキズであるかケバであるかの認識を、合理的な手法
によって自動的に行うことができる。
As described above, according to the present embodiment, it is possible to automatically recognize whether the defect factor is a flaw or a fluff by a rational method.

【0071】[0071]

【実施形態2】本発明の第2の実施形態は、図10のS
105にて実行される最大フィレ及び最小フィレの算出
処理サブルーチンのみ第1実施形態のものと異にし、そ
れ以外の構成を第1実施形態と同じくする。
[Embodiment 2] A second embodiment of the present invention is shown in FIG.
Only the maximum fillet and minimum fillet calculation processing subroutine executed at 105 is different from that of the first embodiment, and the other configuration is the same as that of the first embodiment.

【0072】上述した第1実施形態における図11の最
大フィレ及び最小フィレの算出処理サブルーチンによる
と、作業メモリ領域62b内における不良要因の画像の
回転処理(S208〜S210)を90回行わねばなら
ないとともに、変数Fmax及び変数Fminの算出処理(S2
03〜S207)を91回行わねばならなかった。本第
2実施形態における図12の最大フィレ及び最小フィレ
の算出処理サブルーチンは、最大フィレが見つかった角
度位置の近傍の角度位置に最小フィレが存するとの前提
に立ち、最初に、不良要因の画像を10度づつ回転させ
てxフィレ又はyフィレの値が最も大きくなった角度位
置を特定し、次に、特定された角度位置よりも9度戻っ
た角度位置から不良要因の画像を1度づつ回転させてx
フィレ又はyフィレの値が最も大きくなった時点で、当
該最も大きいxフィレ又はyフィレの値を最大フィレと
して扱うとともに、それまで測定されていた各フィレの
値のうち最も小さいものを最小フィレとして扱う。以
下、本第2実施形態において図10のS105にて実行
される最大フィレ及び最小フィレの算出処理サブルーチ
ンの具体的内容を、図12に基づいて説明する。
According to the maximum fillet and minimum fillet calculation processing subroutine of FIG. 11 in the first embodiment described above, the rotation processing (S208 to S210) of the image of the cause of the defect in the work memory area 62b must be performed 90 times. , Variable Fmax and variable Fmin calculation processing (S2
03-S207) had to be performed 91 times. The maximum fillet and minimum fillet calculation processing subroutine of FIG. 12 in the second embodiment is based on the premise that the minimum fillet exists at an angular position near the angular position where the maximum fillet is found. Is rotated by 10 degrees to identify the angular position where the value of the x-fillet or y-fillet is the largest, and then the image of the defect factor is added once at a time from the angular position 9 degrees back from the specified angular position. Rotate x
At the time when the value of the fillet or y fillet becomes the largest, the value of the largest x fillet or y fillet is treated as the maximum fillet, and the smallest one of the values of each fillet that has been measured so far is regarded as the minimum fillet. deal with. Hereinafter, the specific contents of the maximum fillet and minimum fillet calculation processing subroutine executed in S105 of FIG. 10 in the second embodiment will be described with reference to FIG.

【0073】図12のサブルーチンに入って最初のS3
01では、CPU60は、変数Fmaxを初期化して“0”
と設定するとともに、変数Fminを初期化して“1000”と
設定する。
First S3 after entering the subroutine of FIG.
In 01, the CPU 60 initializes the variable Fmax to “0”
And initialize the variable Fmin to “1000”.

【0074】次のS302では、CPU60は、回転ス
テップ角を示す変数STEPを初期化して“10”と設定す
る。次のS303では、CPU60は、作業メモリ領域
62b内における不良要因の画像の初期状態からの回転
角度を示す変数KAKUを初期化して、“0”と設定する。
In the next step S302, the CPU 60 initializes a variable STEP indicating a rotation step angle and sets it to "10". In the next step S303, the CPU 60 initializes a variable KAKU indicating the rotation angle from the initial state of the image of the cause of the defect in the work memory area 62b and sets it to “0”.

【0075】次に、CPU60は、作業メモリ領域62
b内における不良要因の画像を回転させるとともに、各
回転位置毎にxフィレ及びyフィレを測定して変数Fmax
及び変数Fminを更新するためのS304乃至S322の
ループ処理を、実行する。このループ処理に入って最初
のS304では、CPU60は、変数Fmaxが最大値を通
過したか否かを示すフラグMAXflagを“0”とリセット
する。このフラグMAXflagは、変数Fmaxが最大値を通過
した時には“0”とリセットされ、変数Fmaxが最大値を
通過したとは確定できない時には“1”とセットされ
る。
Next, the CPU 60 sets the work memory area 62
b, the x-fillet and y-fillet are measured at each rotation position, and the variable Fmax
And a loop process from S304 to S322 for updating the variable Fmin. In the first step S304 after entering this loop processing, the CPU 60 resets a flag MAXflag indicating whether or not the variable Fmax has passed the maximum value to “0”. This flag MAXflag is reset to “0” when the variable Fmax has passed the maximum value, and is set to “1” when it cannot be determined that the variable Fmax has passed the maximum value.

【0076】次のS305では、CPU60は、作業メ
モリ領域62b内における不良要因の画像を、初期状態
からの回転角度がKAKU度となるように回転させる(画像
データ回転手段に相当)。
In the next step S305, the CPU 60 rotates the image of the defect factor in the work memory area 62b so that the rotation angle from the initial state becomes KAKU (corresponding to image data rotating means).

【0077】次のS306では、その時点で作業メモリ
領域62bに貼り付けられている不良要因のxフィレを
測定して変数FXに代入するとともに、yフィレを測定し
て変数FYに代入する(フィレ計測手段に相当)。
In the next step S306, the x fillet of the defect factor pasted in the working memory area 62b at that time is measured and assigned to the variable FX, and the y fillet is measured and assigned to the variable FY (filler). Equivalent to measuring means).

【0078】次のS307では、CPU60は、変数FX
の値が変数Fminの値よりも小さいか否かをチェックす
る。そして、変数FXの値が変数Fminの値よりも小さい場
合には、CPU60は、S308において変数FXの値を
変数Fminに上書きすることによってこの変数Fminを更新
した後に、処理をS309に進める(最小フィレ特定手
段に相当)。これに対して、変数FXの値が変数Fminの値
以上である場合には、CPU60は、処理をそのままS
309に進める。
In the next step S307, the CPU 60 sets the variable FX
Check whether the value of is smaller than the value of the variable Fmin. If the value of the variable FX is smaller than the value of the variable Fmin, the CPU 60 updates the variable Fmin by overwriting the value of the variable FX with the variable Fmin in S308, and then advances the process to S309. (Corresponds to fillet identification means). On the other hand, if the value of the variable FX is equal to or greater than the value of the variable Fmin, the CPU 60 proceeds to S
Proceed to 309.

【0079】S309では、CPU60は、変数FYの値
が変数Fminの値よりも小さいか否かをチェックする。そ
して、変数FYの値が変数Fminの値よりも小さい場合に
は、CPU60は、S310において変数FYの値を変数
Fminに上書きすることによってこの変数Fminを更新した
後に、処理をS311に進める(最小フィレ特定手段に
相当)。これに対して、変数FYの値が変数Fminの値以上
である場合には、CPU60は、処理をそのままS31
1に進める。
At S309, the CPU 60 checks whether or not the value of the variable FY is smaller than the value of the variable Fmin. If the value of the variable FY is smaller than the value of the variable Fmin, the CPU 60 sets the value of the
After updating the variable Fmin by overwriting Fmin, the process proceeds to S311 (corresponding to the minimum fillet specifying means). On the other hand, if the value of the variable FY is equal to or larger than the value of the variable Fmin, the CPU 60 proceeds to S31
Proceed to 1.

【0080】S311では、CPU60は、変数FXの値
が変数Fmaxの値よりも大きいか否かをチェックする。そ
して、変数FXの値が変数Fmaxの値よりも大きい場合に
は、CPU60は、S312において変数FXの値を変数
Fmaxに上書きすることによってこの変数Fmaxを更新し
て、S313にてフラグFMAXflagを“1”とリセットし
た後に、処理をS314に進める(最大フィレ特定手段
に相当)。これに対して、変数FXの値が変数Fmaxの値以
下である場合には、CPU60は、処理をそのままS3
14に進める。
In S311, the CPU 60 checks whether or not the value of the variable FX is larger than the value of the variable Fmax. If the value of the variable FX is larger than the value of the variable Fmax, the CPU 60 sets the value of the
After updating the variable Fmax by overwriting Fmax and resetting the flag FMAXflag to “1” in S313, the process proceeds to S314 (corresponding to the maximum fillet specifying means). On the other hand, if the value of the variable FX is equal to or less than the value of the variable Fmax, the CPU 60 proceeds to S3
Proceed to 14.

【0081】S314では、CPU60は、変数FYの値
が変数Fmaxの値よりも大きいか否かをチェックする。そ
して、変数FYの値が変数Fmaxの値よりも大きい場合に
は、CPU60は、S315において変数FYの値を変数
Fmaxに上書きすることによってこの変数Fmaxを更新し
て、S316にてフラグFMAXflagを“1”とリセットし
た後に、処理をS317に進める(最大フィレ特定手段
に相当)。これに対して、変数FYの値が変数Fmaxの値以
下である場合には、CPU60は、処理をそのままS3
17に進める。
At S314, the CPU 60 checks whether or not the value of the variable FY is larger than the value of the variable Fmax. If the value of the variable FY is larger than the value of the variable Fmax, the CPU 60 sets the value of the
After updating this variable Fmax by overwriting Fmax and resetting the flag FMAXflag to "1" in S316, the process proceeds to S317 (corresponding to the maximum fillet specifying means). On the other hand, when the value of the variable FY is equal to or less than the value of the variable Fmax, the CPU 60 proceeds to S3.
Proceed to 17.

【0082】S317では、CPU60は、フラグFMAX
flagが“1”とセットされているか否かをチェックす
る。そして、フラグFMAXflagが“1”とセットされてい
る場合には、未だ変数Fmaxが最大値に達しているとは確
定できないとして、S318にて変数KAKUの値を変数ST
EPの値分だけ加算した後に、処理をS304に戻す。こ
れに対して、FMAXflagが“0”とリセットされている場
合には、CPU60は、変数Fmaxが最大値に達している
として、処理をS319に進める。
At S317, the CPU 60 sets the flag FMAX
Check whether flag is set to "1". If the flag FMAXflag is set to “1”, it is determined that the variable Fmax has not reached the maximum value yet, and the value of the variable KAKU is changed to the variable ST in S318.
After adding the value of EP, the process returns to S304. On the other hand, when FMAXflag is reset to “0”, the CPU 60 determines that the variable Fmax has reached the maximum value, and advances the processing to S319.

【0083】S319では、CPU60は、変数KAKUの
値を“19”だけ減算する。次のS320では、CPU6
0は、変数STEPが既に“1”と設定されているか否かを
チェックする。ここで、このS320の処理が最初に実
行される時には、変数STEPが未だ“10”のままであるの
で、CPU60は、S321にて変数STEPに“1”を代
入し、S322にて変数Fmaxを初期化して“0”と設定
するとともに変数Fminを初期化して“1000”と設定した
後に、処理をS304に戻す。一方、処理がS304に
戻された後に再度S320が実行される時には、変数ST
EPは“1”と設定されているので、CPU60は、この
最大フィレ及び最小フィレの算出処理サブルーチンを終
了して、処理を図10の不良要因認識ルーチンに戻す。
In S319, the CPU 60 subtracts “19” from the value of the variable KAKU. In the next S320, the CPU 6
A value of 0 checks whether the variable STEP has already been set to "1". Here, when the process of S320 is executed for the first time, since the variable STEP is still “10”, the CPU 60 substitutes “1” for the variable STEP in S321 and sets the variable Fmax in S322. After the initialization and setting to “0” and the initialization of the variable Fmin to “1000”, the process returns to S304. On the other hand, when S320 is executed again after the processing is returned to S304, the variable ST
Since EP is set to "1", the CPU 60 ends the maximum fillet and minimum fillet calculation processing subroutine, and returns the processing to the defect factor recognition routine of FIG.

【0084】本第2実施形態のその他の構成は、上述し
た第1実施形態のものと同じである故に、その説明を省
略する。 <実施形態の作用>本第2実施形態による作用を、図1
3及び図14に基づいて説明する。いま、図13の0°
に示す状態で、不良要因の画像が作業メモリ領域62b
に貼り付けられたとする。すると、CPU60は、この
不良要因の画像を10°づつ回転させて、変数Fmaxを次
々に更新し、同時に、変数Fminも更新する。このように
して、変数Fmaxが更新されている間は、フラグFMAXflag
が“1”とセットされ続けるので(S313,S31
6)、不良要因の画像は10°づつ回転され続ける(図
13参照)。
The other configuration of the second embodiment is the same as that of the above-described first embodiment, and the description thereof will be omitted. <Operation of Embodiment> The operation of the second embodiment will be described with reference to FIG.
3 and FIG. Now, at 0 ° in FIG.
In the state shown in FIG.
Suppose that it was pasted on. Then, the CPU 60 updates the variable Fmax one after another by rotating the image of the defective factor by 10 °, and at the same time, updates the variable Fmin. In this way, while the variable Fmax is being updated, the flag FMAXflag
Continues to be set to "1" (S313, S31
6) The image of the cause of failure continues to be rotated by 10 ° (see FIG. 13).

【0085】このように不良要因の画像が回転され続け
ると、不良要因の初期状態からの回転角度が70°にな
った時点で、変数Fminの更新が停止し、フラグFMAXflag
が“0”とリセットされたままとなる。その結果、その
直前の回転角度である60°の前後,即ち、50°より
大きく70°よりも小さい回転角度の範囲に最大フィレ
が存在していることがわかる。
As described above, if the image of the defective factor continues to be rotated, the update of the variable Fmin is stopped when the rotation angle from the initial state of the defective factor reaches 70 °, and the flag FMAXflag
Is reset to "0". As a result, it can be seen that the maximum fillet exists around a rotation angle immediately before that, that is, 60 °, that is, a rotation angle range of more than 50 ° and less than 70 °.

【0086】そこで、CPU60は、不良要因の画像の
初期状態からの回転角度を51°に戻した後に(S31
9)、この不良要因の画像を1°づつ回転させて、再
度、変数Fmaxを次々に更新し、同時に、変数Fminも更新
する。このようにして、変数Fmaxが更新されている間
は、フラグFMAXflagが“1”とセットされ続けるので
(S313,S316)、不良要因の画像は1°づつ回
転され続ける(図14参照)。
Then, the CPU 60 returns the rotation angle from the initial state of the image of the defective factor to 51 ° (S31).
9) The image of the cause of the failure is rotated by 1 °, and the variable Fmax is updated again one after another, and at the same time, the variable Fmin is updated. In this way, while the variable Fmax is being updated, the flag FMAXflag is kept set to "1" (S313, S316), so that the image of the cause of failure continues to be rotated by 1 ° (see FIG. 14).

【0087】このように不良要因の画像が回転され続け
ると、不良要因の初期状態からの回転角が61°になっ
た時点で、変数Fminの更新が停止し、フラグFMAXflagが
“0”とリセットされたままとなる。その結果、その直
前の回転角度位置である60°に最大フィレが存在して
いることがわかる。
As described above, if the image of the defective factor continues to be rotated, when the rotation angle from the initial state of the defective factor reaches 61 °, the updating of the variable Fmin stops, and the flag FMAXflag is reset to “0”. Will remain. As a result, it can be seen that the maximum fillet exists at 60 ° which is the rotation angle position immediately before that.

【0088】そこで、CPU60は、その時点で不良要
因の画像の回転処理及び変数FMAX及び変数Fminの算出処
理を中断し、その時点での変数Fmaxの値を最大フィレと
して扱うとともにその時点での変数Fminの値を最小フィ
レとして扱う。
Therefore, the CPU 60 suspends the rotation process of the image of the defect factor and the calculation process of the variables FMAX and Fmin at that time, treats the value of the variable Fmax at that time as the maximum fillet, Treat the value of Fmin as the minimum fillet.

【0089】このように、本第2実施形態によれば、最
大フィレを探し出すまでに必要な不良要因の画像の回転
処理(S305)の回数は最大29回で済むとともに、
変数Fmax及び変数Fminの算出処理(S306〜S31
6)の回数は最大30回で済む。しかも、一旦変数Fmax
の最大値が見つけ出されると、同方向における回転は中
断されるので、実際には、不良要因の画像の回転処理,
変数Fmax及び変数Fminの算出処理,共に、その回数は更
に少なくて済む。例えば、図13及び図14の例では、
不良要因の画像の回転処理回数は18回であり、変数Fm
ax及び変数Fminの算出処理の回数は19回である。
As described above, according to the second embodiment, the number of rotations (S305) of the image of the cause of the defect required until the maximum fillet is found is 29 times at the maximum.
Calculation of Variables Fmax and Fmin (S306 to S31
The number of times of 6) is a maximum of 30 times. Moreover, once the variable Fmax
When the maximum value of is found, the rotation in the same direction is interrupted.
The number of times for both the calculation process of the variable Fmax and the variable Fmin can be further reduced. For example, in the examples of FIGS. 13 and 14,
The number of rotations of the image of the defect factor is 18 and the variable Fm
The number of times of calculating the ax and the variable Fmin is 19 times.

【0090】本第2実施形態におけるその他の作用は、
第1実施形態のものと全く同じであるので、その説明を
省略する。
The other operation of the second embodiment is as follows.
Since it is completely the same as that of the first embodiment, the description is omitted.

【0091】[0091]

【実施形態3】本発明の第3の実施形態は、図10のS
105にて実行される最大フィレ及び最小フィレの算出
処理サブルーチンのみ第1実施形態のものと異にし、そ
れ以外の構成を第1実施形態と同じくする。即ち、上述
した第1実施形態における図11の最大フィレ及び最小
フィレの算出処理サブルーチンでは、作業メモリ領域6
2b内における不良要因の画像を回転させる毎にxフィ
レ及びyフィレを測定することによって最大フィレ及び
最小フィレを探し出していたが、本第3実施形態では、
不良要因の画像の慣性主軸ベクトルを求め、この慣性主
軸ベクトルが直交座標系におけるx軸と平行な0°方
向,又はy軸と平行な90°方向を向くように当該不良
要因の画像を一回だけ回転させ、回転後に測定されたx
フィレ及びyフィレのうち大きい方を最大フィレとして
扱うとともに、他方を最小フィレとして扱う。以下、本
第3実施形態において図10のS105にて実行される
最大フィレ及び最小フィレの算出処理サブルーチンの具
体的内容を、図15に基づいて説明する。
[Embodiment 3] A third embodiment of the present invention is the same as that shown in FIG.
Only the maximum fillet and minimum fillet calculation processing subroutine executed at 105 is different from that of the first embodiment, and the other configuration is the same as that of the first embodiment. That is, in the calculation processing subroutine of the maximum fillet and the minimum fillet of FIG.
The maximum fillet and the minimum fillet were found by measuring the x fillet and the y fillet each time the image of the defect factor in 2b was rotated, but in the third embodiment,
The main axis vector of inertia of the image of the cause of failure is obtained, and the image of the main cause of inertia is once determined so that the main axis vector of inertia is oriented in the 0 ° direction parallel to the x axis or the 90 ° direction parallel to the y axis in the rectangular coordinate system. X and measured x after rotation
The larger of the fillet and the y-fillet is treated as the largest fillet, and the other is treated as the smallest fillet. Hereinafter, the specific contents of the maximum fillet and minimum fillet calculation processing subroutine executed in S105 of FIG. 10 in the third embodiment will be described with reference to FIG.

【0092】図15のサブルーチンに入って最初のS4
01では、CPU60は、作業メモリ領域62b内にお
ける不良要因の画像の慣性主軸ベクトルの方向θを、下
記式(4)に基づいて算出する(慣性主軸ベクトル測定
手段に相当)。
First S4 after entering the subroutine of FIG.
In step 01, the CPU 60 calculates the direction θ of the principal axis vector of the image of the defect factor in the working memory area 62b based on the following equation (4) (corresponding to the principal axis vector measuring means).

【0093】 θ=(tan-1 (2・M11/(M02−M20)))/2 …(4) ここで、モーメントMpq(M(p,q))を求める式は、Θ = (tan −1 (2 · M 11 / (M 02 −M 20 ))) / 2 (4) Here, the equation for calculating the moment M pq (M (p, q)) is as follows:

【0094】[0094]

【数1】 (Equation 1)

【0095】である。但し、式(5)において、f
ijは、図形内で1をとり、図形外で0をとる2値画像で
ある。次のS402では、CPU60は、慣性主軸ベク
トルを0°方向に向かせるための不良要因の画像の回転
角Rを求める。
Is as follows. However, in equation (5), f
ij is a binary image that takes 1 in a figure and takes 0 outside the figure. In the next step S402, the CPU 60 obtains the rotation angle R of the image of the cause of the defect for turning the inertia main axis vector in the 0 ° direction.

【0096】次のS403では、CPU60は、不良要
因の画像を、S402にて求めた回転角R度だけ回転さ
せる(画像データ回転手段に相当)。次のS404で
は、CPU60は、その時点で作業メモリ領域62bに
貼り付けられている不良要因のxフィレを測定して変数
Fcmaxに代入するとともに、yフィレを測定して変数Fcm
inに代入する(フィレ計測手段に相当)。
In the next step S403, the CPU 60 rotates the image of the defective factor by the rotation angle R obtained in step S402 (corresponding to image data rotating means). In the next S404, the CPU 60 measures the x-fillet of the defect factor affixed to the working memory area 62b at that time,
Substitute Fcmax and measure the y fillet to determine the variable Fcm
Substitute in for (corresponds to fillet measuring means).

【0097】次のS405では、CPU60は、変数Fc
maxの値を変数Fmaxに代入する(最大フィレ特定手段に
相当)。次のS406では、CPU60は、変数Fcmin
の値を変数Fminに代入する(最小フィレ特定手段に相
当)。
In the next step S405, the CPU 60 sets the variable Fc
The value of max is substituted for a variable Fmax (corresponding to the maximum fillet specifying means). In the next S406, the CPU 60 sets the variable Fcmin
Is substituted for the variable Fmin (corresponding to the minimum fillet specifying means).

【0098】以上の後に、CPU60は、この最大フィ
レ及び最小フィレの算出処理サブルーチンを終了して、
処理を図10の不良要因認識ルーチンに戻す。本第3実
施形態のその他の構成は、上述した第1実施形態のもの
と同じである故に、その説明を省略する。 <実施形態の作用>本第3実施形態によると、作業メモ
リ領域62b内での不良要因の画像の回転処理(S40
3)の回数は1回で済むとともに、変数Fmax及び変数Fm
inの算出処理(S404〜S406)の回数も1回で済
む。
After the above, the CPU 60 terminates this maximum fillet and minimum fillet calculation processing subroutine,
The process returns to the failure factor recognition routine of FIG. The other configuration of the third embodiment is the same as that of the above-described first embodiment, and the description thereof will be omitted. <Operation of Embodiment> According to the third embodiment, the rotation process of the image of the cause of the defect in the work memory area 62b (S40)
3) only needs to be performed once, and the variables Fmax and Fm
The number of in calculation processes (in S404 to S406) is also one.

【0099】本第3実施形態におけるその他の作用は、
第1実施形態のものと全く同じであるので、その説明を
省略する。
The other operation of the third embodiment is as follows.
Since it is completely the same as that of the first embodiment, the description is omitted.

【0100】[0100]

【実施形態4】本発明の第4の実施形態は、図10のS
105にて実行される最大フィレ及び最小フィレの算出
処理サブルーチンのみ第1実施形態のものと異にし、そ
れ以外の構成を第1実施形態と同じくする。即ち、本第
4実施形態では、不良要因の画像の慣性主軸を求め、こ
の慣性主軸ベクトルの方向とこれに直交する方向に夫々
不良要因の画像の投影を行う。そして、慣性主軸ベクト
ルに直交する方向に投影された映像の幅を最大フィレと
して扱うとともに、慣性主軸ベクトルの方向に投影され
た映像の幅を最小フィレとして扱う。以下、本第4実施
形態において図10のS105にて実行される最大フィ
レ及び最小フィレの算出処理サブルーチンの具体的内容
を、図16に基づいて説明する。
[Fourth Embodiment] A fourth embodiment of the present invention will be described with reference to FIG.
Only the maximum fillet and minimum fillet calculation processing subroutine executed at 105 is different from that of the first embodiment, and the other configuration is the same as that of the first embodiment. That is, in the fourth embodiment, the principal axis of inertia of the image of the cause of failure is obtained, and the image of the cause of failure is projected in the direction of the principal axis vector of inertia and in the direction orthogonal thereto. Then, the width of the image projected in the direction orthogonal to the principal axis vector of inertia is treated as the maximum fillet, and the width of the image projected in the direction of the principal axis vector of inertia is treated as the minimum fillet. Hereinafter, the specific contents of the maximum fillet and minimum fillet calculation processing subroutine executed in S105 of FIG. 10 in the fourth embodiment will be described with reference to FIG.

【0101】図16のサブルーチンに入って最初のS5
01では、CPU60は、作業メモリ領域62b内にお
ける不良要因の画像の慣性主軸ベクトルの方向θを、上
記式(4)に基づいて算出する(慣性主軸ベクトル測定
手段に相当)。
First S5 after entering the subroutine of FIG.
In step 01, the CPU 60 calculates the direction θ of the principal axis vector of the image of the defect factor in the work memory area 62b based on the above equation (4) (corresponding to the principal axis vector measuring means).

【0102】次のS502では、CPU60は、不良要
因の画像を慣性主軸ベクトルの方向に投影する。次のS
503では、CPU60は、S502での投影処理によ
って投影された像の幅を求める(フィレ計測手段に相
当)。
In the next step S502, the CPU 60 projects the image of the cause of the defect in the direction of the principal axis vector of inertia. Next S
In 503, the CPU 60 obtains the width of the image projected by the projection processing in S502 (corresponding to a fillet measuring unit).

【0103】次のS504では、CPU60は、S50
3にて求められた像の幅を変数Fminに代入する(最小フ
ィレ特定手段に相当)。次のS505では、CPU60
は、不良要因の画像を慣性主軸ベクトルに直交する軸上
に投影する。
In the next step S504, the CPU 60 executes
The width of the image obtained in step 3 is substituted for the variable Fmin (corresponding to the minimum fillet specifying means). In the next S505, the CPU 60
Project the image of the failure factor on an axis orthogonal to the principal axis vector of inertia.

【0104】次のS506では、CPU60は、S50
5での投影処理によって投影された像の幅を求める(フ
ィレ計測手段に相当)。次のS507では、CPU60
は、S506にて求められた像の幅を変数Fmaxに代入す
る(最大フィレ特定手段に相当)。
In the next S506, the CPU 60 sets
The width of the image projected by the projection processing in step 5 is obtained (corresponding to fillet measuring means). In the next S507, the CPU 60
Substitutes the width of the image obtained in S506 for a variable Fmax (corresponding to the maximum fillet specifying means).

【0105】以上の後に、CPU60は、この最大フィ
レ及び最小フィレの算出処理サブルーチンを終了して、
処理を図10の不良要因認識ルーチンに戻す。本第4実
施形態のその他の構成は、上述した第1実施形態のもの
と同じである故に、その説明を省略する。
After the above, the CPU 60 terminates this maximum fillet and minimum fillet calculation processing subroutine,
The process returns to the failure factor recognition routine of FIG. Other configurations of the fourth embodiment are the same as those of the above-described first embodiment, and thus description thereof will be omitted.

【0106】<実施形態の作用>本第4実施形態による
と、作業メモリ領域62b内での不良要因の画像の回転
処理は不要であるとともに、変数Fmax及び変数Fminの算
出処理(S501〜S507)の回数も1回で済む。
<Operation of Embodiment> According to the fourth embodiment, the rotation processing of the image of the cause of the defect in the work memory area 62b is unnecessary, and the calculation processing of the variables Fmax and Fmin (S501 to S507) Need only be performed once.

【0107】本第4実施形態におけるその他の作用は、
第1実施形態のものと全く同じであるので、その説明を
省略する。
[0107] Other functions of the fourth embodiment are as follows.
Since it is completely the same as that of the first embodiment, the description is omitted.

【0108】[0108]

【発明の効果】以上のように構成された本発明の光学部
材検査装置,画像処理装置,及び、画像処理プログラム
を格納したコンピュータ可読媒体によれば、検査対象光
学部材中に検出された線状の不良要因がキズであるかケ
バであるかを、自動的に且つ合理的に判定することがで
きる。
According to the optical member inspection apparatus, the image processing apparatus, and the computer-readable medium storing the image processing program of the present invention configured as described above, the linear member detected in the optical member to be inspected can be used. It is possible to automatically and rationally determine whether the defect factor is a flaw or a fluff.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 本発明の第1の実施の形態による光学部材検
査装置の概略構成を示す側面断面図
FIG. 1 is a side sectional view showing a schematic configuration of an optical member inspection apparatus according to a first embodiment of the present invention.

【図2】 図1の検査対象光学部材等を撮像装置の位置
から見た平面図
FIG. 2 is a plan view of the inspection target optical member and the like in FIG. 1 viewed from a position of an imaging device.

【図3】 図1の制御装置の内部回路構成を示すブロッ
ク図
FIG. 3 is a block diagram showing an internal circuit configuration of the control device of FIG. 1;

【図4】 検査対象光学部材に不良要因がない場合にお
ける光の進行状態を示す図
FIG. 4 is a diagram showing the progress of light when there is no defect factor in the optical member to be inspected.

【図5】 検査対象光学部材に不良要因がある場合にお
ける光の進行状態を示す図
FIG. 5 is a diagram showing the progress of light when there is a defect factor in the optical member to be inspected.

【図6】 不良要因の画像とxフィレ及びyフィレとの
関係の説明図
FIG. 6 is an explanatory diagram of a relationship between an image of a defect factor and x fillets and y fillets.

【図7】 不良要因が点状欠点であるか線状欠点である
かの認識に用いられる閾値関数を示すグラフ
FIG. 7 is a graph showing a threshold function used for recognizing whether a defect factor is a point defect or a linear defect.

【図8】 線状の不良要因がキズであるかケバであるか
の閾値を示すグラフ
FIG. 8 is a graph showing a threshold value indicating whether a linear defect factor is a flaw or a fluff.

【図9】 図3のCPUにて実行される制御処理を示す
フローチャート
FIG. 9 is a flowchart showing control processing executed by the CPU of FIG. 3;

【図10】 図9のS007にて実行される不良要因認
識処理サブルーチンを示すフローチャート
FIG. 10 is a flowchart showing a failure factor recognition processing subroutine executed in S007 of FIG. 9;

【図11】 図10のS105にて実行される最大フィ
レ及び最小フィレの算出処理サブルーチンを示すフロー
チャート
11 is a flowchart showing a maximum fillet and minimum fillet calculation processing subroutine executed in S105 of FIG. 10;

【図12】 本発明の第2実施形態において図10のS
105にて実行される最大フィレ及び最小フィレの算出
処理サブルーチンを示すフローチャート
FIG. 12 shows a second embodiment of the present invention;
Flowchart showing a maximum fillet and minimum fillet calculation processing subroutine executed in 105

【図13】 本発明の第2実施形態による作用の説明図FIG. 13 is an explanatory diagram of an operation according to the second embodiment of the present invention.

【図14】 本発明の第2実施形態による作用の説明図FIG. 14 is an explanatory diagram of an operation according to the second embodiment of the present invention.

【図15】 本発明の第3実施形態において図10のS
105にて実行される最大フィレ及び最小フィレの算出
処理サブルーチンを示すフローチャート
FIG. 15 is a block diagram of a third embodiment of the present invention;
Flowchart showing a maximum fillet and minimum fillet calculation processing subroutine executed in 105

【図16】 本発明の第4実施形態において図10のS
105にて実行される最大フィレ及び最小フィレの算出
処理サブルーチンを示すフローチャート
FIG. 16 is a block diagram of a fourth embodiment of the present invention;
Flowchart showing a maximum fillet and minimum fillet calculation processing subroutine executed in 105

【符号の説明】[Explanation of symbols]

3 撮像装置 6 制御装置 8 駆動モータ 14 検査対象光学部材 60 CPU 62 ホストメモリ 62a 画像メモリ領域 62b 作業メモリ領域 62c 画像処理プログラム格納領域 Reference Signs List 3 imaging device 6 control device 8 drive motor 14 optical member to be inspected 60 CPU 62 host memory 62a image memory area 62b working memory area 62c image processing program storage area

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】検査対象光学部材を撮像して当該検査対象
光学部材の像を含む画像データを出力する撮像装置と、 この撮像装置から出力された画像データを格納する画像
メモリと、 この画像メモリに格納されている画像データ中から前記
検査対象光学部材の不良要因を示す領域を特定する領域
特定手段と、 この領域特定手段によって特定された領域の最大フィレ
及び最小フィレを夫々測定するフィレ測定手段と、 このフィレ測定手段によって測定された最大フィレと最
小フィレとの比率を所定の閾値と比較する比率比較手段
と、 この比率比較手段による比較結果に基づいて、前記領域
特定手段によって特定された領域が前記検査対象光学部
材のキズ及びケバの何れかを示すのかの認識を行う不良
要因種別認識手段とを備えたことを特徴とする光学部材
検査装置。
1. An image pickup device for picking up an optical member to be inspected and outputting image data including an image of the optical member to be inspected, an image memory for storing image data output from the image pickup device, and an image memory Area specifying means for specifying an area indicating a cause of a defect of the optical member to be inspected from image data stored in the apparatus, and fillet measuring means for measuring a maximum fillet and a minimum fillet of the area specified by the area specifying means, respectively. A ratio comparing means for comparing the ratio of the maximum fillet to the minimum fillet measured by the fillet measuring means with a predetermined threshold value; and an area specified by the area specifying means based on a comparison result by the ratio comparing means. A defect factor type recognizing means for recognizing whether the inspection target optical member indicates any of a flaw and a fluff. An optical member inspection apparatus.
【請求項2】前記不良要因種別認識手段は、前記最小フ
ィレの前記最大フィレに対する比率が前記所定の閾値よ
りも大きい事を前記比率比較手段による比較結果が示す
場合には、前記領域特定手段によって特定された領域が
前記検査対象光学部材のケバを示すと認識することを特
徴とする請求項1記載の光学部材検査装置。
2. The defect factor type recognizing means, when the comparison result by the ratio comparing means indicates that the ratio of the minimum fillet to the maximum fillet is larger than the predetermined threshold value, the area specifying means. The optical member inspection apparatus according to claim 1, wherein the specified region is recognized as indicating a fluff of the optical member to be inspected.
【請求項3】前記フィレ測定手段によって測定された最
小フィレを所定の閾値と比較する最小フィレ比較手段
を、更に備えるとともに、 前記不良要因種別認識手段は、前記最小フィレの前記最
大フィレに対する比率が前記所定の閾値よりも小さい事
を前記比率比較手段による比較結果が示す場合には、前
記最小フィレが前記所定の閾値よりも小さいと前記最小
フィレ比較手段による比較結果が示すときに限り、前記
領域特定手段によって特定された領域が前記検査対象光
学部材のキズを示すと認識し、それ以外のときには前記
領域特定手段によって特定された領域が前記検査対象光
学部材のケバを示すと認識することを特徴とする請求項
2記載の光学部材検査装置。
3. The apparatus according to claim 1, further comprising: a minimum fillet comparing means for comparing a minimum fillet measured by said fillet measuring means with a predetermined threshold value. When the comparison result by the ratio comparing means indicates that the minimum fillet is smaller than the predetermined threshold, the area is limited only when the comparison result by the minimum fillet comparing means indicates that the minimum fillet is smaller than the predetermined threshold. Recognizing that the region specified by the specifying unit indicates a flaw of the optical member to be inspected, and otherwise recognizes that the region specified by the region specifying unit indicates a fluff of the optical member to be inspected. The optical member inspection apparatus according to claim 2, wherein
【請求項4】直交座標に従って画像データを保持する作
業メモリと、前記領域特定手段が特定した領域を前記画
像メモリに格納されている画像データから切り出して前
記作業メモリに貼り付ける画像データ切出手段とを、更
に備えるとともに、 前記フィレ測定手段は、前記作業メモリに貼り付けられ
た画像データを回転させる画像データ回転手段と、この
画像データ回転手段が前記作業メモリに貼り付けられた
画像データを回転させている間に、前記直交座標の各軸
方向における前記領域のフィレを夫々計測するフィレ計
測手段と、前記フィレ計測手段によって計測された最大
のフィレを前記最大フィレとして特定する最大フィレ特
定手段と、前記フィレ計測手段によって計測された最小
のフィレを前記最小フィレとして特定する最小フィレ特
定手段とからなることを特徴とする請求項1記載の光学
部材検査装置。
4. A work memory for holding image data in accordance with rectangular coordinates, and an image data cutout means for cutting out an area specified by the area specifying means from image data stored in the image memory and pasting the image data in the work memory. Wherein the fillet measuring means rotates image data pasted to the working memory, and the image data rotating means rotates the image data pasted to the working memory. While doing so, fillet measuring means for measuring the fillet of the area in each axis direction of the orthogonal coordinates, and maximum fillet specifying means for specifying the largest fillet measured by the fillet measuring means as the maximum fillet. , A minimum fillet that specifies a minimum fillet measured by the fillet measuring means as the minimum fillet. 2. The optical member inspection apparatus according to claim 1, further comprising a specifying unit.
【請求項5】直交座標に従って画像データを保持する作
業メモリと、前記領域特定手段が特定した領域を前記画
像メモリに格納されている画像データから切り出して前
記作業メモリに貼り付ける画像データ切出手段とを、更
に備えるとともに、 前記フィレ測定手段は、前記作業メモリに貼り付けられ
た画像データの慣性主軸ベクトルを測定する慣性主軸ベ
クトル測定手段と、前記慣性主軸ベクトルが前記直交座
標の何れかの軸方向を向くように、前記作業メモリに貼
り付けられた画像データを回転させる画像データ回転手
段と、この画像データ回転手段による回転後において、
前記直交座標の各軸方向における前記領域のフィレを夫
々計測するフィレ計測手段と、前記フィレ計測手段によ
って計測された各フィレのうち大きい方を前記最大フィ
レとして特定する最大フィレ特定手段と、前記フィレ計
測手段によって計測された各フィレのうち小さい方を前
記最小フィレとして特定する最小フィレ特定手段とから
なることを特徴とする請求項1記載の光学部材検査装
置。
5. A work memory for holding image data in accordance with rectangular coordinates, and an image data cutout means for cutting out an area specified by the area specifying means from image data stored in the image memory and pasting the image data in the work memory. The fillet measuring means further comprises: an inertial principal axis vector measuring means for measuring an inertial principal axis vector of the image data attached to the working memory; and the inertial principal axis vector is one of the orthogonal coordinates. Image data rotating means for rotating the image data attached to the working memory so as to face the direction, after rotation by the image data rotating means,
Fillet measuring means for measuring the fillet of the area in each axis direction of the rectangular coordinates, maximum fillet specifying means for specifying a larger one of the fillets measured by the fillet measuring means as the maximum fillet, 2. The optical member inspection device according to claim 1, further comprising a minimum fillet specifying unit that specifies a smaller one of the fillets measured by the measuring unit as the minimum fillet.
【請求項6】直交座標に従って画像データを保持する作
業メモリと、前記領域特定手段が特定した領域を前記画
像メモリに格納されている画像データから切り出して前
記作業メモリに貼り付ける画像データ切出手段とを、更
に備えるとともに、 前記フィレ測定手段は、前記作業メモリに貼り付けられ
た画像データの慣性主軸ベクトルを測定する慣性主軸ベ
クトル測定手段と、前記慣性主軸ベクトルと平行な方向
及び直交する方向における前記領域のフィレを夫々計測
するフィレ計測手段と、前記フィレ計測手段によって計
測された前記慣性主軸ベクトルと平行な方向におけるフ
ィレを前記最大フィレとして特定する最大フィレ特定手
段と、前記フィレ計測手段によって計測された前記慣性
主軸ベクトルに直交する方向におけるフィレを前記最小
フィレとして特定する最小フィレ特定手段とからなるこ
とを特徴とする請求項1記載の光学部材検査装置。
6. A work memory for holding image data in accordance with rectangular coordinates, and an image data cutout means for cutting out an area specified by the area specifying means from image data stored in the image memory and pasting the image data in the work memory. The fillet measuring means, the inertial principal axis vector measuring means for measuring the inertial principal axis vector of the image data pasted in the working memory, in a direction parallel to and orthogonal to the inertial principal axis vector Fillet measuring means for measuring the fillet in the area, maximum fillet specifying means for specifying a fillet in a direction parallel to the inertial principal axis vector measured by the fillet measuring means as the maximum fillet, and measurement by the fillet measuring means. The fillet in a direction orthogonal to the calculated principal axis vector of inertia. 2. The optical member inspection apparatus according to claim 1, further comprising a minimum fillet specifying unit that specifies a small fillet.
【請求項7】検査対象光学部材を撮像して得られた画像
データを格納する画像メモリと、 この画像メモリに格納されている画像データ中から前記
検査対象光学部材の不良要因を示す領域を特定する領域
特定手段と、 この領域特定手段によって特定された領域の最大フィレ
及び最小フィレを夫々測定するフィレ測定手段と、 このフィレ測定手段によって測定された最大フィレと最
小フィレとの比率を所定の閾値と比較する比率比較手段
と、 この比率比較手段による比較結果に基づいて、前記領域
特定手段によって特定された領域が前記検査対象光学部
材のキズ及びケバの何れかを示すのかの認識を行う不良
要因種別認識手段とを備えたことを特徴とする画像処理
装置。
7. An image memory for storing image data obtained by imaging an optical member to be inspected, and an area indicating a cause of failure of the optical member to be inspected is specified from the image data stored in the image memory. An area specifying means, a fillet measuring means for measuring a maximum fillet and a minimum fillet of an area specified by the area specifying means, respectively, a ratio of the maximum fillet and the minimum fillet measured by the fillet measuring means is determined by a predetermined threshold value. A ratio comparing means for comparing with the ratio comparing means, and a failure factor for recognizing whether the area specified by the area specifying means indicates any of a flaw and a bulge of the inspection target optical member. An image processing apparatus comprising: a type recognition unit.
【請求項8】画像メモリを備えたコンピュータに対し
て、 検査対象光学部材を撮像して得られた画像データを前記
画像メモリに格納させ、 この画像メモリに格納されている画像データ中から前記
検査対象光学部材の不良要因を示す領域を特定させ、 特定した領域の最大フィレ及び最小フィレを夫々測定さ
せ、 測定した最大フィレと最小フィレとの比率を所定の閾値
と比較させ、 この比較結果に基づいて、特定された領域が前記検査対
象光学部材のキズ及びケバの何れかを示すのかの認識を
行わせるプログラムを格納したコンピュータ可読媒体。
8. A computer having an image memory stores image data obtained by imaging the optical member to be inspected in the image memory, and performs the inspection from the image data stored in the image memory. The area indicating the cause of the failure of the target optical member is specified, the maximum fillet and the minimum fillet of the specified area are measured, and the ratio of the measured maximum fillet to the minimum fillet is compared with a predetermined threshold value. And a computer-readable medium storing a program for recognizing whether the specified area indicates a flaw or a fluff of the optical member to be inspected.
JP29600697A 1997-10-28 1997-10-28 Optical member inspection device Expired - Fee Related JP3831498B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29600697A JP3831498B2 (en) 1997-10-28 1997-10-28 Optical member inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29600697A JP3831498B2 (en) 1997-10-28 1997-10-28 Optical member inspection device

Publications (2)

Publication Number Publication Date
JPH11132901A true JPH11132901A (en) 1999-05-21
JP3831498B2 JP3831498B2 (en) 2006-10-11

Family

ID=17827921

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29600697A Expired - Fee Related JP3831498B2 (en) 1997-10-28 1997-10-28 Optical member inspection device

Country Status (1)

Country Link
JP (1) JP3831498B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117491391A (en) * 2023-12-29 2024-02-02 登景(天津)科技有限公司 Glass substrate light three-dimensional health detection method and equipment based on chip calculation

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117491391A (en) * 2023-12-29 2024-02-02 登景(天津)科技有限公司 Glass substrate light three-dimensional health detection method and equipment based on chip calculation
CN117491391B (en) * 2023-12-29 2024-03-15 登景(天津)科技有限公司 Glass substrate light three-dimensional health detection method and equipment based on chip calculation

Also Published As

Publication number Publication date
JP3831498B2 (en) 2006-10-11

Similar Documents

Publication Publication Date Title
US7202957B2 (en) Three-dimensional visual sensor
US6687396B1 (en) Optical member inspection apparatus, image-processing apparatus, image-processing method, and computer readable medium
KR20210153006A (en) Apparatus for detecting corona discharge
JP2007316019A (en) Surface defect inspection device
CN115526820A (en) Workpiece detection method and equipment
JPH11132901A (en) Optical member-inspecting apparatus, image-processing apparatus and computer readable medium
JP4005228B2 (en) Optical member inspection apparatus, image processing apparatus, and computer-readable medium
JP3887084B2 (en) Optical member inspection device
JP3272998B2 (en) Bump height pass / fail judgment device
JP3417816B2 (en) Optical member inspection device, image processing device, and computer readable medium
JP3641394B2 (en) Optical member inspection apparatus, image processing apparatus, image processing method, and computer-readable medium
JP2002310917A (en) Defect detecting method and device thereof
JP3505086B2 (en) Optical member inspection device
JP3435326B2 (en) Optical member inspection device
JPH1010051A (en) Applying condition detecting device using vision sensor
JP3205426B2 (en) Image processing device
JP3360795B2 (en) Optical member inspection device
JP3262632B2 (en) Image processing device
JP3559392B2 (en) Optical member inspection device
JP3310016B2 (en) Inspection equipment for circular inspection objects
JPH06341958A (en) Inspection method and device for shadow mask
JPH09101234A (en) Optical member inspection system
JP3482127B2 (en) Optical member inspection device and holder
JPH1123414A (en) External appearance inspecting apparatus for light transmission spherical shape material
JPH11125576A (en) Optical member inspecting device, image processing device, and computer-readable medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040804

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051220

A131 Notification of reasons for refusal

Effective date: 20060404

Free format text: JAPANESE INTERMEDIATE CODE: A131

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060605

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

Effective date: 20060704

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Effective date: 20060714

Free format text: JAPANESE INTERMEDIATE CODE: A61

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees