JP6973783B2 - Lens appearance inspection device - Google Patents

Lens appearance inspection device Download PDF

Info

Publication number
JP6973783B2
JP6973783B2 JP2017186863A JP2017186863A JP6973783B2 JP 6973783 B2 JP6973783 B2 JP 6973783B2 JP 2017186863 A JP2017186863 A JP 2017186863A JP 2017186863 A JP2017186863 A JP 2017186863A JP 6973783 B2 JP6973783 B2 JP 6973783B2
Authority
JP
Japan
Prior art keywords
lens
inspection
image
illumination
spectacle lens
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.)
Active
Application number
JP2017186863A
Other languages
Japanese (ja)
Other versions
JP2018059927A (en
Inventor
裕一 獅野
典弘 竹本
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.)
Tokai Optical Co Ltd
Original Assignee
Tokai Optical 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 Tokai Optical Co Ltd filed Critical Tokai Optical Co Ltd
Publication of JP2018059927A publication Critical patent/JP2018059927A/en
Application granted granted Critical
Publication of JP6973783B2 publication Critical patent/JP6973783B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Description

本発明は、眼鏡レンズやカメラレンズ等のレンズの外観を検査するレンズ外観検査装置に関する。 The present invention relates to a lens appearance inspection device for inspecting the appearance of a lens such as a spectacle lens or a camera lens.

レンズ用画像撮像装置として、下記特許文献1のものが知られている。
この装置では、[0054]や図1に記載されるように、光源31から出射した光Lがコリメータレンズ36によって平行光L1に変換され、その平行光L1がハーフミラー35とコーナーキューブプリズム49によって被検レンズ1に一往復透過されて、CCD40Aに集光されている。
他方、眼鏡レンズを始めとするレンズの目視検査においては、眩惑を防止して正確に検査するため、照明の透過光は目視せず、外観異常箇所で散乱される散乱光を捉えることで検査されている。例えば眼鏡レンズでは、外観異常は装用者において散乱光として感知され、散乱光による検査は、装用者(レンズのユーザー)による感知に類似するものとなり、この点でユーザーに合った検査と言える。
As an image imaging device for a lens, the one described in Patent Document 1 below is known.
In this device, as described in [0054] and FIG. 1, the light L emitted from the light source 31 is converted into the parallel light L1 by the collimator lens 36, and the parallel light L1 is converted into the parallel light L1 by the half mirror 35 and the corner cube prism 49. It is transmitted back and forth through the lens 1 to be inspected and is focused on the CCD 40A.
On the other hand, in the visual inspection of lenses such as spectacle lenses, in order to prevent dazzling and perform an accurate inspection, the transmitted light of the illumination is not visually inspected, but the scattered light scattered in the abnormal appearance is captured. ing. For example, in a spectacle lens, an abnormality in appearance is perceived by the wearer as scattered light, and an inspection using scattered light is similar to a perceived by the wearer (lens user), and in this respect, it can be said to be an inspection suitable for the user.

特許第4906708号公報Japanese Patent No. 4906708

特許文献1のものでは、平行光の透過光によってレンズの画像が撮像されており、マーク等を通過した光束が発散する一方で透過光は平行に進行するため、鮮明な画像が得られる。
しかし、特許文献1のものでは、透過光を捉えて画像が撮像されており、目視検査とギャップのある検査となってユーザーに合わない検査となり得るし、外観異常箇所の態様によっては、光束が発散せずに撮像装置に達して、外観異常をうまく捉えられない可能性がある。
そこで、透過光を撮像せずに散乱光を撮像して、目視検査と同様の検査を自動で行うことが考えられる。
しかし、散乱光のみの撮像では、散乱光の光量が僅かであることから、十分な精度の検査のために必要なコントラスト比を得ることが難しく、特に眼鏡レンズのような多様なカーブ値や度数を有するレンズにおいては、全ての場合において散乱光の光量を十分に確保することが困難で、必要なコントラスト比を得ることが困難である。
又、散乱光のみの撮像において、コントラスト比を良好にするために、照明の強度を強くすると、特にカーブの深いレンズや肉厚の大きいレンズにおいて照明の映り込みが発生し、その映り込みを取り込んだ撮像結果によって、良品のレンズが良品として判定されない事態が生じ得て、かえって検査精度が悪化しかねず、照明の強度にも限界があって、検査精度の向上に限界が存在する。
そこで、本発明は、散乱光により撮像した画像において、照明の映り込みにより及ぼされる影響を排除した状態で十分なコントラスト比が確保され、その画像を用いた検査の精度が良好であるレンズ外観検査装置を提供することを主な目的とするものである。
In Patent Document 1, the image of the lens is captured by the transmitted light of the parallel light, and the transmitted light travels in parallel while the light flux passing through the mark or the like is emitted, so that a clear image can be obtained.
However, in Patent Document 1, an image is captured by capturing the transmitted light, which may result in an inspection with a gap between the visual inspection and the inspection, which may not be suitable for the user. It may reach the image pickup device without divergence and may not be able to capture the appearance abnormality well.
Therefore, it is conceivable to image the scattered light without imaging the transmitted light and automatically perform the same inspection as the visual inspection.
However, in the case of imaging with only scattered light, it is difficult to obtain the contrast ratio required for a sufficiently accurate inspection because the amount of scattered light is small. In all cases, it is difficult to secure a sufficient amount of scattered light, and it is difficult to obtain the required contrast ratio.
Further, in the case of imaging only scattered light, if the illumination intensity is increased in order to improve the contrast ratio, the illumination is reflected especially in a lens having a deep curve or a lens having a large wall thickness, and the reflection is captured. However, depending on the imaging result, a situation may occur in which a good lens is not judged as a good product, and the inspection accuracy may be deteriorated, the illumination intensity is limited, and there is a limit to the improvement of the inspection accuracy.
Therefore, according to the present invention, in an image captured by scattered light, a sufficient contrast ratio is secured in a state where the influence of the reflection of illumination is eliminated, and the inspection accuracy using the image is good. The main purpose is to provide the device.

上記目的を達成するために、請求項1に記載の発明は、検査対象レンズに対して、当該検査対象レンズの光軸を囲む囲み線の一部にそれぞれ相当する部分を占める複数の照明部分から、照明光を切替えて照射可能である照明光照射手段と、前記検査対象レンズに対する前記照明光照射手段の、前記光軸の方向における位置、及び傾斜角の少なくとも一方を変更する照射変更手段と、前記検査対象レンズが含まれる検査用画像を撮像するカメラと、前記検査用画像を処理する制御手段と、を備えており、前記カメラは、前記照明光照射手段による複数の前記照明部分における照射毎に前記検査用画像を撮像し、前記制御手段は、前記検査対象レンズの特性値であるレンズ特性値を含むレンズデータベースを記憶する記憶手段を有しており、前記検査用画像の撮像時に、前記レンズデータベースを参照して得た前記レンズ特性値に対応する前記照明光照射手段の前記位置及び前記傾斜角の少なくとも一方を抽出して、その決定された前記位置及び前記傾斜角の少なくとも一方となるように、前記照射変更手段により前記照明光照射手段の前記位置及び前記傾斜角の少なくとも一方を変更させる照射変更処理と、複数の前記照明部分の照射毎に撮像した前記検査用画像中の前記検査対象レンズ撮像部分における、前記照明部分が映り込んだ部分をそれぞれ消去して、複数の検査用マスク画像を生成する一部消去処理と、複数の前記検査用マスク画像を合成して検査用合成画像を生成する合成処理と、を行うことを特徴とするものである。
請求項2に記載の発明は、上記発明にあって、前記照明光は、指向角が30°以下の狭角光であることを特徴とするものである。
請求項3に記載の発明は、上記発明にあって、前記照明光照射手段の前記傾斜角に係る前記照射変更手段は、アクチュエータにより形成されることを特徴とするものである。
請求項4に記載の発明は、上記発明にあって、前記照明光照射手段における前記囲み線は、前記検査対象レンズを囲む円環又は正多角形であり、前記照明光照射手段における前記照明部分は、前記円環又は前記正多角形を均等に分割した場合の前記円環の部分又は前記正多角形の部分であり、前記制御手段の前記一部消去処理における消去対象部分は、前記検査用画像をその中心から発する放射方向の直線で均等に分割した場合の前記検査用画像の部分であることを特徴とするものである。
請求項5に記載の発明は、上記発明において、前記カメラは、前記検査対象レンズに向けられたカメラレンズを有しており、前記カメラレンズは、物体側テレセントリックレンズ又は両側テレセントリックレンズであることを特徴とするものである。
請求項6に記載の発明は、上記発明において、更に、内面が反射防止面とされている箱体を備えており、前記箱体は、孔を有しており、前記検査対象レンズを挟んで前記カメラと反対側に前記孔が位置するように配置されていることを特徴とするものである。
請求項7に記載の発明は、上記発明において、更に、前記検査対象レンズ及び前記照明光照射手段、並びに、前記カメラを覆うエンクロージャを備えており、前記エンクロージャの内面は、前記照明光の反射が防止される反射防止面とされていることを特徴とするものである。
請求項8に記載の発明は、上記発明において、更に、前記検査対象レンズと前記カメラとの間の距離を調整する距離調整手段を備えていることを特徴とするものである。
In order to achieve the above object, the invention according to claim 1 comprises a plurality of illuminated portions that occupy a portion corresponding to a part of a surrounding line surrounding the optical axis of the lens to be inspected. An illumination light irradiating means capable of switching and irradiating the illumination light , and an irradiation changing means for changing at least one of the position and the tilt angle of the illumination light irradiating means with respect to the lens to be inspected in the direction of the optical axis. The camera includes a camera for capturing an inspection image including the inspection target lens and a control means for processing the inspection image, and the camera is provided with each irradiation by the illumination light irradiation means in the plurality of illumination portions. The control means has a storage means for storing a lens database including a lens characteristic value which is a characteristic value of the lens to be inspected , and when the inspection image is imaged, the control means has a storage means. At least one of the position and the tilt angle of the illumination light irradiation means corresponding to the lens characteristic value obtained by referring to the lens database is extracted and becomes at least one of the determined position and the tilt angle. As described above, the irradiation change process for changing at least one of the position and the tilt angle of the illumination light irradiation means by the irradiation change means, and the inspection in the inspection image captured for each irradiation of the plurality of illumination portions. A partial erasing process that erases each part of the image pickup portion of the target lens in which the illuminated portion is reflected to generate a plurality of inspection mask images, and a composite image for inspection by synthesizing the plurality of inspection mask images. It is characterized by performing a synthesis process to generate a light.
The invention according to claim 2 is the above invention, characterized in that the illumination light is a narrow angle light having a directivity angle of 30 ° or less.
The invention according to claim 3 is the above invention, characterized in that the irradiation changing means relating to the tilt angle of the illumination light irradiating means is formed by an actuator.
The invention according to claim 4 is the invention, wherein the surrounding line in the illumination light irradiation means is a ring or a regular polygon surrounding the inspection target lens, and the illumination portion in the illumination light irradiation means. Is a part of the ring or a part of the regular polygon when the ring or the regular polygon is evenly divided, and the part to be erased in the partial erasing process of the control means is for inspection. It is characterized in that it is a part of the inspection image when the image is evenly divided by a straight line in the radial direction emanating from the center thereof.
According to the fifth aspect of the present invention, in the above invention, the camera has a camera lens directed to the lens to be inspected, and the camera lens is an object-side telecentric lens or a bilateral telecentric lens. It is a feature.
The invention according to claim 6 further includes a box body whose inner surface is an antireflection surface, the box body having a hole, and sandwiching the lens to be inspected. It is characterized in that the hole is arranged so as to be located on the opposite side of the camera.
The invention according to claim 7 further comprises the lens to be inspected, the illumination light irradiation means, and an enclosure covering the camera, and the inner surface of the enclosure is reflected by the illumination light. It is characterized by being an antireflection surface to be prevented.
The invention according to claim 8 is characterized in that the invention further comprises a distance adjusting means for adjusting the distance between the lens to be inspected and the camera.

本発明によれば、散乱光により撮像した画像において、照明の映り込みにより及ぼされる影響を排除した状態で十分なコントラスト比が確保され、その画像を用いた検査の精度が良好であるレンズ外観検査装置を提供することが可能となる、という効果を奏する。 According to the present invention, in an image captured by scattered light, a sufficient contrast ratio is secured in a state where the influence of the reflection of illumination is eliminated, and the inspection accuracy using the image is good. It has the effect of being able to provide the device.

本発明の第1形態に係るレンズ外観検査装置の斜視模式図である。It is a perspective schematic diagram of the lens appearance inspection apparatus which concerns on 1st Embodiment of this invention. 図1の縦中央断面模式図である。It is a vertical center sectional view schematic diagram of FIG. 図1における狭角光照明手段の上面図である。It is a top view of the narrow angle light illumination means in FIG. 1. 図1の装置の動作例に係るフローチャートである。It is a flowchart which concerns on the operation example of the apparatus of FIG. 眼鏡レンズが正常なマイナスレンズである場合における、図1の第1検査用画像を示す写真である。It is a photograph which shows the 1st inspection image of FIG. 1 when the spectacle lens is a normal minus lens. 眼鏡レンズが正常なマイナスレンズである場合における、図1の第2検査用画像を示す写真である。It is a photograph which shows the 2nd inspection image of FIG. 1 when the spectacle lens is a normal minus lens. 眼鏡レンズが正常なマイナスレンズである場合における、図1の第3検査用画像を示す写真である。It is a photograph which shows the 3rd inspection image of FIG. 1 when the spectacle lens is a normal minus lens. 眼鏡レンズが正常なマイナスレンズである場合における、図1の第4検査用画像を示す写真である。It is a photograph which shows the 4th inspection image of FIG. 1 when the spectacle lens is a normal minus lens. 眼鏡レンズが異常なマイナスレンズである場合における、図1の第1検査用画像を示す写真である。It is a photograph which shows the 1st inspection image of FIG. 1 when the spectacle lens is an abnormal minus lens. 眼鏡レンズが異常なマイナスレンズである場合における、図1の第2検査用画像を示す写真である。It is a photograph which shows the 2nd inspection image of FIG. 1 when the spectacle lens is an abnormal minus lens. 眼鏡レンズが異常なマイナスレンズである場合における、図1の第3検査用画像を示す写真である。It is a photograph which shows the 3rd inspection image of FIG. 1 when the spectacle lens is an abnormal minus lens. 眼鏡レンズが異常なマイナスレンズである場合における、図1の第4検査用画像を示す写真である。It is a photograph which shows the 4th inspection image of FIG. 1 when the spectacle lens is an abnormal minus lens. 眼鏡レンズが正常なプラスレンズである場合における、図1の第1検査用画像を示す写真である。It is a photograph which shows the 1st inspection image of FIG. 1 when the spectacle lens is a normal plus lens. 眼鏡レンズが正常なプラスレンズである場合における、図1の第2検査用画像を示す写真である。It is a photograph which shows the 2nd inspection image of FIG. 1 when the spectacle lens is a normal plus lens. 眼鏡レンズが正常なプラスレンズである場合における、図1の第3検査用画像を示す写真である。It is a photograph which shows the 3rd inspection image of FIG. 1 when the spectacle lens is a normal plus lens. 眼鏡レンズが正常なプラスレンズである場合における、図1の第4検査用画像を示す写真である。It is a photograph which shows the 4th inspection image of FIG. 1 when the spectacle lens is a normal plus lens. 眼鏡レンズが正常なマイナスレンズである場合における、図1の第1検査用マスク画像を示す写真である。It is a photograph which shows the mask image for the 1st inspection of FIG. 1 when the spectacle lens is a normal minus lens. 眼鏡レンズが正常なマイナスレンズである場合における、図1の第2検査用マスク画像を示す写真である。It is a photograph which shows the mask image for the 2nd inspection of FIG. 1 when the spectacle lens is a normal minus lens. 眼鏡レンズが正常なマイナスレンズである場合における、図1の第3検査用マスク画像を示す写真である。It is a photograph which shows the mask image for the 3rd inspection of FIG. 1 when the spectacle lens is a normal minus lens. 眼鏡レンズが正常なマイナスレンズである場合における、図1の第4検査用マスク画像を示す写真である。It is a photograph which shows the 4th inspection mask image of FIG. 1 when the spectacle lens is a normal minus lens. 眼鏡レンズが異常なマイナスレンズである場合における、図1の第1検査用マスク画像を示す写真である。It is a photograph which shows the mask image for the 1st inspection of FIG. 1 in the case where a spectacle lens is an abnormal minus lens. 眼鏡レンズが異常なマイナスレンズである場合における、図1の第2検査用マスク画像を示す写真である。It is a photograph which shows the mask image for the 2nd inspection of FIG. 1 in the case where a spectacle lens is an abnormal minus lens. 眼鏡レンズが異常なマイナスレンズである場合における、図1の第3検査用マスク画像を示す写真である。It is a photograph which shows the mask image for the 3rd inspection of FIG. 1 in the case where a spectacle lens is an abnormal minus lens. 眼鏡レンズが異常なマイナスレンズである場合における、図1の第4検査用マスク画像を示す写真である。It is a photograph which shows the 4th inspection mask image of FIG. 1 when the spectacle lens is an abnormal minus lens. 眼鏡レンズが正常なプラスレンズである場合における、図1の第1検査用マスク画像を示す写真である。It is a photograph which shows the mask image for the 1st inspection of FIG. 1 when the spectacle lens is a normal plus lens. 眼鏡レンズが正常なプラスレンズである場合における、図1の第2検査用マスク画像を示す写真である。It is a photograph which shows the mask image for the 2nd inspection of FIG. 1 when the spectacle lens is a normal plus lens. 眼鏡レンズが正常なプラスレンズである場合における、図1の第3検査用マスク画像を示す写真である。It is a photograph which shows the mask image for the 3rd inspection of FIG. 1 when the spectacle lens is a normal plus lens. 眼鏡レンズが正常なプラスレンズである場合における、図1の第4検査用マスク画像を示す写真である。It is a photograph which shows the 4th inspection mask image of FIG. 1 when the spectacle lens is a normal plus lens. 眼鏡レンズが正常なマイナスレンズである場合における、図1の検査用合成画像を示す写真である。It is a photograph which shows the composite image for inspection of FIG. 1 when the spectacle lens is a normal minus lens. 眼鏡レンズが異常なマイナスレンズである場合における、図1の検査用合成画像を示す写真である。It is a photograph which shows the composite image for inspection of FIG. 1 when the spectacle lens is an abnormal minus lens. 眼鏡レンズが正常なプラスレンズである場合における、図1の検査用合成画像を示す写真である。It is a photograph which shows the composite image for inspection of FIG. 1 when the spectacle lens is a normal plus lens. 参考例に係る正常マイナスレンズ全照明画像を示す写真である。It is a photograph which shows the normal minus lens total illumination image which concerns on a reference example. 参考例に係る異常マイナスレンズ全照明画像を示す写真である。It is a photograph which shows the abnormal minus lens total illumination image which concerns on a reference example. 参考例に係る正常プラスレンズ全照明画像を示す写真である。It is a photograph which shows the normal plus lens full illumination image which concerns on a reference example. 図1における検査用合成画像を示す写真である。It is a photograph which shows the synthetic image for inspection in FIG. 図35の検査用合成画像を2値化した画像を示す写真である。It is a photograph which shows the image which binarized the composite image for inspection of FIG. 35. ステージが箱体でない場合における図35に相当する写真である。It is a photograph corresponding to FIG. 35 when the stage is not a box body. 図37の検査用合成画像を2値化した画像を示す写真である。It is a photograph which shows the image which binarized the composite image for inspection of FIG. 37. 本発明の第2形態に係るレンズ外観検査装置の縦中央断面模式図である。It is a vertical center sectional sectional schematic diagram of the lens appearance inspection apparatus which concerns on 2nd Embodiment of this invention. 図39における狭角光照明手段の上面図である。It is a top view of the narrow angle light illumination means in FIG. 39. 眼鏡レンズが異常なマイナスレンズである場合における、水平状態の照射ユニットが1個置きに点灯した場合の参考的な画像を示す写真である。It is a photograph which shows the reference image in the case where the spectacle lens is an abnormal minus lens, and the irradiation unit in a horizontal state is lit every other. 図41の眼鏡レンズにおける、緩傾斜状態の照射ユニットが1個置きに点灯した場合の参考的な画像を示す写真である。It is a photograph which shows the reference image when the irradiation unit in a gentle inclination state is lit every other in the spectacle lens of FIG. 41. 図41の眼鏡レンズにおける、急傾斜状態の照射ユニットが1個置きに点灯した場合の参考的な画像を示す写真である。It is a photograph which shows the reference image when the irradiation unit in a steeply inclined state is lit every other in the spectacle lens of FIG. 41. 図41の眼鏡レンズにおける、水平状態に対応する検査用画像を示す写真である。It is a photograph which shows the inspection image corresponding to the horizontal state in the spectacle lens of FIG. 41. 図41の眼鏡レンズにおける、緩傾斜状態に対応する検査用画像を示す写真である。It is a photograph which shows the inspection image corresponding to the gentle inclination state in the spectacle lens of FIG. 41. 図41の眼鏡レンズにおける、急傾斜状態に対応する検査用画像を示す写真である。It is a photograph which shows the inspection image corresponding to the steep inclination state in the spectacle lens of FIG. 41. 図44の検査用合成画像を2値化した画像を示す写真である。It is a photograph which shows the image which binarized the composite image for inspection of FIG. 44. 図45の検査用合成画像を2値化した画像を示す写真である。It is a photograph which shows the image which binarized the composite image for inspection of FIG. 45. 図46の検査用合成画像を2値化した画像を示す写真である。It is a photograph which shows the image which binarized the composite image for inspection of FIG. 46.

