JP4529728B2 - Method and apparatus for inspecting foreign matter in container - Google Patents

Method and apparatus for inspecting foreign matter in container Download PDF

Info

Publication number
JP4529728B2
JP4529728B2 JP2005048005A JP2005048005A JP4529728B2 JP 4529728 B2 JP4529728 B2 JP 4529728B2 JP 2005048005 A JP2005048005 A JP 2005048005A JP 2005048005 A JP2005048005 A JP 2005048005A JP 4529728 B2 JP4529728 B2 JP 4529728B2
Authority
JP
Japan
Prior art keywords
area
region
bubble
candidate
container
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.)
Expired - Fee Related
Application number
JP2005048005A
Other languages
Japanese (ja)
Other versions
JP2006234515A (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.)
Panasonic Corp
Panasonic Electric Works Co Ltd
Original Assignee
Panasonic Corp
Matsushita Electric Works 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 Panasonic Corp, Matsushita Electric Works Ltd filed Critical Panasonic Corp
Priority to JP2005048005A priority Critical patent/JP4529728B2/en
Publication of JP2006234515A publication Critical patent/JP2006234515A/en
Application granted granted Critical
Publication of JP4529728B2 publication Critical patent/JP4529728B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Description

本発明は、液状の食品や薬品を充填したびん、アンプル、パックのように、液体を入れた透光性材料からなる容器に対して、画像処理技術を用いて液中の気泡と異物とを識別する容器内の異物検査方法およびその装置に関するものである。   The present invention uses image processing technology to remove bubbles and foreign substances in liquids such as bottles, ampoules, and packs filled with liquid foods and chemicals using image processing technology. The present invention relates to a method for inspecting foreign matter in a container to be identified and an apparatus therefor.

一般に、食品や薬品のびん、アンプル、パックように、液体を入れた透光性材料からなる容器では、容器を密封した後に塵埃や虫のような異物が混入していないことを確認する必要がある。また、気泡は異物ではないから、気泡と異物とを識別することが要求される。この種の検査を行うために、容器をTVカメラのような撮像手段により撮像し、撮像手段により得られた画像に対してコンピュータによる画像処理技術を適用する技術が種々提案されている。   In general, in containers made of translucent materials that contain liquids, such as food and chemical bottles, ampoules, and packs, it is necessary to check that foreign substances such as dust and insects are not mixed after the container is sealed. is there. Further, since the bubble is not a foreign substance, it is required to distinguish the bubble from the foreign substance. In order to perform this type of inspection, various techniques have been proposed in which a container is imaged by an imaging means such as a TV camera, and an image processing technique using a computer is applied to an image obtained by the imaging means.

この種の技術としては、容器に外力を作用させて液体に流動を誘発し、異なる時刻に撮像した画像の各画素の明度の差を画素値に持つ差分画像を微分した微分画像の特徴量を用いて気泡の存在領域の候補である気泡候補領域を抽出するとともに、異なる時刻で求めた差分画像について気泡候補領域の変位を確認することにより、気泡と異物とを識別することが考えられている(たとえば、特許文献1参照)。また、特許文献1には、透過照明によって得られた画像では、気泡の周辺部分の明度が中心部分の明度よりも低くなるという特徴を利用し、差分画像を微分した微分画像において浮遊物に相当する領域に外接する外接矩形を設定するとともに、外接矩形に内接する楕円内に内側領域と外側領域との2領域を設定し、内側領域の明度の平均値が外側領域の明度の平均値に対して所定の設定値よりも高い(明るい)場合に気泡候補とする技術も記載されている。
特開2004−354100号公報
As this type of technology, the external force is applied to the container to induce flow in the liquid, and the feature value of the differential image obtained by differentiating the difference image having the pixel value of the brightness difference of each pixel of the image captured at different times. It is considered that a bubble candidate region that is a candidate for a bubble existing region is used to identify a bubble and a foreign object by confirming displacement of the bubble candidate region with respect to difference images obtained at different times. (For example, refer to Patent Document 1). Further, Patent Document 1 uses a feature that the brightness of the peripheral portion of the bubble is lower than the brightness of the central portion in the image obtained by the transmitted illumination, and corresponds to a floating object in the differential image obtained by differentiating the difference image. Set the circumscribed rectangle circumscribing the area to be set, and set the inner area and the outer area in the ellipse inscribed in the circumscribed rectangle, and the average value of the inner area is set to the average value of the outer area. Also described is a technique for making a bubble candidate when it is higher (brighter) than a predetermined set value.
JP 2004-354100 A

上述した特許文献1に記載の技術では、気泡候補領域を設定した後に気泡か否かの判定を行うから2段階の判定により気泡と異物との分離精度が高くなると言える。しかしながら、気泡か否かを判定するために気泡が上昇する性質を利用しているから、異なる時刻に撮像した複数枚の画像が必要であって、検査に時間を要するという問題がある。   In the technique described in Patent Document 1 described above, it is determined whether a bubble is a bubble after setting a bubble candidate region. Therefore, it can be said that the accuracy of separation between a bubble and a foreign object is increased by a two-step determination. However, since the property that bubbles rise is used to determine whether or not it is a bubble, a plurality of images taken at different times are necessary, and there is a problem that inspection takes time.

本発明は上記事由に鑑みて為されたものであり、その目的は、複数枚の画像を用いることなく気泡と異物とを精度よく識別することを可能とした容器内の異物検査方法およびその装置を提供することにある。   SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned reasons, and an object of the present invention is to detect a foreign substance in a container and an apparatus thereof that can accurately identify bubbles and foreign substances without using a plurality of images. Is to provide.

請求項1の発明は、液体の入った透光性材料からなる容器を光源により照明するとともに容器を透過した光を撮像手段で撮像し、撮像手段で得られた濃淡画像に画像処理を施して評価することにより容器内の液中における気泡と異物とを識別する異物検査方法であって、濃淡画像において明度に変化を生じている領域を気泡の存在する領域の候補である気泡候補領域として抽出する候補領域抽出過程と、気泡候補領域の外周縁との距離を条件に用いて気泡候補領域内に内側領域と外側領域との2領域を設定する評価領域設定過程と、内側領域の明度の平均値が外側領域の明度の平均値よりも高く、かつ内側領域の画素の明度と外側領域の画素の明度との級間分散を全体の分散で正規化した値を分離度に用い、分離度が規定の閾値以上であるときに当該気泡候補領域を気泡と判定する判定過程とを有することを特徴とする。 The invention of claim 1 illuminates a container made of a translucent material containing liquid with a light source, images the light transmitted through the container with an imaging means, and performs image processing on the grayscale image obtained by the imaging means. A foreign matter inspection method for identifying bubbles and foreign matters in a liquid in a container by evaluating, and extracting a region having a change in brightness in a grayscale image as a candidate bubble region that is a candidate for a region containing bubbles A candidate area extraction process, an evaluation area setting process in which two areas, an inner area and an outer area, are set in the bubble candidate area using the distance from the outer peripheral edge of the bubble candidate area as a condition, and the average brightness of the inner area The value is higher than the average value of the brightness of the outer area , and the value obtained by normalizing the inter-class variance between the brightness of the pixels in the inner area and the brightness of the pixels in the outer area is used for the separation. If it is above the specified threshold The bubble candidate region and having a determining process and bubbles.

この方法によれば、気泡の存在領域の候補である気泡候補領域を抽出した後、気泡候補領域について気泡か否かの判断を行うから、気泡か否かを2段階で判断することにより気泡と異物との誤判断を防止することができる。また、気泡候補領域について、内側領域と外側領域とを設定し明度の平均値の差を用いて気泡か否かを判断するだけではなく、内側領域と外側領域との明度の分離度を評価するから、気泡と異物とを精度よく識別することができる。すなわち、気泡が上昇することを利用して気泡と異物とを識別するのではなく、気泡に関する明度変化の特徴を捉えて気泡と異物とを識別するから、複数枚の画像を用いる必要がなく、気泡を短時間で精度よく判別することができる。   According to this method, after extracting a bubble candidate region that is a candidate for a bubble existing region, it is determined whether or not the bubble candidate region is a bubble. A misjudgment with a foreign object can be prevented. In addition, for the bubble candidate area, not only the inner area and the outer area are set and the difference between the average brightness values is used to determine whether the bubble is a bubble, but the lightness separation degree between the inner area and the outer area is evaluated. Therefore, it is possible to accurately identify bubbles and foreign matters. In other words, it is not necessary to use a plurality of images because the bubble and the foreign object are identified by capturing the characteristic of the change in brightness related to the bubble instead of identifying the bubble and the foreign object by utilizing the rising of the bubble. Bubbles can be distinguished accurately in a short time.

請求項2の発明では、請求項1の発明において、前記評価領域設定過程で前記内側領域と前記外側領域とは境界が接するように設定され、前記判定過程で気泡と判定できないときには、前記評価領域設定過程における条件の距離を変更することにより外側領域を広げ内側領域を狭めて判定過程を再度実行し、評価領域設定過程で次の外側領域を設定できなくなるか判定過程で気泡と判定できるようになるまで評価領域設定過程と判定過程とを繰り返すことを特徴とする。   According to a second aspect of the present invention, in the first aspect of the invention, when the evaluation area setting process is such that the inner area and the outer area are in contact with each other, and when the determination process cannot determine a bubble, the evaluation area Change the condition distance in the setting process to widen the outer area and narrow the inner area and execute the determination process again, so that the next outer area can not be set in the evaluation area setting process so that it can be determined as a bubble in the determination process The evaluation region setting process and the determination process are repeated until it becomes.

この方法によれば、気泡候補領域を設定する際の条件の違いによる判定結果のばらつきを抑制し、気泡を異物と判定する可能性を低減することができる。   According to this method, it is possible to suppress the variation in the determination result due to the difference in conditions when setting the bubble candidate region, and to reduce the possibility of determining the bubble as a foreign object.

