JP2013064613A - X-ray inspection apparatus - Google Patents

X-ray inspection apparatus Download PDF

Info

Publication number
JP2013064613A
JP2013064613A JP2011202180A JP2011202180A JP2013064613A JP 2013064613 A JP2013064613 A JP 2013064613A JP 2011202180 A JP2011202180 A JP 2011202180A JP 2011202180 A JP2011202180 A JP 2011202180A JP 2013064613 A JP2013064613 A JP 2013064613A
Authority
JP
Japan
Prior art keywords
ray
ray image
value
product
dark
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2011202180A
Other languages
Japanese (ja)
Other versions
JP5829087B2 (en
Inventor
Koji Iwai
厚司 岩井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ishida Co Ltd
Original Assignee
Ishida Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ishida Co Ltd filed Critical Ishida Co Ltd
Priority to JP2011202180A priority Critical patent/JP5829087B2/en
Publication of JP2013064613A publication Critical patent/JP2013064613A/en
Application granted granted Critical
Publication of JP5829087B2 publication Critical patent/JP5829087B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Analysing Materials By The Use Of Radiation (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an X-ray inspection apparatus capable of determining whether a product is filled with a suitable quantity of articles and granular substances.SOLUTION: An X-ray irradiator 21 irradiates an object to be inspected containing articles and granular substances with X rays. An X-ray line sensor 22 detects X rays transmitted through the object to be inspected. An image generation section 82a generates an X-ray image in accordance with the amount of transmitted X rays detected by the X-ray line sensor 22. A dark part identification section 82b identifies a dark part having a predetermined gradation value in the X-ray image on the basis of a first threshold value. A first determination section 82c determines a right amount of articles on the basis of a total area of dark parts included in the X-ray image and a second threshold value.

Description

本発明は、X線検査装置に関する。   The present invention relates to an X-ray inspection apparatus.

従来、目標重量の被包装物(菓子など)を袋に充填するために、組合せ計量器が利用されている。組合せ計量器は、複数の計量部を有する。被計量物は、複数の計量部に分散供給される。目標重量の被包装物は、複数の計量部に供給された被計量物の重量が組み合わせられることにより得られる。   Conventionally, a combination weighing instrument has been used to fill a bag with a target weight to be packaged (such as confectionery). The combination weighing instrument has a plurality of weighing units. The objects to be weighed are distributedly supplied to a plurality of weighing units. The target object to be packaged can be obtained by combining the weights of the objects to be weighed supplied to the plurality of weighing units.

ところで、例えば、被包装物が、ポテトチップスのように油で揚げられた物品と、物品に添加されるシーズニング(粉粒物)とからなる場合、袋内に充填される被包装物の総量を規定範囲内の値にするだけでなく、総重量に占めるシーズニングの量が規定範囲内の値であることが望まれる。すなわち、袋に充填される物品およびシーズニングがそれぞれ適量である必要がある。特に、ポテトチップス等の物品を扱う場合、物品の油分によりシーズニングが計量部に溜まり固着する場合がある。そこで、例えば、特許文献1(特開2004−93463号公報)では、計量部におけるシーズニングの固着を防ぎ、それにより、袋にシーズニングの塊が充填されることを低減させる技術が提案されている。   By the way, for example, when the package includes an article fried in oil such as potato chips and a seasoning (powder) added to the article, the total amount of the package to be filled in the bag is determined. In addition to setting the value within the specified range, it is desirable that the amount of seasoning in the total weight is a value within the specified range. That is, it is necessary that the articles and seasonings filled in the bag have appropriate amounts. In particular, when handling an article such as potato chips, the seasoning may accumulate and adhere to the measuring section due to the oil content of the article. Thus, for example, Patent Document 1 (Japanese Patent Application Laid-Open No. 2004-93463) proposes a technique for preventing the fixation of seasoning in the measuring unit, thereby reducing the filling of the seasoning lump into the bag.

しかし、上記技術では、袋に充填されたシーズニングの量が把握できるわけではないため、総重量に占めるシーズニングの重量が規定値から外れる場合もある。   However, in the above technique, since the amount of seasoning filled in the bag cannot be grasped, the seasoning weight in the total weight may deviate from the specified value.

本発明の課題は、適量のシーズニングを含む被包装物が充填された製品(正量品)の判定が可能なX線検査装置を提供することにある。   An object of the present invention is to provide an X-ray inspection apparatus capable of determining a product (a correct amount product) filled with an object to be packaged including an appropriate amount of seasoning.

本発明に係るX線検査装置は、物品と粉粒物とがそれぞれ適量包装された正量品を判定するためのX線検査装置であって、X線照射部と、X線検出部と、画像生成部と、暗部特定部と、第1判定部とを備える。X線照射部は、物品および粉粒物を含む被検査物にX線を照射する。物品は、第1のX線透過度を有する。粉粒物は、第1のX線透過度とは異なる第2のX線透過度を有する。X線検出部は、被検査物を透過したX線を検出する。画像生成部は、X線検出部によって検出された透過X線の強度に応じてX線画像を生成する。暗部特定部は、第1の閾値に基づいて暗部を特定する。暗部とは、X線画像のうち所定の濃淡値を有する部分である。第1判定部は、X線画像に含まれる暗部の総面積と第2の閾値とに基づいて、正量品を判定する。   An X-ray inspection apparatus according to the present invention is an X-ray inspection apparatus for determining a right-quantity product in which a proper amount of an article and a granular material are packaged, and an X-ray irradiation unit, an X-ray detection unit, An image generation part, a dark part specific | specification part, and a 1st determination part are provided. The X-ray irradiation unit irradiates the inspection object including the article and the granular material with X-rays. The article has a first X-ray transmission. The granular material has a second X-ray transmission different from the first X-ray transmission. The X-ray detection unit detects X-rays that have passed through the inspection object. The image generation unit generates an X-ray image according to the intensity of the transmitted X-ray detected by the X-ray detection unit. The dark part specifying part specifies the dark part based on the first threshold value. The dark part is a part having a predetermined gray value in the X-ray image. The first determination unit determines a positive-quantity product based on the total area of the dark part included in the X-ray image and the second threshold value.

これにより、被検査物に、規定値(適量値)から外れる量の粉粒物が含まれていることを認識することができる。   Thereby, it can be recognized that the inspected object contains an amount of fine particles that deviate from the specified value (appropriate amount value).

また、X線検査装置は、第1記憶領域と、濃淡ピーク値特定部と、第2判定部とをさらに備えることが好ましい。第1記憶領域は、基準濃淡ピーク値を記憶する。基準濃淡ピーク値は、正量品に関するX線画像の濃淡値のピーク値である。濃淡ピーク値特定部は、対象濃淡ピーク値を特定する。対象濃淡ピーク値とは、画像生成部によって生成されたX線画像の濃淡値のピーク値である。第2判定部は、基準濃淡ピーク値および対象濃淡ピーク値に基づき、正量品を判定する。   Moreover, it is preferable that an X-ray inspection apparatus is further provided with a 1st memory | storage area | region, a shading peak value specific | specification part, and a 2nd determination part. The first storage area stores a reference light / dark peak value. The reference light and shade peak value is the peak value of the light and shade value of the X-ray image related to the positive quantity product. The light / dark peak value specifying unit specifies the target light / dark peak value. The target grayscale value is a peak value of the grayscale value of the X-ray image generated by the image generation unit. A 2nd determination part determines a right-quantity product based on a reference | standard lightness peak value and object lightness / darkness peak value.

これにより、規定値を外れる量の粉粒物が、袋の内部で集まっている場合や内部に薄く広がっている場合等を判定することができる。   As a result, it is possible to determine the case where the amount of the particulate matter that deviates from the specified value is gathered inside the bag or thinly spread inside.

さらに、基準濃淡ピーク値は、複数の正量品に関するX線画像に基づいて決定された基準濃淡ピーク値の範囲であり、第2判定部は、対象濃淡ピーク値が範囲に含まれるか否かを判定することが好ましい。   Furthermore, the reference light / dark peak value is a range of the reference light / dark peak value determined based on the X-ray images for a plurality of positive-quantity products, and the second determination unit determines whether or not the target light / dark peak value is included in the range. Is preferably determined.

これにより、袋内部の粉粒物の状態をさらに詳しく判定することができる。   Thereby, the state of the granular material inside the bag can be determined in more detail.

また、X線検査装置は、隙間相当量判定部と、第3判定部とをさらに備えることが好ましい。隙間相当量判定部は、隙間相当量を判定する。隙間相当量は、X線画像を構成する画素の濃淡値差に基づいて判定される。画素の濃淡値差とは、X線画像を構成する第1画素の濃淡値と、第1画素に隣接する隣接画素の濃淡値との差である。第3判定部は、X線画像に含まれる隙間相当量に基づき、正量品を判定する。   The X-ray inspection apparatus preferably further includes a gap equivalent amount determination unit and a third determination unit. The gap equivalent amount determination unit determines the gap equivalent amount. The gap-corresponding amount is determined based on the gray value difference of the pixels constituting the X-ray image. The pixel gray value difference is a difference between the gray value of the first pixel constituting the X-ray image and the gray value of an adjacent pixel adjacent to the first pixel. The third determination unit determines a positive-quantity product based on the gap equivalent amount included in the X-ray image.

これにより、袋内部で拡散した状態の粉粒物の量を考慮して正量品を判断することができる。   Thereby, a right-quantity product can be judged in consideration of the quantity of the granular material of the state diffused inside the bag.

さらに、X線検査装置は、第3閾値記憶領域と、隙間関連情報記憶領域とをさらに備えることが好ましい。第3閾値記憶領域は、第3の閾値を記憶する。第3の閾値は、濃淡値差に関する閾値である。隙間関連情報記憶領域は、隙間相当量判定値を記憶する。隙間相当量判定値は、X線画像に含まれる隙間相当量の適否を判定するための値である。また、隙間相当量判定部は、第3の閾値に基づき、X線画像に含まれる隙間相当量の総量を判定することが好ましい。また、第3判定部は、隙間相当量判定値に基づいて、隙間相当量の総量が所定範囲に含まれるか否かを判定することが好ましい。   Furthermore, it is preferable that the X-ray inspection apparatus further includes a third threshold value storage area and a gap related information storage area. The third threshold storage area stores a third threshold. The third threshold value is a threshold value related to the gray value difference. The gap related information storage area stores gap equivalent amount determination values. The gap equivalent amount determination value is a value for determining whether or not the gap equivalent amount included in the X-ray image is appropriate. The gap equivalent amount determination unit preferably determines the total amount of gap equivalent amounts included in the X-ray image based on the third threshold value. Moreover, it is preferable that a 3rd determination part determines whether the total amount of clearance equivalent amount is contained in a predetermined range based on a clearance equivalent amount determination value.

これにより、より正確に正量品を判定することができる。   As a result, it is possible to more accurately determine a positive-quantity product.

本発明に係るX線検査装置では、適量のシーズニングを含む被包装物が充填された製品(正量品)の判定を可能にする。   The X-ray inspection apparatus according to the present invention makes it possible to determine a product (a correct amount product) filled with an object to be packaged including an appropriate amount of seasoning.

本発明の一の実施形態に係るX線検査装置の外観斜視図である。1 is an external perspective view of an X-ray inspection apparatus according to an embodiment of the present invention. X線検査装置を含む検査ライン(X線検査システム)の概略図である。1 is a schematic view of an inspection line (X-ray inspection system) including an X-ray inspection apparatus. X線検査装置のシールドボックス内部の簡易構成図である。It is a simple block diagram inside the shield box of an X-ray inspection apparatus. X線検出素子によって検出されるX線の透過量の例を示すグラフである。It is a graph which shows the example of the transmission amount of the X-ray detected by an X-ray detection element. X線検査装置が備える制御装置の構成を示す制御ブロック図である。It is a control block diagram which shows the structure of the control apparatus with which an X-ray inspection apparatus is provided. X線画像A(正量品)を示す図である。It is a figure which shows X-ray image A (positive-quantity goods). X線画像B(混入品1)を示す図である。It is a figure which shows X-ray image B (mixed goods 1). X線画像C(混入品2)を示す図である。It is a figure which shows X-ray image C (mixed goods 2). X線画像A〜Cに関する暗部面積、濃淡ピーク値、隙間相当量、および判定結果を示す図である。It is a figure which shows the dark part area, X-ray peak value, gap | interval equivalent amount, and determination result regarding X-ray image AC. 濃淡ピーク値を説明するためのグラフである。It is a graph for demonstrating a shading peak value. 隙間相当量の判定を説明するためのX線画像の部分拡大図である。It is the elements on larger scale of the X-ray image for demonstrating determination of clearance gap equivalent amount. 隙間相当量の判定に用いられるフィルタ係数を説明するための概念図である。It is a conceptual diagram for demonstrating the filter coefficient used for determination of clearance gap equivalent amount. 隙間相当量の判定工程を説明するための概念図である。It is a conceptual diagram for demonstrating the determination process of clearance gap equivalent amount. シーズニング量の判定に係る処理を説明するためのフローである。It is a flow for demonstrating the process which concerns on determination of a seasoning amount. シーズニング量の判定に係る処理を説明するためのフローである。It is a flow for demonstrating the process which concerns on determination of a seasoning amount. シーズニング量の判定に係る処理を説明するためのフローである。It is a flow for demonstrating the process which concerns on determination of a seasoning amount. シーズニング量の判定に係る処理を説明するためのフローである。It is a flow for demonstrating the process which concerns on determination of a seasoning amount. シーズニング量の判定に係る処理を説明するためのフローである。It is a flow for demonstrating the process which concerns on determination of a seasoning amount. 変形例Hに示すX線検査装置の例を示す図である。It is a figure which shows the example of the X-ray inspection apparatus shown to the modification H. 変形例Iに示すX線検査装置の例を示す図である。It is a figure which shows the example of the X-ray inspection apparatus shown to the modification I. 変形例Iに示すX線検査装置の例を示す図である。It is a figure which shows the example of the X-ray inspection apparatus shown to the modification I.

以下、図面を参照して、本発明の実施形態に係るX線検査装置について説明する。   Hereinafter, an X-ray inspection apparatus according to an embodiment of the present invention will be described with reference to the drawings.

(1)X線検査装置の概略説明
図1は、本発明の一実施形態に係るX線検査装置10の外観を示す斜視図である。また、図2に、X線検査装置10が組み込まれる検査ライン(X線検査システム)100の例を示す。検査ラインでは、菓子等の製品Gの検査が行われる。製品Gは、例えば、ポテトチップス、プレッツェル等の物品50と、物品50に添加されるシーズニング(seasoning:調味料)(粉粒物)とからなる被包装物を包装したもの(袋60)である。物品50は、塊状であり、シーズニングよりも大きな面積および体積を有する。言い換えると、物品50は、例えば、ポテトや小麦粉等が焼き固められたものであって、主に炭水化物からなる。一方、シーズニングは、塩素を含む物質(例えば、塩(NaCl))や、X線を吸収し易い物質、を主成分とする。被包装物の総重量は、図示しない組合せ計量器を用いて、所定の重量になるように計量され、袋60に充填されている。
(1) Schematic description of X-ray inspection apparatus FIG. 1 is a perspective view showing an appearance of an X-ray inspection apparatus 10 according to an embodiment of the present invention. FIG. 2 shows an example of an inspection line (X-ray inspection system) 100 in which the X-ray inspection apparatus 10 is incorporated. In the inspection line, the product G such as confectionery is inspected. The product G is, for example, a product (bag 60) in which an article 50 such as potato chips or pretzel and a seasoning (seasoning) (powder) added to the article 50 are packaged. . The article 50 is massive and has a larger area and volume than seasoning. In other words, the article 50 is, for example, baked and hardened potato, flour or the like, and is mainly composed of carbohydrates. On the other hand, seasoning is mainly composed of a substance containing chlorine (for example, salt (NaCl)) or a substance that easily absorbs X-rays. The total weight of the items to be packaged is weighed to a predetermined weight using a combination weighing device (not shown) and filled in the bag 60.

検査ライン100には、X線検査装置10の他、上流コンベアユニット71と、振り分け機構72とが含まれる。上流コンベアユニット71は、X線検査装置10の上流に設けられている。上流コンベアユニット71は、X線検査装置10に対して連続的に製品Gを送る。X線検査装置10は、上流コンベアユニット71によって連続的に搬送されてくる製品Gに対してX線を照射することにより製品Gの良否判断を行う。X線検査装置10で判断された結果は、X線検査装置10の下流側に配置されている振り分け機構72に送信される。振り分け機構72は、ラインコンベアユニット73および不良品回収ライン74に接続される。振り分け機構72は、X線検査装置10において良品(正量品)と判断した製品Gをラインコンベアユニット73に振り分け、不良品と判断した製品Gを不良品回収ライン74に振り分ける。   In addition to the X-ray inspection apparatus 10, the inspection line 100 includes an upstream conveyor unit 71 and a distribution mechanism 72. The upstream conveyor unit 71 is provided upstream of the X-ray inspection apparatus 10. The upstream conveyor unit 71 continuously sends the product G to the X-ray inspection apparatus 10. The X-ray inspection apparatus 10 determines the quality of the product G by irradiating the product G continuously conveyed by the upstream conveyor unit 71 with X-rays. The result determined by the X-ray inspection apparatus 10 is transmitted to a distribution mechanism 72 arranged on the downstream side of the X-ray inspection apparatus 10. The distribution mechanism 72 is connected to the line conveyor unit 73 and the defective product collection line 74. The distribution mechanism 72 distributes the product G determined to be a non-defective product (correct product) in the X-ray inspection apparatus 10 to the line conveyor unit 73, and distributes the product G determined to be defective to the defective product collection line 74.

本実施形態に係るX線検査装置10は、製品Gの袋60の内部に充填される物品50およびシーズニング52の比率が規定範囲内か否かを判定する。言い換えると、X線検査装置10は、製品Gに含まれるシーズニング52の量が適量であるか否かを判断し、シーズニング52が適量である場合には、製品Gを正量品と判断し、シーズニング52が適量でない場合には、製品Gを不良品または混入品(すなわち、シーズニング52の塊が混入しているもの)と判断する。不良品または混入品は、袋60に規定範囲よりも多量のシーズニング52が混入した製品G(図7および図8参照)である。すなわち、袋60に含まれる物品50の量が規定範囲よりも少ない製品Gである。   The X-ray inspection apparatus 10 according to the present embodiment determines whether the ratio of the article 50 and the seasoning 52 filled in the bag 60 of the product G is within a specified range. In other words, the X-ray inspection apparatus 10 determines whether or not the amount of seasoning 52 included in the product G is an appropriate amount, and when the seasoning 52 is an appropriate amount, determines that the product G is a right-quantity product, If the seasoning 52 is not in an appropriate amount, it is determined that the product G is a defective product or a mixed product (that is, a product in which a lump of seasoning 52 is mixed). The defective product or the mixed product is a product G (see FIGS. 7 and 8) in which a larger amount of seasoning 52 is mixed in the bag 60 than the specified range. In other words, the product G is a product G in which the amount of the articles 50 contained in the bag 60 is less than the specified range.

(2)X線検査装置の詳細説明
図1または図3に示すように、X線検査装置10は、主として、シールドボックス11と、コンベアユニット12と、X線照射器(X線照射部)21と、X線ラインセンサ(X線検出部)22と、タッチパネル機能付きのモニタ30と、制御装置80とから構成されている。
(2) Detailed description of X-ray inspection apparatus As shown in FIG. 1 or FIG. 3, the X-ray inspection apparatus 10 mainly includes a shield box 11, a conveyor unit 12, and an X-ray irradiator (X-ray irradiation unit) 21. And an X-ray line sensor (X-ray detection unit) 22, a monitor 30 with a touch panel function, and a control device 80.

(2−1)シールドボックス
シールドボックス11は、後述するコンベアユニット12、X線照射器21、X線ラインセンサ22、制御装置80等を収容するボックスである。シールドボックス11の正面上部には、モニタ30の他、キーの差し込み口および電源スイッチ等が配置されている。シールドボックス11の両側面には、開口11aが形成されている。開口11aは、製品Gをシールドボックス11の内外に搬入および搬出させるために用いられる。開口11aは、遮蔽ノレン(図示せず)によって塞がれている。遮蔽ノレンは、シールドボックス11の内部のX線が外部へ漏洩することを防止する。遮蔽ノレンは、鉛を含むゴムから成形されている。遮蔽ノレンは、製品Gが開口11aを通過する際に製品Gによって押しのけられるようになっている。
(2-1) Shield Box The shield box 11 is a box that houses a conveyor unit 12, an X-ray irradiator 21, an X-ray line sensor 22, a control device 80, and the like, which will be described later. In addition to the monitor 30, a key insertion slot, a power switch, and the like are disposed on the upper front portion of the shield box 11. Openings 11 a are formed on both side surfaces of the shield box 11. The opening 11a is used to carry the product G into and out of the shield box 11. The opening 11a is blocked by a shielding noren (not shown). The shield noren prevents X-rays inside the shield box 11 from leaking to the outside. The shielding nolen is molded from rubber containing lead. The shielding nolen is pushed away by the product G when the product G passes through the opening 11a.

(2−2)コンベアユニット
コンベアユニット12は、シールドボックス11内で製品Gを搬送する。コンベアユニット12は、図1に示すように、シールドボックス11の両側面に形成された開口11aを貫通するように配置されている。コンベアユニット12は、主として、無端状のベルトと、駆動ローラと、コンベアモータ12a(図5参照)とから構成されている。駆動ローラは、コンベアモータ12aによって駆動される。駆動ローラの駆動により、ベルトが回転され、ベルト上の製品Gが下流に搬送される。コンベアユニット12による製品Gの搬送速度は、オペレータによって入力された設定速度に応じて変動する。制御装置80は、設定速度に基づいてコンベアモータ12aをインバータ制御し、製品Gの搬送速度を細かく制御する。また、コンベアモータ12aには、コンベアユニット12による搬送速度を検出して制御装置80に送るエンコーダ12b(図5参照)が装着されている。
(2-2) Conveyor unit The conveyor unit 12 conveys the product G within the shield box 11. As shown in FIG. 1, the conveyor unit 12 is disposed so as to penetrate through the openings 11 a formed on both side surfaces of the shield box 11. The conveyor unit 12 mainly includes an endless belt, a driving roller, and a conveyor motor 12a (see FIG. 5). The driving roller is driven by the conveyor motor 12a. By driving the driving roller, the belt is rotated and the product G on the belt is conveyed downstream. The conveying speed of the product G by the conveyor unit 12 varies according to the set speed input by the operator. The control device 80 performs inverter control of the conveyor motor 12a based on the set speed, and finely controls the conveyance speed of the product G. The conveyor motor 12a is equipped with an encoder 12b (see FIG. 5) that detects the conveyance speed of the conveyor unit 12 and sends it to the control device 80.

(2−3)X線照射器
X線照射器21は、図3に示すように、コンベアユニット12の上方に配置されている。X線照射器21は、X線ラインセンサ22に向けて扇状の照射範囲XにX線を照射する。照射範囲Xは、コンベアユニット12の搬送面に対して垂直に延びる。また、照射範囲Xは、コンベアユニット12の搬送方向に対して交差する方向に扇状に広がる。すなわち、X線照射器21から照射されるX線は、ベルトの幅方向に広がる。
(2-3) X-ray irradiator The X-ray irradiator 21 is disposed above the conveyor unit 12 as shown in FIG. The X-ray irradiator 21 irradiates the fan-shaped irradiation range X with X-rays toward the X-ray line sensor 22. The irradiation range X extends perpendicular to the transport surface of the conveyor unit 12. Further, the irradiation range X extends in a fan shape in a direction that intersects the transport direction of the conveyor unit 12. That is, the X-rays emitted from the X-ray irradiator 21 spread in the belt width direction.

(2−4)X線ラインセンサ
X線ラインセンサ22は、図3および図4に示すように、コンベアユニット12の下方に配置されている。X線ラインセンサ22は、主として、多数のX線検出素子22aから構成されている。X線検出素子22aは、コンベアユニット12による搬送方向に直交する向きに一直線に水平配置されている。また、各X線検出素子22aは、製品Gやコンベアユニット12を透過したX線を検出し、検出したX線に基づくX線透過信号を出力する。言い換えると、X線透過信号は、透過したX線の強度に応じたX線透過信号を出力する。なお、透過したX線の強度は、透過したX線量(透過X線量)の大小によって変動する。X線透過信号により、X線画像の明るさ(濃淡値)が決定される(図4参照)。図4は、X線ラインセンサ22のX線検出素子22aによって検出されるX線の透過量の例を示すグラフである。グラフの横軸は、各X線検出素子22aの位置に対応する。また、グラフの横軸は、コンベア12の搬送方向に直交する方向の距離に対応する。また、グラフの縦軸は、X線検出素子22aで検出されたX線の透過量であり、透過量の多いところが明るい(淡い)X線画像として表示され、透過量が少ないところが暗い(濃い)X線画像として表示される。すなわち、X線画像の明暗(濃淡)は、X線の透過量に対応する。
(2-4) X-ray line sensor The X-ray line sensor 22 is arrange | positioned under the conveyor unit 12, as shown in FIG. 3 and FIG. The X-ray line sensor 22 is mainly composed of a large number of X-ray detection elements 22a. The X-ray detection elements 22a are horizontally arranged in a straight line in a direction orthogonal to the conveyance direction by the conveyor unit 12. Each X-ray detection element 22a detects X-rays transmitted through the product G and the conveyor unit 12, and outputs an X-ray transmission signal based on the detected X-rays. In other words, the X-ray transmission signal outputs an X-ray transmission signal corresponding to the intensity of the transmitted X-ray. The intensity of the transmitted X-ray varies depending on the magnitude of the transmitted X-ray dose (transmitted X-ray dose). The brightness (shading value) of the X-ray image is determined by the X-ray transmission signal (see FIG. 4). FIG. 4 is a graph showing an example of the amount of X-ray transmission detected by the X-ray detection element 22a of the X-ray line sensor 22. The horizontal axis of the graph corresponds to the position of each X-ray detection element 22a. The horizontal axis of the graph corresponds to the distance in the direction orthogonal to the conveying direction of the conveyor 12. Also, the vertical axis of the graph is the amount of X-ray transmission detected by the X-ray detection element 22a. A portion with a large amount of transmission is displayed as a bright (light) X-ray image, and a portion with a small amount of transmission is dark (dark). Displayed as an X-ray image. That is, the lightness (darkness) of the X-ray image corresponds to the amount of X-ray transmission.

さらに、X線ラインセンサ22は、検体である製品Gが扇状のX線の照射範囲X(図3参照)を通過するタイミングを検知するためのセンサとしても機能する。すなわち、X線ラインセンサ22は、製品Gがコンベアユニット12によって搬送されX線ラインセンサ22の上方位置(照射範囲X)に来たとき、所定の閾値以下の電圧を示すX線透過信号(第1信号)を出力する。一方、X線ラインセンサ22は、製品Gが照射範囲Xを通過すると所定の閾値を上回る電圧を示すX線透過信号(第2信号)を出力する。第1信号および第2信号が後述の制御装置80に入力されることにより、照射範囲Xにおける製品Gの有無が検出される。   Furthermore, the X-ray line sensor 22 also functions as a sensor for detecting the timing when the product G as a specimen passes through the fan-shaped X-ray irradiation range X (see FIG. 3). That is, when the product G is conveyed by the conveyor unit 12 and reaches the upper position (irradiation range X) of the X-ray line sensor 22, the X-ray line sensor 22 transmits an X-ray transmission signal (first signal) indicating a voltage equal to or lower than a predetermined threshold. 1 signal) is output. On the other hand, when the product G passes the irradiation range X, the X-ray line sensor 22 outputs an X-ray transmission signal (second signal) indicating a voltage exceeding a predetermined threshold. The presence or absence of the product G in the irradiation range X is detected by inputting the first signal and the second signal to the control device 80 described later.

(2−5)モニタ
モニタ30は、液晶ディスプレイである。モニタ30は、検査時に必要となる検査パラメータ等の入力をオペレータに促す画面を表示する。モニタ30は、タッチパネル機能も有しており、オペレータからの検査パラメータ等の入力を受け付ける。
(2-5) Monitor The monitor 30 is a liquid crystal display. The monitor 30 displays a screen that prompts the operator to input inspection parameters and the like necessary for the inspection. The monitor 30 also has a touch panel function and accepts input of inspection parameters and the like from the operator.

(2−6)制御装置
制御装置80は、図5に示すように、主として、記憶部81および制御部82を含む。記憶部81は、ROM、RAM、およびHDD(ハードディスク)等によって構成されている。制御部82は、CPUによって構成されている。
(2-6) Control Device As shown in FIG. 5, the control device 80 mainly includes a storage unit 81 and a control unit 82. The storage unit 81 includes a ROM, a RAM, an HDD (hard disk), and the like. The control unit 82 is configured by a CPU.

また、制御装置80は、図示しない表示制御回路、キー入力回路、通信ポートなども備えている。表示制御回路は、モニタ30でのデータ表示を制御する回路である。キー入力回路は、モニタ30のタッチパネルを介してオペレータにより入力されたキー入力データを取り込む回路である。通信ポートは、プリンタ等の外部機器やLAN等のネットワークとの接続を可能にする。   The control device 80 also includes a display control circuit, a key input circuit, a communication port, and the like (not shown). The display control circuit is a circuit that controls data display on the monitor 30. The key input circuit is a circuit that captures key input data input by an operator via the touch panel of the monitor 30. The communication port enables connection with an external device such as a printer or a network such as a LAN.

制御装置80は、また、上述のコンベアモータ12a、エンコーダ12b、X線照射器21、およびX線ラインセンサ22等に接続されている。制御装置80は、エンコーダ12bからコンベアモータ12aの回転数に関するデータを取得し、当該データに基づき製品Gの移動距離を把握する。また、制御装置80は、上述したように、X線ラインセンサ22から出力された信号を受信することにより、コンベアユニット12のベルト上の物品Gが照射範囲Xに来たタイミングを検出する。   The control device 80 is also connected to the conveyor motor 12a, the encoder 12b, the X-ray irradiator 21, the X-ray line sensor 22, and the like described above. The control device 80 acquires data related to the rotation speed of the conveyor motor 12a from the encoder 12b, and grasps the moving distance of the product G based on the data. Further, as described above, the control device 80 receives the signal output from the X-ray line sensor 22 to detect the timing when the article G on the belt of the conveyor unit 12 has come to the irradiation range X.

(2−6−1)記憶部
記憶部81は、制御部82に実行させる各種プログラムや検査パラメータを記憶する。検査パラメータは、モニタ30のタッチパネル機能を使ってオペレータによって入力される。
(2-6-1) Storage Unit The storage unit 81 stores various programs and inspection parameters to be executed by the control unit 82. The inspection parameters are input by the operator using the touch panel function of the monitor 30.

記憶部81は、主として、X線画像記憶領域81a、暗部情報記憶領域81b、濃淡ピーク値関連情報記憶領域(第1記憶領域)81c、境界閾値記憶領域(第3閾値記憶領域)81d、隙間関連情報記憶領域81e、および判定結果記憶領域81fを有する。   The storage unit 81 mainly includes an X-ray image storage area 81a, a dark part information storage area 81b, a light / dark peak value related information storage area (first storage area) 81c, a boundary threshold storage area (third threshold storage area) 81d, and a gap relation. It has an information storage area 81e and a determination result storage area 81f.

(a)X線画像記憶領域
X線画像記憶領域81aには、後述する画像生成部82aによって生成された画像に関するデータ(画像データ)が記憶される。画像データには、X線画像を構成する各画素の濃淡値等に関する情報が含まれる。
(A) X-ray image storage area The X-ray image storage area 81a stores data (image data) related to an image generated by an image generation unit 82a described later. The image data includes information relating to the gray value of each pixel constituting the X-ray image.

(b)暗部情報記憶領域
暗部情報記憶領域81bには、暗部に関連する情報が記憶されている。暗部に関連する情報とは、X線画像に含まれる暗部を判定するための複数の閾値データと、暗部面積に関するデータとを含む。
(B) Dark Part Information Storage Area The dark part information storage area 81b stores information related to the dark part. The information related to the dark part includes a plurality of threshold data for determining the dark part included in the X-ray image and data related to the dark part area.

複数の閾値データには、第1閾値および第2閾値が含まれる。   The plurality of threshold data includes a first threshold and a second threshold.

第1の閾値とは、X線画像を構成する全画素の中から、暗い画素(暗部)を特定するための閾値である。第1の閾値は、画素に関する所定の濃淡値である。具体的に、第1の閾値は、X線画像を構成する全画素の濃淡値を分類する階調(例えば、256)のいずれの階調で明部と暗部とを区別するかを示す値である。言い換えると、第1の閾値は、X線画像について、X線の透過量が多い部分と少ない部分とを区別するための閾値である。第1の閾値は、物品50およびシーズニング52の種類に応じてそれぞれ設定される。   The first threshold value is a threshold value for specifying a dark pixel (dark part) from all the pixels constituting the X-ray image. The first threshold value is a predetermined gray value for the pixel. Specifically, the first threshold value is a value indicating which of the gradations (for example, 256) for classifying the gray values of all the pixels constituting the X-ray image to distinguish the bright part and the dark part. is there. In other words, the first threshold value is a threshold value for distinguishing between a portion with a large amount of X-ray transmission and a portion with a small amount of X-ray transmission. The first threshold is set according to the type of the article 50 and seasoning 52, respectively.

第2の閾値とは、X線画像に含まれる暗部の総面積に基づいて、正量品を判定するための閾値である。言い換えると、第2の閾値は、X線画像を構成する全画素のうち、暗部として特定された画素の総数(暗部の総面積)が、正量品である製品GのX線画像に含まれる暗部の総面積と同等であるか否かを判断するための閾値である。なお、第2の閾値は、過去に正量品と判定された複数の製品Gに係るX線画像の暗部の総面積に基づいて、ユーザによって設定される。例えば、過去に正量品と判定された複数の製品Gの暗部の総面積が1200〜1800(画素)の範囲に含まれる場合、第2の閾値として、1900(画素)を設定する。   The second threshold value is a threshold value for determining a positive product based on the total area of the dark part included in the X-ray image. In other words, the second threshold value includes the total number of pixels specified as the dark part (total area of the dark part) among all the pixels constituting the X-ray image in the X-ray image of the product G that is a positive quantity product. It is a threshold value for determining whether or not it is equal to the total area of the dark part. Note that the second threshold is set by the user based on the total area of the dark portions of the X-ray images related to the plurality of products G that have been determined to be positive products in the past. For example, when the total area of dark portions of a plurality of products G that have been determined to be positive products in the past is included in the range of 1200 to 1800 (pixels), 1900 (pixels) is set as the second threshold value.

暗部面積に関するデータは、後述する暗部特定部82bによって特定されたデータである。また、暗部面積に関するデータは、上述の第2の閾値と比較されるデータである(図9参照)。   The data regarding the dark area is data specified by a dark part specifying unit 82b described later. Further, the data relating to the dark area is data to be compared with the above-described second threshold (see FIG. 9).

(c)濃淡ピーク値関連情報記憶領域
濃淡ピーク値関連情報記憶領域81cには、基準濃淡ピーク値に関するデータと、対象濃淡ピーク値に関するデータとが記憶されている。
(C) Light / dark peak value related information storage area The light / dark peak value related information storage area 81c stores data related to the reference light / dark peak value and data related to the target light / dark peak value.

濃淡ピーク値とは、X線画像を構成する全画素のうち、最も多くの画素が有する濃淡値をいう。言い換えると、X線画像を構成する画素について、各濃淡値を有する画素数をカウントした場合に、最も画素数が多い濃淡値である(図10参照)。   The light / dark peak value refers to the light / dark value possessed by the largest number of pixels among all the pixels constituting the X-ray image. In other words, for the pixels constituting the X-ray image, when the number of pixels having each gray value is counted, the gray value having the largest number of pixels (see FIG. 10).

基準濃淡ピーク値とは、正量品のX線画像の濃淡ピーク値である。基準濃淡ピーク値は、基準濃淡ピーク幅として、上限値と下限値とが設定される。基準濃淡ピーク値は、過去に正量品と判定された複数の製品Gに係るX線画像の濃淡ピーク値に基づいて、ユーザによって設定される。例えば、過去に正量品と判定された複数の製品Gの濃淡ピーク値が、110〜130であった場合、基準濃淡ピーク値(基準濃淡ピーク幅)として、120±10が設定される。   The reference light / dark peak value is a light / dark peak value of an X-ray image of a positive quantity product. For the reference light and shade peak value, an upper limit value and a lower limit value are set as the reference light and shade peak width. The reference light and shade peak value is set by the user based on the light and shade peak values of the X-ray images related to the plurality of products G that have been determined to be positive products in the past. For example, when the light and shade peak values of a plurality of products G that have been determined to be positive products in the past are 110 to 130, 120 ± 10 is set as the reference light and shade peak value (reference light and shade peak width).

また、対象濃淡ピーク値とは、検査対象となる製品GのX線画像の濃淡ピーク値である。対象濃淡ピーク値は、後述の濃淡ピーク値特定部82dによって特定される。   The target grayscale value is the grayscale peak value of the X-ray image of the product G to be inspected. The target light / dark peak value is specified by the light / dark peak value specifying unit 82d described later.

(d)境界閾値記憶領域
境界閾値記憶領域81dには、後述する境界判定部82fによって用いられる境界閾値(第3の閾値)を記憶する。境界閾値は、X線画像における濃淡の境目(境界)を特定するための閾値である。境界は、所定の濃淡値差を有する隣り合う複数の画素によって構成される。濃淡値差は、X線画像を構成する画素のうち、任意の一の画素(特定画素)の濃淡値と、特定画素に隣接する画素(隣接画素)の濃淡値との差である。すなわち、境界閾値は、X線画像を構成する全画素のうち、隣接する画素(特定画素および隣接画素)の濃淡値差が所定の濃淡値差であるかどうかを判定するための閾値である。本実施形態において、境界閾値は、負の数(例えば、0より小さい値)とする。
(D) Boundary threshold storage area The boundary threshold storage area 81d stores a boundary threshold (third threshold) used by a boundary determination unit 82f described later. The boundary threshold value is a threshold value for specifying a light / dark boundary (boundary) in an X-ray image. The boundary is constituted by a plurality of adjacent pixels having a predetermined gray value difference. The gray value difference is the difference between the gray value of an arbitrary pixel (specific pixel) among the pixels constituting the X-ray image and the gray value of a pixel adjacent to the specific pixel (adjacent pixel). That is, the boundary threshold value is a threshold value for determining whether or not the gray value difference between adjacent pixels (specific pixel and adjacent pixel) among all the pixels constituting the X-ray image is a predetermined gray value difference. In the present embodiment, the boundary threshold value is a negative number (for example, a value smaller than 0).

(e)隙間関連情報記憶領域
隙間関連情報記憶領域81eには、隙間相当量に関連する情報が記憶されている。具体的に、隙間関連情報記憶領域81eには、隙間相当量判定値と、後述する隙間相当量判定部82gによって判定された隙間相当量とが記憶されている。
(E) Gap-related information storage area The gap-related information storage area 81e stores information related to the gap equivalent amount. Specifically, the gap related information storage area 81e stores a gap equivalent amount determination value and a gap equivalent amount determined by a gap equivalent amount determination unit 82g described later.

隙間相当量判定値は、X線画像に含まれる隙間相当量の適否を判定するための閾値である。隙間相当量は、X線画像における物品50およびシーズニング52の隙間に相当する領域(隙間相当領域)に含まれる画素の数である。隙間相当領域は、X線画像に含まれる全画素のうち、所定の濃淡値差を有する画素によって囲まれる領域である。言い換えると、隙間相当領域は、境界で囲まれる領域である。   The gap equivalent amount determination value is a threshold value for determining the suitability of the gap equivalent amount included in the X-ray image. The gap equivalent amount is the number of pixels included in a region (gap equivalent region) corresponding to the gap between the article 50 and the seasoning 52 in the X-ray image. The gap-corresponding region is a region surrounded by pixels having a predetermined gray value difference among all the pixels included in the X-ray image. In other words, the gap equivalent area is an area surrounded by a boundary.

隙間相当量判定値もまた、過去に正量品と判定された複数の製品Gに係るX線画像の隙間相当量に基づいて、ユーザによって設定される。例えば、過去に正量品と判定された複数の製品Gの隙間相当量が、950〜1050であった場合、隙間相当量判定値(隙間相当量判定値幅)として、1000±50が設定される。   The gap equivalent amount determination value is also set by the user based on gap equivalent amounts of X-ray images related to a plurality of products G that have been determined to be positive-quantity products in the past. For example, when the gap equivalent amounts of a plurality of products G that have been determined to be positive products in the past are 950 to 1050, 1000 ± 50 is set as the gap equivalent amount determination value (gap equivalent amount determination value width). .

(f)判定結果記憶領域
判定結果記憶領域81fには、後述する第1判定部82c、第2判定部82e、および第3判定部82hによって判定された結果が記憶される。具体的に、第1判定部82cによる判定結果として、暗部の総面積の適否に関する判定結果が記憶される。また、第2判定部82eによる判定結果として、対象濃淡ピーク値の適否に関する判定結果が記憶される。また、第3判定部82hによる判定結果として、隙間相当量の適否に関する判定結果が記憶される。
(F) Determination Result Storage Area The determination result storage area 81f stores results determined by a first determination unit 82c, a second determination unit 82e, and a third determination unit 82h described later. Specifically, the determination result regarding the suitability of the total area of the dark part is stored as the determination result by the first determination unit 82c. In addition, as a determination result by the second determination unit 82e, a determination result relating to the suitability of the target grayscale peak value is stored. In addition, as a determination result by the third determination unit 82h, a determination result regarding the suitability of the gap equivalent amount is stored.

(2−6−2)制御部
制御部82は、記憶部81に記憶されている各種プログラムを実行することにより、画像生成部82a、暗部特定部82b、第1判定部82c、濃淡ピーク値特定部82d、第2判定部82e、境界判定部82f、隙間相当量判定部82g、第3判定部82h、および総合判定部82iとして機能する。
(2-6-2) Control Unit The control unit 82 executes various programs stored in the storage unit 81, thereby causing the image generation unit 82a, the dark part specification unit 82b, the first determination unit 82c, and the density peak value specification. Functions as a part 82d, a second determination part 82e, a boundary determination part 82f, a gap equivalent amount determination part 82g, a third determination part 82h, and a comprehensive determination part 82i.

(a)画像生成部
画像生成部82aは、X線ラインセンサ22によって検出された透過X線の量(あるいは、透過X線の強度)に基づいてX線画像を生成する。具体的に、画像生成部82aは、X線ラインセンサ22の各X線検出素子22aから出力されるX線透過信号を細かい時間間隔で取得する。画像生成部82aは、扇状のX線の照射範囲X(図3参照)を製品Gが通過するときに出力されるX線透過信号に基づいて、商品GのX線画像を生成する。一のX線検出素子22aによって出力されるX線透過信号によって1画素の濃淡値が定まる。製品Gの全体についてのX線透過信号を取得することにより、製品Gについての2次元のX線画像のデータが生成される。画像生成部82aは、X線透過信号に対応する濃淡値を、例えば、256階調に分類してX線画像を生成する。X線画像の明るさ(濃淡値)は、X線の透過量に依存するものとする。
(A) Image Generation Unit The image generation unit 82a generates an X-ray image based on the amount of transmitted X-rays detected by the X-ray line sensor 22 (or the intensity of transmitted X-rays). Specifically, the image generation unit 82a acquires X-ray transmission signals output from the X-ray detection elements 22a of the X-ray line sensor 22 at fine time intervals. The image generation unit 82a generates an X-ray image of the product G based on the X-ray transmission signal output when the product G passes through the fan-shaped X-ray irradiation range X (see FIG. 3). The gray value of one pixel is determined by the X-ray transmission signal output by one X-ray detection element 22a. By obtaining an X-ray transmission signal for the entire product G, two-dimensional X-ray image data for the product G is generated. The image generation unit 82a generates an X-ray image by classifying the gray value corresponding to the X-ray transmission signal into, for example, 256 gradations. The brightness (shading value) of the X-ray image depends on the amount of X-ray transmission.

画像生成部82aは、例えば、図6から図8に示すX線画像A〜Cを生成する。X線画像A〜Cは、いずれも、袋60の内部に充填された、シーズニング52および複数の物品50のX線画像である。図6は、物品50とシーズニング52との比率が規定範囲内の製品G(正量品)のX線画像(X線画像A)である。すなわち、物品50には、適量のシーズニング52がまぶされている。一方、図7および図8は、物品50とシーズニング52との比率が規定範囲外の製品GのX線画像である。具体的に、図7のX線画像Bは、規定量を超えるシーズニング52が含まれており、かつ、シーズニング52が袋60の一箇所に集まっている製品G(混入品1)を示す。また、図8のX線画像Cは、規定量を超えるシーズニング52が含まれており、かつ、シーズニング52が袋60の内部で拡がっている製品G(混入品2)を示す。画像生成部82aによって生成されたX線画像は、X線画像記憶領域81aに記憶される。   The image generation unit 82a generates, for example, the X-ray images A to C illustrated in FIGS. Each of the X-ray images A to C is an X-ray image of the seasoning 52 and the plurality of articles 50 filled in the bag 60. FIG. 6 is an X-ray image (X-ray image A) of a product G (a right-quantity product) in which the ratio between the article 50 and the seasoning 52 is within a specified range. That is, an appropriate amount of seasoning 52 is applied to the article 50. On the other hand, FIGS. 7 and 8 are X-ray images of the product G in which the ratio of the article 50 and the seasoning 52 is outside the specified range. Specifically, the X-ray image B of FIG. 7 shows a product G (mixed product 1) in which the seasoning 52 exceeding the specified amount is included and the seasoning 52 is gathered in one place of the bag 60. Further, the X-ray image C in FIG. 8 shows a product G (mixed product 2) in which the seasoning 52 exceeding the specified amount is included and the seasoning 52 spreads inside the bag 60. The X-ray image generated by the image generation unit 82a is stored in the X-ray image storage area 81a.

(b)暗部特定部
暗部特定部82bは、暗部情報記憶領域81bに記憶されている第1の閾値に基づいて、X線画像記憶領域81aに記憶されているX線画像の暗部を特定する。具体的に、暗部特定部82bは、第1の閾値を用いて、X線画像を構成する全画素のうち所定の濃淡値を有する暗部を特定する。より具体的に、暗部特定部82bは、第1の閾値と、X線画像を構成する各画素の濃淡値とを比較し、各画素の濃淡値が第1の閾値以下かどうかを判断し、X線画像を二値化する。
(B) Dark Part Specifying Unit The dark part specifying unit 82b specifies the dark part of the X-ray image stored in the X-ray image storage area 81a based on the first threshold value stored in the dark part information storage area 81b. Specifically, the dark part specifying unit 82b specifies a dark part having a predetermined gray value among all the pixels constituting the X-ray image using the first threshold value. More specifically, the dark part specifying unit 82b compares the first threshold value with the gray value of each pixel constituting the X-ray image, determines whether the gray value of each pixel is equal to or lower than the first threshold value, The X-ray image is binarized.

さらに、暗部特定部82bは、二値化されたX線画像を構成する全画素のうち、暗い部分の画素数をカウントし、X線画像の暗部面積(総面積)を特定する。本実施形態では、図9に示すように、X線画像A〜Cの暗部面積が、それぞれ、1693、4265、および2432とそれぞれ特定された。暗部特定部82bは、特定した暗部面積をX線画像と関連付けて暗部情報記憶領域81bに記憶させる。   Furthermore, the dark part specifying part 82b counts the number of pixels in the dark part among all the pixels constituting the binarized X-ray image, and specifies the dark part area (total area) of the X-ray image. In the present embodiment, as shown in FIG. 9, the dark part areas of the X-ray images A to C are respectively identified as 1693, 4265, and 2432. The dark part specifying unit 82b stores the specified dark part area in the dark part information storage region 81b in association with the X-ray image.

(c)第1判定部
第1判定部82cは、X線画像記憶領域81aに記憶されているX線画像と、暗部情報記憶領域81bに記憶されている第2の閾値とに基づいて、製品Gが正量品か否かを判定する。具体的に、第1判定部82cは、X線画像に含まれる暗部の総面積と、第2の閾値とを比較して、X線画像に含まれる暗部の総面積が、第2の閾値以下である場合には、検査対象の製品Gを正量品であるものと判定する。
(C) 1st determination part The 1st determination part 82c is based on the X-ray image memorize | stored in the X-ray image storage area 81a, and the 2nd threshold value memorize | stored in the dark part information storage area 81b. It is determined whether G is a positive quantity product. Specifically, the first determination unit 82c compares the total area of the dark part included in the X-ray image with the second threshold value, and the total area of the dark part included in the X-ray image is equal to or less than the second threshold value. If it is, it is determined that the product G to be inspected is a positive-quantity product.

本実施形態では、上述したように、第2の閾値として、1900(画素)が設定されている。したがって、閾値1900以下の暗部面積(1693)を有するX線画像Aが正量品であるものと判定される。   In the present embodiment, as described above, 1900 (pixels) is set as the second threshold value. Therefore, it is determined that the X-ray image A having the dark area (1693) having a threshold value of 1900 or less is a positive product.

(d)濃淡ピーク値特定部
濃淡ピーク値特定部82dは、検査対象となる製品GのX線画像の濃淡値のピーク値(対象濃淡ピーク値)を特定する。すなわち、濃淡ピーク値特定部82dは、X線画像を構成する全画素のうち、最も多くの画素が有する濃淡値を特定する。具体的に、濃淡ピーク値特定部82dは、所定幅の濃淡値(階調)毎に画素数をカウントする。濃淡ピーク値特定部82dは、最も多くの画素数を有する濃淡値(階調)を、濃淡ピーク値として特定する。
(D) Light / dark peak value specifying part The light / dark peak value specifying part 82d specifies the light / dark peak value (target light / dark peak value) of the X-ray image of the product G to be inspected. That is, the light / dark peak value specifying unit 82d specifies the light / dark value of the largest number of pixels among all the pixels constituting the X-ray image. Specifically, the shading peak value specifying unit 82d counts the number of pixels for each shading value (gradation) having a predetermined width. The density peak value specifying unit 82d specifies the density value (gradation) having the largest number of pixels as the density peak value.

図10は、濃淡ピーク値特定部82dによって特定された階調毎の濃淡値の数(濃淡値分布)を示す曲線L1〜L3と、各X線画像の濃淡ピーク値とを示す。曲線L1はX線画像Bの濃淡値分布を示し、曲線L2はX線画像Aの濃淡値分布を示し、曲線L3はX線画像Cの濃淡値分布を示す。図10の曲線L1〜L3に基づき、X線画像Aには、濃淡値123の画素が最も多く含まれることがわかり、X線画像Bには、濃淡値91の画素が最も多く含まれることがわかり、X線画像Cには、濃淡値135の画素が最も多く含まれることがわかる(図9参照)。濃淡ピーク値特定部82dは、X線画像と、当該X線画像の対象濃淡ピーク値とを関連付けて、上述の濃淡ピーク値関連情報記憶領域81cに記憶する。   FIG. 10 shows curves L1 to L3 indicating the number of shade values (gradation value distribution) for each gradation specified by the shade peak value specifying unit 82d, and the shade peak values of each X-ray image. A curve L1 indicates the gray value distribution of the X-ray image B, a curve L2 indicates the gray value distribution of the X-ray image A, and a curve L3 indicates the gray value distribution of the X-ray image C. Based on the curves L1 to L3 in FIG. 10, it can be seen that the X-ray image A includes the most pixels with the gray value 123, and the X-ray image B includes the most pixels with the gray value 91. It can be seen that the X-ray image C contains the largest number of pixels with a gray value of 135 (see FIG. 9). The shading peak value specifying unit 82d associates the X-ray image with the target shading peak value of the X-ray image, and stores it in the shading peak value related information storage area 81c.

(e)第2判定部
第2判定部82eは、濃淡ピーク値関連情報記憶領域81cに記憶されている基準濃淡ピーク値に基づき、検査対象の製品Gが正量品であるか否かを判定する。具体的に、第2判定部82eは、上述の濃淡ピーク値特定部82dによって特定された対象濃淡ピーク値と、基準濃淡ピーク値とを比較し、対象濃淡ピーク値が基準濃淡ピーク値(基準濃淡ピーク幅)に含まれる場合、製品Gを正量品であると判断する。また、第2判定部82eは、対象濃淡ピーク値と、基準濃淡ピーク値とを比較し、対象濃淡ピーク値が基準濃淡ピーク値(基準濃淡ピーク幅)から外れる場合、製品Gを不良品であると判断する。
(E) Second determination unit The second determination unit 82e determines whether or not the product G to be inspected is a positive-quantity product based on the reference light and dark peak value stored in the light and dark peak value related information storage area 81c. To do. Specifically, the second determination unit 82e compares the target light and dark peak value specified by the above-described light and dark peak value specifying unit 82d with the reference light and dark peak value, and the target light and dark peak value becomes the reference light and dark peak value (reference light and dark value). If it is included in the (peak width), it is determined that the product G is a positive product. Further, the second determination unit 82e compares the target light and dark peak value with the reference light and dark peak value, and if the target light and dark peak value deviates from the reference light and dark peak value (reference light and dark peak width), the product G is a defective product. Judge.

本実施形態では、上述したように、基準濃淡ピーク値(基準濃淡ピーク幅)として、120±10が設定されている。したがって、濃淡ピーク値が110〜130の間にあるX線画像Aが正量品であるものと判定される(図9参照)。   In the present embodiment, as described above, 120 ± 10 is set as the reference light / dark peak value (reference light / dark peak width). Therefore, it is determined that the X-ray image A having a light and shade peak value between 110 and 130 is a positive quantity product (see FIG. 9).

(f)境界判定部
境界判定部82fは、境界閾値記憶領域81dに記憶された境界閾値に基づいて、製品GのX線画像に含まれる境界を判定する。境界とは、上述したように、一のX線画像における色の濃淡の境目である。境界は、所定の濃淡値差を有する隣り合う画素によって構成される。濃淡値差は、X線画像を構成する画素のうち、任意の一の画素(特定画素)の濃淡値と、特定画素に隣接する画素(隣接画素)の濃淡値との差である。境界判定部82fは、X線画像を構成する全画素のうち、隣接する複数の画素(特定画素および隣接画素)の濃淡値差が、境界閾値を下回るかどうかを判定する。境界判定部82fは、隣接する複数の画素の濃淡値差が境界閾値を下回る場合には、特定画素と隣接画素とが境界を構成するものと判定する。一方、境界判定部82fは、隣接する画素の濃淡値差が境界閾値以上である場合には、特定画素と隣接画素との間に境界はないものと判定する。
(F) Boundary Determination Unit The boundary determination unit 82f determines a boundary included in the X-ray image of the product G based on the boundary threshold stored in the boundary threshold storage area 81d. As described above, the boundary is a color shading boundary in one X-ray image. The boundary is constituted by adjacent pixels having a predetermined gray value difference. The gray value difference is the difference between the gray value of an arbitrary pixel (specific pixel) among the pixels constituting the X-ray image and the gray value of a pixel adjacent to the specific pixel (adjacent pixel). The boundary determination unit 82f determines whether or not the gray value difference between a plurality of adjacent pixels (specific pixels and adjacent pixels) out of all the pixels constituting the X-ray image is less than the boundary threshold value. The boundary determination unit 82f determines that the specific pixel and the adjacent pixel constitute a boundary when the gray value difference between the plurality of adjacent pixels is lower than the boundary threshold. On the other hand, the boundary determination unit 82f determines that there is no boundary between the specific pixel and the adjacent pixel when the gray value difference between the adjacent pixels is equal to or greater than the boundary threshold value.

本実施形態において、境界判定部82fは、隣接する複数画素の濃淡値差を特定するために、フィルタ処理を行う。本実施形態で採用するフィルタ処理について、図11のX線画像を用いて説明する。図11は、X線画像を部分的に拡大した模式図である。説明を簡単にするために、図11は、シーズニング52を含まない製品GのX線画像を示す。図11の斜線部分が物品50を示す領域であり、斜線で囲まれている領域Ar1が隙間領域である。図11中、多数の四角形の領域Pのそれぞれは一画素に対応する。物品50と重なる画素の濃淡値を、例えば、100とする。すなわち、少しでも斜線部分が領域Pに掛かる場合、当該領域Pに対応する画素の濃淡値は100とする。境界判定部82fは、例えば、図12に示されているようなフィルタ係数fcを使って、X線画像に対するフィルタ処理を行う。具体的には、3×3の9個の画素の濃淡値と、フィルタ係数(括弧内の数値)とをそれぞれ掛け合わせて積を求め、さらに積の総和を求める。積の総和を、3×3の9つの画素の中心に位置する一つの画素の値とする。フィルタ処理では、一つの画素の値が求められると、一行または一列ずつ対象となる画素をずらし、全画素に対する値を求める。   In the present embodiment, the boundary determination unit 82f performs a filter process in order to specify the gray value difference between a plurality of adjacent pixels. The filter processing employed in the present embodiment will be described using the X-ray image of FIG. FIG. 11 is a schematic diagram in which an X-ray image is partially enlarged. For ease of explanation, FIG. 11 shows an X-ray image of product G that does not include seasoning 52. A hatched portion in FIG. 11 is a region indicating the article 50, and a region Ar1 surrounded by the diagonal line is a gap region. In FIG. 11, each of a large number of square regions P corresponds to one pixel. For example, the gray value of a pixel overlapping the article 50 is set to 100. That is, when even a slight shaded part is applied to the region P, the gray value of the pixel corresponding to the region P is set to 100. For example, the boundary determination unit 82f performs filter processing on the X-ray image using a filter coefficient fc as illustrated in FIG. Specifically, the product is obtained by multiplying the gray value of 9 pixels of 3 × 3 and the filter coefficient (numerical value in parentheses), and the sum of the products is obtained. The sum of products is set to the value of one pixel located at the center of 9 pixels of 3 × 3. In the filter processing, when the value of one pixel is obtained, the target pixels are shifted one row or one column at a time, and values for all the pixels are obtained.

図13は、図11の主な箇所にフィルタ処理を施した結果を示す。図13の各画素中に記載されている数値が、フィルタ処理により得られた濃淡値差である。図13において、「−」で表される画素は、フィルタ処理により得られる値がマイナスの値となる画素である。本実施形態では、境界閾値が0より小さい値(すなわち、マイナスの値)であるため、図13において「−」で表される画素は、境界に相当する部分である。また、図13中、濃淡値差が0となる部分は、X線画像において色の変化がない部分である。   FIG. 13 shows the result of applying the filtering process to the main part of FIG. The numerical value described in each pixel in FIG. 13 is the gray value difference obtained by the filter processing. In FIG. 13, a pixel represented by “−” is a pixel in which the value obtained by the filtering process is a negative value. In the present embodiment, since the boundary threshold value is a value smaller than 0 (that is, a negative value), the pixel represented by “−” in FIG. 13 is a portion corresponding to the boundary. Further, in FIG. 13, the portion where the gray value difference is 0 is a portion where there is no color change in the X-ray image.

(g)隙間相当量判定部
隙間相当量判定部82gは、上記境界判定部82fによって判定された境界に基づき、X線画像に含まれる隙間相当量を判定する。隙間相当量は、上述したように、X線画像における物品50およびシーズニング52の隙間に相当する領域(隙間相当領域)に含まれる画素のうち、濃淡値差を有する画素の数である。言い換えると、隙間相当領域は、境界判定部82fによって判定された境界で囲まれた部分であり、隙間相当量は、境界で囲まれた部分から濃淡値差の無い画素を除いた、画素数である。
(G) Gap equivalent amount determination unit The gap equivalent amount determination unit 82g determines the gap equivalent amount included in the X-ray image based on the boundary determined by the boundary determination unit 82f. As described above, the gap equivalent amount is the number of pixels having a gray value difference among pixels included in a region (gap equivalent region) corresponding to the gap between the article 50 and the seasoning 52 in the X-ray image. In other words, the gap equivalent region is a portion surrounded by the boundary determined by the boundary determination unit 82f, and the gap equivalent amount is the number of pixels obtained by excluding pixels having no gray value difference from the portion surrounded by the boundary. is there.

具体的に、隙間相当量判定部82gは、上述の境界判定部82fによって判定されたX線画像に含まれる境界に基づき、隙間相当領域を判定する。また、隙間相当量判定部82gは、隙間相当領域に含まれる全画素から、濃淡値差が0の画素を差し引いた画素の数をカウントすることにより、隙間相当量を判定する。例えば、図13のX線画像中、境界で囲まれる領域(隙間相当領域)に含まれる画素数は、23である。そのうち、濃淡値差が0の画素は4つである。したがって、図13に示すX線画像について、隙間相当量判定部82gによって判定される隙間相当量は、19(画素)となる。本実施形態では、図9に示すように、X線画像A〜Cの隙間相当量は、それぞれ、1026、751、および1095とそれぞれ判定された。隙間相当量判定部82gは、判定した隙間相当量とX線画像とを関連付けて隙間関連情報記憶領域81eに記憶させる。   Specifically, the gap equivalent amount determination unit 82g determines the gap equivalent region based on the boundary included in the X-ray image determined by the boundary determination unit 82f. Further, the gap equivalent amount determination unit 82g determines the gap equivalent amount by counting the number of pixels obtained by subtracting pixels with a gray value difference of 0 from all the pixels included in the gap equivalent region. For example, in the X-ray image of FIG. 13, the number of pixels included in the region surrounded by the boundary (gap equivalent region) is 23. Of these, there are four pixels with a gray value difference of zero. Therefore, in the X-ray image shown in FIG. 13, the gap equivalent amount determined by the gap equivalent amount determination unit 82g is 19 (pixels). In the present embodiment, as shown in FIG. 9, the gap equivalent amounts of the X-ray images A to C are determined to be 1026, 751, and 1095, respectively. The gap equivalent amount determination unit 82g associates the determined gap equivalent amount with the X-ray image and stores them in the gap related information storage area 81e.

(h)第3判定部
第3判定部82hは、隙間関連情報記憶領域81eに記憶された隙間相当量判定値に基づき、検査対象となる製品Gが正量品か否かを判定する。具体的に、第3判定部82hは、上述の隙間相当量判定部82gによって判定されたX線画像の隙間相当量と、隙間相当量判定値とを比較し、X線画像の隙間相当量が隙間相当量判定値に含まれる値か否かを判定する。
(H) Third Determination Unit The third determination unit 82h determines whether or not the product G to be inspected is a positive-quantity product based on the clearance equivalent amount determination value stored in the clearance related information storage area 81e. Specifically, the third determination unit 82h compares the gap equivalent amount of the X-ray image determined by the gap equivalent amount determination unit 82g with the gap equivalent amount determination value, and the gap equivalent amount of the X-ray image is determined. It is determined whether or not the value is included in the gap equivalent amount determination value.

本実施形態では、上述したように、隙間相当量判定値(隙間相当量判定値幅)として、1000±50が設定される。したがって、隙間相当量が950〜1050の間にあるX線画像Aが正量品であるものと判定される(図9参照)。   In the present embodiment, as described above, 1000 ± 50 is set as the gap equivalent amount determination value (gap equivalent amount determination value width). Therefore, it is determined that the X-ray image A having the gap equivalent amount between 950 and 1050 is a positive product (see FIG. 9).

(i)総合判定部
総合判定部82iは、判定結果記憶領域に記憶されている判定結果に基づき、検査対象である製品Gが正量品であるか否かを総合的に判断する。総合判定部82iは、ユーザによる設定に応じて、第1総合判定、第2総合判定、および第3総合判定の少なくともいずれか一つを実行可能である。
(I) Comprehensive determination unit The comprehensive determination unit 82i comprehensively determines whether or not the product G to be inspected is a positive-quantity product based on the determination result stored in the determination result storage area. The comprehensive determination unit 82i can execute at least one of the first comprehensive determination, the second comprehensive determination, and the third comprehensive determination according to the setting by the user.

第1総合判定では、第1判定部82cにより判定された暗部の総面積の適否に基づいて、製品Gが正量品か否かの最終判断がなされる。   In the first comprehensive determination, a final determination is made as to whether or not the product G is a right-quantity product based on the suitability of the total area of the dark part determined by the first determination unit 82c.

第2総合判定では、第1判定部82cにより判定された暗部の総面積の適否と、第2判定部82eにより判定された対象濃淡ピーク値の適否とに基づいて、製品Gが正量品か否かの最終判断がなされる。   In the second comprehensive determination, whether the product G is a right-quantity product based on the suitability of the total area of the dark part determined by the first determination unit 82c and the suitability of the target density peak value determined by the second determination unit 82e. A final decision is made whether or not.

さらに、第3総合判定では、第1判定部82cにより判定された暗部の総面積の適否および第2判定部82eにより判定された対象濃淡ピーク値の適否に加え、第3判定部82hにより判定された隙間相当量の適否に基づいて、製品Gが正量品か否かの最終判断がなされる。すなわち、第3総合判定では、判定結果記憶領域に記憶されている全ての判定結果において正量品と判断された製品Gを、正量品として総合的に判断する。   Further, in the third comprehensive determination, in addition to the suitability of the total area of the dark portion determined by the first determination unit 82c and the suitability of the target grayscale value determined by the second determination unit 82e, the third determination unit 82h determines. Based on the suitability of the gap equivalent amount, a final determination is made as to whether or not the product G is a correct product. That is, in the third comprehensive determination, the product G that is determined to be a correct product in all the determination results stored in the determination result storage area is comprehensively determined as a correct product.

(3)シーズニング量の判定に係る処理
次に、図14〜図18を用いて、本実施形態に係るX線検査装置10によるシーズニング量の判定に係る処理を具体的に説明する。
(3) Processing related to determination of seasoning amount Next, processing related to determination of the seasoning amount by the X-ray inspection apparatus 10 according to the present embodiment will be specifically described with reference to FIGS.

(3−1)X線画像の生成処理
まず、図14を用いて、画像生成部82aによるX線画像の生成処理について説明する。ステップS1では、製品GがX線ラインセンサ22上に来たかどうかが判断される。製品GがX線ラインセンサ22の上に来ると、X線検出素子22aから出力されるX線透過信号の電圧が変化する。したがって、ステップS1では、具体的には、X線透過信号の電圧が、所定の閾値以下であるかどうかが判断される。ステップS1において、X線透過信号の電圧が所定の閾値以下になると、製品GがX線ラインセンサ22上に来たと判断され、ステップS2に進む。一方、ステップS1において、X線透過信号の電圧が所定の閾値以下にならない場合は、製品GがX線ラインセンサ22上に来るまで待機する。
(3-1) X-ray Image Generation Processing First, the X-ray image generation processing by the image generation unit 82a will be described with reference to FIG. In step S <b> 1, it is determined whether the product G has come on the X-ray line sensor 22. When the product G comes on the X-ray line sensor 22, the voltage of the X-ray transmission signal output from the X-ray detection element 22a changes. Therefore, in step S1, specifically, it is determined whether or not the voltage of the X-ray transmission signal is equal to or lower than a predetermined threshold value. In step S1, when the voltage of the X-ray transmission signal becomes equal to or lower than a predetermined threshold value, it is determined that the product G has been on the X-ray line sensor 22, and the process proceeds to step S2. On the other hand, if the voltage of the X-ray transmission signal does not fall below the predetermined threshold in step S <b> 1, the process waits until the product G comes on the X-ray line sensor 22.

ステップS2では、画像生成部82aによって、X線ラインセンサ22から出力されるX線透過信号が取得され、X線透過信号に基づいて製品GのX線画像が生成される(図6から図8参照)。次に、ステップS3に進む。   In step S2, an X-ray transmission signal output from the X-ray line sensor 22 is acquired by the image generation unit 82a, and an X-ray image of the product G is generated based on the X-ray transmission signal (FIGS. 6 to 8). reference). Next, the process proceeds to step S3.