以下、本発明に係る実施の形態の例が、適宜図面を用いて説明される。尚、本発明の形態は、以下のものに限定されない。 Hereinafter, examples of embodiments according to the present invention will be described with reference to the drawings. The form of the present invention is not limited to the following.

[第1形態]
≪構成等≫
図1は、本発明の第1形態に係るレンズ外観検査装置1の斜視模式図であり、図2は、レンズ外観検査装置1の縦中央断面模式図である。
レンズ外観検査装置1は、エンクロージャ2と、水平な天板3を有しておりエンクロージャ2の内側下部に配置される箱状のステージ4(箱体)と、天板3の中央部に開けられた孔5の周囲に配置されるレンズ保持機構6と、ステージ4の天板3上に配置される照明光照射手段としての狭角光照射手段7と、エンクロージャ2の内側の上部に設置されるカメラ8と、報知手段9と、これらを制御する制御手段12を備えており、眼鏡レンズLの外観を検査するものである。尚、レンズ外観検査装置1は、カーブの深い(曲率半径の小さい)ものが多く含まれる眼鏡レンズLの検査に適しているが、眼鏡レンズL以外の(カーブの深いあるいは肉厚の大きい)レンズの検査に用いられても良い。又、エンクロージャ2、レンズ保持機構6、及び報知手段9の少なくとも何れかは、省略されても良い。更に、レンズ外観検査装置は、レンズに関する他の検査を行う各種検査装置と組み合わせられても良い。加えて、以下のレンズ外観検査装置1が複数組み合わせられることでレンズ外観検査装置が構成されても良い。
[First form]
≪Composition, etc.≫
FIG. 1 is a schematic perspective view of the lens appearance inspection device 1 according to the first aspect of the present invention, and FIG. 2 is a schematic view of a vertical center cross section of the lens appearance inspection device 1.
The lens visual inspection device 1 has an enclosure 2, a horizontal top plate 3, and is opened in a box-shaped stage 4 (box body) arranged at the lower inside of the enclosure 2 and a central portion of the top plate 3. A lens holding mechanism 6 arranged around the hole 5, a narrow-angle light irradiation means 7 as an illumination light irradiation means arranged on the top plate 3 of the stage 4, and an upper part inside the enclosure 2. A camera 8, a notification means 9, and a control means 12 for controlling these are provided, and the appearance of the spectacle lens L is inspected. The lens appearance inspection device 1 is suitable for inspecting a spectacle lens L including many lenses having a deep curve (small radius of curvature), but a lens other than the spectacle lens L (deep curve or thick wall). It may be used for the inspection of. Further, at least one of the enclosure 2, the lens holding mechanism 6, and the notification means 9 may be omitted. Further, the lens appearance inspection device may be combined with various inspection devices for performing other inspections related to the lens. In addition, the lens appearance inspection device may be configured by combining a plurality of the following lens appearance inspection devices 1.

エンクロージャ2は、閉塞可能な箱状であり、遮光性材料によって形成されている。エンクロージャ2の内面には、光の反射率を低減させることで光の反射を防止する反射防止加工が施されており、エンクロージャ2の内面は、光の反射が防止される反射防止面とされていて、ここでは黒色を呈するように形成されている(黒化処理)。尚、反射防止フィルムを貼着することで、反射防止フィルム付きのエンクロージャ2内面が形成され、エンクロージャ2内面の反射防止面が形成されても良い。 The enclosure 2 has a box shape that can be closed and is formed of a light-shielding material. The inner surface of the enclosure 2 is antireflection processed to prevent light reflection by reducing the reflectance of light, and the inner surface of the enclosure 2 is an antireflection surface to prevent light reflection. Here, it is formed so as to exhibit black color (blackening treatment). By attaching the antireflection film, the inner surface of the enclosure 2 with the antireflection film may be formed, and the antireflection surface of the inner surface of the enclosure 2 may be formed.

ステージ4は、距離調整手段としてのリフト20によって、天板3を水平姿勢に保ったまま上下動可能に支持されている。尚、ステージ4(箱体)は、眼鏡レンズLの下方に位置する内面に光がなるべく当たらないように当該内面を囲む形状であれば足り、完全に閉塞されている必要はなく、窓や扉等の開口部が存在していても良い。あるいは、リフト20は、省略されても良い。又、ステージ4の一部が上下動可能に支持されても良い。更に、ステージ4あるいはその一部は、リフト20や他の手段によって、左右に移動可能とされても良い。
ステージ4の外面は黒色とされており、ステージ4の内面は、黒色のスクリーンが貼られることで黒化処理されている。
The stage 4 is supported by a lift 20 as a distance adjusting means so as to be able to move up and down while keeping the top plate 3 in a horizontal posture. The stage 4 (box body) need only have a shape that surrounds the inner surface located below the spectacle lens L so that light does not hit the inner surface as much as possible, and does not need to be completely closed, and the window or door does not need to be completely closed. Etc. may be present. Alternatively, the lift 20 may be omitted. Further, a part of the stage 4 may be supported so as to be vertically movable. Further, the stage 4 or a part thereof may be made movable to the left or right by the lift 20 or other means.
The outer surface of the stage 4 is black, and the inner surface of the stage 4 is blackened by attaching a black screen.

レンズ保持機構6は、検査対象レンズとしての眼鏡レンズLを保持する機構であり、ここでは一対(2個)の断面L字状のフック21,21である。各フック21の一方の面状部分は、天板3の中央部に開けられた孔5の内側(天板3の下面)に対して固定されており、他方の面状部分は、起立姿勢となっており、その上部において眼鏡レンズLの周縁を支持する。各フック21における起立部分は、透光性を有するが、照明光を阻害しなければ透光性を有していなくても良い。フック21,21は、互いに向かい合うように配置され、眼鏡レンズLの外径に応じてそれらの距離が調整される。
尚、フック21の数は、1個でも良いし、3個以上であっても良い。フック21の固定は、孔5の内側以外に対するものであっても良い。又、レンズ保持機構6は、フランジ付きの円筒状部材であっても良く、この場合に内径の大きさ(内側形状)を眼鏡レンズLの外径(外側形状)に合致させる内径調整手段(形状調整手段)を備えるようにしても良い。更に、レンズ保持機構6の材質は、樹脂、セラミックス、ガラス、金属、ゴムあるいはこれらの組合せとされても良い。
The lens holding mechanism 6 is a mechanism for holding the spectacle lens L as the lens to be inspected, and here, a pair (two) of hooks 21 and 21 having an L-shaped cross section. One planar portion of each hook 21 is fixed to the inside of the hole 5 (lower surface of the top plate 3) formed in the central portion of the top plate 3, and the other planar portion is in an upright posture. Supports the peripheral edge of the spectacle lens L at the upper part thereof. The upright portion of each hook 21 has translucency, but may not have translucency as long as it does not interfere with the illumination light. The hooks 21 and 21 are arranged so as to face each other, and their distances are adjusted according to the outer diameter of the spectacle lens L.
The number of hooks 21 may be one or three or more. The fixing of the hook 21 may be to a position other than the inside of the hole 5. Further, the lens holding mechanism 6 may be a cylindrical member with a flange, and in this case, the inner diameter adjusting means (shape) for matching the size of the inner diameter (inner shape) with the outer diameter (outer shape) of the spectacle lens L. Adjustment means) may be provided. Further, the material of the lens holding mechanism 6 may be resin, ceramics, glass, metal, rubber, or a combination thereof.

図3にも示される狭角光照射手段7は、中空幅広円筒状であって中央孔部22を有するハウジング23と、ハウジング23内に配設された複数の狭角光LED24,24・・と、狭角光LED24,24・・毎に設けられる照明用レンズ26,26・・を備えている。
ハウジング23の外面は、エンクロージャ2の内面と同様に、黒色とされている。
各狭角光LED24は、白色の略狭角光を発する。狭角光は、指向角が30°以下の光であり、指向角が0°である平行光を含んでいる。略狭角光は、殆ど狭角光であるものの、完全な狭角光に近づけるための微調整の余地が残されている光であり、例えば30°を僅かに超えた指向角で発散する(遠方において広がりが認められる)光や、電圧等の条件によって指向角が変化することでかような発散が見受けられる光である。尚、各狭角光LED24は、白色以外の色の略狭角光を発しても良いし、紫外線や赤外線を含む可視光以外の略狭角光を発しても良いし、これらを組合せた略狭角光を発しても良い。又、狭角光LED24は、平行光又は略平行光を発する平行光LEDであっても良い。略平行光は、殆ど平行光であるものの、完全な平行光に近づけるための微調整の余地が残されている光であり、僅かに集束する(集束点が遠方ではあるが存在する)光や、僅かに発散する(遠方において広がりが認められる)光や、電圧等の条件によって僅かな集束や発散が変化する光である。更に、狭角光LED24に代えて、狭角光あるいは略狭角光ではない光(広角光)を発する光源が用いられても良い。以下、かような広角光及び狭角光は、合わせて照明光と呼ばれることがある。
各狭角光LED24は、発光方向がハウジング23の中央孔部22内(の中心)に向かうように設置されている。
狭角光LED24,24・・は、ハウジング23の周方向に並ぶように配置され、ここでは周方向に等間隔に、合計32個配置されている。
各照明用レンズ26は、対応する狭角光LED24の内方に配置されており、狭角光LED24から発出された略狭角光の光路を微調整して、狭角光とするものである。尚、照明用レンズ26は、略狭角光若しくは狭角光又は略平行光を平行光とするものであっても良い。又、照明用レンズ26は、狭角光LED24と一体としても良いし、複数の狭角光LED24,24・・に共通するものとしても良いし、省略しても良い。又、狭角光を発する手段は狭角光LED24と照明用レンズ26の組合せに限られず、レーザ励起体等であっても良い。
The narrow-angle light irradiating means 7 also shown in FIG. 3 includes a housing 23 that is hollow and has a wide cylindrical shape and has a central hole portion 22, and a plurality of narrow-angle light LEDs 24, 24, ... , Narrow-angle light LEDs 24, 24 ... are provided with lighting lenses 26, 26 ...
The outer surface of the housing 23 is black, like the inner surface of the enclosure 2.
Each narrow-angle light LED 24 emits white substantially narrow-angle light. The narrow-angle light is light having a directivity angle of 30 ° or less, and includes parallel light having a directivity angle of 0 °. Approximately narrow-angle light is almost narrow-angle light, but there is still room for fine adjustment to bring it closer to perfect narrow-angle light. Light that spreads in the distance) and light that diverges due to changes in the directivity angle depending on conditions such as voltage. Each narrow-angle light LED 24 may emit substantially narrow-angle light of a color other than white, or may emit substantially narrow-angle light other than visible light including ultraviolet rays and infrared rays, or a combination thereof. Narrow angle light may be emitted. Further, the narrow-angle light LED 24 may be a parallel light LED that emits parallel light or substantially parallel light. Approximately parallel light is light that is almost parallel light, but leaves room for fine adjustment to approach perfect parallel light, and is slightly focused (although the focusing point is distant) or light that is present. Light that diverges slightly (spreading is observed in the distance) and light whose focusing and divergence change slightly depending on conditions such as voltage. Further, instead of the narrow-angle light LED 24, a light source that emits light (wide-angle light) that is not narrow-angle light or substantially narrow-angle light may be used. Hereinafter, such wide-angle light and narrow-angle light may be collectively referred to as illumination light.
Each narrow-angle light LED 24 is installed so that the light emitting direction is toward the inside (center) of the central hole portion 22 of the housing 23.
The narrow-angle optical LEDs 24, 24 ... Are arranged so as to be arranged in the circumferential direction of the housing 23, and here, a total of 32 narrow-angle optical LEDs are arranged at equal intervals in the circumferential direction.
Each illumination lens 26 is arranged inside the corresponding narrow-angle light LED 24, and finely adjusts the optical path of the substantially narrow-angle light emitted from the narrow-angle light LED 24 to obtain narrow-angle light. .. The illumination lens 26 may have substantially narrow-angle light, narrow-angle light, or substantially parallel light as parallel light. Further, the illumination lens 26 may be integrated with the narrow-angle optical LED 24, may be common to a plurality of narrow-angle optical LEDs 24, 24, ..., Or may be omitted. Further, the means for emitting narrow-angle light is not limited to the combination of the narrow-angle light LED 24 and the illumination lens 26, and may be a laser exciter or the like.

そして、ハウジング23の中央孔部22内(検査位置)に、レンズ保持機構6を介して眼鏡レンズLがセットされる。眼鏡レンズLの光軸は、鉛直方向を向き、眼鏡レンズLが凸レンズである場合には凸面が下となるように配置され、眼鏡レンズLが凹レンズである場合には凹面が上となるように配置される。狭角光照射手段7は、ハウジング23の周方向の全体に亘り配置された狭角光LED24,24・・や照明用レンズ26,26・・を有するので、眼鏡レンズLの周囲全体を照らす。尚、眼鏡レンズLの向きは、上述と逆であっても良いが、上述の向きであれば各レンズの散乱光をより適切に撮像し易くなる。
各狭角光LED24から出た略狭角光は、何れもその狭角光LED24の向きに平行であり、対応する照明用レンズ26により狭角光となって、眼鏡レンズLに向かって、大きく広がることなく、又急に集束することなく、略真っ直ぐ進む。各照明用レンズ26から出た狭角光の方向は、眼鏡レンズLの光軸に交わる方向であり、より詳しくはその光軸に直交する水平な方向である。各狭角光LED24の発光部は、所定の大きさ(例えば直径2mm(ミリメートル)の円盤)を有しており、各狭角光LED24ないし照明用レンズ26からの狭角光に係る進行方向に垂直な断面の大きさは、その発光部の大きさから指向角の分だけ広がって行く。
狭角光がレンズ保持機構6に至る場合であっても、少なくともその到達部分(各フック21の起立部分)が透光性を有するから、狭角光はレンズ保持機構6を通過する。
又、狭角光LED24,24・・は、複数の照明部分毎に独立して点消灯可能であるように、制御手段12と電気的に接続されていて、ここでは図3で示されるように上側から下方へ見たときの右上部分である第1照明部分M1,右下部分である第2照明部分M2,左下部分である第3照明部分M3あるいは左上部分である第4照明部分M4の4箇所の部分毎に、オンオフを切替可能に接続されている(部分照明,分割照明)。それら照明部分のそれぞれは、狭角光LED24,24・・を8個含んており、眼鏡レンズLを取り囲む円環全体360°のうちの四半円90°の範囲を照らす。尚、かような照明部分の数、即ちリング状に配置された狭角光LED24,24・・の分割数は、4未満であっても良いし、4を超えていても良い。又、各部分における狭角光LED24,24・・の数や配置される角度は、同一であることが好ましいが(均等分割)、一部あるいは全部において互いに相違していても良い。更に、少なくとも2つの照明部分が互いにオーバーラップしていても良い。加えて、照明部分の集合が眼鏡レンズLを360°取り囲むことが好ましいが、狭角光照射手段7が照明部分の配置されない箇所(隙間等)を有することによって、照明部分の集合が眼鏡レンズLを360°取り囲まなくても良い。又、狭角光LED24,24・・は、多角形や楕円等の、眼鏡レンズLの光軸を囲む円環以外の任意の囲み線に沿うように配置されて良く、照明部分はその一部を占めるようにされて良い。
尚、ハウジング23は、幅広肉厚円弧形状を始めとする他の形状であっても良いし、狭角光LED24,24・・や照明用レンズ26,26・・は、弧状の部分に亘り配置される等、眼鏡レンズLを囲まないように配置されても良い。又、狭角光LED24,24・・に係る略狭角光の進行方向や照明用レンズ26,26・・の光軸方向は、眼鏡レンズLの光軸に直交する方向ではなく、その光軸に90°以外の角度で交わる方向を向いていても良い。
Then, the spectacle lens L is set in the central hole 22 (inspection position) of the housing 23 via the lens holding mechanism 6. The optical axis of the spectacle lens L faces in the vertical direction, and is arranged so that the convex surface is on the bottom when the spectacle lens L is a convex lens, and the concave surface is on the top when the spectacle lens L is a concave lens. Be placed. Since the narrow-angle light irradiating means 7 has narrow-angle light LEDs 24, 24 ... And illumination lenses 26, 26 ... Arranged over the entire circumferential direction of the housing 23, it illuminates the entire periphery of the spectacle lens L. The orientation of the spectacle lens L may be opposite to that described above, but the orientation described above facilitates more appropriate imaging of the scattered light of each lens.
The substantially narrow-angle light emitted from each narrow-angle light LED 24 is parallel to the direction of the narrow-angle light LED 24, becomes narrow-angle light by the corresponding illumination lens 26, and becomes large toward the spectacle lens L. It goes almost straight without spreading or suddenly focusing. The direction of the narrow-angle light emitted from each illuminating lens 26 is a direction intersecting the optical axis of the spectacle lens L, and more specifically, a horizontal direction orthogonal to the optical axis. The light emitting portion of each narrow-angle light LED 24 has a predetermined size (for example, a disk having a diameter of 2 mm (millimeters)), and in the traveling direction related to the narrow-angle light from each narrow-angle light LED 24 or the illumination lens 26. The size of the vertical cross section expands by the direction angle from the size of the light emitting part.
Even when the narrow-angle light reaches the lens holding mechanism 6, at least the reaching portion (the standing portion of each hook 21) has translucency, so that the narrow-angle light passes through the lens holding mechanism 6.
Further, the narrow-angle optical LEDs 24, 24 ... Are electrically connected to the control means 12 so that the lighting can be turned on and off independently for each of the plurality of lighting portions, and are shown here in FIG. 4 of the first lighting part M1 which is the upper right part when viewed from the upper side to the lower part M2, the second lighting part M2 which is the lower right part, the third lighting part M3 which is the lower left part, or the fourth lighting part M4 which is the upper left part. It is connected so that it can be switched on and off for each part (partial lighting, split lighting). Each of these illuminating portions contains eight narrow-angle light LEDs 24, 24, ..., And illuminates a quarter circle 90 ° of the entire 360 ° ring surrounding the spectacle lens L. The number of such illuminated portions, that is, the number of divisions of the narrow-angle optical LEDs 24, 24 ... Arranged in a ring shape may be less than 4 or may be more than 4. Further, it is preferable that the number of the narrow-angle optical LEDs 24, 24 ... In each portion and the angle at which they are arranged are the same (equal division), but some or all of them may be different from each other. Further, at least two illuminated portions may overlap each other. In addition, it is preferable that the set of illuminated portions surrounds the spectacle lens L by 360 °, but the narrow-angle light irradiating means 7 has a portion (gap or the like) where the illuminated portion is not arranged, so that the set of illuminated portions is formed by the spectacle lens L. It is not necessary to surround 360 °. Further, the narrow-angle optical LEDs 24, 24 ... May be arranged along an arbitrary encircling line other than the ring surrounding the optical axis of the spectacle lens L, such as a polygon or an ellipse, and the illumination portion is a part thereof. May be made to occupy.
The housing 23 may have another shape such as a wide thick arc shape, and the narrow-angle optical LEDs 24, 24 ... And the illumination lenses 26, 26 ... Are arranged over the arc-shaped portion. It may be arranged so as not to surround the spectacle lens L. Further, the traveling direction of the substantially narrow-angle light related to the narrow-angle optical LEDs 24, 24 ... And the optical axis direction of the illumination lenses 26, 26 ... are not the directions orthogonal to the optical axis of the spectacle lens L, but the optical axis thereof. It may be oriented at an angle other than 90 °.

カメラ8は、撮像素子30及び記憶手段32を有するカメラ本体34と、カメラ本体34の下部に取り付けられたカメラレンズ36を備えており、制御手段12からの指令に基づき、カメラレンズ36から取り込まれた像を撮像素子30で撮像することで検査用画像Cを取得して、記憶手段32に記憶し、制御手段12に送信する。撮像素子30は、ここではエリアセンサである。尚、カメラ8は記憶手段32を具備せず、検査用画像Cを直ちに制御手段12に送信しても良い。又、記憶手段32は、揮発性であっても不揮発性であっても良く、メモリであってもハードディスクであってもあるいはこれらの組合せであっても良い。
撮像素子30やカメラレンズ36は、狭角光照射手段7や眼鏡レンズLと向かい合うように設置されている。
The camera 8 includes a camera body 34 having an image pickup element 30 and a storage means 32, and a camera lens 36 attached to the lower part of the camera body 34, and is taken in from the camera lens 36 based on a command from the control means 12. The image C for inspection is acquired by taking an image of the image with the image pickup element 30, stored in the storage means 32, and transmitted to the control means 12. The image sensor 30 is an area sensor here. The camera 8 is not provided with the storage means 32, and the inspection image C may be immediately transmitted to the control means 12. Further, the storage means 32 may be volatile or non-volatile, and may be a memory, a hard disk, or a combination thereof.
The image sensor 30 and the camera lens 36 are installed so as to face the narrow-angle light irradiation means 7 and the spectacle lens L.

