JP2007333562A - X-ray foreign matter detector - Google Patents

X-ray foreign matter detector Download PDF

Info

Publication number
JP2007333562A
JP2007333562A JP2006165627A JP2006165627A JP2007333562A JP 2007333562 A JP2007333562 A JP 2007333562A JP 2006165627 A JP2006165627 A JP 2006165627A JP 2006165627 A JP2006165627 A JP 2006165627A JP 2007333562 A JP2007333562 A JP 2007333562A
Authority
JP
Japan
Prior art keywords
density data
ray
value
threshold
threshold value
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
JP2006165627A
Other languages
Japanese (ja)
Other versions
JP4444240B2 (en
Inventor
Yoshitoshi Watabe
俊寿 渡部
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.)
Anritsu Infivis Co Ltd
Original Assignee
Anritsu Infivis 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 Anritsu Infivis Co Ltd filed Critical Anritsu Infivis Co Ltd
Priority to JP2006165627A priority Critical patent/JP4444240B2/en
Publication of JP2007333562A publication Critical patent/JP2007333562A/en
Application granted granted Critical
Publication of JP4444240B2 publication Critical patent/JP4444240B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an X-ray foreign matter detector, determining presence/absence of foreign matter mixed in food or the like with high accuracy and efficiently for determining acceptance by automatically updating a determination threshold to a value having higher accuracy, causing no erroneous determination. <P>SOLUTION: This X-ray foreign matter detector includes: an X-ray intensity signal output means for exposing an examined material conveyed on a conveying path to X-rays and outputting an X-ray intensity signal corresponding to the intensity of the transmitted X-rays; a density data generation means for generating density data from the X-ray intensity signal output from the X-ray intensity signal output means; and an acceptability determination means for determining whether to pass or fail the examined material by comparing the density data generated by the density data generation means with the threshold, wherein the detector further includes a statistic calculating means for calculating the statistic of the density data based on the density data of a predetermined number used in the acceptability determination means; and a threshold updating means for updating the threshold based on the statistic calculated by the statistic calculating means within a range not to an initialized initial threshold. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、食品などの被検査物中に含まれている金属や骨などの異物の有無などを検出し合否を判定するX線異物検出装置に関する。   The present invention relates to an X-ray foreign matter detection apparatus that detects the presence or absence of foreign matter such as metal or bone contained in an object to be inspected such as food and determines pass / fail.

従来、X線異物検出装置は、ベルトコンベアなどの搬送路上を順次搬送されてくる各品種の被検査物(生肉、魚、加工食品、医薬など)にX線を曝射し、この曝射したX線の透過量から被検査物中に金属、ガラス、石、骨などの異物が混入しているか否かを検出する装置である。このX線異物検出装置においては、異物混入の有無を判定するための判定閾値を予め設定しておき、X線検出器で検出したX線の透過量から生成される濃度データと判定閾値とを比較して異物混入の有無を検出し合否判定をしている。このような判定閾値を用いる合否判定方法の場合、判定閾値の設定の仕方によっては誤判定を招くおそれがあり、合否判定の精度の向上が要請される。また、判定閾値の設定や調整を容易かつ効率よく行う必要がある。   Conventionally, X-ray foreign object detection devices have exposed X-rays to various types of inspection objects (raw meat, fish, processed food, medicine, etc.) that are sequentially transported on a transport path such as a belt conveyor. This is a device that detects whether or not foreign matter such as metal, glass, stone, bone, etc. is mixed in the object to be inspected from the amount of X-ray transmission. In this X-ray foreign matter detection apparatus, a determination threshold value for determining the presence or absence of foreign matter is set in advance, and density data generated from the amount of X-ray transmission detected by the X-ray detector and the determination threshold value are set. In comparison, the presence / absence of foreign matter is detected to make a pass / fail decision. In the case of the pass / fail determination method using such a determination threshold, there is a risk of erroneous determination depending on how the determination threshold is set, and improvement in the accuracy of the pass / fail determination is required. Moreover, it is necessary to set and adjust the determination threshold value easily and efficiently.

合否判定の精度を向上させるため、判定閾値の調整を容易にして判定閾値の精度を向上させる提案がなされている。例えば、検査された被検査物毎の濃度データまたは平均値、製品面積、製品体積による製品影響を示すデータを選択的に被検査物の検査経過とともに検査の古い方から順番に表示器の表示画面にトレンド表示し、検査者が検査された被検査物の傾向やバラツキを一目で確認できるようにして、より精度の高い判定閾値となるように容易に調整できるようにする提案がなされている(例えば、特許文献1参照)。   In order to improve the accuracy of the pass / fail determination, proposals have been made to facilitate adjustment of the determination threshold and improve the accuracy of the determination threshold. For example, display data on the display unit in order from the oldest of the inspections, along with the inspection process of the inspection object, selectively showing the concentration data or the average value of each inspection object, data indicating the product area, product volume, and product volume Proposals have been made so that the trend display and the inspector can confirm the tendency and variation of the inspected object at a glance, and the adjustment threshold can be easily adjusted to a more accurate determination threshold ( For example, see Patent Document 1).

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

しかしながら、特許文献1に記載のようなトレンド表示による判定閾値の調整方法においては、検査者が検査された被検査物の傾向やバラツキを表示器の表示内容を目で確認しながらトレンド表示の内容に沿って、より適切な判定閾値を手動で設定しなければならない。そのため、検査の効率が低下してしまうという問題がある。   However, in the adjustment method of the determination threshold value by trend display as described in Patent Document 1, the contents of the trend display while visually checking the display contents of the display for the tendency and variation of the inspection object inspected by the inspector Accordingly, a more appropriate determination threshold value must be manually set. Therefore, there is a problem that the inspection efficiency is lowered.

そこで、本発明は、判定閾値をより精度の高い値に自動的に更新することにより、食品等に混入した異物の有無を、高精度で効率よく合否判定することができ、誤判定が生じないX線異物検出装置を提供することを目的とする。   Therefore, the present invention automatically updates the determination threshold value to a more accurate value, so that the presence / absence of a foreign substance mixed in food can be determined with high accuracy and efficiency, and no erroneous determination occurs. An object of the present invention is to provide an X-ray foreign object detection device.

本発明の請求項1に係るX線異物検出装置においては、上記目的を達成するため、搬送路上を搬送される被検査物にX線を曝射し透過したX線の強度に対応したX線強度信号を出力するX線強度信号出力手段と、該X線強度信号出力手段から出力されるX線強度信号から濃度データを生成する濃度データ生成手段と、該濃度データ生成手段により生成された前記濃度データと閾値とを比較して前記被検査物の合否を判定する合否判定手段とを有するX線異物検出装置において、前記合否判定手段に用いられた所定個数の前記濃度データに基づいて前記濃度データの統計値を算出する統計値算出手段と、初期設定した初期閾値を越えない範囲内で前記統計値算出手段により算出した統計値に基づいて前記閾値を更新する閾値更新手段とにより構成される。
この構成により、被検査物にX線が曝射されると、X線強度信号出力手段によりX線強度信号が出力され、濃度データ生成手段によりX線強度信号が画像処理されて濃度データが生成される。合否判定手段により生成された濃度データと閾値とが比較され被検査物の合否が判定される。合否判定手段で用いられた所定個数の濃度データに基づいて、統計値算出手段により統計値が算出される。閾値更新手段により統計値に基づいて初期設定した初期閾値を越えない範囲内、すなわち濃度データの下限値と初期閾値の範囲内で閾値が自動的に更新される。
In the X-ray foreign object detection apparatus according to claim 1 of the present invention, in order to achieve the above-mentioned object, the X-ray corresponding to the intensity of the X-ray transmitted through the X-ray exposed to the inspection object conveyed on the conveyance path. X-ray intensity signal output means for outputting an intensity signal, density data generation means for generating density data from the X-ray intensity signal output from the X-ray intensity signal output means, and the density data generation means In an X-ray foreign matter detection apparatus having a pass / fail determination unit that compares the density data with a threshold value to determine pass / fail of the object to be inspected, the density based on a predetermined number of the density data used in the pass / fail determination unit Statistical value calculating means for calculating the statistical value of the data, and threshold updating means for updating the threshold based on the statistical value calculated by the statistical value calculating means within a range not exceeding the initially set initial threshold. It is.
With this configuration, when X-rays are exposed to the inspection object, an X-ray intensity signal is output by the X-ray intensity signal output means, and the X-ray intensity signal is image-processed by the density data generation means to generate density data. Is done. The density data generated by the pass / fail determination means is compared with a threshold value, and pass / fail of the inspection object is determined. A statistical value is calculated by the statistical value calculation means based on the predetermined number of density data used by the pass / fail determination means. The threshold value is automatically updated within a range that does not exceed the initial threshold value initially set based on the statistical value by the threshold value updating means, that is, within the range between the lower limit value of the density data and the initial threshold value.

本発明の請求項2に係るX線異物検出装置においては、前記閾値更新手段が、前記所定個数の前記濃度データが生成される毎に、前記閾値を更新するよう構成される。
この構成により、初期閾値および更新された更新閾値は所定個数の濃度データが生成される毎に自動的に更新される。
In the X-ray foreign matter detection apparatus according to claim 2 of the present invention, the threshold update unit is configured to update the threshold every time the predetermined number of the density data is generated.
With this configuration, the initial threshold value and the updated update threshold value are automatically updated every time a predetermined number of density data are generated.

本発明の請求項3に係るX線異物検出装置においては、前記所定個数が、初期閾値および更新された更新閾値のいずれかにより良品と判定された被検査物の前記濃度データである良品濃度データのみからなるよう構成される。
この構成により、初期閾値および更新された更新閾値のいずれかにより良品と判定された被検査物の良品濃度データのみに基づいて所定個数がカウントされ、統計値算出の基礎とされる。
In the X-ray foreign matter detection apparatus according to claim 3 of the present invention, the non-defective product density data, which is the density data of the inspected object, in which the predetermined number is determined to be non-defective by one of the initial threshold value and the updated update threshold value. Consists of only.
With this configuration, a predetermined number is counted based only on the non-defective product density data determined to be non-defective by either the initial threshold value or the updated update threshold value, and is used as a basis for calculating statistical values.

本発明の請求項4に係るX線異物検出装置においては、前記統計値算出手段が、前記所定個数の前記濃度データの中で前記初期閾値を超えた前記濃度データの個数と所定個数との比率が一定比率に達したとき、前記初期閾値を超えた前記濃度データを、前記初期閾値と所定の関係を有する値とみなすことにより、前記良品濃度データとみなして前記統計値を算出するよう構成される。
この構成により、統計値算出手段により、所定個数の濃度データの中で初期閾値を超えた濃度データの個数と所定個数との比率が一定比率に達したとき、初期閾値を超えた濃度データが、初期閾値と所定の関係を有する値とみなされて、良品濃度データとみなされ統計値が算出される。以下、濃度データ自体が初期閾値をオーバーしていることを「超えた」といい、更新された更新閾値自体が初期閾値とクロスしないことを「越えない」というように表現する。
In the X-ray foreign matter detection apparatus according to claim 4 of the present invention, the statistical value calculation means is a ratio of the number of the density data exceeding the initial threshold value and the predetermined number in the predetermined number of the density data. When the value reaches a certain ratio, the density data exceeding the initial threshold value is regarded as a value having a predetermined relationship with the initial threshold value, so that the statistical value is calculated as the non-defective product density data. The
With this configuration, when the ratio between the number of density data exceeding the initial threshold and the predetermined number among the predetermined number of density data reaches a certain ratio by the statistical value calculation means, the density data exceeding the initial threshold is It is regarded as a value having a predetermined relationship with the initial threshold value, is regarded as non-defective product density data, and a statistical value is calculated. Hereinafter, the fact that the density data itself exceeds the initial threshold is expressed as “exceeded”, and the fact that the updated update threshold itself does not cross the initial threshold is expressed as “not exceeded”.