ステップS3では、製品GがX線ラインセンサ22上を通過したか否かが判断される。すなわち、上記と同様、X線透過信号の電圧が、所定の閾値を上回るかどうかが判断される。ステップS3では、製品GがX線ラインセンサ22上を通過するまでX線画像を生成し続け、製品GがX線ラインセンサ22上を通過したと判断されると、ステップS4に進む。   In step S <b> 3, it is determined whether or not the product G has passed over the X-ray line sensor 22. That is, similarly to the above, it is determined whether or not the voltage of the X-ray transmission signal exceeds a predetermined threshold value. In step S3, an X-ray image is continuously generated until the product G passes over the X-ray line sensor 22, and when it is determined that the product G passes over the X-ray line sensor 22, the process proceeds to step S4.

ステップS4では、製品GのX線画像がX線画像記憶領域81aに記憶される。   In step S4, the X-ray image of the product G is stored in the X-ray image storage area 81a.

(3−2)暗部面積の判定
次に、図15を用いて、暗部面積の判定処理について説明する。ステップS11において、X線画像記憶領域81aに記憶されたX線画像が読み出される。このとき、直近に記憶されたX線画像が読み出される。言い換えると、検査対象である製品GのX線画像が読み出される。
(3-2) Determination of Dark Area The dark area determination process will be described with reference to FIG. In step S11, the X-ray image stored in the X-ray image storage area 81a is read out. At this time, the most recently stored X-ray image is read out. In other words, an X-ray image of the product G to be inspected is read out.