撮像素子30は、狭角光のみによる撮像であることを考慮して、比較的に高い解像度を有するものとされている。又、撮像素子30は、狭角光のみによる撮像であることを考慮して、比較的に高い感度を有するものとされている。
又、カメラレンズ36は、物体側の主光線がレンズ光軸に対して平行である物体側テレセントリックレンズである。尚、カメラレンズ36は、物体側と像側の双方において主光線がレンズ光軸に対して平行である両側テレセントリックレンズであっても良い。
カメラレンズ36は、物体側テレセントリックレンズであるため、被写界深度が比較的に深く、カーブが深かったり厚さが大きかったりする眼鏡レンズLにおいても、被写界深度はその眼鏡レンズLの全体においてピントが合うようなものとなっている。
カメラレンズ36の実視野は、狭角光のみによる撮像であることや眼鏡レンズL全体を捉えることを考慮して、比較的に広いものされており、好ましくは85mm以上とされている。
The image pickup device 30 is considered to have a relatively high resolution in consideration of the fact that the image pickup is performed only by narrow-angle light. Further, the image pickup device 30 is considered to have relatively high sensitivity in consideration of the fact that the image pickup is performed only by narrow-angle light.
Further, the camera lens 36 is an object-side telecentric lens in which the main light ray on the object-side is parallel to the optical axis of the lens. The camera lens 36 may be a bilateral telecentric lens in which the main ray is parallel to the optical axis of the lens on both the object side and the image side.
Since the camera lens 36 is an object-side telecentric lens, the depth of field is the entire spectacle lens L even in the spectacle lens L having a relatively deep depth of field and a deep curve or a large thickness. It is like being in focus.
The actual field of view of the camera lens 36 is relatively wide in consideration of the fact that the image is captured only by narrow-angle light and that the entire spectacle lens L is captured, and is preferably 85 mm or more.

報知手段9は、少なくとも検査結果を報知するものであり、例えば音発生手段、若しくは表示手段、又はこれらの組合せである。音発生手段は、例えばスピーカーやブザーであり、表示手段は、例えばランプ、7セグメントLED、フラットディスプレイ、あるいはこれらの組合せである。表示手段は、タッチパネルを始めとする、入力手段と組み合わせられたものであっても良い。又、独立した入力手段(例えばキーボード、ポインティングデバイス、あるいはこれらの組合せ)が設けられても良い。 The notifying means 9 is at least notifying the inspection result, and is, for example, a sound generating means, a display means, or a combination thereof. The sound generating means is, for example, a speaker or a buzzer, and the display means is, for example, a lamp, a 7-segment LED, a flat display, or a combination thereof. The display means may be a combination with an input means such as a touch panel. Further, an independent input means (for example, a keyboard, a pointing device, or a combination thereof) may be provided.

制御手段12は、例えばエンクロージャ2外に配置されあるいはエンクロージャ2に付設されたマイクロコンピュータであり、リフト20、狭角光照射手段7、カメラ8ないし報知手段9とそれぞれ電気的に接続されていて、これらをそれぞれ制御する。尚、制御手段12は、リフト20、狭角光照射手段7、カメラ8ないし報知手段9の少なくとも何れかに組み込まれていても良いし、協調制御可能に複数分散されていても良い。
又、制御手段12には、眼鏡レンズLを検査位置に置いたり検査位置から取り出したりする搬送手段(図示略)が電気的に接続されており、制御手段12は、搬送手段を制御可能である。搬送手段は、例えば(ノズル移動手段と共通のあるいは別の)ロボットハンド、コンベア、若しくは眼鏡レンズLのリフト、あるいはこれらの組合せである。コンベアの場合、狭角光照射手段7について退避動作(例えば上昇)ないし復帰動作(下降)を可能とし、制御手段12は、狭角光照射手段7を退避させてコンベアにより眼鏡レンズLを検査位置に搬入し、その後狭角光照射手段7を復帰させても良い。眼鏡レンズLのリフトの場合、眼鏡レンズL載置部の退避(下降)位置で眼鏡レンズLが載置された後、当該載置部が検査位置に復帰(上昇)し、検査後に退避位置で眼鏡レンズLが取り出されても良い。尚、搬送手段は、眼鏡レンズLとレンズ保持機構6を搬送しても良い。又、レンズ外観検査装置1はレンズ洗浄装置と組み合わせられて良く、この場合に搬送手段がレンズ洗浄装置に眼鏡レンズLを搬送し、眼鏡レンズLが洗浄されてから、眼鏡レンズLを取り出してレンズ外観検査装置1に搬送しても良い。
The control means 12 is, for example, a microcomputer arranged outside the enclosure 2 or attached to the enclosure 2, and is electrically connected to the lift 20, the narrow-angle light irradiation means 7, the camera 8 or the notification means 9, respectively. Each of these is controlled. The control means 12 may be incorporated in at least one of the lift 20, the narrow-angle light irradiation means 7, the camera 8 and the notification means 9, or may be dispersed in a plurality of pieces so as to be cooperatively controllable.
Further, the control means 12 is electrically connected to a transport means (not shown) for placing the spectacle lens L at the inspection position or taking it out from the inspection position, and the control means 12 can control the transport means. .. The transport means is, for example, a robot hand (common or different from the nozzle moving means), a conveyor, a lift of the spectacle lens L, or a combination thereof. In the case of a conveyor, the narrow-angle light irradiating means 7 can be retracted (for example, ascended) or returned (descended), and the control means 12 retracts the narrow-angle light irradiating means 7 and inspects the spectacle lens L by the conveyor. Then, the narrow-angle light irradiation means 7 may be restored. In the case of a lift of the spectacle lens L, after the spectacle lens L is placed at the retracted (lowered) position of the spectacle lens L mounting portion, the mounted portion returns (rises) to the inspection position, and after the inspection, at the retracted position. The spectacle lens L may be taken out. The transport means may transport the spectacle lens L and the lens holding mechanism 6. Further, the lens appearance inspection device 1 may be combined with a lens cleaning device. In this case, the transporting means transports the spectacle lens L to the lens cleaning device, and after the spectacle lens L is cleaned, the spectacle lens L is taken out and the lens is taken out. It may be transported to the visual inspection device 1.

又、制御手段12は、カメラ8の記憶手段32と同様である記憶手段40と、通信手段42と、これらを制御するCPU44と、を備えている。
記憶手段40には、レンズ外観検査プログラム50と、レンズデータベース52と、第1〜第4検査用画像C1〜C4と、第1〜第4検査用マスク画像D1〜D4と、検査用合成画像Eが記憶されている。
Further, the control means 12 includes a storage means 40 similar to the storage means 32 of the camera 8, a communication means 42, and a CPU 44 for controlling them.
The storage means 40 includes a lens appearance inspection program 50, a lens database 52, first to fourth inspection images C1 to C4, first to fourth inspection mask images D1 to D4, and inspection composite image E. Is remembered.

レンズ外観検査プログラム50は、CPU44によって実行され、例えば図4に示されるようなレンズ外観検査処理を含んでいる。
第1〜第4検査用画像C1〜C4は、眼鏡レンズLがマイナスの度数(S−10.00D(ディオプター))を有するプラスチック製のマイナスレンズ(直径70mm(ミリメートル),屈折率1.6,中心厚1mm)であって異物等が混入していない正常な場合について順に図5〜図8において例示され、眼鏡レンズLがプラスチック製のマイナスレンズ(度数や直径等は前記同様)であって異物等が混入している異常な場合について順に図9〜図12において例示され、眼鏡レンズLがプラスの度数(S+6.00D)を有するプラスチック製のプラスレンズ(直径60mm,屈折率1.6,中心厚6mm)であって異物等が混入していない正常な場合について順に図13〜図16において例示される。
又、第1〜第4検査用マスク画像D1〜D4は、上述の正常な場合のマイナスレンズである眼鏡レンズLについて順に図17〜図20において例示され、上述の異常な場合のマイナスレンズである眼鏡レンズLについて順に図21〜図24において例示され、上述のプラスレンズである眼鏡レンズLについて順に図25〜図28において例示される。
更に、検査用合成画像Eは、上述の正常なマイナスレンズについて図29において例示され、上述の異常なマイナスレンズについて図30において例示され、上述の正常なプラスレンズについて図31において例示される。
尚、上述の正常なマイナスレンズにおいて、狭角光照射手段7の狭角光LED24,24・・を全て同時に点灯したとき(第1〜第4照明部分M1〜M4を全て同時に点灯したとき)に取得され得る画像(正常マイナスレンズ全照明画像)が、参考のため図32に例示され、上述の異常なマイナスレンズにおいて、狭角光LED24,24・・を全て同時に点灯したときに取得され得る画像(異常マイナスレンズ全照明画像)が、同様に図33に例示され、上述の正常なプラスレンズにおいて、狭角光LED24,24・・を全て同時に点灯したときに取得され得る画像(正常プラスレンズ全照明画像)が、同様に図34に例示される。
The lens visual inspection program 50 is executed by the CPU 44 and includes, for example, a lens visual inspection process as shown in FIG.
The first to fourth inspection images C1 to C4 are plastic negative lenses (diameter 70 mm (millimeter), refraction index 1.6,) in which the spectacle lens L has a negative power (S-10.00D (diopter)). The normal case where the center thickness is 1 mm) and no foreign matter is mixed is exemplified in FIGS. 5 to 8 in order. Examples of abnormal cases in which the like is mixed are exemplified in FIGS. 9 to 12, and the spectacle lens L is a plastic plus lens (diameter 60 mm, refraction index 1.6, center) having a plus power (S + 6.00D). The normal case where the thickness is 6 mm) and no foreign matter or the like is mixed is exemplified in FIGS. 13 to 16 in order.
Further, the first to fourth inspection mask images D1 to D4 are exemplified in FIGS. 17 to 20 in order with respect to the spectacle lens L which is the above-mentioned normal minus lens, and are the above-mentioned minus lenses in the abnormal case. The spectacle lens L is exemplified in FIGS. 21 to 24 in order, and the spectacle lens L, which is the above-mentioned positive lens, is exemplified in order in FIGS. 25 to 28.
Further, the composite image E for inspection is exemplified in FIG. 29 for the above-mentioned normal minus lens, in FIG. 30 for the above-mentioned abnormal minus lens, and in FIG. 31 for the above-mentioned normal plus lens.
In the above-mentioned normal minus lens, when all the narrow-angle light LEDs 24, 24, ... Of the narrow-angle light irradiation means 7 are turned on at the same time (when all the first to fourth lighting portions M1 to M4 are turned on at the same time). An image that can be acquired (normal minus lens full illumination image) is exemplified in FIG. 32 for reference, and is an image that can be acquired when all the narrow-angle light LEDs 24, 24, ... Are turned on at the same time in the above-mentioned abnormal minus lens. (Abnormal minus lens full illumination image) is also exemplified in FIG. 33, and is an image that can be acquired when all the narrow angle light LEDs 24, 24, ... Are turned on at the same time in the above-mentioned normal plus lens (all normal plus lenses). Illumination image) is also exemplified in FIG. 34.

レンズデータベース52は、眼鏡レンズLに関する特性値であるレンズ特性値と、カメラ8による撮像に関する設定値である撮像設定値を対応付けたものである。レンズ特性値は、ここでは眼鏡レンズLの直径、カーブ値(度数)、レンズ設計情報(眼鏡レンズLの直径や床高,中心厚,コバ厚等)、及びコーティングの種類を示す値であるが、任意の一部の値が省略されても良いし、他の値が加えられても良い。ここで、床高は、眼鏡レンズLの凸面を上あるいは凹面を下にして平面においたときの当該平面から凸面(凹面の逆側の面)最上部までの高さであり、中心厚は、眼鏡レンズLの中心における厚みであり、コバ厚は、眼鏡レンズLのコバ(縁)における厚みである。又、各種のレンズ特性値は、直接入力を受け付けても良いし、他のレンズ特性値から計算により算出されても良い。他方、撮像設定値は、ここでは眼鏡レンズLとカメラレンズ36の間の距離である撮像距離や、露光時間、ゲインであるが、任意の一部の値が省略されても良いし、他の値が加えられても良い。
通信手段42は、各種の情報を入出力可能な手段であり、例えばハブ、各種の端子、通信コントローラ、あるいはこれらの組合せである。
尚、内側形状を調整可能なレンズ保持機構6が制御手段12に接続される場合において、制御手段12がレンズ特性値(眼鏡レンズLの直径)に応じてレンズ保持機構6の内側形状を制御するようにしても良い。
The lens database 52 associates a lens characteristic value, which is a characteristic value related to the spectacle lens L, with an imaging set value, which is a set value related to imaging by the camera 8. Here, the lens characteristic value is a value indicating the diameter of the spectacle lens L, the curve value (power), the lens design information (diameter of the spectacle lens L, floor height, center thickness, edge thickness, etc.), and the type of coating. , Any part of the value may be omitted, or other values may be added. Here, the floor height is the height from the flat surface to the uppermost portion of the convex surface (the surface opposite to the concave surface) when the convex surface of the spectacle lens L is placed on a flat surface with the convex surface up or the concave surface down, and the center thickness is It is the thickness at the center of the spectacle lens L, and the edge thickness is the thickness at the edge (edge) of the spectacle lens L. Further, various lens characteristic values may be directly input or calculated from other lens characteristic values. On the other hand, the imaging set values are the imaging distance, the exposure time, and the gain, which are the distances between the spectacle lens L and the camera lens 36, but any part of the values may be omitted, or other values may be omitted. A value may be added.
The communication means 42 is a means capable of inputting and outputting various types of information, and is, for example, a hub, various terminals, a communication controller, or a combination thereof.
When the lens holding mechanism 6 whose inner shape can be adjusted is connected to the control means 12, the control means 12 controls the inner shape of the lens holding mechanism 6 according to the lens characteristic value (diameter of the spectacle lens L). You may do so.

更に、レンズ外観検査プログラム50は、第1〜第4検査用画像C1〜C4の何れか1枚に対して画像処理を行う単画像処理や、複数の画像に対して画像処理を行う複画像処理を含んでいる。 Further, the lens appearance inspection program 50 includes a single image process for performing image processing on any one of the first to fourth inspection images C1 to C4, and a double image process for performing image processing on a plurality of images. Includes.

単画像処理は、第1検査用画像C1(図5,図9,図13)の右上部分である第1画像部分N1,第2検査用画像C2(図6,図10,図14)の右下部分である第2画像部分N2,第3検査用画像C3(図7,図11,図15)の左下部分である第3画像部分N3あるいは第4検査用画像C4(図8,図12,図16)の左上部分である第4画像部分N4の何れかを消去して第1検査用マスク画像D1(図17,図21,図25),第2検査用マスク画像D2(図18,図22,図26),第3検査用マスク画像D3(図19,図23,図27),第4検査用マスク画像D4(図20,図24,図28)を生成する一部消去処理を含んでいる。
ここで、消去(マスク)は、消去対象部分を所定の背景色(例えば黒色)とするものである。消去対象部分としての第1〜第4画像部分N1〜N4は、第1〜第4検査用マスク画像D1〜D4の中心から発する放射方向の直線(縦中心線及び横中心線)によって区分されており、それぞれ、第1〜第4検査用画像C1〜C4の丁度4分の1の大きさを有している。第1〜第4検査用マスク画像D1〜D4の中心は、第1〜第4検査用画像C1〜C4の中心と合致し、第1〜第4検査用画像C1〜C4の中心は、眼鏡レンズLの中心(狭角光照射手段7内の検査位置の中心)に合わせられるが、ずれていても良く、これら中心がずれている場合に、第1〜第4画像部分N1〜N4を画する放射方向の直線は、第1〜第4検査用マスク画像D1〜D4上の眼鏡レンズLの中心(狭角光照射手段7内の検査位置の中心)から発せられるようにしても良い。
尚、第1〜第4検査用画像C1〜C4や第1〜第4検査用マスク画像D1〜D4は、ここでは縦画素数が横画素数と同一の正方形であるが、縦画素数が横画素数と異なる長方形であっても良い。又、消去(マスク)は、対象部分を、背景色とは異なる所定のマスク色(例えば暗い灰色)に塗り潰すものであっても良いし、後述の合成処理の対象にならない旨の情報である非合成対象情報を対象部分に埋め込むものであっても良い。
The single image processing is performed on the right side of the first image portion N1 and the second inspection image C2 (FIGS. 6, FIG. 10, and FIG. 14) which are the upper right portions of the first inspection image C1 (FIGS. 5, 9, and 13). The lower left portion of the second image portion N2 and the third inspection image C3 (FIGS. 7, 11, and 15) is the third image portion N3 or the fourth inspection image C4 (FIGS. 8, 12, and 15). The first inspection mask image D1 (FIG. 17, FIG. 21, FIG. 25) and the second inspection mask image D2 (FIG. 18, FIG. 18) by erasing any of the fourth image portion N4 which is the upper left portion of FIG. 16). 22, FIG. 26), includes a partial erasing process for generating a third inspection mask image D3 (FIG. 19, FIG. 23, FIG. 27) and a fourth inspection mask image D4 (FIG. 20, FIG. 24, FIG. 28). I'm out.
Here, in erasing (mask), the erasing target portion has a predetermined background color (for example, black). The first to fourth image portions N1 to N4 as the parts to be erased are divided by straight lines (vertical center line and horizontal center line) in the radial direction originating from the center of the first to fourth inspection mask images D1 to D4. Each has exactly one-fourth the size of the first to fourth inspection images C1 to C4. The centers of the first to fourth inspection mask images D1 to D4 coincide with the centers of the first to fourth inspection images C1 to C4, and the centers of the first to fourth inspection images C1 to C4 are spectacle lenses. It is aligned with the center of L (the center of the inspection position in the narrow-angle light irradiation means 7), but it may be deviated, and when these centers are deviated, the first to fourth image portions N1 to N4 are drawn. The straight line in the radial direction may be emitted from the center of the spectacle lenses L on the first to fourth inspection mask images D1 to D4 (the center of the inspection position in the narrow angle light irradiation means 7).
The first to fourth inspection images C1 to C4 and the first to fourth inspection mask images D1 to D4 are squares having the same number of vertical pixels as the number of horizontal pixels, but the number of vertical pixels is horizontal. It may be a rectangle different from the number of pixels. Further, the erasure (mask) may be a mask that fills the target portion with a predetermined mask color (for example, dark gray) different from the background color, and is information that the target portion is not subject to the composition processing described later. The non-synthesis target information may be embedded in the target portion.

複画像処理は、一部消去処理が施された第1〜第4検査用マスク画像D1〜D4の画素情報を平均化して検査用合成画像E(図29〜図31)を生成する合成処理を含んでいる。
ここで、合成処理においては、第1画像部分N1,第2画像部分N2,第3画像部分N3,第4画像部分N4が消去された合計4枚の第1〜第4検査用マスク画像D1〜D4を対象とする。対象となる第1〜第4検査用マスク画像D1〜D4の縦横の画素数は、互いに同一である。
そして、それら4枚の第1〜第4検査用マスク画像D1〜D4について、対応する画素位置(例えば縦位置と横位置の組合せ)の画素値(例えば256段階の輝度)が合計され、その合計値を3で割ることで平均化される。3で割るのは、第1〜第4検査用マスク画像D1〜D4において第1画像部分N1,第2画像部分N2,第3画像部分N3あるいは第4画像部分N4の何れかが消去されており、第1〜第4検査用マスク画像D1〜D4の合計において1度消去部分(マスク部分)が加味されるので、その分合計枚数から引く(4−1=3)からである。第1画像部分N1,第2画像部分N2,第3画像部分N3及び第4画像部分N4は、第1〜第4検査用マスク画像D1〜D4を重ね合わせた場合に、互いに重複せず、第1検査用マスク画像D1等と丁度同じ大きさをカバーする。
尚、第1画像部分N1〜第4画像部分N4の少なくとも一部は、互いに重複しても良く、この場合、重複部分に対して更なる平均化等の追加の処理を施しても良い。又、第1〜第4検査用画像C1〜C4や第1〜第4検査用マスク画像D1〜D4の画素値は、赤緑青(RGB)の各輝度値等であっても良い。又更に、検査用合成画像Eは、平均化した輝度ではなく合計値の輝度を有していても良い。更に、合成処理の対象となる第1〜第4検査用マスク画像D1〜D4は、狭角光照射手段7の分割数(狭角光LED24,24・・の分割数)に応じて増減されても良いし、その分割数が4である場合に8枚とされる等、分割数より多い枚数とされても良い。加えて、単画像処理や複画像処理には、2値化処理やノイズリダクション処理等の他の処理が含まれていても良い。又、施した処理の種類ないし組合せ毎に画像が別々に保存されても良い。
The compound image processing is a compositing process for averaging the pixel information of the first to fourth inspection mask images D1 to D4 that have been partially erased to generate an inspection composite image E (FIGS. 29 to 31). Includes.
Here, in the compositing process, a total of four first to fourth inspection mask images D1 to which the first image portion N1, the second image portion N2, the third image portion N3, and the fourth image portion N4 are erased are erased. Targets D4. The number of vertical and horizontal pixels of the target first to fourth inspection mask images D1 to D4 are the same as each other.
Then, for the four first to fourth inspection mask images D1 to D4, the pixel values (for example, 256 levels of brightness) of the corresponding pixel positions (for example, the combination of the vertical position and the horizontal position) are totaled, and the total thereof is obtained. It is averaged by dividing the value by 3. Dividing by 3 means that in the first to fourth inspection mask images D1 to D4, either the first image portion N1, the second image portion N2, the third image portion N3, or the fourth image portion N4 is erased. , Since the erased portion (mask portion) is added once in the total of the first to fourth inspection mask images D1 to D4, it is subtracted from the total number of images (4-1 = 3). The first image portion N1, the second image portion N2, the third image portion N3, and the fourth image portion N4 do not overlap each other when the first to fourth inspection mask images D1 to D4 are overlapped with each other. 1 Inspection mask Covers exactly the same size as the image D1 and the like.
At least a part of the first image portion N1 to the fourth image portion N4 may overlap with each other, and in this case, the overlapping portion may be further subjected to additional processing such as averaging. Further, the pixel values of the first to fourth inspection images C1 to C4 and the first to fourth inspection mask images D1 to D4 may be the respective luminance values of red, green and blue (RGB). Furthermore, the composite image E for inspection may have a total luminance instead of an average luminance. Further, the first to fourth inspection mask images D1 to D4 to be combined are increased or decreased according to the number of divisions of the narrow angle light irradiation means 7 (the number of divisions of the narrow angle light LEDs 24, 24 ...). Alternatively, the number may be larger than the number of divisions, such as 8 when the number of divisions is 4. In addition, the single image processing and the double image processing may include other processing such as binarization processing and noise reduction processing. Further, the images may be saved separately for each type or combination of the processed processes.