請求項1に係るX線異物検出装置においては、合否判定手段で用いられた所定個数の濃度データに基づいて、統計値算出手段により統計値が算出され、閾値更新手段により統計値に基づいて閾値が更新されるので、食品の種類や特性に応じた精度の高い判定を自動的に効率よく行うことができる効果がある。   In the X-ray foreign object detection device according to claim 1, the statistical value is calculated by the statistical value calculation means based on the predetermined number of density data used by the pass / fail determination means, and the threshold value is calculated based on the statistical value by the threshold update means. Therefore, there is an effect that a highly accurate determination according to the type and characteristics of food can be automatically and efficiently performed.

請求項2に係るX線異物検出装置においては、閾値は所定個数の濃度データが生成される毎に更新されるので、例えば、一連のデータの集合からなるバッチ毎に、統計値が算出されて、食品のロットによるばらつきや周囲環境の変化に応じた精度の高い判定を自動的に効率よく行うことができる効果がある。   In the X-ray foreign object detection device according to claim 2, since the threshold value is updated every time a predetermined number of density data is generated, for example, a statistical value is calculated for each batch including a series of data sets. In addition, there is an effect that it is possible to automatically and efficiently perform a highly accurate determination according to the variation of the food lot and the change of the surrounding environment.

請求項3に係るX線異物検出装置においては、初期閾値および更新された更新閾値のいずれかにより良品と判定された被検査物の良品濃度データのみに基づいて所定個数がカウントされ、統計値算出の基礎とされるので、より精度の高い閾値が得られ、精度の高い合否判定が得られる効果がある。   In the X-ray foreign matter detection apparatus according to claim 3, a predetermined number is counted based only on the non-defective product density data determined to be non-defective by either the initial threshold value or the updated update threshold value, and the statistical value is calculated. Therefore, it is possible to obtain a threshold with higher accuracy and to obtain a pass / fail judgment with high accuracy.

請求項4に係るX線異物検出装置においては、統計値算出手段により、所定個数の濃度データの中で初期閾値を超えた濃度データの個数と所定個数との比率が一定比率に達したとき、初期閾値を超えた濃度データが、初期閾値と所定の関係を有する値とみなされて、良品濃度データとみなされて統計値が算出されるので、例えば、所定個数のすべてが不良品の濃度データであっても、統計値の算出が不能となることはなく、閾値が初期閾値を越えない範囲内、すなわち濃度データの下限値と初期閾値の範囲内で更新される。そのため、更新された閾値は初期閾値を越えることはなく、自動的に初期閾値を越えない範囲内で閾値を更新することができ、効率の高い検査をすることができる効果がある。   In the X-ray foreign object detection device according to claim 4, when the ratio of the number of density data exceeding the initial threshold value and the predetermined number among the predetermined number of density data reaches a certain ratio by the statistical value calculation means, Since the density data exceeding the initial threshold is regarded as a value having a predetermined relationship with the initial threshold and is regarded as non-defective density data, a statistical value is calculated. For example, all the predetermined number of density data are defective. Even in this case, the calculation of the statistical value is not disabled, and the statistical value is updated within the range where the threshold does not exceed the initial threshold, that is, within the range between the lower limit value of the density data and the initial threshold. Therefore, the updated threshold value does not exceed the initial threshold value, and the threshold value can be automatically updated within a range that does not exceed the initial threshold value, and there is an effect that highly efficient inspection can be performed.

以下、本発明に係る物品検査装置の一実施の形態について図面を参照して説明する。
図1〜図9は、本発明に係るX線異物検出装置の実施の形態を示している。
Hereinafter, an embodiment of an article inspection apparatus according to the present invention will be described with reference to the drawings.
1 to 9 show an embodiment of an X-ray foreign object detection device according to the present invention.

図1および図2に示すように、X線異物検出装置1は、搬送部2と、X線発生部3と、X線強度信号出力手段としてのX線検出部4と、投受光部5と、表示部6と、操作部7と、処理部8とにより構成される。
X線異物検出装置1は、被検査物としてのパッケージ10を搬送する搬送ラインの一部に設置され、所定間隔をおいて順次搬送されてくるパッケージ10の中に混入した金属、ガラス、石、骨などの異物の有無を検出し、パッケージ10の中に所定の物が有るか否かを検出するものである。
As shown in FIGS. 1 and 2, the X-ray foreign object detection device 1 includes a transport unit 2, an X-ray generation unit 3, an X-ray detection unit 4 as an X-ray intensity signal output unit, and a light projecting / receiving unit 5. The display unit 6, the operation unit 7, and the processing unit 8 are configured.
The X-ray foreign object detection device 1 is installed in a part of a transport line that transports a package 10 as an object to be inspected, and is mixed with metal, glass, stone, The presence / absence of a foreign substance such as a bone is detected to detect whether or not a predetermined object is present in the package 10.

搬送部2は、4つのプーリ2a、2b、2c、2dとこれらのプーリに巻き付けられている無端状の搬送ベルト2eとにより構成される。搬送部2は、包装された生肉、魚、加工食品、医薬などの各種のパッケージ10を搬送するようになっており、X線発生部3で生成されるX線が搬送中のパッケージ10に対して垂直に曝射されるように、搬送部2とX線発生部3とが配置されている。搬送部2は、プーリ2aに接続された駆動モータMの駆動により予め設定された一定の搬送速度でパッケージ10が搬送されるようになっている。   The transport unit 2 includes four pulleys 2a, 2b, 2c, and 2d and an endless transport belt 2e that is wound around these pulleys. The transport unit 2 is configured to transport various packages 10 such as packed raw meat, fish, processed food, and medicine, and the X-rays generated by the X-ray generation unit 3 are transported to the package 10 being transported. Therefore, the transport unit 2 and the X-ray generation unit 3 are arranged so as to be exposed vertically. The transport unit 2 is configured to transport the package 10 at a constant transport speed set in advance by driving of a drive motor M connected to the pulley 2a.

X線発生部3は、搬送部2の上方に所定の高さ離隔し、かつ搬送ベルト2eの下部に設けられているX線検出部4と対向して配置されている。
X線発生部3は、例えば、金属製の箱体内部に設けられる円筒状のX線管が絶縁油により浸漬されており、X線管の陰極からの電子ビームを陽極ターゲットに照射させてX線を生成するようになっている。X線管は、その長手方向がパッケージ10の搬送方向と直交する幅方向に設けられている。X線管により生成されたX線は、下方のX線検出部4に向けて、箱体底面にX線管の長手方向に沿って形成された不図示のスリットにより、搬送方向と直交する幅方向に略三角形状のスクリーン状に曝射されるようになっている。
The X-ray generation unit 3 is disposed above the transport unit 2 at a predetermined height and is opposed to the X-ray detection unit 4 provided below the transport belt 2e.
For example, the X-ray generation unit 3 includes a cylindrical X-ray tube provided in a metal box, which is immersed in insulating oil, and irradiates an anode target with an electron beam from the cathode of the X-ray tube. A line is generated. The X-ray tube is provided in the width direction whose longitudinal direction is orthogonal to the transport direction of the package 10. The X-ray generated by the X-ray tube is directed to the lower X-ray detection unit 4 by a slit (not shown) formed on the bottom surface of the box along the longitudinal direction of the X-ray tube, and has a width orthogonal to the conveyance direction. The screen is exposed to a substantially triangular screen.

X線検出部4は、パッケージ10に対して曝射され透過したX線の透過量を検出するようになっている。このX線検出部4には、例えば、ライン状に配列された複数のフォトダイオードと、フォトダイオード上に設けられたシンチレータとを備えたアレイ状のラインセンサが用いられる。このフォトダイオードは、例えば、1ラインで構成されライン方向(Y方向)に0.4mmピッチで640個配置されている。シンチレータはX線のエネルギーを吸収し蛍光を発するようになっている。
このX線検出部4では、パッケージ10に対してX線発生部3からX線が曝射され、パッケージ10を透過したX線をシンチレータで受けて光に変換するようになっている。さらに、シンチレータで変換された光は、その下部に配置されるフォトダイオードによって受光されるようになっている。また、各フォトダイオードは、受光した光を電気信号に変換し、X線強度信号11aとして出力するようになっている。X線強度信号11aは、図示しないA/D変換部でA/D変換された後、データメモリ11に格納されるようになっている。
The X-ray detection unit 4 detects the transmission amount of X-rays that are exposed to and transmitted through the package 10. For the X-ray detection unit 4, for example, an array line sensor including a plurality of photodiodes arranged in a line and a scintillator provided on the photodiode is used. For example, 640 photodiodes are arranged with a pitch of 0.4 mm in the line direction (Y direction). The scintillator absorbs X-ray energy and emits fluorescence.
In the X-ray detection unit 4, X-rays are emitted from the X-ray generation unit 3 to the package 10, and X-rays transmitted through the package 10 are received by a scintillator and converted into light. Further, the light converted by the scintillator is received by a photodiode disposed under the scintillator. Each photodiode converts received light into an electrical signal and outputs it as an X-ray intensity signal 11a. The X-ray intensity signal 11 a is stored in the data memory 11 after being A / D converted by an A / D converter (not shown).

投受光部5は、一対の投光部5aおよび受光部5bにより構成され、搬送部2の搬入口側に配置されている。投光部5aは搬送ベルト2eの一側面に位置し、受光部5bは搬送ベルト2eの他の側面で投光部5aに対向するように位置し、パッケージ10が投光部5aおよび受光部5bの間を通過するとパッケージ10により受光部5bが遮光されるようになっている。   The light projecting / receiving unit 5 includes a pair of light projecting units 5 a and a light receiving unit 5 b, and is disposed on the carry-in side of the transport unit 2. The light projecting unit 5a is located on one side of the transport belt 2e, the light receiving unit 5b is located on the other side of the transport belt 2e so as to face the light projecting unit 5a, and the package 10 is provided with the light projecting unit 5a and the light receiving unit 5b. The light receiving portion 5b is shielded from light by the package 10 when passing between the two.

