JP4917364B2 - Inspection apparatus and inspection method - Google Patents
Inspection apparatus and inspection method Download PDFInfo
- Publication number
- JP4917364B2 JP4917364B2 JP2006186038A JP2006186038A JP4917364B2 JP 4917364 B2 JP4917364 B2 JP 4917364B2 JP 2006186038 A JP2006186038 A JP 2006186038A JP 2006186038 A JP2006186038 A JP 2006186038A JP 4917364 B2 JP4917364 B2 JP 4917364B2
- Authority
- JP
- Japan
- Prior art keywords
- image data
- scanning direction
- sub
- range
- light
- 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
Links
- 238000007689 inspection Methods 0.000 title claims description 93
- 238000000034 method Methods 0.000 title claims description 32
- 238000001514 detection method Methods 0.000 claims description 30
- 238000000605 extraction Methods 0.000 claims description 23
- 230000032258 transport Effects 0.000 claims description 17
- 239000000284 extract Substances 0.000 claims description 7
- 238000003384 imaging method Methods 0.000 claims description 7
- 230000001678 irradiating effect Effects 0.000 claims 1
- 238000012545 processing Methods 0.000 description 97
- 238000005259 measurement Methods 0.000 description 62
- 235000019504 cigarettes Nutrition 0.000 description 44
- 241000208125 Nicotiana Species 0.000 description 30
- 235000002637 Nicotiana tabacum Nutrition 0.000 description 30
- 238000002834 transmittance Methods 0.000 description 19
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 18
- 239000000835 fiber Substances 0.000 description 16
- 230000008569 process Effects 0.000 description 14
- 239000002131 composite material Substances 0.000 description 13
- 238000005286 illumination Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 7
- 238000004364 calculation method Methods 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 238000012360 testing method Methods 0.000 description 4
- 230000002159 abnormal effect Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000007796 conventional method Methods 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 239000000203 mixture Substances 0.000 description 2
- 230000000087 stabilizing effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000013075 data extraction Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000006866 deterioration Effects 0.000 description 1
- 230000004069 differentiation Effects 0.000 description 1
- 238000009792 diffusion process Methods 0.000 description 1
- 238000003708 edge detection Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000035699 permeability Effects 0.000 description 1
- 238000001454 recorded image Methods 0.000 description 1
- 229920006395 saturated elastomer Polymers 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
- 230000002194 synthesizing effect Effects 0.000 description 1
Images
Landscapes
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
- Length Measuring Devices By Optical Means (AREA)
Description
本発明は、光透過率が異なる2つ以上の部材を配列させた円筒状の光拡散体における部材の配列状態の良否を判定する欠陥検査方法及び欠陥検査装置に関する。 The present invention relates to a defect inspection method and a defect inspection apparatus for determining the quality of an arrangement state of members in a cylindrical light diffuser in which two or more members having different light transmittances are arranged.
たばこフィルタなどの透過率の異なる2種類以上の部材が交互に並んだ円筒形状の光拡散体を検査対象とし、これを検査することが行われている。このような検査対象を検査する場合、一般に、透過光をラインCCD(Charge Coupled Devices)カメラで撮像することによって得られる画像からの波形を基に、検査対象の両端及び各部材の境界位置を検出し、全長、配列不良、部材間の隙間の有無、端部材長等の検査をする。 A cylindrical light diffuser in which two or more kinds of members having different transmittances such as a cigarette filter are alternately arranged is used as an inspection object, and this is inspected. When inspecting such an inspection target, in general, the boundary positions of both ends of the inspection target and each member are detected based on a waveform from an image obtained by imaging the transmitted light with a line CCD (Charge Coupled Devices) camera. The total length, poor alignment, presence / absence of gaps between members, end member length, etc. are inspected.
たばこフィルタの検査装置は、例えば特許文献1による図12に示すように、タバコのフィルタ1は、ドラム9により半径方向に1本毎に搬送され、ドラム9には、フィルタ1の直径より小さく、フィルタ1より長いスリット32aが軸方向に形成されている。フィルタ1の検査位置には、スリット32aを介してフィルタ1を照明するために、ライトガイド33の端面33aがライン状に配列されている。ライトガイド33は、光源34が照射する光を誘導する。フィルタ1の透過光の光路には、ラインCCDカメラ3が配置され、また、ライトガイド33の端面33aとスリット32aの間には、フィルタ1の両端とスリット32aの間を通過する光によりラインCCDカメラ3の受光素子が飽和することを防止するための減光部材36がスリット32aの軸方向の両端の位置を調節するように配置されている。
ラインCCDカメラ3で撮影したタバコのフィルタ1の透過光の画像は、画像処理装置10が保存し、保存した画像を画像処理装置10が画像処理することにより、タバコのフィルタ1の検査を行う。
In the cigarette filter inspection apparatus, for example, as shown in FIG. 12 according to
The image of the transmitted light of the
また、フィルタ1は、図13(a)に示すように、活性炭が入っていない繊維束1bと、活性炭が入っている繊維束1aが交互に並んだ構造をしている。活性炭が入っていない繊維束1bと活性炭が入っている繊維束1aは、透過率が異なる部材である。ここでは、
繊維束1aと繊維束1bのうち、透過率が低い方の部材である繊維束1aを暗部材と呼び、透過率が高い方の部材である繊維束1bを明部材と呼ぶことにする。以下、暗部材と明部材という言葉を用いて説明する。
As shown in FIG. 13A, the
Of the
このような構成において、フィルタ1の透過光を撮像した場合、その波形の階調度のレベルは、例えば図13(b)に示すような波形の階調度のレベルとして検出される。この検出された階調度のレベルより、フィルタ1の両端外側を回り込んだ光のレベルと活性炭が入っていない繊維束1bの透過光のレベルの間の閾値41によりフィルタ1の全長の長さを取得し、取得した全長の長さが正しいか検査する。
また、活性炭が入っていない繊維束1bと活性炭入りの繊維束1aの各透過光の階調度のレベルの間の閾値42により2つの繊維束1a、1bの境界が取得され、取得された境界より繊維束1a、1bの各長さが正しいか、および2つの繊維束1a、1bが交互に配列されているかを検査することができる。また、フィルタ1の左端と右端になる部材である繊維束1aの長さである端部材長も取得し、取得した端部材長の検査を行う。
In such a configuration, when the light transmitted through the
Further, the boundary between the two
また、例えば、特許文献2では、光拡散体の両端を検出するための閾値と、光透過率が異なる2つの部材を識別するための閾値の2つを予め設定し、両端検出用の閾値での2値化による結果から、両端位置及び部材間の空間を検出し、尚且つ光拡散体が通過するタイミングを抽出している。また、部材識別用の閾値での2値化による結果から、各部材の位置及び配列状態の判定を行い、また、光拡散体の2つの部材が交互に配置されているかどうかの判定を行っている。
Further, for example, in
特許文献1または特許文献2による検査装置では、円筒状光拡散体の画像データは、ラインCCDカメラ3からのライン状の画像データである。ラインCCDカメラ3は円筒状光拡散体であるたばこフィルタ1を搬送中に撮影するため、搬送によって、ラインCCDカメラ3が撮影する円筒状光拡散体の厚さが変化する。また、ドラム9により光は遮断され、ドラム9のスリット32aの部分からしか光は通過することができない。そのためドラム9の回転により、ラインCCDカメラ3がスリット32aを撮影する面積が変化し、スリット32aを通過する透過光の強度も変化する。そのため、搬送中によって、ライン状の信号としての画像データの強度も変化する。このため、従来の装置においては、副走査方向に複数得られたライン状の画像データにおいて、画像データの階調度のレベルが最大となるライン状の画像データのみを用いて、円筒状光拡散体の検査を行っている。
しかしながら、副走査方向において画像データの階調度のレベルが最大となる1ラインのみの画像データを用いて検出を行う場合、画像データのレベルが最大となる1ラインの画像データに何らかの影響によりノイズが混入したとき、他のラインの画像データにはノイズが混入していない場合であっても、正常な検査が行うことができない。
また、副走査方向の画像データの階調度のレベルが最大となる円筒状光拡散体の副走査方向の部位も毎回揺らぐため、複数の円筒状光拡散体について、同一な副走査方向の部位による画像データにより検査を行うことが出来ない。
また、検査対象となる複数の円筒状光拡散体ごとに、副走査方向の画像データの階調度のレベルが最大となる円筒状光拡散体の副走査方向の部位が異なるため、適正な閾値が円筒状光拡散体毎に異なり、常に適正な閾値を維持することは困難である。また、複数の円筒状光拡散体の画像データ同士を比較することも困難となる。
However, when detection is performed using only one line of image data having the maximum gradation level in the sub-scanning direction, noise is caused by some influence on the image data of one line having the maximum level of image data. When mixed, normal inspection cannot be performed even if the image data of other lines are not mixed with noise.
In addition, since the portion of the cylindrical light diffuser in the sub-scanning direction in which the gradation level of the image data in the sub-scanning direction becomes maximum fluctuates every time, a plurality of cylindrical light diffusers are subjected to the same portion in the sub-scanning direction. Cannot inspect by image data.
In addition, since the portion of the cylindrical light diffuser in the sub-scanning direction in which the gradation level of the image data in the sub-scanning direction is maximized is different for each of the plurality of cylindrical light diffusers to be inspected, an appropriate threshold value is set. It is different for each cylindrical light diffuser, and it is difficult to always maintain an appropriate threshold value. In addition, it becomes difficult to compare image data of a plurality of cylindrical light diffusers.
本発明は、このような事情に鑑みてなされたもので、その目的は、光透過率及び長さが異なる2つの部材を交互に配置させた円筒状光拡散体の部材配列状態を安定して検査することができる画像データを算出する検査装置を提供することにある。 The present invention has been made in view of such circumstances, and the object thereof is to stabilize the member arrangement state of the cylindrical light diffuser in which two members having different light transmittances and lengths are alternately arranged. An object of the present invention is to provide an inspection apparatus that calculates image data that can be inspected.
この発明は上述した課題を解決するためになされたもので、請求項1に記載の発明は、長手状の光拡散体を長手方向と直交する副走査方向に搬送して前記光拡散体を長手方向と平行する主走査方向に検査する光拡散体の検査装置であって、前記光拡散体に走査方向に光を照射する光源手段と、前記光源手段から照射された光を受光するように配置され、前記光源手段から照射されて前記光拡散体を透過した光である透過光を前記光拡散体が副走査方向に搬送される毎に撮影し、画素がライン状に配列された画像データとして出力する撮影手段と、前記撮影手段から出力された副走査方向の画像データの階調度が予め決められた一定の閾値以上の画素を前記画像データより主走査方向に検出し、前記検出した主走査方向の画素に基づき特徴量を前記画像データ毎に算出する特徴量抽出手段と、前記特徴量抽出手段が算出した特徴量に基づいて、副走査方向の画像データの範囲を前記副走査方向の画像データから抽出する範囲特定手段と、前記範囲特定手段が抽出した副走査方向の画像データの範囲に基づき前記画像データを副走査方向に加算し検査用の画像データを生成する画像抽出手段と、を有することを特徴とする検査装置である。
The present invention has been made to solve the above-described problems, and the invention according to
請求項2に記載の発明は、請求項1の検査装置において、前記画像抽出手段が生成した検査用の画像データの一端から着目画素をずらしていき、一端から着目画素までの階調度の最大値であるピークレベルを求めると共に、前記ピークレベルに一定比率を乗じた値を閾値とし、前記閾値未満となる画素が連続する画素位置を前記光拡散体の一端に相当する位置として検出する第一の検出手段と、前記画像抽出手段が生成した検査用の画像データの他端から着目画素をずらしていき、他端から着目画素までの階調度の最大値であるピークレベルを求めると共に、前記ピークレベルに一定比率を乗じた値を閾値とし、前記閾値未満となる画素が連続する画素位置を前記光拡散体の他端に相当する位置として検出する第二の検出手段と、前記第一の検出手段が検出した一端位置と前記第二の検出手段が検出した他端の位置の間の範囲より前記検査用の画像データの前記光拡散体の部分に相当する主走査方向の範囲である主走査方向範囲を特定する主走査方向範囲特定手段と、を有することを特徴とする。
たとえば、前記画像抽出手段が生成した検査用の画像データに基づいて、画素の階調度の最大値であるピークレベルを更新すると共に、前記ピークレベルに一定比率を乗じた値を閾値とし、前記閾値未満となる画素が連続する画素位置を前記画像データの主走査方向の一端から検索することにより前期検査用の画像データにおける前記光拡散体の一端に相当する一端位置を検出する第一の検出手段と、画素の階調度の最大値であるピークレベルを更新すると共に、前記ピークレベルに一定比率を乗じた値を閾値とし、前記閾値未満となる画素が連続する画素位置を前記画像データの主走査方向の他端から検索することにより前期検査用の画像データにおける前記光拡散体の他端に相当する他端位置を検出する第二の検出手段と、前記第一の検出手段が検出した一端位置と前記第二の検出手段が検出した他端の位置の間の範囲より前記検査用の画像データの前記光拡散体の部分に相当する主走査方向の範囲である主走査方向範囲を特定する主走査方向範囲特定手段と、を有することを特徴とする。
According to a second aspect of the present invention, in the inspection apparatus according to the first aspect, the target pixel is shifted from one end of the image data for inspection generated by the image extraction means , and the maximum value of the gradation from the one end to the target pixel is detected. together determine the peak level is said to a threshold value obtained by multiplying a certain ratio to the peak level, first the pixels less than the threshold value for detecting the pixel positions arranged consecutively in a position corresponding to one end of the previous SL light diffuser the detection means, the image extracting unit will shift the target pixel from the other end of the image data for inspection is generated, with determining the peak level which is the maximum value of the gradient to the target pixel from the other end, the peak the value obtained by multiplying a certain ratio to a level as a threshold value, a second detecting means for pixels less than the threshold value for detecting the pixel positions arranged consecutively in a position corresponding to the other end of the prior SL light diffuser, the first The main scanning direction range corresponding to the light diffuser portion of the image data for inspection is larger than the range between the one end position detected by the output means and the other end position detected by the second detection means. Main scanning direction range specifying means for specifying the scanning direction range.
For example, based on the image data for inspection generated by the image extraction means, the peak level which is the maximum value of the gradation of the pixel is updated, and a value obtained by multiplying the peak level by a certain ratio is set as a threshold value. First detecting means for detecting one end position corresponding to one end of the light diffusing body in the image data for the previous inspection by searching a pixel position in which the pixels that are less than one are consecutive from one end in the main scanning direction of the image data The peak level which is the maximum value of the gradation of the pixel is updated, and a value obtained by multiplying the peak level by a certain ratio is set as a threshold value, and the pixel position where pixels which are less than the threshold value continue is the main scan of the image data. Second detection means for detecting the other end position corresponding to the other end of the light diffuser in the image data for the previous inspection by searching from the other end in the direction, and the first detection. Main scanning that is a range in the main scanning direction corresponding to the portion of the light diffuser of the image data for inspection from the range between the one end position detected by the means and the position of the other end detected by the second detection means Main scanning direction range specifying means for specifying the direction range.
請求項3に記載の発明は、請求項2の検査装置において、前記主走査方向範囲特定手段が特定した主走査方向範囲により前記画像抽出手段が生成した検査用の画像データを抽出する境界画像データ抽出手段と、前記境界画像データ抽出手段が抽出した画像データの最大値及び最小値を求め、前記求めた最大値と最小値の差に一定の比率を乗じることにより閾値を算出する境界閾値算出手段と、前記境界画像データ抽出手段が抽出した画像データと前記境界閾値算出手段が算出した閾値により、前記光拡散体部材の境界位置を特定する境界位置特定手段と、を有することを特徴とする。 According to a third aspect of the present invention, in the inspection apparatus according to the second aspect, the boundary image data for extracting the inspection image data generated by the image extracting means based on the main scanning direction range specified by the main scanning direction range specifying means. An extraction means; and a boundary threshold calculation means for calculating a threshold value by calculating a maximum value and a minimum value of the image data extracted by the boundary image data extraction means, and multiplying a difference between the calculated maximum value and minimum value by a fixed ratio And boundary position specifying means for specifying the boundary position of the light diffuser member based on the image data extracted by the boundary image data extracting means and the threshold value calculated by the boundary threshold value calculating means.
請求項4に記載の発明は、長手状の光拡散体を長手方向と直交する副走査方向に搬送して前記光拡散体を長手方向と平行する主走査方向に検査する光拡散体の検査装置において用いられる方法であって、光源手段が前記光拡散体に走査方向に光を照射し、撮影手段が前記光源手段から照射された光を受光するように配置され、前記光源手段から照射されて前記光拡散体を透過した光である透過光を前記光拡散体が副走査方向に搬送される毎に撮影し、画素がライン状に配列された画像データとして出力し、特徴量抽出手段が前記撮影手段から出力された副走査方向の画像データの階調度が予め決められた一定の閾値以上の画素を前記画像データより主走査方向に検出し、前記検出した主走査方向の画素に基づき特徴量を前記画像データ毎に算出し、範囲特定手段が前記特徴量抽出手段の算出した特徴量に基づいて、副走査方向の画像データの範囲を前記副走査方向の画像データから抽出し、画像抽出手段が前記範囲特定手段の抽出した副走査方向の画像データの範囲に基づき前記画像データを副走査方向に加算し検査用の画像データを生成する、ことを特徴とする。
According to a fourth aspect of the present invention, there is provided an inspection apparatus for a light diffuser that conveys a longitudinal light diffuser in a sub-scanning direction orthogonal to the longitudinal direction and inspects the light diffuser in a main scanning direction parallel to the longitudinal direction. The light source means irradiates the light diffusing body with light in the scanning direction, and the photographing means is arranged to receive the light emitted from the light source means, and is irradiated from the light source means. The transmitted light, which is light transmitted through the light diffuser, is photographed every time the light diffuser is transported in the sub-scanning direction, and is output as image data in which pixels are arranged in a line shape. Pixels in which the gradation of the image data in the sub-scanning direction output from the photographing unit is equal to or greater than a predetermined threshold value are detected in the main scanning direction from the image data, and the feature amount is based on the detected pixels in the main scanning direction For each image data Then, the range specifying unit extracts a range of image data in the sub-scanning direction from the image data in the sub-scanning direction based on the feature amount calculated by the feature amount extracting unit, and the image extracting unit extracts the range by the range specifying unit. Based on the range of image data in the sub-scanning direction, the image data is added in the sub-scanning direction to generate image data for inspection.
この発明によれば、光透過率が異なる2つ以上の部材を配列させた円筒状光拡散体の部材配列状態の良否判定を安定して実施することができる画像データを算出する検査装置を提供することができるという効果を奏する。 According to the present invention, there is provided an inspection apparatus for calculating image data capable of stably performing quality determination of a member arrangement state of a cylindrical light diffuser in which two or more members having different light transmittances are arranged. There is an effect that can be done.
以下、図面を参照して、本発明の実施の形態について説明する。図1は、たばこフィルタのような円筒状光拡散体の構成を示す構成図である。たばこフィルタのような円筒形状の長手状の光拡散体である円筒状光拡散体(1)は、光透過率が異なる2つの部材1a及び部材1bが交互に配置されたものである。例えば図1に示すように、円筒状光拡散体(1)は長手方向に左から、暗部材1b(1)、明部材1a(1)、暗部材1b(2)、明部材1a(2)、暗部材1b(3)と並んでいる構造を持つ。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a configuration diagram showing the configuration of a cylindrical light diffuser such as a tobacco filter. A cylindrical light diffuser (1), which is a cylindrical long light diffuser such as a cigarette filter, is formed by alternately arranging two
図2は、検査装置の構成を示した図である。以下各装置について説明する。
円筒状光拡散体(1)は、図1に図示した部材1の長手状の円筒状光拡散体であり、円筒状光拡散体(1)の長手方向と直行する方向(副走査方向)である移動方向(1c)に搬送ドラム(9)により搬送される。照明装置(2)は、円筒状光拡散体(1)の、例えば下側に配置され、円筒状光拡散体(1)の長手方向に合わせて長手方向に細長い光を照明する。
搬送ドラム(9)は、たばこフィルタ(1)を保持するための溝と、スリットが設けてあり、一定の方向(9a)に回転することで、たばこフィルタ(1)を搬送方向(1c)に搬送する。また、この搬送方向が、副走査方向である。搬送ドラム(9)内部に設置される照明装置(2)は、例えば、特願平10−250716による光ファイバーを用いた照明装置を使用する。
ラインセンサ(3)は、照明装置(2)より照明された光を受光する位置に配置される。また、ラインセンサ(3)は搬送される円筒状光拡散体(1)の長手方向と平行に、かつ、照明装置(2)の長手方向に細長い光と平行になるように、ライン状のセンサを配置している。つまり、円筒状光拡散体(1)とラインセンサ(3)と照明装置(2)は、互いに平行な配置である。円筒状光拡散体(1)は、ラインセンサ(3)と照明装置(2)の間を搬送される。
ラインセンサ(3)は、図3に示すように、円筒状光拡散体(1)を長手方向に平行な主走査方向に画素が1ライン状に配列された画像データとして撮像する。ラインセンサ(3)は、検出した透過光の強度を、アナログ又はデジタル信号の画像データとして、検査装置(10)に出力する。また、ラインセンサ(3)は、一定時間間隔で画像データを撮影することにより、円筒状光拡散体(1)の副走査方向への搬送に伴い、円筒状光拡散体(1)を透過する透過光を、副走査方向に複数の連続する主走査方向に画素が1ライン状に配列された画像データとして撮像する。
検査装置(10)は、ラインセンサ(3)が出力した画像データに基づき、円筒状光拡散体(1)の検査をする。また、検査装置(10)はラインセンサ(3)からの画像データを入力するとき、デジタル信号である場合には検査装置(10)はそのまま入力し、アナログ信号である場合には検査装置(10)はアナログ信号をA/D変換してデジタル信号として入力する。
FIG. 2 is a diagram illustrating a configuration of the inspection apparatus. Each device will be described below.
The cylindrical light diffuser (1) is a longitudinal cylindrical light diffuser of the
The conveyance drum (9) is provided with a groove and a slit for holding the tobacco filter (1), and rotates in a certain direction (9a), thereby moving the tobacco filter (1) in the conveyance direction (1c). Transport. Further, this transport direction is the sub-scanning direction. As the illumination device (2) installed inside the transport drum (9), for example, an illumination device using an optical fiber according to Japanese Patent Application No. 10-250716 is used.
A line sensor (3) is arrange | positioned in the position which receives the light illuminated from the illuminating device (2). The line sensor (3) is a linear sensor that is parallel to the longitudinal direction of the conveyed cylindrical light diffuser (1) and parallel to the elongated light in the longitudinal direction of the illumination device (2). Is arranged. That is, the cylindrical light diffuser (1), the line sensor (3), and the illumination device (2) are arranged in parallel to each other. The cylindrical light diffuser (1) is conveyed between the line sensor (3) and the illumination device (2).
As shown in FIG. 3, the line sensor (3) images the cylindrical light diffuser (1) as image data in which pixels are arranged in one line in the main scanning direction parallel to the longitudinal direction. The line sensor (3) outputs the detected intensity of transmitted light to the inspection apparatus (10) as analog or digital signal image data. In addition, the line sensor (3) captures image data at regular time intervals, thereby transmitting the cylindrical light diffuser (1) along with the conveyance of the cylindrical light diffuser (1) in the sub-scanning direction. The transmitted light is imaged as image data in which a plurality of pixels are arranged in one line in the main scanning direction in the sub-scanning direction.
The inspection device (10) inspects the cylindrical light diffuser (1) based on the image data output from the line sensor (3). When the image data from the line sensor (3) is input to the inspection device (10), the inspection device (10) is input as it is when it is a digital signal, and the inspection device (10) when it is an analog signal. ) A / D converts an analog signal and inputs it as a digital signal.
ここで、照明装置(2)は、例えば、特開平5−203587号公報に示されるライトガイドを使用し、照明装置(2)からの光の出射幅を調整し、ラインセンサ(3)が円筒状光拡散体(1)の両端外側の直射光を撮像しないようにするものを用いる。
ラインセンサ(3)が検出する画像データは概ね、図3(a)に示すように、明部材1aに対応する画像データの階調度のレベルが高く、暗部材1bに対応する画像データの階調度のレベルが低い波形となる。
また、ライトガイドにより、照明装置(2)からの光の出射幅は円筒状光拡散体(1)の端部に応じて調節されているため、円筒状光拡散体(1)の端部の外に相当する部分の画像データは光が飽和することがなく、階調度のレベルが低いため、透過光の影響はない。また、円筒状光拡散体(1)の外側をまわりこんだ光のため、円筒状光拡散体(1)の端部のすぐ外側には透過光による階調度のピークが生じる。
この波形は、円筒状光拡散体(1)がラインセンサ(3)の撮影範囲の真下にあるときをピークとし、撮影範囲から外れるに従い全体の階調度のレベルが下がっていくことになる。つまり、円筒状光拡散体(1)は、搬送方向(1C)への搬送に伴い画像データは常に変化していく。
なお、実施の形態においては、透過光の強度が強い場合、透過光を撮影した画像データの階調度のレベルは高くなり、逆に、透過光の強度が弱い場合、透過光を撮影した画像データの階調度のレベルは低くなるものとして説明する。
Here, the illuminating device (2) uses, for example, a light guide disclosed in Japanese Patent Laid-Open No. 5-203857, adjusts the emission width of the light from the illuminating device (2), and the line sensor (3) is a cylinder. What prevents the direct light outside the both ends of the light diffuser (1) from being imaged is used.
As shown in FIG. 3A, the image data detected by the line sensor (3) generally has a high gradation level of the image data corresponding to the
Moreover, since the light emission width of the light from the illumination device (2) is adjusted by the light guide according to the end of the cylindrical light diffuser (1), the end of the cylindrical light diffuser (1) is adjusted. The image data corresponding to the outside does not saturate the light and has a low level of gradation, so there is no influence of transmitted light. In addition, since the light has entered the outside of the cylindrical light diffuser (1), a gradation peak due to the transmitted light is generated just outside the end of the cylindrical light diffuser (1).
This waveform has a peak when the cylindrical light diffuser (1) is directly below the imaging range of the line sensor (3), and the level of the overall gradation decreases as it goes out of the imaging range. In other words, the image data of the cylindrical light diffuser (1) always changes with the conveyance in the conveyance direction (1C).
In the embodiment, when the transmitted light intensity is high, the gradation level of the image data obtained by photographing the transmitted light is high, and conversely, when the transmitted light intensity is weak, the image data obtained by photographing the transmitted light. In the following description, it is assumed that the gradation level is low.
次に、検査装置(10)について説明する。検査装置(10)は、特徴量抽出処理部(4)、記録処理部(5)、範囲特定処理部(6)、画像抽出処理部(7)、計測処理部(8)を有する。
特徴量抽出処理部(4)は、ラインセンサ(3)の副走査方向の画像データ毎に、画像データの品質を示す特徴量を検出し、検出した特徴量を記録処理部(5)に送信する。特徴量はラインセンサ(3)と円筒状光拡散体(1)の位置関係に依存し、円筒状光拡散体(1)は移動しているため、特徴量はラインセンサ(3)の副走査毎に異なる。この特徴量により、ラインセンサ(3)の撮影範囲に円筒状光拡散体(1)があるか否か、及び、円筒状光拡散体(1)の画像データが判断できるものであるか否かの判定を、ラインセンサ(3)の副走査毎の画像データに対して行うことができる。例えば、特徴量は、各副走査において、予め決められた一定の値の閾値以上で検出された画像データの画素数の合計でも良いし、予め決められた一定の値の閾値以上で検出された画像データの階調度のレベルの合計でも良い。
Next, the inspection apparatus (10) will be described. The inspection device (10) includes a feature amount extraction processing unit (4), a recording processing unit (5), a range specifying processing unit (6), an image extraction processing unit (7), and a measurement processing unit (8).
The feature amount extraction processing unit (4) detects a feature amount indicating the quality of the image data for each image data in the sub-scanning direction of the line sensor (3), and transmits the detected feature amount to the recording processing unit (5). To do. Since the feature quantity depends on the positional relationship between the line sensor (3) and the cylindrical light diffuser (1) and the cylindrical light diffuser (1) is moving, the feature quantity is sub-scanned by the line sensor (3). Different for each. Based on this feature amount, whether or not the cylindrical light diffuser (1) is in the imaging range of the line sensor (3) and whether or not the image data of the cylindrical light diffuser (1) can be determined. This determination can be performed on the image data for each sub-scan of the line sensor (3). For example, the feature amount may be the sum of the number of pixels of image data detected at a predetermined threshold value or more in each sub-scan, or detected at a predetermined threshold value or more. The total of the gradation levels of the image data may be used.
記録処理部(5)は、ラインセンサ(3)からの画像データを受信し、特徴量抽出処理部(4)から特徴量を受信し、受信した画像データと特徴量を関連付けて記録する。
範囲特定処理部(6)は、記録処理部(5)に記録された複数の副走査の特徴量を参照し、最も検出に有効である副走査の範囲を特徴量に基づいて特定する。副走査の範囲を特定する方法は、例えば、予め決められた閾値以上を有する特徴量の範囲としてもよい。または、副走査の範囲を特定する方法は、最大となる特徴量を有する副走査を検出し、検出された最大となる特徴量を有する副走査を中心として、予め定められた一定の範囲の副走査としてもよい。範囲特定処理部(6)は、特定した範囲を画像抽出処理部(7)に送信する。
The recording processing unit (5) receives the image data from the line sensor (3), receives the feature amount from the feature amount extraction processing unit (4), and records the received image data and the feature amount in association with each other.
The range specifying processing unit (6) refers to the plurality of sub-scanning feature amounts recorded in the recording processing unit (5), and specifies the sub-scanning range that is most effective for detection based on the feature amounts. The method for specifying the sub-scanning range may be, for example, a feature amount range having a predetermined threshold value or more. Alternatively, the method for specifying the sub-scanning range is to detect a sub-scan having the maximum feature amount, and center the sub-scan having the detected maximum feature amount as a center. Scanning may be used. The range specification processing unit (6) transmits the specified range to the image extraction processing unit (7).
画像抽出処理部(7)は、範囲特定処理部(6)から受信した副走査の範囲に基づいて、記録処理部(5)に記録された画像データを抽出し、抽出した画像データより計測処理用の画像データを合成する。例えば、計測処理用の画像データの合成は、範囲特定処理部(6)が特定した副走査の範囲に基づいて、記録処理部(5)より画像データを抽出し、抽出した画像データを副走査方向に合計することにより求める。画像抽出処理部(7)は、合成した画像データを計測処理部(8)に送る。 The image extraction processing unit (7) extracts the image data recorded in the recording processing unit (5) based on the sub-scanning range received from the range specifying processing unit (6), and performs measurement processing from the extracted image data. The image data for use is synthesized. For example, image data for measurement processing is synthesized by extracting image data from the recording processing unit (5) based on the sub-scanning range specified by the range specifying processing unit (6), and sub-scanning the extracted image data. Find by summing in direction. The image extraction processing unit (7) sends the combined image data to the measurement processing unit (8).
計測処理部(8)は、画像抽出処理部(7)から受信する合成した計測処理用の画像データを用いて、円筒状光拡散体(1)の検査のための処理を行う。例えば、検査を行うための処理として、まず各部材の境界を特定するための処理を行い、得られた境界位置により、円筒状光拡散体(1)の検査のための処理を行う。例えば、一定の閾値による2値化を行うことにより、または、微分処理を行うことにより、境界位置を求める処理を行うことでもよい。 The measurement processing unit (8) performs processing for the inspection of the cylindrical light diffuser (1) using the combined image data for measurement processing received from the image extraction processing unit (7). For example, as a process for performing the inspection, first, a process for specifying a boundary between the members is performed, and a process for inspecting the cylindrical light diffuser (1) is performed based on the obtained boundary position. For example, a process for obtaining the boundary position may be performed by performing binarization with a certain threshold value or by performing a differentiation process.
以下、図を参照して上記説明した実施の形態における動作を説明する。図2の、この発明の一実施形態による検査装置の構成を示すブロック図において、ラインセンサ(3)の一例としてラインCCDカメラ(3)を用い、円筒状光拡散体(1)の一例としてたばこフィルタ(1)を検査する場合について説明する。このたばこフィルタ(1)は、光透過率が低い活性炭入りの繊維束と、光透過率が高い活性炭が入っていない繊維束が、交互に配置され、全長が100mm程度である。
このようなたばこフィルタ(1)は、搬送ドラム(9)が回転することにより、副走査方向に搬送される。ここでは、搬送ドラム(9)には、たばこフィルタ(1)を保持するための溝と、スリットが設けてあり、一定の方向(9a)に回転することで、たばこフィルタ(1)が搬送される。
The operation of the above-described embodiment will be described below with reference to the drawings. In the block diagram showing the configuration of the inspection apparatus according to the embodiment of the present invention shown in FIG. 2, a line CCD camera (3) is used as an example of the line sensor (3), and a cigarette is used as an example of the cylindrical light diffuser (1). A case where the filter (1) is inspected will be described. In this cigarette filter (1), a fiber bundle containing activated carbon having a low light transmittance and a fiber bundle not containing activated carbon having a high light transmittance are alternately arranged, and the total length is about 100 mm.
Such a cigarette filter (1) is conveyed in the sub-scanning direction by rotating the conveyance drum (9). Here, the conveyance drum (9) is provided with a groove and a slit for holding the tobacco filter (1), and the tobacco filter (1) is conveyed by rotating in a certain direction (9a). The
スリットは、搬送ドラム(9)内部を負圧とし、たばこフィルタ(1)を搬送ドラム(9)に密着させる。また、搬送ドラム(9)内部に設置する照明装置(2)によりたばこフィルタ(1)にスリットを通して光が照射される。
ラインCCDカメラ(3)は、透過光を画像データとして撮影し、撮像した画像データを検査装置(10)に送信する。透過光とは、照明装置(2)から照射され、たばこフィルタ(1)を透過した光である。ラインCCDカメラ(3)は、例えば、複数の撮影画素が直線状に並べられた構造を有しており、それぞれの画素には直線状の1方の端から他の端へ連続して画素番号が振られている。例えば、ラインCCDカメラ(3)の撮影画素には、直線状の1方の端からその逆の端まで、連続して1から2048と画素番号が振られている。また、ラインCCDカメラ(3)のそれぞれの撮影画素は、受光した光の強度により、受光した光を0から255の階調度であるデジタル値として変換する。従って、ラインCCDカメラ(3)により撮影された透過光の画像データは、直線状の画像データであり、直線状の1方の端からその逆の端まで、連続して1から2048と画素番号が振られており、それぞれの画素番号について0から255の階調度であるデジタル値が付けられている。以降、直線状の画像データは、左から右に連続して1から2048と画素番号が振られているものとして説明する。
検査装置(10)は、ラインCCDカメラ(3)より画像データを受信し、受信した画像データに基づいてたばこフィルタ(1)の検査をする。検査装置(10)においてなされる検査の方法を、以下に詳述する。
The slit causes the inside of the transport drum (9) to have a negative pressure, and causes the tobacco filter (1) to adhere to the transport drum (9). Moreover, light is irradiated to a tobacco filter (1) through a slit by the illuminating device (2) installed in the inside of a conveyance drum (9).
The line CCD camera (3) captures transmitted light as image data and transmits the captured image data to the inspection apparatus (10). The transmitted light is light emitted from the illumination device (2) and transmitted through the tobacco filter (1). The line CCD camera (3) has, for example, a structure in which a plurality of photographing pixels are arranged in a straight line, and each pixel has a pixel number continuously from one end of the straight line to the other end. Is shaken. For example, the pixel numbers of 1 to 2048 are continuously assigned to the photographing pixels of the line CCD camera (3) from one end of the linear shape to the opposite end. In addition, each photographing pixel of the line CCD camera (3) converts the received light as a digital value having a gradation degree of 0 to 255 according to the intensity of the received light. Accordingly, the image data of the transmitted light photographed by the line CCD camera (3) is linear image data, and the pixel numbers from 1 to 2048 are consecutive from one linear end to the opposite end. Each pixel number is assigned a digital value having a gradation of 0 to 255. In the following description, it is assumed that the linear image data is assigned
The inspection device (10) receives image data from the line CCD camera (3), and inspects the tobacco filter (1) based on the received image data. The inspection method performed in the inspection apparatus (10) will be described in detail below.
検査装置(10)は、ラインCCDカメラ(3)より画像データを受信する。
まず、検査装置(10)が受信した画像データより、特徴量抽出処理部(4)が特徴量を抽出する。特徴量として、例えば、図5に示されるように、画像データが予め決められた一定の値の閾値であるスライスレベル以上の画素数の合計(a+b+c+dとなる画素数)でも良い。または、特徴量として、例えば、図6の斜線で示されるように、予め決められた一定の値の閾値であるスライスレベル以上である画像データの階調度のレベルの合計(スライスレベル以上となる範囲の画素データの面積)でも良い。この特徴量の抽出は、それぞれの副走査毎に受信した画像データについてなされる。
ここで、閾値であるスライスレベルとしては、予め決められた一定の値として記憶しておいてもよい。または、受信した画像データのピークレベルを検出し、検出した階調度のレベルのピークの値について、予め決められた一定の割合を掛け合わせたものを用いてもよい。例えば、予め決められた一定の割合として30%と記憶しておき、検出したピークのレベルの値の30%の値をスライスレベルとしてもよい。
The inspection device (10) receives image data from the line CCD camera (3).
First, the feature quantity extraction processing unit (4) extracts the feature quantity from the image data received by the inspection apparatus (10). As the feature amount, for example, as shown in FIG. 5, the total number of pixels of the image data equal to or higher than a slice level, which is a predetermined threshold value (number of pixels to be a + b + c + d), may be used. Alternatively, as the feature amount, for example, as indicated by hatched lines in FIG. 6, the sum of the gradation levels of image data that is equal to or higher than a predetermined slice threshold value (a range that is equal to or higher than the slice level). Of the pixel data). This feature amount extraction is performed on the received image data for each sub-scan.
Here, the slice level as the threshold value may be stored as a predetermined constant value. Alternatively, the peak level of the received image data may be detected, and the peak value of the detected gradation level may be multiplied by a predetermined ratio. For example, 30% may be stored as a predetermined fixed ratio, and a value of 30% of the detected peak level value may be used as the slice level.
次に、検査装置(10)が受信した画像データと、検査装置(10)が受信した画像データについて特徴量抽出処理部(4)が抽出した特徴量とを関連付けて記録処理部(5)が記録する。例えば、図7に示すように、各副走査を識別する副走査番号と、受信した画像データと、受信した画像データにより抽出した特徴量とが関連付けて記録される。ここで、副走査番号とは、例えばラインCCDカメラ(3)が送信してきた順序で付けられるシーケンシャルな番号である。
また、図7においては、画像データとして波形の形式で表示しているが、記録される画像データは複数の画素が直線状に並べられたものであり、それぞれの画素は、例えば、左から右に画素番号が1から2048と連続してつけられ、それぞれの画素に0から255までのレベルで表される256階調のデジタルデータが格納されている。また、例えば、特徴量は、1つの副走査番号に対する画像データについて、その画素の階調度が20以上である全ての画素の階調の値を、全ての画素番号について主走査方向について加算したものである。
なお、照明装置(2)からの光は、搬送ドラム(9)のたばこフィルタ(1)を搬送のために保持する溝やスリット以外の部分においては、搬送ドラム(9)により遮断される。そのため、たばこフィルタ(1)が通過していない場合においては、ラインCCDカメラ(3)は光(または透過光)を受光しない。そのため、図7においては、例えば、副走査番号0と18におけるように、たばこフィルタ(1)が通過していない場合は、画像データは0となる。
ここで、記録処理部(5)は、例えば、1024の副走査の副走査番号と画像データと特徴量とを記録するものとし、1025番目以降の副走査を記録する場合には、最も古い副走査番号と画像データと特徴量を新しい副走査番号と画像データと特徴量により上書きして記録するようにしてもよい。
Next, the recording processing unit (5) associates the image data received by the inspection device (10) with the feature amount extracted by the feature amount extraction processing unit (4) for the image data received by the inspection device (10). Record. For example, as shown in FIG. 7, the sub-scan number for identifying each sub-scan, the received image data, and the feature amount extracted from the received image data are recorded in association with each other. Here, the sub-scan number is a sequential number assigned in the order of transmission from the line CCD camera (3), for example.
In FIG. 7, the image data is displayed in the form of a waveform, but the recorded image data is a plurality of pixels arranged in a straight line, and each pixel is, for example, from left to right. The pixel numbers are consecutively assigned from 1 to 2048, and 256 gradation digital data represented by levels from 0 to 255 are stored in the respective pixels. Further, for example, the feature amount is obtained by adding the gradation values of all the pixels having a gradation level of 20 or more for the image data corresponding to one sub-scan number in the main scanning direction for all the pixel numbers. It is.
The light from the illumination device (2) is blocked by the transport drum (9) at portions other than the grooves and slits for holding the tobacco filter (1) of the transport drum (9) for transport. Therefore, the line CCD camera (3) does not receive light (or transmitted light) when the cigarette filter (1) does not pass through. Therefore, in FIG. 7, for example, when the cigarette filter (1) has not passed, as in the
Here, the recording processing unit (5) records, for example, the sub-scan number of 1024 sub-scans, the image data, and the feature amount. When recording the 1024th and subsequent sub-scans, the oldest sub-scan is recorded. The scan number, the image data, and the feature amount may be overwritten and recorded by the new sub-scan number, the image data, and the feature amount.
次に、範囲特定処理部(6)が、記録処理部(5)に記憶されている特徴量より、検査に適した副走査番号の範囲を特定する。
範囲特定処理部(6)は、記録処理部(5)に記録された特徴量から、例えば図7において、副走査番号1では、たばこフィルタ(1)がまだラインCCDカメラ(3)の検出範囲に入っていないことを検出し、副走査番号2よりたばこフィルタ(1)がラインCCDカメラ(3)の検出範囲に入ったことを検出する。また、副走査番号18で、たばこフィルタ(1)がラインCCDカメラ(3)の検出範囲外に通過したしたことを検出する。
例えば、範囲特定処理部(6)は、一定時間毎に記録処理部(5)を参照し、更新された副走査番号と画像データと特徴量とを調べ、特徴量が0から0より大きくなった副走査番号で、たばこフィルタが通過を開始した副走査番号を検出する。また、範囲特定処理部(6)は、特徴量が0でない値から0となる副走査番号で、たばこフィルタの通過が終了した副走査番号を検出する。また、通過開始から通過終了の間の副走査番号が、たばこフィルタが通過中の副走査番号であるとして検出する。以上のようにして、範囲特定処理部(6)は、たばこフィルタが通過している間の副走査番号を検出することが可能である。
例えば、図7においては、特徴量より、副走査番号が2から17について、タバコフィルタが通過していることがわかる。また、範囲特定処理部(6)は記録処理部(5)に記憶されている特徴量より、記録処理部(5)に記憶されている画像データについて副走査方向ごとにたばこフィルタが存在するか否かの判定が可能である。
Next, the range identification processing unit (6) identifies a sub-scanning number range suitable for inspection from the feature quantity stored in the recording processing unit (5).
For example, in FIG. 7, the
For example, the range specifying processing unit (6) refers to the recording processing unit (5) at regular intervals to check the updated sub-scan number, image data, and feature amount, and the feature amount becomes larger than 0 to 0. The sub-scan number at which the cigarette filter has started to pass is detected based on the sub-scan number. Further, the range specifying processing unit (6) detects the sub-scanning number at which the passage of the tobacco filter is completed with the sub-scanning number where the feature amount is 0 from the non-zero value. Further, the sub-scan number between the start of passage and the end of passage is detected as the sub-scan number during which the tobacco filter is passing. As described above, the range specification processing unit (6) can detect the sub-scan number while the cigarette filter is passing.
For example, in FIG. 7, it can be seen from the feature amount that the cigarette filter passes for
次に、範囲特定処理部(6)は、タバコフィルタが通過している間の副走査方向の区間において、記録処理部(5)に記憶されている特徴量より、検査に適した副走査番号の範囲を特定する。
例えば、範囲特定処理部(6)は、たばこフィルタが存在していると判断される副走査番号の範囲に対して、副走査番号の両端の予め決められた一定の範囲の除いた中央付近の範囲として、検査に適した副走査番号の範囲を特定してもよい。例えば、副走査番号の両端の一定の範囲として、たばこフィルタが存在していると判断される走査の1/4ずつとする。この場合、図7では、たばこフィルタが存在する副走査番号は2から17の16副走査であり、予め決められた両端の一定の範囲は16副走査の1/4で4副走査ずつとなる。よって、副走査番号の2から17の両端から4副走査ずつ除いて、検査に適した副走査番号の範囲を「6から13」と特定する。
または、例えば、範囲特定処理部(6)は、特徴量が予め決められた一定の値以上の範囲として、検査に適した副走査番号の範囲を特定してもよい。例えば、特徴量が80000以上である範囲と予め決めておく。この場合、図7の特徴量より、検査に適した副走査番号の範囲は「7から11」と特定する。
または、例えば、範囲特定処理部(6)は、特徴量が最大となる副走査番号の前後一定の範囲として、検査に適した副走査番号の範囲を特定してもよい。例えば、図7の特徴量より、特徴量が最大となる副走査番号9である。予め定めた副走査番号の前後一定の範囲として、前後の一定の範囲の値が3である場合、検査に適した副走査番号の範囲は「6から12」と特定する。
または、例えば、範囲特定処理部(6)は、特徴量が最大となる最大特徴量に対して、予め決められた一定の割合以上の特徴量を有する範囲としてもよい。例えば、図7の特徴量より、特徴量が最大となる副走査番号9の時である最大特徴量が89424である。予め定めた一定の割合が80%である場合、最大特徴量の80%の値が71539.2となる。従って、この場合、図7の特徴量より、検査に適した副走査番号の範囲は「7から12」と特定する。
次に、画像抽出処理部(7)は、範囲特定処理部(6)が特定した検査に適した副走査番号の範囲に基づいて画像データを記録処理部(5)より抽出し、抽出した画像データを副走査方向に加算することにより、計測に用いる画像データを合成し、合成した画像データを計測処理部(8)に出力する。
Next, the range identification processing unit (6) uses a sub-scanning number suitable for inspection based on the feature amount stored in the recording processing unit (5) in the sub-scanning direction section while the cigarette filter is passing. Specify a range of
For example, the range specifying processing unit (6) may be arranged in the vicinity of the center excluding a predetermined range at both ends of the sub-scanning number with respect to the sub-scanning number range in which it is determined that the cigarette filter exists. A range of sub-scan numbers suitable for inspection may be specified as the range. For example, the fixed range at both ends of the sub-scan number is set to 1/4 each of the scans where it is determined that the cigarette filter is present. In this case, in FIG. 7, the sub-scan number in which the cigarette filter exists is 16 sub-scans from 2 to 17, and the predetermined range at both ends is 1/4 of 16 sub-scans and 4 sub-scans. . Therefore, by subtracting 4 sub-scans from both ends of the
Alternatively, for example, the range specification processing unit (6) may specify a range of sub-scanning numbers suitable for inspection as a range in which the feature amount is a predetermined value or more. For example, it is determined in advance as a range in which the feature amount is 80000 or more. In this case, the sub-scan number range suitable for the inspection is specified as “7 to 11” from the feature amount of FIG.
Alternatively, for example, the range specifying processing unit (6) may specify a range of sub-scanning numbers suitable for inspection as a constant range before and after the sub-scanning number having the maximum feature value. For example, the
Alternatively, for example, the range specifying processing unit (6) may be a range having a feature amount equal to or more than a predetermined ratio with respect to the maximum feature amount having the maximum feature amount. For example, the maximum feature amount at the time of
Next, the image extraction processing unit (7) extracts the image data from the recording processing unit (5) based on the sub-scan number range suitable for the inspection specified by the range specification processing unit (6), and extracts the extracted image. By adding the data in the sub-scanning direction, the image data used for measurement is synthesized, and the synthesized image data is output to the measurement processing unit (8).
計測処理部(8)は、画像抽出処理部(7)から出力された、計測に用いる合成された画像データに基づいて、たばこフィルタ(1)を検査する。例えば、たばこフィルタ(1)を構成する複数の部材の境界の位置を検出し、境界の間の長さである部材の長さを検出し、検出した各境界の位置や部材の長さについて、予め決められた基準値と比較することにより、たばこフィルタ(1)の検査をする。 The measurement processing unit (8) inspects the tobacco filter (1) based on the combined image data output from the image extraction processing unit (7) and used for measurement. For example, the position of the boundary between a plurality of members constituting the cigarette filter (1) is detected, the length of the member that is the length between the boundaries is detected, and the detected position of each boundary and the length of the member are The cigarette filter (1) is inspected by comparing it with a predetermined reference value.
このように、範囲特定処理部(6)が検査に適した副走査番号の範囲を特徴量から特定し、画像抽出処理部(7)が範囲特定処理部(6)の特定した範囲に基づいて画像データを記録処理部(5)より抽出し、抽出した画像データを副走査方向に加算する計測に用いる画像データを合成することにより、計測に用いる画像におけるノイズなどの外乱の影響を防ぐ効果がある。
特に、ノイズとして、外乱により特徴量に想定外のピークが発生するなどの可能性がある。例えば、フィルタ(1)が輸送ドラム(9)上で搬送中に、フィルタ(1)が搬送ドラム(1)から浮き上がることにより隙間が生じ、生じた隙間から光が漏れ、漏れた光のため透過光を撮影する画像データにピーク(または、漏れた光による飽和)が発生することがある。特に、タバコフィルタの副走査方向の画像において、たばこフィルタが存在すると判断される副走査番号の範囲の両端でピークが発生することがある。つまり、搬送における副走査方向の画像(時間軸の画像)において、ピークなどのノイズが発生する。
このような場合においても、例えば、たばこフィルタが存在していると判断される副走査番号の範囲に対して、副走査番号の両端の予め決められた一定の範囲の除いた中央付近の範囲のみを用いることにより、つまり、時間軸の画像での範囲を特定することにより、撮影した画像のノイズなどの外乱の影響を防ぐ効果がある。
As described above, the range specifying processing unit (6) specifies the range of the sub-scan number suitable for the inspection from the feature amount, and the image extraction processing unit (7) is based on the range specified by the range specifying processing unit (6). By extracting the image data from the recording processing unit (5) and synthesizing the image data used for the measurement for adding the extracted image data in the sub-scanning direction, there is an effect of preventing the influence of disturbance such as noise in the image used for the measurement. is there.
In particular, noise may cause an unexpected peak in the feature amount due to disturbance. For example, when the filter (1) is transported on the transport drum (9), a gap is formed when the filter (1) is lifted from the transport drum (1), and light is leaked from the generated gap, and transmitted due to the leaked light. A peak (or saturation due to leaked light) may occur in image data for photographing light. In particular, in the image in the sub-scanning direction of the cigarette filter, peaks may occur at both ends of the sub-scan number range where it is determined that the cigarette filter exists. That is, noise such as a peak occurs in an image in the sub-scanning direction (time-axis image) during conveyance.
Even in such a case, for example, only the range near the center excluding a predetermined range at both ends of the sub-scan number with respect to the range of the sub-scan number where it is determined that a cigarette filter exists. By using, that is, by specifying the range in the time-axis image, there is an effect of preventing the influence of disturbance such as noise of the captured image.
次に、計測処理部(8)においてなされる、範囲特定処理部(6)より受信した画像データに基づいて、たばこフィルタ(1)を構成する部材の境界の位置を検出する一例としての詳細な処理を説明する。
計測処理部(8)は、まず、画像データにおける、たばこフィルタ(1)における一端と他端とを検出する。ここで、一端とは、画像データにおける円筒状光拡散体(1)の端に相当する画素の位置であり、画像データにおける画素番号が小さい方の画素である(以下、左端と称する)。一方、他端とは、画像データにおける円筒状光拡散体(1)の逆の端に相当する画素の位置であり、画像データにおける画素番号が大きい方の画素である(以下、右端と称する)。
左端は図9(b)のedge1に示すような画素の位置である。左端edge1の検出方法の概要は、画素のレベルが連続して低い値の位置の左の端の部分を検出することにより検出することができる。これは、円筒状光拡散体(1)の端部が暗部材であり、明部材に相当する画像レベルが低いこと、また、円筒状光拡散体(1)の外側の画像レベルが高いことによる。
まず、左端の検出方法を、図8のフローチャートと、図9に示す一例としての画像データを用いて説明する。
まず、図8のフローチャートに用いる変数の説明を行う。xは現在処理を行っている着目画素位置である。peakは検索開始画素から着目画素までの受光レベルのピーク値である。sliceは閾値の値を示すスライスレベルである。RATIOはスライスレベルsliceの算出に用いるpeakに対する予め決められた一定の比率である。contはスライスレベル以下の画素数のカウント値であり、スライスレベルslice以下の画素が連続する数をカウントするための変数である。CONTは、スライスレベル以下の連続する画素数contと比較し、端を検出するための予め決められた値である閾値である。CONTは、例えば図9(b)において幅判定として示される幅の画素数を有しており、端を検出するのに適した値を有する。PIXELは合成された画像データの画素数であり、ラインCCDカメラ(3)の画素数により決定される。edge1は検出した、画像データにおけるたばこフィルタ(1)の左端の位置である。また、level(x)は画素xの位置での画素データの階調度のレベルを合成された画像データより取り出す関数である。
また、画像データは左から右に画素の順番に1ずつ大きくなり、画素は画素番号により識別され、画像データの左端の画素番号が1であり、画像データの右端の画素番号がPIXELであるとして説明する。
Next, a detailed example as an example of detecting the position of the boundary of the members constituting the cigarette filter (1) based on the image data received from the range specifying processing unit (6), which is performed in the measurement processing unit (8). Processing will be described.
The measurement processing unit (8) first detects one end and the other end of the tobacco filter (1) in the image data. Here, one end is the position of the pixel corresponding to the end of the cylindrical light diffuser (1) in the image data, and is the pixel with the smaller pixel number in the image data (hereinafter referred to as the left end). On the other hand, the other end is the position of the pixel corresponding to the opposite end of the cylindrical light diffuser (1) in the image data, and is the pixel with the larger pixel number in the image data (hereinafter referred to as the right end). .
The left end is a pixel position as shown by edge1 in FIG. The outline of the detection method of the left edge edge1 can be detected by detecting the left edge portion where the pixel level is continuously low. This is because the end of the cylindrical light diffuser (1) is a dark member, the image level corresponding to the bright member is low, and the image level outside the cylindrical light diffuser (1) is high. .
First, the left end detection method will be described using the flowchart of FIG. 8 and image data as an example shown in FIG.
First, variables used in the flowchart of FIG. 8 will be described. x is the pixel position of interest currently being processed. Peak is a peak value of the light receiving level from the search start pixel to the target pixel. The slice is a slice level indicating a threshold value. RATIO is a predetermined constant ratio with respect to the peak used for calculating the slice level slice. cont is a count value of the number of pixels below the slice level, and is a variable for counting the number of consecutive pixels below the slice level slice. CONT is a threshold value that is a predetermined value for detecting the end by comparing with the number of consecutive pixels cont below the slice level. CONT has, for example, the number of pixels having the width shown as the width determination in FIG. 9B, and has a value suitable for detecting the end. PIXEL is the number of pixels of the synthesized image data, and is determined by the number of pixels of the line CCD camera (3). edge1 is the detected leftmost position of the tobacco filter (1) in the image data. Further, level (x) is a function for extracting the level of gradation of the pixel data at the position of the pixel x from the synthesized image data.
Further, the image data is increased by 1 in order of pixels from left to right, the pixels are identified by pixel numbers, the pixel number on the left end of the image data is 1, and the pixel number on the right end of the image data is PIXEL. explain.
次に図9に示す一例としての合成された画像データに対して、図8に示したフローチャートにより左端を検出する動作を説明する。
まず、計測処理部(8)は、ピーク値peakとスライスレベルsliceと着目画素位置xとカウント値contの初期化を行う(ステップS801)。ピーク値peakは画素1の位置での画素信号のレベル値level(1)として初期化し、スライスレベルsliceはピーク値peak×比率RATIOとして初期し、着目画素位置xは2とし、カウント値contは0として初期化される。
次に、計測処理部(8)は、着目画素位置xのレベル値level(x)が、ピーク値peakよりも大きいかどうかの判定を行う(ステップS802)。ステップS802の判定で、着目画素位置xのレベル値level(x)がピーク値peakよりも大きい場合には、ピーク値peakの値を着目画素位置xのレベル値level(x)とし、スライスレベルsliceをピーク値peak×比率RATIOとする(ステップS803)。次に、着目画素位置xのレベル値level(x)とスライスレベルsliceとの比較をする(ステップS804)。また、ステップS802の判定で、着目画素位置xのレベル値level(x)がピーク値peakよりも大きい場合には、着目画素位置xのレベル値level(x)とスライスレベルsliceとの比較をする(ステップS804)
次に、計測処理部(8)は、ステップ804の判定で、着目画素位置xのレベル値level(x)がスライスレベルsliceより小さい場合には、カウント値contの値を1つ増大する(ステップS805)。次に、カウント値contと閾値CONTとの比較を行う(ステップS806)。ステップ806の判定で、カウント値contが閾値CONTより小さい場合には、着目画素位置xを1つ増大する(ステップS807)。また、ステップ804の判定で、着目画素位置xのレベル値level(x)がスライスレベルsliceより小さくない場合には、カウント値contの値を0とし(ステップS809)、その後、着目画素位置xを1つ増大する(ステップS807)。
次に、計測処理部(8)は、着目画素位置xと画素数PIXELの比較をする(ステップS808)。ステップS808の比較で、着目画素位置xが画素数PIXEL以下である場合には、ステップ802からの処理を繰り返す。ステップS808の比較で、着目画素位置xが画素数PIXEL以下でない場合には、異常終了として処理を終了する。
ステップ806の判定で、カウント値contが閾値CONTより小さくない場合には、左端の位置edge1を、着目画素位置xと閾値CONTより、以下の式(1)で算出する(ステップS810)。
edge1=x−CONT (1)
Next, the operation for detecting the left end of the synthesized image data as an example shown in FIG. 9 will be described with reference to the flowchart shown in FIG.
First, the measurement processing unit (8) initializes the peak value peak, slice level slice, target pixel position x, and count value cont (step S801). The peak value peak is initialized as the level value level (1) of the pixel signal at the position of the
Next, the measurement processing unit (8) determines whether or not the level value level (x) at the target pixel position x is larger than the peak value peak (step S802). If it is determined in step S802 that the level value level (x) at the target pixel position x is larger than the peak value peak, the peak value peak is set to the level value level (x) at the target pixel position x, and the slice level slice is set. Is the peak value peak × ratio RATIO (step S803). Next, the level value level (x) at the target pixel position x is compared with the slice level slice (step S804). If it is determined in step S802 that the level value level (x) at the target pixel position x is larger than the peak value peak, the level value level (x) at the target pixel position x is compared with the slice level slice. (Step S804)
Next, when the level value level (x) of the target pixel position x is smaller than the slice level slice in the determination in
Next, the measurement processing unit (8) compares the target pixel position x with the number of pixels PIXEL (step S808). If the target pixel position x is equal to or smaller than the pixel number PIXEL in the comparison in step S808, the processing from
If it is determined in
edge1 = x-CONT (1)
計測処理部(8)は、以上のように、小さい画素から大きい画素の方向に向かって、小さい画素から着目画素位置xまでの画像データのうち最大となる画像データの階調度のレベルであるピーク値peakを検索し、検索したピーク値peakに予め決められた一定の値の比率RATIOをかけることによりスライスレベルsliceを算出する。
次に、計測処理部(8)は、算出したスライスレベルsliceより小さい階調度のレベルを有する画素を検出し、かつ、検出したスライスレベルsliceより小さい階調度のレベルを有する画素が連続する数が予め決められた閾値CONTより大きくなる場合に、画素の階調度のレベルが連続してスライスレベルsliceより小さくなり始めた位置を左端の位置edge1として検出する。
As described above, the measurement processing unit (8) has a peak that is the level of the gradation level of the maximum image data among the image data from the small pixel to the target pixel position x in the direction from the small pixel to the large pixel. The value peak is searched, and the slice level slice is calculated by multiplying the searched peak value peak by a predetermined ratio RATIO.
Next, the measurement processing unit (8) detects pixels having a gradation level smaller than the calculated slice level slice, and the number of consecutive pixels having a gradation level smaller than the detected slice level slice is determined. A position at which the level of gradation of the pixel starts to become smaller than the slice level slice when it becomes larger than the predetermined threshold value CONT is detected as the left edge position edge1.
図9に、1例としての合成しフィルタ処理を行った画像データに対して、図8を用いて説明したフローチャートによるピーク値peak、スライスレベルsliceを示す。図9(a)は画像データの全体図であり、図9(b)は画像データの全体図より、左端に近い部分を抜き出し、拡大したものである。また、図9(b)には、ピーク値peak、スライスレベルsliceも示してある。
また、例えば、閾値CONTは判定幅と示される幅を有する。算出したスライスレベルsliceより小さい画素の階調度のレベルとなる画素が連続して予め決められた閾値CONT(この場合、図9(b)における判定幅と同じ)より大きくなる場合に、スライスレベルsliceより小さくなり始めた画素レベルより、左端の位置edge1を検出する。
FIG. 9 shows a peak value peak and a slice level slice according to the flowchart described with reference to FIG. 8 for image data that has been combined and filtered as an example. FIG. 9A is an overall view of the image data, and FIG. 9B is an enlarged view of a portion near the left end extracted from the overall view of the image data. FIG. 9B also shows a peak value peak and a slice level slice.
For example, the threshold value CONT has a width indicated as a determination width. The slice level slice is determined when pixels whose gradation level is lower than the calculated slice level slice are continuously larger than a predetermined threshold value CONT (in this case, the same as the determination width in FIG. 9B). The left edge position edge1 is detected from the pixel level that has started to become smaller.
次に、計測処理部(8)は、たばこフィルタ(1)の右端を検出する。右端の検出方法を、図10のフローチャートに示す。計測処理部(8)が、左端を検出する場合においては、小さい画素から大きい画素の方向に向かって処理を行ったが、右端を検出する場合においては、大きい画素から小さい画素の方向に向かって処理を行う点が異なる。そのため、図8のステップS801において、ピーク値peakは画素1の位置での画素信号のレベル値level(1)として初期化され、着目画素位置xは2として初期化されたのに対して、図10のステップS1001においては、ピーク値peakは画素PIXELの位置での画素信号のレベル値level(PIXEL)として初期化され、着目画素位置xはPIXEL−1として初期化される点が異なる。また、図8のステップ807において、着目画素位置xを1つ増大したのに対して、図10のステップ1007においては、着目画素位置xを1つ減少する点が異なる。また、図8のステップS808においては、着目画素位置xと画素数PIXELの比較したのに対して、図10のステップS1008においては、着目画素位置xと画像データの右端の位置となる1の比較を行う点が異なる。また、図8のステップS810において、左端の位置edge1を着目画素位置xと閾値CONTよりedge1=x−CONTにて算出したのに対して、図10のステップS1010においては、右端の位置edge2を、着目画素位置xと閾値CONTよりedge2=x+CONTにて算出する点が異なる。
Next, the measurement processing unit (8) detects the right end of the tobacco filter (1). The right end detection method is shown in the flowchart of FIG. When the measurement processing unit (8) detects the left end, the processing is performed from the small pixel toward the large pixel. However, when the right end is detected, the measurement processing unit (8) proceeds from the large pixel toward the small pixel. The difference is in the processing. Therefore, in step S801 in FIG. 8, the peak value peak is initialized as the level value level (1) of the pixel signal at the position of the
計測処理部(8)は、以上のように、大きい画素から小さい画素の方向に向かって、大きい画素から着目画素位置xまでの画像データにのうち最大となる画像データの階調度のレベルであるピーク値peakを検索し、検索したピーク値peakに予め決められた一定の値の比率RATIOをかけることによりスライスレベルsliceを算出する。
次に、計測処理部(8)は、算出したスライスレベルsliceより小さい画素の階調度のレベルを検出し、かつ、検出したスライスレベルsliceより小さい画素の階調度のレベルが連続する画素の数が予め決められた閾値CONTより大きくなる場合に、画素の階調度のレベルが連続してスライスレベルsliceより小さくなり始めた位置を右端の位置edge2として検出する。
As described above, the measurement processing unit (8) has the gradation level of image data that is the largest among the image data from the large pixel to the target pixel position x in the direction from the large pixel to the small pixel. The peak level peak is searched, and the slice level slice is calculated by multiplying the searched peak value peak by a predetermined ratio RATIO.
Next, the measurement processing unit (8) detects the level of gradation of pixels smaller than the calculated slice level slice, and the number of pixels having continuous gradation levels of pixels smaller than the detected slice level slice is determined. A position at which the level of the gradation of the pixel starts to become smaller than the slice level slice when it becomes larger than the predetermined threshold value CONT is detected as the right edge position edge2.
計測処理部(8)は、以上の処理により、左端の位置と右端の位置を検出する。次に、計測処理部(8)は、たばこフィルタ(1)を計測するための計測範囲を、検出した左端の位置と右端の位置の間として特定する。 The measurement processing unit (8) detects the left end position and the right end position by the above processing. Next, the measurement processing unit (8) specifies the measurement range for measuring the cigarette filter (1) as between the detected left end position and right end position.
次に、計測処理部(8)は、たばこフィルタ(1)を構成する透過率の異なる部材の境界位置を合成した画像データと特定した計測範囲とにより検出する。
まず、計測処理部(8)は、合成した画像データのうち特定した計測範囲に対して、ローパスフィルタをかける。ローパスフィルタとしては、部材の長さによる画像データの変化の幅よりも短く、部材同士の間に生じる隙間による画像データのピークの幅または画像データにおけるノイズの幅よりも長いフィルタを用いる。
ローパスフィルタをかけることにより、画像データに含まれるノイズ成分を低減させ、緩やかに変化する部材境界を安定して検出することが可能となる。
また、ローパスフィルタの適用範囲を、特定した計測範囲に限定することで、たばこフィルタ(1)の外側を通過した透過光による不安定な画像データの波形をローパスフィルタの対象外とすることにより、たばこフィルタ(1)の外側を通過した透過光がローパスフィルタ処理に対する影響を抑えることが可能となる。
例えば、図11(a)に示す画像データにローパスフィルタをかけると、図11(b)のような信号となる。
Next, a measurement process part (8) detects by the image data which combined the boundary position of the member with which the transmittance | permeability from which the tobacco filter (1) differs, and the specified measurement range.
First, the measurement processing unit (8) applies a low-pass filter to the specified measurement range in the combined image data. As the low-pass filter, a filter that is shorter than the width of the change in the image data due to the length of the member and longer than the width of the peak of the image data due to the gap generated between the members or the width of the noise in the image data is used.
By applying a low-pass filter, it is possible to reduce a noise component included in the image data and stably detect a member boundary that gradually changes.
Further, by limiting the application range of the low-pass filter to the specified measurement range, the waveform of unstable image data due to transmitted light that has passed outside the tobacco filter (1) is excluded from the low-pass filter target, The transmitted light that has passed through the outside of the tobacco filter (1) can be suppressed from affecting the low-pass filter processing.
For example, when a low pass filter is applied to the image data shown in FIG. 11A, a signal as shown in FIG. 11B is obtained.
次に、計測処理部(8)は、ローパスフィルタを適用した画像データより、最大値であるMAXと最小値であるMINを検出する。最大値MAXはたばこフィルタ(1)を構成する異なる透過率の部材のうち、比較的明るい部材(明部材)の透過光の受光レベルであるとみなすことができる。また、最小値MINはたばこフィルタ(1)を構成する異なる透過率の部材のうち、比較的暗い部材(暗部材)の透過光の受光レベルであるとみなすことができる。
次に、計測処理部(8)は、最大値MAXと最小値MINから、部材境界位置を求めるための閾値である部材スライスレベルSLを算出する。例えば、部材スライスレベルSLとして、最小値MAXと最小値MINとの平均としてもよい。または、例えば、Cを予め決められた0から1の値を示す定数として、以下の式(2)で部材スライスレベルSLを求めてもよい。
SL=(MAX−MIN)×C+MIN (2)
Next, the measurement processing unit (8) detects the maximum value MAX and the minimum value MIN from the image data to which the low-pass filter is applied. The maximum value MAX can be regarded as the light reception level of the transmitted light of a relatively bright member (bright member) among the members having different transmittances constituting the tobacco filter (1). Further, the minimum value MIN can be regarded as the light reception level of transmitted light of a relatively dark member (dark member) among the members having different transmittances constituting the tobacco filter (1).
Next, the measurement processing unit (8) calculates a member slice level SL that is a threshold for obtaining a member boundary position from the maximum value MAX and the minimum value MIN. For example, the member slice level SL may be an average of the minimum value MAX and the minimum value MIN. Alternatively, for example, the member slice level SL may be obtained by the following formula (2), where C is a constant indicating a predetermined value from 0 to 1.
SL = (MAX−MIN) × C + MIN (2)
次に、計測処理部(8)は、上記で求めた部材スライスレベルSLを用いて、それぞれの境界位置を検索する。本実施の形態におけるたばこフィルタ(1)の場合には、例えば、図11(d)に示すように、予め4箇所の境界があることがわかっている。また、画像データにおいて、明部材の波形よりも暗部材の波形が安定しているため、境界の検出は、暗部材から明部材へと変化し、部材スライスレベルを上回る位置を検出する。
そのため、計測処理部(8)が行う検出において、検出した左端の位置(edge1)と右端の位置(edge2)の間として特定した計測範囲において、特定した計測範囲の中央の部分の位置(M)は暗部材であると仮定する。中央の部分の位置(M)は、以下の式(3)で算出される。
M=(edge1+edge2)/2 (3)
計測処理部(8)が行う検出において、図11(c)に示すように、まず、特定した計測範囲の中央の位置(M)より左端の方に順に境界の検出を行い(D1)、画像データが部材スライスレベルSLを上回る位置を境界ED1として検出する。次に、特定した計測範囲の中央より右端の方に順に境界の検出を行い(D2)、画像データが部材スライスレベルSLを上回る位置を境界ED2として検出する。次に、左端より右端の方に順に境界の検出を行い(D3)、画像データが部材スライスレベルSLを上回る位置を境界ED3として検出する。次に、右端より左端の方に順に境界の検出を行い(D4)、画像データが部材スライスレベルSLを上回る位置を境界ED4として検出する。ここで、図11(c)における、D1からD4は検索の方向を示す。
ここで、中央(M)より左端の方(D1)、中央(M)より右端の方(D2)、右端(M)より左端の方(D3)、左端より右端の方(D4)への、それぞれの検出を行う範囲は、それぞれの開始点(中央、右端、左端)より、以下の式(4)で示される検出範囲LSとする。
LS=(LR+LD)/2 (4)
ここで、LSは検出範囲の長さであり、LRは明部材の基準となる長さであり、LDは端の部材でない暗部材の基準となる長さである。
Next, a measurement process part (8) searches each boundary position using member slice level SL calculated | required above. In the case of the tobacco filter (1) in the present embodiment, for example, it is known that there are four boundaries in advance as shown in FIG. In the image data, since the waveform of the dark member is more stable than the waveform of the bright member, the detection of the boundary changes from the dark member to the bright member, and detects a position exceeding the member slice level.
Therefore, in the detection performed by the measurement processing unit (8), the position (M) of the center portion of the specified measurement range in the measurement range specified as the position between the detected left end position (edge1) and right end position (edge2). Is a dark member. The position (M) of the central part is calculated by the following equation (3).
M = (edge1 + edge2) / 2 (3)
In the detection performed by the measurement processing unit (8), as shown in FIG. 11C, first, the boundary is detected in order from the center position (M) of the specified measurement range to the left end (D1), and the image is detected. A position where the data exceeds the member slice level SL is detected as a boundary ED1. Next, the boundary is detected in order from the center of the specified measurement range toward the right end (D2), and a position where the image data exceeds the member slice level SL is detected as the boundary ED2. Next, the boundary is detected in order from the left end to the right end (D3), and a position where the image data exceeds the member slice level SL is detected as the boundary ED3. Next, the boundary is detected in order from the right end to the left end (D4), and the position where the image data exceeds the member slice level SL is detected as the boundary ED4. Here, D1 to D4 in FIG. 11C indicate search directions.
Here, from the center (M) to the left end (D1), from the center (M) to the right end (D2), from the right end (M) to the left end (D3), from the left end to the right end (D4), The range in which each detection is performed is a detection range LS represented by the following expression (4) from each start point (center, right end, left end).
LS = (LR + LD) / 2 (4)
Here, LS is the length of the detection range, LR is the reference length of the bright member, and LD is the reference length of the dark member that is not the end member.
次に、計測処理部(8)は、検出した部材の境界ED1からED4より、境界の位置、境界の数、境界の間のそれぞれの部材の長さをそれぞれ検査する。
また、計測処理部(8)は、特定した計測範囲にスライスレベルを超える画素がなかった場合は、部材の配列が異常であると判定する。
また、計測処理部(8)は、特定した計測範囲の中央になる画像データの値が部材スライスレベルSLを超えている場合は、部材の配列が異常であると判定する。
Next, the measurement processing unit (8) inspects the position of the boundary, the number of boundaries, and the length of each member between the boundaries from the detected boundary ED1 to ED4.
Moreover, a measurement process part (8) determines with the arrangement | sequence of a member being abnormal, when there is no pixel exceeding a slice level in the specified measurement range.
Moreover, a measurement process part (8) determines with the arrangement | sequence of a member being abnormal, when the value of the image data used as the center of the specified measurement range exceeds the member slice level SL.
以上のように、本発明によれば、複数の副走査方向の画像データにおいて、副走査ごとに画像データの品質を示す特徴量を抽出し、画像データが検査に有効な特徴量を有する画像データの選択し、選択した画像データを副走査方向に加算することにより、少数の副走査の画像データに何らかの影響によりノイズが混入したときでも、ノイズが入っていない他の副走査の画像データも加算により参照しているので、正常な検査を行うことが出来る。
また、副走査方向の画像データの階調度のレベルを副走査方向へ複数選択し加算することにより、検査対象毎の検査対象となる信号の揺らぎが小さくなり、複数の円筒状光拡散体について、同一な副走査方向の部位による画像データにより検査を行うことが出来る。
また、検査対象となる複数の円筒状光拡散体ごとに、副走査方向の画像データが平均的に同じ部位からのものとなるため、適正な閾値が円筒状光拡散体毎に同じ程度となり、常に適正な閾値を維持することが可能となる。また、複数の円筒状光拡散体の画像データ同士を比較すること可能となる。
As described above, according to the present invention, from a plurality of image data in the sub-scanning direction, a feature amount indicating the quality of image data is extracted for each sub-scan, and the image data has a feature amount effective for inspection. And adding the selected image data in the sub-scanning direction, even if noise is mixed into a small number of sub-scanning image data due to some influence, other sub-scanning image data that does not contain noise is also added. Therefore, normal inspection can be performed.
Further, by selecting and adding a plurality of gradation levels of image data in the sub-scanning direction in the sub-scanning direction, fluctuations in signals to be inspected for each inspection object are reduced, and a plurality of cylindrical light diffusers are Inspection can be performed with image data of the same part in the sub-scanning direction.
In addition, for each of the plurality of cylindrical light diffusers to be inspected, since the image data in the sub-scanning direction is from the same part on average, the appropriate threshold is the same for each cylindrical light diffuser, It is possible to always maintain an appropriate threshold value. It is also possible to compare image data of a plurality of cylindrical light diffusers.
例えば、実施の形態において、Cを予め決められた0から1の値を示す定数として、以下の式で部材スライスレベルSLを求めることにより、部材の境界位置を求めた。
SL=(MAX−MIN)×C+MIN
このCの値は、タバコフィルタを透過光により撮影した画像データと実際の境界位置により、統計的に求めることが可能である。しかしながら、従来の計測の度毎に不安定な画像データからは、画像データが不安定なため、MAXとMINの値も不安定となり、そのためCの値も安定して定めることが困難であった。本発明により、安定した画像データを取得することが可能となり、MAXとMINの値も安定し、そのため安定した画像についてCを定めることが可能となる。
このように、計測の度の画像データが安定することにより、複数の計測における画像データ同士の比較や、画像データにおける統計的な処理を行うことも可能となる。
For example, in the embodiment, the boundary position of the member is obtained by obtaining the member slice level SL by the following equation, where C is a constant indicating a predetermined value from 0 to 1.
SL = (MAX−MIN) × C + MIN
The value of C can be obtained statistically from image data obtained by photographing the cigarette filter with transmitted light and the actual boundary position. However, since the image data is unstable from the unstable image data every time the conventional measurement is performed, the values of MAX and MIN are also unstable, and therefore it is difficult to stably determine the value of C. . According to the present invention, it is possible to acquire stable image data, the values of MAX and MIN are also stable, and therefore C can be determined for a stable image.
Thus, by stabilizing the image data at each measurement, it is possible to compare image data in a plurality of measurements and perform statistical processing on the image data.
次に、本発明による検査方法と従来の検査方法との検査結果の比較を行うことにより、本発明による検査方法の効果について説明する。
なお、比較においては、撮影機器(照明機器、CCDカメラ、画像処理装置)と撮影対象とは同じであり、検査対象となる画像も同一である。
Next, the effect of the inspection method according to the present invention will be described by comparing the inspection results of the inspection method according to the present invention and the conventional inspection method.
In comparison, the photographing device (illumination device, CCD camera, image processing apparatus) and the photographing object are the same, and the image to be inspected is also the same.
検査対象はたばこフィルタであり、その全長は100mm(低透過率部材20mm、高透過率部材30mm)であり、搬送速度は3000本/分である。
ここで、搬送用ドラムに上記検査対象であるたばこフィルタを貼付け、一定速度で搬送用ドラムを回転させ、上記機器を用いて画像の撮影を行うことにより、比較を行う。
The inspection object is a cigarette filter, the total length is 100 mm (
Here, the cigarette filter to be inspected is attached to the conveyance drum, the conveyance drum is rotated at a constant speed, and an image is taken using the above device, and the comparison is performed.
また、次の計測条件で、検査方式の確認を行った。CCDカメラの撮像条件は、駆動周波数は20MHzであり、走査周期は0.5msecであり、画素分解能は0.089mmである。 In addition, the inspection method was confirmed under the following measurement conditions. The imaging conditions of the CCD camera are a drive frequency of 20 MHz, a scanning cycle of 0.5 msec, and a pixel resolution of 0.089 mm.
本発明による画像合成を生成する条件は、特徴量をスライスレベル以上となる画素データの面積より求め、画像合成範囲はたばこフィルタ検出範囲の1/2走査(前後1/4走査を除く)として、合成したものである。
一方、従来の方法による特徴量がピーク値(最大値)を取る画像のみを用いる方法においては、特徴量がピークとなる1走査の画像データのみである。
The condition for generating the image composition according to the present invention is that the feature amount is obtained from the area of the pixel data that is equal to or higher than the slice level, and the image composition range is 1/2 scan of the tobacco filter detection range (excluding 1/4 scan before and after). It is synthesized.
On the other hand, in a method using only an image in which a feature amount has a peak value (maximum value) according to a conventional method, only one-scan image data having a peak feature amount is obtained.
また、エッジ検出条件において、比率(RATIO)は0.5(50%)であり、カウント値(CONT)は22画素(2mm相当)である。
また、境界検出条件において、比率(C)は0.5(50%)である。
In the edge detection condition, the ratio (RATIO) is 0.5 (50%), and the count value (CONT) is 22 pixels (corresponding to 2 mm).
In the boundary detection condition, the ratio (C) is 0.5 (50%).
以上のような測定と検出の条件において、図14(a)に示すようなタバコフィルタを、搬送ドラムに載せて上から下の副走査方向へ移動させ、CCDカメラを用いて撮影した透過光の画像を図14(b)と(c)に示す。
ここで、図14(b)は、たばこフィルタが搬送ドラムに密着した場合であり、たばこフィルタを透過した光のみが撮像されている。
また、図14(c)は、たばこフィルタと搬送ドラムの間に隙間が生じた場合の画像であり、たばこフィルタの画像において、上部(図14(c)のcaで示す)に搬送ドラムからの明るい反射光が撮影されている。
以下、図14(b)のように密着して撮影した画像を密着画像、図14(c)のように隙間が生じ光(反射光)が画像に撮影された時の画像を隙間画像として説明する。
Under the measurement and detection conditions as described above, a cigarette filter as shown in FIG. 14A is placed on the transport drum and moved from the top to the bottom in the sub-scanning direction, and the transmitted light imaged using the CCD camera is captured. Images are shown in FIGS. 14 (b) and 14 (c).
Here, FIG. 14B shows a case where the cigarette filter is in close contact with the transport drum, and only light transmitted through the cigarette filter is imaged.
FIG. 14C is an image in the case where a gap is generated between the cigarette filter and the transport drum. In the cigarette filter image, the upper part (indicated by ca in FIG. 14C) is the image from the transport drum. Bright reflected light is photographed.
In the following description, an image taken in close contact as shown in FIG. 14B will be described as a close contact image, and an image obtained when light (reflected light) is taken in the image as shown in FIG. To do.
図15は、図14(b)の密着画像および図14(c)の隙間画像に対して、搬送ドラムの進行方向である副走査方向の位置毎(横軸)に算出した特徴量(縦軸)を示すグラフである。
なお、図15においては、タバコフィルタが透過光により検出されている副走査方向の位置についてのみ、特徴量をグラフに表示している。3000本/分でたばこフィルタが搬送された場合、たばこフィルタがあるものとして検出される副走査方向の走査数は約20である。
図15から、密着画像では9副走査目にピークを持つなだらかな変化であるのに対し、隙間画像では4副走査目にピークを持つ歪んだ変化となっている。これは、4副走査目を中心に隙間が生じ、透過光を直接撮影してしまったことによる。
FIG. 15 illustrates feature amounts (vertical axis) calculated for each position (horizontal axis) in the sub-scanning direction, which is the traveling direction of the transport drum, with respect to the contact image in FIG. 14B and the gap image in FIG. ).
In FIG. 15, the feature amount is displayed on the graph only for the position in the sub-scanning direction where the cigarette filter is detected by the transmitted light. When the cigarette filter is conveyed at 3000 / min, the number of scans in the sub-scanning direction detected as having the cigarette filter is about 20.
From FIG. 15, the close contact image has a gentle change having a peak at the 9th sub-scan, whereas the gap image has a distorted change having a peak at the 4th sub-scan. This is because a gap occurs around the fourth sub-scan and the transmitted light is directly photographed.
図16は、図14(b)の密着画像から、従来技術による特徴量がピークとなる走査の画像(ピーク画像)と、本発明による合成画像と、をプロットしたグラフである。図16において、横軸は主走査方向の画素位置であり、縦軸は主走査方向の画素位置におけるピーク画像と合成画像とのそれぞれの画素レベルの値である。
ここで、ピーク画像においては、図15の密着画像における特徴量より、特徴量が最大となる9副走査目のみの画像データである。
また、本発明による合成画像(合成画像)においては、たばこフィルタ検出範囲の1/2走査(前後1/4走査を除く)として、副走査方向の走査位置が6走査目から15走査目までの10走査分の画像データから算出(この場合、算出は平均である)される画素レベルである。
FIG. 16 is a graph obtained by plotting a scanning image (peak image) with a feature amount peaking according to the prior art and a composite image according to the present invention from the contact image of FIG. 14 (b). In FIG. 16, the horizontal axis is the pixel position in the main scanning direction, and the vertical axis is the pixel level value of each of the peak image and the composite image at the pixel position in the main scanning direction.
Here, the peak image is image data of only the ninth sub-scan that has the maximum feature amount than the feature amount in the contact image of FIG.
In the composite image (composite image) according to the present invention, the scanning position in the sub-scanning direction is from the 6th scan to the 15th scan as 1/2 scan (excluding front and rear 1/4 scan) of the tobacco filter detection range. This is a pixel level calculated from image data for 10 scans (in this case, the calculation is an average).
図16において、例えば、閾値としてTh1とすると、ピーク画像または合成画像の画素レベルの波形とTh1との交点より、境界位置であるZ1、Z2、Z3とZ4の主走査方向の画素位置を検出することが可能となる。
このように、密着画像においては、ピーク画像においても、合成画像においても、主走査方向における境界位置を検出することが可能である。
In FIG. 16, for example, when Th1 is set as the threshold value, the pixel positions in the main scanning direction of the boundary positions Z1, Z2, Z3, and Z4 are detected from the intersections of the pixel level waveform of the peak image or the synthesized image and Th1. It becomes possible.
As described above, in the contact image, it is possible to detect the boundary position in the main scanning direction in both the peak image and the composite image.
ただし、図16から、ピーク画像に比べて、合成画像とすることにより、画像レベルは多少低下するものの、ノイズ成分が低減された画像を得られることがわかる。また、繰り返しテストにおいても安定した画像が得られることがわかる。これらは、特に、主走査方向の画素位置が、300を中心とした前後と900を中心とした前後の位置で、顕著である。 However, it can be seen from FIG. 16 that an image with a reduced noise component can be obtained by using a composite image as compared with the peak image, although the image level is somewhat lowered. It can also be seen that a stable image can be obtained even in the repeated test. These are particularly noticeable when the pixel position in the main scanning direction is the position before and after the center of 300 and the position before and after the center of 900.
次に、図17は、図14(c)の隙間画像から、ピーク画像と合成画像とをプロットしたグラフである。図17において、横軸は主走査方向の画素位置であり、縦軸はピーク画像と合成画像とのそれぞれの主走査方向の画素位置における画素レベルの値である。
ここで、ピーク画像においては、図15の隙間画像における特徴量より、特徴量が最大となる4副走査目のみにおける画像データである。
また、本発明による合成画像(合成画像)においては、たばこフィルタ検出範囲の1/2走査(前後1/4走査を除く)として、6走査目から15走査目までの10走査分の画像データから算出される画素レベルである。
Next, FIG. 17 is a graph in which a peak image and a composite image are plotted from the gap image in FIG. In FIG. 17, the horizontal axis represents the pixel position in the main scanning direction, and the vertical axis represents the pixel level value at the pixel position in the main scanning direction of each of the peak image and the composite image.
Here, the peak image is image data only in the fourth sub-scan where the feature amount is maximum compared to the feature amount in the gap image in FIG.
Further, in the composite image (composite image) according to the present invention, the image data for 10 scans from the 6th scan to the 15th scan is used as 1/2 scan (excluding front and rear 1/4 scan) of the tobacco filter detection range. This is the calculated pixel level.
図17において、図16と同様に、例えば、閾値としてTh1とすると、ピーク画像または合成画像の画素レベルの波形とTh1との交点より、境界位置であるZ1、Z2、Z3とZ4の主走査方向の位置を検出することが、合成画像においては可能である。
しかしながら、ピーク画像においては、正常に位置を検出することが出来ない。
In FIG. 17, as in FIG. 16, for example, when Th <b> 1 is set as the threshold, the main scanning directions of Z <b> 1, Z <b> 2, Z <b> 3, and Z <b> 4 that are boundary positions from the intersection of the pixel level waveform of the peak image or the synthesized image and Th <b> 1. Can be detected in a composite image.
However, the position cannot be normally detected in the peak image.
つまり、図17から、特徴量がピークとなる画像から計測する手法(従来の手法)では、隙間が生じた場合に、たばこフィルタを適正に撮像していない画像から計測処理を行うこととなり、所望の結果が得られない(位置の検出が出来ない)。
一方、本発明による合成画像を用いることにより、例えば図14(c)のように隙間が生じるなどして光が漏れ、一時的に特徴量のピークを持つ走査がずれた場合においても、適正な計測画像を得ることができる(位置の検出が出来る)。
That is, from FIG. 17, in the method of measuring from an image having a peak feature amount (conventional method), when a gap occurs, measurement processing is performed from an image in which the cigarette filter is not properly imaged. No result can be obtained (position cannot be detected).
On the other hand, by using the composite image according to the present invention, even when the light leaks due to, for example, a gap as shown in FIG. A measurement image can be obtained (position can be detected).
以上のように、本発明による(合成画像を用いた)検出方法を用いることにより、例えば隙間が生じノイズ(光の漏れなど)が発生した場合などにおいても、正常にタバコフィルタの境界位置を検出し、タバコフィルタの検査を正常に実行することが可能となる効果を奏する。 As described above, by using the detection method according to the present invention (using a composite image), for example, when a gap occurs and noise (such as light leakage) occurs, the boundary position of the cigarette filter is normally detected. As a result, the cigarette filter can be normally inspected.
なお、上記の図16と図17の説明においては、閾値を用い、閾値との交点より境界位置を検出したが、本発明の方法による境界位置の検出方法を用いて、検出位置を検出してもよい。 In the description of FIGS. 16 and 17, the threshold value is used and the boundary position is detected from the intersection with the threshold value. However, the detection position is detected using the boundary position detection method according to the method of the present invention. Also good.
なお、同一のたばこフィルタを繰り返し計測した結果、エッジ及び各境界位置の検出再現性は主走査方向において1画素以下(0.089mm以下)であった。また、画像合成による画像の安定化を行い、画像レベルに対して相対的にエッジ、境界位置を検出することにより、例えば、高透過率部材(明部材)の画像レベルが50から200程度の範囲内であれば、安定した計測処理が可能である(画像レベルの下限と上限を0と255として)。 As a result of repeatedly measuring the same cigarette filter, the detection reproducibility of the edge and each boundary position was 1 pixel or less (0.089 mm or less) in the main scanning direction. Further, by stabilizing the image by image synthesis and detecting the edge and boundary position relative to the image level, for example, the image level of the high transmittance member (bright member) is in the range of about 50 to 200 If it is within the range, stable measurement processing is possible (the lower limit and the upper limit of the image level are set to 0 and 255).
以上より、本発明による検査方法により、常に変動する画像信号から、安定した計測画像を得ることが可能となり、計測位置精度を向上させることができる。
また、従来の固定したスライスレベルによる計測においては、画像レベルを適正な位置に保つ必要があり、素材変更による透過率変化や汚れ・劣化による照明輝度の低下に伴い頻繁な条件調整が必要であった。本発明による検査方法を用いることで、素材変化や光量変動により画像レベルが変動しても、画像レベルに応じた計測処理を行うため、保守の頻度を大幅に削減することができる。
As described above, according to the inspection method of the present invention, it is possible to obtain a stable measurement image from an image signal that constantly fluctuates, and the measurement position accuracy can be improved.
In addition, in the conventional measurement with a fixed slice level, it is necessary to keep the image level at an appropriate position, and frequent condition adjustments are necessary as the transmittance changes due to material changes and the illumination brightness decreases due to dirt and deterioration. It was. By using the inspection method according to the present invention, even if the image level varies due to material changes or light quantity variations, the measurement process is performed according to the image level, so that the maintenance frequency can be greatly reduced.
なお、本発明の説明において、円筒形状の光拡散体として説明してきたが、本発明は円筒形状の光拡散体に限られるものではなく、任意の形状の光拡散体の検査に用いて適応可能である。また本発明による検査の方法は、透過率が異なる部材が交互に配列されている検査対象であり、予め交互に配列されている複数の部材の長さが分かっている場合には適応できるものである。 In the description of the present invention, a cylindrical light diffuser has been described. However, the present invention is not limited to a cylindrical light diffuser and can be used for inspection of a light diffuser of any shape. It is. In addition, the inspection method according to the present invention is an object to be inspected in which members having different transmittances are alternately arranged, and can be applied when the lengths of a plurality of alternately arranged members are known in advance. is there.
なお、本発明の説明において、範囲特定処理部(6)が、記録処理部(5)に記憶されている特徴量より、検査に適した副走査番号の範囲を特定したが、範囲特定処理部(6)は特徴量が最大となる副走査番号のみを検出し、計測処理部(8)は特徴量が最大となる副走査番号の画像データのみを用いて、その後の処理を行ってもよい。 In the description of the present invention, the range specifying processing unit (6) specifies the range of sub-scanning numbers suitable for inspection from the feature values stored in the recording processing unit (5). (6) may detect only the sub-scan number having the maximum feature value, and the measurement processing unit (8) may perform subsequent processing using only the image data of the sub-scan number having the maximum feature value. .
なお、この検査装置10は専用のハードウェアにより実現されるものであってもよく、また、この検査装置10はメモリおよびCPU(中央演算装置)により構成され、検査装置10の機能を実現するためのプログラムをメモリにロードして実行することによりその機能を実現させるものであってもよい。
なお、記録処理部5は、ハードディスク装置や光磁気ディスク装置、フラッシュメモリ等の不揮発性のメモリや、RAM(Random Access Memory)のような揮発性のメモリ、あるいはこれらの組み合わせにより構成されてもよい。
The
The
以上、この発明の実施形態を図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計等も含まれる。 The embodiment of the present invention has been described in detail with reference to the drawings. However, the specific configuration is not limited to this embodiment, and includes design and the like within a scope not departing from the gist of the present invention.
本発明は、タバコフィルタ検査装置に用いて好適である。 The present invention is suitable for use in a tobacco filter inspection apparatus.
1 円筒状光拡散体、たばこフィルタ
2 照明装置
3 ラインセンサ、ラインCCDカメラ
4 特徴量抽出回路
5 記録回路
6 計測処理
7 波形例
8 たばこフィルタ
9 搬送ドラム
10 検査装置
32a スリット
33 ライトガイド
34 光源
36 減光部材
DESCRIPTION OF
Claims (4)
前記光拡散体に走査方向に光を照射する光源手段と、
前記光源手段から照射された光を受光するように配置され、前記光源手段から照射されて前記光拡散体を透過した光である透過光を前記光拡散体が副走査方向に搬送される毎に撮影し、画素がライン状に配列された画像データとして出力する撮影手段と、
前記撮影手段から出力された副走査方向の画像データの階調度が予め決められた一定の閾値以上の画素を前記画像データより主走査方向に検出し、前記検出した主走査方向の画素に基づき特徴量を前記画像データ毎に算出する特徴量抽出手段と、
前記特徴量抽出手段が算出した特徴量に基づいて、副走査方向の画像データの範囲を前記副走査方向の画像データから抽出する範囲特定手段と、
前記範囲特定手段が抽出した副走査方向の画像データの範囲に基づき前記画像データを副走査方向に加算し検査用の画像データを生成する画像抽出手段と、
を有することを特徴とする検査装置。 An inspection device for a light diffuser that conveys a longitudinal light diffuser in a sub-scanning direction perpendicular to the longitudinal direction and inspects the light diffuser in a main scanning direction parallel to the longitudinal direction,
Light source means for irradiating the light diffuser with light in a scanning direction;
Each time the light diffuser is transported in the sub-scanning direction, the light diffuser is arranged so as to receive light emitted from the light source means and is transmitted from the light source means and transmitted through the light diffuser. Photographing means for photographing and outputting as image data in which pixels are arranged in a line;
A pixel having a gradation level of image data in the sub-scanning direction outputted from the photographing means is detected in the main scanning direction from the image data, and is characterized based on the detected pixel in the main scanning direction. Feature amount extraction means for calculating the amount for each image data;
A range specifying unit for extracting a range of image data in the sub-scanning direction from the image data in the sub-scanning direction based on the feature amount calculated by the feature amount extracting unit;
Image extraction means for adding the image data in the sub-scanning direction based on the range of image data in the sub-scanning direction extracted by the range specifying means, and generating image data for inspection;
An inspection apparatus comprising:
前記画像抽出手段が生成した検査用の画像データの他端から着目画素をずらしていき、他端から着目画素までの階調度の最大値であるピークレベルを求めると共に、前記ピークレベルに一定比率を乗じた値を閾値とし、前記閾値未満となる画素が連続する画素位置を前記光拡散体の他端に相当する位置として検出する第二の検出手段と、
前記第一の検出手段が検出した一端位置と前記第二の検出手段が検出した他端の位置の間の範囲より前記検査用の画像データの前記光拡散体の部分に相当する主走査方向の範囲である主走査方向範囲を特定する主走査方向範囲特定手段と、
を有することを特徴とする請求項1の検査装置。 It will shift the target pixel from one end of the image data for inspection by the image extracting unit has generated, with determining the peak level which is the maximum value of the gradient to the target pixel from one end, multiplied by a constant ratio to the peak level a first detecting means for detecting a position with a value of threshold, corresponding to pixel positions of pixels less than the threshold value are continuous to one end of the previous SL light diffuser,
The pixel of interest is shifted from the other end of the image data for inspection generated by the image extraction means to obtain a peak level that is the maximum value of the gradation from the other end to the pixel of interest, and a constant ratio is set to the peak level. a second detecting means for detecting a value obtained by multiplying the threshold value, as a position corresponding to the other end of the prior SL light diffuser pixel position where a pixel to be smaller than the threshold value are continuous,
From the range between the one end position detected by the first detection means and the position of the other end detected by the second detection means, the main scanning direction corresponding to the light diffuser portion of the image data for inspection Main scanning direction range specifying means for specifying a main scanning direction range that is a range;
The inspection apparatus according to claim 1, further comprising:
前記境界画像データ抽出手段が抽出した画像データの最大値及び最小値を求め、前記求めた最大値と最小値の差に一定の比率を乗じることにより閾値を算出する境界閾値算出手段と、
前記境界画像データ抽出手段が抽出した画像データと前記境界閾値算出手段が算出した閾値により、前記光拡散体部材の境界位置を特定する境界位置特定手段と、
を有することを特徴とする請求項2の検査装置。 Boundary image data extracting means for extracting image data for inspection generated by the image extracting means based on the main scanning direction range specified by the main scanning direction range specifying means;
Boundary threshold value calculating means for obtaining a maximum value and a minimum value of the image data extracted by the boundary image data extracting means, and calculating a threshold value by multiplying a difference between the obtained maximum value and minimum value by a certain ratio;
Boundary position specifying means for specifying the boundary position of the light diffuser member based on the image data extracted by the boundary image data extracting means and the threshold value calculated by the boundary threshold value calculating means;
The inspection apparatus according to claim 2, further comprising:
光源手段が前記光拡散体に走査方向に光を照射し、
撮影手段が前記光源手段から照射された光を受光するように配置され、前記光源手段から照射されて前記光拡散体を透過した光である透過光を前記光拡散体が副走査方向に搬送される毎に撮影し、画素がライン状に配列された画像データとして出力し、
特徴量抽出手段が前記撮影手段から出力された副走査方向の画像データの階調度が予め決められた一定の閾値以上の画素を前記画像データより主走査方向に検出し、前記検出した主走査方向の画素に基づき特徴量を前記画像データ毎に算出し、
範囲特定手段が前記特徴量抽出手段の算出した特徴量に基づいて、副走査方向の画像データの範囲を前記副走査方向の画像データから抽出し、
画像抽出手段が前記範囲特定手段の抽出した副走査方向の画像データの範囲に基づき前記画像データを副走査方向に加算し検査用の画像データを生成する、
ことを特徴とする検査方法。 It is a method used in an inspection device for a light diffuser that transports a longitudinal light diffuser in a sub-scanning direction perpendicular to the longitudinal direction and inspects the light diffuser in a main scanning direction parallel to the longitudinal direction,
A light source means irradiates the light diffuser with light in a scanning direction;
An imaging unit is arranged to receive the light emitted from the light source unit, and the light diffuser is transported in the sub-scanning direction by the transmitted light which is the light emitted from the light source unit and transmitted through the light diffuser. Each time it is taken, and output as image data with pixels arranged in a line,
A feature amount extraction unit detects pixels having a gradation level of image data in the sub-scanning direction output from the imaging unit in a main scanning direction from the image data, and the detected main scanning direction is detected from the image data. A feature amount is calculated for each image data based on the pixels of
A range specifying unit extracts a range of image data in the sub-scanning direction from the image data in the sub-scanning direction based on the feature amount calculated by the feature amount extracting unit,
An image extraction unit adds the image data in the sub-scanning direction based on the range of image data in the sub-scanning direction extracted by the range specifying unit to generate image data for inspection.
Inspection method characterized by that.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006186038A JP4917364B2 (en) | 2006-07-05 | 2006-07-05 | Inspection apparatus and inspection method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006186038A JP4917364B2 (en) | 2006-07-05 | 2006-07-05 | Inspection apparatus and inspection method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2008014785A JP2008014785A (en) | 2008-01-24 |
| JP4917364B2 true JP4917364B2 (en) | 2012-04-18 |
Family
ID=39071940
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2006186038A Expired - Fee Related JP4917364B2 (en) | 2006-07-05 | 2006-07-05 | Inspection apparatus and inspection method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4917364B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR102808779B1 (en) | 2022-01-21 | 2025-05-16 | 파나소닉 아이피 매니지먼트 가부시키가이샤 | Measurement device and measurement method |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101832755A (en) * | 2010-06-03 | 2010-09-15 | 北京理工大学 | Digital processing method for detecting micro beam deflection of micro cantilever focal plane array |
| JP2014178117A (en) * | 2011-07-06 | 2014-09-25 | Japan Tobacco Inc | Capsule inspection device and capsule inspection method |
| WO2016027350A1 (en) * | 2014-08-21 | 2016-02-25 | 日本たばこ産業株式会社 | Capsule inspection device |
| CN105277123A (en) * | 2015-09-11 | 2016-01-27 | 浙江中烟工业有限责任公司 | Groove filter stick quality automatic evaluation system based on microscope |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2901358B2 (en) * | 1991-02-21 | 1999-06-07 | 富士写真フイルム株式会社 | Image reading device |
| JPH05203587A (en) * | 1992-01-29 | 1993-08-10 | Mitsubishi Rayon Co Ltd | Inspecting device of light diffusion body |
| JP3241785B2 (en) * | 1992-01-29 | 2001-12-25 | 三菱レイヨン株式会社 | Light diffuser inspection equipment |
| JP3184287B2 (en) * | 1992-02-12 | 2001-07-09 | 三菱レイヨン株式会社 | Light diffuser inspection equipment |
| JP2001004552A (en) * | 1999-06-25 | 2001-01-12 | Canon Inc | Method and apparatus for inspecting defects on object surface |
| DE10163761A1 (en) * | 2001-12-27 | 2003-07-17 | Hauni Maschinenbau Ag | Device and system for measuring properties of multi-segment filters and method therefor |
-
2006
- 2006-07-05 JP JP2006186038A patent/JP4917364B2/en not_active Expired - Fee Related
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR102808779B1 (en) | 2022-01-21 | 2025-05-16 | 파나소닉 아이피 매니지먼트 가부시키가이샤 | Measurement device and measurement method |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2008014785A (en) | 2008-01-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP1330111A2 (en) | Automatic image quality evaluation and correction technique | |
| JP5479385B2 (en) | Counting method and counting device for the number of steel materials in a bundle of steel materials | |
| JP3751660B2 (en) | Regular pattern defect inspection system | |
| JP4917364B2 (en) | Inspection apparatus and inspection method | |
| KR20240067222A (en) | Device for measuring irregularities in sheet-shaped objects, method for measuring irregularities in sheet-shaped objects | |
| JP3871944B2 (en) | Appearance inspection device | |
| JP7278714B2 (en) | film scanning | |
| JP6035124B2 (en) | Defect inspection apparatus and defect inspection method | |
| JP2005265467A (en) | Defect detection device | |
| JP4549838B2 (en) | Glossiness measuring method and apparatus | |
| WO2024070101A1 (en) | Surface defect detecting method and surface defect detecting device | |
| JP5201014B2 (en) | Scale remaining inspection equipment for pickled steel sheet | |
| WO2015159352A1 (en) | Web inspection device, web inspection method, and web inspection program | |
| JP2015059854A (en) | Defect inspection method and defect inspection device | |
| JP6084074B2 (en) | Defect inspection apparatus and defect inspection method | |
| JP3184287B2 (en) | Light diffuser inspection equipment | |
| JP2007147323A (en) | Surface inspection device | |
| JP7165564B2 (en) | Image inspection device | |
| JP2007285869A (en) | Surface inspection apparatus and surface inspection method | |
| JP2008134107A (en) | Detection method of flaw log and flaw log detector | |
| TWI913929B (en) | Image processing apparatus, inspection apparatus, image processing method, and inspection method | |
| JP2005274325A (en) | Optical defect inspection method for metal strip | |
| JP2007147324A (en) | Surface inspection device | |
| US12495221B2 (en) | Lens flare elimination method, image capturing apparatus, and image measuring apparatus | |
| JP3241785B2 (en) | Light diffuser inspection equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20090408 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110427 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110510 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110705 |
|
| 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: 20120104 |
|
| 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: 20120126 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150203 Year of fee payment: 3 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4917364 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| LAPS | Cancellation because of no payment of annual fees |