≪動作等≫
このようになるレンズ外観検査装置1の動作例等が、主に図4に基づいて以下説明される。
レンズ外観検査装置1は、レンズ外観検査プログラム50を実行するCPU44(制御手段12)により、例えば次の通り動作する。
搬送手段は、制御手段12の制御により、検査対象の眼鏡レンズLを狭角光照射手段7内の検査位置に搬入する(ステップS1)。
制御手段12には、通信手段42を介して、搬入に係る眼鏡レンズLのレンズ特性値が入力される。レンズ特性値は、図示されない他のコンピュータから入力されても良いし、図示されない入力手段(例えばキーボード、ポインティングデバイス、タッチパネル、あるいはこれらの組合せ)により入力されても良い。
エンクロージャ2には、図示されない扉が設けられており、眼鏡レンズLの搬入時にその扉は開けられて眼鏡レンズLを通過可能とされ、搬入完了後、撮像までに、その扉は閉じられて、エンクロージャ2による閉塞が確保される。
≪Operation etc.≫
An operation example of the lens appearance inspection device 1 as described above will be described below mainly with reference to FIG.
The lens appearance inspection device 1 is operated by the CPU 44 (control means 12) that executes the lens appearance inspection program 50, for example, as follows.
Under the control of the control means 12, the transport means carries the spectacle lens L to be inspected into the inspection position in the narrow-angle light irradiation means 7 (step S1).
The lens characteristic value of the spectacle lens L to be carried in is input to the control means 12 via the communication means 42. The lens characteristic value may be input from another computer (not shown) or by an input means (for example, a keyboard, a pointing device, a touch panel, or a combination thereof) not shown.
The enclosure 2 is provided with a door (not shown), which is opened when the spectacle lens L is carried in so that it can pass through the spectacle lens L, and the door is closed by the time of imaging after the carry-in is completed. Closure by the enclosure 2 is ensured.

制御手段12のCPU44は、レンズデータベース52を参照し、受信したレンズ特性値に対応する撮像設定値を取得して、その撮像設定値に合致する撮像が行われるように、カメラ8やリフト20に対して通信手段42を通じ指令を送る。ここでは、制御手段12は、レンズデータベース52で取得された撮像距離に合致するように、リフト20に対する指令を通じ、リフト20を作動させてステージ4を上昇させあるいは下降させ、天板3上の眼鏡レンズLを上昇させあるいは下降させることで、カメラレンズ36に対する眼鏡レンズLの位置を調整し、撮像距離を調整する(ステップS2)。尚、ステージ4が前後左右(水平方向)の少なくとも一方向に移動可能とされていても良い。又、カメラ8が上下動されあるいは水平移動されても良いし、カメラ8とステージ4の双方が上下動されあるいは水平移動されても良い。 The CPU 44 of the control means 12 refers to the lens database 52, acquires an imaging setting value corresponding to the received lens characteristic value, and causes the camera 8 or the lift 20 to perform imaging matching the imaging setting value. A command is sent to the communication means 42. Here, the control means 12 operates the lift 20 to raise or lower the stage 4 through a command to the lift 20 so as to match the imaging distance acquired by the lens database 52, and the eyeglasses on the top plate 3 are raised or lowered. By raising or lowering the lens L, the position of the spectacle lens L with respect to the camera lens 36 is adjusted, and the imaging distance is adjusted (step S2). The stage 4 may be movable in at least one direction, front-back, left-right (horizontal direction). Further, the camera 8 may be moved up and down or moved horizontally, and both the camera 8 and the stage 4 may be moved up and down or moved horizontally.

又、制御手段12は、狭角光照射手段7に対して、第1照明部分M1,第2照明部分M2,第3照明部分M3あるいは第4照明部分M4の何れかにおいて所定の強度で狭角光を発出させるための発光指令を送信し、これを受けて発光指令に係る狭角光照射手段7の照明部分における狭角光LED24,24・・が点灯する。尚、撮像設定値に照明強度が含まれるようにして、制御手段12はその照明強度で照明するように狭角光照射手段7を制御しても良い。又、照明強度は、照明部分の一部又は全部において互いに相違していても良い。 Further, the control means 12 has a narrow angle with a predetermined intensity in any of the first lighting portion M1, the second lighting portion M2, the third lighting portion M3, and the fourth lighting portion M4 with respect to the narrow angle light irradiation means 7. A light emission command for emitting light is transmitted, and in response to this, the narrow angle light LEDs 24, 24 ... In the illumination portion of the narrow angle light irradiation means 7 according to the light emission command are turned on. The control means 12 may control the narrow-angle light irradiation means 7 so as to include the illumination intensity in the image pickup set value and illuminate with the illumination intensity. Further, the illumination intensity may be different from each other in a part or all of the illumination portion.

このようにして、眼鏡レンズLは、狭角光照射手段7から発せられた狭角光により照らされる。
狭角光は、透光性を有する眼鏡レンズLの内部を、眼鏡レンズLの光軸に交わる(直交する)状態で通過し、理想的にはそのまま水平に進んで眼鏡レンズLの外部に出る。かように水平に進んだ狭角光は、指向角が狭くその分拡散が緩やかであるから、眼鏡レンズLの上方に配置されたカメラ8には到達し難く、眼鏡レンズLの表面(空気との界面)における反射や屈折等により、ごく一部分がカメラ8に向かう。かような反射ないし屈折は、カーブの深いレンズ(眼鏡レンズL)ほど、様々な方向に向かうこととなる。又、狭角光が平行光である場合、平行光は水平に進むと集束も拡散もしないから、理想的には眼鏡レンズLの上方に配置されたカメラ8の方向には行かない。但し、実際には、上述した眼鏡レンズLの表面における反射や屈折等により、ごく一部分がカメラ8に向かう。
又、特に眼鏡レンズに多用されるカーブの深いレンズにおいては、狭角光LED24の光源形状が映り込み、カメラ8に向かう。例えば、上述の正常なマイナスレンズの眼鏡レンズLに対して、第1照明部分M1(上側から下方に見て右上の弧状部分)のみで照明を行うと、図5に示されるように、眼鏡レンズLの上側から下方に見て右上部分の中央部や周縁部に、マイナスレンズの輪郭に沿う弧に沿った点群(8点前後)あるいは濃淡帯状の映り込みR1,R2が発生する。又、上述の異常なマイナスレンズの眼鏡レンズLに対して、第1照明部分M1のみで照明を行うと、図9に示されるように、眼鏡レンズLの上側から下方に見て右上部分の中央部に、マイナスレンズの輪郭に沿う弧の上で並ぶ点群の映り込みR1が発生する。他方、プラスレンズの眼鏡レンズLに対して第1照明部分M1のみで照明を行うと、図13に示されるように、眼鏡レンズLの上側から下方に見て右上部分の周縁部に、弧状に並ぶ点群の映り込みR1が発生する。そして、他の照明部分においても、眼鏡レンズLの照明部分に近い部分に、映り込みR1,R2が同様に発生する(図5〜図16参照)。尚、参考として、上述の正常マイナスレンズ全照明画像(図32)や異常マイナスレンズ全照明画像(図33)においては、眼鏡レンズLの中央部あるいは周縁部において、円状に並ぶ点群の映り込みQ1が発生する。又、正常プラスレンズ全照明画像(図34)においては、中央部及び周縁部において円状に並ぶ点群の映り込みQ1,Q2が発生する。
他方、眼鏡レンズLに異物が付着しあるいは混入している場合、その異物に達した狭角光は散乱され、散乱光(異物による反射光)の一部がカメラ8に向かう。かような散乱光の強度は、上述の反射ないし屈折による光の強度より概して大きい。異物は、例えば、眼鏡レンズLの表面や内部に発生した塵や着色ムラ、泡、固着物、欠片、若しくは眼鏡レンズLの表面に形成された膜のムラ、あるいはこれらの組合せである。
又、眼鏡レンズLにキズ・欠けや形成不良部分が発生している場合、そのキズ・欠けや形成不良部分に達した狭角光も異物の場合と同様に散乱され、一部がカメラ8に向かう。以下、異物並びに欠け及び形成不良部分は、まとめて異物等と適宜呼ばれる。
加えて、狭角光照射手段7から発せられた狭角光は、エンクロージャ2の内面に達したとしても、その内面が反射防止面とされていることにより、その内面における反射が防止され、その内面による反射光がカメラ8に向かう事態が防止される。
ここでは、制御手段12は、自然数のループカウンタkが1〜4まで順に変わって合計4回繰り返されるループS3により、まず第1照明部分M1において照明させ、次いで第2照明部分M2,第3照明部分M3,第4照明部分M4の順で照明させる(ステップS4)。但し、制御手段は、眼鏡レンズLがプラスレンズである場合には、まず第3照明部分M3において照明させ、次いで第4照明部分M4,第1照明部分M1,第2照明部分M2の順で照明させる。尚、制御手段12は、これ以外の順番で照明させても良い。
In this way, the spectacle lens L is illuminated by the narrow-angle light emitted from the narrow-angle light irradiating means 7.
Narrow-angle light passes through the inside of the spectacle lens L having translucency in a state of intersecting (orthogonally) with the optical axis of the spectacle lens L, and ideally travels horizontally as it is and exits to the outside of the spectacle lens L. .. Since the narrow-angle light traveling horizontally in this way has a narrow directivity angle and its diffusion is gradual, it is difficult to reach the camera 8 arranged above the spectacle lens L, and the surface of the spectacle lens L (with air). Due to reflection, refraction, etc. at the interface), a small part goes toward the camera 8. Such reflection or refraction tends in various directions as the lens has a deeper curve (spectacle lens L). Further, when the narrow-angle light is parallel light, the parallel light does not focus or diffuse when traveling horizontally, and therefore does not ideally go in the direction of the camera 8 arranged above the spectacle lens L. However, in reality, a small part of the spectacle lens L is directed toward the camera 8 due to reflection or refraction on the surface of the spectacle lens L described above.
Further, especially in a lens having a deep curve, which is often used for spectacle lenses, the shape of the light source of the narrow-angle light LED 24 is reflected and heads toward the camera 8. For example, when the above-mentioned normal minus lens spectacle lens L is illuminated only by the first illumination portion M1 (the arc-shaped portion on the upper right when viewed from the upper side to the lower side), the spectacle lens is as shown in FIG. Point clouds (around 8 points) along the arc along the contour of the minus lens or shading band-shaped reflections R1 and R2 are generated in the central portion and the peripheral portion of the upper right portion when viewed from the upper side to the lower side of L. Further, when the above-mentioned abnormal minus lens spectacle lens L is illuminated only by the first illumination portion M1, as shown in FIG. 9, the center of the upper right portion when viewed from the upper side to the lower side of the spectacle lens L. A reflection R1 of a group of points lined up on an arc along the contour of the minus lens is generated in the portion. On the other hand, when the spectacle lens L of the plus lens is illuminated only by the first illumination portion M1, as shown in FIG. 13, an arc is formed on the peripheral portion of the upper right portion when viewed from the upper side to the lower side of the spectacle lens L. The reflection R1 of the lined-up point cloud occurs. Then, in the other lighting portions, reflections R1 and R2 are similarly generated in the portion close to the illumination portion of the spectacle lens L (see FIGS. 5 to 16). As a reference, in the above-mentioned normal minus lens full illumination image (FIG. 32) and abnormal minus lens full illumination image (FIG. 33), a group of points arranged in a circle is reflected in the central portion or the peripheral portion of the spectacle lens L. Including Q1 occurs. Further, in the normal plus lens full illumination image (FIG. 34), reflections Q1 and Q2 of a group of points arranged in a circle are generated in the central portion and the peripheral portion.
On the other hand, when foreign matter adheres to or is mixed in the spectacle lens L, the narrow-angle light that has reached the foreign matter is scattered, and a part of the scattered light (light reflected by the foreign matter) is directed to the camera 8. The intensity of such scattered light is generally greater than the intensity of the light due to reflection or refraction described above. The foreign matter is, for example, dust or uneven coloring generated on the surface or inside of the spectacle lens L, bubbles, fixed matter, fragments, unevenness of the film formed on the surface of the spectacle lens L, or a combination thereof.
Further, when the spectacle lens L has scratches / chips or poorly formed portions, the narrow-angle light reaching the scratches / chips or poorly formed portions is also scattered in the same manner as in the case of foreign matter, and a part of the light is scattered on the camera 8. Head. Hereinafter, the foreign matter, the chipped portion, and the poorly formed portion are collectively referred to as a foreign matter or the like.
In addition, even if the narrow-angle light emitted from the narrow-angle light irradiating means 7 reaches the inner surface of the enclosure 2, the inner surface thereof is an antireflection surface, so that the reflection on the inner surface is prevented. The situation where the reflected light from the inner surface is directed to the camera 8 is prevented.
Here, the control means 12 first illuminates the first illumination portion M1 by the loop S3 in which the loop counter k of the natural number changes in order from 1 to 4 and is repeated a total of four times, and then the second illumination portion M2 and the third illumination. The portion M3 and the fourth illumination portion M4 are illuminated in this order (step S4). However, when the spectacle lens L is a plus lens, the control means first illuminates the third illumination portion M3, and then illuminates the fourth illumination portion M4, the first illumination portion M1, and the second illumination portion M2 in this order. Let me. The control means 12 may be illuminated in any other order.

制御手段12は、第1照明部分M1(プラスレンズの場合第3照明部分M3)において照明させた後、カメラ8に対して撮像指令を発し、これを受けて、カメラ8は、シャッターを切り、カメラレンズ36により取り込まれた光を撮像素子30で捉え、静止画の画素情報の集合に変換して、適宜画像処理のうえで記憶手段32に第1検査用画像C1として記憶する。そして、第2照明部分M2(プラスレンズの場合第4照明部分M4)に照明させたうえで同様に第2検査用画像C2を取得し、更に同様に第3照明部分M3(プラスレンズの場合第1照明部分M1)に係る第3検査用画像C3と、第4照明部分M4(プラスレンズの場合第2照明部分M2)に係る第4検査用画像C4を取得する(ステップS4,S5)。ここでは、1個の照明部分に対して1枚ずつ(眼鏡レンズL1枚に対して合計4枚)の第1〜第4検査用画像C1〜C4が取得されるが、更に多くの枚数が取得されても良い。又、カメラ8は動画を撮像して検査用動画を取得しても良い。
第1〜第4検査用画像C1〜C4は、物体側テレセントリックレンズであるカメラレンズ36によって取得されるため、カーブの深い眼鏡レンズLや厚みの大きい眼鏡レンズLであっても、全ての部分においてピントが合う。よって、ピントが合わない部分において異物や欠け等により散乱光が発生してしまい、鮮明な画像が得られず、第1〜第4検査用画像C1〜C4による検査に支障を来たす事態が防止される。又、非テレセントリックレンズは、異物等により広がるように発生する散乱光について視差の分だけ歪んで捉えてしまい、異物等の実際の大きさや状態が不明確となったり、異物等が複数存在する場合に一部の異物等を隠してしまったりする可能性があるところ、カメラレンズ36ではそのようなことがなく、全ての異物等について実際の大きさや状態で捉えることができる。ここで、厳密には、サイズの変化を完全に防止することは困難であるが、非テレセントリックレンズによる撮像の場合と比べ、サイズの変化は顕著に抑制され、又眼鏡レンズLの中央と外周部のように眼鏡レンズLに高低差が存在する場合において、眼鏡レンズLの撮像部分における形状の変形が抑制される。
レンズデータベース52には、眼鏡レンズLの直径及びカーブ値等に応じた撮像距離が記憶されており、検査用画像Cにおいて、眼鏡レンズLの全体においてピントが合う(眼鏡レンズLの全体が被写界深度内に収まる)ような撮像距離が予め求められ、眼鏡レンズLの直径及びカーブ値と対応付けて記憶されている。上述の通り、制御手段12は、リフト20を制御し、その撮像距離となるように、ステージ4やレンズ保持機構6を介して眼鏡レンズLを移動させる。尚、カメラレンズ36は少なくとも物体側においてテレセントリック効果を有するため、撮像距離にかかわらず実視野は一定である。
例えば、実視野が縦80mm横80mmであり、被写界深度が9mmであり、被写界深度の中心がカメラレンズ36の先端から150mmの位置にある場合において、床高が5mmのプラス強度数の眼鏡レンズL(凸レンズ)に対しては、制御手段12は床高中心(2.5mm)の位置が被写界深度の中心位置と合致するようにリフト20を作動させる。他方、同じ場合において、床高が6mmのマイナス強度数の眼鏡レンズL(凹レンズ)に対しては、制御手段12は床高中心(3mm)の位置が被写界深度の中心位置と合致するようにリフト20を作動させる。ここで、リフト20がない(撮像距離が調整されない)ときを考える。凸レンズはレンズ保持機構6の支持点から下方に位置している一方、凹レンズはレンズ保持機構6の支持点から上方に位置していることから、双方のレンズの占める合計の上下幅(床高方向の幅の合算値)は、支持点から下に5mm(凸レンズ)と上に6mm(凹レンズ)で11mmとなる。この11mmの上下幅は、9mmの被写界深度より大きく、従って、撮像距離が調整されない場合、凸レンズ及び凹レンズの少なくとも一方において部分的にピントが合わないこととなる。これに対し、レンズ外観検査装置1では、リフト20により撮像距離が調整されるため、凸レンズ及び凹レンズの双方において被写界深度内に位置させて、ピントを全体に亘り合わせることができる。
又、眼鏡レンズLは、その周縁を保持するレンズ保持機構6によって、天板3の孔5に上面視で重なる(オーバーラップする)ように保持され、カメラ8(カメラレンズ36)は、孔5と向かい合うように配置されており、孔5の内部(箱状のステージ4の内部)は、黒化処理されている。よって、カメラレンズ36と眼鏡レンズLと孔5は上下方向に並んで、孔5は眼鏡レンズLを挟んでカメラレンズ36と反対側に位置することとなり、かような配置とステージ4内面の黒化処理によって、検査用画像Cにおいて散乱光の生じない部分をより黒くすることができ、異物等による散乱光に対するコントラスト比が向上する。又、ステージ4側へ進む散乱光の反射がステージ4の内部において防止され、異物等によらない散乱光の映り込みが抑制されて、検査用画像Cにおけるコントラスト比の低下が防止される。更に、ステージ4が箱状であり、眼鏡レンズLの下方の部分(カメラレンズ36から見て眼鏡レンズLより向こう側の部分)の一部又は全部が覆われるため、エンクロージャ2内面における反射光等が眼鏡レンズLの下方に向かったとしても、ステージ4により遮断することができ、異物等によらない散乱光の映り込みが抑制されて、検査用画像Cにおけるコントラスト比の低下が防止される。
カメラ8は、このようにして取得した第1〜第4検査用画像C1〜C4を、制御手段12に対して送信し、制御手段12は、通信手段42において受信した第1〜第4検査用画像C1〜C4を、記憶手段40において記憶する。ここでは、カメラ8は、第1〜第4検査用画像C1〜C4をそれぞれ取得した後直ちに送信するが、第1〜第4検査用画像C1〜C4の組が揃ってからこれらの一組をまとめて送信しても良い。
The control means 12 illuminates the first illumination portion M1 (third illumination portion M3 in the case of a plus lens), and then issues an image pickup command to the camera 8, and in response to this, the camera 8 releases the shutter. The light captured by the camera lens 36 is captured by the image pickup element 30, converted into a set of pixel information of a still image, appropriately processed, and stored in the storage means 32 as the first inspection image C1. Then, after illuminating the second illuminating portion M2 (the fourth illuminating portion M4 in the case of a plus lens), the second inspection image C2 is similarly acquired, and the third illuminating portion M3 (in the case of a plus lens, the second) is similarly obtained. 1 The third inspection image C3 according to the illumination portion M1) and the fourth inspection image C4 according to the fourth illumination portion M4 (the second illumination portion M2 in the case of a plus lens) are acquired (steps S4 and S5). Here, the first to fourth inspection images C1 to C4 are acquired one by one for one illuminated portion (a total of four images for one spectacle lens L), but more images are acquired. May be done. Further, the camera 8 may capture a moving image and acquire a moving image for inspection.
Since the first to fourth inspection images C1 to C4 are acquired by the camera lens 36 which is an object-side telecentric lens, even if the spectacle lens L has a deep curve or the spectacle lens L has a large thickness, all the portions thereof. It is in focus. Therefore, it is possible to prevent a situation in which scattered light is generated due to foreign matter or chipping in the out-of-focus portion, a clear image cannot be obtained, and the inspection by the first to fourth inspection images C1 to C4 is hindered. NS. In addition, the non-telecentric lens distorts the scattered light generated by foreign matter and the like by the amount of the parallax, making the actual size and state of the foreign matter unclear, or when there are multiple foreign matter and the like. There is a possibility that some foreign matter may be hidden in the camera lens 36, but the camera lens 36 does not have such a possibility, and all foreign matter and the like can be captured in the actual size and state. Here, strictly speaking, it is difficult to completely prevent the change in size, but the change in size is remarkably suppressed as compared with the case of imaging with a non-telecentric lens, and the central and outer peripheral portions of the spectacle lens L are suppressed. When there is a height difference in the spectacle lens L as described above, the deformation of the shape in the image pickup portion of the spectacle lens L is suppressed.
The lens database 52 stores the imaging distance according to the diameter, curve value, etc. of the spectacle lens L, and in the inspection image C, the entire spectacle lens L is in focus (the entire spectacle lens L is photographed). An imaging distance (within the depth of field) is obtained in advance, and is stored in association with the diameter and curve value of the spectacle lens L. As described above, the control means 12 controls the lift 20 and moves the spectacle lens L via the stage 4 and the lens holding mechanism 6 so as to have an imaging distance thereof. Since the camera lens 36 has a telecentric effect at least on the object side, the actual field of view is constant regardless of the imaging distance.
For example, when the actual field of view is 80 mm in length and 80 mm in width, the depth of field is 9 mm, and the center of the depth of field is at a position 150 mm from the tip of the camera lens 36, the floor height is a plus intensity number of 5 mm. For the spectacle lens L (convex lens) of the above, the control means 12 operates the lift 20 so that the position of the center of the floor height (2.5 mm) matches the center position of the depth of field. On the other hand, in the same case, for the spectacle lens L (concave lens) having a floor height of 6 mm and a negative intensity number, the control means 12 so that the position of the floor height center (3 mm) matches the center position of the depth of field. The lift 20 is operated. Here, consider the case where there is no lift 20 (the imaging distance is not adjusted). Since the convex lens is located below the support point of the lens holding mechanism 6 and the concave lens is located above the support point of the lens holding mechanism 6, the total vertical width occupied by both lenses (in the floor height direction). The total value of the widths) is 5 mm (convex lens) below the support point and 6 mm (concave lens) above the support point, which is 11 mm. This vertical width of 11 mm is larger than the depth of field of 9 mm, and therefore, if the imaging distance is not adjusted, at least one of the convex lens and the concave lens will be partially out of focus. On the other hand, in the lens appearance inspection device 1, since the imaging distance is adjusted by the lift 20, both the convex lens and the concave lens can be positioned within the depth of field to focus on the entire lens.
Further, the spectacle lens L is held so as to overlap (overlap) the hole 5 of the top plate 3 in the top view by the lens holding mechanism 6 that holds the peripheral edge thereof, and the camera 8 (camera lens 36) is held in the hole 5. The inside of the hole 5 (the inside of the box-shaped stage 4) is blackened. Therefore, the camera lens 36, the spectacle lens L, and the hole 5 are arranged in the vertical direction, and the hole 5 is located on the opposite side of the spectacle lens L with the spectacle lens L in between. By the conversion process, the portion of the inspection image C where scattered light does not occur can be made blacker, and the contrast ratio with respect to the scattered light due to foreign matter or the like is improved. Further, the reflection of the scattered light traveling to the stage 4 side is prevented inside the stage 4, the reflection of the scattered light not due to foreign matter or the like is suppressed, and the decrease in the contrast ratio in the inspection image C is prevented. Further, since the stage 4 has a box shape and partially or completely covers the lower portion of the spectacle lens L (the portion beyond the spectacle lens L when viewed from the camera lens 36), reflected light or the like on the inner surface of the enclosure 2 or the like is covered. Even if the light moves downward from the spectacle lens L, it can be blocked by the stage 4, the reflection of scattered light not due to foreign matter or the like is suppressed, and the decrease in the contrast ratio in the inspection image C is prevented.
The camera 8 transmits the first to fourth inspection images C1 to C4 thus acquired to the control means 12, and the control means 12 receives the first to fourth inspection images C in the communication means 42. Images C1 to C4 are stored in the storage means 40. Here, the camera 8 transmits immediately after acquiring the first to fourth inspection images C1 to C4, respectively, but after the sets of the first to fourth inspection images C1 to C4 are prepared, these sets are used. You may send them all at once.