請求項3の発明では、請求項1の発明において、前記評価領域設定過程で前記内側領域と前記外側領域とは互いの間に隙間を持つように設定されることを特徴とする。   The invention of claim 3 is characterized in that, in the invention of claim 1, the inner region and the outer region are set so as to have a gap between each other in the evaluation region setting process.

この方法によれば、内側領域と外側領域との間に隙間を形成しているから、気泡の識別に用いる画素数が少なくなり、短時間での処理が可能になる。また、内側領域と外側領域との中間の明度の画素を含まないことによって分離度の評価が容易になる。つまり、内側領域と外側領域との明度に差があれば、中間の明度の画素を含む場合よりも分離度が大きくなり、気泡の識別が容易になる。   According to this method, since a gap is formed between the inner region and the outer region, the number of pixels used for identifying the bubbles is reduced, and processing in a short time becomes possible. Moreover, the evaluation of the degree of separation is facilitated by not including pixels with lightness intermediate between the inner region and the outer region. That is, if there is a difference in lightness between the inner region and the outer region, the degree of separation becomes larger than when a pixel with intermediate lightness is included, and air bubbles can be easily identified.

請求項4の発明では、請求項3の発明において、前記判定過程で気泡と判定できないときには、前記評価領域設定過程における条件の距離を変更することにより前記外側領域を広げて判定過程を再度実行し、評価領域設定過程で次の内側領域を設定できなくなるか判定過程で気泡と判定できるようになるまで評価領域設定過程と判定過程とを繰り返すことを特徴とする。   According to a fourth aspect of the present invention, in the third aspect of the invention, when it is not possible to determine a bubble in the determination process, the determination process is performed again by expanding the outer region by changing the distance of the condition in the evaluation region setting process. The evaluation area setting process and the determination process are repeated until it becomes impossible to set the next inner area in the evaluation area setting process or until it can be determined as a bubble in the determination process.

この方法によれば、気泡候補領域を設定する際の条件の違いによる判定結果のばらつきを抑制し、気泡を異物と判定する可能性を低減することができる。   According to this method, it is possible to suppress the variation in the determination result due to the difference in conditions when setting the bubble candidate region, and to reduce the possibility of determining the bubble as a foreign object.

請求項5の発明では、請求項1ないし請求項4の発明において、前記判定過程では、前記内側領域の明度の平均値を求めた後、前記外側領域の明度の平均値との大小の判定に代えて、外側領域において内側領域の明度の平均値よりも明度の低い画素からなる規定の画素数以上の連結領域の存否を判定し、当該連結領域が存在するときに分離度を閾値と比較することを特徴とする。   According to a fifth aspect of the present invention, in the first to fourth aspects of the invention, in the determination step, after obtaining an average value of the lightness of the inner region, it is determined whether it is large or small with respect to the average value of the lightness of the outer region. Instead, in the outer region, the presence or absence of a connected region that is equal to or more than a specified number of pixels having a lightness lower than the average value of the lightness of the inner region is determined, and when the connected region exists, the separation degree is compared with a threshold value. It is characterized by that.

この方法によれば、内側領域に関しては明度の平均値を求めた後に、外側領域については明度の平均値を求める必要がないから、外側領域の全画素の情報を用いることなく異物を除去することができる場合があり、結果的に処理速度の向上につながる。   According to this method, since it is not necessary to obtain the average brightness value for the outer area after obtaining the average brightness value for the inner area, foreign matter can be removed without using information on all pixels in the outer area. As a result, the processing speed is improved.

請求項6の発明では、請求項1ないし請求項5の発明において、前記候補領域抽出過程では、背景との明度値の差を用いて求めた前候補領域の外周縁を楕円で近似し、当該楕円内を前記気泡候補領域とすることを特徴とする。   In the invention of claim 6, in the invention of claim 1 to claim 5, in the candidate region extraction process, the outer periphery of the previous candidate region obtained by using the difference in brightness value from the background is approximated by an ellipse, The inside of an ellipse is the bubble candidate region.

この方法によれば、撮像時の環境条件などによって濃淡画像から抽出される前候補領域の形状にばらつきがあっても、気泡候補領域として楕円の領域を用いることにより、内側領域と外側領域とを一定条件で設定することができ、判定結果のばらつきを抑制することができる。   According to this method, even if there is variation in the shape of the previous candidate area extracted from the grayscale image due to environmental conditions at the time of imaging, the inner area and the outer area are separated by using an elliptical area as the bubble candidate area. It can be set under certain conditions, and variation in determination results can be suppressed.

請求項7の発明は、容器内の異物検査装置であって、液体の入った透光性材料からなる容器に光を照射する光源と、光源から容器に照射され容器を透過した光を撮像する撮像手段と、撮像手段で得られた濃淡画像に画像処理を施して評価することにより容器内の液中における気泡と異物とを識別する画像処理装置とを備え、画像処理装置は、濃淡画像において明度に変化を生じている領域を気泡の存在する領域の候補である気泡候補領域として抽出する候補領域抽出手段と、気泡候補領域の外周縁との距離を条件に用いて気泡候補領域内に内側領域と外側領域との2領域を設定する評価領域設定手段と、内側領域の明度の平均値が外側領域の明度の平均値よりも高く、かつ内側領域の画素の明度と外側領域の画素の明度との級間分散を全体の分散で正規化した値を分離度に用い、分離度が規定の閾値以上であるときに当該気泡候補領域を気泡と判定する判定手段とを有することを特徴とする。 The invention of claim 7 is a foreign matter inspection device in a container, and images a light source that irradiates light to a container made of a light-transmitting material containing liquid and light that is irradiated from the light source to the container and passes through the container. An image processing unit includes an image processing unit, and an image processing device for identifying bubbles and foreign matters in the liquid in the container by performing image processing on the grayscale image obtained by the image capturing unit and evaluating the image. Use the distance between the candidate region extraction means for extracting the region where the brightness is changed as the bubble candidate region that is a candidate for the region where the bubble is present, and the outer periphery of the bubble candidate region as a condition, and place the inside in the bubble candidate region. an evaluation area setting means for setting a second region between the region and the outer region, the average value of the brightness of the inner region is higher than the average value of the brightness of the outer region, and the brightness of the pixels of the brightness and the outer region of the pixel in the inner region of whole the between-class variance of the Using the normalized value is dispersed in isolation, the bubble candidate region and having a determining means and bubbles when the separation degree is equal to or greater than a prescribed threshold value.

この構成によれば、気泡の存在領域の候補である気泡候補領域を抽出し候補領域抽出手段と、気泡候補領域について気泡か否かの判断を行う判断手段とを備えているから、気泡か否かを2段階で判断することになり、気泡と異物との誤認識を防止することができる。しかも、気泡候補領域について、内側領域と外側領域とを設定して両者の明度の平均値の差を用いて気泡か否かを判断するだけではなく、内側領域と外側領域との明度の分離度を評価するから、気泡と異物とを精度よく識別することができ、気泡が上昇することを利用して気泡と異物とを識別するのではなく、気泡に関する明度変化の特徴を捉えて気泡と異物とを識別するから、複数枚の画像を用いる必要がなく、気泡と異物とを識別する処理が簡単になり短時間で精度のよい判別が可能になる。   According to this configuration, since the bubble candidate area that is a candidate for the bubble existence area is extracted, the candidate area extracting unit and the determination unit that determines whether the bubble candidate area is a bubble or not are provided. Therefore, it is possible to prevent erroneous recognition of bubbles and foreign matters. In addition, for the bubble candidate area, not only the inner area and the outer area are set and the difference between the average values of the lightness is used to determine whether the bubble is a bubble, but also the lightness separation degree between the inner area and the outer area. Therefore, it is possible to distinguish between bubbles and foreign objects with high accuracy. Therefore, it is not necessary to use a plurality of images, the process of identifying bubbles and foreign matters is simplified, and accurate discrimination can be performed in a short time.

本発明によれば、気泡の存在領域の候補である気泡候補領域を抽出する過程と、気泡候補領域について気泡か否かの判断を行う過程との2段階の過程を有しているから、気泡と異物との誤判断を防止することができるという利点がある。また、気泡候補領域に、内側領域と外側領域とを設定し両者の明度の平均値の差を用いて気泡か否かを判断するだけでなく、内側領域と外側領域との明度の分離度を評価するから、複数枚の画像を用いる必要がなく気泡と異物とを短時間で精度よく識別することができるという利点を有する。   According to the present invention, since there is a two-stage process of extracting a bubble candidate area that is a candidate for a bubble existing area and a process of determining whether or not the bubble candidate area is a bubble, There is an advantage that misjudgment between a foreign object and a foreign object can be prevented. In addition to setting the inner region and the outer region as the bubble candidate region and not only determining whether the bubble is a bubble by using the difference between the average values of the two values, the degree of lightness separation between the inner region and the outer region can be determined. Since the evaluation is performed, there is an advantage that it is not necessary to use a plurality of images and it is possible to accurately identify bubbles and foreign matters in a short time.

(実施形態1)
本実施形態では、図2に示すように、検査対象である容器Xの側面を撮像手段としてのTVカメラ2により撮像し、TVカメラ2から出力された濃淡情報を含む映像信号を用いて容器Xに充填された液体の中の異物の有無を判定する。容器Xを挟んでTVカメラ2の反対側には光源3が配置される。光源3は透過照明用であって、光源3から出射された容器Xを透過した光がTVカメラ2により撮像される。
(Embodiment 1)
In the present embodiment, as shown in FIG. 2, the side surface of the container X to be inspected is imaged by the TV camera 2 as the imaging means, and the container X is used by using the video signal including the grayscale information output from the TV camera 2. The presence / absence of foreign matter in the liquid filled in is determined. A light source 3 is arranged on the opposite side of the TV camera 2 across the container X. The light source 3 is used for transmitted illumination, and light transmitted through the container X emitted from the light source 3 is imaged by the TV camera 2.