次に、ステップS12において、暗部特定部82bによってX線画像の暗部が特定される。具体的には、暗部特定部82bは、暗部情報記憶領域81bに記憶されている第1の閾値と、X線画像を構成する各画素の濃淡値とを比較し、X線画像を構成する各画素の濃淡値が、第1の閾値以下であるか否かに基づいて、X線画像を二値化する。   Next, in Step S12, the dark part of the X-ray image is specified by the dark part specifying part 82b. Specifically, the dark part specifying part 82b compares the first threshold value stored in the dark part information storage area 81b with the gray value of each pixel constituting the X-ray image, and forms each X-ray image. The X-ray image is binarized based on whether the gray value of the pixel is equal to or less than the first threshold value.

その後、ステップS13において、暗部特定部82bによって、二値化されたX線画像を構成する全画素のうち、暗い部分の画素数がカウントされ、X線画像の暗部面積が特定される(図9参照)。特定された暗部面積に関する情報は、暗部情報記憶領域81bに記憶される。その後、ステップS14に進む。   Thereafter, in step S13, the dark portion specifying unit 82b counts the number of dark portions of all the pixels constituting the binarized X-ray image, and specifies the dark portion area of the X-ray image (FIG. 9). reference). Information regarding the identified dark area is stored in the dark area information storage area 81b. Thereafter, the process proceeds to step S14.