制御手段12のCPU44は、受信して記憶した第1検査用画像C1(図5,図9,図13),第2検査用画像C2(図6,図10,図14),第3検査用画像C3(図7,図11,図15),第4検査用画像C4(図8,図12,図16)に対して、レンズ外観検査プログラム50の一部消去処理を実行し、第1画像部分N1,第2画像部分N2,第3画像部分N3,第4画像部分N4に係る消去を行って、第1検査用マスク画像D1(図17,図21,図25),第2検査用マスク画像D2(図18,図22,図26),第3検査用マスク画像D3(図19,図23,図27),第4検査用マスク画像D4(図20,図24,図28)を生成する(ステップS6)。
即ち、マイナスレンズ(図5,図9)において、第1照明部分M1(狭角光照射手段7の上から下に見て右上の部分)に係る照明により撮像した第1検査用画像C1中の眼鏡レンズL撮像部分における、第1照明部分M1が映り込んだ部分である一部照明映り込み部分(第1照明部分M1に隣接する眼鏡レンズL撮像部分の右上部分)を含む第1画像部分N1(第1検査用画像C1の右上部分)が消去される。この消去において、消去対象部分は第1画像部分N1であり、眼鏡レンズL撮像部分における一部照明映り込み部分(第1照明部分M1の照射隣接部分)を含んでいる。又、第2画像部分N2〜第4画像部分N4は、それぞれ、第1画像部分N1と同様に消去される。
他方、プラスレンズ(図13)において、第3照明部分M3に係る照明により撮像した第1検査用画像C1中の眼鏡レンズL撮像部分における、第3照明部分M3が映り込んだ部分である一部照明映り込み部分(第3照明部分M3からみて眼鏡レンズL撮像部分の中心を挟んで向こう側の右上部分)を含む第1画像部分N1が消去される。この消去において、消去対象部分は第1画像部分N1であり、眼鏡レンズL撮像部分における一部照明映り込み部分(第3照明部分M3の向こう側の部分)を含んでいる。又、第2画像部分N2〜第4画像部分N4は、それぞれ、第1画像部分N1と同様に消去される。
これらの画像部分内における眼鏡レンズL撮像部分には、点灯している狭角光LED24,24・・の光源形状に応じた映り込みが発生し得るところ(図5〜図16参照)、その映り込みが一部消去処理により第1〜第4検査用マスク画像D1〜D4において消去される。かような映り込みは、眼鏡レンズLを囲む狭角光LED24,24・・が全て点灯すると、眼鏡レンズLにおいて輪状となる(図32〜図34参照)。しかし、狭角光LED24,24・・が部分的に点灯すると、これに対応して眼鏡レンズLにおいて弧状となる(一部照明映り込み部分)。よって、映り込み部分の一部消去が可能となり、映り込み部分がなく狭角光により適切に照明された部分を残した第1〜第4検査用マスク画像D1〜D4の取得が可能となる。
CPU44は、ここでは第1〜第4検査用画像C1〜C4の何れかを記憶手段40において記憶した後直ちにその検査用画像に対する一部消去処理を行って検査用マスク画像の生成を行う。尚、CPU44は、記憶手段40において第1〜第4検査用画像C1〜C4の組が揃ってから、これらの一組に対してそれぞれ一部消去処理を行っても良い。又、一部消去処理は、カメラ8において行われても良い。更に、一部消去処理において、CPU44は、第1〜第4検査用画像C1〜C4に上書きして第1〜第4検査用マスク画像D1〜D4を記憶しても良いし、第1〜第4検査用マスク画像D1〜D4の記憶後に第1〜第4検査用画像C1〜C4を削除しても良い。加えて、一部消去処理に付随して、ノイズリダクション処理等の他の画像処理が行われても良い。
The CPU 44 of the control means 12 receives and stores the first inspection image C1 (FIGS. 5, 9, and 13), the second inspection image C2 (FIGS. 6, 10, and 14), and the third inspection image. The image C3 (FIG. 7, FIG. 11, FIG. 15) and the fourth inspection image C4 (FIG. 8, FIG. 12, FIG. 16) are partially erased by the lens appearance inspection program 50, and the first image is obtained. Part N1, 2nd image part N2, 3rd image part N3, 4th image part N4 are erased, and the first inspection mask image D1 (FIGS. 17, 21, 25) and the second inspection mask are erased. Generates image D2 (FIG. 18, FIG. 22, FIG. 26), third inspection mask image D3 (FIG. 19, FIG. 23, FIG. 27), and fourth inspection mask image D4 (FIG. 20, FIG. 24, FIG. 28). (Step S6).
That is, in the minus lens (FIGS. 5 and 9), in the first inspection image C1 imaged by the illumination related to the first illumination portion M1 (the upper right portion when viewed from the top to the bottom of the narrow angle light irradiation means 7). The first image portion N1 including a partially illuminated portion (upper right portion of the spectacle lens L image pickup portion adjacent to the first illumination portion M1) in the spectacle lens L image pickup portion, which is a portion where the first illumination portion M1 is reflected. (The upper right part of the first inspection image C1) is erased. In this erasure, the portion to be erased is the first image portion N1, and includes a partially illuminated portion (the portion adjacent to the irradiation of the first illuminated portion M1) in the spectacle lens L image pickup portion. Further, the second image portion N2 to the fourth image portion N4 are erased in the same manner as the first image portion N1, respectively.
On the other hand, in the plus lens (FIG. 13), a part where the third illumination portion M3 is reflected in the spectacle lens L image pickup portion in the first inspection image C1 imaged by the illumination related to the third illumination portion M3. The first image portion N1 including the illumination reflection portion (the upper right portion on the opposite side of the center of the spectacle lens L image pickup portion when viewed from the third illumination portion M3) is erased. In this erasure, the portion to be erased is the first image portion N1, and includes a partially illuminated portion (a portion on the other side of the third illuminated portion M3) in the spectacle lens L image pickup portion. Further, the second image portion N2 to the fourth image portion N4 are erased in the same manner as the first image portion N1, respectively.
In the spectacle lens L image pickup portion in these image portions, reflections may occur depending on the shape of the light source of the lit narrow-angle light LEDs 24, 24 ... (See FIGS. 5 to 16). The inclusion is partially erased in the first to fourth inspection mask images D1 to D4 by the erasing process. Such reflection becomes a ring shape in the spectacle lens L when all the narrow-angle light LEDs 24, 24 ... Surrounding the spectacle lens L are turned on (see FIGS. 32 to 34). However, when the narrow-angle light LEDs 24, 24 ... Are partially lit, the spectacle lens L correspondingly becomes arcuate (partially illuminated portion). Therefore, it is possible to partially erase the reflected portion, and it is possible to acquire the first to fourth inspection mask images D1 to D4 in which the reflected portion is not present and the portion appropriately illuminated by the narrow angle light is left.
Here, the CPU 44 stores any one of the first to fourth inspection images C1 to C4 in the storage means 40, and immediately performs a partial erasing process on the inspection image to generate an inspection mask image. The CPU 44 may partially erase each of the sets of the first to fourth inspection images C1 to C4 in the storage means 40 after the sets of the first to fourth inspection images C1 to C4 are prepared. Further, the partial erasing process may be performed by the camera 8. Further, in the partial erasing process, the CPU 44 may overwrite the first to fourth inspection images C1 to C4 to store the first to fourth inspection mask images D1 to D4, or may store the first to fourth inspection mask images D1 to D4. 4 The first to fourth inspection images C1 to C4 may be deleted after the inspection mask images D1 to D4 are stored. In addition, other image processing such as noise reduction processing may be performed in addition to the partial erasing processing.

又、制御手段12のCPU44は、ループS3〜S7が完了して第1〜第4検査用マスク画像D1〜D4を一組取得した後、レンズ外観検査プログラム50の合成処理を実行し、第1〜第4検査用マスク画像D1〜D4を参照して検査用合成画像E(図29〜図31)を生成して、記憶手段32に記憶する(ステップS8)。
尚、検査用合成画像Eは、複数枚生成されても良いし、検査用合成画像Eの生成に付随して、2値化処理やノイズリダクション処理等の他の画像処理が行われても良い。又、照明部分と一部消去の関係は、上述のマイナスレンズないしプラスレンズに係る関係以外のものであっても良い。複雑な表面形状を有するレンズであっても、照明部分による一部照明によって、その映り込み部分はレンズないしレンズ撮像部分における一部に留まる。そして、映り込み部分が一見分からないような類型のレンズであっても、各照明部分による照射を一度以上試行すれば、一部消去処理において消去する部分に包含されるべき映り込み部分を予め把握することができ、この場合に、試行結果を記憶させて、同じ類型のレンズの検査において当該試行結果を適用することができる。更に、1個の照明部分による一部照明によって、レンズに複数の映り込み部分が生じる場合に、複数の画像部分(例えば2個の矩形部分)を消去しても良い。又、複数の照明部分を照射したうえで、その照射による映り込み部分をマスクするようにしても良い。
Further, the CPU 44 of the control means 12 executes the synthesis process of the lens appearance inspection program 50 after the loops S3 to S7 are completed to acquire a set of the first to fourth inspection mask images D1 to D4, and the first. -The fourth inspection mask images D1 to D4 are referred to to generate an inspection composite image E (FIGS. 29 to 31), which is stored in the storage means 32 (step S8).
A plurality of composite images E for inspection may be generated, or other image processing such as binarization processing and noise reduction processing may be performed along with the generation of the composite image E for inspection. .. Further, the relationship between the illuminated portion and the partial erasing may be other than the relationship related to the above-mentioned minus lens or plus lens. Even if the lens has a complicated surface shape, the reflected portion remains only in a part of the lens or the lens imaging portion due to the partial illumination by the illuminated portion. Then, even if the reflected portion is a type of lens that cannot be seen at first glance, if the irradiation by each illuminated portion is tried once or more, the reflected portion to be included in the portion to be erased in the partial erasing process can be grasped in advance. In this case, the trial result can be stored and the trial result can be applied in the inspection of the same type of lens. Further, when a plurality of reflection portions are generated in the lens due to partial illumination by one illumination portion, a plurality of image portions (for example, two rectangular portions) may be erased. Further, after irradiating a plurality of illuminated portions, the reflected portion due to the irradiation may be masked.

そして、制御手段12は、記憶した検査用合成画像Eに対して、異常が発生しているか否かを判定する(ステップS9)。ここでは、検査用合成画像E中の眼鏡レンズL撮像部分において所定値(例えば256段階中128)以上の輝度を有する画素が所定範囲(例えば3画素×3画素の範囲)以上に亘り存在するか否かにより判定する。尚、第1〜第4検査用画像C1〜C4の取得時や取得後、あるいは第1〜第4検査用マスク画像D1〜D4の生成時や生成後、又は検査用合成画像Eの生成時や生成後において、眼鏡レンズL撮像部分以外の部分(狭角光照射手段7撮像部分等)が消去され若しくはトリミングされても良い。又、第1〜第4検査用画像C1〜C4の取得時において、眼鏡レンズLより外方の部分が撮影範囲外に配置されても良い。更に、上述の判定は、複数の検査用合成画像E,E・・に基づいてなされても良い。加えて、上述の判定は、所定範囲以内であっても輝度が第2の所定値(上記所定値と同じ値でも違う値でも良い)以上であるか否かによっても良いし、輝度が第3の所定値(上記所定値や第2の所定値と同じ値でも違う値でも良い)以上である画素が所定個数以上隣接しているか否かによっても良いし、これらの組合せによっても良い。
制御手段12は、眼鏡レンズL撮像部分において所定値以上の輝度を有する画素が所定範囲以上に亘り存在する場合、異物等による散乱光が存在して異物等が存在するものとして、検査用合成画像Eにおいて異常が発生しているとの判定結果を出す。例えば、上述の正常なマイナスレンズ及びプラスレンズにおいて、検査用合成画像Eには異物等による散乱光は存在しておらず、外観異常は発生していないとの判定結果を出す。他方、上述の異常なマイナスレンズにおいて、検査用合成画像Eには異物による散乱光F,F・・が存在しており、異常が発生しているとの判定結果を出す。
検査用合成画像Eにおいては、狭角光LED24,24・・の映り込みが消去されているので、異常発生の判定において、映り込みを異物等として誤検知し、異物等が存在しないのに異常が発生しているとの判定結果を誤って出してしまう事態が防止される。又、複数枚の第1〜第4検査用マスク画像D1〜D4の平均化により検査用合成画像Eが生成されており、複数枚の第1〜第4検査用マスク画像D1〜D4の情報を有する検査用合成画像Eを用いて異常発生判定がなされるため、判定の精度が良好である。しかも、第1〜第4検査用画像C1〜C4は、ピント位置や撮影範囲等を変えることなく少ない枚数で取得することができ、第1〜第4検査用マスク画像D1〜D4は所定の部分を消去するだけで生成できるので、処理量や処理時間は少ない。
Then, the control means 12 determines whether or not an abnormality has occurred in the stored inspection composite image E (step S9). Here, is there a pixel having a brightness of a predetermined value (for example, 128 out of 256 steps) or more in a predetermined range (for example, a range of 3 pixels × 3 pixels) in the spectacle lens L image pickup portion in the composite image E for inspection? Judge by whether or not. At the time of acquisition or acquisition of the first to fourth inspection images C1 to C4, at the time of generation or generation of the first to fourth inspection mask images D1 to D4, or at the time of generation of the inspection composite image E. After generation, a portion other than the spectacle lens L image pickup portion (narrow angle light irradiation means 7 image pickup portion, etc.) may be erased or trimmed. Further, when the first to fourth inspection images C1 to C4 are acquired, the portion outside the spectacle lens L may be arranged outside the photographing range. Further, the above-mentioned determination may be made based on a plurality of inspection composite images E, E .... In addition, the above-mentioned determination may be made depending on whether or not the brightness is equal to or higher than the second predetermined value (the same value as or different from the predetermined value) even if the brightness is within the predetermined range, and the brightness is the third. It may depend on whether or not the number of pixels which are equal to or more than the predetermined value (the same value as or different from the above-mentioned predetermined value or the second predetermined value) or more are adjacent to each other by a predetermined number or more, or a combination thereof may be used.
When the control means 12 has pixels having a brightness equal to or higher than a predetermined value in the spectacle lens L imaging portion over a predetermined range, it is assumed that scattered light due to a foreign substance or the like is present and the foreign substance or the like is present, and the composite image for inspection is used. A determination result is obtained that an abnormality has occurred in E. For example, in the above-mentioned normal minus lens and plus lens, the synthetic image E for inspection does not contain scattered light due to a foreign substance or the like, and a determination result is obtained that no appearance abnormality has occurred. On the other hand, in the above-mentioned abnormal minus lens, scattered light F, F ... Due to a foreign substance is present in the composite image E for inspection, and a determination result is obtained that the abnormality has occurred.
In the composite image E for inspection, the reflections of the narrow-angle light LEDs 24, 24, ... Are erased. Therefore, in the determination of the occurrence of an abnormality, the reflections are erroneously detected as foreign substances, etc. It is possible to prevent a situation in which the determination result that the above is occurring is erroneously output. Further, the composite image E for inspection is generated by averaging the plurality of first to fourth inspection mask images D1 to D4, and the information of the plurality of first to fourth inspection mask images D1 to D4 can be obtained. Since the abnormality occurrence is determined using the composite image E for inspection, the accuracy of the determination is good. Moreover, the first to fourth inspection images C1 to C4 can be acquired with a small number of images without changing the focus position, the shooting range, etc., and the first to fourth inspection mask images D1 to D4 are predetermined portions. Since it can be generated simply by erasing, the amount of processing and the processing time are small.