TVカメラ2の出力は適宜のプログラムを実行するコンピュータにより構成された画像処理装置1に入力される。画像処理装置1はTVカメラ2から得た映像信号を用いて後述する画像処理を行うことにより容器1に充填された液体中の気泡と異物とを識別する。また、画像処理装置1にはモニタ4や機器制御用のプログラマブルコントローラのような外部機器5も接続可能になっている。   The output of the TV camera 2 is input to the image processing apparatus 1 configured by a computer that executes an appropriate program. The image processing apparatus 1 discriminates bubbles and foreign matters in the liquid filled in the container 1 by performing image processing to be described later using a video signal obtained from the TV camera 2. The image processing apparatus 1 can be connected to an external device 5 such as a monitor 4 or a programmable controller for device control.

画像処理装置1は、図3に示すように、TVカメラ2から出力された映像信号にアナログ−デジタル変換を行うA/D変換器11を備える。A/D変換器11の出力は濃淡画像であってビデオRAM(VRAM)12に一旦格納される。VRAM12に濃淡画像を格納することにより、VRAM12に格納された濃淡画像をD/A変換器14を通してモニタ4に出力することが可能になる。画像処理装置1には、作業領域となる画像メモリ領域14aと、画像処理に用いるプログラムを格納しておくプログラムメモリ領域14bとを設けたメモリ14を備え、濃淡画像はVRAM12から画像メモリ領域14aにも渡される。プログラムメモリ領域14bには、ファームウェアとしてあらかじめFROM15に用意されている画像処理用のプログラムモジュールのうち必要なものが書き込まれる。FROM15からプログラムメモリ領域14bに書き込むプログラムモジュールは、画像処理装置1に設けた図示しない操作部あるいは画像処理装置1に接続されるプログラム支援装置により指定される。   As shown in FIG. 3, the image processing apparatus 1 includes an A / D converter 11 that performs analog-digital conversion on a video signal output from the TV camera 2. The output of the A / D converter 11 is a grayscale image and is temporarily stored in a video RAM (VRAM) 12. By storing the grayscale image in the VRAM 12, the grayscale image stored in the VRAM 12 can be output to the monitor 4 through the D / A converter 14. The image processing apparatus 1 includes a memory 14 provided with an image memory area 14a serving as a work area and a program memory area 14b for storing a program used for image processing. Gray images are transferred from the VRAM 12 to the image memory area 14a. Is also passed. In the program memory area 14b, necessary image processing program modules prepared in advance in the FROM 15 as firmware are written. A program module to be written from the FROM 15 to the program memory area 14 b is specified by an operation unit (not shown) provided in the image processing apparatus 1 or a program support apparatus connected to the image processing apparatus 1.

プログラムメモリ領域14bに書き込まれたプログラムは演算処理部10で実行され、処理結果は必要に応じてインターフェース16を介して外部機器5に与えられる。演算処理部10はプログラムを実行することにより、画像メモリ領域14aに格納された濃淡画像に画像処理を施し容器X内の液中における気泡と異物とを識別する。すなわち、演算処理部10は、プログラムの実行により、以下の各手段を実現する。   The program written in the program memory area 14b is executed by the arithmetic processing unit 10, and the processing result is given to the external device 5 through the interface 16 as necessary. The arithmetic processing unit 10 executes a program to perform image processing on the grayscale image stored in the image memory area 14a to identify bubbles and foreign matters in the liquid in the container X. That is, the arithmetic processing unit 10 realizes the following units by executing the program.

通常、TVカメラ2により撮像された画像は、図4に示すように、容器Xの背景の画像を含むものであるから、まず検査領域設定手段10aにより、容器Xの内側のみを検査対象とするように検査領域D1を設定する。本実施形態では、検査領域設定手段10aにおいて、ハフ変換を用いて容器Xの外周面と背景との境界線を抽出し、容器Xの内側となる範囲のみを検査領域D1として自動的に設定する。検査領域D1を設定する技術はハフ変換に限らず、微分画像から容器1のエッジを求めて矩形状の検査領域D1を設定する技術などを用いることもできる。   Usually, the image captured by the TV camera 2 includes an image of the background of the container X, as shown in FIG. 4, so that only the inside of the container X is first inspected by the inspection region setting means 10a. An inspection area D1 is set. In the present embodiment, the inspection area setting means 10a extracts the boundary line between the outer peripheral surface of the container X and the background using the Hough transform, and automatically sets only the range inside the container X as the inspection area D1. . The technique for setting the inspection area D1 is not limited to the Hough transform, and a technique for determining the edge of the container 1 from the differential image and setting the rectangular inspection area D1 can also be used.

検査領域設定手段10aで検査領域D1が設定されると、候補領域抽出手段10bでは検査領域D1の画素について気泡の候補となる領域の存否を評価し、気泡の存在領域の候補があれば気泡候補領域D2(図5参照)を抽出する。気泡候補領域D2を抽出するには、まず、気泡に含まれると考えられる画素を濃淡画像から取り出す。   When the inspection area D1 is set by the inspection area setting means 10a, the candidate area extraction means 10b evaluates the presence or absence of a bubble candidate area for the pixels in the inspection area D1, and if there is a bubble existence area candidate, the bubble candidate A region D2 (see FIG. 5) is extracted. In order to extract the bubble candidate region D2, first, pixels considered to be included in the bubble are extracted from the grayscale image.

気泡に含まれると考えられる画素を取り出す技術としては、本実施形態では、微分画像を生成して微分値が極大値をとるエッジを抽出するエッジ抽出処理、あらかじめ気泡を含まない画像をテンプレートとしておき撮像した画像とテンプレートとの差分を求める背景差分処理がある。   In this embodiment, as a technique for extracting pixels that are considered to be included in bubbles, in this embodiment, an edge extraction process that generates a differential image and extracts an edge having a maximum differential value, and an image that does not include bubbles as a template in advance is used. There is a background difference process for obtaining a difference between a captured image and a template.

上述した技術により抽出した各画素にはラベリングを施し、ラベリングを施した領域の距離を評価して1つの領域とみなせる範囲の各領域を連結する。たとえば1つの領域について規定した画素分の膨張処理を行い、膨張処理によって他の領域と連結されたときには連結された2つの領域を1つの領域として統合する。このようにして連結され統合された領域を気泡候補領域D2とする。ただし、あらかじめ定めた個数以上の画素を含む領域のみを気泡の存在する領域の候補である気泡候補領域D2として用いる。これは、微小な領域はTVカメラ2で得た画像からでは気泡か異物かを識別することができないからであって、このような微小領域は測定限界以下として扱う。   Each pixel extracted by the technique described above is labeled, and the distances between the labeled areas are evaluated to connect the respective areas in a range that can be regarded as one area. For example, expansion processing for pixels defined for one region is performed, and when connected to other regions by expansion processing, the two connected regions are integrated as one region. The region connected and integrated in this way is defined as a bubble candidate region D2. However, only a region including a predetermined number of pixels or more is used as a bubble candidate region D2 that is a candidate for a region where bubbles exist. This is because a minute area cannot be identified as a bubble or a foreign object from an image obtained by the TV camera 2, and such a minute area is treated as a measurement limit or less.

このようにして得られた気泡候補領域D2は濃淡画像に重ね合わされ、濃淡画像のマスキングに用いられる。ここで、マスキングとは気泡候補領域D2に重なる範囲の画素のみが気泡と異物との識別の対象になることを意味する。複数個の気泡候補領域D2が得られているときには画素数の多いほうから順に気泡か否かの判別を行う。   The bubble candidate area D2 obtained in this way is superimposed on the gray image and used for masking the gray image. Here, masking means that only pixels in a range that overlaps the bubble candidate region D2 are targets for discrimination between bubbles and foreign matters. When a plurality of bubble candidate regions D2 are obtained, it is determined whether the bubbles are in order from the largest number of pixels.

気泡候補領域D2が気泡か否かの判断を行うために、まず気泡候補領域D2の中の画素について、気泡候補領域D2の外側の画素からの距離(画素数)に応じたラベル付けを行う(図5)。図示例では気泡候補領域D2の外側の画素はラベルを0とし、最小距離の画素のラベルを1として、他の画素は距離に応じた自然数でラベルを付けている。ただし、距離は各画素について縦横斜めの8方向について求め、そのうち最小の距離を用いる。したがって、距離が最小になっている方向において隣接する画素のラベルは数値が順に並ぶことになる。このように、気泡候補領域D2に含まれる画素について外周縁からの距離に応じたラベルを付ける処理を距離変換処理と呼ぶ。   In order to determine whether or not the bubble candidate region D2 is a bubble, first, the pixels in the bubble candidate region D2 are labeled according to the distance (number of pixels) from the pixels outside the bubble candidate region D2 ( FIG. 5). In the illustrated example, the pixels outside the bubble candidate region D2 are labeled 0, the minimum distance pixel is labeled 1, and the other pixels are labeled with natural numbers corresponding to the distance. However, the distance is obtained for each pixel in eight vertical and horizontal diagonal directions, and the minimum distance is used. Therefore, the labels of the adjacent pixels in the direction in which the distance is minimum are arranged in numerical order. As described above, the process of labeling the pixels included in the bubble candidate area D2 according to the distance from the outer peripheral edge is referred to as a distance conversion process.