ステップS14では、第1判定部82cによって暗部面積の適否が判定される。具体的には、X線画像の暗部面積と第2の閾値とが比較され、暗部面積の適否が判定される。より具体的には、暗部面積が第2の閾値以下の場合には、製品Gに含まれるシーズニング52の量が規定量であると判断し、暗部面積が第2の閾値を上回る場合には、シーズニング52の量が規定量ではないと判断する。例えば、第2の閾値として、1900(画素)を設定しておくことにより、図5から図7のX線画像に対応する製品Gについて、正量品か否かの判定を行うことができる。言い換えると、図5のX線画像で表される製品Gが正量品であるものと判定される。   In step S14, whether or not the dark area is appropriate is determined by the first determination unit 82c. Specifically, the dark area of the X-ray image is compared with the second threshold value, and the suitability of the dark area is determined. More specifically, when the dark area is equal to or smaller than the second threshold, it is determined that the amount of seasoning 52 included in the product G is a specified amount, and when the dark area exceeds the second threshold, It is determined that the amount of seasoning 52 is not the prescribed amount. For example, by setting 1900 (pixels) as the second threshold value, it is possible to determine whether or not the product G corresponding to the X-ray images of FIGS. In other words, it is determined that the product G represented by the X-ray image in FIG.

その後、ステップS15に進み、ステップS15において、第1判定部82cによる判定結果が判定結果記憶領域81fに記憶される。   Thereafter, the process proceeds to step S15, and in step S15, the determination result by the first determination unit 82c is stored in the determination result storage area 81f.

