JPH1130509A - Image-processing and measuring method of casting sand and device therefor - Google Patents
Image-processing and measuring method of casting sand and device thereforInfo
- Publication number
- JPH1130509A JPH1130509A JP9200978A JP20097897A JPH1130509A JP H1130509 A JPH1130509 A JP H1130509A JP 9200978 A JP9200978 A JP 9200978A JP 20097897 A JP20097897 A JP 20097897A JP H1130509 A JPH1130509 A JP H1130509A
- Authority
- JP
- Japan
- Prior art keywords
- image processing
- sand
- light
- image
- glass plate
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Length Measuring Devices By Optical Means (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】この発明は、例えば鋳物砂の
研磨度合を評価するために2値化処理によって鋳物砂の
画像を処理して、その特徴量を計測するような鋳物砂の
画像処理計測法およびその装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing and measuring method for molding sand by processing an image of the molding sand by a binarization process in order to evaluate the degree of polishing of the molding sand and measuring the characteristic amount. The law and its apparatus.
【0002】[0002]
【従来の技術】一般に、鋳造に用いられた中子砂の如き
鋳物砂は再生して再び使用される。この場合、鋳型の型
ばらし後において鋳物砂を取出し、取出された鋳物砂の
塊を粉砕処理(崩壊)するため、この粉砕時に鋳物砂が
角張る。鋳物砂が角張ると充填率が低下するので、砂同
志をこすり合わせて鋳物砂を研磨する処理が施される
が、この研磨工程において鋳物砂がどの程度研磨された
のかを評価するために鋳物砂の計測が必要となる。2. Description of the Related Art Generally, foundry sand such as core sand used for casting is regenerated and reused. In this case, the molding sand is taken out after the mold is released, and the mass of the taken out molding sand is pulverized (disintegrated). Since the filling rate decreases when the foundry sand is angular, the sand is rubbed against each other to polish the foundry sand.However, in order to evaluate how much the foundry sand was polished in this polishing process, Sand measurement is required.
【0003】そこで上述の鋳物砂の計測を実行する画像
処理計測法およびその装置としては、例えば、図10に
示すような構成が考えられる。すなわち、XYステージ
91のテーブル92上に白色の紙93を敷設し、この紙
93に複数の鋳物砂94を上載する一方、画像処理用の
CCDカメラ95の下部に実体顕微鏡96および光学系
としてのマイクロレンズ97を取付け、光源98からの
光を円環状のリング照明器99を介して紙93上の鋳物
砂94に投光し、CCDカメラ95で撮像した画像を画
像処理装置100に出力すると共に、モニタとしての表
示部101に表示すべく構成した手段である。Therefore, as an image processing measurement method and an apparatus for performing the above-described molding sand measurement, for example, a configuration as shown in FIG. 10 can be considered. That is, a white paper 93 is laid on a table 92 of an XY stage 91, and a plurality of molding sands 94 are placed on the paper 93, while a stereoscopic microscope 96 and an optical system as an optical system are provided below a CCD camera 95 for image processing. A micro lens 97 is attached, the light from the light source 98 is projected on the molding sand 94 on the paper 93 via the annular ring illuminator 99, and the image captured by the CCD camera 95 is output to the image processing apparatus 100. , Means configured to be displayed on the display unit 101 as a monitor.
【0004】この構成によれば、まずXYステージ91
を動かして、計測したい鋳物砂94の画像を表示部10
1に表示し、次にキー入力によりその画像を画像処理装
置100に取込み、次に濃淡画像の輪郭と2値化画像の
輪郭とが一致するように両者を比較しながら2値化しき
い値を調整し、その後、画像処理装置100内のコンピ
ュータが輪郭を認識して、特徴量としての縦横比(短辺
÷長辺)を計測する方法である。According to this configuration, first, the XY stage 91
To display the image of the casting sand 94 to be measured on the display unit 10.
1, the image is taken into the image processing apparatus 100 by key input, and then the binarization threshold value is compared while comparing the outline of the grayscale image and the outline of the binarized image so that they match. In this method, the computer in the image processing apparatus 100 recognizes the contour, and measures the aspect ratio (short side ÷ long side) as a feature amount.
【0005】しかし、このような計測法およびその装置
にあっては、次の如き各種の問題点があった。すなわ
ち、上述のリング照明器99からのリング光を鋳物砂9
4および白色の紙93に投光すると、その入射光は非直
角の斜光となり、また紙93の表面が不均一であること
等に起因して、反射面(紙93の表面および鋳物砂94
の表面参照)からCCDカメラ95への受光は弱い乱反
射光となる。However, such a measuring method and its apparatus have various problems as follows. That is, the ring light from the ring illuminator 99 described above is
4 and white paper 93, the incident light becomes a non-perpendicular oblique light, and the reflection surface (the surface of the paper 93 and the molding sand 94) is formed due to the uneven surface of the paper 93.
The light received from the CCD camera 95 is weakly diffused light.
【0006】このため、得られる画像は対象としての鋳
物砂94の色の情報となり、鋳物砂94と、その背景と
しての紙93との輪郭の明瞭さは鋳物砂94の色に依存
し、この鋳物砂94としては黒色、茶色、白色、半透明
などの各種の砂が存在するので、砂の色によって、背景
(紙93参照)の輝度と鋳物砂94の輝度との差(コン
トラスト)が小さくなり、正確な鋳物砂94の輪郭を得
ることができず、例えば図11に示すような背景画像1
02と砂画像103との濃淡画像となる。For this reason, the obtained image is information on the color of the foundry sand 94, and the clarity of the contour between the foundry sand 94 and the paper 93 as its background depends on the color of the foundry sand 94. Since there are various types of sand such as black, brown, white, and translucent as the molding sand 94, the difference (contrast) between the luminance of the background (see the paper 93) and the luminance of the molding sand 94 is small depending on the color of the sand. Therefore, an accurate contour of the foundry sand 94 cannot be obtained, and for example, a background image 1 as shown in FIG.
02 and the sand image 103.
【0007】また鋳物砂94の色により砂の輝度、背景
の輝度、両者の差(コントラスト)のばらつきが大き
く、2値化しきい値の設定が困難で、濃淡画像(図11
参照)の輪郭と2値化画像の輪郭とが一致するように両
者を比較しながら2値化しきい値を調整する作業に長時
間を有し、ロスタイムが大となって、計測に時間がかか
る問題点があり、仮りに上述のロスタイムをなくす目的
で2値化しきい値を固定すると、鋳物砂94の色によっ
ては濃淡画像と2値化画像とが不一致となる計測上致命
的な問題点があった。[0007] Further, the brightness of the sand, the brightness of the background, and the difference (contrast) between the two differ greatly depending on the color of the foundry sand 94, and it is difficult to set a binarization threshold value.
Reference) and the outline of the binarized image are compared so that the outline of the binarized image matches the outline, and the work of adjusting the binarization threshold has a long time, the loss time is large, and the measurement takes time. If the binarization threshold is fixed for the purpose of eliminating the above-mentioned loss time, there is a fatal problem in measurement that the grayscale image and the binary image do not match depending on the color of the molding sand 94. there were.
【0008】一方、特開平5−20428号公報に記載
のように、被測物をビデオカメラで撮像し、このビデオ
カメラが出力する画像信号を2値化処理およびマスク処
理して、被測物の粒子数や面積を計測する測定方法が既
には発明されている。この技術思想を各種の色や透明度
が異なる鋳物砂の画像処理計測法に適用しても、上述同
様の問題点が発生する。On the other hand, as described in JP-A-5-20428, an object to be measured is imaged by a video camera, and an image signal output from the video camera is subjected to binarization processing and mask processing to obtain an image of the object to be measured. A measuring method for measuring the number and area of particles has already been invented. Even if this technical concept is applied to an image processing and measuring method for molding sand having various colors and different degrees of transparency, the same problem as described above occurs.
【0009】[0009]
【発明が解決しようとする課題】この発明の請求項1記
載の発明は、写真撮影に見られる逆光による対象の暗化
現象に着目し、特異な反射板上に鋳物砂を配設し、反射
板に対して直角に画像処理カメラを配設し、このカメラ
の光軸と平行な光を反射板および鋳物砂に光源から投光
し、鋳物砂および反射板からの反射光を受けて画像処理
すべく構成することで、鋳物砂の透明度や色の差異に一
切影響されることなく、砂と背景との正確な輪郭を得る
ことができる鋳物砂の画像処理計測法の提供を目的とす
る。SUMMARY OF THE INVENTION The invention according to claim 1 of the present invention focuses on the phenomenon of darkening of an object due to backlight seen in photographing, and arranges a molding sand on a unique reflector to reflect the light. An image processing camera is arranged at right angles to the plate, and light parallel to the optical axis of this camera is projected from the light source to the reflector and the molding sand, and the reflected light from the molding sand and the reflecting plate is received to perform image processing. It is an object of the present invention to provide an image processing and measuring method of a molding sand that can obtain an accurate contour between the sand and the background without being affected by a difference in the transparency and color of the molding sand at all.
【0010】この発明の請求項2記載の発明は、上記請
求項1記載の発明の目的と併せて、上述の反射板をガラ
ス板に設定することで、ガラス板が高い反射性と平滑面
とを有することにより、鋳物砂の輝度と背景(ガラス
板)の輝度との差(コントラスト)が大きく、より一層
正確な輪郭を確保することができると共に、プラスチッ
ク板のようなキズもないため、管理が容易な鋳物砂の画
像処理計測法の提供を目的とする。According to the invention of claim 2 of the present invention, in addition to the object of the invention of claim 1, by setting the above-mentioned reflecting plate to a glass plate, the glass plate has high reflectivity and a smooth surface. Has a large difference (contrast) between the brightness of the foundry sand and the brightness of the background (glass plate), so that a more accurate contour can be ensured. It is an object of the present invention to provide an image processing and measuring method for molding sand which is easy to perform.
【0011】この発明の請求項3記載の発明は、上記請
求項2記載の発明の目的と併せて、上述のガラス板をカ
メラの焦点深度より深い厚さに設定することで、ガラス
板の下部に存在する金属反射板等の物体の悪影響を受け
ない鋳物砂の画像処理計測法の提供を目的とする。According to a third aspect of the present invention, in addition to the object of the second aspect, by setting the thickness of the above-mentioned glass plate to be greater than the depth of focus of the camera, It is an object of the present invention to provide an image processing and measuring method for molding sand which is not adversely affected by an object such as a metal reflecting plate existing in an object.
【0012】この発明の請求項4記載の発明は、上記請
求項2記載の発明の目的と併せて、上述のガラス板の下
部に金属反射板を配設することで、反射光のより高い反
射量が得られ、コントラストがさらに良好となる鋳物砂
の画像処理計測法の提供を目的とする。According to a fourth aspect of the present invention, in addition to the object of the second aspect, a metal reflection plate is provided below the glass plate, so that a higher reflection of reflected light is achieved. It is an object of the present invention to provide an image processing and measuring method for molding sand in which the amount is obtained and the contrast is further improved.
【0013】この発明の請求項5記載の発明は、上記請
求項1記載の発明の目的と併せて、上述の画像処理は鋳
物砂の輪郭を検出することで、砂と背景との輪郭を確実
に検出することができる鋳物砂の画像処理計測法の提供
を目的とする。According to a fifth aspect of the present invention, in addition to the object of the first aspect, the image processing detects the contour of the foundry sand so that the contour between the sand and the background can be reliably detected. It is an object of the present invention to provide an image processing and measuring method for foundry sand which can be detected at a time.
【0014】この発明の請求項6記載の発明は、上記請
求項5記載の発明の目的と併せて、鋳物砂と背景との関
係で2値化用のしきい値を設定することで、外乱光の影
響を受けにくく、精度のよい計測を実行することができ
る鋳物砂の画像処理法の提供を目的とする。According to a sixth aspect of the present invention, in addition to the object of the fifth aspect, a threshold value for binarization is set based on the relationship between the foundry sand and the background, so that the disturbance is improved. An object of the present invention is to provide an image processing method for molding sand that is not easily affected by light and can perform accurate measurement.
【0015】この発明の請求項7記載の発明は、上記請
求項1記載の発明の目的と併せて、上述の光源は光度調
整機能をを有することで、ハロゲンランプ等の光源の劣
化に対応できて、高精度の計測を行なうことができる鋳
物砂の画像処理計測法の提供を目的とする。According to a seventh aspect of the present invention, in addition to the object of the first aspect, the light source has a luminous intensity adjusting function so that it can cope with deterioration of a light source such as a halogen lamp. It is another object of the present invention to provide an image processing and measuring method for molding sand capable of performing highly accurate measurement.
【0016】この発明の請求項8記載の発明は、光の透
過性および平滑面を有して、その上部に鋳物砂が配設さ
れるガラス板と、このガラス板に直角に配設された画像
処理カメラと、このカメラの光軸と平行な光をガラス板
および鋳物砂に投光する光源と、ガラス板の下部に配設
された金属反射板とを備えることで、鋳物砂の透明度や
色の差異にかかわらず、正確な輪郭を得ることができ、
また上述のコントラストが極めて大となって鮮明な輪郭
を得ることができる鋳物砂の画像処理計測装置の提供を
目的とする。According to an eighth aspect of the present invention, there is provided a glass plate having a light transmitting property and a smooth surface, on which casting sand is disposed, and a glass plate disposed at right angles to the glass plate. By providing an image processing camera, a light source that projects light parallel to the optical axis of the camera onto a glass plate and molding sand, and a metal reflecting plate disposed below the glass plate, the transparency of the molding sand and Regardless of the color difference, you can get accurate contours,
Another object of the present invention is to provide an image processing and measuring apparatus for molding sand in which the above-mentioned contrast is extremely large and a clear contour can be obtained.
【0017】この発明の請求項9記載の発明は、上記請
求項8記載の発明の目的と併せて、上述の画像処理は鋳
物砂の輪郭を検出することで、砂と背景との輪郭を確実
に検出することができる鋳物砂の画像処理計測装置の提
供を目的とする。According to a ninth aspect of the present invention, in addition to the object of the eighth aspect, the image processing detects the contour of the foundry sand to ensure the contour between the sand and the background. It is an object of the present invention to provide an image processing and measuring apparatus for molding sand that can be detected at a time.
【0018】[0018]
【課題を解決するための手段】この発明の請求項1記載
の発明は、2値化処理による鋳物砂の画像処理計測法で
あって、光の透過性および平滑面を有する反射板上に鋳
物砂を配設し、上記反射板に直角に画像処理カメラを配
設し、該画像処理カメラの光軸と平行な光を反射板およ
び鋳物砂に光源から投光し、鋳物砂および反射板からの
反射光を受けて画像処理する鋳物砂の画像処理計測法で
あることを特徴とする。The invention according to claim 1 of the present invention relates to an image processing and measuring method for molding sand by binarization processing, wherein the casting sand is cast on a reflecting plate having a light transmitting and smooth surface. Arranging sand, arranging an image processing camera at right angles to the reflection plate, projecting light parallel to the optical axis of the image processing camera from the light source to the reflection plate and the molding sand, and from the molding sand and the reflection plate. It is an image processing and measuring method for molding sand for which image processing is performed by receiving reflected light.
【0019】この発明の請求項2記載の発明は、上記請
求項1記載の発明の構成と併せて、上記反射板をガラス
板に設定した鋳物砂の画像処理計測法であることを特徴
とする。According to a second aspect of the present invention, there is provided an image processing and measuring method for molding sand in which the reflecting plate is set on a glass plate, in addition to the configuration of the first aspect of the present invention. .
【0020】この発明の請求項3記載の発明は、上記請
求項2記載の発明の構成と併せて、上記ガラス板をカメ
ラの焦点深度より深い厚さに設定した鋳物砂の画像処理
計測法であることを特徴とする。According to a third aspect of the present invention, there is provided an image processing and measuring method for molding sand in which the glass plate is set to a thickness deeper than the depth of focus of a camera, together with the configuration of the second aspect. There is a feature.
【0021】この発明の請求項4記載の発明は、上記請
求項2記載の発明の構成と併せて、上記ガラス板の下部
に金属反射板を配設した鋳物砂の画像処理計測法である
ことを特徴とする。According to a fourth aspect of the present invention, there is provided an image processing and measuring method for molding sand in which a metal reflecting plate is disposed below the glass plate in combination with the configuration of the second aspect. It is characterized by.
【0022】この発明の請求項5記載の発明は、上記請
求項1記載の発明の構成と併せて、上記画像処理は鋳物
砂の輪郭を検出する鋳物砂の画像処理計測法であること
を特徴とする。According to a fifth aspect of the present invention, in addition to the configuration of the first aspect, the image processing is an image processing and measuring method of molding sand for detecting a contour of the molding sand. And
【0023】この発明の請求項6記載の発明は、上記請
求項5記載の発明の構成と併せて、上記鋳物砂の背景と
の関係で2値化用のしきい値を設定する鋳物砂の画像処
理計測法であることを特徴とする。According to a sixth aspect of the present invention, in addition to the structure of the fifth aspect of the present invention, a molding sand for setting a threshold value for binarization in relation to the background of the casting sand is provided. It is an image processing measurement method.
【0024】この発明の請求項7記載の発明は、上記請
求項1記載の発明の構成と併せて、上記光源は光度調整
機能を有する鋳物砂の画像処理計測法であることを特徴
とする。According to a seventh aspect of the present invention, in addition to the configuration of the first aspect, the light source is an image processing and measuring method for molding sand having a luminous intensity adjusting function.
【0025】この発明の請求項8記載の発明は、2値化
処理による鋳物砂の画像処理計測装置であって、光の透
過性および平滑面を有し、その上部に鋳物砂が配設され
るガラス板と、上記ガラス板に直角に配設された画像処
理カメラと、上記画像処理カメラの光軸と平行な光をガ
ラス板および鋳物砂に投光する光源とを備え、上記ガラ
ス板の下部に金属反射板が配設された鋳物砂の画像処理
計測装置であることを特徴とする。The invention according to claim 8 of the present invention is an image processing and measuring apparatus for molding sand by binarization processing, which has a light transmitting property and a smooth surface, and the molding sand is disposed thereon. A glass plate, an image processing camera disposed at right angles to the glass plate, and a light source for projecting light parallel to the optical axis of the image processing camera onto the glass plate and the molding sand. The present invention is characterized in that it is an image processing and measuring apparatus for molding sand in which a metal reflector is provided at a lower portion.
【0026】この発明の請求項9記載の発明は、上記請
求項8記載の発明の構成と併せて、上記画像処理は鋳物
砂の輪郭を検出する鋳物砂の画像処理計測装置であるこ
とを特徴とする。According to a ninth aspect of the present invention, in addition to the configuration of the eighth aspect, the image processing is a molding sand image processing and measuring apparatus for detecting a contour of the molding sand. And
【0027】[0027]
【発明の作用及び効果】この発明の請求項1記載の発明
によれば、上述の反射板上に鋳物砂を配設し、光源から
のカメラ光軸と平行な光を反射板、鋳物砂に投光し、こ
れら反射板および鋳物砂からの反射光を受けて画像処理
する場合、平滑面を有する反射板(背景)からの反射光
は強い正反射光となり、砂はその表面形状が不均一であ
ること等により鋳物砂からの反射光は弱い乱反射光とな
るので、得られる画像は砂の色に依存しない白黒の輪郭
が明瞭な画像となる。このように、鋳物砂の透明度や色
の差異に一切影響されることなく、砂と背景との正確な
輪郭を得ることができる効果がある。According to the first aspect of the present invention, casting sand is provided on the above-mentioned reflecting plate, and light parallel to the camera optical axis from the light source is applied to the reflecting plate and the casting sand. When image processing is performed by projecting light and receiving light reflected from these reflectors and casting sand, the reflected light from the reflector (background) having a smooth surface becomes strong specular light, and the sand has an uneven surface shape. Therefore, the reflected light from the casting sand becomes weak diffusely reflected light, so that the obtained image is an image having a clear black and white contour independent of the color of the sand. As described above, there is an effect that an accurate contour between the sand and the background can be obtained without being affected by the difference in the transparency and the color of the foundry sand at all.
【0028】この発明の請求項2記載の発明によれば、
上記請求項1記載の発明の効果と併せて、上述の反射板
をガラス板に設定したので、ガラス板が高い反射性と平
滑面とを有することにより、鋳物砂の輝度と背景(ガラ
ス板)の輝度との差(コントラスト)がさらに大きくな
り、この結果、より一層正確な輪郭を確保することがで
きる効果がある。加えて、ガラス板はプラスチック板の
如きキズもないので、計測に不利なキズ等の表面状況が
画像として入力されることもないうえ、管理が容易とな
る効果がある。According to the invention described in claim 2 of the present invention,
In addition to the effect of the first aspect of the present invention, the above-mentioned reflecting plate is set to a glass plate, so that the glass plate has high reflectivity and a smooth surface, so that the brightness of the foundry sand and the background (glass plate) The difference (contrast) from the luminance of the image is further increased, and as a result, there is an effect that a more accurate contour can be secured. In addition, since the glass plate does not have a flaw like a plastic plate, the surface condition such as a flaw, which is disadvantageous for measurement, is not input as an image, and the management becomes easy.
【0029】この発明の請求項3記載の発明によれば、
上記請求項2記載の発明の効果と併せて、上述のガラス
板をカメラの焦点深度より深い厚さに設定したので、画
像処理カメラによりガラス板の下部に存在する金属反射
板やXYステージ等の物体が撮像されるのを阻止し、こ
のため、ガラス板の下部に位置する物体の悪影響を一切
受けない効果がある。According to the third aspect of the present invention,
In addition to the effect of the second aspect of the present invention, the glass plate is set to have a thickness greater than the depth of focus of the camera. An object is prevented from being imaged, so that there is an effect that the object located below the glass plate is not adversely affected at all.
【0030】この発明の請求項4記載の発明によれば、
上記請求項2記載の発明の効果と併せて、上述のガラス
板の下部に金属反射板を配設したので、反射光のより一
層高い反射量が得られて、コントラストがさらに良好と
なる効果がある。According to the invention described in claim 4 of the present invention,
In addition to the effect of the second aspect of the present invention, a metal reflection plate is provided below the glass plate, so that a higher reflection amount of reflected light can be obtained and the contrast can be further improved. is there.
【0031】この発明の請求項5記載の発明によれば、
上記請求項1記載の発明の効果と併せて、上述の画像処
理は鋳物砂の輪郭を検出するので、砂と背景との輪郭を
確実に検出することができる効果がある。According to the invention described in claim 5 of the present invention,
In addition to the effect of the first aspect of the present invention, since the above-described image processing detects the contour of the foundry sand, there is an effect that the contour of the sand and the background can be reliably detected.
【0032】この発明の請求項6に記載の発明によれ
ば、上記請求項5記載の発明の効果と併せて、鋳物砂と
背景との関係で2値化のしきい値を設定するので、外乱
光の影響を受けにくく、精度のよい計測を実行すること
ができる効果がある。According to the sixth aspect of the present invention, in addition to the effect of the fifth aspect of the present invention, the threshold value for binarization is set based on the relationship between the molding sand and the background. There is an effect that it is hardly affected by disturbance light and can execute accurate measurement.
【0033】この発明の請求項7記載の発明によれば、
上記請求項1記載の発明の効果と併せて、上述の光源
(例えばハロゲンランプ等)は光度調整機能を有するの
で、光源の経年変化や経時劣化などに起因して光源が劣
化した場合に充分対応でき、高精度の計測を行なうこと
ができる効果がある。According to the invention described in claim 7 of the present invention,
In addition to the effect of the first aspect of the present invention, the light source (for example, a halogen lamp) has a luminous intensity adjusting function, so that it can sufficiently cope with deterioration of the light source due to aging or aging of the light source. Thus, there is an effect that highly accurate measurement can be performed.
【0034】この発明の請求項8記載の発明によれば、
上述の光源は像処理カメラの光軸と平行な光をガラス板
および鋳物砂に投光し、ガラス板に直角に配設された画
像処理カメラは、表面が不均一な鋳物砂からの弱い乱反
射光と、下部に金属反射板が配設されたガラス板からの
強い正反射光とを受光、撮像する。According to the eighth aspect of the present invention,
The above-mentioned light source emits light parallel to the optical axis of the image processing camera onto the glass plate and the molding sand, and the image processing camera arranged at right angles to the glass plate has weak irregular reflection from the molding sand having an uneven surface. Light and strong specularly reflected light from a glass plate provided with a metal reflection plate below are received and imaged.
【0035】この結果、鋳物砂の透明度や色の差異にか
かわらず、正確な輪郭を得ることができ、砂の輝度と背
景の輝度との差(コントラスト)が極めて大きく、鮮明
な輪郭を確保することができる効果がある。すなわち、
ガラス板が高い反射性、平滑面を有する点と、金属反射
板の配設により、反射光のより一層高い反射量が得られ
る点とにより、上述のような鮮明な輪郭が確保できる。As a result, an accurate contour can be obtained irrespective of the difference in transparency and color of the molding sand, and the difference (contrast) between the luminance of the sand and the luminance of the background is extremely large, so that a clear contour is secured. There is an effect that can be. That is,
The sharp contour as described above can be ensured by the point that the glass plate has a high reflectivity and a smooth surface, and the point that a higher reflection amount of reflected light can be obtained by disposing the metal reflector.
【0036】この発明の請求項9記載の発明によれば、
上記請求項8記載の発明の効果と併せて、上述の画像処
理は鋳物砂の輪郭を検出するので、砂と背景との輪郭を
確実に検出することができる効果がある。According to the ninth aspect of the present invention,
In addition to the effect of the eighth aspect of the present invention, since the above-described image processing detects the contour of the foundry sand, the contour of the sand and the background can be reliably detected.
【0037】[0037]
【実施例】この発明の一実施例を以下図面に基づいて詳
述する。図面は鋳物砂の画像の画像計測法およびその装
置を示すが、まず鋳物砂の画像処理計測装置の構成につ
いて説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below in detail with reference to the drawings. The drawings show an image measuring method and an apparatus for an image of a molding sand. First, the configuration of an image processing and measuring apparatus for a molding sand will be described.
【0038】図1、図2においてこの画像処理計測装置
は、仮想座標軸の水平なX軸方向および水平なY軸方向
に移動調整可能なXYステージ1を設け、このXYステ
ージ1上に計測皿2を位置決めおよび着脱可能に配置し
ている。上述の計測皿2の内部にはガラス板3の下部に
金属反射板4が配設された上下2層構造の背景板5を配
置している。1 and 2, the image processing and measuring apparatus is provided with an XY stage 1 which can be moved and adjusted in a horizontal X-axis direction and a horizontal Y-axis direction of a virtual coordinate axis, and a measuring plate 2 is mounted on the XY stage 1. Are positioned and detachably mounted. A background plate 5 having an upper and lower two-layer structure in which a metal reflection plate 4 is disposed below a glass plate 3 is arranged inside the measurement dish 2 described above.
【0039】ここで、上述のガラス板3としては光の透
過性、平滑面、高い反射性および面の均一な無色透明の
ものを用い、その厚さL(図3参照)は後述するCCD
カメラ6の焦点深度より深く設定する。また上述の金属
反射板4としては高い反射性を有し、かつ光沢のある金
属板、例えばアルミ板、鉄板、ステンレス板等を用い
る。Here, as the above-mentioned glass plate 3, a transparent, light-transmissive, smooth surface, high reflectivity and uniform colorless and transparent surface is used, and the thickness L (see FIG. 3) of the glass plate 3 will be described later.
The depth is set to be deeper than the focal depth of the camera 6. Further, as the above-mentioned metal reflection plate 4, a highly reflective and glossy metal plate, for example, an aluminum plate, an iron plate, a stainless plate, or the like is used.
【0040】一方、上述のガラス板3と直角になるよう
にXYステージ1の上方には画像処理カメラとしてのC
CDカメラ6を取付け、このCCDカメラ6の下部には
光学系としての同軸落斜照明付きのマイクロレンズ7を
配設している。また電源8の上部にはハロゲンランプ等
にて構成される光源9を配設し、この光源9と上述のマ
イクロレンズ7の所定部との間を光ファイバ10で接続
し、光源9から光ファイバ10、マイクロレンズ7を介
して上述のガラス板3と、このガラス板3上に配設され
た複数の鋳物砂A…とにCCDカメラ6の光軸と平行な
光を投光すべく構成している。On the other hand, a C as an image processing camera is provided above the XY stage 1 so as to be perpendicular to the glass plate 3 described above.
A CD camera 6 is mounted, and a microlens 7 with coaxial falling illumination as an optical system is provided below the CCD camera 6. A light source 9 composed of a halogen lamp or the like is provided above the power supply 8, and this light source 9 is connected to a predetermined portion of the microlens 7 by an optical fiber 10, and the light source 9 10, a structure in which light parallel to the optical axis of the CCD camera 6 is projected onto the glass plate 3 and the plurality of molding sands A provided on the glass plate 3 via the microlens 7. ing.
【0041】鋳物砂Aおよびガラス板3からの反射光
を、マイクロレンズ7を介して受光、撮像するCCDカ
メラ6と上述の電源8との間は、電源ラインおよび信号
ラインを兼ねるライン11で接続されている。さらにキ
ーボード(入力操作手段)12と、制御部(制御手段)
13と、表示部(モニタ手段)14とを備える画像処理
装置15を設け、上述の電源8と制御部13との間をビ
デオアウトライン16で接続し、CCDカメラ6で撮像
された画像を表示および画像処理すべく構成している。A power supply line and a signal line 11 are connected between the CCD camera 6 for receiving and imaging the reflected light from the molding sand A and the glass plate 3 through the microlens 7 and the power supply 8 described above. Have been. Further, a keyboard (input operation means) 12 and a control unit (control means)
13 and an image processing device 15 including a display unit (monitor means) 14. The power supply 8 and the control unit 13 are connected by a video outline 16 to display an image captured by the CCD camera 6. It is configured to perform image processing.
【0042】一方、上述の光源9には調整部17を接続
し、この調整部17により光源9からの光量を調整すべ
く構成している。上述の制御部13は図2に示す如く、
プログラムを格納するROM18と、各種データを記憶
するRAM19と、CPU20とを含み、CPU20は
キーボード12からの入力信号に基づいて、電源8を介
してCCDカメラ6および光源9を駆動制御すると共
に、CCDカメラ6からビデオアウトライン16を介し
て入力される画像信号に基づいて、表示部14を制御す
る。On the other hand, an adjusting unit 17 is connected to the light source 9 described above, and the adjusting unit 17 is configured to adjust the amount of light from the light source 9. The control unit 13 described above, as shown in FIG.
It includes a ROM 18 for storing programs, a RAM 19 for storing various data, and a CPU 20. The CPU 20 controls the driving of the CCD camera 6 and the light source 9 via the power supply 8 based on an input signal from the keyboard 12, and The display unit 14 is controlled based on an image signal input from the camera 6 via the video outline 16.
【0043】上述のマイクロレンズ7は図3に示す如く
光源9からの投光をCCDカメラ6の光軸と平行な光に
変換するハーフミラー21と、このハーフミラー21の
下部および上部に配置された凸レンズ22,23とを備
え、これら各要素21〜23を一体ユニット化した光学
系である。As shown in FIG. 3, the above-mentioned micro lens 7 is arranged at a half mirror 21 for converting light emitted from the light source 9 into light parallel to the optical axis of the CCD camera 6, and at a lower portion and an upper portion of the half mirror 21. The optical system includes convex lenses 22 and 23, and these elements 21 to 23 are integrated into an integrated unit.
【0044】図4に示すように、光源9からマイクロレ
ンズ7を介して投光される光aは、鋳物砂Aおよびガラ
ス板3にて反射されて反射光となるが、平滑面を有する
ガラス板3からの反射光は強い正反射光bとなり、鋳物
砂Aはその表面形状が不均一であること等により該鋳物
砂Aからの反射光は弱い乱反射光cとなる。As shown in FIG. 4, the light a projected from the light source 9 via the microlens 7 is reflected by the casting sand A and the glass plate 3 to be reflected light, but is reflected by glass having a smooth surface. The reflected light from the plate 3 becomes strong regular reflected light b, and the light from the foundry sand A becomes weak diffusely reflected light c due to the uneven surface shape of the foundry sand A.
【0045】ところで、上述のCPU20はCCDカメ
ラ6で撮像された画像(図6参照)を取込んだ後に、し
きい値によって2値化し、2値化画像(図7参照)と成
すと共に、2値化画像より輪郭を抽出(図8参照)する
2値化&輪郭抽出手段(図5に示すフローチャートの第
10ステップS10参照)と、縦横比、真円度などの特
徴量を計測する特徴量計測手段(図5に示すフローチャ
ートの第11ステップS11参照)と、計測された複数
の縦横比の平均値と所定値(縦横比の所定値)とを比較
して研磨評価のOKまたはNGの判定を実行する研磨評
価手段(図5に示すフローチャートの第18ステップS
18参照)とを兼ねる。一方、上述の制御部13には必
要に応じてビデオキャプチャーカードを挿入接続する。The CPU 20 takes in the image (see FIG. 6) taken by the CCD camera 6 and then binarizes it with a threshold to form a binarized image (see FIG. 7). Binarization and contour extraction means (refer to the tenth step S10 in the flowchart shown in FIG. 5) for extracting a contour from the binarized image (see FIG. 8), and a feature quantity for measuring a feature quantity such as an aspect ratio and a roundness The measurement means (refer to the eleventh step S11 in the flowchart shown in FIG. 5) compares the measured average value of the plurality of aspect ratios with a predetermined value (predetermined value of the aspect ratio) to determine whether the polishing evaluation is OK or NG. Polishing evaluation means for executing (Step 18 in the flowchart shown in FIG. 5)
18). On the other hand, a video capture card is inserted and connected to the control unit 13 as needed.
【0046】このように構成した鋳物砂の画像処理計測
装置を用いて鋳物砂の画像処理計測を実行する方法につ
いて、図5に示すフローチャートを参照して、以下に詳
述する。第1ステップS1〜第5ステップS5は照度管
理を実行するルーチンである。The method for performing the image processing and measurement of the molding sand by using the apparatus for image processing and measuring of the molding sand thus configured will be described in detail below with reference to the flowchart shown in FIG. The first step S1 to the fifth step S5 are routines for executing illuminance management.
【0047】まず第1ステップS1で背景板5が配置さ
れた計測皿2を用意する。この時点ではガラス板3の上
部には砂を載せることなく、照度管理を実行する目的で
ガラス板3上の砂を除去する。次に第2ステップ2で、
CPU20はCCDカメラ6が撮像した背景のスルー画
像を表示部14に表示し、次の第3ステップS3で、C
PU20は背景の静止画像を取込む。First, in a first step S1, a measuring dish 2 on which a background plate 5 is arranged is prepared. At this time, the sand on the glass plate 3 is removed for the purpose of illuminance management without putting sand on the upper portion of the glass plate 3. Next, in the second step 2,
The CPU 20 displays a through image of the background captured by the CCD camera 6 on the display unit 14, and in the next third step S3, C
The PU 20 captures a background still image.
【0048】次に第4ステップS4で、CPU20は背
景の平均輝度Kを計算し、次の第5ステップS5で、C
PU20は平均輝度Kが210〜252の所定範囲内が
否かを判定し、NO判定時には第2ステップS2にリタ
ーンする一方、YES判定時には次の第6ステップS6
に移行する。Next, in a fourth step S4, the CPU 20 calculates the average luminance K of the background.
The PU 20 determines whether or not the average luminance K is within a predetermined range of 210 to 252. When the determination is NO, the process returns to the second step S2, while when the determination is YES, the next sixth step S6 is performed.
Move to
【0049】ここで、上述の背景の平均輝度KをK=2
10〜252の範囲に設定したのは次の理由による。図
9は横軸に光源照度をとり、縦軸に画像の輝度をとっ
て、砂の平均輝度dと背景の平均輝度Kとの変化を示す
特性図で、光源9の照度を順次大きくすると砂と平均輝
度dはこれに比例して順次大きくなるが、背景の平均輝
度KはCCDカメラ6や画像処理装置15側の限界に起
因して、ある点からサチレートするので、光源9の照度
が約5000ルクスのポイントで砂と背景との平均輝度
の差が最大となり、このポイントの画像の輝度は252
となる。なお輝度9の照度が5000ルクスを超過する
と本来黒く撮像される砂までも白くなる。Here, the above-mentioned average luminance K of the background is given by K = 2.
The range of 10 to 252 is set for the following reason. FIG. 9 is a characteristic diagram showing the change between the average luminance d of sand and the average luminance K of the background by taking the illuminance of the light source on the horizontal axis and the luminance of the image on the vertical axis. And the average luminance d increase in proportion to this, but the average luminance K of the background is saturated from a certain point due to the limit of the CCD camera 6 and the image processing device 15 side. At the point of 5000 lux, the difference between the average luminance of the sand and the background becomes maximum, and the luminance of the image at this point is 252.
Becomes If the illuminance with the luminance 9 exceeds 5000 lux, even the sand which is originally black is whitened.
【0050】また画像の輝度が210未満では砂と背景
との平均輝度の差が過少となる。これらの理由からのK
=210〜252となる範囲に設定し、調整部17の操
作により光源9の光量なかんずく図9の横軸に相当する
光源9の照度を管理して、計測に最適な照明条件が確保
できるように成す。If the luminance of the image is less than 210, the difference in the average luminance between the sand and the background becomes too small. K for these reasons
= 210 to 252, and the operation of the adjusting unit 17 manages the light amount of the light source 9, particularly the illuminance of the light source 9 corresponding to the horizontal axis in FIG. 9, so that the optimal illumination condition for measurement can be secured. Make.
【0051】次に第6ステップS6で、計測すべき鋳物
砂Aの目標数量(例えば30個)や砂サイズ等の入力処
理を実行する。この処理はキーボード12を用いて計測
者が手動入力する。次に第7ステップS7で、計測皿2
におけるガラス板3上に複数の鋳物砂Aを載せる。この
際、砂相互を離間させてる。Next, in a sixth step S6, input processing of a target quantity (for example, 30 pieces) of the molding sand A to be measured and a sand size are executed. This process is manually input by the measurer using the keyboard 12. Next, in a seventh step S7, the measuring dish 2
A plurality of molding sands A are placed on the glass plate 3 in the above. At this time, the sand is separated from each other.
【0052】第8ステップS8〜第16ステップS16
は画像処理計測を実行するルーチンである。第8ステッ
プS8で、CPU20は照光条件下においてCCDカメ
ラ6が撮像した鋳物砂Aおよび背景のスルー画像を表示
部14に表示する(図6参照)。この場合、図4を参照
して既に説明したように、平滑面を有するガラス板3か
らの反射光は強い正反射光bとなるうえ、その下面に配
設された金属反射板4にてより一層高い光の反射量が得
られ、鋳物砂Aからの反射光は弱い乱反射光cとなる関
係上、図6に印すように表示画像は背景の部分が白、砂
Aの部分が黒となる。Eighth Step S8 to Sixteenth Step S16
Is a routine for executing image processing measurement. In the eighth step S8, the CPU 20 displays the molding sand A and the through image of the background captured by the CCD camera 6 on the display unit 14 under the illumination condition (see FIG. 6). In this case, as already described with reference to FIG. 4, the reflected light from the glass plate 3 having a smooth surface becomes strong specular reflected light b, and is further reflected by the metal reflecting plate 4 disposed on the lower surface thereof. Since a higher light reflection amount is obtained and the reflected light from the casting sand A becomes weak diffusely reflected light c, the display image has a white background portion and a black sand A portion as shown in FIG. Become.
【0053】次に第9ステップS9で、CPU20は静
止画像を取込む。次に第10ステップS10で、2値化
処理を実行すると共に、輪郭抽出を行なう。すなわち、
図9に示す如く鋳物砂Aの平均輝度dの変化と、背景の
平均輝度Kの変化との関係で、2値化しきい値を所定値
(例えば画像の輝度=100)に固定、さらに詳しくは
鋳物砂Aの平均輝度dのばらつきの上限値と背景の平均
輝度Kのばらつきの下限値との中間値になるように2値
化しきい値を固定し、輝度0〜100までを「1」信号
=白、輝度101〜255までを「0」信号=黒として
2値化処理を実行すると、図6に示す取込み画像は図7
に示すような外乱光の影響を受けない精度のよい2値化
画像となる。Next, in a ninth step S9, the CPU 20 captures a still image. Next, in a tenth step S10, a binarization process is executed and a contour is extracted. That is,
As shown in FIG. 9, the binarization threshold is fixed to a predetermined value (for example, image luminance = 100) in relation to the change in the average luminance d of the foundry sand A and the change in the average luminance K of the background. The binarization threshold is fixed so as to be an intermediate value between the upper limit value of the variation of the average luminance d of the foundry sand A and the lower limit value of the variation of the average luminance K of the background. = White and luminance 101 to 255 as "0" signal = black and the binarization process is executed, the captured image shown in FIG.
And a highly accurate binarized image which is not affected by disturbance light.
【0054】この図7の2値化画像より鋳物砂Aと背景
との輪郭eをCPU20が検出、抽出して図8に示す如
く成す。次第11ステップS11で、CPU20は図8
の輪郭抽出画像から鋳物砂Aの特徴量を計測する。The CPU 20 detects and extracts the contour e between the foundry sand A and the background from the binarized image of FIG. 7 and forms it as shown in FIG. In step S11, the CPU 20 determines in FIG.
The characteristic amount of the foundry sand A is measured from the contour extraction image of the above.
【0055】具体的には縦横比と真円度を求める。縦横
比の計測に際しては図8に示す如くまず重心を求め、次
に慣性主軸24を引き、この慣性主軸24と平行な2つ
のライン25,25と、慣性主軸と直角になる2つのラ
イン26,26とを求め、ライン25,25間の短辺の
長さ(横)を、ライン26,26間の長辺の長さ(縦)
で除して、縦横比を計測する。このようにして、縦横比
を求めると、この値を速やかに計測することができる。
一方、真円度は次の[数1]の式により求めることがで
きる。Specifically, the aspect ratio and the roundness are determined. At the time of measuring the aspect ratio, as shown in FIG. 8, the center of gravity is first obtained, then the main axis of inertia 24 is drawn, and two lines 25, 25 parallel to the main axis of inertia 24 and two lines 26, 26 perpendicular to the main axis of inertia. 26, and the length of the short side between the lines 25 and 25 (horizontal) is determined by the length of the long side between the lines 26 and 26 (vertical).
Divide by and measure the aspect ratio. When the aspect ratio is obtained in this way, this value can be measured quickly.
On the other hand, the roundness can be obtained by the following equation (Equation 1).
【0056】[数1] 真円度=周囲長の二乗/(4π×面積) 次の第12ステップS12で、CPU20は取込み画像
(図6参照)上に鋳物砂Aの輪郭をトレース表示する。
このトレース表示は背景の画像、砂の画像の色(つまり
白と黒)と異なる例えば赤色のラインを輪郭に沿ってト
レースして表示する。このトレース表示は砂以外のゴミ
や鋳物を砂として誤認したり或は複数の砂を1個の砂と
して誤認することを防止する目的で実行される。[Equation 1] Roundness = square of perimeter / (4π × area) In the next twelfth step S12, the CPU 20 traces and displays the contour of the foundry sand A on the captured image (see FIG. 6).
In this trace display, for example, a red line, which is different from the color of the background image and the sand image (that is, white and black), is traced and displayed along the contour. This trace display is executed for the purpose of preventing dusts and castings other than sand from being mistakenly recognized as sand, or a plurality of sands being mistakenly recognized as one sand.
【0057】次に第13ステップS13で、計測者はト
レース表示を視認して、輪郭が誤認していないか否かを
キーボード12を用いてYES、NO入力する。次に第
14ステップS14で、CPU20は上述のYES、N
Oのキーボード12入力に基づいて誤認なしか否かを判
定し、NO判定時(誤認時)には第8ステップS8にリ
ターンする一方、YES判定時(誤認がない時)には次
の第15ステップS15に移行する。Next, in a thirteenth step S13, the measurer visually recognizes the trace display, and inputs YES or NO using the keyboard 12 as to whether or not the outline is erroneously recognized. Next, in a fourteenth step S14, the CPU 20 determines whether the answer
It is determined whether there is no misidentification based on the keyboard 12 input of O. When the judgment is NO (at the time of misidentification), the process returns to the eighth step S8. Move to step S15.
【0058】この第15ステップS15で、CPU20
は特徴量の計測データをRAM19の所定エリア等に記
憶する。次に第16ステップS16で、CPU20は計
測数が目標総数(例えば30個)に達したか否かを判定
し、NO判定時には第8ステップS8にリターンして上
述同様の計測を繰返す一方、YES判定時には次の第1
7ステップS17に移行する。In the fifteenth step S15, the CPU 20
Stores the measurement data of the feature amount in a predetermined area of the RAM 19 or the like. Next, in a sixteenth step S16, the CPU 20 determines whether or not the number of measurements has reached the target total number (for example, 30). If the determination is NO, the CPU 20 returns to the eighth step S8 to repeat the same measurement as described above, while YES At the time of judgment, the first
Control goes to step S17.
【0059】第17ステップS17〜第20ステップS
20はデータ処理を実行するルーチンである。第17ス
テップS17で、CPU20は計測データの統計処理を
実行する。具体的には目標総数分の縦横比の平均値を求
める。次に第18ステップS18で、CPU20は予め
RAM19の所定エリアに記憶させておいた所定値と縦
横比平均値とを比較して、研磨評価を実行(OKまたは
NG判定)する。Seventeenth step S17 to twentieth step S
Reference numeral 20 denotes a routine for executing data processing. In a seventeenth step S17, the CPU 20 executes statistical processing of the measurement data. Specifically, an average value of the aspect ratio for the target total number is obtained. Next, in an eighteenth step S18, the CPU 20 compares the predetermined value stored in a predetermined area of the RAM 19 in advance with the average aspect ratio to execute polishing evaluation (OK or NG determination).
【0060】そして、OK時には次の第19ステップS
19に移行する一方、NG時には別の第20ステップS
20に移行する。上述の第9ステップS19で、CPU
20はOK判定に対応して表示部14にOK表示を行な
う。また上述の第20ステップS20で、CPU20は
NG判定に対応して表示部14にNG表示を行ない、一
連の計測処理を終了する。At the time of OK, the next 19th step S
19, while another twentieth step S
Move to 20. In the ninth step S19, the CPU
20 displays OK on the display unit 14 in response to the OK determination. In addition, in the above-described twentieth step S20, the CPU 20 performs NG display on the display unit 14 in response to the NG determination, and ends a series of measurement processing.
【0061】以上要するに上記実施例の鋳物砂の画像処
理計測法によれば、上述の反射板(ガラス板3参照)上
に鋳物砂Aを配設し、ハロゲンランプ等の光源9からの
カメラ光軸と平行な光aを反射板(ガラス板3参照)、
鋳物砂Aに投光し、これら反射板(ガラス板3参照)お
よび鋳物砂Aからの反射光b,cを受けて画像処理する
場合、平滑面を有する反射板(ガラス板3参照)からの
反射光は強い正反射光bとなり、砂Aはその表面形状が
不均一であること等により鋳物砂Aからの反射光は弱い
乱反射光cとなるので、得られる画像(図6参照)は砂
Aの色に依存しない白黒の輪郭が明瞭な画像となる。こ
のように、鋳物砂Aの透明度や色の差異に一切影響され
ることなく、砂Aと背景との正確な輪郭を得ることがで
きる効果がある。In short, according to the image processing and measuring method of the molding sand of the above embodiment, the molding sand A is disposed on the above-mentioned reflecting plate (see the glass plate 3) and the camera light from the light source 9 such as a halogen lamp is provided. Light a parallel to the axis is reflected by a reflecting plate (see glass plate 3),
When the light is projected onto the casting sand A and the image processing is performed by receiving the reflected light b and c from the reflecting plate (see the glass plate 3) and the casting sand A, the light from the reflecting plate having a smooth surface (see the glass plate 3) is obtained. The reflected light becomes strong specular reflected light b, and the reflected light from the casting sand A becomes weak diffusely reflected light c due to the uneven surface shape of the sand A. Therefore, the resulting image (see FIG. 6) is sandy. An image having a clear black and white outline that does not depend on the color of A is obtained. As described above, there is an effect that an accurate contour between the sand A and the background can be obtained without being affected by any difference in the transparency and the color of the foundry sand A.
【0062】また、上述の反射板をガラス板3に設定し
たので、ガラス板3が高い反射性と平滑面とを有するこ
とにより、鋳物砂Aの輝度と背景(ガラス板3)の輝度
との差(コントラスト)がさらに大きくなり、この結
果、より一層正確な輪郭を確保することができる効果が
ある。加えて、ガラス板3はプラスチック板の如きキズ
もないので、計測に不利なキズ等の表面状況が画像とし
て入力されることもないうえ、管理が容易となる効果が
ある。Further, since the above-mentioned reflecting plate is set to the glass plate 3, since the glass plate 3 has high reflectivity and a smooth surface, the brightness of the molding sand A and the brightness of the background (glass plate 3) are different. The difference (contrast) is further increased, and as a result, there is an effect that a more accurate contour can be secured. In addition, since the glass plate 3 does not have a flaw like a plastic plate, the surface condition such as a flaw that is disadvantageous for measurement is not input as an image, and the management is easy.
【0063】さらに、上述のガラス板3をカメラ6の焦
点深度より深い厚さLに設定したので、画像処理カメラ
(CCDカメラ6参照)によりガラス板3の下部に存在
する金属反射板4やXYステージ1等の物体が撮像され
るのを阻止し、このため、ガラス板3の下部に位置する
物体の悪影響を一切受けない効果がある。Further, since the above-mentioned glass plate 3 is set to have a thickness L larger than the depth of focus of the camera 6, the image processing camera (see the CCD camera 6) uses the metal reflection plate 4 and the XY An object such as the stage 1 is prevented from being imaged, so that there is an effect that the object located below the glass plate 3 is not adversely affected at all.
【0064】さらにまた、上述のガラス板3の下部に金
属反射板4を配設したので、反射光bのより一層高い反
射量が得られて、コントラストがさらに良好となる効果
がある。Further, since the metal reflection plate 4 is provided below the glass plate 3, a higher reflection amount of the reflected light b can be obtained and the contrast is further improved.
【0065】加えて、上述の画像処理は鋳物砂Aの輪郭
eを検出するので、砂Aと背景との輪郭を確実に検出す
ることができる効果がある。また、鋳物砂Aと背景との
関係で2値化のしきい値を設定するので、外乱光の影響
を受けにくく、精度のよい計測を実行することができる
効果がある。In addition, since the above-described image processing detects the contour e of the foundry sand A, there is an effect that the contour between the sand A and the background can be reliably detected. Further, since the threshold value for binarization is set based on the relationship between the casting sand A and the background, there is an effect that it is hardly affected by disturbance light and accurate measurement can be performed.
【0066】さらに、上述の光源9(例えばハロゲンラ
ンプ等)は光度調整機能を有するので、光源9の経年変
化や経時劣化などに起因して光源9が劣化した場合に充
分対応でき、高精度の計測を行なうことができる効果が
ある。Further, since the above-mentioned light source 9 (for example, a halogen lamp) has a luminous intensity adjusting function, it can sufficiently cope with deterioration of the light source 9 due to aging or deterioration of the light source 9 with high accuracy. There is an effect that measurement can be performed.
【0067】一方、上記実施例の鋳物砂の画像処理計測
装置によれば、上述の光源9は画像処理カメラ(CCD
カメラ6参照)の光軸と平行な光aをガラス板3および
鋳物砂Aに投光し、ガラス板3に直角に配設された画像
処理カメラ(CCDカメラ6参照)は、表面が不均一な
鋳物砂Aからの弱い乱反射光cと、下部に金属反射板4
が配設されたガラス板3からの強い正反射光bとを受
光、撮像する。この結果、鋳物砂Aの透明度や色の差異
にかかわらず、正確な輪郭を得ることができ、砂Aの輝
度と背景の輝度との差(コントラスト)が極めて大き
く、鮮明な輪郭を確保することができる効果がある。On the other hand, according to the molding sand image processing and measuring apparatus of the above embodiment, the light source 9 is an image processing camera (CCD).
The light a parallel to the optical axis of the camera 6 is projected on the glass plate 3 and the casting sand A, and the surface of the image processing camera (see the CCD camera 6) arranged at right angles to the glass plate 3 is uneven. Weakly diffused light c from the foundry sand A and metal reflector 4
Receives and images strong intense reflected light b from the glass plate 3 on which is disposed. As a result, an accurate contour can be obtained irrespective of the difference in the transparency and color of the foundry sand A, and the difference (contrast) between the luminance of the sand A and the luminance of the background is extremely large, and a clear contour is secured. There is an effect that can be.
【0068】すなわち、ガラス板3が高い反射性、平滑
面を有する点と、金属反射板4の配設により、反射光b
のより一層高い反射量が得られる点とにより、上述のよ
うな鮮明な輪郭が確保できる。また、上述の画像処理は
鋳物砂Aの輪郭eを検出するので、砂Aと背景との輪郭
を確実に検出することができる効果がある。That is, due to the point that the glass plate 3 has high reflectivity and a smooth surface and the arrangement of the metal reflection plate 4, the reflected light b
With the point that a higher reflection amount can be obtained, a clear contour as described above can be secured. Further, since the above-described image processing detects the contour e of the foundry sand A, there is an effect that the contour between the sand A and the background can be reliably detected.
【0069】この発明の構成と、上述の実施例との対応
において、この発明の反射板は、実施例のガラス板3に
対応し、以下同様に、画像処理カメラは、CCDカメラ
6に対応するも、この発明は上述の実施例の構成のみに
限定されるものではない。In the correspondence between the configuration of the present invention and the above-described embodiment, the reflecting plate of the present invention corresponds to the glass plate 3 of the embodiment, and similarly, the image processing camera corresponds to the CCD camera 6. However, the present invention is not limited only to the configuration of the above embodiment.
【0070】例えば図5に示す第12、第13の各ステ
ップS12,S13での処理に代えて、砂Aの縦横比が
0.5以下または真円度が0.4以下のものをゴミ、鋳
物また複数の砂であるとCPUが自動判定する処理を用
いてもよく、2値化しきい値は図9の輝度=100に代
えて、輝度=90の値を用いてもよい。For example, in place of the processing in the twelfth and thirteenth steps S12 and S13 shown in FIG. 5, sand A having an aspect ratio of 0.5 or less or a roundness of 0.4 or less is replaced with dust. The CPU may automatically determine that the object is a casting or a plurality of sands, and the binarization threshold may use a value of luminance = 90 instead of luminance = 100 in FIG.
【図1】 本発明の鋳物砂の画像処理計測装置を示す説
明図。FIG. 1 is an explanatory view showing an image processing and measuring apparatus for molding sand of the present invention.
【図2】 同装置の制御回路ブロック図。FIG. 2 is a control circuit block diagram of the device.
【図3】 マイクロレンズと反射光との関係構造を示す
説明図。FIG. 3 is an explanatory diagram showing a relational structure between a microlens and reflected light.
【図4】 入射光と反射光との関係を示す説明図。FIG. 4 is an explanatory diagram showing a relationship between incident light and reflected light.
【図5】 本発明の鋳物砂の画像処理計測法を示すフロ
ーチャート。FIG. 5 is a flowchart showing an image processing measurement method for foundry sand of the present invention.
【図6】 CCDカメラで撮像された画像の説明図。FIG. 6 is an explanatory diagram of an image captured by a CCD camera.
【図7】 2値化画像の説明図。FIG. 7 is an explanatory diagram of a binarized image.
【図8】 輪郭抽出画像の説明図。FIG. 8 is an explanatory diagram of a contour extraction image.
【図9】 砂および背景の平均輝度の変化を示す特性
図。FIG. 9 is a characteristic diagram showing changes in average luminance of sand and a background.
【図10】 従来の鋳物砂の画像処理計測法およびその
装置を示す説明図。FIG. 10 is an explanatory view showing a conventional image processing and measuring method for foundry sand and its apparatus.
【図11】 従来手段による濃淡画像の説明図。FIG. 11 is an explanatory diagram of a grayscale image by a conventional means.
3…ガラス板(反射板) 4…金属反射板 6…CCDカメラ(画像処理カメラ) 9…光源 A…鋳物砂 e…輪郭 3: Glass plate (reflection plate) 4: Metal reflection plate 6: CCD camera (image processing camera) 9: Light source A: Foundry sand e: Outline
Claims (9)
であって、光の透過性および平滑面を有する反射板上に
鋳物砂を配設し、上記反射板に直角に画像処理カメラを
配設し、該画像処理カメラの光軸と平行な光を反射板お
よび鋳物砂に光源から投光し、鋳物砂および反射板から
の反射光を受けて画像処理する鋳物砂の画像処理計測
法。An image processing and measuring method for molding sand by binarization processing, wherein the molding sand is disposed on a reflecting plate having a light transmitting property and a smooth surface, and the image processing camera is perpendicular to the reflecting plate. And an image processing and measuring apparatus for projecting light parallel to the optical axis of the image processing camera from the light source to the reflection plate and the molding sand, and receiving the light reflected from the molding sand and the reflection plate to perform image processing. Law.
記載の鋳物砂の画像処理計測法。2. The apparatus according to claim 1, wherein said reflector is a glass plate.
Image processing measurement method of the foundry sand described.
厚さに設定した請求項2記載の鋳物砂の画像処理計測
法。3. An image processing and measuring method for molding sand according to claim 2, wherein said glass plate is set to a thickness deeper than a depth of focus of a camera.
た請求項2記載の鋳物砂の画像処理計測法。4. The method according to claim 2, wherein a metal reflecting plate is provided below the glass plate.
求項1記載の鋳物砂の画像処理計測法。5. The method according to claim 1, wherein the image processing detects a contour of the foundry sand.
きい値を設定する請求項5記載の鋳物砂の画像処理計測
法。6. A method according to claim 5, wherein a threshold value for binarization is set in relation to the background of the foundry sand.
記載の鋳物砂の画像処理計測法。7. The light source according to claim 1, wherein said light source has a light intensity adjusting function.
Image processing measurement method of the foundry sand described.
置であって、光の透過性および平滑面を有し、その上部
に鋳物砂が配設されるガラス板と、上記ガラス板に直角
に配設された画像処理カメラと、上記画像処理カメラの
光軸と平行な光をガラス板および鋳物砂に投光する光源
とを備え、上記ガラス板の下部に金属反射板が配設され
た鋳物砂の画像処理計測装置。8. An image processing and measuring apparatus for molding sand by binarization processing, comprising: a glass plate having a light transmitting property and a smooth surface, on which a molding sand is disposed, and An image processing camera disposed at a right angle, and a light source for projecting light parallel to the optical axis of the image processing camera to a glass plate and casting sand, and a metal reflection plate is disposed below the glass plate. Image processing and measuring equipment for foundry sand.
求項8記載の鋳物砂の画像処理計測装置。9. The image processing and measuring apparatus for molding sand according to claim 8, wherein said image processing detects a contour of the molding sand.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9200978A JPH1130509A (en) | 1997-07-09 | 1997-07-09 | Image-processing and measuring method of casting sand and device therefor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9200978A JPH1130509A (en) | 1997-07-09 | 1997-07-09 | Image-processing and measuring method of casting sand and device therefor |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH1130509A true JPH1130509A (en) | 1999-02-02 |
Family
ID=16433489
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP9200978A Pending JPH1130509A (en) | 1997-07-09 | 1997-07-09 | Image-processing and measuring method of casting sand and device therefor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH1130509A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005331272A (en) * | 2004-05-18 | 2005-12-02 | Pentax Corp | Optical member inspection device |
CN109801340A (en) * | 2019-01-16 | 2019-05-24 | 山西班姆德机械设备有限公司 | A kind of wheel grinding method based on image procossing |
-
1997
- 1997-07-09 JP JP9200978A patent/JPH1130509A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005331272A (en) * | 2004-05-18 | 2005-12-02 | Pentax Corp | Optical member inspection device |
CN109801340A (en) * | 2019-01-16 | 2019-05-24 | 山西班姆德机械设备有限公司 | A kind of wheel grinding method based on image procossing |
CN109801340B (en) * | 2019-01-16 | 2022-09-27 | 山西班姆德机械设备有限公司 | Grinding wheel grinding method based on image processing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3560694B2 (en) | Lens inspection system and method | |
US6697513B1 (en) | Optical member inspecting apparatus and method of inspection thereof | |
JP5546103B2 (en) | Device for controlling transparent or reflective parts | |
CN109030495A (en) | A kind of optical element defect inspection method based on machine vision technique | |
CN106650561A (en) | Fingerprint image capturing device and fingerprint image capturing module thereof | |
CN107727665A (en) | Appearance inspection device and appearance inspection method | |
JPH1130509A (en) | Image-processing and measuring method of casting sand and device therefor | |
JP2003329612A (en) | Test method of object to be tested | |
JPH0373831A (en) | Device for inspecting defect | |
CN115165921A (en) | Detection method of shoulder surface water ripple based on cone | |
JPH0854351A (en) | Method for inspecting transparent sheet-like molded body for defect | |
JP2001004348A (en) | Method and device for inspecting roughness on outer peripheral surface of glass vessel | |
JP2005091025A (en) | Lens fastener and method | |
JP7251559B2 (en) | Information processing equipment | |
JPS6232345A (en) | Defect detecting device | |
JPH05322780A (en) | Inspecting method for light transmitting molding | |
CN221099656U (en) | Optical imaging system for lens photographing scanner | |
JPH04194703A (en) | Instrument for measuring area, configuration and the like of contact surface by optical contact method | |
JPH0894337A (en) | Bottle direction inspection method and device | |
JPH06160065A (en) | Inspecting device for notch | |
JP3559392B2 (en) | Optical member inspection device | |
JPH095249A (en) | Apparatus for inspecting optical member | |
KR101109181B1 (en) | Photographing device of 6-color distinction | |
JP3793396B2 (en) | Cylinder head blockage inspection device | |
CN115165922A (en) | Detection apparatus based on cone surface ripple |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20040528 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20051111 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20051122 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20060404 |