マスキングおよび距離変換処理は評価領域設定手段10cにより実行される。また、評価領域設定手段10cは距離変換処理により得られた距離を条件に用いて、図6のように、気泡候補領域D2の中に中央部に近い内側領域Daと周辺部に近い外側領域Dbとの2領域を設定する。具体的には同じラベルが付与されている領域を単位として内側領域Daと外側領域Dbとを設定する。図6の例ではラベルが1である領域を外側領域Dbとし、ラベルが2〜6の領域を内側領域Daとしている。ただし、内側領域Daと外側領域Dbとの境界をどこに設けるかは適宜に設定することが可能である。   The masking and distance conversion processing is executed by the evaluation area setting means 10c. Further, the evaluation area setting unit 10c uses the distance obtained by the distance conversion process as a condition, and as shown in FIG. 6, the inner area Da near the center and the outer area Db near the periphery in the bubble candidate area D2. 2 areas are set. Specifically, the inner area Da and the outer area Db are set in units of areas with the same label. In the example of FIG. 6, an area where the label is 1 is an outer area Db, and an area where the labels are 2 to 6 is an inner area Da. However, it is possible to appropriately set where the boundary between the inner area Da and the outer area Db is provided.

評価領域設定手段10cにより内側領域Daと外側領域Dbとが設定された後には、判定手段10dにおいて、内側領域Daと外側領域Dbとの各画素の明度を用いて気泡か異物かを判定する。本実施形態では透過照明を行っているから、気泡であればTVカメラに入射する光量は、周辺部分のほうが中央部分よりも少なくなる。一例として図7(a)に気泡に対応する濃淡画像の例、図8(a)と図9(a)とにはそれぞれ異なる種類の異物に対応する濃淡画像の例を示す。また、図7(b)、図8(b)、図9(b)には、それぞれ図7(a)、図8(a)、図9(a)の濃淡画像に対応する明度のヒストグラムを示す。ヒストグラムから明らかなように、気泡の場合には、複数のピークが発生しかつ両ピーク間の明暗差が比較的大きいことがわかり、異物の場合には、ピークが1つしか生じない(または、複数のピークが生じても明暗差が小さい)ことがわかる。図9(b)の例では複数のピークが生じかつ明暗差も大きいが、図9(a)から明らかなように中央部分よりも周辺部分のほうが明度が高くなっており、気泡の場合とは明暗の関係が逆転する。   After the inner region Da and the outer region Db are set by the evaluation region setting unit 10c, the determination unit 10d determines whether the bubble is a foreign object or not by using the brightness of each pixel in the inner region Da and the outer region Db. Since transmitted illumination is performed in the present embodiment, the amount of light incident on the TV camera in the case of bubbles is less in the peripheral portion than in the central portion. As an example, FIG. 7A shows an example of a grayscale image corresponding to bubbles, and FIGS. 8A and 9A show examples of grayscale images corresponding to different types of foreign matters. 7B, FIG. 8B, and FIG. 9B show brightness histograms corresponding to the grayscale images in FIG. 7A, FIG. 8A, and FIG. 9A, respectively. Show. As can be seen from the histogram, in the case of bubbles, it can be seen that multiple peaks occur and the contrast between the peaks is relatively large, and in the case of foreign matter, only one peak occurs (or It can be seen that even if multiple peaks occur, the difference in brightness is small. In the example of FIG. 9 (b), a plurality of peaks occur and the difference in brightness is large, but as is clear from FIG. 9 (a), the brightness is higher in the peripheral part than in the central part. The relationship between light and dark is reversed.

すなわち、気泡か異物かを区別するには、中央部分と周辺部分との明暗の大小関係と、ヒストグラムにおけるピークの明暗差とを評価すればよいと言える。そこで、上述したように、気泡候補領域D2の中に内側領域Daと外側領域Dbとを設定しているのである。判定手段10dでは、中央部分と周辺部分との明暗の大小関係を比較するために、内側領域Daと外側領域Dbとにそれぞれ含まれる画素の明度の平均値を求め、これらの平均値の大小を比較する。気泡が満たすべき条件は、内側領域Daから求めた平均値が外側領域Dbから求めた平均値よりも大きい(明るい)ことである。   That is, it can be said that in order to distinguish between a bubble and a foreign object, it is only necessary to evaluate the light / dark relationship between the central portion and the peripheral portion and the light / dark difference of the peak in the histogram. Therefore, as described above, the inner region Da and the outer region Db are set in the bubble candidate region D2. In the determination unit 10d, in order to compare the brightness relationship between the central portion and the peripheral portion, the average value of the brightness of the pixels included in the inner area Da and the outer area Db is obtained, and the magnitude of these average values is determined. Compare. The condition that the bubbles should satisfy is that the average value obtained from the inner area Da is larger (brighter) than the average value obtained from the outer area Db.

また、判定手段10dでは、ヒストグラムにおけるピークの明暗差を評価するために、以下に説明する分離度ηを評価値として用いる。分離度ηは、級間分散σ を全体の分散σ で正規化した値であって数1で定義される。 In addition, the determination unit 10d uses a degree of separation η described below as an evaluation value in order to evaluate the difference in brightness of the peak in the histogram. The degree of separation η is a value obtained by normalizing the interclass variance σ b 2 with the overall variance σ T 2 , and is defined by Equation 1.

ただし、N:気泡候補領域D2の全画素数、n:内側領域Daの画素数、n:外側領域Dbの画素数、P:画素iの明度であり、またオーバーライン付きのP,P,Pは、内側領域Daの全画素の明度の平均値、外側領域Dbの全画素の明度の平均値、気泡候補領域D2の全画素の明度の平均値である。分離度ηは0〜1の間の値をとり、ヒストグラムにおいてピークが完全に独立しているときには値は1になる。そこで、分離度ηに対する閾値を規定しておき、分離度ηがこの閾値以上になるときにはヒストグラムにおいてピークの明暗差が十分に大きくなるようにしておく。つまり、気泡が満たすべき条件は、分離度ηが閾値以上になることである。 Where N is the total number of pixels in the bubble candidate region D2, n 1 is the number of pixels in the inner region Da, n 2 is the number of pixels in the outer region Db, P i is the brightness of the pixel i, and P 1 with an overline , P 2 , and P m are the average brightness values of all the pixels in the inner area Da, the average brightness values of all the pixels in the outer area Db, and the average brightness values of all the pixels in the bubble candidate area D2. The degree of separation η takes a value between 0 and 1, and is 1 when the peaks are completely independent in the histogram. Therefore, a threshold value for the degree of separation η is defined, and when the degree of separation η is greater than or equal to this threshold value, the difference in brightness between peaks is sufficiently large in the histogram. That is, the condition that the bubbles should satisfy is that the degree of separation η is equal to or greater than the threshold value.

まとめると、判定手段10dでは、気泡候補領域D2について、内側領域Daから求めた平均値が外側領域Dbから求めた平均値よりも大きく、かつ分離度ηが閾値以上になるという条件を満たすとき、当該気泡候補領域D2を気泡と判断するのである。   In summary, the determination unit 10d satisfies the condition that the average value obtained from the inner area Da is larger than the average value obtained from the outer area Db and the degree of separation η is equal to or greater than a threshold value for the bubble candidate area D2. The bubble candidate area D2 is determined as a bubble.

以上説明した本実施形態の処理をまとめると図1に示すフローチャートのようになる。すなわち、画像メモリ領域14aに濃淡画像が入力されると(S1)、検査領域設置手段10aにより検査領域D1を設定する(S2)。次に、候補漏域抽出手段10bにおいて、気泡に含まれると考えられる画素を抽出した後(S3)、抽出した画素にラベリングを施し(S4)、画素の連結を行って気泡候補領域D2を抽出する(S5)。また、気泡候補領域D2について画素数を評価し、画素数が定めた個数(閾値)以下であると判定の対象外とし、画素数が閾値より大きい場合のみ判定対象の気泡候補領域D2とする(S6)。ステップS3〜S6が候補領域抽出過程になる。   The processing of the present embodiment described above is summarized as a flowchart shown in FIG. That is, when a grayscale image is input to the image memory area 14a (S1), the inspection area D1 is set by the inspection area setting means 10a (S2). Next, after extracting the pixel considered to be included in the bubble (S3) in the candidate leakage area extraction unit 10b, the extracted pixel is labeled (S4), and the bubble is connected to extract the bubble candidate area D2. (S5). Further, the number of pixels of the bubble candidate region D2 is evaluated, and if the number of pixels is equal to or less than a predetermined number (threshold), it is excluded from the determination target. S6). Steps S3 to S6 are candidate area extraction processes.

気泡候補領域D2が抽出されると、評価領域設定手段10cでは気泡候補領域D2のマスキング(S7)および距離変換処理を行い(S8)、さらに気泡候補領域D2の中に内側領域Daと外側領域Dbとを設定する(S9)。ステップS7〜S9は評価領域設定過程になる。   When the bubble candidate region D2 is extracted, the evaluation region setting means 10c performs masking (S7) and distance conversion processing on the bubble candidate region D2 (S8), and further includes the inner region Da and the outer region Db in the bubble candidate region D2. Are set (S9). Steps S7 to S9 are an evaluation area setting process.

内側領域Daと外側領域Dbとの設定後に、判定手段10dでの判定過程が実行され、内側領域Daの明度の平均値が外側領域Dbの明度の平均値よりも高く、かつ内側領域Daの明度と外側領域Dbの明度との分離度ηが閾値以上であるときに、その気泡候補領域D2を気泡と判定する(S10)。また、2条件のうちの一方でも満たされないときには異物と判定する。   After the setting of the inner area Da and the outer area Db, the determination process in the determining means 10d is executed, the average value of the brightness of the inner area Da is higher than the average value of the brightness of the outer area Db, and the brightness of the inner area Da. When the separation degree η between the brightness of the outer area Db and the brightness of the outer area Db is equal to or greater than the threshold value, the bubble candidate area D2 is determined as a bubble (S10). Further, when one of the two conditions is not satisfied, it is determined as a foreign object.