(3−3)濃淡ピーク値の判定
次に、図16を用いて、濃淡ピーク値の判定処理について説明する。まず、ステップS21において、X線画像記憶領域81aに記憶されたX線画像が読み出される。このとき、直近に記憶されたX線画像が読み出される。言い換えると、検査対象である製品GのX線画像が読み出される。
(3-3) Determination of Light / Light Peak Value Next, the light / dark peak value determination process will be described with reference to FIG. First, in step S21, the X-ray image stored in the X-ray image storage area 81a is read. At this time, the most recently stored X-ray image is read out. In other words, an X-ray image of the product G to be inspected is read out.

次に、ステップS22に進み、濃淡ピーク値特定部82dによってX線画像の濃淡ピーク値が特定される。具体的には、製品GのX線画像を構成する全画素のうち、いずれの濃淡値を有する画素の数が多いかが判断される。   Next, the process proceeds to step S22, in which the shading peak value specifying unit 82d specifies the shading peak value of the X-ray image. Specifically, it is determined which of all the pixels constituting the X-ray image of the product G has a gray value.

その後、ステップS23に進み、第2判定部82eによって、対象濃淡ピーク値の適否が判定される。具体的には、第2判定部82eによって、濃淡ピーク値関連情報記憶領域81cに記憶されている基準濃淡ピーク値と、対象濃淡ピーク値とが比較され、対象濃淡ピーク値が基準濃淡ピーク値(基準濃淡ピーク幅)に含まれる値かどうかが判定される。本実施形態では、例えば、基準濃淡ピーク値として、120±10(下限値110、上限値130)をそれぞれ設定しておくことにより、X線画像A〜Cに対応する製品の良否判定を行うことができる。言い換えると、X線画像Aで表される製品Gが正量品であるものと判定される。   Thereafter, the process proceeds to step S23, and the second determination unit 82e determines whether the target light / dark peak value is appropriate. Specifically, the second determination unit 82e compares the reference light and dark peak value stored in the light and dark peak value related information storage area 81c with the target light and dark peak value, and the target light and dark peak value becomes the reference light and dark peak value ( It is determined whether or not the value is included in the (reference grayscale peak width). In the present embodiment, for example, by setting 120 ± 10 (lower limit value 110, upper limit value 130) as the reference shading peak value, the quality of the product corresponding to the X-ray images A to C is determined. Can do. In other words, it is determined that the product G represented by the X-ray image A is a positive product.

ステップS23において、第2判定部82eによる対象濃淡ピーク値の適否が判定されると、その後、ステップS24に進む。ステップS24では、判定結果が判定結果記憶領域81fに記憶される。   In step S23, if the appropriateness of the target grayscale peak value is determined by the second determination unit 82e, the process proceeds to step S24. In step S24, the determination result is stored in the determination result storage area 81f.

(3−4)隙間相当量の判定
次に、図17を用いて、隙間相当量の判定処理について説明する。まず、ステップS31において、X線画像記憶領域81aに記憶されたX線画像が読み出される。このとき、直近に記憶されたX線画像が読み出される。言い換えると、検査対象である製品GのX線画像が読み出される。
(3-4) Determination of gap equivalent amount Next, a gap equivalent amount determination process will be described with reference to FIG. First, in step S31, the X-ray image stored in the X-ray image storage area 81a is read. At this time, the most recently stored X-ray image is read out. In other words, an X-ray image of the product G to be inspected is read out.

次に、ステップS32において、境界判定部82fによって、X線画像に含まれる境界が判定される。具体的には、フィルタ処理を実行することにより、X線画像を構成する各画素について、隣接画素との濃淡値差が判定される。境界判定部82fは、境界閾値より低い濃淡値差を有する画素を、X線画像中の境界であるものと判定する。   Next, in step S32, the boundary determination unit 82f determines the boundary included in the X-ray image. Specifically, by executing the filtering process, the gray value difference with the adjacent pixel is determined for each pixel constituting the X-ray image. The boundary determination unit 82f determines that a pixel having a gray value difference lower than the boundary threshold is a boundary in the X-ray image.

次に、ステップS33において、隙間相当量判定部82gによってX線画像における隙間相当領域が特定される。具体的に、隙間相当量判定部82gは、X線画像のうち、境界で囲まれる領域を隙間相当領域として特定する。さらに、隙間相当量判定部82gは、隙間相当領域に含まれる全画素数から、濃淡値差が無い画素数を減算する。隙間相当量判定部82gは、隙間相当領域内の濃淡値差が0以外の画素数をカウントして、隙間相当量を判定する。隙間相当量判定部82gは、判定した隙間相当量とX線画像とを関連付けて隙間関連情報記憶領域81eに記憶させる。   Next, in step S33, a gap equivalent region in the X-ray image is specified by the gap equivalent amount determination unit 82g. Specifically, the gap-equivalent amount determination unit 82g specifies an area surrounded by the boundary in the X-ray image as the gap-equivalent area. Further, the gap-equivalent amount determination unit 82g subtracts the number of pixels having no grayscale value difference from the total number of pixels included in the gap-equivalent area. The gap equivalent amount determination unit 82g determines the gap equivalent amount by counting the number of pixels having a gray value difference other than 0 in the gap equivalent region. The gap equivalent amount determination unit 82g associates the determined gap equivalent amount with the X-ray image and stores them in the gap related information storage area 81e.

その後、ステップS34に進み、第3判定部82hによって、隙間相当量の適否が判定される。具体的には、第3判定部82hによって、隙間関連情報記憶領域81eに記憶された隙間相当量判定値と、隙間関連情報記憶領域81eに記憶された隙間相当量とが比較され、隙間相当量が隙間相当量判定値(隙間相当量幅)に含まれる値かどうかが判定される。本実施形態では、例えば、隙間相当量判定値として、1100±100(下限値900、上限値1200)を設定しておくことにより、X線画像A〜Cで表される製品の良否を判定することができる。言い換えると、X線画像Aで表される製品Gが正量品であるものと判定される。   Thereafter, the process proceeds to step S34, and the third determination unit 82h determines whether the gap equivalent amount is appropriate. Specifically, the third determination unit 82h compares the gap equivalent amount determination value stored in the gap related information storage area 81e with the gap equivalent amount stored in the gap related information storage area 81e, and the gap equivalent amount. Is a value included in the gap equivalent amount determination value (gap equivalent amount width). In the present embodiment, for example, by setting 1100 ± 100 (lower limit value 900, upper limit value 1200) as the gap equivalent amount determination value, the quality of the product represented by the X-ray images A to C is determined. be able to. In other words, it is determined that the product G represented by the X-ray image A is a positive product.

ステップS34において、第3判定部82hによる隙間相当量の適否が判定されると、その後、ステップS35に進む。ステップS35では、判定結果が、判定結果記憶領域81fに記憶される。   If it is determined in step S34 that the gap determination amount is appropriate by the third determination unit 82h, the process proceeds to step S35. In step S35, the determination result is stored in the determination result storage area 81f.

(3−5)総合判定処理
次に、図18を用いて、総合判定処理について説明する。まず、ステップS41において、総合判定部82iよって、ユーザによって設定された総合判定の種類が、第1総合判定かどうかが判断される。ステップS41において、種類の設定が、第1総合判定の場合には、ステップS42に進み、第1総合判定で無かった場合には、ステップS43に進む。
(3-5) Comprehensive Determination Process Next, the comprehensive determination process will be described with reference to FIG. First, in step S41, the comprehensive determination unit 82i determines whether or not the comprehensive determination type set by the user is the first comprehensive determination. In step S41, if the type setting is the first comprehensive determination, the process proceeds to step S42. If the type setting is not the first comprehensive determination, the process proceeds to step S43.

ステップS42では、総合判定部82iによって第1総合判定が行われる。具体的に、総合判定部82iは、第1判定結果に基づき、総合判定を行う。言い換えると、総合判定部82iは、判定結果記憶領域81fに記憶された暗部の総面積の適否に基づいて、製品Gが正量品か否かの最終判断を行う。   In step S42, the comprehensive determination unit 82i performs the first comprehensive determination. Specifically, the comprehensive determination unit 82i performs comprehensive determination based on the first determination result. In other words, the comprehensive determination unit 82i makes a final determination as to whether or not the product G is a right-quantity product based on the suitability of the total area of the dark part stored in the determination result storage area 81f.

一方、ステップS43では、総合判定部82iによって、ユーザが設定した総合判定の種類が第2総合判定かどうかを判断する。ステップS43において、種類の設定が、第2総合判定の場合には、ステップS44に進み、第2総合判定で無かった場合には、ステップS45に進む。   On the other hand, in step S43, the comprehensive determination unit 82i determines whether the comprehensive determination type set by the user is the second comprehensive determination. In step S43, if the type setting is the second comprehensive determination, the process proceeds to step S44. If the type setting is not the second comprehensive determination, the process proceeds to step S45.

ステップS44では、総合判定部82iによって第2総合判定が行われる。具体的に、総合判定部82iは、第1判定結果および第2判定結果の両方に基づき、総合判定を行う。言い換えると、総合判定部82iは、判定結果記憶領域81fに記憶された暗部の総面積の適否に関する判定および対象濃淡ピーク値の適否に関する判定に基づき、製品Gが正量品か否かの最終判断を行う。総合判定部82iは、両方の判定において正量品と判定された製品Gに限り、最終的に正量品と判断する。一方、少なくともいずれか一方が正量品と判定されなかった場合、総合判定部82iは、最終的に製品Gを不良品(混入品)と判定する。   In step S44, the comprehensive determination unit 82i performs the second comprehensive determination. Specifically, the comprehensive determination unit 82i performs a comprehensive determination based on both the first determination result and the second determination result. In other words, the overall determination unit 82i finally determines whether or not the product G is a right-quantity product based on the determination regarding the suitability of the total area of the dark part stored in the determination result storage area 81f and the determination on the suitability of the target gray peak value. I do. The overall determination unit 82i finally determines that the product is a right product only for the product G determined to be a right product in both determinations. On the other hand, if at least one of the products is not determined to be a right-quantity product, the overall determination unit 82i finally determines the product G to be a defective product (mixed product).

ステップS45では、総合判定部82iによって第3総合判定が行われる。具体的に、総合判定部82iは、第1判定結果、第2判定結果、および第3判定結果の全てに基づき、総合判定を行う。言い換えると、総合判定部82iは、判定結果記憶領域81fに記憶された暗部の総面積の適否に関する判定、対象濃淡ピーク値の適否に関する判定、および隙間相当量の適否に関する判定に基づき、製品Gが正量品か否かの最終判断を行う。総合判定部82iは、三つの判定結果の全てで正量品と判定された製品Gに限り、最終的に正量品と判断する。一方、少なくともいずれか一つが正量品と判定されなかった場合、総合判定部82iは、最終的に製品Gを不良品(混入品)と判定する。   In step S45, a third comprehensive determination is performed by the comprehensive determination unit 82i. Specifically, the comprehensive determination unit 82i performs comprehensive determination based on all of the first determination result, the second determination result, and the third determination result. In other words, the overall determination unit 82i determines whether the product G is based on the determination regarding the appropriateness of the total area of the dark part stored in the determination result storage area 81f, the determination regarding the appropriateness of the target shade peak value, and the determination regarding the appropriateness of the gap equivalent amount. A final decision is made as to whether the product is a regular product. The comprehensive determination unit 82i finally determines that the product is a right product only for the product G that is determined as a right product by all three determination results. On the other hand, if at least one of the products is not determined to be a correct product, the overall determination unit 82i finally determines the product G to be a defective product (mixed product).

(4)特徴
(4−1)
上記実施形態では、X線画像の暗部面積に基づいて、検査対象となる製品Gに含まれる物品50とシーズニング52との比率を判定する(第1総合判定)。製品Gは、検査対象となる製品Gは、ポテトチップスやプレッツェル等の物品50と、シーズニング(調味料)52とが袋60に充填されたものである。被包装物が、ポテトチップスやプレッツェル等のように油で揚げられた物品50と、物品50にまぶされるシーズニング52とからなる場合、被包装物の計量時に、物品50の油分によりシーズニング52が計量器に固着しやすい。その結果、計量器に固着したシーズニング52が、まとまって、袋60の内部に充填される場合がある。このようなとき、袋60に充填される物品50およびシーズニング52の比率は適当でない。すなわち、製品Gの総量は規定範囲内であった場合でも、製品Gに含まれるシーズニング52の比率が高く、物品50は適量充填されていないことになる。
(4) Features (4-1)
In the above embodiment, the ratio between the article 50 and the seasoning 52 included in the product G to be inspected is determined based on the dark area of the X-ray image (first comprehensive determination). The product G to be inspected is a product G in which a bag 60 is filled with an article 50 such as potato chips or pretzel and a seasoning 52. When the package includes an article 50 fried in oil, such as potato chips or pretzel, and a seasoning 52 that is applied to the article 50, the seasoning 52 is measured by the oil content of the article 50 when the package is weighed. Easy to stick to the vessel. As a result, the seasoning 52 fixed to the measuring instrument may be collected and filled into the bag 60. In such a case, the ratio of the article 50 and the seasoning 52 filled in the bag 60 is not appropriate. That is, even when the total amount of the product G is within the specified range, the ratio of the seasoning 52 included in the product G is high, and the article 50 is not filled with an appropriate amount.

そこで、上記実施形態に係るX線検査装置10は、X線画像の暗部面積に基づいて、検査対象となる製品Gに含まれる物品50とシーズニング52との比率を検査する。X線検査装置10は、製品Gを透過したX線量に基づいてX線画像(図6〜図8参照)を生成し、X線画像に基づき、製品Gに含まれる物品50とシーズニング52との比率が規定範囲か否かの判定を行う。ポテトや小麦粉が焼き固められた(塊状の)物品50は、主として、炭水化物からなる。また、物品50には、酸素や水素も多く含まれる。一方、シーズニング52は、塩素(具体的には、塩(NaCl))を多く含んでいる。一般的に、原子番号の大きな原子ほど、単位体積当たりのX線の吸収量が高くなる。言い換えると、原子番号の大きな原子ほど、単位体積当たりのX線の透過度が低くなる。したがって、塩を含むシーズニング52は、酸素や水素を含む物品50よりX線を吸収し、X線が透過し難い。すなわち、X線の透過量が小さくなる結果、X線画像の暗部が多くなる。   Therefore, the X-ray inspection apparatus 10 according to the embodiment inspects the ratio between the article 50 and the seasoning 52 included in the product G to be inspected based on the dark area of the X-ray image. The X-ray inspection apparatus 10 generates an X-ray image (see FIGS. 6 to 8) based on the X-ray dose that has passed through the product G. Based on the X-ray image, the X-ray inspection apparatus 10 generates an article 50 and a seasoning 52 included in the product G. It is determined whether the ratio is within a specified range. An article 50 in which potato or flour is baked and hardened (a block) is mainly composed of carbohydrates. The article 50 also contains a lot of oxygen and hydrogen. On the other hand, the seasoning 52 contains a large amount of chlorine (specifically, salt (NaCl)). In general, the larger the atomic number, the higher the amount of X-ray absorption per unit volume. In other words, the larger the atomic number, the lower the X-ray transmittance per unit volume. Therefore, the seasoning 52 containing salt absorbs X-rays from the article 50 containing oxygen and hydrogen and hardly transmits X-rays. That is, as a result of the reduced amount of X-ray transmission, the dark part of the X-ray image increases.

上記実施形態では、上記原理を利用し、X線検査装置10において、X線画像のうち所定の濃淡値を有する暗部を特定し、暗部面積に基づいて製品Gの適否を判定する。すなわち、シーズニング52の塊が、袋60に充填された後、袋60の内部で拡がる結果、X線画像では、透過X線量が少ない部分(暗部)が多くなる。すなわち、所定の閾値(第2の閾値)を上回る暗部面積を有するX線画像には、多量のシーズニング52が含まれていると判断することができる。これにより、規定量を超えるシーズニング52が含まれる製品Gを特定することができる。   In the above-described embodiment, using the above principle, the X-ray inspection apparatus 10 identifies a dark part having a predetermined gray value in the X-ray image, and determines whether the product G is appropriate based on the dark part area. That is, after the lump of seasoning 52 is filled in the bag 60 and expands inside the bag 60, the X-ray image has a large portion (dark part) where the transmitted X-ray dose is small. That is, it can be determined that a large amount of seasoning 52 is included in an X-ray image having a dark area larger than a predetermined threshold (second threshold). Thereby, the product G including the seasoning 52 exceeding the specified amount can be specified.

(4−2)
上記実施形態では、X線画像の暗部面積に加えて、X線画像の濃淡ピーク値に基づいて、検査対象となる製品Gに含まれる物品50とシーズニング52との比率を判定する(第2総合判定)。X線画像の暗部面積に基づく判定に基づき、袋60内の物品50およびシーズニング52の比率を判定した場合、例えば、シーズニング52が袋60の内部で一箇所に集まっていた場合には暗部面積のみに基づくと、判定を誤る場合がある。
(4-2)
In the embodiment described above, the ratio between the article 50 and the seasoning 52 included in the product G to be inspected is determined based on the density peak value of the X-ray image in addition to the dark area of the X-ray image (second comprehensive Judgment). When the ratio of the article 50 and the seasoning 52 in the bag 60 is determined based on the determination based on the dark area of the X-ray image, for example, when the seasoning 52 is gathered in one place inside the bag 60, only the dark area is Based on this, the determination may be wrong.

しかし、上記実施形態に係るX線検査装置では、さらにX線画像の濃淡ピーク値に基づく判定を行う。X線画像の濃淡ピーク値は、X線画像を構成する各画素の濃淡値の分布を示す値である。X線検査装置では、基準濃淡ピーク値(基準濃淡ピーク幅)を閾値として設定し、X線画像の濃淡ピーク値が、基準濃淡ピーク幅に含まれる否かが判断することにより、正量品か否かが判定される。具体的には、検査対象となる製品Gが、袋60の一箇所にシーズニング52が集まっているような混入品1(図7)である場合、X線画像中、シーズニング52が集まっている暗い部分の面積が大きくなる。その結果、X線画像の濃淡ピーク値は、正量品の濃淡ピーク値よりも低い値になる場合がある。一方、検査対象となる製品Gが、袋60の内部でシーズニング52が拡がっているような混入品2(図8)である場合、混入品2に含まれる物品50が少ないことも相まって、X線画像中の明るい部分の面積が大きくなる場合がある。したがって、X線画像の濃淡ピーク値は、正量品の濃淡ピーク値よりも高い値になる。以上より、対象濃淡ピーク値が基準濃淡ピーク値よりも小さい場合には、袋60には、規定量を超えたシーズニング52が充填され、かつ、袋60内部で、シーズニング52が集合していることが分かる。また、対象濃淡ピーク値が、基準濃淡ピーク値よりも大きい場合には、規定量を超えたシーズニング52が充填され、かつ、シーズニング52が袋60の内部で全体的に薄く拡がっていることが分かる。   However, in the X-ray inspection apparatus according to the above-described embodiment, the determination is further performed based on the shading peak value of the X-ray image. The shading peak value of the X-ray image is a value indicating the shading value distribution of each pixel constituting the X-ray image. In the X-ray inspection apparatus, a reference grayscale value (reference grayscale peak width) is set as a threshold value, and it is determined whether the X-ray image is a correct product by determining whether or not the grayscale peak value of the X-ray image is included in the standard grayscale peak width. It is determined whether or not. Specifically, when the product G to be inspected is the mixed product 1 (see FIG. 7) in which the seasoning 52 is gathered at one place of the bag 60, the seasoning 52 is gathered in the X-ray image. The area of the part increases. As a result, the shading peak value of the X-ray image may be lower than the shading peak value of the positive quantity product. On the other hand, when the product G to be inspected is the mixed product 2 (FIG. 8) in which the seasoning 52 is expanded inside the bag 60, the X-ray is coupled with the fact that the mixed product 2 contains a small number of articles 50. The area of the bright part in the image may be large. Therefore, the light and shade peak value of the X-ray image is higher than the light and dark product. As described above, when the target light and shade peak value is smaller than the reference light and shade peak value, the bag 60 is filled with the seasoning 52 exceeding the specified amount, and the seasoning 52 is gathered inside the bag 60. I understand. In addition, when the target light and shade peak value is larger than the reference light and shade peak value, it can be seen that the seasoning 52 exceeding the specified amount is filled and the seasoning 52 spreads thinly in the bag 60 as a whole. .

(4−3)
上記実施形態では、X線画像の暗部面積および濃淡ピーク値に加え、X線画像の隙間面積に基づいて、検査対象となる製品Gに含まれる物品50とシーズニング52との比率を判定する(第3総合判定)。
(4-3)
In the above-described embodiment, the ratio between the article 50 and the seasoning 52 included in the product G to be inspected is determined based on the dark area and density peak value of the X-ray image, and the gap area of the X-ray image (first). 3 comprehensive judgment).

シーズニング52の量が適量である場合には物品50と物品50との間に所定の隙間を有していた場合であっても、シーズニング52の量が適量を超え、製品Gに占めるシーズニング52の量が増えると、物品50と物品50との間(隙間)がシーズニング52によって埋められやすい。すなわち、物品50と物品50との間に形成される隙間の量が少なくなる傾向にある。その結果、正量品と比較してX線の透過量が減少し、X線画像の暗い部分での濃淡変化が少なくなる傾向がある。したがって、上記実施形態に係るX線検査装置では、X線画像の隙間面積をさらに用いて、物品50とシーズニング52との比率を判定するための指標とした。これにより、製品Gに含まれるシーズニング52の量が規定量でないことがわかる。   When the amount of seasoning 52 is an appropriate amount, the amount of seasoning 52 exceeds the appropriate amount even if there is a predetermined gap between the items 50 and 50, and the seasoning 52 occupying the product G When the amount increases, the gap between the article 50 and the article 50 (gap) is easily filled with the seasoning 52. That is, the amount of the gap formed between the article 50 and the article 50 tends to decrease. As a result, the amount of X-ray transmission decreases as compared with a positive-quantity product, and there is a tendency for the change in shading in the dark part of the X-ray image to be reduced. Therefore, in the X-ray inspection apparatus according to the embodiment, the gap area of the X-ray image is further used as an index for determining the ratio between the article 50 and the seasoning 52. Thereby, it can be seen that the amount of seasoning 52 contained in the product G is not the prescribed amount.