表示部6は、バス9に接続され、例えば、図3の左側に示す液晶ディスプレイなどの表示デバイスを有し、数字表示部6a、パッケージ10を透過したX線の投影図によるX線透視表示6bや、図4および図5に示す初期閾値K、係数k、所定個数内の濃度データの平均値mと標準偏差値σとから算出された更新閾値Kのグラフ、濃度データの平均値mのグラフなどが表示されるようになっている。 The display unit 6 is connected to the bus 9 and has, for example, a display device such as a liquid crystal display shown on the left side of FIG. 3, and an X-ray fluoroscopic display 6b based on a projection view of X-rays transmitted through the numeric display unit 6a and the package 10. 4 and FIG. 5, the graph of the update threshold value K S calculated from the initial threshold value K, the coefficient k, the average value m of the density data within a predetermined number and the standard deviation value σ, the average value m of the density data Graphs are displayed.

操作部7は、図2に示すように、バス9に接続されている。また、操作部7は、図3に示すように、スイッチ7aと、スイッチ7bと、エンターキー7cと、テンキー7dと、指定ボタン7eと、十字キー7fと、表示部6に表示されるカーソル7gとが設けられている。スイッチ7aを押下げると、異物検出モードが選択されCPU19とモード実行プログラム12cとにより、パッケージ10の異物検出が実行されるようになっている。スイッチ7bを押下げると、閾値設定モードが選択されCPU19とモード実行プログラム12cとにより、閾値の設定が実行されるようになっている。エンターキー7cを押下げると、操作部7において入力した各種設定が確定されるようになっている。テンキー7dは、各種設定における数値を入力でき、入力された数字が数字表示部6aに表示されるようになっている。十字キー7fの押下げにより表示部6の表示画面内のカーソル7gを移動できるようになっている。また、操作部7に接続されたマウス(不図示)によりカーソル7gを移動させることもできるようになっている。指定ボタン7eを押下げると、表示部6の表示画面内のカーソル7gが指し示す位置をポイント指定できるようになっている。   The operation unit 7 is connected to a bus 9 as shown in FIG. As shown in FIG. 3, the operation unit 7 includes a switch 7a, a switch 7b, an enter key 7c, a numeric keypad 7d, a designation button 7e, a cross key 7f, and a cursor 7g displayed on the display unit 6. And are provided. When the switch 7a is depressed, the foreign object detection mode is selected, and the foreign object detection of the package 10 is executed by the CPU 19 and the mode execution program 12c. When the switch 7b is pressed down, the threshold setting mode is selected, and the threshold setting is executed by the CPU 19 and the mode execution program 12c. When the enter key 7c is pressed down, various settings input through the operation unit 7 are confirmed. The numeric keypad 7d can input numerical values in various settings, and the input numerical values are displayed on the numerical display portion 6a. The cursor 7g in the display screen of the display unit 6 can be moved by pressing the cross key 7f. In addition, the cursor 7g can be moved by a mouse (not shown) connected to the operation unit 7. When the designation button 7e is depressed, the point designated by the cursor 7g in the display screen of the display unit 6 can be designated.

処理部8は、ハードディスクなどの記録媒体からなり、図2に示すように、データメモリ11、プログラム格納部12、X線発生部3を駆動させるX線発生部駆動回路16、X線検出部4を駆動させるX線検出部駆動回路17、モータMを駆動させるモータ駆動回路18、各部を制御するCPU19及びこれらを接続するバス9により構成されている。   The processing unit 8 is composed of a recording medium such as a hard disk. As shown in FIG. 2, the data memory 11, the program storage unit 12, the X-ray generation unit drive circuit 16 that drives the X-ray generation unit 3, and the X-ray detection unit 4. X-ray detector drive circuit 17 for driving the motor, a motor drive circuit 18 for driving the motor M, a CPU 19 for controlling each part, and a bus 9 for connecting them.

データメモリ11は、RAM等のリード/ライト可能な半導体メモリである。データメモリ11には、1ライン(Y方向)当たり640個のX線強度信号11aが、少なくとも搬送されるパッケージ10の搬送方向Xの長さに対応した所定ライン数(例えば、480ライン)格納されるようになっている。また、データメモリ11には、X線強度信号出力手段から出力されたX線強度信号11a、閾値設定プログラム12aにより設定された初期閾値Kおよび更新閾値Kなどの設定データ11b、濃度データ11cなどが所定領域に格納されるようになっている。 The data memory 11 is a readable / writable semiconductor memory such as a RAM. In the data memory 11, 640 X-ray intensity signals 11a per line (Y direction) are stored at least a predetermined number of lines (for example, 480 lines) corresponding to the length in the transport direction X of the package 10 to be transported. It has become so. The data in the memory 11, the X-ray intensity signal 11a output from the X-ray intensity signal output means, setting data 11b such as set initial thresholds K and updates the threshold value K S by the threshold setting program 12a, the density data 11c, etc. Are stored in a predetermined area.

プログラム格納部12には、閾値設定プログラム12a、異物検出プログラム12b、モード実行プログラム12c、合否判定手段としての合否判定プログラム12d、X線強度信号出力手段としてのX線強度信号出力プログラム12e、濃度データ生成手段としての濃度データ生成プログラム12f、統計値算出手段としての統計値算出プログラム12g、閾値更新手段としての閾値更新プログラム12hなどが格納されている。   The program storage unit 12 includes a threshold setting program 12a, a foreign matter detection program 12b, a mode execution program 12c, a pass / fail determination program 12d as pass / fail determination means, an X-ray intensity signal output program 12e as X-ray intensity signal output means, and density data. A density data generation program 12f as a generation unit, a statistical value calculation program 12g as a statistical value calculation unit, a threshold update program 12h as a threshold update unit, and the like are stored.

閾値設定プログラム12aにおいては、閾値設定モードにおける初期閾値設定の処理がなされる。具体的には、合否判定で用いる閾値の初期設定がなされ、パッケージ10に異物が含まれているか否かの合否判定で用いる初期閾値Kが設定される。搬送されるパッケージ10にX線を曝射し透過したX線からX線強度信号11aを得て、画像処理を行いパッケージ10の品種、特性および検査条件などから初期閾値Kが設定され、データメモリ11に設定データ11bとして格納される。初期閾値Kは、比較の対象とされるパッケージ10の濃度データ11cがパッケージ10の特性のばらつきにより良品を不良品と誤判定することがないように、ある程度の余裕もった値に設定される。すなわち、曝射されたX線を吸収する量が比較的大きい異物を検出するように設定される。   In the threshold setting program 12a, an initial threshold setting process in the threshold setting mode is performed. Specifically, an initial threshold value used in the pass / fail determination is set, and an initial threshold value K used in the pass / fail determination as to whether or not a foreign object is contained in the package 10 is set. An X-ray intensity signal 11a is obtained from the X-rays that have been exposed to and transmitted through the package 10 to be conveyed, image processing is performed, an initial threshold value K is set from the product type, characteristics, inspection conditions, etc. of the package 10, and the data memory 11 is stored as setting data 11b. The initial threshold value K is set to a value with a certain margin so that the density data 11c of the package 10 to be compared does not erroneously determine a non-defective product as a defective product due to variations in the characteristics of the package 10. That is, it is set so as to detect a foreign object that absorbs a relatively large amount of X-rays.

異物検出プログラム12bにおいては、異物検出モードにおける異物検出処理がなされる。具体的には、パッケージ10に異物が含まれているか否かの合否判定が行われ、検査合格、検査不合格の処理が行われる。   In the foreign matter detection program 12b, foreign matter detection processing in the foreign matter detection mode is performed. Specifically, a pass / fail determination is made as to whether or not a foreign substance is contained in the package 10, and an inspection pass / failure process is performed.

モード実行プログラム12cにおいては、閾値設定プログラム12aによる閾値設定モード及び異物検出プログラム12bによる異物検出モードのいずれかのモードが選択され実行される。   In the mode execution program 12c, one of the threshold setting mode by the threshold setting program 12a and the foreign object detection mode by the foreign object detection program 12b is selected and executed.

合否判定プログラム12dにおいては、初期閾値Kまたは更新閾値Kとパッケージ10の濃度データ11cとが比較され、濃度データ11cが初期閾値Kまたは更新された更新閾値Kを超えているときは異物が含まれているとして不合格の判定がなされ、初期閾値Kまたは更新された更新閾値Kを超えていないときは異物が含まれていないとして合格の判定がなされる。 In acceptance determination program 12d, it is compared with the density data 11c of the initial threshold K or updated threshold value K S and the package 10, foreign matter when it exceeds the updated threshold value K S concentration data 11c is initial threshold K or update If it does not exceed the initial threshold value K or the updated update threshold value K S , it is determined that no foreign matter is included.

X線強度信号出力プログラム12eにおいては、パッケージ10を透過し、さらに搬送ベルト2eを透過した透過X線がX線検出部4に設けられたシンチレータに入力され光に変換され、変換された光がX線検出部4に設けられたフォトダイオードにより電気信号に変換され、X線強度信号11aとしてデータメモリ11に格納される。このX線強度信号11aにはX線を透過したX線透過データとX線を吸収したX線吸収データとが含まれ適宜目的に沿って用いられる。   In the X-ray intensity signal output program 12e, the transmitted X-ray transmitted through the package 10 and further transmitted through the transport belt 2e is input to a scintillator provided in the X-ray detection unit 4 and converted into light, and the converted light is transmitted. It is converted into an electrical signal by a photodiode provided in the X-ray detector 4 and stored in the data memory 11 as an X-ray intensity signal 11a. The X-ray intensity signal 11a includes X-ray transmission data that transmits X-rays and X-ray absorption data that absorbs X-rays, and is used according to the purpose as appropriate.

濃度データ生成プログラム12fにおいては、データメモリ11に格納されているX線強度信号11aが読み出され、読み出されたX線強度信号11aは図示しないA/D変換部でアナログ信号からデジタル信号に変換され、さらに、0から255までの256階調の輝度情報に変換され、異物に対応する部分を強調するようにフィルタ処理などの画像処理がなされて閾値と比較される濃度データ(例えば、パッケージ10内のピーク値)が生成され濃度データ11cとしてデータメモリ11に格納される。この濃度データ11cは、パッケージ10毎に異物の有無の合否判定に用いられる。   In the density data generation program 12f, the X-ray intensity signal 11a stored in the data memory 11 is read, and the read X-ray intensity signal 11a is converted from an analog signal to a digital signal by an A / D converter (not shown). Density data (for example, package data) that is converted and further converted into luminance information of 256 gradations from 0 to 255, subjected to image processing such as filter processing so as to emphasize a portion corresponding to a foreign object, and compared with a threshold value 10) and is stored in the data memory 11 as density data 11c. This density data 11c is used for pass / fail determination of the presence or absence of foreign matter for each package 10.

統計値算出プログラム12gにおいては、設定データ11bとしてデータメモリ11に格納されている濃度データ11cが読み出され、読み出された濃度データ11cに基づいて初期閾値Kおよび更新閾値Kを更新するために用いる統計値が算出される。この統計値には濃度データ11cの平均値mおよび標準偏差値σが含まれる。本発明においては、平均値mは算術平均値(相加平均値)で表され、標準偏差値σは次式(1)で表される。 In statistical value calculating program 12g, it is read density data 11c stored in the data memory 11 as setting data 11b, for updating the initial threshold K and updates the threshold value K S based on the read density data 11c The statistical value used for is calculated. This statistical value includes the average value m and the standard deviation value σ of the density data 11c. In the present invention, the average value m is expressed by an arithmetic average value (arithmetic average value), and the standard deviation value σ is expressed by the following equation (1).