以上説明したように、内側領域Daと外側領域Dbとの平均明度の大小だけではなく、分離度ηを用いて気泡か異物かの判断を行うから、気泡の位置の時間変化の情報を用いなくとも気泡と異物とを識別することができ、しかも分離度ηの演算は簡単であるから、気泡と異物とを識別するための演算処理の負荷が少なく高速な処理が可能になる。また、本実施形態では、距離変換処理により気泡の形状を反映した形で内側領域Daと外側領域Dbとを設定しているから、気泡の形状を楕円などにより近似する場合よりも判断結果の精度が高くなる。   As described above, not only the average brightness of the inner area Da and the outer area Db but also whether the bubble is a foreign object or not is determined using the separation degree η. In both cases, it is possible to discriminate between bubbles and foreign matter, and the calculation of the degree of separation η is simple, so that the processing load for discriminating between bubbles and foreign matter is small, and high-speed processing is possible. Further, in the present embodiment, the inner region Da and the outer region Db are set in a shape reflecting the shape of the bubbles by the distance conversion process, so that the accuracy of the determination result is higher than when the shape of the bubbles is approximated by an ellipse or the like. Becomes higher.

(実施形態2)
実施形態1では、ステップS10において条件が満たされない場合には、ただちに異物と判断していたが、本実施形態はステップS10において条件が満たされない場合に、内側領域Daと外側領域Dbとの範囲を変化させた後に、ステップS10の条件判断を再び実行し、内側領域Daと外側領域Dbとの範囲を変化させることによってステップS10で条件が満たされたときには気泡と判断するようにしたものである。つまり、図6のように外側領域Dbをラベルが1の領域のみと設定したときにステップS10で気泡と判断する条件が満たされなければ、図10に示すように、外側領域Dbをラベルが1、2の領域を外側領域Dbとし、内側領域Daをラベルが3〜6の領域に縮小する。内側領域Daと外側領域Dbとをこのように変更した後に、ステップS10の条件判断を行うのである。
(Embodiment 2)
In the first embodiment, when the condition is not satisfied in step S10, it is immediately determined as a foreign substance. However, in the present embodiment, when the condition is not satisfied in step S10, the range between the inner area Da and the outer area Db is determined. After the change, the condition determination in step S10 is executed again, and the range between the inner area Da and the outer area Db is changed so that when the condition is satisfied in step S10, it is determined as a bubble. That is, when the outer region Db is set as only the region having the label 1 as shown in FIG. 6, if the condition for determining the bubble in step S10 is not satisfied, the outer region Db is labeled 1 as shown in FIG. The area 2 is defined as an outer area Db, and the inner area Da is reduced to an area having labels 3-6. After changing the inner area Da and the outer area Db in this way, the condition determination in step S10 is performed.

上述のようにステップS10で気泡の条件が満たされなければ外側領域Dbを内側に向かって拡大するとともに内側領域Daを縮小し、ステップS10における気泡の条件が満たされるか否かの判断を繰り返す。また、外側領域Dbが最大になった状態(つまり、ラベルが6の領域のみが内側領域Daになった状態)でもステップS10で気泡の条件が満たされなければ異物と判断する。なお、外側領域Dbをしだいに拡大するから、外側領域Dbの最初の設定の際には設定可能な最小範囲とするのが望ましい。つまり、図示例で言えばラベルが1である領域のみを最初の外側領域Dbとして設定する。他の構成および動作は実施形態1と同様である。   As described above, if the bubble condition is not satisfied in step S10, the outer area Db is enlarged inward and the inner area Da is reduced, and the determination of whether the bubble condition in step S10 is satisfied is repeated. Even in a state where the outer area Db is maximized (that is, a state where only the area labeled 6 is the inner area Da), if the bubble condition is not satisfied in step S10, it is determined as a foreign object. Since the outer area Db is gradually enlarged, it is desirable to set the minimum range that can be set when the outer area Db is initially set. That is, in the illustrated example, only the area with the label 1 is set as the first outer area Db. Other configurations and operations are the same as those of the first embodiment.

本実施形態では気泡候補領域D2を気泡と判断できる可能性を高めることになるから、気泡を異物と判断して不良品に分類する無駄を低減させることができる。また、気泡候補領域D2を設定する条件によって気泡候補領域D2の範囲にはばらつきを生じることがあるが、内側領域Daと外側領域Dbとの範囲を変化させて気泡か異物かを識別するから、気泡候補領域D2の設定のばらつきによらず気泡を精度よく識別することができる。その上、気泡については気泡候補領域D2を設定した後、さらに2重の条件で判断しているから、異物を気泡と誤認することもない。   In the present embodiment, the possibility that the bubble candidate region D2 can be determined as a bubble is increased, and therefore it is possible to reduce the waste of determining a bubble as a foreign object and classifying it as a defective product. In addition, the range of the bubble candidate region D2 may vary depending on the conditions for setting the bubble candidate region D2, but because the range between the inner region Da and the outer region Db is changed to identify whether it is a bubble or a foreign object, Bubbles can be accurately identified regardless of variations in the setting of the bubble candidate region D2. In addition, since the bubble candidate area D2 is set for the bubble and then determined under double conditions, the foreign object is not mistaken for a bubble.

(実施形態3)
上述した実施形態では、内側領域Daと外側領域Dbとの境界が一致する例を示したが、本実施形態は、図11に示すように、内側領域Daと外側領域Dbとの間に隙間を設けている。図11に示す例では、内側領域Daをラベルが5、6の領域とし、外側領域Dbをラベルが1の領域としている。
(Embodiment 3)
In the embodiment described above, an example in which the boundary between the inner region Da and the outer region Db coincides with each other. However, in the present embodiment, as illustrated in FIG. 11, a gap is formed between the inner region Da and the outer region Db. Provided. In the example shown in FIG. 11, the inner area Da is an area having labels 5 and 6, and the outer area Db is an area having a label 1.

このように、内側領域Daと外側領域Dbとの間に間隙を設けると、気泡候補領域D2が気泡であるときには、明度の異なる領域を明確に分離することになり、分離度ηを大きくすることができる。しかも扱う画素数が少なくなるから、演算の負荷が小さく高速な処理が期待できる。他の構成および動作は実施形態1と同様である。   As described above, when the gap is provided between the inner region Da and the outer region Db, when the bubble candidate region D2 is a bubble, regions having different brightness are clearly separated, and the degree of separation η is increased. Can do. Moreover, since the number of pixels to be handled is reduced, it is possible to expect high-speed processing with a small calculation load. Other configurations and operations are the same as those of the first embodiment.

(実施形態4)
本実施形態は、実施形態3の技術に実施形態2と同様に、図1のステップS10の判定過程において条件が満たされない場合にただちに異物と判定するのではなく、外側領域Dbの大きさを変化させた後にステップS10の判定を再度行うことで、気泡を異物と誤認する可能性を低減するものである。たとえば、内側領域Daと外側領域Dbとを図11のように設定した状態では、ステップS10の条件が満たされなかった場合には、図12に示すように、外側領域Dbを内側に拡張し(ラベルが1、2の領域を外側領域Dbとし)、ステップS10の判定を再度行うのである。このようにして、ステップS10の条件が満たされるか、外側領域Dbが内側領域Daに接してもステップS10の条件が満たされない場合に、異物と判断することになる。他の構成および動作は実施形態3と同様である。
(Embodiment 4)
In the present embodiment, as in the second embodiment, the technique of the third embodiment changes the size of the outer region Db instead of immediately determining the foreign object when the condition is not satisfied in the determination process of step S10 in FIG. Then, the determination in step S10 is performed again, thereby reducing the possibility of misidentifying bubbles as foreign matters. For example, in the state where the inner area Da and the outer area Db are set as shown in FIG. 11, when the condition of step S10 is not satisfied, the outer area Db is expanded inward as shown in FIG. The region where the labels are 1 and 2 are set as the outer region Db), and the determination in step S10 is performed again. In this way, if the condition of step S10 is satisfied, or the outer region Db is in contact with the inner region Da and the condition of step S10 is not satisfied, it is determined as a foreign object. Other configurations and operations are the same as those in the third embodiment.

(実施形態5)
上述した各実施形態では、気泡候補領域D2において外側領域Dbが環状に連続し、かつ外側領域Dbの明度が気泡候補領域D2の外周縁の周方向においてはほぼ等しいと想定しているが、TVカメラ2と光源3と気泡との位置関係によっては、図13に示すように、外側領域Dbが環状に連続せず(実線で囲んだ領域を参照)、また気泡候補領域D2の外周縁の周方向において明度にむらを生じることも多い。ただし、このような場合でも、気泡であれば内側領域Daの明度の平均値は外側領域Dbの明度の平均値よりも高く(明るく)なる。
(Embodiment 5)
In each of the above-described embodiments, it is assumed that the outer region Db is annularly continuous in the bubble candidate region D2, and the brightness of the outer region Db is substantially equal in the circumferential direction of the outer peripheral edge of the bubble candidate region D2. Depending on the positional relationship among the camera 2, the light source 3, and the bubble, as shown in FIG. 13, the outer region Db does not continue in a ring shape (see the region surrounded by a solid line), and the periphery of the outer peripheral edge of the bubble candidate region D 2 Often the brightness is uneven in the direction. However, even in such a case, if it is a bubble, the average value of the brightness of the inner area Da will be higher (brighter) than the average value of the brightness of the outer area Db.