なお、多量のシーズニング52が袋60に充填された場合であっても、シーズニング52が袋60の内部で拡がらず、一箇所に集まっている場合、もしくは固まっている場合、シーズニング52が物品50と物品50との隙間を埋めることは少ない。したがって、正量品と比較して、X線の透過量が減少することも無い。しかし、上記実施形態では、隙間面積の他、X線画像の暗部面積および濃淡ピーク値を考慮して、最終的な総合判定を行う。これにより、袋60の内部でシーズニング52が一箇所に集まっている場合や、物品50同士が重なっている場合、袋60の内部で多量に混入したシーズニング52が拡がり、その上に物品50が散らばっている場合等であっても、物品50とシーズニング52との比率を適切に判定することができる。すなわち、X線検査装置10による検査(判定)の精度を向上させることができる。   Even when a large amount of seasoning 52 is filled in the bag 60, when the seasoning 52 does not spread inside the bag 60 and is gathered in one place, or when the seasoning 52 is hardened, the seasoning 52 becomes an article 50. And filling the gap between the article 50 are rare. Therefore, the amount of X-ray transmission does not decrease compared to a positive-quantity product. However, in the above-described embodiment, the final comprehensive determination is performed in consideration of the dark area and the density peak value of the X-ray image in addition to the gap area. As a result, when the seasonings 52 are gathered in one place inside the bag 60 or when the articles 50 overlap each other, the seasoning 52 mixed in a large amount inside the bag 60 spreads, and the articles 50 are scattered on the top. Even in such a case, the ratio between the article 50 and the seasoning 52 can be appropriately determined. That is, the accuracy of inspection (determination) by the X-ray inspection apparatus 10 can be improved.

(5)変形例
(5−1)変形例A
上記実施形態では、第2総合判定として、第1判定結果と第2判定結果とに基づいて、正量品を判定した。しかし、第2総合判定として、第1判定結果と第3判定結果とを用いてもよい。
(5) Modification (5-1) Modification A
In the above embodiment, as the second comprehensive determination, the positive-quantity product is determined based on the first determination result and the second determination result. However, the first determination result and the third determination result may be used as the second comprehensive determination.

(5−2)変形例B
また、上記実施形態において、二つ以上の判定結果に基づいて正量品を判定する場合には、各判定結果をそのまま用いる方法だけでなく、各判定結果に重み付けをして総合的な判定を行ってもよい。例えば、第1判定部82cと第2判定部82eの判定結果を組み合わせる場合、第1判定部82cと第2判定部82eの判定結果を「正量品」、「正量品でない可能性がある」、「正量品でない可能性が高い」の3段階に分ける。そして、第1判定部82cの判定結果を重要とみなして、第1判定部82cの各段階に点数「0.6」,「0.3」,「0」を割り当てるとともに、第1判定部82cの各段階に点数「0.4」,「0.2」,「0.1」を割り当てる。総合判定部82iは、例えば、各判定結果の合計が所定以上(例えば、0.6以上)であれば正量品と判定することとしてもよい。なお、判定結果を複数の段階に分ける場合には、各段階の境界を示すことができるように閾値を複数設けるものとする。
(5-2) Modification B
Further, in the above embodiment, when determining a correct product based on two or more determination results, not only a method of using each determination result as it is, but also a comprehensive determination by weighting each determination result. You may go. For example, when the determination results of the first determination unit 82c and the second determination unit 82e are combined, the determination results of the first determination unit 82c and the second determination unit 82e may be “correct products” or “non-correct products”. ”And“ There is a high possibility that the product is not a regular product ”. Then, the determination result of the first determination unit 82c is regarded as important, and points “0.6”, “0.3”, “0” are assigned to each stage of the first determination unit 82c, and the first determination unit 82c. Are assigned points “0.4”, “0.2”, and “0.1”. For example, the overall determination unit 82i may determine that the product is a positive product if the total of the determination results is equal to or greater than a predetermined value (for example, 0.6 or greater). When the determination result is divided into a plurality of stages, a plurality of threshold values are provided so as to indicate the boundaries of the respective stages.

(5−3)変形例C
上記実施形態では、物品50としてポテトチップスやプレッツェルを例示したが、物品50は、シーズニング(粉粒物)52の粒に比べて十分に大きな塊状物であれば、他のものであってもよい。また、物品50と粉粒物52とは、X線の透過度が異なるものであればよく、別の元素で構成されている必要はない。
(5-3) Modification C
In the above embodiment, potato chips and pretzel are exemplified as the article 50. However, the article 50 may be other than the seasoning (powder) 52, as long as it is a sufficiently large lump. . Further, the article 50 and the powdered material 52 need only have different X-ray transmittances and do not need to be composed of different elements.

(5−4)変形例D
上記実施形態では、X線検出素子22aが、コンベアユニット12による搬送方向に直交する向きに一直線に水平配置された。しかし、X線検出素子22aの配置は、上記態様に限られるものではない。また、コンベアユニット12で製品Gを移動させる代わりに、X線照射器21およびX線ラインセンサ22が移動する構成になっていてもよい。
(5-4) Modification D
In the above embodiment, the X-ray detection elements 22a are horizontally arranged in a straight line in a direction orthogonal to the conveying direction by the conveyor unit 12. However, the arrangement of the X-ray detection elements 22a is not limited to the above embodiment. Further, instead of moving the product G by the conveyor unit 12, the X-ray irradiator 21 and the X-ray line sensor 22 may be moved.

(5−5)変形例E
上記実施形態において、X線画像記憶領域81aに記憶される画像データは、製品GのX線画像を構成しうるデータであれば、いかなるものでもよい。例えば、X線画像を構成する各画素の濃淡値の他、X線検出素子22aによって検出されたX線の透過量を示す値であってもよい。また、画像生成部82aは、X線画像に対して画像処理を施してもよい。例えば、スムージングやシャープネスなどの画像処理が施されるように構成されてもよい。
(5-5) Modification E
In the above embodiment, the image data stored in the X-ray image storage area 81a may be any data as long as it can form an X-ray image of the product G. For example, in addition to the gray value of each pixel constituting the X-ray image, it may be a value indicating the amount of X-ray transmission detected by the X-ray detection element 22a. The image generation unit 82a may perform image processing on the X-ray image. For example, image processing such as smoothing and sharpness may be performed.

(5−6)変形例F
上記実施形態では、暗部特定部82bが第1の閾値によって、X線画像を2値化する場合について説明したが、暗部をさらに区分して、各区分で重み付けを行ってもよい。例えば、暗部を「暗い画素」と「比較的明るい画素」の2つに区分して、それぞれに「1」と「0.5」とを割り当てる。暗部特定部82bによって暗部面積が特定される際に、暗い画素を1と数え、比較的明るい画素は2つで1と数えるようにしてもよい。この場合、画素を、「暗い画素」と、「比較的明るい画素」と、「明るい画素」の3種類に分類するために2種類の第1の閾値が必要になる。
(5-6) Modification F
In the above embodiment, the case where the dark part specifying unit 82b binarizes the X-ray image using the first threshold value has been described. However, the dark part may be further divided and weighted in each section. For example, the dark part is divided into two, “dark pixels” and “relatively bright pixels”, and “1” and “0.5” are assigned to each. When the dark part area is specified by the dark part specifying part 82b, dark pixels may be counted as 1, and two relatively bright pixels may be counted as 1. In this case, two types of first threshold values are required to classify the pixels into three types: “dark pixels”, “relatively bright pixels”, and “bright pixels”.

(5−7)変形例G
上記実施形態では、境界判定部82fがX線画像の明暗の境界を判定した。また、境界に囲まれる領域を隙間相当領域とし、隙間相当領域に含まれる全画素から濃淡値差の無い画素数を減算して隙間相当量が判定された。ここで、境界の長さが長くなると、境界の内側に含まれる画素数も増え、結果として得られる隙間相当量も増えることから、隙間相当量の大小を境界の長さの大小によって決定してもよい。これによっても、上記実施形態と同様に、袋60にシーズニング52が多量に混入していることを判定することができる。
(5-7) Modification G
In the above embodiment, the boundary determination unit 82f determines the light / dark boundary of the X-ray image. Further, the area surrounded by the boundary is defined as a gap equivalent area, and the gap equivalent amount is determined by subtracting the number of pixels having no grayscale value difference from all the pixels included in the gap equivalent area. Here, as the boundary length increases, the number of pixels contained inside the boundary also increases, and the resulting gap equivalent amount also increases. Therefore, the size of the gap equivalent amount is determined by the size of the boundary length. Also good. This also makes it possible to determine that a large amount of seasoning 52 is mixed in the bag 60 as in the above embodiment.