制御手段12は、検査用合成画像Eにおいて異常が発生しているとの判定結果を得た場合、検査対象に係る眼鏡レンズLの外観に異常が認められる旨(検査結果が異常であり眼鏡レンズLが外観異常のある不良品である旨)、報知手段9において報知させる。異常発生の報知は、ブザー音の発生であっても良いし、ランプの点灯であっても良いし、メッセージの発音あるいは表示であっても良いし、これらの組合せであっても良い。又、報知手段9に表示手段が含まれる場合、表示手段において、一部消去前及び一部消去後の第1〜第4検査用画像C1〜C4並びに検査用合成画像Eの少なくとも何れかが表示されるようにしても良い。そして、その表示がなされる場合、異常発生の判定がその画像の目視により行われても良い。尚、かような異常発生報知処理は、省略されても良い。又、報知手段9は、異常が認められない旨(検査結果が正常である旨)を、異常発生報知の態様とは異なる態様で報知しても良い。 When the control means 12 obtains a determination result that an abnormality has occurred in the composite image E for inspection, the control means 12 indicates that an abnormality is found in the appearance of the spectacle lens L related to the inspection target (the inspection result is abnormal and the spectacle lens). L is a defective product with an abnormal appearance), and the notification means 9 is used to notify. The notification of the occurrence of an abnormality may be the generation of a buzzer sound, the lighting of a lamp, the pronunciation or display of a message, or a combination thereof. When the notification means 9 includes a display means, at least one of the first to fourth inspection images C1 to C4 and the inspection composite image E before and after the partial erasure are displayed in the display means. It may be done. Then, when the display is made, the determination of the occurrence of an abnormality may be made by visual inspection of the image. It should be noted that such an abnormality occurrence notification process may be omitted. Further, the notification means 9 may notify that no abnormality is found (inspection result is normal) in a mode different from the mode of notification of abnormality occurrence.

制御手段12は、検査用合成画像Eに対する判定処理ないし異常発生報知処理が完了すると、狭角光照射手段7に対して消灯を指令すると共に、搬送手段により眼鏡レンズLを搬出し(ステップS10)、次の検査対象としての眼鏡レンズLが存在する場合には、以上の処理を繰り返す(Return To Start)。尚、狭角光照射手段7における最初の照明に係る照明部分は、搬出時や搬入前において点灯されていても良い。 When the determination process or the abnormality occurrence notification process for the composite image E for inspection is completed, the control means 12 commands the narrow-angle light irradiation means 7 to turn off the light and carries out the spectacle lens L by the transport means (step S10). If the spectacle lens L as the next inspection target is present, the above processing is repeated (Return To Start). The illuminated portion of the narrow-angle light irradiating means 7 related to the first illumination may be turned on at the time of carrying out or before carrying in.

≪効果等≫
以上のレンズ外観検査装置1は、検査対象レンズである眼鏡レンズLに対して、その眼鏡レンズLの光軸を囲む円環の四半円にそれぞれ相当する部分を占める4箇所の第1〜第4照明部分M1〜M4から、指向角が30°以下の光である狭角光を切替えて照射可能である狭角光照射手段7と、眼鏡レンズLが含まれる第1〜第4検査用画像C1〜C4を撮像するカメラ8と、第1〜第4検査用画像C1〜C4を処理する制御手段12と、を備えており、カメラ8は、狭角光照射手段7による4個の第1〜第4照明部分M1〜M4における照射(ステップS4)毎に、第1〜第4検査用画像C1〜C4を撮像し(ステップS5)、制御手段12は、第1〜第4照明部分M1〜M4の照射毎に撮像した第1〜第4検査用画像C1〜C4中の眼鏡レンズL撮像部分における、第1〜第4照明部分M1〜M4が映り込んだ部分を含む第1〜第4画像部分N1〜N4をそれぞれ消去して、4枚の第1〜第4検査用マスク画像D1〜D4を生成する一部消去処理(ステップS6)と、4枚の第1〜第4検査用マスク画像D1〜D4を合成して1枚の検査用合成画像Eを生成する合成処理(ステップS8)と、を行う。
よって、カメラ8は、第1〜第4検査用画像C1〜C4の取得において、異物等のない正常な部分を眼鏡レンズLの光軸交差方向に透過する狭角光を殆ど捉えない一方、異物等のある異常な部分に達して反射された狭角光を鮮明に捉えることとなり、第1〜第4検査用画像C1〜C4におけるコントラスト比が極めて良好になって、その分異物等を発見し易くなる。又、第1〜第4照明部分M1〜M4において狭角光を切替えて照射可能である狭角光照射手段7で眼鏡レンズLが照明されることにより、コントラスト比を良好にするために照明強度を十分なものとしても、眼鏡レンズL中の照明光源の映り込みが部分的なものとなる。そして、制御手段12が、一部消去処理で第1〜第4検査用画像C1〜C4において眼鏡レンズLの映り込み部分を含む画像部分を消去して第1〜第4検査用マスク画像D1〜D4を生成し、これらを合成処理で合成して検査用合成画像Eを生成することにより、眼鏡レンズL撮像部分における映り込みを消去しながら眼鏡レンズL全体をカバーした検査用合成画像Eを取得することができて、適切に照明された部分の結集された検査用合成画像Eを用いた、処理量や処理時間の比較的に少ない正確な外観検査が確保される。
特に、レンズ外観検査装置1による検査を、上述の特許文献1のもののような透過光を用いた検査と比べると、透過光の検査では、異物等に対応する部分が暗くそれ以外の部分が明るい画像を用いることとなってユーザーが異物を感じる状況に合わない検査となるし、異物等に反射された光束がうまく発散しないことでカメラに捉えられず検査の精度に影響を与える可能性があるが、レンズ外観検査装置1の検査では、異物等に対応する部分が明るくそれ以外の部分が暗い検査用画像Cを用いることとなってユーザーの状況に合った検査が行えるし、上述の通り十分なコントラスト比を確保して優れた検査精度を確保することができる。
他方、反射光を用いた直接目視による検査と比べると、直接目視では異物等の拡散光が眼鏡レンズLの作用により拡大されあるいは縮小されて誤判定の原因となるし、かような拡大や縮小の度合は眼鏡レンズLの度数によって相違することとなり、特に種々の度数が存在する眼鏡レンズLのような検査対象レンズでは、その相違が顕著であって、かような相違も誤判定の原因となるが、レンズ外観検査装置1の検査では、少なくとも物体側がテレセントリックであるレンズにより撮像された検査用画像Cにおいて、異物等の拡散光が眼鏡レンズLのどの部分にあっても同様の大きさで撮像され、又どのような度数の眼鏡レンズLであっても同様の大きさで撮像され、よって誤判定が回避されてより正確な検査が行えるものである。
更に、狭角光を照射する狭角光照射手段7に代えて、広角光を照射する広角光照射手段が用いられた場合であっても、比較的に異物等の散乱光ではない光がカメラレンズ36に達し易くなるものの、当該光の輝度は散乱光の輝度に比べて十分に小さいものであり、検査用合成画像Eの2値化を始めとする適切な画像処理を適宜実行することにより、狭角光照射手段7の場合と同様に正確な検査が行える。
≪Effects, etc.≫
The above-mentioned lens appearance inspection device 1 has four first to fourth lenses that occupy a portion corresponding to each of the quadrants of the ring surrounding the optical axis of the spectacle lens L with respect to the spectacle lens L which is the lens to be inspected. The narrow-angle light irradiating means 7 capable of switching and irradiating the narrow-angle light having a directing angle of 30 ° or less from the illumination portions M1 to M4, and the first to fourth inspection images C1 including the spectacle lens L. The camera 8 includes a camera 8 that captures images C4 and control means 12 that processes the first to fourth inspection images C1 to C4. The camera 8 includes four first to first lenses by the narrow-angle light irradiation means 7. For each irradiation (step S4) in the fourth illumination portions M1 to M4, the first to fourth inspection images C1 to C4 are imaged (step S5), and the control means 12 uses the first to fourth illumination portions M1 to M4. 1st to 4th image portions including a portion in which the 1st to 4th illumination portions M1 to M4 are reflected in the spectacle lens L image pickup portion in the 1st to 4th inspection images C1 to C4 imaged for each irradiation. Partial erasing process (step S6) in which N1 to N4 are erased to generate four first to fourth inspection mask images D1 to D4, and four first to fourth inspection mask images D1. -D4 is combined to generate one composite image E for inspection (step S8).
Therefore, in the acquisition of the first to fourth inspection images C1 to C4, the camera 8 hardly captures the narrow-angle light transmitted through the normal portion without foreign matter in the optical axis crossing direction of the spectacle lens L, while the camera 8 hardly catches the foreign matter. The narrow-angle light that has reached an abnormal part such as the above and is reflected is clearly captured, and the contrast ratio in the first to fourth inspection images C1 to C4 becomes extremely good, and foreign matter and the like are found by that amount. It will be easier. Further, the spectacle lens L is illuminated by the narrow-angle light irradiating means 7 capable of switching and irradiating the narrow-angle light in the first to fourth illumination portions M1 to M4, so that the illumination intensity is improved in order to improve the contrast ratio. Even if the above is sufficient, the reflection of the illumination light source in the spectacle lens L is partial. Then, the control means 12 erases the image portion including the reflected portion of the spectacle lens L in the first to fourth inspection images C1 to C4 by the partial erasing process, and the first to fourth inspection mask images D1 to By generating D4 and synthesizing them by a compositing process to generate a composite image E for inspection, an inspection composite image E covering the entire spectacle lens L is acquired while eliminating reflections in the image pickup portion of the spectacle lens L. It is possible to secure an accurate visual inspection with a relatively small amount of processing amount and processing time using a composite image E for inspection in which appropriately illuminated portions are gathered.
In particular, when the inspection by the lens appearance inspection device 1 is compared with the inspection using transmitted light as in Patent Document 1 described above, in the inspection of transmitted light, the portion corresponding to foreign matter and the like is dark and the other portions are bright. Since the image is used, the inspection is not suitable for the situation where the user feels a foreign substance, and the light beam reflected by the foreign substance does not diverge well, so it may not be captured by the camera and may affect the accuracy of the inspection. However, in the inspection of the lens appearance inspection device 1, the inspection image C in which the part corresponding to the foreign matter or the like is bright and the other part is dark is used, so that the inspection suitable for the user's situation can be performed, which is sufficient as described above. It is possible to secure a high contrast ratio and ensure excellent inspection accuracy.
On the other hand, as compared with the direct visual inspection using reflected light, the diffused light such as foreign matter is enlarged or reduced by the action of the spectacle lens L, which causes an erroneous judgment, and such enlargement or reduction. The degree of the difference depends on the power of the spectacle lens L, and the difference is particularly remarkable in the lens to be inspected such as the spectacle lens L having various powers, and such a difference is also a cause of erroneous judgment. However, in the inspection of the lens appearance inspection device 1, at least in the inspection image C captured by the lens whose object side is telecentric, the diffused light such as foreign matter has the same size regardless of any part of the spectacle lens L. An image is taken, and no matter what the power of the spectacle lens L, the image is taken with the same size, so that erroneous determination is avoided and a more accurate inspection can be performed.
Further, even when a wide-angle light irradiating means for irradiating wide-angle light is used instead of the narrow-angle light irradiating means 7 for irradiating narrow-angle light, light that is relatively non-scattered light such as foreign matter is a camera. Although it is easy to reach the lens 36, the brightness of the light is sufficiently smaller than the brightness of the scattered light, and by appropriately performing appropriate image processing such as binarization of the composite image E for inspection. , Accurate inspection can be performed as in the case of the narrow angle light irradiation means 7.

又、狭角光照射手段7において第1〜第4照明部分M1〜M4が配置される囲み線は、眼鏡レンズLを囲む円環であり、第1〜第4照明部分M1〜M4は、前記円環を均等に4分割した場合の前記円環の部分(四半円)であり、制御手段12の一部消去処理(ステップS6)における映り込み部分を含む消去対象部分は、第1〜第4検査用画像C1〜C4をその中心から発する放射方向の直線で均等に分割した場合の第1〜第4検査用画像C1〜C4の第1〜第4画像部分N1〜N4である。よって、分割照明や一部消去処理が均等な部分を対象とすることにより円滑で正確に行われることとなり、合成処理も消去対象部分の重複しない第1〜第4検査用マスク画像D1〜D4が対象となり円滑で正確に行われることとなって、処理量や処理時間の比較的に少ない正確な外観検査が確保される。
更に、カメラ8は、眼鏡レンズLに向けられたカメラレンズ36を有しており、物体側テレセントリックレンズであるカメラレンズ36を通じて第1〜第4検査用画像C1〜C4を取得するので、肉厚やカーブ値の大きい眼鏡レンズLであっても肉厚方向(眼鏡レンズLの光軸方向)の全体に亘り鮮明な第1〜第4検査用画像C1〜C4を得ることができ、ピント位置の異なる複数の画像を取得する必要がないため処理量や検査時間が少なくなるし、眼鏡レンズLのどの部分に異物等が発生したとしても第1〜第4検査用画像C1〜C4から生成した検査用合成画像Eにおいて異物等を適切な位置ないし大きさで検出することができるし、異物等が複数発生したとしても検査用合成画像Eにおいてそれぞれ適切な位置ないし大きさで捉えることができて、検査用合成画像Eを用いた精度の高い外観検査が確保される。
Further, in the narrow angle light irradiation means 7, the surrounding line in which the first to fourth illumination portions M1 to M4 are arranged is an annular ring surrounding the spectacle lens L, and the first to fourth illumination portions M1 to M4 are described above. The portion of the ring (quarter circle) when the ring is evenly divided into four, and the portion to be erased including the reflected portion in the partial erasing process (step S6) of the control means 12 is the first to fourth. The first to fourth image portions N1 to N4 of the first to fourth inspection images C1 to C4 when the inspection images C1 to C4 are evenly divided by a straight line in the radial direction emanating from the center thereof. Therefore, the divided illumination and the partial erasing process can be performed smoothly and accurately by targeting the uniform portion, and the compositing process also performs the first to fourth inspection mask images D1 to D4 in which the erased target portions do not overlap. It becomes a target and is performed smoothly and accurately, and an accurate visual inspection with a relatively small amount of processing amount and processing time is ensured.
Further, the camera 8 has a camera lens 36 directed to the spectacle lens L, and acquires the first to fourth inspection images C1 to C4 through the camera lens 36 which is an object-side telecentric lens, so that the thickness is thick. Even with a spectacle lens L having a large curve value, clear images C1 to C4 for the first to fourth inspections can be obtained over the entire thickness direction (optical axis direction of the spectacle lens L), and the focus position can be obtained. Since it is not necessary to acquire a plurality of different images, the processing amount and the inspection time are reduced, and no matter which part of the spectacle lens L a foreign substance or the like is generated, the inspection generated from the first to fourth inspection images C1 to C4. Foreign matter and the like can be detected at an appropriate position and size in the composite image E for inspection, and even if a plurality of foreign matter and the like are generated, they can be captured at an appropriate position and size in the composite image E for inspection. A highly accurate visual inspection using the synthetic image E for inspection is ensured.

加えて、内面が反射防止面とされているステージ4を備えており、ステージ4は、孔5を有しており、眼鏡レンズLを挟んでカメラ8(カメラレンズ36)と反対側に孔5が位置するように配置されている。よって、カメラレンズ36から見て眼鏡レンズLの向こう側の内面を眼鏡レンズLに対して離隔させることができ、又ステージ4内に反射光や繰り返しの反射光が進入することが防止され、僅かに進入したとしても反射防止面により反射を抑制され、結果眼鏡レンズLとの距離が確保された上述の内面を反射光や散乱光が照らさないようになることでコントラスト比の低下を抑制し、検査用画像Cにおいてコントラスト比を更に向上することができ、より精度の高い検査が行える検査用画像Cを取得することができる。
図35は、レンズ外観検査装置1のようにステージ4が箱体である場合における検査用合成画像Eを示す写真であり、図36は、図35の検査用合成画像Eを2値化(輝度しきい値:暗い側から16/256段階中)した画像を示す写真であり、図37は、ステージが箱体でない(眼鏡レンズL下方の面に対する光進入防止手段がない)場合における検査用合成画像Eを示す写真であり、図38は、図37の検査用合成画像Eを同様に2値化した画像を示す写真である。
図37の写真においてもコントラスト比は良好であるものの、狭角光照射手段7のすぐ内側の右上,右下,左上,左下の各部分が、周囲より高い輝度を有する部分Pとなっている。かような部分Pの発生は、狭角光照射手段7が90°の中心角を有する弧毎に4分割で形成されており、その接合面や、接合に用いられている部品(ネジ等)から反射光が出現することによる。これら部分Pの発生は、2値化に係る図38の写真において顕著に表われ、しきい値等の設定によっては、2値化画像で高輝度部分即ち異物等存在部分を解析する場合に、接合面や部品の反射光が異物等存在部分と誤認される可能性がある。
これに対し、図35の写真においては、図37の写真に比べて更にコントラスト比が良好になっていると共に、狭角光照射手段7の構造(接合)による反射光の輝度が抑制されている。かような輝度の抑制は、2値化に係る図36の写真において、図38の写真のように2値化後においても部分Pが出現しないことからも良くみて取れる。
これらの写真から、箱体(ステージ4)の設置による、反射光(狭角光照射手段7からのものを含む)の映り込み防止の効果や、コントラスト比向上の効果がみて取れる。
In addition, a stage 4 having an inner surface as an antireflection surface is provided, and the stage 4 has a hole 5, and the hole 5 is opposite to the camera 8 (camera lens 36) with the spectacle lens L interposed therebetween. Is arranged so as to be located. Therefore, the inner surface on the other side of the spectacle lens L as viewed from the camera lens 36 can be separated from the spectacle lens L, and the reflected light and the repeatedly reflected light are prevented from entering the stage 4 and slightly. Even if it enters, the reflection is suppressed by the antireflection surface, and as a result, the reflection light and the scattered light do not illuminate the above-mentioned inner surface where the distance from the spectacle lens L is secured, so that the decrease in the contrast ratio is suppressed. The contrast ratio can be further improved in the inspection image C, and the inspection image C capable of performing a more accurate inspection can be obtained.
FIG. 35 is a photograph showing a composite image E for inspection when the stage 4 is a box body as in the lens appearance inspection device 1, and FIG. 36 is a photograph showing the composite image E for inspection in FIG. 35 binarized (brightness). It is a photograph showing an image (during 16/256 steps from the dark side), and FIG. 37 is a composite for inspection when the stage is not a box (there is no light intrusion prevention means for the surface below the spectacle lens L). It is a photograph showing the image E, and FIG. 38 is a photograph showing an image obtained by similarly binarizing the composite image E for inspection of FIG. 37.
Although the contrast ratio is also good in the photograph of FIG. 37, each of the upper right, lower right, upper left, and lower left portions immediately inside the narrow-angle light irradiation means 7 is a portion P having higher brightness than the surroundings. The generation of such a portion P is formed by dividing the narrow-angle light irradiation means 7 into four parts for each arc having a central angle of 90 °, and the joint surface thereof and parts (screws, etc.) used for the joint. Due to the appearance of reflected light from. The generation of these portions P is prominently shown in the photograph of FIG. 38 related to binarization, and depending on the setting of the threshold value or the like, when analyzing a high-luminance portion, that is, an existing portion such as a foreign substance in the binarized image, There is a possibility that the reflected light from the joint surface or parts may be mistaken for an existing part such as a foreign substance.
On the other hand, in the photograph of FIG. 35, the contrast ratio is further improved as compared with the photograph of FIG. 37, and the brightness of the reflected light due to the structure (junction) of the narrow angle light irradiation means 7 is suppressed. .. Such suppression of luminance can be clearly seen from the fact that the partial P does not appear even after binarization as in the photograph of FIG. 38 in the photograph of FIG. 36 relating to the binarization.
From these photographs, the effect of preventing the reflection of reflected light (including the one from the narrow-angle light irradiation means 7) and the effect of improving the contrast ratio can be seen by installing the box body (stage 4).