そこで、本実施形態では、判定手段10d(図1のステップS10)において、まず内側領域Daの明度の平均値を求める。その後、外側領域Dbの明度の平均値を求めるのではなく、外側領域Dbにおいて内側領域Daの明度の平均値よりも明度の低い(暗い)画素を抽出し、それらの画素が連結領域(着目画素の8近傍の画素が同条件である画素を連結した領域)を形成し、かつ連結領域の画素数が規定数以上か否かを判断する。連結領域が存在し、連結領域の画素数が規定数以上であれば分離度ηを求め、気泡か否かを判定するのである。分離度ηは外側領域Dbのうち内側領域Daよりも明度の低い画素のみを用いれば、分離度ηが大きくなりやすく、気泡を異物とみなす誤認が低減する。   Therefore, in the present embodiment, the determination means 10d (step S10 in FIG. 1) first calculates the average value of the brightness of the inner area Da. Thereafter, instead of obtaining the average value of the brightness of the outer region Db, pixels having a lightness lower (darker) than the average value of the brightness of the inner region Da are extracted in the outer region Db, and these pixels are connected regions (target pixels). Are determined. It is determined whether or not the number of pixels in the connected region is equal to or greater than a specified number. If there is a connected area and the number of pixels in the connected area is equal to or greater than the specified number, the degree of separation η is obtained to determine whether or not it is a bubble. If only a pixel having a lightness lower than that of the inner area Da in the outer area Db is used as the degree of separation η, the degree of separation η is likely to increase, and the misperception that bubbles are regarded as foreign matters is reduced.

ここに、連結領域が存在しなければ異物とみなすことにより分離度ηの演算が不要になるから、無駄な演算を省くことができ、また、外側領域Dbの平均値を求める演算が不要であって、規定数以上の画素を含む連結領域の存在が確認されると分離度ηの演算に移行するから、外側領域Dbの全画素の情報を用いる場合に比較すると演算量が少なくなる。他の構成および動作は上述した各実施形態と同様である。   Here, if the connected region does not exist, it is unnecessary to calculate the degree of separation η by considering it as a foreign object, so that unnecessary calculation can be omitted, and calculation for obtaining the average value of the outer region Db is unnecessary. Thus, when the presence of a connected region including a predetermined number or more of pixels is confirmed, the calculation shifts to the calculation of the degree of separation η. Therefore, the amount of calculation is reduced as compared with the case where information on all pixels in the outer region Db is used. Other configurations and operations are the same as those of the above-described embodiments.

(実施形態6)
本実施形態は、候補領域抽出過程においてエッジを抽出し、当該エッジ上の画素を対象とするハフ変換を行うことにより気泡の輪郭を抽出して気泡候補領域D2を楕円で近似するものである。
(Embodiment 6)
In the present embodiment, an edge is extracted in the candidate area extraction process, and a bubble outline is extracted by performing Hough transform for pixels on the edge, and the bubble candidate area D2 is approximated by an ellipse.

たとえば、図13に示したような外側領域Dbの明度にむらがあるような濃淡画像では、候補領域抽出過程において画素にラベリングを行い画素を連結しても、得られる気泡候補領域D2の外周縁の形状が滑らかにはならない。したがって、このままの外周縁の形状を気泡候補領域D2の形状として反映させると、本来は明度が高く内側領域Daとなるべき画素が外側領域Dbに含まれることがあり、気泡と異物との判定が正常に行われない場合を生じる。   For example, in a grayscale image with uneven brightness in the outer region Db as shown in FIG. 13, even if the pixels are labeled and connected in the candidate region extraction process, the outer peripheral edge of the obtained bubble candidate region D2 The shape does not become smooth. Therefore, when the shape of the outer peripheral edge as it is is reflected as the shape of the bubble candidate region D2, pixels that should originally be light and have the inner region Da may be included in the outer region Db. The case where it is not performed normally occurs.

そこで、本実施形態では実施形態1において説明した技術で抽出した気泡候補領域D2を前候補領域とし、当該前候補領域を楕円で近似し、近似した楕円内を気泡候補領域D2として用いている。すなわち、候補領域抽出過程では、まず濃淡画像から実施形態1の技術により前候補領域を抽出する。次に、前候補領域内の画素について濃度変化が極大になる領域を抽出する。この種の処理方法は周知であるから詳述しないが、たとえばソーベルフィルタを用いる。濃度変化が極大になる領域を細線化して1画素幅とすることでエッジが抽出される。こうして求めたエッジは、一部が連続し一部が分断されていると考えられる。たとえば、図13に示した濃淡画像からエッジを抽出すれば、上部と右下部とでエッジが分断されると考えられる。気泡の画像から得られるエッジであれば通常は楕円(円を含む)になると考えられるから、分断されたエッジを楕円の一部とみなし、エッジ上の画素を対象とするハフ変換を行い、近似できる楕円を抽出する。ハフ変換により楕円に近似する技術は、たとえば、渡辺孝志、柴田俊浩,“Hough変換と階層化画像を用いた欠損楕円の検出,”信学論Vol.J73−D−II No.2 pp.159−166,Feb.1990に記載されている技術を用いる。   Therefore, in the present embodiment, the bubble candidate region D2 extracted by the technique described in the first embodiment is used as a previous candidate region, the previous candidate region is approximated by an ellipse, and the approximated inside of the ellipse is used as the bubble candidate region D2. That is, in the candidate area extraction process, first, the previous candidate area is extracted from the grayscale image by the technique of the first embodiment. Next, an area where the change in density is maximum is extracted for the pixels in the previous candidate area. Although this type of processing method is well known and will not be described in detail, for example, a Sobel filter is used. An edge is extracted by thinning a region where the density change is maximized to one pixel width. The edges thus obtained are considered to be partially continuous and partially divided. For example, if an edge is extracted from the grayscale image shown in FIG. 13, it is considered that the edge is divided at the upper part and the lower right part. If it is an edge obtained from a bubble image, it is usually considered to be an ellipse (including a circle). Therefore, consider the divided edge as a part of the ellipse, perform Hough transform on the pixels on the edge, and approximate Extract possible ellipses. Techniques for approximating an ellipse by Hough transform are described in, for example, Takashi Watanabe and Toshihiro Shibata, “Detection of a missing ellipse using Hough transform and layered image,” Science theory Vol. J73-D-II No. 2 pp. 159-166, Feb. The technique described in 1990 is used.

上述のようにエッジを抽出しハフ変換を用いることで前候補領域の外周縁に近似する楕円を設定することができるから、この楕円内を気泡候補領域D2に用いる。こうして求めた気泡候補領域D2に対して内側領域Daと外側領域Dbとを設定すると、気泡候補領域D2の中央部における明度の高い領域を内側領域Daとして設定することができるから、内側領域Daと外側領域Dbとを目的通りに設定することができ、判定過程における気泡と異物との分離精度が高くなる。なお、エッジに含まれる画素に対してハフ変換を行う代わりに、前候補領域の外周縁上の画素に対してハフ変換を行うようにしても同様の結果を得ることができる。   As described above, by extracting the edge and using the Hough transform, an ellipse that approximates the outer peripheral edge of the previous candidate region can be set, so the inside of this ellipse is used as the bubble candidate region D2. If the inner region Da and the outer region Db are set for the bubble candidate region D2 thus obtained, a region with high brightness at the center of the bubble candidate region D2 can be set as the inner region Da. The outer region Db can be set as intended, and the separation accuracy between bubbles and foreign matters in the determination process is increased. Note that the same result can be obtained by performing Hough transform on pixels on the outer peripheral edge of the previous candidate area instead of performing Hough transform on the pixels included in the edge.

ところで、前候補領域の外周縁を楕円で近似する際に、前候補領域から楕円のパラメータとして長径と短径と傾き角度とを決めることが必要になる。通常、外力が作用していなければ気泡は上方に移動するから、楕円の長径の方向は画像内での垂直方向に一致する。そこで、画像の垂直方向に対する楕円の長径の方向の傾斜角度を傾き角度とし、ハフ変換で投票する際の初期値を0度とする。また、長径および短径は前候補領域に外接する矩形領域(画像の水平方向と垂直方向との辺を持つ矩形)を設定し、矩形領域の各辺の長さのうち長いほうを長径、短いほうを短径とする。このようにして前候補領域から求めたパラメータを初期値として楕円に近似する演算を行う。   By the way, when the outer periphery of the previous candidate area is approximated by an ellipse, it is necessary to determine the major axis, the minor axis, and the inclination angle as the ellipse parameters from the previous candidate area. Normally, if no external force is applied, the bubble moves upward, and therefore the direction of the major axis of the ellipse coincides with the vertical direction in the image. Therefore, the inclination angle in the direction of the major axis of the ellipse with respect to the vertical direction of the image is set as the inclination angle, and the initial value when voting by Hough transform is set to 0 degree. The major axis and minor axis are set as a rectangular area circumscribing the previous candidate area (a rectangle having sides in the horizontal and vertical directions of the image), and the longer one of the lengths of each side of the rectangular area is the major axis and the shorter one. This is the short diameter. In this way, an operation for approximating an ellipse is performed using the parameters obtained from the previous candidate area as initial values.

なお、矩形領域を設定する代わりに前候補領域の慣性二次モーメントを求め、主軸の方向を長径の方向として主軸上で長径を求め、主軸に直交し長軸の中点を通る直線上で短径を求めるとともに、画像の垂直方向に対する主軸の角度を傾き角度に用いるようにしてもよい。他の構成および動作は上述した各実施形態と同様である。   Instead of setting a rectangular area, the inertial moment of the previous candidate area is obtained, the major axis direction is taken as the major axis direction, the major axis is obtained on the major axis, and the short axis is obtained on the straight line perpendicular to the major axis and passing through the midpoint of the major axis. While obtaining the diameter, the angle of the main axis with respect to the vertical direction of the image may be used as the tilt angle. Other configurations and operations are the same as those of the above-described embodiments.

(実施形態7)
実施形態6において示した文献に記載されている方法を用い、一部が連続し一部が分断されているエッジからハフ変換により近似する楕円を求める手順は次のようになる。
(Embodiment 7)
Using the method described in the literature shown in Embodiment 6, the procedure for obtaining an ellipse approximated by Hough transform from an edge that is partially continuous and partially divided is as follows.