Figure 2007333562

式(1)中、nは自然数、xは検出された個々の濃度データ11cを表す。
Figure 2007333562

In formula (1), n represents a natural number and x represents detected individual density data 11c.

濃度データ11cの平均値mおよび標準偏差値σは、それぞれ所定個数毎に算出される。ここで所定個数は指定された時間または指定されたライン数内の値を意味する。また所定個数は、例えば、所定個数をpとし、図6(a)に示すように、1回目は個数pをカウントし、2回目はカウントをクリアした後、1回目の個数pの次の1個または複数個の後から個数pをカウントするいわゆるバッチ単位の個数であってもよい。また、図6(b)に示すように、1回目は個数pをカウントし、2回目はa個のあとから個数pをカウントするa個単位で毎回更新する個数であってもよい。aは1でもよく、複数でもよい。aが1の場合は連続的に閾値が更新され、aがpの場合が所定個数pの次の1個からカウントするバッチ単位の個数となる。算出効率を向上させる観点からは、所定個数はバッチ単位の個数とすることが好ましい。閾値を更新してより精度の高い閾値を得るには、所定個数は多いほどよいが、多いほど算出処理が煩雑となる。そのため所定個数は、品種、パッケージの特性、蓄積データや経験値などにより適宜選択され、例えば、5,000個〜50個が好ましく、1,000個〜100個がより好ましい。   The average value m and the standard deviation value σ of the density data 11c are calculated for each predetermined number. Here, the predetermined number means a value within a specified time or a specified number of lines. The predetermined number is, for example, p, and as shown in FIG. 6A, the number p is counted for the first time, the count is cleared for the second time, and the next 1 after the number p for the first time. The number may be a so-called batch unit in which the number p is counted after one or a plurality of pieces. Further, as shown in FIG. 6B, the number may be updated every time in units of a, in which the number p is counted for the first time and the number p is counted after the number a for the second time. a may be 1 or plural. When a is 1, the threshold value is continuously updated. When a is p, the number of batch units counted from the next one after the predetermined number p is obtained. From the viewpoint of improving the calculation efficiency, the predetermined number is preferably the number of batch units. In order to update the threshold value and obtain a more accurate threshold value, the larger the predetermined number, the better. However, the larger the number, the more complicated the calculation process. Therefore, the predetermined number is appropriately selected according to the product type, package characteristics, accumulated data, experience value, and the like. For example, 5,000 to 50 are preferable, and 1,000 to 100 are more preferable.

この所定個数は、原則として、初期閾値Kまたは更新閾値Kのいずれかにより良品と判定されたパッケージ10の濃度データ11c(以下、「良品の濃度データ11c」という。)のみの個数であり、不良品とされたパッケージ10の濃度データ11c(以下、「不良品の濃度データ11c」という。)は除外される。良品の濃度データ11cのみを算出の基礎とすることにより、より精度の高い平均値mおよび標準偏差値σを得ることができる。
ただし、不良品の濃度データ11cであっても、不良品の濃度データ11cの内初期閾値Kを超えたものと所定個数の濃度データ11cとの比率が一定比率に達したとき、不良品の濃度データ11cの内初期閾値Kを超えたものを初期閾値Kと所定の関係を有する値とみなすことにより、良品の濃度データ11cとみなして統計値である平均値mおよび標準偏差値σを算出してもよい。
このように不良品の濃度データ11cを良品の濃度データ11cとして扱うことにより、例えば、所定個数の濃度データ11cの全てが初期閾値Kを超えた不良品で統計値算出のデータとして使えないため更新閾値Kが0となってしまうことを回避し、かつ初期閾値Kを越えない範囲内で更新閾値Kを自動的に設定することができる効果がある。
In principle, the predetermined number is the number of density data 11c of the package 10 determined as a non-defective product based on either the initial threshold value K or the update threshold value K S (hereinafter referred to as “non-defective product density data 11c”). Density data 11c of the package 10 determined as a defective product (hereinafter referred to as “defective product density data 11c”) is excluded. By using only the non-defective product density data 11c as a basis for calculation, it is possible to obtain the average value m and the standard deviation value σ with higher accuracy.
However, even if it is the density data 11c of the defective product, when the ratio of the density data 11c exceeding the initial threshold value K of the density data 11c of the defective product reaches a certain ratio, the density of the defective product is reached. The data 11c that exceeds the initial threshold value K is regarded as a value having a predetermined relationship with the initial threshold value K, so that it is regarded as non-defective density data 11c, and the statistical average value m and standard deviation value σ are calculated. May be.
By treating the density data 11c of the defective product as the non-defective product density data 11c in this way, for example, all of the predetermined number of density data 11c are defective products exceeding the initial threshold value K and cannot be used as statistical value calculation data. There is an effect that it is possible to avoid that the threshold value K S becomes 0 and to automatically set the update threshold value K S within a range not exceeding the initial threshold value K.

不良品の濃度データ11cの内初期閾値Kを超えたものの個数と所定個数との比率としては、連続してカウントした所定個数pの中に含まれている不良品の濃度データ11cの内初期閾値Kを超えたものの個数をNGとしたとき、NG/pは0.5〜1.0が好ましい。比率が0.5未満であれば、不良品の濃度データ11cの内初期閾値Kを超えたものを除いた残りの濃度データ11cにより、精度が保たれた濃度データ11cの平均値mおよび標準偏差値σが得られる。所定個数pの中に含まれている不良品の濃度データ11cの内、更新閾値Kを超えたものの個数をNG´としたとき、NG´/pが0.5〜1.0であってもよい。 The ratio between the number of defective product density data 11c exceeding the initial threshold value K and the predetermined number is the initial threshold value of the defective product density data 11c included in the predetermined number p continuously counted. NG / p is preferably from 0.5 to 1.0, where NG is the number of those exceeding K. If the ratio is less than 0.5, the average value m and the standard deviation of the density data 11c with accuracy maintained by the remaining density data 11c excluding the density data 11c of the defective product exceeding the initial threshold K. The value σ is obtained. Of density data 11c of defective products are contained within the predetermined number p, when the number and NG' but exceeds the updated threshold value K S, NG' / p is a 0.5 to 1.0 Also good.

初期閾値Kと所定の関係を有する値としての良品の濃度データとしてみなす値は、初期閾値Kを超えない初期閾値Kに近い値であり、この初期閾値Kに近い値をNとすると、例えば、Nは初期閾値Kと0.9Kの間で設定された固定値であってもよく、不良品の濃度データ11cを用いて算出した算出値でもよい。
算出値の場合、例えば、不良品の濃度データ11cの平均値をFとし、標準偏差値をσとし、可変の係数をk´としたときに、Nは次式、N=F+k´σとして算出し、かつ次式、K≧N>0.9×Kを満足する関係を有する値となるように、平均値Fと標準偏差値σの値に応じて係数k´を適宜選択することにより算出することができる。
ただし、平均値FがNより大きくなってしまった場合は、F=Nとし、k´=0とすることによりK≧N>0.9×Kを満足するようにしてもよく、k´<0とすることによりK≧N>0.9×Kを満足するようにしてもよい。
このように、所定の関係を有する値として初期閾値に近い値Nを設定することにより、濃度データ11cの所定個数の中に不良品の濃度データ11cが多く含まれることになっても、閾値を更新する際に用いることができる有効な統計値として算出することができる。すなわち、統計値である平均値mおよび標準偏差値σは、統計値算出プログラム12gにより算出した初期閾値Kに近い値Nと良品の濃度データ11cとの双方に基づく有効な値を算出することができる。
A value regarded as non-defective product density data as a value having a predetermined relationship with the initial threshold value K is a value close to the initial threshold value K that does not exceed the initial threshold value K. If a value close to the initial threshold value K is N, for example, N may be a fixed value set between the initial threshold K and 0.9K, or may be a calculated value calculated using the density data 11c of the defective product.
In the case of the calculated value, for example, when the average value of the density data 11c of defective products is F m , the standard deviation value is σ F , and the variable coefficient is k ′, N is the following equation, N = F m + k calculated as'Shiguma F, and the following equation, K ≧ N> 0.9 × K to a value having a relationship that satisfies the coefficients according to the value of the average value F m and the standard deviation sigma F k' Can be calculated by appropriately selecting.
However, if the average value F m becomes larger than N, it may be set such that K ≧ N> 0.9 × K is satisfied by setting F m = N and k ′ = 0. By setting ′ <0, K ≧ N> 0.9 × K may be satisfied.
In this way, by setting the value N close to the initial threshold value as a value having a predetermined relationship, the threshold value can be set even if a large number of defective product density data 11c are included in the predetermined number of density data 11c. It can be calculated as an effective statistical value that can be used when updating. That is, the average value m and the standard deviation value σ, which are statistical values, can be calculated as effective values based on both the value N close to the initial threshold value K calculated by the statistical value calculation program 12g and the non-defective density data 11c. it can.

閾値更新プログラム12hにおいては、統計値算出プログラム12gにおいて算出された濃度データ11cの平均値mと、標準偏差値σとに基づいて初期閾値Kが、初期閾値Kを越えない範囲内、すなわち濃度データ11cの下限値と初期閾値Kの範囲内で更新閾値Kとして更新される。さらに、更新された更新閾値Kが適宜更新後の濃度データ11cの平均値mと、標準偏差値σとに基づいて初期閾値Kを越えない範囲内で再更新される。更新および再更新された更新閾値Kは、例えば、次式(2)で表される。 In the threshold update program 12h, the initial threshold K is within a range that does not exceed the initial threshold K based on the average value m of the density data 11c calculated by the statistical value calculation program 12g and the standard deviation value σ, that is, the density data. It is updated as the update threshold value K S within the range of the lower limit value of 11c and the initial threshold value K. Furthermore, the updated updated threshold value K S is re-updated within a range not exceeding the initial threshold value K based average value m of the density data 11c after appropriately updated, in the standard deviation sigma. The updated and re-updated update threshold value K S is expressed by the following equation (2), for example.

=m+kσ (2)
式(2)中、kは、平均値mからの好適な更新閾値Kを決定するための係数であり、例えば、2〜5が好ましく、3〜4がより好ましい。
係数kは、図3に示す操作部7のテンキー7dから入力し、入力した数値を数字表示部6aに表示しエンターキー7cを押下げて確定させることにより、更新閾値Kの算出に用いることができる。係数kは、品種、パッケージの特性、蓄積データや経験値などに基づき、予めデータメモリ11に設定データ11bとして格納し、算出の際に自動的に読み出して用いてもよい。この算出に用いた平均値mおよび更新閾値Kを、例えば、図4および図5に示すように表示部6の表示画面に表示してもよい。
K S = m + kσ (2)
In formula (2), k is a coefficient for determining the suitable update threshold value K S from the average value m, for example, 2-5 are preferable and 3-4 are more preferable.
The coefficient k is input from the numeric keypad 7d of the operation unit 7 shown in FIG. 3, and the input numerical value is displayed on the numeric display unit 6a and is confirmed by pressing the enter key 7c to be used for calculating the update threshold value K S. Can do. The coefficient k may be stored in advance in the data memory 11 as the setting data 11b based on the product type, package characteristics, accumulated data, experience values, and the like, and automatically read out for use. For example, the average value m and the update threshold value K S used for the calculation may be displayed on the display screen of the display unit 6 as shown in FIGS.