(5−8)変形例H
上記実施形態においてシールドボックス11の開口11aは、遮蔽ノレンによって塞がれていた。ここで、開口11aには、さらに、緩衝板11cが設けられていてもよい。緩衝板11cは、SUS製の板状部材である。例えば、図19に示すように、緩衝板11cは、遮蔽ノレン11bに対して、シールドボックス11の内側に配置される。緩衝板11cは、遮蔽ノレン11bと同様、上方から下方に延びるように取り付けられる。ここで、緩衝板11cは、所定長さを有することが好ましい。所定長さとは、遮蔽ノレン11bよりも短い長さであって、コンベアユニット12のベルトに接触しないような長さである。具体的には、箱詰めされた物品50が検査対象である場合に、コンベアユニット12によって搬送される箱の上辺の下側の位置に、緩衝板11cの先端がくるように、緩衝板11cの長さは決定される。
(5-8) Modification H
In the above embodiment, the opening 11a of the shield box 11 is blocked by the shielding nolen. Here, a buffer plate 11c may be further provided in the opening 11a. The buffer plate 11c is a SUS plate-like member. For example, as illustrated in FIG. 19, the buffer plate 11 c is disposed inside the shield box 11 with respect to the shielding noll 11 b. The buffer plate 11c is attached so as to extend from the upper side to the lower side in the same manner as the shielding noll 11b. Here, the buffer plate 11c preferably has a predetermined length. The predetermined length is a length shorter than the shielding noll 11b and does not contact the belt of the conveyor unit 12. Specifically, when the boxed article 50 is an object to be inspected, the length of the buffer plate 11c is such that the tip of the buffer plate 11c comes to a position below the upper side of the box conveyed by the conveyor unit 12. Is determined.

従来、箱詰めされた物品が検査対象物品であった場合、検査を終えた物品50がシールドボックス11から出てくる時に、箱の角が遮蔽ノレン11bに接触していた。遮蔽ノレン11bは、当該接触によって短期間で磨耗していた。しかし、図19に示すように、開口11aにおいて、遮蔽ノレン11bよりも内側に緩衝板11cを設け、箱の角と遮蔽ノレン11bとが直接接触することを防ぐことにより、遮蔽ノレンの磨耗を低減させることができる。   Conventionally, when a boxed article is an article to be inspected, the corner of the box is in contact with the shielding noll 11b when the article 50 that has been inspected comes out of the shield box 11. The shield noren 11b was worn in a short period of time due to the contact. However, as shown in FIG. 19, in the opening 11a, a buffer plate 11c is provided on the inner side of the shielding noll 11b to prevent direct contact between the corner of the box and the shielding noll 11b, thereby reducing the wear of the shielding noren. Can be made.

(5−9)変形例I
上記実施形態に係るX線検査装置10は、図20に示すように、X線照射器21から照射されたX線をX線ラインセンサ22に導く誘導部22bを備えている。誘導部22bは、ベルトの幅方向に延びる矩形部材である。誘導部22bには、長手方向に沿ってスリットが形成されている。物品を透過したX線は、当該スリットを通ってX線ラインセンサ22に検出される。また、上記実施形態に係るX線検査装置10は、誘導部22bの下方、かつ、X線ラインセンサ22の上方に、X線を透過させる透過窓22cを備える。透過窓22cは、軽元素で構成され、非金属である。透過窓22cは、物品50を透過したX線のコントラストを調整可能する機能を有する。
(5-9) Modification I
As shown in FIG. 20, the X-ray inspection apparatus 10 according to the embodiment includes a guide portion 22 b that guides the X-rays emitted from the X-ray irradiator 21 to the X-ray line sensor 22. The guide portion 22b is a rectangular member that extends in the belt width direction. A slit is formed in the guide portion 22b along the longitudinal direction. X-rays transmitted through the article are detected by the X-ray line sensor 22 through the slit. In addition, the X-ray inspection apparatus 10 according to the above embodiment includes a transmission window 22c that transmits X-rays below the guiding portion 22b and above the X-ray line sensor 22. The transmission window 22c is made of a light element and is non-metallic. The transmission window 22 c has a function of adjusting the contrast of X-rays that have passed through the article 50.

ここで、X線検査装置10は、誘導部22bの上流側および下流側に、誘導部22bの長手方向に沿って、遮蔽板22d,22dを有していてもよい。透過窓22は、X線を透過させるが、部分的に反射する。透過窓22によって部分的に反射したX線は、周囲に散乱する(図21参照)。したがって、遮蔽板22d,22dが無い場合、散乱したX線は、誘導部22bの外側やコンベヤユニット12の隙間から漏れ出すことがあった。しかし、遮蔽材22d,22dを設けることにより、図21に示すように、透過窓22cで反射した光が誘導部22bの外側やコンベアユニット12の隙間から漏れ出るのを防ぐことができる。   Here, the X-ray inspection apparatus 10 may have shielding plates 22d and 22d along the longitudinal direction of the guiding portion 22b on the upstream side and the downstream side of the guiding portion 22b. The transmission window 22 transmits X-rays but partially reflects them. X-rays partially reflected by the transmission window 22 are scattered around (see FIG. 21). Therefore, in the absence of the shielding plates 22d and 22d, scattered X-rays may leak out from the outside of the guiding portion 22b and the gap between the conveyor units 12. However, by providing the shielding members 22d and 22d, it is possible to prevent the light reflected by the transmission window 22c from leaking from the outside of the guiding portion 22b and the gap of the conveyor unit 12 as shown in FIG.

10 X線検査装置
21 X線照射器(X線照射部)
22 X線ラインセンサ(X線検出部)
30 液晶モニタ
80 制御装置
81 記憶部
81d 境界閾値記憶領域(第3閾値記憶領域)
81e 隙間関連情報記憶領域
82 制御部
81a 画像生成部
82b 暗部特定部
82c 第1判定部
82d 濃淡ピーク値特定部
82e 第2判定部
82g 隙間相当量判定部
82h 第3判定部
10 X-ray inspection equipment 21 X-ray irradiator (X-ray irradiation unit)
22 X-ray line sensor (X-ray detector)
30 Liquid crystal monitor 80 Control device 81 Storage unit 81d Boundary threshold storage area (third threshold storage area)
81e Gap-related information storage area 82 Control part 81a Image generation part 82b Dark part specification part 82c First determination part 82d Light / dark peak value specification part 82e Second determination part 82g Gap equivalent amount determination part 82h Third determination part

特開2004−93463号公報JP 2004-93463 A

Claims (5)

第1のX線透過度を有する物品と前記第1のX線透過度とは異なる第2のX線透過度を有する粉粒物とがそれぞれ適量包装された正量品を判定するためのX線検査装置であって、
前記物品および前記粉粒物を含む被検査物にX線を照射するX線照射部と、
前記被検査物を透過したX線を検出するX線検出部と、
前記X線検出部によって検出された透過X線の強度に応じてX線画像を生成する画像生成部と、
第1の閾値に基づいて前記X線画像のうち所定の濃淡値を有する暗部を特定する暗部特定部と、
前記X線画像に含まれる前記暗部の総面積と第2の閾値とに基づいて、前記正量品を判定する第1判定部と、
を備えるX線検査装置。
X for determining a right-quantity product in which an appropriate amount of an article having a first X-ray transmittance and a granular material having a second X-ray transmittance different from the first X-ray transmittance are packaged A line inspection device,
An X-ray irradiation unit that irradiates the inspection object including the article and the granular material with X-rays;
An X-ray detector for detecting X-rays transmitted through the inspection object;
An image generator that generates an X-ray image according to the intensity of transmitted X-rays detected by the X-ray detector;
A dark part specifying unit that specifies a dark part having a predetermined gray value in the X-ray image based on a first threshold;
A first determination unit that determines the positive-quantity product based on a total area of the dark part included in the X-ray image and a second threshold;
An X-ray inspection apparatus comprising:
前記正量品に関するX線画像の濃淡値のピークである基準濃淡ピーク値を記憶する第1記憶領域と、
前記画像生成部によって生成された前記X線画像の濃淡値のピークである対象濃淡ピーク値を特定する濃淡ピーク値特定部と、
前記基準濃淡ピーク値および前記対象濃淡ピーク値に基づき、前記正量品を判定する第2判定部と、
をさらに備える、
請求項1に記載のX線検査装置。
A first storage area for storing a reference light and dark peak value that is a light and dark peak value of an X-ray image of the positive-quantity product;
A light and shade peak value specifying unit for specifying a target light and shade peak value that is a peak of the light and shade value of the X-ray image generated by the image generating unit;
A second determination unit for determining the right-quantity product based on the reference light and shade peak value and the target light and shade peak value;
Further comprising
The X-ray inspection apparatus according to claim 1.
前記基準濃淡ピーク値は、複数の前記正量品に関するX線画像に基づいて決定された基準濃淡ピーク値の範囲であり、
前記第2判定部は、前記対象濃淡ピーク値が前記範囲に含まれるか否かを判定する、
請求項2に記載のX線検査装置。
The reference light and shade peak value is a range of a reference light and shade peak value determined based on an X-ray image relating to a plurality of the positive-quantity products,
The second determination unit determines whether or not the target light and shade peak value is included in the range;
The X-ray inspection apparatus according to claim 2.
前記X線画像を構成する第1画素の濃淡値と前記第1画素に隣接する隣接画素の濃淡値との差である濃淡値差に基づいて判断される前記物品の隙間相当量を判定する隙間相当量判定部と、
前記X線画像に含まれる前記隙間相当量に基づき、前記正量品を判定する第3判定部と
をさらに備える、
請求項2又は3に記載のX線検査装置。
A gap for determining a gap equivalent amount of the article determined based on a gray value difference that is a difference between a gray value of a first pixel constituting the X-ray image and a gray value of an adjacent pixel adjacent to the first pixel. A substantial amount determination unit;
A third determination unit that determines the right-quantity product based on the gap equivalent amount included in the X-ray image;
The X-ray inspection apparatus according to claim 2 or 3.
前記濃淡値差に関する閾値である第3の閾値を記憶する第3閾値記憶領域と、
前記X線画像に含まれる前記隙間相当量の適否を判定するための隙間相当量判定値を記憶する隙間関連情報記憶領域と
をさらに備え、
前記隙間相当量判定部は、前記第3の閾値に基づき、前記X線画像に含まれる前記隙間相当量の総量を判定し、
前記第3判定部は、前記隙間相当量判定値に基づいて、前記隙間相当量の総量が所定範囲に含まれるか否かを判定する、
請求項4に記載のX線検査装置。
A third threshold storage area for storing a third threshold that is a threshold relating to the gray value difference;
A gap-related information storage area for storing a gap equivalent amount determination value for determining whether or not the gap equivalent amount included in the X-ray image is appropriate.
The gap equivalent amount determination unit determines a total amount of the gap equivalent amount included in the X-ray image based on the third threshold value,
The third determination unit determines whether or not a total amount of the gap equivalent amount is included in a predetermined range based on the gap equivalent amount determination value.
The X-ray inspection apparatus according to claim 4.
JP2011202180A 2011-09-15 2011-09-15 X-ray inspection equipment Active JP5829087B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011202180A JP5829087B2 (en) 2011-09-15 2011-09-15 X-ray inspection equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011202180A JP5829087B2 (en) 2011-09-15 2011-09-15 X-ray inspection equipment

Publications (2)

Publication Number Publication Date
JP2013064613A true JP2013064613A (en) 2013-04-11
JP5829087B2 JP5829087B2 (en) 2015-12-09

Family

ID=48188257

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011202180A Active JP5829087B2 (en) 2011-09-15 2011-09-15 X-ray inspection equipment

Country Status (1)

Country Link
JP (1) JP5829087B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015059813A (en) * 2013-09-18 2015-03-30 株式会社イシダ X-ray inspection device
JP2015184241A (en) * 2014-03-26 2015-10-22 アンリツ産機システム株式会社 X-ray inspection apparatus
JP2018503084A (en) * 2014-12-27 2018-02-01 ヒルズ・ペット・ニュートリシャン・インコーポレーテッド Food processing method and system
WO2019150920A1 (en) * 2018-01-31 2019-08-08 Cyberdyne株式会社 Object identifying device and object identifying method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06317544A (en) * 1993-05-06 1994-11-15 Toyota Motor Corp Method for examining safety-pad
JP2002168805A (en) * 2000-11-28 2002-06-14 Anritsu Corp X-ray foreign matter detector
WO2006126617A1 (en) * 2005-05-24 2006-11-30 National University Corporation Hokkaido University Damage evaluation apparatus, and damage evaluation method
JP2007183200A (en) * 2006-01-10 2007-07-19 Ishida Co Ltd X-ray inspection apparatus and article inspection apparatus
JP2011099725A (en) * 2009-11-05 2011-05-19 Ishida Co Ltd Article inspection apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06317544A (en) * 1993-05-06 1994-11-15 Toyota Motor Corp Method for examining safety-pad
JP2002168805A (en) * 2000-11-28 2002-06-14 Anritsu Corp X-ray foreign matter detector
WO2006126617A1 (en) * 2005-05-24 2006-11-30 National University Corporation Hokkaido University Damage evaluation apparatus, and damage evaluation method
JP2007183200A (en) * 2006-01-10 2007-07-19 Ishida Co Ltd X-ray inspection apparatus and article inspection apparatus
JP2011099725A (en) * 2009-11-05 2011-05-19 Ishida Co Ltd Article inspection apparatus

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015059813A (en) * 2013-09-18 2015-03-30 株式会社イシダ X-ray inspection device
JP2015184241A (en) * 2014-03-26 2015-10-22 アンリツ産機システム株式会社 X-ray inspection apparatus
JP2018503084A (en) * 2014-12-27 2018-02-01 ヒルズ・ペット・ニュートリシャン・インコーポレーテッド Food processing method and system
WO2019150920A1 (en) * 2018-01-31 2019-08-08 Cyberdyne株式会社 Object identifying device and object identifying method
JPWO2019150920A1 (en) * 2018-01-31 2021-01-07 Cyberdyne株式会社 Object identification device and object identification method

Also Published As

Publication number Publication date
JP5829087B2 (en) 2015-12-09

Similar Documents

Publication Publication Date Title
CN111630519B (en) Inspection apparatus
DK2124024T3 (en) Weight survey device and weight survey system accordingly
US8447562B2 (en) Inspection apparatus and method using penetrating radiation
KR102387529B1 (en) inspection device
JP5829087B2 (en) X-ray inspection equipment
WO2007058212A1 (en) X-ray inspection device
JP6920988B2 (en) Inspection equipment
JP4855128B2 (en) Inspection equipment
JP2008116465A (en) X-ray inspection apparatus
JP2006308467A (en) X-ray inspection device
JP5798420B2 (en) Weight estimation device
WO2017014194A1 (en) Optical inspection system and method for setting image-processing algorithm
JP4180581B2 (en) Item inspection system
JP2015137858A (en) Inspection device
JP2005031069A (en) X-ray inspection apparatus
JP2010038629A (en) X-ray inspection device
JP5875878B2 (en) Density calculation device
JP6941851B2 (en) Mass estimation device
JP6757970B2 (en) Optical inspection equipment and optical inspection method
JP6346831B2 (en) Inspection device
JP6306352B2 (en) X-ray inspection equipment
WO2018056257A1 (en) Optical inspecting device and optical inspecting system
JP2022049924A (en) Inspection device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140702

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150316

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150331

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150528

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20151021

R150 Certificate of patent or registration of utility model

Ref document number: 5829087

Country of ref document: JP

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250