まず、エッジ上の各画素を参照点とするとともに、テンプレートとなる楕円の中心を複数個の参照点に位置させ、テンプレート上の各点を投票空間に投票する。投票空間で最大投票数を持つ画素と投票数とテンプレートのパラメータ(長径、短径、傾き角度)を登録する。パラメータを変化させて上述した処理を繰り返した後に最大の投票数が得られた画素の位置は、近似する楕円の中心に相当すると考えられ、またそのテンプレートのパラメータは近似する楕円のパラメータになる。   First, each pixel on the edge is set as a reference point, and the center of an ellipse serving as a template is positioned at a plurality of reference points, and each point on the template is voted on a voting space. Register the pixels having the maximum number of votes in the voting space, the number of votes, and the template parameters (major axis, minor axis, inclination angle). The position of the pixel from which the maximum number of votes is obtained after repeating the above-described processing while changing the parameter is considered to correspond to the center of the approximate ellipse, and the template parameter is the parameter of the approximate ellipse.

つまり、近似する楕円のパラメータとテンプレートとなる楕円のパラメータとが一致していると、近似する楕円の中心で投票数が最大になるという性質を利用し、テンプレートを用いて近似する楕円を求めることができる。ここで、エッジ上の2個の参照点にそれぞれテンプレートを設定し、2個ずつのテンプレートについて投票を行い、その結果を集計した結果を投票数とすることが考えられている。この手順を用いると、投票数の差分が大きくなりやすく投票数の差分を見つけやすくなる。とくに、2個のテンプレートの中心間の距離を大きくとれば、近似しようとする楕円よりもサイズの小さいテンプレートでは交点がほとんど得られず、一致しないテンプレートの多くを判断の対象外とすることができるから処理負荷が小さくなる。   In other words, using the property that the number of votes is maximized at the center of the approximate ellipse when the parameters of the approximate ellipse and the template ellipse match, the approximate ellipse using the template is obtained. Can do. Here, it is considered that a template is set for each of two reference points on the edge, voting is performed for each of the two templates, and the result of totaling the results is used as the number of votes. If this procedure is used, the difference in the number of votes tends to increase, and the difference in the number of votes can be easily found. In particular, if the distance between the centers of two templates is made large, intersection points are hardly obtained in a template smaller in size than an ellipse to be approximated, and many templates that do not match can be excluded from judgment. Therefore, the processing load is reduced.

そこで、本実施形態では、実施形態6のように楕円で近似しようとするエッジに外接する矩形領域を設定し、矩形領域の中心を近似しようとする楕円の中心とし、この中心を通り長径方向に延長された直線と短径方向に延長された直線とによって、エッジを4つの領域に分割する。そして、分割された4領域のうち中心を挟んで対角位置である2領域の参照点にそれぞれテンプレートを位置させて投票数を求めるのである。4分割した領域のうち右上領域を第1領域とし、中心の回りで左回りに第2領域、第3領域、第4領域と呼ぶことにすれば、第1領域と第3領域との参照点に設定した2個ずつのテンプレートの組合せと、第2領域と第4領域との参照点に設定した2個ずつのテンプレートの組合せとでそれぞれ投票を行い投票数を評価するのである。   Therefore, in the present embodiment, as in the sixth embodiment, a rectangular area circumscribing the edge to be approximated by an ellipse is set, and the center of the rectangular area is set as the center of the ellipse to be approximated. The edge is divided into four regions by the extended straight line and the straight line extended in the minor axis direction. Then, the template is positioned at the reference points of the two regions that are diagonal positions across the center among the four divided regions, and the number of votes is obtained. Of the four divided areas, the upper right area is the first area, and the second area, the third area, and the fourth area are counterclockwise around the center, and the reference point between the first area and the third area. Each of the two combinations of templates set in the above and the two combinations of templates set as the reference points of the second area and the fourth area respectively vote to evaluate the number of votes.

第1領域から第4領域の各領域で参照点の個数が等しいと仮定し、参照点の総数をn個とすれば、本実施形態でのテンプレートの組合せ数は、(n/4)×(n/4)×2であって、n/8になる。実際には各領域の参照点の個数は等分にならないから、(n/4)個ではないが、この値は組合せ数の目安になる。これに対して、エッジに含まれるすべての参照点を2個ずつ組み合わせてテンプレートを設定する場合の組合せ数は、であって、(n−n)/2であるから、本実施形態のようにエッジを4領域に分割して対角位置の領域に含まれる参照点の組合せによって投票を行うほうが、テンプレートの組合せに伴う処理負荷を小さくすることができる。他の構成および動作は上述した各実施形態と同様である。 Assuming that the number of reference points is the same in each of the first region to the fourth region, and the total number of reference points is n, the number of template combinations in this embodiment is (n / 4) × ( n / 4) a × 2, becomes n 2/8. Actually, since the number of reference points in each region is not equally divided, it is not (n / 4), but this value is a measure of the number of combinations. Respect, the number of combinations for setting the template by combining all the reference points included in the edge two by two in this, a n C 2, because it is (n 2 -n) / 2, this embodiment When the edge is divided into four regions as in the form and voting is performed by combining reference points included in the diagonal region, the processing load associated with the combination of templates can be reduced. Other configurations and operations are the same as those of the above-described embodiments.

本発明の実施形態の処理手順を示すフロー図である。It is a flowchart which shows the process sequence of embodiment of this invention. 同上の装置を示す概略構成図である。It is a schematic block diagram which shows an apparatus same as the above. 同上に用いる画像処理装置を示すブロック図である。It is a block diagram which shows the image processing apparatus used for the same as the above. 同上における検査領域の概念を示す図である。It is a figure which shows the concept of the test | inspection area | region in the same as the above. 同上における距離変換処理の例を示す図である。It is a figure which shows the example of the distance conversion process in the same as the above. 同上における内側領域と外側領域との設定例を示す図である。It is a figure which shows the example of a setting of the inner area | region and outer area | region in the same as the above. (a)は同上において気泡に対応する画像例を示す図、(b)は同上において気泡に対応するヒストグラムを示す図である。(A) is a figure which shows the example of an image corresponding to a bubble in the same as the above, (b) is a figure which shows the histogram corresponding to a bubble in the same as the above. (a)は同上において異物に対応する画像例を示す図、(b)は同上において異物に対応するヒストグラムを示す図である。(A) is a figure which shows the example of an image corresponding to a foreign material in the same as the above, (b) is a figure which shows the histogram corresponding to a foreign material in the same as the above. (a)は同上において異物に対応する画像例を示す図、(b)は同上において異物に対応するヒストグラムを示す図である。(A) is a figure which shows the example of an image corresponding to a foreign material in the same as the above, (b) is a figure which shows the histogram corresponding to a foreign material in the same as the above. 同上において内側領域と外側領域との設定例を示す図である。It is a figure which shows the example of a setting of an inner area | region and an outer area | region in the same as the above. 同上において内側領域と外側領域との設定例を示す図である。It is a figure which shows the example of a setting of an inner area | region and an outer area | region in the same as the above. 同上において内側領域と外側領域との設定例を示す図である。It is a figure which shows the example of a setting of an inner area | region and an outer area | region in the same as the above. 同上において気泡候補領域の画像例を示す図である。It is a figure which shows the example of an image of a bubble candidate area | region in the same as the above.

符号の説明Explanation of symbols

1 画像処理装置
2 TVカメラ(撮像手段)
3 光源
10b 候補領域抽出手段
10c 評価領域設定手段
10d 判定手段
X 容器
DESCRIPTION OF SYMBOLS 1 Image processing apparatus 2 TV camera (imaging means)
3 Light source 10b Candidate area extraction means 10c Evaluation area setting means 10d Determination means X Container

Claims (7)