更に、眼鏡レンズL及び狭角光照射手段7、並びに、カメラレンズ36を有するカメラ8を覆うエンクロージャ2を備えており、エンクロージャ2の内面は、狭角光照射手段7から発せられる狭角光の反射が防止される反射防止面となるよう、黒色に塗られている。従って、外部からエンクロージャ2への外光(自然光や照明光等)の進入を防止して、検査用画像Cにおける外光の現出を防止することができるし、エンクロージャ2内面における狭角光の反射や反射光の更なる反射(反射の繰り返し)を抑制して、その反射光の検査用画像Cにおける現出を防止し、検査用画像Cにおいて優れたコントラスト比を実現することができ、より精度の高い検査が行える検査用画像Cを取得することができる。
又更に、レンズ外観検査装置1は、眼鏡レンズLとカメラ8との間の距離である撮像距離を調整するリフト20(ステップS2)を備えているため、互いに相違する特性値を有する眼鏡レンズLを続けて検査する場合であっても、その特性値に合うような撮像距離を確保することができ、何れの特性値に係る眼鏡レンズLにおいても全体に亘り鮮明な第1〜第4検査用画像C1〜C4を少ない枚数(ここでは合計4枚)において取得することができて、処理量や検査時間が少なく且つ正確である検査を実現することができる。
Further, an enclosure 2 for covering the spectacle lens L, the narrow-angle light irradiating means 7, and the camera 8 having the camera lens 36 is provided, and the inner surface of the enclosure 2 is the narrow-angle light emitted from the narrow-angle light irradiating means 7. It is painted black so that it is an anti-reflection surface that prevents reflection. Therefore, it is possible to prevent the intrusion of external light (natural light, illumination light, etc.) from the outside into the enclosure 2 to prevent the appearance of external light in the inspection image C, and it is possible to prevent the appearance of the external light on the inner surface of the enclosure 2. Further reflection (repetition of reflection) of the reflected light can be suppressed, the reflected light can be prevented from appearing in the inspection image C, and an excellent contrast ratio can be realized in the inspection image C. It is possible to acquire an inspection image C capable of performing a highly accurate inspection.
Furthermore, since the lens visual inspection device 1 includes a lift 20 (step S2) for adjusting the imaging distance, which is the distance between the spectacle lens L and the camera 8, the spectacle lens L has different characteristic values. Even in the case of continuous inspection, it is possible to secure an imaging distance that matches the characteristic value, and the spectacle lens L related to any characteristic value is clearly used for the first to fourth inspections. Images C1 to C4 can be acquired in a small number of images (here, a total of four images), and an accurate inspection with a small amount of processing amount and inspection time can be realized.

[第2形態]
≪構成等≫
図39は、本発明の第2形態に係るレンズ外観検査装置101の図2相当であり、図40は、レンズ外観検査装置101の図3相当図である。
レンズ外観検査装置101は、狭角光照射手段及びレンズ保持機構を除き、第1形態のレンズ外観検査装置1と同様になる。かように同様に成る部材や部分には、同じ符号が付され、適宜説明が省略される。
[Second form]
≪Composition, etc.≫
39 is a view corresponding to FIG . 2 of the lens appearance inspection device 101 according to the second aspect of the present invention, and FIG. 40 is a view corresponding to FIG. 3 of the lens appearance inspection device 101.
The lens appearance inspection device 101 is the same as the lens appearance inspection device 1 of the first embodiment except for the narrow angle light irradiation means and the lens holding mechanism. Members and parts having the same structure are designated by the same reference numerals, and the description thereof will be omitted as appropriate.

レンズ外観検査装置101の狭角光照射手段107は、上からみて正八角形の枠状である水平なベース122と、ベース122の各辺の下部に配置された、全部で8個の照射ユニット123と、各照射ユニット123内に配設された複数の狭角光LED24,24・・と、狭角光LED24,24・・毎に設けられる照明用レンズ26,26・・と、を備えている。
尚、照射ユニット123の一部又は全部は、ベース122の上部に配置されていても良いし、ベース122の外側面に配置されていても良いし、ベース122の内側面に配置されていても良い。
The narrow-angle light irradiation means 107 of the lens appearance inspection device 101 has a horizontal base 122 which is a regular octagonal frame when viewed from above, and a total of eight irradiation units 123 arranged at the bottom of each side of the base 122. A plurality of narrow-angle optical LEDs 24, 24 ... Arranged in each irradiation unit 123, and illumination lenses 26, 26 ... Provided for each of the narrow-angle optical LEDs 24, 24 ... ..
A part or all of the irradiation unit 123 may be arranged on the upper part of the base 122, may be arranged on the outer surface of the base 122, or may be arranged on the inner surface of the base 122. good.

ベース122は、後部に正八角形の枠状部分から後方に延設される延設部(図示略)を有しており、その延設部を通過する上下方向のレール125に沿って移動可能である(照明光照射手段107の位置変更に係る照射変更手段)。かようなベース122の上下方向の移動は、図示されないモータにより行われ、制御手段12の制御により任意の位置まで移動可能である。レール125は、エンクロージャ2に対して固定され、エンクロージャ2内面と同様に、反射防止加工が施されている。
ベース122及び8個の照射ユニット123は、眼鏡レンズLを囲む。ベース122及び8個の照射ユニット123の八角形の中心と、眼鏡レンズLの中心とは、ここでは合致している。
The base 122 has an extension portion (not shown) extending rearward from a regular octagonal frame-shaped portion at the rear portion, and is movable along a vertical rail 125 passing through the extension portion. (Irradiation changing means relating to the position change of the illumination light irradiating means 107). Such vertical movement of the base 122 is performed by a motor (not shown), and the base 122 can be moved to an arbitrary position under the control of the control means 12. The rail 125 is fixed to the enclosure 2 and is subjected to antireflection processing like the inner surface of the enclosure 2.
The base 122 and the eight irradiation units 123 surround the spectacle lens L. The center of the octagon of the base 122 and the eight irradiation units 123 and the center of the spectacle lens L are aligned here.

各照射ユニット123は、ベース122に対して、傾斜角調節手段127を介して接続されている。各傾斜角調節手段127は、例えばアクチュエータにより形成され、制御手段12の制御により、対応する照射ユニット123の向き(仮想的な水平面に対する傾斜角)を、任意の向き(傾斜角)に変える(照明光照射手段107の傾斜角変更に係る照射変更手段)。照射ユニット123は、傾斜角調節手段127により、上向き(水平面より上方に向かう向き)から、水平な向き(水平面と同じ向き)を経て、下向き(水平面より下方に向かう向き)まで姿勢変化可能である。制御手段12は、8個の照射ユニット123について、互いに独立して傾斜角を変化可能である。又、制御手段12は、複数(例えば右の4個あるいは全8個)の照射ユニット123が同じ傾斜角を持つように制御することもできる。
8個の照射ユニット123は、ベース122によって上下方向に移動可能とされ、その移動や到達位置の制御のために、制御手段12と電気的に接続されている。これら照射ユニット123は、リフト20とは独立して上下方向に移動可能である。尚、各照射ユニット123は、互いに独立して移動可能とされていても良い。又、各照射ユニット123は、ベース122の正八角形に接する仮想的な円の径方向等の他の方向においても移動可能とされていても良い。更に、各照射ユニット123あるいは第1形態の狭角光照射手段7における1個の狭角光LED24とその照明用レンズ26との組について、他の組に対して互いに独立して位置や傾斜角の変化が可能であるようにされても良い。加えて、狭角光照射手段107は、上下方向の位置及び傾斜角の何れか一方のみについて変更可能とされても良い。
Each irradiation unit 123 is connected to the base 122 via the tilt angle adjusting means 127. Each tilt angle adjusting means 127 is formed by, for example, an actuator, and the direction of the corresponding irradiation unit 123 (tilt angle with respect to a virtual horizontal plane) is changed to an arbitrary direction (tilt angle) by the control of the control means 12 (illumination). Irradiation changing means for changing the tilt angle of the light irradiating means 107). The irradiation unit 123 can change its posture from upward (direction upward from the horizontal plane), horizontally (same direction as the horizontal plane), and downward (direction downward from the horizontal plane) by the tilt angle adjusting means 127. .. The control means 12 can change the tilt angle of the eight irradiation units 123 independently of each other. Further, the control means 12 can also control so that a plurality of irradiation units 123 (for example, 4 on the right or 8 in total) have the same inclination angle.
The eight irradiation units 123 are made movable in the vertical direction by the base 122, and are electrically connected to the control means 12 for the control of the movement and the arrival position. These irradiation units 123 can move in the vertical direction independently of the lift 20. The irradiation units 123 may be movable independently of each other. Further, each irradiation unit 123 may be movable in another direction such as the radial direction of a virtual circle in contact with the regular octagon of the base 122. Further, the position and tilt angle of one narrow-angle light LED 24 and its illumination lens 26 in each irradiation unit 123 or the narrow-angle light irradiation means 7 of the first embodiment are independent of each other with respect to the other sets. May be allowed to change. In addition, the narrow-angle light irradiating means 107 may be capable of changing only one of the vertical position and the tilt angle.

又、各照射ユニット123は、互いに独立して点消灯可能であるように、制御手段12と電気的に接続されている。例えば、照射ユニット123は、ベース122の正八角形の右上の上側の辺におけるものから、1個置きに4個点灯することが可能である。又、照射ユニット123は、図40で示されるように、上側から下方へ見たときの右上の上下2個の照射ユニット123に係る第1照明部分M1,右下の上下2個の照射ユニット123に係る第2照明部分M2,左下の上下2個の照射ユニット123に係る第3照明部分M3あるいは左上の上下2個の照射ユニット123に係る第4照明部分M4の4箇所の部分毎に、オンオフを切替可能に接続されている(部分照明,分割照明)。それら照明部分のそれぞれは、狭角光LED24,24・・を14個含んており、眼鏡レンズLを取り囲む360°のうちの90°の範囲を照らす。 Further, each irradiation unit 123 is electrically connected to the control means 12 so that the lights can be turned on and off independently of each other. For example, it is possible to light four irradiation units 123 every other one from the one on the upper right side of the upper right side of the regular octagon of the base 122. Further, as shown in FIG. 40, the irradiation unit 123 has a first illumination portion M1 related to two upper and lower irradiation units 123 on the upper right when viewed from the upper side and two upper and lower irradiation units 123 on the lower right. 2nd lighting part M2 according to the above, 3rd lighting part M3 related to the upper and lower two irradiation units 123 on the lower left, or 4th lighting part M4 related to the upper and lower two irradiation units 123 on the upper left, on and off for each of the four parts. Is connected so that it can be switched (partial lighting, split lighting). Each of these illuminating portions contains 14 narrow-angle light LEDs 24, 24 ..., Which illuminates a range of 90 ° out of 360 ° surrounding the spectacle lens L.

レンズ外観検査装置101のレンズ保持機構106は、8個のフック121を有する。
各フック121は、幅(眼鏡レンズLの接線方向の大きさ)がより小さいことを除き、第1形態のフック21と同様になる。
8個のフック121は、狭角光照射手段107のベース122における正八角形の何れかの頂点に相当する位置に配置されている。即ち、8個のフック121は、正八角形の何れかの頂点とその中心とを結ぶ仮想線上に配置されている。
The lens holding mechanism 106 of the lens visual inspection device 101 has eight hooks 121.
Each hook 121 is the same as the hook 21 of the first embodiment except that the width (the size in the tangential direction of the spectacle lens L) is smaller.
The eight hooks 121 are arranged at positions corresponding to any of the vertices of the regular octagon on the base 122 of the narrow angle light irradiation means 107. That is, the eight hooks 121 are arranged on a virtual line connecting any vertex of the regular octagon and its center.

≪動作等≫
このようになるレンズ外観検査装置101の動作例は、第1形態のレンズ外観検査装置1の動作例(図4参照)と大要同様である。
即ち、眼鏡レンズの検査位置への搬入がなされ(ステップS1)、撮像距離の調整がなされる(ステップS2)。
≪Operation etc.≫
The operation example of the lens appearance inspection device 101 as described above is roughly the same as the operation example of the lens appearance inspection device 1 of the first embodiment (see FIG. 4).
That is, the spectacle lens is carried into the inspection position (step S1), and the imaging distance is adjusted (step S2).

更に、制御手段12は、狭角光照射手段107に対して、適宜上下方向の移動や傾斜角の変更のための移動指令を送信し、これを受けて狭角光照射手段107の照射ユニット123が移動しないしは姿勢変化する(照射変更ステップ)。
制御手段12は、レンズデータベース52を参照し、受信したレンズ特性値に対応する各照射ユニット123の上下方向の位置(眼鏡レンズLに対する相対位置)や傾斜角を抽出して、その決定された位置や傾斜角となるように、各照射ユニット123を適宜移動させる。
これらの各照射ユニット123の位置や傾斜角と、レンズ特性値との関係は、位置や傾斜角を様々に変えて予め行われるテストにより決定される。
例えば、マイナスの度数(S−10.00D)を有するプラスチック製のマイナスレンズ(直径70mm,屈折率1.6,中心厚1mm)について、全ての照射ユニット123の上下方向の位置が眼鏡レンズLの上下方向の位置と同じで、水平面に対する傾斜角が0°である水平状態と、全ての照射ユニット123が水平状態から5mm上方の位置で且つ斜め下2°(−2°)の傾斜角を呈する緩傾斜状態と、全ての照射ユニット123が水平状態から10mm上方の位置で且つ−6°の傾斜角を呈する急傾斜状態と、で予めテストされる。尚、ここでは眼鏡レンズLの上下方向の位置は、眼鏡レンズLの幾何学中心(表面上)を基準とし、照射ユニット123の上下方向の位置は、全ての照射ユニット123の傾斜角が0°(水平)である場合の、狭角光LED24を結ぶ仮想的な正八角形の中心点(照明中心)を基準とするところ、他の点を基準としても良い。
図41は、水平状態の照射ユニット123が1個置きに点灯した場合の参考的な画像を示す写真であり、図42は、緩傾斜状態の照射ユニット123が1個置きに点灯した場合の参考的な画像を示す写真であり、図43は、急傾斜状態の照射ユニット123が1個置きに点灯した場合の参考的な画像を示す写真である。何れの場合も、点灯部分と同じ側において円弧状の映り込みR11〜R14が発生しているものの、各場合において、映り込みR11〜R14の輝度や幅が互いに相違している。
Further, the control means 12 transmits a movement command for moving in the vertical direction and changing the tilt angle to the narrow-angle light irradiating means 107 as appropriate, and in response to this, the irradiating unit 123 of the narrow-angle light irradiating means 107. Does not move or changes its posture (irradiation change step).
The control means 12 refers to the lens database 52, extracts the vertical position (relative position with respect to the spectacle lens L) and the tilt angle of each irradiation unit 123 corresponding to the received lens characteristic value, and determines the position. Each irradiation unit 123 is appropriately moved so as to have an inclination angle and an inclination angle.
The relationship between the position and tilt angle of each of these irradiation units 123 and the lens characteristic value is determined by a test performed in advance by changing the position and tilt angle in various ways.
For example, for a plastic negative lens (diameter 70 mm, refractive index 1.6, center thickness 1 mm) having a negative power (S-10.00D), all the irradiation units 123 are positioned in the vertical direction of the spectacle lens L. Same as the vertical position, the horizontal state where the inclination angle with respect to the horizontal plane is 0 °, and all the irradiation units 123 are located 5 mm above the horizontal state and have an inclination angle of 2 ° (-2 °) diagonally downward. It is pre-tested in a gently tilted state and in a steeply tilted state where all irradiation units 123 are located 10 mm above the horizontal state and exhibit an tilt angle of −6 °. Here, the vertical position of the spectacle lens L is based on the geometric center (on the surface) of the spectacle lens L, and the vertical position of the irradiation unit 123 is such that the inclination angle of all the irradiation units 123 is 0 °. Where the reference point is the center point (illumination center) of a virtual regular octagon connecting the narrow-angle light LEDs 24 in the case of (horizontal), other points may be used as a reference.
FIG. 41 is a photograph showing a reference image when the irradiation unit 123 in the horizontal state is lit every other one, and FIG. 42 is a reference when the irradiation unit 123 in the gently inclined state is lit every other one. FIG. 43 is a photograph showing a reference image when every other irradiation unit 123 in a steeply inclined state is lit. In each case, arcuate reflections R11 to R14 are generated on the same side as the lighting portion, but in each case, the brightness and width of the reflections R11 to R14 are different from each other.

又、制御手段12は、狭角光照射手段107に対して、第1照明部分M1,第2照明部分M2,第3照明部分M3あるいは第4照明部分M4の何れかにおいて所定の強度で狭角光を発出させるための発光指令を送信し、これを受けて発光指令に係る狭角光照射手段107の照明部分における狭角光LED24,24・・が点灯する(ステップS3〜S4)。尚、第1照明部分M1(八角形の上右の辺の部分と右上の辺の部分)のうちの何れか一方のみが点灯されても良く、第2〜第4照明部分M2〜M4についても同様である。
そして、制御手段12は、第1〜第4検査画像C1〜C4を順次取得し(ステップS5)、これらに対して、レンズ外観検査プログラム50の一部消去処理を実行し、第1〜第4画像部分N1〜N4に係る消去を行って、第1〜第4検査用マスク画像D1〜D4を生成する(ステップS6)。尚、狭角光照射手段107における8個の照射ユニット123を1個ずつ順次点灯して第1〜第8検査画像を順次取得し、これらに対して、画像の中心を通る放射方向の線で八等分された部分の何れかを消去する一部消去処理を実行し、第1〜第8画像部分に係る消去を行って、第1〜第8検査用マスク画像を生成しても良い。
Further, the control means 12 has a narrow angle with a predetermined intensity in any of the first lighting portion M1, the second lighting portion M2, the third lighting portion M3, and the fourth lighting portion M4 with respect to the narrow angle light irradiation means 107. A light emission command for emitting light is transmitted, and in response to this, the narrow angle light LEDs 24, 24 ... In the illumination portion of the narrow angle light irradiation means 107 according to the light emission command are turned on (steps S3 to S4). In addition, only one of the first illumination portion M1 (the portion on the upper right side of the octagon and the portion on the upper right side) may be lit, and the second to fourth illumination portions M2 to M4 may also be lit. The same is true.
Then, the control means 12 sequentially acquires the first to fourth inspection images C1 to C4 (step S5), executes a partial erasing process of the lens appearance inspection program 50 for these, and executes the first to fourth inspection images C1 to C4. The image portions N1 to N4 are erased to generate the first to fourth inspection mask images D1 to D4 (step S6). The eight irradiation units 123 in the narrow-angle light irradiation means 107 are sequentially turned on one by one to sequentially acquire the first to eighth inspection images, and the lines in the radial direction passing through the center of the images are used for these. A partial erasing process for erasing any of the eight equal parts may be executed to erase the first to eighth image portions to generate the first to eighth inspection mask images.

又、制御手段12のCPU44は、ループS3〜S7が完了して第1〜第4検査用マスク画像D1〜D4を一組取得した後、レンズ外観検査プログラム50の合成処理を実行し、第1〜第4検査用マスク画像D1〜D4を参照して検査用合成画像E(図44〜図46)を生成し、記憶手段32に記憶する(ステップS8)。尚、かような検査用合成画像Eの生成に当たり、図41〜図43の参考的な画像は用いられていない。又、CPU44は、第1〜第8検査用マスク画像を生成した場合には、これらを合成して検査用合成画像Eを生成しても良い。 Further, the CPU 44 of the control means 12 executes the synthesis process of the lens appearance inspection program 50 after the loops S3 to S7 are completed to acquire a set of the first to fourth inspection mask images D1 to D4, and the first. -The fourth inspection mask images D1 to D4 are referred to to generate inspection composite images E (FIGS. 44 to 46), which are stored in the storage means 32 (step S8). In generating such a composite image E for inspection, the reference images of FIGS. 41 to 43 are not used. Further, when the CPU 44 generates the first to eighth inspection mask images, they may be combined to generate the inspection composite image E.

そして、制御手段12は、記憶した検査用合成画像Eに対して、異常が発生しているか否かを判定し、異常が発生していると判定した場合には、異常発生報知処理を行う(ステップS9)。
図47は、水平状態の照明による検査用画像から生成された検査用合成画像Eを2値化したものを示し(ここでのしきい値/各輝度総段階数:77/256)、図48は、緩傾斜状態の照明による検査用画像から生成された検査用合成画像Eを同様に2値化したものを示し、図49は、急傾斜状態の照明による検査用画像から生成された検査用合成画像Eを同様に2値化したものを示す。
これらを比較すると、何れの検査用合成画像Eにおいても捉えられているものの、図49のものにおいて最も大きくはっきりと確認される異物等の散乱光F1,F1が存在したり、図47,図48のものでは捉えられていない異物等の散乱光F2,F2が図49のものにおいて存在したりすることから、上述の眼鏡レンズLにおいては、図49の検査用合成画像Eにつながる急傾斜状態(10mm上方の位置,−6°の傾斜角)の照明が最適であることになる。
即ち、検査の対象となるレンズによっては(特に眼鏡レンズのように比較的に深いカーブを有するレンズでは)、水平方向の照明光の照射では、異物等による散乱光がカメラレンズ36の方向とならないことがある。例えば、検査対象のレンズのカーブに沿って照明光を入射させる等、照明光の角度や位置をレンズの真横から変えた方がより異物等からの散乱光を捉え易い場合がある。そこで、第2形態のレンズ外観検査装置101では、各照射ユニット123の位置や傾斜角が変更可能とされることで、上述の眼鏡レンズLを始めとする様々なレンズにおける異物等の捕捉精度、即ち検査の精度がより一層向上されるものである。
以上のことから、制御装置12は、上述の眼鏡レンズLに係るレンズ特性値を受信した場合には、狭角光照射手段107の各照射ユニット123を急傾斜状態とすることとなる。
Then, the control means 12 determines whether or not an abnormality has occurred in the stored inspection composite image E, and if it is determined that an abnormality has occurred, performs an abnormality occurrence notification process ( Step S9).
FIG. 47 shows a binarized version of the inspection composite image E generated from the inspection image generated by the illumination in the horizontal state (threshold value here / total number of steps of each luminance: 77/256), and is shown in FIG. 48. Shows a similarly binarized inspection composite image E generated from an inspection image generated by lighting in a gently inclined state, and FIG. 49 shows an inspection generated from an inspection image generated by lighting in a steeply inclined state. The composite image E is similarly binarized.
Comparing these, although they are captured in any of the inspection composite images E, there are scattered lights F1 and F1 such as foreign substances that are the largest and clearly confirmed in those of FIG. 49, and FIGS. 47 and 48. In the above-mentioned spectacle lens L, since scattered light F2 and F2 such as foreign matter that are not captured by the object are present in the object of FIG. Illumination at a position 10 mm above, an inclination angle of -6 °) is optimal.
That is, depending on the lens to be inspected (especially for a lens having a relatively deep curve such as a spectacle lens), when the illumination light is irradiated in the horizontal direction, the scattered light due to a foreign substance or the like does not become the direction of the camera lens 36. Sometimes. For example, it may be easier to capture scattered light from a foreign substance or the like by changing the angle or position of the illumination light from the side of the lens, such as incident the illumination light along the curve of the lens to be inspected. Therefore, in the lens appearance inspection device 101 of the second form, the position and the tilt angle of each irradiation unit 123 can be changed, so that the accuracy of capturing foreign matter and the like in various lenses including the above-mentioned spectacle lens L can be improved. That is, the accuracy of the inspection is further improved.
From the above, when the control device 12 receives the lens characteristic value related to the above-mentioned spectacle lens L, the control device 12 puts each irradiation unit 123 of the narrow-angle light irradiation means 107 into a steeply inclined state.

制御手段12は、検査用合成画像Eに対する判定処理ないし異常発生報知処理が完了すると、狭角光照射手段7に対して消灯を指令すると共に、搬送手段により眼鏡レンズLを搬出し(ステップS10)、次の検査対象としての眼鏡レンズLが存在する場合には、以上の処理を繰り返す(Return To Start)。
尚、第2形態のレンズ外観検査装置101は、適宜、第1形態のレンズ外観検査装置1と同様な変更例を有する。
When the determination process or the abnormality occurrence notification process for the composite image E for inspection is completed, the control means 12 commands the narrow-angle light irradiation means 7 to turn off the light and carries out the spectacle lens L by the transport means (step S10). If the spectacle lens L as the next inspection target is present, the above processing is repeated (Return To Start).
The lens appearance inspection device 101 of the second form has a modification similar to that of the lens appearance inspection device 1 of the first form, as appropriate.

≪効果等≫
以上のレンズ外観検査装置101は、検査対象レンズである眼鏡レンズLに対して、その眼鏡レンズLの光軸を囲む正八角形の隣接する2辺にそれぞれ相当する部分を占める4箇所の第1〜第4照明部分M1〜M4から、指向角が30°以下の光である狭角光を切替えて照射可能である狭角光照射手段107と、眼鏡レンズLが含まれる第1〜第4検査用画像C1〜C4を撮像するカメラ8と、第1〜第4検査用画像C1〜C4を処理する制御手段12と、を備えており、カメラ8は、狭角光照射手段7による4個の第1〜第4照明部分M1〜M4における照射(ステップS4)毎に、第1〜第4検査用画像C1〜C4を撮像し(ステップS5)、制御手段12は、第1〜第4照明部分M1〜M4の照射毎に撮像した第1〜第4検査用画像C1〜C4中の眼鏡レンズL撮像部分における、第1〜第4照明部分M1〜M4が映り込んだ部分を含む第1〜第4画像部分N1〜N4をそれぞれ消去して、4枚の第1〜第4検査用マスク画像D1〜D4を生成する一部消去処理(ステップS6)と、4枚の第1〜第4検査用マスク画像D1〜D4を合成して1枚の検査用合成画像Eを生成する合成処理(ステップS8)と、を行う。
よって、処理量が比較的に少なく、検査精度に優れたレンズ外観検査装置101が提供される。
≪Effects, etc.≫
The lens appearance inspection device 101 described above has four first to first lenses that occupy parts corresponding to two adjacent sides of a regular octagon surrounding the optical axis of the spectacle lens L with respect to the spectacle lens L to be inspected. For the first to fourth inspections including the narrow angle light irradiating means 107 capable of switching and irradiating the narrow angle light having a directing angle of 30 ° or less from the fourth illumination portions M1 to M4, and the spectacle lens L. A camera 8 for capturing images C1 to C4 and a control means 12 for processing the first to fourth inspection images C1 to C4 are provided, and the camera 8 is provided with four first lenses by the narrow-angle light irradiation means 7. For each irradiation (step S4) in the first to fourth illumination portions M1 to M4, the first to fourth inspection images C1 to C4 are imaged (step S5), and the control means 12 uses the first to fourth illumination portions M1. 1st to 4th including the part where the 1st to 4th illumination portions M1 to M4 are reflected in the spectacle lens L image pickup portion in the 1st to 4th inspection images C1 to C4 imaged for each irradiation of M4. Partial erasing process (step S6) for erasing the image portions N1 to N4 to generate four first to fourth inspection mask images D1 to D4, and four first to fourth inspection masks. A compositing process (step S8) is performed in which the images D1 to D4 are combined to generate one composite image E for inspection.
Therefore, the lens appearance inspection device 101 having a relatively small amount of processing and excellent inspection accuracy is provided.

更に、眼鏡レンズLに対する狭角光照射手段107の位置を変更するベース122及びレール125と、傾斜角を変更する傾斜角調節手段127と、を備えている。よって、様々な眼鏡レンズLのそれぞれに適した位置や方向の狭角光により照明が行われることとなり、かように位置や方向の調節された照明を用いても、映り込みが一部消去処理や合成処理等により回避され、検査精度がより一層向上することとなる。
尚、狭角光を照射する狭角光照射手段107に代えて、広角光を照射する広角光照射手段が用いられた場合であっても、広角光の強度は周辺部より中心部の方が高いものであるから、やはり照明の位置や方向に係る調節は、同様の意味を有するものと言える。
Further, it includes a base 122 and a rail 125 for changing the position of the narrow angle light irradiation means 107 with respect to the spectacle lens L, and an inclination angle adjusting means 127 for changing the inclination angle. Therefore, the illumination is performed by the narrow-angle light of the position and the direction suitable for each of the various spectacle lenses L, and even if the illumination whose position and the direction are adjusted in this way is used, the reflection is partially erased. It is avoided by the synthesis process and the like, and the inspection accuracy is further improved.
Even when a wide-angle light irradiating means that irradiates wide-angle light is used instead of the narrow-angle light irradiating means 107 that irradiates narrow-angle light, the intensity of the wide-angle light is higher in the central portion than in the peripheral portion. Since it is expensive, it can be said that the adjustment related to the position and direction of the illumination has the same meaning.

又、狭角光照射手段107は、眼鏡レンズLを囲む正八角形であり、狭角光照射手段107における第1〜第4照明部分M1〜M4は、その正八角形を均等に分割した場合の各四半部分であり、制御手段12の一部消去処理(ステップS6)における消去対象部分は、第1〜第4検査用画像C1〜C4をその中心から発する放射方向の直線で均等に分割した場合の第1〜第4検査用画像C1〜C4の第1〜第4画像部分N1〜N4である。
よって、分割照明や一部消去処理が均等な部分を対象とすることにより円滑で正確に行われることとなり、合成処理も消去対象部分の重複しない第1〜第4検査用マスク画像D1〜D4が対象となり円滑で正確に行われることとなって、処理量や処理時間の比較的に少ない正確な外観検査が確保される。
Further, the narrow-angle light irradiating means 107 is a regular octagon surrounding the spectacle lens L, and the first to fourth illuminating portions M1 to M4 in the narrow-angle light irradiating means 107 are each when the regular octagon is evenly divided. It is a quarter part, and the part to be erased in the partial erasing process (step S6) of the control means 12 is a case where the first to fourth inspection images C1 to C4 are evenly divided by a straight line in the radial direction emanating from the center thereof. The first to fourth image portions N1 to N4 of the first to fourth inspection images C1 to C4.
Therefore, the divided illumination and the partial erasing process can be performed smoothly and accurately by targeting the uniform portion, and the compositing process also performs the first to fourth inspection mask images D1 to D4 in which the erased target portions do not overlap. It becomes a target and is performed smoothly and accurately, and an accurate visual inspection with a relatively small amount of processing amount and processing time is ensured.

加えて、レンズ保持機構106は、複数(8個)のフック121(レンズ保持具)を備えており、狭角光照射手段107の照射ユニット123が形成する正多角形(正八角形)の頂点に相当する位置(頂点の内方,頂点の眼鏡レンズL側,頂点と眼鏡レンズLの間)に配置されている。
よって、レンズ保持機構106は、照射ユニット123からの照明光をより妨げ難くなり、照明光が一層適切に眼鏡レンズLに到達することとなって、検査の精度が更に向上する。
In addition, the lens holding mechanism 106 includes a plurality of (8) hooks 121 (lens holders) at the vertices of a regular polygon (regular octagon) formed by the irradiation unit 123 of the narrow angle light irradiation means 107. It is arranged at a corresponding position (inside of the apex, on the spectacle lens L side of the apex, between the apex and the spectacle lens L).
Therefore, the lens holding mechanism 106 is less likely to interfere with the illumination light from the irradiation unit 123, and the illumination light reaches the spectacle lens L more appropriately, further improving the accuracy of the inspection.

1,101・・レンズ外観検査装置、2・・エンクロージャ、7,107・・狭角光照射手段(照明光照射手段)、8・・カメラ、12・・制御手段、20・・リフト(距離調整手段)、24・・狭角光LED、36・・カメラレンズ(物体側テレセントリックレンズ又は両側テレセントリックレンズ)、122・・ベース(照明光照射手段の位置変更に係る照射変更手段)、125・・レール(照明光照射手段の位置変更に係る照射変更手段)、127・・傾斜角調節手段(照明光照射手段の傾斜角変更に係る照射変更手段)、C1〜C4・・第1〜第4検査用画像、D1〜D4・・第1〜第4検査用マスク画像、E・・検査用合成画像、L・・眼鏡レンズ(検査対象レンズ)、M1〜M4・・第1〜第4照明部分、N1〜N4・・第1〜第4画像部分(映り込み部分含有)、S6・・一部消去処理、S8・・合成処理。 1,101 ... Lens appearance inspection device, 2 ... Enclosure, 7,107 ... Narrow angle light irradiation means (illumination light irradiation means), 8 ... Camera, 12 ... Control means, 20 ... Lift (distance adjustment) Means), 24 ... Narrow-angle optical LED, 36 ... Camera lens (object-side telecentric lens or both-side telecentric lens), 122 ... Base (irradiation changing means related to position change of illumination light irradiation means), 125 ... Rail (Illumination changing means related to changing the position of the illumination light irradiation means) 127 ... Inclined angle adjusting means (irradiation changing means related to changing the tilt angle of the illumination light irradiation means), C1 to C4 ... For the first to fourth inspections Image, D1 to D4 ... Mask image for 1st to 4th inspection, E ... Composite image for inspection, L ... Eye lens (lens to be inspected), M1 to M4 ... 1st to 4th illumination part, N1 ~ N4 ... 1st to 4th image parts (including reflected parts), S6 ... Partial erasing processing, S8 ... Combining processing.

Claims (8)

検査対象レンズに対して、当該検査対象レンズの光軸を囲む囲み線の一部にそれぞれ相当する部分を占める複数の照明部分から、照明光を切替えて照射可能である照明光照射手段と、
前記検査対象レンズに対する前記照明光照射手段の、前記光軸の方向における位置、及び傾斜角の少なくとも一方を変更する照射変更手段と、
前記検査対象レンズが含まれる検査用画像を撮像するカメラと、
前記検査用画像を処理する制御手段と、
を備えており、
前記カメラは、前記照明光照射手段による複数の前記照明部分における照射毎に前記検査用画像を撮像し、
前記制御手段は、
前記検査対象レンズの特性値であるレンズ特性値を含むレンズデータベースを記憶する記憶手段を有しており、
前記検査用画像の撮像時に、前記レンズデータベースを参照して得た前記レンズ特性値に対応する前記照明光照射手段の前記位置及び前記傾斜角の少なくとも一方を抽出して、その決定された前記位置及び前記傾斜角の少なくとも一方となるように、前記照射変更手段により前記照明光照射手段の前記位置及び前記傾斜角の少なくとも一方を変更させる照射変更処理と、
複数の前記照明部分の照射毎に撮像した前記検査用画像中の前記検査対象レンズ撮像部分における、前記照明部分が映り込んだ部分をそれぞれ消去して、複数の検査用マスク画像を生成する一部消去処理と、
複数の前記検査用マスク画像を合成して検査用合成画像を生成する合成処理と、
を行う
ことを特徴とするレンズ外観検査装置。
Illumination light irradiation means capable of switching and irradiating the illumination light from a plurality of illumination portions occupying a portion corresponding to a part of the enclosing line surrounding the optical axis of the inspection target lens with respect to the inspection target lens.
An irradiation changing means for changing at least one of the position and the tilt angle of the illumination light irradiating means with respect to the lens to be inspected in the direction of the optical axis.
A camera that captures an inspection image that includes the lens to be inspected,
A control means for processing the inspection image and
Equipped with
The camera captures the inspection image for each irradiation in the plurality of illumination portions by the illumination light irradiation means.
The control means is
It has a storage means for storing a lens database including a lens characteristic value which is a characteristic value of the lens to be inspected.
At the time of capturing the inspection image, at least one of the position and the tilt angle of the illumination light irradiation means corresponding to the lens characteristic value obtained by referring to the lens database is extracted, and the determined position is obtained. And the irradiation change process of changing at least one of the position and the inclination angle of the illumination light irradiation means by the irradiation change means so as to be at least one of the inclination angles.
A part of generating a plurality of inspection mask images by erasing each part of the inspection target lens image pickup portion in which the illumination portion is reflected in the inspection image captured for each irradiation of the plurality of illumination portions. Erase processing and
A compositing process that synthesizes a plurality of the inspection mask images to generate an inspection composite image, and
A lens visual inspection device characterized by performing.
前記照明光は、指向角が30°以下の狭角光である
ことを特徴とする請求項1に記載のレンズ外観検査装置。
The lens appearance inspection device according to claim 1, wherein the illumination light is a narrow-angle light having a directivity angle of 30 ° or less.
前記照明光照射手段の前記傾斜角に係る前記照射変更手段は、アクチュエータにより形成される
ことを特徴とする請求項1又は請求項2に記載のレンズ外観検査装置。
The lens appearance inspection device according to claim 1 or 2, wherein the irradiation changing means relating to the tilt angle of the illumination light irradiating means is formed by an actuator.
前記照明光照射手段における前記囲み線は、前記検査対象レンズを囲む円環又は正多角形であり、
前記照明光照射手段における前記照明部分は、前記円環又は前記正多角形を均等に分割した場合の前記円環の部分又は前記正多角形の部分であり、
前記制御手段の前記一部消去処理における消去対象部分は、前記検査用画像をその中心から発する放射方向の直線で均等に分割した場合の前記検査用画像の部分である
ことを特徴とする請求項1から請求項3の何れかに記載のレンズ外観検査装置。
The enclosing line in the illumination light irradiation means is a ring or a regular polygon surrounding the lens to be inspected.
The illumination portion in the illumination light irradiation means is a portion of the circle or a portion of the regular polygon when the ring or the regular polygon is evenly divided.
The claim is characterized in that the portion to be erased in the partial erasing process of the control means is a portion of the inspection image when the inspection image is evenly divided by a straight line in the radial direction emanating from the center thereof. The lens appearance inspection apparatus according to any one of 1 to 3.
前記カメラは、前記検査対象レンズに向けられたカメラレンズを有しており、
前記カメラレンズは、物体側テレセントリックレンズ又は両側テレセントリックレンズである
ことを特徴とする請求項1から請求項4の何れかに記載のレンズ外観検査装置。
The camera has a camera lens directed at the lens to be inspected.
The camera lens is a lens visual inspection apparatus according to any one of claims 1 to 4, characterized in that the object-side telecentric lens or double telecentric lens.
更に、内面が反射防止面とされている箱体を備えており、
前記箱体は、孔を有しており、前記検査対象レンズを挟んで前記カメラと反対側に前記孔が位置するように配置されている
ことを特徴とする請求項1から請求項5の何れかに記載のレンズ外観検査装置。
Furthermore, it is equipped with a box body whose inner surface is an antireflection surface.
The box body has a bore, one of claims 1 to 5, wherein the hole on the opposite side of the camera across the inspected lens is arranged to be positioned The lens appearance inspection device described in Crab.
更に、前記検査対象レンズ及び前記照明光照射手段、並びに、前記カメラを覆うエンクロージャを備えており、
前記エンクロージャの内面は、前記照明光の反射が防止される反射防止面とされている
ことを特徴とする請求項1から請求項6の何れかに記載のレンズ外観検査装置。
Further, the lens to be inspected, the illumination light irradiation means, and the enclosure covering the camera are provided.
Inner surface of the enclosure, a lens visual inspection apparatus according to any one of claims 1 to 6, characterized in that the reflection of the illumination light is an anti-reflection surface is prevented.
更に、前記検査対象レンズと前記カメラとの間の距離を調整する距離調整手段を備えている
ことを特徴とする請求項1から請求項7の何れかに記載のレンズ外観検査装置。
Furthermore, the lens visual inspection apparatus according to claim 7 that claim 1, characterized in that includes a distance adjusting means for adjusting the distance between said inspected lens camera.
JP2017186863A 2016-09-30 2017-09-27 Lens appearance inspection device Active JP6973783B2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2016194447 2016-09-30
JP2016194447 2016-09-30

Publications (2)

Publication Number Publication Date
JP2018059927A JP2018059927A (en) 2018-04-12
JP6973783B2 true JP6973783B2 (en) 2021-12-01

Family

ID=61909825

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017186863A Active JP6973783B2 (en) 2016-09-30 2017-09-27 Lens appearance inspection device

Country Status (1)

Country Link
JP (1) JP6973783B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101979805B1 (en) * 2018-05-28 2019-05-17 주식회사 세코닉스 Lens Inspection Device
KR102880184B1 (en) * 2024-02-20 2025-11-03 신병훈 Inspection apparatus for lenz

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE4236928A1 (en) * 1992-10-31 1994-05-05 Bodenseewerk Geraetetech Sequential testing of image information - involves evaluation of image information, optimising image representation, and testing and classifying optimised information
JP2002107266A (en) * 2000-09-28 2002-04-10 Kyocera Corp Apparatus for inspecting appearance of ferrule for optical fiber and appearance inspection method using the same
JP2015227793A (en) * 2014-05-30 2015-12-17 コニカミノルタ株式会社 Inspection device of optical components and inspection method thereof
EP3204188B1 (en) * 2014-10-07 2021-09-01 Shamir Optical Industry Ltd. Methods and apparatus for inspection and optional rework of blocked ophthalmic lenses
CN105115989B (en) * 2015-10-09 2018-02-23 爱丁堡(南京)光电设备有限公司 A kind of automatic checkout equipment and detection method of contact lenses defect

Also Published As

Publication number Publication date
JP2018059927A (en) 2018-04-12

Similar Documents

Publication Publication Date Title
JP5133626B2 (en) Surface reflection characteristic measuring device
JP6829828B2 (en) Lens appearance inspection device
JP3855756B2 (en) 3D color shape detection device and 3D scanner
EP2193311B1 (en) Method of illuminating a 3d object with a modified 2d image of the 3d object by means of a projector, and projector suitable for performing such a method
JP2019100930A (en) Inspection system and inspection method
US20130258324A1 (en) Surface defect detecting apparatus and method of controlling the same
JPH1090198A (en) Defect detection method and irradiation unit
CN110261408B (en) Display module defect detection device and method
JP2005070025A (en) Light source testing system and method
JP6973783B2 (en) Lens appearance inspection device
CN107843335B (en) Target surface veiling glare illuminance measurement device and measurement method
TWI839774B (en) System, method and apparatus for macroscopic inspection of reflective specimens
JP2021173644A (en) Lens appearance inspection device and machine learning device
JP6935262B2 (en) Visual inspection equipment
KR101447857B1 (en) Particle inspectiing apparatus for lens module
JP6746057B2 (en) Lens visual inspection device
JP6381865B2 (en) Inspection apparatus and inspection method
KR101153246B1 (en) Substrate inspection method
US11961210B2 (en) System, method and apparatus for macroscopic inspection of reflective specimens
JPH10274515A (en) Curved surface inspection method and inspection camera unit
KR102233781B1 (en) Apparatus for examining existence of ir filter within camera module and inspection method using the same
JP4871403B2 (en) 3D image scanner
JP2016118518A (en) Appearance inspection device
KR20210037288A (en) System for image synthesis using photometric stereo
JPH07311030A (en) Painted surface property measuring device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200604

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210407

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210511

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210708

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20211005

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20211007

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20211026

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211027

R150 Certificate of patent or registration of utility model

Ref document number: 6973783

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150