以上説明した更新閾値Kは、所定個数が良品の濃度データ11cのみである場合および、統計値算出プログラム12gにより、不良品の濃度データ11cを初期閾値Kと所定の関係を有する値としての良品の濃度データ11cとしてみなす値(初期閾値Kに近い値N)として統計値が算出された場合は、初期閾値Kを越えない範囲内の値となる。
所定個数が不良品の濃度データ11cのみである場合および不良品の濃度データ11cを多く含んでいる場合、統計値算出プログラム12gにより、統計値を初期閾値Kに近い値Nとして修正せず、閾値更新プログラム12hにより更新閾値自体を修正して更新閾値Kを初期閾値Kを越えない範囲内の値となるようにしてもよい。
更新閾値自体を修正する方法としては、一律更新閾値Kを初期閾値Kとみなす方法、所定の計算処理による方法などが挙げられる。計算処理による方法においては、不良品の濃度データ11cおよび良品の濃度データ11cの双方または不良品の濃度データ11cのみに基づいて計算処理する。例えば、更新閾値Kが次式、K≧K>0.9×Kを満足する値となるように式(2)K=m+kσにおける係数kを適宜補正する。
平均値mおよび標準偏差値σは正の値であることから、式(2)および式K≧K>0.9×Kより、係数kは(K−m)/σと(0.9K−m)/σとの間の値となるように補正される。このように、係数kを補正することにより、更新閾値Kを初期閾値Kを越えない範囲内の値として設定することができる。
その結果、所定個数の中に不良品の濃度データ11cが多く含まれてしまった場合でも、不良品の濃度データ11cに基づいて更新閾値を算出することができる。すなわち、従来、不良品の濃度データ11cを用いて更新閾値の算出をしようとすると、算出が不能となってしまい更新閾値が得られないという事態が生じうるが、この事態を回避することができ、自動的に連続して閾値を適切に更新することができる。
The update threshold value K S described above is a non-defective product when the predetermined number is only the non-defective product density data 11c and when the density data 11c of the defective product is a value having a predetermined relationship with the initial threshold value K by the statistical value calculation program 12g. When the statistical value is calculated as a value regarded as the density data 11c (value N close to the initial threshold value K), the value is within a range not exceeding the initial threshold value K.
When the predetermined number is only the density data 11c of the defective product and when the density data 11c of the defective product is included, the statistical value calculation program 12g does not correct the statistical value as the value N close to the initial threshold value K. updating threshold K S to correct the updated threshold itself by update 12h may be a value within a range that does not exceed the initial threshold K.
As a method for correcting the update threshold value itself, a method in which the uniform update threshold value K S is regarded as the initial threshold value K, a method by a predetermined calculation process, and the like can be cited. In the calculation method, calculation processing is performed based on both the density data 11c of the defective product and the density data 11c of the non-defective product or only the density data 11c of the defective product. For example, the coefficient k in the equation (2) K S = m + kσ is appropriately corrected so that the update threshold value K S satisfies the following equation, K ≧ K S > 0.9 × K.
Since the average value m and the standard deviation value σ are positive values, the coefficient k is (K−m) / σ and (0.9K) from the equation (2) and the equation K ≧ K S > 0.9 × K. It is corrected to be a value between -m) / σ. Thus, by correcting the coefficient k, the updated threshold value K S can be set as a value within a range that does not exceed the initial threshold K.
As a result, even when the predetermined number of defective product density data 11c is included in a large number, the update threshold value can be calculated based on the defective product density data 11c. That is, conventionally, when the update threshold value is calculated using the density data 11c of the defective product, the calculation cannot be performed and the update threshold value cannot be obtained. However, this situation can be avoided. The threshold value can be appropriately updated continuously in succession.

X線発生部駆動回路16は、CPU19からの検査開始指令によりX線検出部4に対し所定の電力を印加することで、X線発生部3からX線を常時曝射する状態にして、X線発生部3から曝射されたX線がX線検出部4に入力されるようになっている。   The X-ray generation unit drive circuit 16 applies a predetermined power to the X-ray detection unit 4 in response to an inspection start command from the CPU 19 so that the X-ray generation unit 3 constantly emits X-rays. X-rays emitted from the ray generator 3 are input to the X-ray detector 4.

X線検出部駆動回路17は、CPU19からの検査開始指令によりX線発生部3を常時ON状態にして、X線発生部3から曝射されたX線を入力するようになっている。   The X-ray detector drive circuit 17 is configured to always turn on the X-ray generator 3 in response to an inspection start command from the CPU 19 and input X-rays emitted from the X-ray generator 3.

モータ駆動回路18は、CPU19からの駆動開始指令によりモータMに対し所定電力を供給してモータMを駆動するようになっている。   The motor drive circuit 18 drives the motor M by supplying predetermined power to the motor M in response to a drive start command from the CPU 19.

CPU19は、X線異物検出装置1の全体を統轄制御するプロセッサであり、X線発生部駆動回路16、X線検出部駆動回路17、モータ駆動回路18への駆動指令、データメモリ11からのX線強度信号11aなどの読み出し、プログラム格納部12に格納された閾値設定プログラム12aその他の各種プログラムの実行、その他データの転送、種々の演算およびデータの一時的な格納などを行うようになっている。   The CPU 19 is a processor that controls the entire X-ray foreign object detection apparatus 1. The CPU 19 controls the X-ray generation unit drive circuit 16, the X-ray detection unit drive circuit 17, the motor drive circuit 18, and the X from the data memory 11. Reading of the line intensity signal 11a and the like, execution of the threshold setting program 12a stored in the program storage unit 12 and other various programs, transfer of other data, various calculations, temporary storage of data, and the like are performed. .

次に、本発明に係るX線異物検出装置1における異物検出の実行処理について、図7〜図9のフローチャートを参照して説明する。   Next, foreign substance detection execution processing in the X-ray foreign substance detection apparatus 1 according to the present invention will be described with reference to the flowcharts of FIGS.

まず、検査者は、パッキングされたチーズなどのパッケージ10を図1に示す搬送ベルト2eの上に載置し、異物検出または閾値設定の準備をする。
初期閾値Kが設定されている場合は、検査者は、図3に示すスイッチ7aを押下げてX線による異物検出モードを選択し、初期閾値Kが設定されていない場合は、スイッチ7bを押下げて閾値設定モードを選択する(S10)。閾値設定モードまたは異物検出モードのいずれかが選択されると、CPU19は、選択されたモードを認識する(S12)。CPU19が、閾値設定モードを認識すると、プログラム格納部12内のモード実行プログラム12cにより、閾値設定プログラム12aが読み出されて閾値設定モードの実行が開始される(S14)。CPU19が、異物検出モードを認識すると、プログラム格納部12内のモード実行プログラム12cにより、初期閾値が設定されているか否かの判断がなされる(S30)。初期閾値が設定されていないと判断された場合は、閾値設定プログラム12aが読み出されて閾値設定モードの実行が開始され(S14)、初期閾値が設定されていると判断された場合は、異物検出プログラム12bが読み出されて異物検出モードの実行が開始される(S32)。
First, the inspector places the packed package 10 such as cheese on the transport belt 2e shown in FIG. 1, and prepares for foreign object detection or threshold setting.
When the initial threshold value K is set, the inspector presses down the switch 7a shown in FIG. 3 to select the X-ray foreign matter detection mode. When the initial threshold value K is not set, the inspector presses the switch 7b. The threshold setting mode is selected by lowering (S10). When either the threshold setting mode or the foreign object detection mode is selected, the CPU 19 recognizes the selected mode (S12). When the CPU 19 recognizes the threshold setting mode, the mode execution program 12c in the program storage unit 12 reads the threshold setting program 12a and starts executing the threshold setting mode (S14). When the CPU 19 recognizes the foreign object detection mode, the mode execution program 12c in the program storage unit 12 determines whether an initial threshold is set (S30). If it is determined that the initial threshold is not set, the threshold setting program 12a is read and execution of the threshold setting mode is started (S14). If it is determined that the initial threshold is set, a foreign object is determined. The detection program 12b is read and execution of the foreign object detection mode is started (S32).

閾値設定モードの実行が開始されると(S14)、CPU19からX線発生部駆動回路16、X線検出部駆動回路17、モータ駆動回路18に駆動指令が出力される。出力された駆動指令により、モータMが回転駆動して搬送部2がパッケージ10の搬送を開始する(S16)。次いで、X線発生部3からX線が曝射される(S18)。   When the execution of the threshold setting mode is started (S14), a drive command is output from the CPU 19 to the X-ray generation unit drive circuit 16, the X-ray detection unit drive circuit 17, and the motor drive circuit 18. In response to the output drive command, the motor M is driven to rotate, and the transport unit 2 starts transporting the package 10 (S16). Next, X-rays are emitted from the X-ray generator 3 (S18).

X線発生部3及びX線検出部4は、常時ON状態とされており、X線は、X線発生部3からX線検出部4に向けて略三角形状のスクリーン状に曝射されている。このX線スクリーン内をパッケージ10が通過すると、パッケージ10はスクリーン状のX線によって曝射される(S18)。X線が曝射されるとパッケージ10を透過した透過X線がX線検出部4に設けられたシンチレータに入力される。X線がシンチレータに入力され光に変換されると、X線検出部4に設けられたフォトダイオードにより光が受光されて電気信号に変換され、X線強度信号出力プログラム12eが実行されて、X線強度信号11aとして出力され、データメモリ11に格納される。このX線強度信号11aに基づいて、表示処理がなされX線透過像またはX線吸収画像として表示部6に表示される。例えば、パッケージ10のX線透視表示6bとして表示される(図3参照)。検査者は、このX線透視表示6bを参照して、パッケージ10内に異物が有るか否かを目視で観察することができる。
データメモリ11に格納されたX線強度信号11aは閾値設定プログラム12aにより読み出され、濃度データ生成プログラム12fによりX線強度信号11aが画像処理されて(S20)、各種条件に基づいて初期閾値Kが算出され設定される(S22)。閾値設定プログラム12aにより設定された初期閾値Kはデータメモリ11に格納される(S24)。
The X-ray generation unit 3 and the X-ray detection unit 4 are always in an ON state, and the X-ray is exposed from the X-ray generation unit 3 to the X-ray detection unit 4 in a substantially triangular screen shape. Yes. When the package 10 passes through the X-ray screen, the package 10 is exposed to the screen-shaped X-ray (S18). When X-rays are exposed, transmitted X-rays that have passed through the package 10 are input to a scintillator provided in the X-ray detection unit 4. When the X-ray is input to the scintillator and converted into light, the light received by the photodiode provided in the X-ray detection unit 4 is converted into an electric signal, the X-ray intensity signal output program 12e is executed, and X It is output as the line intensity signal 11 a and stored in the data memory 11. Based on the X-ray intensity signal 11a, display processing is performed and displayed on the display unit 6 as an X-ray transmission image or an X-ray absorption image. For example, it is displayed as the X-ray fluoroscopic display 6b of the package 10 (see FIG. 3). The examiner can visually observe whether or not there is a foreign substance in the package 10 with reference to the X-ray fluoroscopic display 6b.
The X-ray intensity signal 11a stored in the data memory 11 is read by the threshold setting program 12a, the X-ray intensity signal 11a is image-processed by the density data generation program 12f (S20), and an initial threshold K is set based on various conditions. Is calculated and set (S22). The initial threshold value K set by the threshold value setting program 12a is stored in the data memory 11 (S24).

X線透過画像は、例えば、X線検出部4のフォトダイオードなどのラインセンサにより、パッケージ10のX線透過データをデジタル画像化し、1ライン上のサンプリングピッチと略等しいサンプリングピッチで搬送方向にサンプリングしたものをX線透過画像として表示部6に表示してもよい。また、パッケージ10のX線吸収率をα、パッケージ10の厚みをtとすると、強度SのX線がこのパッケージ10を透過した後の強度S’が、理論上、S’=S・exp(−α・t)と書けるので、両辺の対数をとって変形すれば、α・t=log(S)−log(S’)とも書け、X線透過画像はS’の2次元分布に相当し、対数をとって変形すれば、パッケージ10による吸収量α・tの2次元分布を示すX線吸収画像に変換できる。このようにして、X線吸収画像として表示部6に表示してもよい。   The X-ray transmission image is converted into a digital image of the X-ray transmission data of the package 10 by a line sensor such as a photodiode of the X-ray detection unit 4 and is sampled in the transport direction at a sampling pitch substantially equal to the sampling pitch on one line. The image may be displayed on the display unit 6 as an X-ray transmission image. Further, if the X-ray absorption rate of the package 10 is α and the thickness of the package 10 is t, the intensity S ′ after the X-rays having the intensity S are transmitted through the package 10 is theoretically S ′ = S · exp ( −α · t), so if the logarithm of both sides is taken and transformed, α · t = log (S) −log (S ′) can be written, and the X-ray transmission image corresponds to the two-dimensional distribution of S ′. If the logarithm is transformed, it can be converted into an X-ray absorption image showing a two-dimensional distribution of the absorption amount α · t by the package 10. Thus, you may display on the display part 6 as an X-ray absorption image.

異物検出モードの実行が開始されると(S32)、CPU19からX線発生部駆動回路16、X線検出部駆動回路17、モータ駆動回路18に駆動指令が出力される。出力された駆動指令により、モータMが回転駆動し、搬送ベルト2eに載置された閾値設定において使用したパッケージ10と同一種類のパッケージ10の搬送が開始される(S34)。   When the execution of the foreign object detection mode is started (S32), a drive command is output from the CPU 19 to the X-ray generation unit drive circuit 16, the X-ray detection unit drive circuit 17, and the motor drive circuit 18. In response to the output drive command, the motor M is driven to rotate, and the conveyance of the package 10 of the same type as the package 10 used in the threshold setting placed on the conveyance belt 2e is started (S34).

パッケージ10が搬送され投光部5aと受光部5bとの間を通過すると投光部5aからの出射光が遮光される。これにより、パッケージ10の通過が検知される。受光部5bが遮光を検出してから数秒後に、パッケージ10が、X線発生部3から略三角形状のスクリーン状に曝射されているX線のスクリーン内を通過することで、パッケージ10に曝射される(S36)。X線検出部4では、パッケージ10を透過した透過X線がシンチレータに入力され光に変換される。次いで、X線検出部4のフォトダイオードにより光が受光され電気信号に変換され、X線強度信号出力プログラム12eが実行されて、X線強度信号11aが出力される(S38)。出力されたX線強度信号11aはデータメモリ11に格納される(S40)。   When the package 10 is transported and passes between the light projecting unit 5a and the light receiving unit 5b, the emitted light from the light projecting unit 5a is blocked. Thereby, the passage of the package 10 is detected. Several seconds after the light receiving unit 5b detects light shielding, the package 10 is exposed to the package 10 by passing through the X-ray screen exposed from the X-ray generation unit 3 in a substantially triangular screen shape. Is fired (S36). In the X-ray detection unit 4, transmitted X-rays transmitted through the package 10 are input to the scintillator and converted into light. Next, light is received by the photodiode of the X-ray detector 4 and converted into an electrical signal, the X-ray intensity signal output program 12e is executed, and the X-ray intensity signal 11a is output (S38). The output X-ray intensity signal 11a is stored in the data memory 11 (S40).

データメモリ11に格納されたX線強度信号11aは、濃度データ生成プログラム12fにより、例えば、256階調の輝度情報に変換され、次いで特徴抽出フィルタ処理などの画像処理がなされ(S42)、パッケージ10の濃度データ11cが生成され(S44)、データメモリ11に格納される(S46)。また、濃度データ11cに基づいて、表示処理が行われ透視画像のデータが生成され、図3に示すように、表示部6にパッケージ10のX線透視表示6bとして表示される。   The X-ray intensity signal 11a stored in the data memory 11 is converted into luminance information of, for example, 256 gradations by the density data generation program 12f, and then subjected to image processing such as feature extraction filter processing (S42). Density data 11c is generated (S44) and stored in the data memory 11 (S46). Further, based on the density data 11c, display processing is performed to generate fluoroscopic image data, which is displayed on the display unit 6 as an X-ray fluoroscopic display 6b of the package 10 as shown in FIG.

図8に示すように、格納された濃度データ11cの個数がカウントされ(S50)、所定個数、例えば、100個未満か否かが判断される(S52)。100個未満であると判断された場合、パッケージ10の濃度データ11cと、初期閾値Kまたは先に更新されている更新閾値Kである現行閾値Kとが比較され(S54)、先のカウントがクリアされる(S56)。濃度データ11cが現行閾値Kを超えている場合(S58)は、異物が含まれているとして検査不合格(S60)とされ、濃度データ11cが現行閾値Kを超えていない場合(S58)は、異物が含まれていないとして検査合格(S62)とされ、結果について表示処理がなされ(S94)、表示部6に、例えば、パッケージ10の整理番号やロット番号とともにNGやOKなどの必要な表示がなされる(S96)。異物検出を続行する場合は(S98)、(B)すなわち、図7に示すように、パッケージ10にX線が曝射されるステップS36から表示処理がなされるステップS94までが繰り返し実行される。異物検出が全て行われると異物検出モードは終了する。 As shown in FIG. 8, the number of stored density data 11c is counted (S50), and it is determined whether it is less than a predetermined number, for example, 100 (S52). If it is determined to be less than 100, the density data 11c of the package 10, and the current threshold value K G is the initial threshold K or updated threshold has been updated earlier K S is compared (S54), the previous count Is cleared (S56). If concentration data 11c exceeds the current threshold value K G (S58) is an inspection failure as contains foreign substance (S60), if the density data 11c does not exceed the current threshold value K G (S58) Is passed the inspection (S62) because no foreign matter is contained, the result is displayed (S94), and the display unit 6 displays, for example, necessary numbers such as NG and OK together with the serial number and lot number of the package 10. A display is made (S96). When the foreign object detection is continued (S98), (B), that is, as shown in FIG. 7, from the step S36 where the X-rays are exposed to the package 10 to the step S94 where the display process is performed are repeatedly executed. When all foreign matter detection is performed, the foreign matter detection mode ends.

ステップS52で100個を超えていると判断された場合、初期閾値Kを超えている不良品の濃度データ11cがカウントされ(S70)、所定個数に対する比率、例えば、50個/100個、すなわち、0.5未満か否かが判断される(S72)。所定個数に対する比率が0.5未満であると判断された場合(S72)、例えば、0.4であった場合、所定個数100個から不良品の濃度データ11c40個を除いた残りの良品の濃度データ11c60個について、統計値算出プログラム12gが実行され、統計値が算出され、閾値更新プログラム12hが実行されて、現行閾値Kが更新されて更新閾値Kが新たに設定される(S82)。次に、カウントがクリアされ(S84)、濃度データ11cと更新された更新閾値Kとが比較される(S86)。この比較により濃度データ11cが更新閾値Kを超えている場合(S88)は、異物が含まれているとして検査不合格(S90)とされ、濃度データ11cが更新閾値Kを超えていない場合(S88)は、異物が含まれていないとして検査合格(S92)とされ、結果について表示処理がなされ(S94)、表示部6に、例えば、パッケージ10の整理番号やロット番号とともにNGやOKなどの必要な表示がなされる(S96)。異物検出を続行する場合には(S98)、(B)すなわち、図7〜図9に示すように、パッケージ10にX線が曝射されるステップS36から表示がなされるステップS96までが繰り返し実行される。異物検出が全て行われると異物検出モードは終了する。 If it is determined in step S52 that the number exceeds 100, the density data 11c of the defective product exceeding the initial threshold value K is counted (S70), and the ratio to the predetermined number, for example, 50/100, that is, It is determined whether it is less than 0.5 (S72). When it is determined that the ratio with respect to the predetermined number is less than 0.5 (S72), for example, when it is 0.4, the density of the remaining non-defective products excluding the density data 11c40 of the defective products from the predetermined number of 100. for data 11c60 pieces, statistical calculation program 12g is executed, statistics are calculated and executed threshold update 12h is updated threshold K S is newly set current threshold K G is updated (S82) . Next, the count is cleared (S84), and the density data 11c is compared with the updated update threshold K S (S86). If concentration data 11c exceeds the updated threshold value K S this comparison (S88) is an inspection failure as contains foreign substance (S90), if the density data 11c does not exceed the updated threshold K S In (S88), the inspection is passed (S92) because no foreign matter is included, and the result is displayed (S94). The display unit 6 displays, for example, the package 10 reference number and lot number together with NG, OK, etc. Is displayed (S96). When the foreign object detection is continued (S98), (B), that is, as shown in FIGS. 7 to 9, the process is repeatedly executed from step S36 where the X-ray is exposed to the package 10 to step S96 where the display is made. Is done. When all foreign matter detection is performed, the foreign matter detection mode ends.

所定個数において不良品の濃度データ11cの内初期閾値Kを超えたものと所定個数との比率が0.5未満でないと判断された場合(S72)、例えば、0.8であった場合、(C)に進み図9に示すように、不良品の濃度データ11cの内初期閾値Kを超えたものを修正するか否かが判断され(S76)、不良品の濃度データ11cの内初期閾値Kを超えたものを修正する場合は(S76)、統計値算出プログラム12gにより初期閾値Kと所定の関係を有する値とみなされた値として有効な統計値として算出する(S78)。その後(D)に進み、算出した統計値に基づいて閾値更新プログラム12hにより現行閾値Kを更新して更新閾値Kとして設定する(S78)。更新閾値Kを設定した後、ステップS82からステップS98までを実行する。不良品の濃度データ11cを修正しない場合は(S76)、閾値更新プログラム12hにより更新閾値自体を修正する。具体的には、更新閾値Kが次式、K≧K>0.9×Kを満足する値となるように式(2)K=m+kσにおける係数kを適宜補正する(S80)。係数kは、式(2)および式K≧K>0.9×Kから、(K−m)/σと(0.9K−m)/σとの間の値となるように補正される。このように、係数kを補正することにより、更新閾値Kを初期閾値Kを越えない範囲内の値として設定することができる。更新閾値Kを設定した後、ステップS82からステップS98までを実行する。
異物検出を続行する場合には(S98)、(B)すなわち、図7に示すように、パッケージ10にX線が曝射されるステップS36から表示処理がなされるステップS90までが繰り返し実行される。異物検出が全て行われると異物検出モードは終了する。
If it is determined that the ratio of the predetermined number of defective product density data 11c exceeding the initial threshold K to the predetermined number is not less than 0.5 (S72), for example, 0.8, As shown in FIG. 9, the process proceeds to C), and it is determined whether or not to correct the defective product density data 11c that exceeds the initial threshold value K (S76), and the defective product density data 11c contains the initial threshold value K. When the value exceeding the value is corrected (S76), the statistical value calculation program 12g calculates the effective statistical value as a value regarded as a value having a predetermined relationship with the initial threshold value K (S78). Then proceed to (D), and update the current threshold value K G is set as updated threshold K S by the threshold update 12h based on the calculated statistical value (S78). After setting the update threshold K S, it executes the step S82 to step S98. When the density data 11c of the defective product is not corrected (S76), the update threshold value itself is corrected by the threshold value update program 12h. Specifically, the coefficient k in Equation (2) K S = m + kσ is appropriately corrected so that the update threshold value K S satisfies the following equation, K ≧ K S > 0.9 × K (S80). The coefficient k is corrected so as to be a value between (K−m) / σ and (0.9K−m) / σ from Expression (2) and Expression K ≧ K S > 0.9 × K. The Thus, by correcting the coefficient k, the updated threshold value K S can be set as a value within a range that does not exceed the initial threshold K. After setting the update threshold K S, it executes the step S82 to step S98.
When the foreign object detection is continued (S98), (B), that is, as shown in FIG. 7, from step S36 where X-rays are exposed to the package 10 to step S90 where display processing is performed are repeatedly executed. . When all foreign matter detection is performed, the foreign matter detection mode ends.

以上説明したように、本発明に係るX線異物検出装置では、(1)搬送路上を搬送されるパッケージ10にX線が曝射され透過したX線の強度に対応したX線強度信号11aがX線強度信号出力プログラム12eにより出力され、このX線強度信号11aに基づいて画像処理がなされ、濃度データ生成プログラム12fにより濃度データ11cが生成される。この濃度データ11cが初期閾値Kおよび更新閾値Kのいずれかと比較され、パッケージ10に異物が含まれているかが、合否判定プログラム12dにより判定される。この判定に用いられる更新閾値Kは、合否判定プログラム12dにおいて比較の対象となった濃度データ11cの所定個数を用いて統計値算出プログラム12gにより統計値を算出し、この統計値に基づいて閾値更新プログラム12hにより、初期設定した初期閾値Kが更新される。初期閾値Kを越えない範囲内で、自動的に閾値が更新されるので、効率よくより高い精度で異物の有無を検出し誤判定が生じない合否判定をすることができる。 As described above, in the X-ray foreign object detection apparatus according to the present invention, (1) the X-ray intensity signal 11a corresponding to the intensity of X-rays that are transmitted through the package 10 conveyed on the conveyance path. It is output by the X-ray intensity signal output program 12e, image processing is performed based on the X-ray intensity signal 11a, and density data 11c is generated by the density data generation program 12f. The density data 11c is compared with any of the initial threshold K and updates the threshold value K S, if it contains a foreign substance in the package 10 is determined by the acceptance judgment program 12d. The update threshold value K S used for this determination is a statistical value calculated by the statistical value calculation program 12g using a predetermined number of density data 11c to be compared in the pass / fail determination program 12d, and the threshold value is based on this statistical value. The initially set initial threshold value K is updated by the update program 12h. Since the threshold value is automatically updated within a range not exceeding the initial threshold value K, it is possible to detect the presence / absence of a foreign substance with higher accuracy and to perform pass / fail determination without causing erroneous determination.

本発明に係るX線異物検出装置では、(2)閾値更新プログラム12hにより、パッケージ10の濃度データ11cの所定個数毎に、閾値が自動的に更新されるので、より高い精度で異物の有無を検出し自動的に合否判定をすることができる。   In the X-ray foreign object detection apparatus according to the present invention, (2) the threshold value is automatically updated for each predetermined number of density data 11c of the package 10 by the threshold value update program 12h. It can be detected and a pass / fail decision can be made automatically.

本発明に係るX線異物検出装置では、(3)パッケージ10の濃度データ11cの所定個数が、初期閾値Kおよび更新閾値Kのいずれかにより良品と判定されたパッケージ10の濃度データ11cのみに基づいて、統計値算出プログラム12gにより統計値が算出されるので、より高い精度で異物の有無を検出し自動的に合否判定をすることができる。 In X-ray foreign material detecting apparatus according to the present invention, (3) a predetermined number of density data 11c of the package 10, only the density data 11c of the package 10 is determined to be non-defective by either of the initial threshold value K and updates the threshold value K S Since the statistical value is calculated by the statistical value calculation program 12g based on this, the presence / absence of a foreign substance can be detected with higher accuracy, and a pass / fail determination can be made automatically.

本発明に係るX線異物検出装置では、(4)統計値算出プログラム12gにより、所定個数の濃度データ11cの内初期閾値Kを超えたものと所定個数との比率が一定比率に達したとき、不良品の濃度データ11cの内、初期閾値Kを超えたものを、初期閾値Kと所定の関係を有する値とみなすことにより、良品の濃度データ11cとみなして統計値が算出されるので、自動的に効率よくより高い精度で異物の有無を検出し誤判定が生じない合否判定をすることができる。   In the X-ray foreign object detection device according to the present invention, (4) when the ratio between the predetermined number of density data 11c exceeding the initial threshold K and the predetermined number reaches a certain ratio by the statistical value calculation program 12g, Since the density value 11c of the defective product that exceeds the initial threshold value K is regarded as a value having a predetermined relationship with the initial threshold value K, the statistical value is calculated as the non-defective product density data 11c. In other words, it is possible to detect the presence / absence of a foreign object with higher accuracy and to perform pass / fail determination without causing erroneous determination.

以上説明したように、本発明は、判定閾値をより精度の高い値に自動的に更新することにより、食品等に混入した異物の有無を、高精度で効率よく合否判定することができ、誤判定が生じないという効果を有し、判定閾値を用いて異物の有無の判定を行う検査装置であれば、X線異物検出装置だけでなく、磁界を用いて被検査物に混入した金属を検出する金属検出機やその他の異物検査装置にも有用である。   As described above, according to the present invention, by automatically updating the determination threshold value to a value with higher accuracy, the presence / absence of a foreign substance mixed in food can be determined with high accuracy and efficiency. If it is an inspection device that has the effect that no determination occurs and uses the determination threshold to determine the presence or absence of foreign matter, it detects not only the X-ray foreign matter detection device but also the metal mixed in the inspection object using a magnetic field. It is also useful for metal detectors and other foreign matter inspection devices.

本発明に係るX線異物検出装置の一実施の形態を示す斜視図である。1 is a perspective view showing an embodiment of an X-ray foreign object detection device according to the present invention. 本発明に係るX線異物検出装置の一実施の形態を示すブロック図である。It is a block diagram which shows one Embodiment of the X-ray foreign material detection apparatus which concerns on this invention. 本発明に係るX線異物検出装置の一実施の形態における操作部を示す平面図である。It is a top view which shows the operation part in one Embodiment of the X-ray foreign material detection apparatus which concerns on this invention. 本発明に係るX線異物検出装置の一実施の形態における表示部に表示されたグラフである。It is the graph displayed on the display part in one Embodiment of the X-ray foreign material detection apparatus which concerns on this invention. 本発明に係るX線異物検出装置の一実施の形態における表示部に表示されたグラフである。It is the graph displayed on the display part in one Embodiment of the X-ray foreign material detection apparatus which concerns on this invention. 本発明に係るX線異物検出装置の一実施の形態における所定個数を示す説明図である。It is explanatory drawing which shows the predetermined number in one Embodiment of the X-ray foreign material detection apparatus which concerns on this invention. 本発明に係るX線異物検出装置の一実施の形態における異物検出処理手順を示すフローチャートである。It is a flowchart which shows the foreign material detection processing procedure in one Embodiment of the X-ray foreign material detection apparatus which concerns on this invention. 本発明に係るX線異物検出装置の一実施の形態における異物検出処理手順を示すフローチャートである。It is a flowchart which shows the foreign material detection processing procedure in one Embodiment of the X-ray foreign material detection apparatus which concerns on this invention. 本発明に係るX線異物検出装置の一実施の形態における異物検出処理手順を示すフローチャートである。It is a flowchart which shows the foreign material detection processing procedure in one Embodiment of the X-ray foreign material detection apparatus which concerns on this invention.

符号の説明Explanation of symbols

1 X線異物検出装置
2 搬送部
2a、2b、2c、2d プーリ
2e 搬送ベルト
3 X線発生部
4 X線検出部(X線強度信号出力手段)
5 投受光部
5a 投光部
5b 受光部
6 表示部
6a 数字表示部
6b X線透視表示
7 操作部
7a、7b スイッチ
7c エンターキー
7d テンキー
7e 指定ボタン
7f 十字キー
7g カーソル
8 処理部
9 バス
10 パッケージ(被検査物)
11 データメモリ
11a X線強度信号
11b 設定データ
11c 濃度データ
12 プログラム格納部
12a 閾値設定プログラム
12b 異物検出プログラム
12c モード実行プログラム
12d 合否判定プログラム(合否判定手段)
12e X線強度信号出力プログラム(X線強度信号出力手段)
12f 濃度データ生成プログラム(濃度データ生成手段)
12g 統計値算出プログラム(統計値算出手段)
12h 閾値更新プログラム(閾値更新手段)
16 X線発生部駆動回路
17 X線検出部駆動回路
18 モータ駆動回路
19 CPU
DESCRIPTION OF SYMBOLS 1 X-ray foreign material detection apparatus 2 Conveyance part 2a, 2b, 2c, 2d Pulley 2e Conveyance belt 3 X-ray generation part 4 X-ray detection part (X-ray intensity signal output means)
5 Light Emitting / Receiving Unit 5a Light Emitting Unit 5b Light Receiving Unit 6 Display Unit 6a Number Display Unit 6b X-ray Perspective Display 7 Operation Unit 7a, 7b Switch 7c Enter Key 7d Numeric Keypad 7e Designation Button 7f Cross Key 7g Cursor 8 Processing Unit 9 Bus 10 Package (Inspection)
11 Data memory 11a X-ray intensity signal 11b Setting data 11c Concentration data 12 Program storage unit 12a Threshold setting program 12b Foreign matter detection program 12c Mode execution program 12d Pass / fail judgment program (pass / fail judgment means)
12e X-ray intensity signal output program (X-ray intensity signal output means)
12f Density data generation program (density data generation means)
12g Statistical value calculation program (Statistical value calculation means)
12h Threshold update program (threshold update means)
16 X-ray generator drive circuit 17 X-ray detector drive circuit 18 Motor drive circuit 19 CPU

Claims (4)

搬送路上を搬送される被検査物にX線を曝射し透過したX線の強度に対応したX線強度信号を出力するX線強度信号出力手段と、該X線強度信号出力手段から出力されるX線強度信号から濃度データを生成する濃度データ生成手段と、該濃度データ生成手段により生成された前記濃度データと閾値とを比較して前記被検査物の合否を判定する合否判定手段とを有するX線異物検出装置において、
前記合否判定手段に用いられた所定個数の前記濃度データに基づいて前記濃度データの統計値を算出する統計値算出手段と、
初期設定した初期閾値を越えない範囲内で前記統計値算出手段により算出した統計値に基づいて前記閾値を更新する閾値更新手段と、
を有することを特徴とするX線異物検出装置。
An X-ray intensity signal output means for outputting an X-ray intensity signal corresponding to the intensity of the X-ray that has been irradiated and transmitted to the inspection object conveyed on the conveyance path, and is output from the X-ray intensity signal output means Density data generation means for generating density data from the X-ray intensity signal, and pass / fail determination means for comparing the density data generated by the density data generation means with a threshold value to determine pass / fail of the object to be inspected. In the X-ray foreign matter detection apparatus having
A statistical value calculation means for calculating a statistical value of the density data based on a predetermined number of the density data used in the pass / fail judgment means;
Threshold update means for updating the threshold based on the statistical value calculated by the statistical value calculation means within a range not exceeding the initially set initial threshold;
An X-ray foreign matter detection apparatus comprising:
前記閾値更新手段が、前記所定個数の前記濃度データが生成される毎に、前記閾値を更新することを特徴とする請求項1に記載のX線異物検出装置。   The X-ray foreign object detection apparatus according to claim 1, wherein the threshold updating unit updates the threshold every time the predetermined number of the density data are generated. 前記所定個数が、初期閾値および更新された更新閾値のいずれかにより良品と判定された被検査物の前記濃度データである良品濃度データのみからなることを特徴とする請求項2に記載のX線異物検出装置。   3. The X-ray according to claim 2, wherein the predetermined number includes only non-defective density data that is the density data of the inspection object determined to be non-defective according to any of the initial threshold value and the updated update threshold value. Foreign object detection device. 前記統計値算出手段が、前記所定個数の前記濃度データの中で前記初期閾値を超えた前記濃度データの個数と前記所定個数との比率が一定比率に達したとき、前記初期閾値を超えた前記濃度データを、前記初期閾値と所定の関係を有する値とみなすことにより、前記良品濃度データとみなして前記統計値を算出することを特徴とする請求項2に記載のX線異物検出装置。   When the ratio between the number of the density data exceeding the initial threshold and the predetermined number among the density data of the predetermined number reaches a certain ratio, the statistical value calculating means exceeds the initial threshold. 3. The X-ray foreign matter detection apparatus according to claim 2, wherein the statistical value is calculated by regarding the density data as a value having a predetermined relationship with the initial threshold value and regarding the non-defective density data.
JP2006165627A 2006-06-15 2006-06-15 X-ray foreign object detection device Active JP4444240B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006165627A JP4444240B2 (en) 2006-06-15 2006-06-15 X-ray foreign object detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006165627A JP4444240B2 (en) 2006-06-15 2006-06-15 X-ray foreign object detection device

Publications (2)

Publication Number Publication Date
JP2007333562A true JP2007333562A (en) 2007-12-27
JP4444240B2 JP4444240B2 (en) 2010-03-31

Family

ID=38933173

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006165627A Active JP4444240B2 (en) 2006-06-15 2006-06-15 X-ray foreign object detection device

Country Status (1)

Country Link
JP (1) JP4444240B2 (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009229100A (en) * 2008-03-19 2009-10-08 Tokyo Metropolitan Industrial Technology Research Institute X-ray foreign matter inspection device for food, and method therefor
JP2009257922A (en) * 2008-04-16 2009-11-05 Jatco Ltd Inspection method for automatic transmission and inspection apparatus for automatic transmission
JP2011099725A (en) * 2009-11-05 2011-05-19 Ishida Co Ltd Article inspection apparatus
JP2011232120A (en) * 2010-04-27 2011-11-17 Yamato Scale Co Ltd X-ray inspection device
CN106959311A (en) * 2017-05-23 2017-07-18 上海海洋大学 A kind of detection device and method for the fish meat sheet containing bone
CN109613108A (en) * 2018-12-27 2019-04-12 帝沃检测技术(上海)有限公司 Threshold selection method and equipment
CN109991246A (en) * 2019-04-10 2019-07-09 广东中烟工业有限责任公司 A kind of method, apparatus and system of the detection cigarette packet mildew based on ray
CN110392826A (en) * 2017-03-14 2019-10-29 株式会社石田 X ray checking device
JP2019203853A (en) * 2018-05-25 2019-11-28 アンリツインフィビス株式会社 X-ray line sensor and x-ray foreign matter detector using the same
JP2020051948A (en) * 2018-09-27 2020-04-02 大成ラミック株式会社 Inspection method, inspection device, and inspection system
CN111693763A (en) * 2020-05-22 2020-09-22 科华恒盛股份有限公司 Detection system for power module in modular electrical equipment
JP7343424B2 (en) 2020-03-11 2023-09-12 新明和工業株式会社 Terminal crimping inspection device and method for updating standard waveforms for terminal crimping inspection

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0783851A (en) * 1993-06-29 1995-03-31 Lion Eng Kk Method for detecting and processing defective
JP2002098653A (en) * 2000-09-26 2002-04-05 Ishida Co Ltd X-ray inspection device
JP2002139458A (en) * 2000-10-31 2002-05-17 Anritsu Corp X-ray foreign body detector
JP2002148212A (en) * 2000-11-10 2002-05-22 Ishida Co Ltd X-ray inspecting apparatus
JP2004069384A (en) * 2002-08-02 2004-03-04 Anritsu Corp X-ray foreign material detector, x-ray foreign material detecting method, and x-ray foreign material detecting program
JP2005134310A (en) * 2003-10-31 2005-05-26 Anritsu Sanki System Co Ltd Apparatus for weighing or inspecting article

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0783851A (en) * 1993-06-29 1995-03-31 Lion Eng Kk Method for detecting and processing defective
JP2002098653A (en) * 2000-09-26 2002-04-05 Ishida Co Ltd X-ray inspection device
JP2002139458A (en) * 2000-10-31 2002-05-17 Anritsu Corp X-ray foreign body detector
JP2002148212A (en) * 2000-11-10 2002-05-22 Ishida Co Ltd X-ray inspecting apparatus
JP2004069384A (en) * 2002-08-02 2004-03-04 Anritsu Corp X-ray foreign material detector, x-ray foreign material detecting method, and x-ray foreign material detecting program
JP2005134310A (en) * 2003-10-31 2005-05-26 Anritsu Sanki System Co Ltd Apparatus for weighing or inspecting article

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009229100A (en) * 2008-03-19 2009-10-08 Tokyo Metropolitan Industrial Technology Research Institute X-ray foreign matter inspection device for food, and method therefor
JP2009257922A (en) * 2008-04-16 2009-11-05 Jatco Ltd Inspection method for automatic transmission and inspection apparatus for automatic transmission
JP2011099725A (en) * 2009-11-05 2011-05-19 Ishida Co Ltd Article inspection apparatus
JP2011232120A (en) * 2010-04-27 2011-11-17 Yamato Scale Co Ltd X-ray inspection device
US11598729B2 (en) 2017-03-14 2023-03-07 Ishida Co., Ltd. X-ray inspection device
EP3598114A4 (en) * 2017-03-14 2021-03-03 Ishida Co., Ltd. X-ray inspection device
CN110392826A (en) * 2017-03-14 2019-10-29 株式会社石田 X ray checking device
CN106959311A (en) * 2017-05-23 2017-07-18 上海海洋大学 A kind of detection device and method for the fish meat sheet containing bone
JP2019203853A (en) * 2018-05-25 2019-11-28 アンリツインフィビス株式会社 X-ray line sensor and x-ray foreign matter detector using the same
JP7060446B2 (en) 2018-05-25 2022-04-26 アンリツ株式会社 X-ray line sensor and X-ray foreign matter detection device using it
JP2020051948A (en) * 2018-09-27 2020-04-02 大成ラミック株式会社 Inspection method, inspection device, and inspection system
CN109613108A (en) * 2018-12-27 2019-04-12 帝沃检测技术(上海)有限公司 Threshold selection method and equipment
CN109991246A (en) * 2019-04-10 2019-07-09 广东中烟工业有限责任公司 A kind of method, apparatus and system of the detection cigarette packet mildew based on ray
JP7343424B2 (en) 2020-03-11 2023-09-12 新明和工業株式会社 Terminal crimping inspection device and method for updating standard waveforms for terminal crimping inspection
CN111693763A (en) * 2020-05-22 2020-09-22 科华恒盛股份有限公司 Detection system for power module in modular electrical equipment
CN111693763B (en) * 2020-05-22 2023-06-06 科华恒盛股份有限公司 Detection system for power module in modularized electrical equipment

Also Published As

Publication number Publication date
JP4444240B2 (en) 2010-03-31

Similar Documents

Publication Publication Date Title
JP4444240B2 (en) X-ray foreign object detection device
JP4317566B2 (en) X-ray inspection apparatus and method for generating image processing procedure of X-ray inspection apparatus
JP5848881B2 (en) X-ray foreign object detection device
JP4855128B2 (en) Inspection equipment
JP4472657B2 (en) X-ray inspection equipment
JP6574797B2 (en) X-ray inspection equipment
JP6546208B2 (en) X-ray inspection device
JP3888623B2 (en) X-ray foreign matter detection method and X-ray foreign matter detection device
JP5798420B2 (en) Weight estimation device
JP2009085627A (en) X-ray line sensor module and x-ray foreign matter inspection device
JP4590915B2 (en) Radiation foreign matter inspection equipment
JP7060446B2 (en) X-ray line sensor and X-ray foreign matter detection device using it
JP4249201B2 (en) Foreign object detection device
JP4020712B2 (en) X-ray image processing filter automatic setting method, X-ray foreign object detection method, and X-ray foreign object detection device
JP3955558B2 (en) X-ray inspection equipment
JP4170366B2 (en) X-ray inspection equipment
JP3955559B2 (en) X-ray inspection equipment
JP2009080030A (en) X-ray inspection device
JP2008224483A (en) X-ray inspection device
JPH1062362A (en) Method for inspecting internal defect of vegetable and fruit
JP6629776B2 (en) X-ray inspection apparatus and X-ray inspection method
JP6861990B2 (en) X-ray inspection equipment
JP4291123B2 (en) Radiation foreign matter inspection apparatus and radiation foreign matter inspection method
JP6774895B2 (en) X-ray inspection equipment
JP2019190865A (en) Foreign matter detection device and foreign matter detection method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090702

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100113

R150 Certificate of patent or registration of utility model

Ref document number: 4444240

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130122

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130122

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20140122

Year of fee payment: 4

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

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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