液体の入った透光性材料からなる容器を光源により照明するとともに容器を透過した光を撮像手段で撮像し、撮像手段で得られた濃淡画像に画像処理を施して評価することにより容器内の液中における気泡と異物とを識別する異物検査方法であって、濃淡画像において明度に変化を生じている領域を気泡の存在する領域の候補である気泡候補領域として抽出する候補領域抽出過程と、気泡候補領域の外周縁との距離を条件に用いて気泡候補領域内に内側領域と外側領域との2領域を設定する評価領域設定過程と、内側領域の明度の平均値が外側領域の明度の平均値よりも高く、かつ内側領域の画素の明度と外側領域の画素の明度との級間分散を全体の分散で正規化した値を分離度に用い、分離度が規定の閾値以上であるときに当該気泡候補領域を気泡と判定する判定過程とを有することを特徴とする容器内の異物検査方法。 A container made of a translucent material containing a liquid is illuminated by a light source, and the light transmitted through the container is imaged by an imaging unit, and the grayscale image obtained by the imaging unit is subjected to image processing and evaluated to evaluate the inside of the container. A foreign substance inspection method for identifying bubbles and foreign substances in a liquid, wherein a candidate area extraction process of extracting an area in which lightness is changed in a grayscale image as a bubble candidate area that is a candidate for an area where bubbles exist; An evaluation region setting process for setting two regions, an inner region and an outer region, in the bubble candidate region using the distance from the outer peripheral edge of the bubble candidate region as a condition, and the average value of the lightness of the inner region is the lightness of the outer region When the value that is higher than the average value and the inter-class variance between the brightness of the pixels in the inner area and the brightness of the pixels in the outer area is normalized by the overall variance is used as the degree of separation, and the degree of separation is equal to or greater than the specified threshold The bubble candidate area Particle inspection method of a container and having a determining process and bubbles. 前記評価領域設定過程で前記内側領域と前記外側領域とは境界が接するように設定され、前記判定過程で気泡と判定できないときには、前記評価領域設定過程における条件の距離を変更することにより外側領域を広げ内側領域を狭めて判定過程を再度実行し、評価領域設定過程で次の外側領域を設定できなくなるか判定過程で気泡と判定できるようになるまで評価領域設定過程と判定過程とを繰り返すことを特徴とする請求項1記載の容器内の異物検査方法。   In the evaluation area setting process, the inner area and the outer area are set so that the boundary is in contact, and when it is not possible to determine the bubble in the determination process, the outer area is changed by changing the distance of the condition in the evaluation area setting process. Repeat the determination process again by narrowing the expanded inner area, and repeating the evaluation area setting process and the determination process until the next outer area cannot be set in the evaluation area setting process or until it can be determined as a bubble in the determination process. The method for inspecting foreign matter in a container according to claim 1, wherein: 前記評価領域設定過程で前記内側領域と前記外側領域とは互いの間に隙間を持つように設定されることを特徴とする請求項1記載の容器内の異物検査方法。   2. The foreign substance inspection method in a container according to claim 1, wherein the inner region and the outer region are set to have a gap between each other in the evaluation region setting process. 前記判定過程で気泡と判定できないときには、前記評価領域設定過程における条件の距離を変更することにより前記外側領域を広げて判定過程を再度実行し、評価領域設定過程で次の内側領域を設定できなくなるか判定過程で気泡と判定できるようになるまで評価領域設定過程と判定過程とを繰り返すことを特徴とする請求項3記載の容器内の異物検査方法。   If it is not possible to determine a bubble in the determination process, the determination process is performed again by expanding the outer area by changing the distance of the condition in the evaluation area setting process, and the next inner area cannot be set in the evaluation area setting process. 4. The foreign matter inspection method in a container according to claim 3, wherein the evaluation region setting process and the determination process are repeated until it can be determined that the bubble is determined in the determination process. 前記判定過程では、前記内側領域の明度の平均値を求めた後、前記外側領域の明度の平均値との大小の判定に代えて、外側領域において内側領域の明度の平均値よりも明度の低い画素からなる規定の画素数以上の連結領域の存否を判定し、当該連結領域が存在するときに分離度を閾値と比較することを特徴とする請求項1ないし請求項4のいずれか1項に記載の容器内の異物検査方法。   In the determination process, after obtaining the average value of the lightness of the inner region, instead of determining the lightness average value of the outer region, the lightness of the outer region is lower than the average value of the lightness of the inner region. 5. The method according to claim 1, further comprising: determining whether or not there is a connected region having a predetermined number of pixels or more, and comparing the separation degree with a threshold value when the connected region is present. The foreign substance inspection method in the container described. 前記候補領域抽出過程では、背景との明度値の差を用いて求めた前候補領域の外周縁を楕円で近似し、当該楕円内を前記気泡候補領域とすることを特徴とする請求項1ないし請求項5のいずれか1項に記載の容器内の異物検査方法。   2. The candidate area extraction process, wherein an outer periphery of a previous candidate area obtained by using a difference in brightness value from a background is approximated by an ellipse, and the inside of the ellipse is set as the bubble candidate area. The foreign matter inspection method in a container given in any 1 paragraph of Claim 5. 液体の入った透光性材料からなる容器に光を照射する光源と、光源から容器に照射され容器を透過した光を撮像する撮像手段と、撮像手段で得られた濃淡画像に画像処理を施して評価することにより容器内の液中における気泡と異物とを識別する画像処理装置とを備え、画像処理装置は、濃淡画像において明度に変化を生じている領域を気泡の存在する領域の候補である気泡候補領域として抽出する候補領域抽出手段と、気泡候補領域の外周縁との距離を条件に用いて気泡候補領域内に内側領域と外側領域との2領域を設定する評価領域設定手段と、内側領域の明度の平均値が外側領域の明度の平均値よりも高く、かつ内側領域の画素の明度と外側領域の画素の明度との級間分散を全体の分散で正規化した値を分離度に用い、分離度が規定の閾値以上であるときに当該気泡候補領域を気泡と判定する判定手段とを有することを特徴とする容器内の異物検査装置。 A light source for irradiating light to a container made of a light-transmitting material containing liquid, an imaging means for imaging light that is irradiated from the light source to the container and transmitted through the container, and a grayscale image obtained by the imaging means is subjected to image processing. An image processing device that distinguishes bubbles and foreign substances in the liquid in the container by evaluating the image, and the image processing device is a candidate for a region where bubbles exist in a region where the brightness changes in a grayscale image. A candidate area extracting means for extracting as a certain bubble candidate area, an evaluation area setting means for setting two areas, an inner area and an outer area, in the bubble candidate area using the distance from the outer periphery of the bubble candidate area as a condition; The average value of the lightness of the inner region is higher than the average value of the lightness of the outer region , and the value obtained by normalizing the inter-class variance between the lightness of the pixels in the inner region and the lightness of the pixels in the outer region by the overall variance It used to, the degree of separation is defined Particle inspection apparatus in the container, characterized by having a bubble and determining means for determining the bubble candidate region when it is a value or more.
JP2005048005A 2005-02-23 2005-02-23 Method and apparatus for inspecting foreign matter in container Expired - Fee Related JP4529728B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005048005A JP4529728B2 (en) 2005-02-23 2005-02-23 Method and apparatus for inspecting foreign matter in container

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005048005A JP4529728B2 (en) 2005-02-23 2005-02-23 Method and apparatus for inspecting foreign matter in container

Publications (2)

Publication Number Publication Date
JP2006234515A JP2006234515A (en) 2006-09-07
JP4529728B2 true JP4529728B2 (en) 2010-08-25

Family

ID=37042339

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005048005A Expired - Fee Related JP4529728B2 (en) 2005-02-23 2005-02-23 Method and apparatus for inspecting foreign matter in container

Country Status (1)

Country Link
JP (1) JP4529728B2 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5586889B2 (en) * 2009-07-29 2014-09-10 株式会社日立ハイテクノロジーズ Particle image analyzer
CN101819164B (en) * 2010-05-14 2011-06-01 山东大学 Device and method for detecting impurities after filling of beverage
EP2453233A1 (en) * 2010-11-16 2012-05-16 Roche Diagnostics GmbH Method and apparatus for detecting foam on a liquid surface in a vessel
JP5757724B2 (en) * 2010-12-10 2015-07-29 オリンパス株式会社 Image processing apparatus, image processing method, and image processing program
JP5884759B2 (en) * 2013-03-22 2016-03-15 カシオ計算機株式会社 Image processing apparatus, image processing method, and program
JP6628185B2 (en) * 2016-03-11 2020-01-08 パナソニックIpマネジメント株式会社 Inspection method for transparent objects
KR101949705B1 (en) * 2016-07-21 2019-02-19 대전보건대학 산학협력단 SAP Connector Air detection method for Intravenous fluids Medication error Prevention
WO2021205545A1 (en) * 2020-04-07 2021-10-14 株式会社ピリカ Estimation device, estimation method, and estimation program
US20240054654A1 (en) * 2020-12-24 2024-02-15 Syntegon Technology K.K. Air bubble identification device, air bubble identification method, and foreign matter detection system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003329612A (en) * 2002-05-16 2003-11-19 Asahi Glass Co Ltd Test method of object to be tested
JP2004354100A (en) * 2003-05-27 2004-12-16 Matsushita Electric Works Ltd Method and apparatus for detecting foreign matter in liquid within container
JP2005241304A (en) * 2004-02-24 2005-09-08 Matsushita Electric Works Ltd Appearance inspection method
JP2006010612A (en) * 2004-06-29 2006-01-12 Mutual Corp Method of determining bubble in liquid container

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003329612A (en) * 2002-05-16 2003-11-19 Asahi Glass Co Ltd Test method of object to be tested
JP2004354100A (en) * 2003-05-27 2004-12-16 Matsushita Electric Works Ltd Method and apparatus for detecting foreign matter in liquid within container
JP2005241304A (en) * 2004-02-24 2005-09-08 Matsushita Electric Works Ltd Appearance inspection method
JP2006010612A (en) * 2004-06-29 2006-01-12 Mutual Corp Method of determining bubble in liquid container

Also Published As

Publication number Publication date
JP2006234515A (en) 2006-09-07

Similar Documents

Publication Publication Date Title
JP4529728B2 (en) Method and apparatus for inspecting foreign matter in container
Shen et al. Bearing defect inspection based on machine vision
EP3176751B1 (en) Information processing device, information processing method, computer-readable recording medium, and inspection system
JP4254347B2 (en) Method and apparatus for detecting foreign matter in liquid in container
WO2017141611A1 (en) Defect detection apparatus, defect detection method, and program
US7171036B1 (en) Method and apparatus for automatic measurement of pad geometry and inspection thereof
JP2016181098A (en) Area detection device and area detection method
JP2007147407A (en) Visual examination method
Chiou et al. Flaw detection of cylindrical surfaces in PU-packing by using machine vision technique
Choi et al. Deep learning based defect inspection using the intersection over minimum between search and abnormal regions
Duong et al. Vision inspection system for pharmaceuticals
WO2014103617A1 (en) Alignment device, defect inspection device, alignment method, and control program
JP2017166957A (en) Defect detection device, defect detection method and program
CN112666175B (en) Foreign matter inspection device and foreign matter inspection method
JP5067677B2 (en) Defect detection method, defect detection apparatus, and program
JP2002140713A (en) Image processing method and image processor
Vishwanatha et al. A Survey on Defect Detection of Vials
US20240054654A1 (en) Air bubble identification device, air bubble identification method, and foreign matter detection system
Islam et al. Image processing techniques for quality inspection of gelatin capsules in pharmaceutical applications
JP2009229200A (en) Foreign matter inspection method and foreign matter inspection device
KR102245851B1 (en) Method of extracting region-of-interest for container image
Liu et al. A multiple scale spaces empowered approach for welding radiographic image defect segmentation
JP2017166956A (en) Defect detection device detection method and program
Regayeg et al. Automatic detection system for verification and quality control: Application to water connector inspection
Cao et al. Automated visual inspection of solar cell images using adapted morphological and edge detection algorithms

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20071011

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100202

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100216

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100419

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: 20100518

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100531

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130618

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees