JP6224434B2 - X-ray inspection equipment - Google Patents

X-ray inspection equipment Download PDF

Info

Publication number
JP6224434B2
JP6224434B2 JP2013240061A JP2013240061A JP6224434B2 JP 6224434 B2 JP6224434 B2 JP 6224434B2 JP 2013240061 A JP2013240061 A JP 2013240061A JP 2013240061 A JP2013240061 A JP 2013240061A JP 6224434 B2 JP6224434 B2 JP 6224434B2
Authority
JP
Japan
Prior art keywords
control computer
ray
inspection apparatus
article
seal portion
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.)
Active
Application number
JP2013240061A
Other languages
Japanese (ja)
Other versions
JP2015087371A (en
Inventor
一幸 杉本
一幸 杉本
ひかり 原田
ひかり 原田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2013240061A priority Critical patent/JP6224434B2/en
Publication of JP2015087371A publication Critical patent/JP2015087371A/en
Application granted granted Critical
Publication of JP6224434B2 publication Critical patent/JP6224434B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、検査装置に関し、特に、複数の個包装が連なった連包品を検査する検査装置に関する。   The present invention relates to an inspection apparatus, and more particularly, to an inspection apparatus that inspects a continuous package of a plurality of individual packages.

従来、包装された内容物が包材のシール部分に噛み込まれているか否かを推定する手段として、画像データから推定する方法が広く利用されている。   Conventionally, a method of estimating from image data has been widely used as a means for estimating whether or not the packaged contents are bitten by the seal portion of the packaging material.

例えば、特許文献1(特開2005−91015号公報)に記載の検査装置では、画像より得られた包材の外形から、予め設定されているシール部分の寸法に基づいてシール部領域を推定し、その領域に内容物が存在するか否かによって噛み込みの有無を推定している。   For example, in the inspection apparatus described in Patent Document 1 (Japanese Patent Application Laid-Open No. 2005-91015), the seal portion region is estimated from the outline of the packaging material obtained from the image based on the dimension of the seal portion set in advance. The presence or absence of biting is estimated based on whether or not the contents are present in the area.

他方、包材の厚さが非常に薄く画像に写り難い場合は、例えば、特許文献2(特開2011−196796号公報)に記載の検査装置のように、ジッパー等の画像として写り易い箇所を基準に包材の外形およびシール部分を推定している。   On the other hand, when the packaging material is very thin and difficult to be captured in an image, for example, a portion such as a zipper or the like that is easily captured as an image, such as an inspection apparatus described in Patent Document 2 (Japanese Patent Application Laid-Open No. 2011-196996), The outline of the packaging material and the seal part are estimated based on the standard.

しかしながら、ジッパー等もなく画像として写り難い包材の場合は、上記特許文献1および特許文献2に記載の検査装置ではシール部分を推定することができないため、内容物がシール部分に噛み込まれているか否かを推定することができない。   However, in the case of a packaging material that is difficult to be captured as an image without a zipper or the like, the inspection device described in Patent Document 1 and Patent Document 2 cannot estimate the seal portion, so the contents are bitten by the seal portion. It cannot be estimated whether or not.

本発明の課題は、シール部を推定することなく、内容物が包材のシール部分に噛み込まれているか否かを推定することができる検査装置を提供することにある。   The subject of this invention is providing the test | inspection apparatus which can estimate whether the contents are biting in the seal part of a packaging material, without estimating a seal part.

本発明の第1観点に係る検査装置は、物品に放射光を照射し、放射光を受光部で受け、受光部が受けた放射光に基づいて画像を生成して検査を行う検査装置であって、検査対象が複数の個包装が連なった連包品である。この検査装置は、検出部と、推定部とを備えている。検出部は、画像の連包品の中の第1物品とそれに隣接する第2物品との間隔を検出する。推定部は、間隔に基づいて、第1物品と第2物品との間のシール部分に第1物品または第2物品が噛み込んでいるか否かを推定する。   An inspection apparatus according to a first aspect of the present invention is an inspection apparatus that irradiates an article with radiated light, receives the radiated light at a light receiving unit, generates an image based on the radiated light received by the light receiving unit, and performs an inspection. Thus, the inspection object is a continuous package of a plurality of individual packages. This inspection apparatus includes a detection unit and an estimation unit. A detection part detects the space | interval of the 1st goods in the continuous package of an image, and the 2nd goods adjacent to it. The estimation unit estimates whether or not the first article or the second article is caught in the seal portion between the first article and the second article based on the interval.

この検査装置では、隣接する物品同士の間隔が近いときは、一方または双方がシール部に噛み込んでいる可能性が高いので、その間隔からシール部分に内容物が噛み込んでいるか否かを推定することができる。   In this inspection device, when the interval between adjacent articles is close, there is a high possibility that one or both of them are biting into the seal part, so it is estimated from the gap whether the contents are biting into the seal part. can do.

その結果、従来のようなシール部分の推定をすることなく、シール部分への内容物の噛み込みを推定することができ、ユーザーにとって使い勝手がよくなる。   As a result, it is possible to estimate the biting of the contents into the seal portion without estimating the seal portion as in the prior art, which improves usability for the user.

本発明の第2観点に係る検査装置は、第1観点に係る検査装置であって、上記間隔が、第1物品と第2物品との最短距離である。推定部は、最短距離が予め設定されている閾値よりも小さいときに、シール部分への物品の噛み込みがあると推定する。   The inspection apparatus which concerns on the 2nd viewpoint of this invention is an inspection apparatus which concerns on a 1st viewpoint, Comprising: The said space | interval is the shortest distance of a 1st article | item and a 2nd article | item. When the shortest distance is smaller than a preset threshold, the estimation unit estimates that there is an article biting into the seal portion.

この検査装置では、例えば、噛み込みがない第1物品と第2物品とを可能な限り接近させたときの距離を閾値とした場合、最短距離が閾値のときは理論的に噛み込みがないのであるから、その距離が閾値よりも小さいときは噛み込んでいると推定することによって、噛み込み品を誤って正常品と判断することを防止することができる。   In this inspection apparatus, for example, when the distance when the first article and the second article that are not bitten are brought as close as possible is set as a threshold, there is no theoretical bite when the shortest distance is the threshold. Therefore, when the distance is smaller than the threshold value, it is possible to prevent the biting product from being erroneously determined as a normal product by estimating that the biting is performed.

本発明の第3観点に係る検査装置は、第1観点に係る検査装置であって、上記間隔が、第1物品および第2物品の共通内接線の傾斜角度である。推定部は、傾斜角度が予め設定されている閾値よりも大きいときに、シール部分への物品の噛み込みがあると推定する。   An inspection apparatus according to a third aspect of the present invention is the inspection apparatus according to the first aspect, wherein the interval is an inclination angle of a common inscribed line of the first article and the second article. The estimation unit estimates that the article is caught in the seal portion when the inclination angle is larger than a preset threshold value.

この検査装置では、例えば、噛み込みがない第1物品と第2物品とを可能な限り接近させたときの共通内接線の傾斜角度を閾値とした場合、傾斜角度が閾値のときは理論的に噛み込みがないのであるから、傾斜角度が閾値よりも大きいときは噛み込んでいると推定することによって、噛み込み品を誤って正常品と判断することを防止することができる。   In this inspection apparatus, for example, when the inclination angle of the common inscribed line when the first article and the second article that are not bitten as close as possible are used as a threshold value, and the inclination angle is a threshold value, theoretically Since there is no biting, it is possible to prevent the biting product from being erroneously determined as a normal product by estimating that it is biting when the inclination angle is larger than the threshold value.

本発明の第4観点に係る検査装置は、第1観点から第3観点のいずれか1つに係る検査装置であって、推定部は、複数の間隔の検出パターンが所定条件に合致するときは、シール部分への物品の噛み込みがあると推定する。   An inspection apparatus according to a fourth aspect of the present invention is the inspection apparatus according to any one of the first to third aspects, wherein the estimation unit is configured to detect a plurality of interval detection patterns that meet a predetermined condition. It is presumed that there is an article biting into the seal part.

この検査装置では、例えば、隣接する物品が連続してシール部に噛み込まれているようなとき、連続して検出される複数の間隔は閾値条件を満たしている可能性がある。このような場合は、検出パターンとして[小―小―大・・・]が現れるので、このパターンが現れたときは噛み込んでいると推定することによって、噛み込み品を誤って正常品と判断することを防止することができる。   In this inspection apparatus, for example, when adjacent articles are continuously bitten by the seal portion, there is a possibility that a plurality of intervals detected continuously satisfy a threshold condition. In such a case, [Small-Small-Large ...] appears as a detection pattern. If this pattern appears, it is assumed that the bite is caught, and the bite product is mistakenly determined as a normal product. Can be prevented.

本発明に係る検査装置では、隣接する物品同士の間隔が近いときは、一方または双方がシール部に噛み込んでいる可能性が高いので、その間隔からシール部分に内容物が噛み込んでいるか否かを推定することができる。   In the inspection apparatus according to the present invention, when the interval between adjacent articles is close, there is a high possibility that one or both of them are biting into the seal portion. Can be estimated.

その結果、従来のようなシール部分の推定をすることなく、シール部分への内容物の噛み込みを推定することができ、ユーザーにとって使い勝手がよくなる。   As a result, it is possible to estimate the biting of the contents into the seal portion without estimating the seal portion as in the prior art, which improves usability for the user.

本発明の一実施形態に係るX線検査装置の外観斜視図。1 is an external perspective view of an X-ray inspection apparatus according to an embodiment of the present invention. X線検査装置のシールドボックスの内部構成図。The internal block diagram of the shield box of a X-ray inspection apparatus. X線検査の原理を示す模式図。The schematic diagram which shows the principle of a X-ray inspection. X線検査装置の前後の工程構成図。The process block diagram before and behind an X-ray inspection apparatus. 制御コンピュータのブロック構成図。The block block diagram of a control computer. (a)複数の個包装が連なった連包品の平面図。(b)(a)に示す連包品のX線透過画像。(c)X線の照射範囲Xを袋M1〜M4が通過したときのX線透視像信号に基づいて算出された代表値の時系列データ。(d)(c)の真偽判定処理の結果を示す図。(A) The top view of the continuous packaged goods with which the several individual packaging continued. (B) X-ray transmission image of the packaged product shown in (a). (C) Time series data of representative values calculated based on X-ray fluoroscopic image signals when the bags M1 to M4 pass through the X-ray irradiation range X. (D) The figure which shows the result of the true / false determination process of (c). (a)厚さが非常に薄い包材による複数の個包装が連なった連包品の平面図。(b)(a)に示す連包品のX線透過画像。(c)(b)に示すX線透過画像に対して2値化処理を施した後の2値化画像。(A) The top view of the continuous package in which the several individual packaging by the packaging material with very thin thickness was continued. (B) X-ray transmission image of the packaged product shown in (a). (C) A binarized image after binarization processing is performed on the X-ray transmission image shown in (b). 内容物が収納領域の真ん中に位置する第1状態の2値化画像。A binarized image in a first state in which the contents are located in the middle of the storage area. 2つの内容物がそれぞれ同一のシール部分S1の境界線まで達している第2状態の2値化画像。The binarized image in the second state in which the two contents reach the boundary line of the same seal portion S1. 2つの内容物がそれぞれ離反してシール部分S1の境界線まで達している第3状態の2値化画像。A binary image in a third state in which the two contents are separated from each other and reach the boundary line of the seal portion S1. 2つの領域R2と領域R3との距離がD<Tminである連包品の2値化画像。A binarized image of a packaged product in which the distance between the two regions R2 and R3 is D <Tmin. 2つの領域R2と領域R3との距離がD>Tmaxである連包品の2値化画像。The binarized image of the packaged product in which the distance between the two regions R2 and R3 is D> Tmax. 第1実施形態に係るX線検査装置の噛み込み推定のフローチャート。The flowchart of the biting estimation of the X-ray inspection apparatus which concerns on 1st Embodiment. 第2実施形態に係るX線検査装置の噛み込み推定のフローチャート。The flowchart of the bite estimation of the X-ray inspection apparatus which concerns on 2nd Embodiment. 第2実施形態の変形例に係るX線検査装置の噛み込み推定のフローチャート。The flowchart of the bite estimation of the X-ray inspection apparatus which concerns on the modification of 2nd Embodiment. 第2実施形態に係るX線検査装置110の制御コンピュータ20のブロック構成図。The block block diagram of the control computer 20 of the X-ray inspection apparatus 110 which concerns on 2nd Embodiment. 内容物が収納領域の真ん中に位置する第1状態の2値化画像。A binarized image in a first state in which the contents are located in the middle of the storage area. 2つの内容物がそれぞれ同一のシール部分S1の境界線まで達している第2状態の2値化画像。The binarized image in the second state in which the two contents reach the boundary line of the same seal portion S1. 2つの内容物がそれぞれ離反してシール部分S1の境界線まで達している第3状態の2値化画像。A binary image in a third state in which the two contents are separated from each other and reach the boundary line of the seal portion S1. 2つの領域R2と領域R3との内接線の傾斜角度θがθ>θmaxである連包品の2値化画像。A binarized image of a continuous product in which an inclination angle θ of an inscribed line between two regions R2 and R3 is θ> θmax. 2つの領域R2と領域R3との内接線の傾斜角度θがθ<θminである連包品の2値化画像。The binarized image of the continuous product in which the inclination angle θ of the inscribed line between the two regions R2 and R3 is θ <θmin. 第3実施形態に係るX線検査装置の噛み込み推定のフローチャート。The flowchart of the bite estimation of the X-ray inspection apparatus which concerns on 3rd Embodiment. 第4実施形態に係るX線検査装置の噛み込み推定のフローチャート。The flowchart of the biting estimation of the X-ray inspection apparatus which concerns on 4th Embodiment. 第4実施形態の変形例に係るX線検査装置の噛み込み推定のフローチャート。The flowchart of the bite estimation of the X-ray inspection apparatus which concerns on the modification of 4th Embodiment. 第5実施形態に係るX線検査装置410の制御コンピュータ20のブロック構成図。The block block diagram of the control computer 20 of the X-ray inspection apparatus 410 which concerns on 5th Embodiment. 連包品の先頭から最後の個包装に至るまでの間に検出した連続する2つ値がTmin、Tminである当該連包品の2値化画像。A binarized image of the continuous package in which two consecutive values detected from the beginning of the continuous package to the last individual package are Tmin and Tmin. 連包品の先頭から最後の個包装に至るまでの間に検出した連続する2つ値がTmax、Tmaxである当該連包品の2値化画像。A binarized image of the continuous package in which two consecutive values detected from the beginning of the continuous package to the last individual package are Tmax and Tmax. 第5実施形態に係るX線検査装置の噛み込み推定のフローチャート。The flowchart of the biting estimation of the X-ray inspection apparatus which concerns on 5th Embodiment. 第6実施形態に係るX線検査装置の噛み込み推定のフローチャート。The flowchart of the bite estimation of the X-ray inspection apparatus which concerns on 6th Embodiment.

以下図面を参照しながら、本発明の実施形態について説明する。なお、以下の実施形態は、本発明の具体例であって、本発明の技術的範囲を限定するものではない。   Embodiments of the present invention will be described below with reference to the drawings. The following embodiments are specific examples of the present invention and do not limit the technical scope of the present invention.

<第1実施形態>
(1)X線検査装置10全体の構成
図1は、本発明の一実施形態に係るX線検査装置10の外観斜視図である。図1において、X線検査装置10は、食品等の商品Gの生産ライン(図4参照)に組み込まれて商品Gの品質検査を行う装置の1つであって、連続的に搬送されてくる商品Gに対してX線を照射することにより商品Gの良否判断を行う装置である。
<First Embodiment>
(1) Overall Configuration of X-ray Inspection Apparatus 10 FIG. 1 is an external perspective view of an X-ray inspection apparatus 10 according to an embodiment of the present invention. In FIG. 1, an X-ray inspection apparatus 10 is one of apparatuses that are incorporated in a production line for a product G such as food (see FIG. 4) and inspects the quality of the product G, and is continuously conveyed. This is an apparatus for determining whether the product G is good or bad by irradiating the product G with X-rays.

検体である商品Gは、前段コンベア60によってX線検査装置10のところまで運ばれてくる。商品Gは、X線検査装置10において良品または不良品に分類される。このX線検査装置10での検査結果は、X線検査装置10の下流側に配置されている振分機構70に送られる。   The product G, which is a sample, is carried to the X-ray inspection apparatus 10 by the pre-stage conveyor 60. The product G is classified as a non-defective product or a defective product in the X-ray inspection apparatus 10. The inspection result obtained by the X-ray inspection apparatus 10 is sent to a distribution mechanism 70 disposed on the downstream side of the X-ray inspection apparatus 10.

振分機構70は、X線検査装置10において良品と判断された商品Gを、正常品を排出するコンベア80へと送り、X線検査装置10において不良品と判断された商品Gを、不良排出方向90、不良排出方向91へと振り分ける。   The distribution mechanism 70 sends the product G determined to be a non-defective product by the X-ray inspection apparatus 10 to the conveyor 80 that discharges the normal product, and discharges the product G determined to be a defective product by the X-ray inspection apparatus 10. The direction 90 and the defective discharge direction 91 are distributed.

(2)詳細構成
図2は、X線検査装置10のシールドボックス11の内部構成図である。図1および図2において、X線検査装置10は、シールドボックス11と、コンベア12と、X線照射器13と、X線ラインセンサ14と、タッチパネル機能付きのモニタ30(図1参照)と、制御コンピュータ20(図5参照)とから構成されている。
(2) Detailed Configuration FIG. 2 is an internal configuration diagram of the shield box 11 of the X-ray inspection apparatus 10. 1 and 2, the X-ray inspection apparatus 10 includes a shield box 11, a conveyor 12, an X-ray irradiator 13, an X-ray line sensor 14, and a monitor 30 with a touch panel function (see FIG. 1). It is comprised from the control computer 20 (refer FIG. 5).

(2−1)シールドボックス11
シールドボックス11の両側面には、商品Gをシールドボックス11の内外に搬入出させるための開口11aが形成されている。開口11aは、シールドボックス11の外部へのX線の漏洩を防止するために、遮蔽ノレン(図示せず)により塞がれている。この遮蔽ノレンは、鉛を含むゴムから成形されており、商品Gが開口11aを通過する際に商品Gによって押しのけられるようになっている。
(2-1) Shield box 11
On both side surfaces of the shield box 11, openings 11 a for allowing the product G to be carried in and out of the shield box 11 are formed. The opening 11 a is closed by a shielding noren (not shown) in order to prevent leakage of X-rays to the outside of the shield box 11. This shielding nolen is formed from rubber containing lead and is pushed away by the product G when the product G passes through the opening 11a.

そして、シールドボックス11内には、コンベア12、X線照射器13、X線ラインセンサ14、制御コンピュータ20等が収容されている。また、シールドボックス11の正面上部には、モニタ30の他、キーの差し込み口および電源スイッチ等が配置されている。   In the shield box 11, a conveyor 12, an X-ray irradiator 13, an X-ray line sensor 14, a control computer 20 and the like are accommodated. In addition to the monitor 30, a key insertion slot, a power switch, and the like are disposed on the front upper portion of the shield box 11.

(2−2)コンベア12
コンベア12は、シールドボックス11内において商品Gを搬送するものであり、図1に示すように、シールドボックス11の両側面に形成された開口11aを貫通するように配置されている。そして、コンベア12は、コンベアモータ12a(図5参照)によって駆動される駆動ローラによって無端状のベルトを回転させながら、ベルト上に載置された商品Gを搬送する。
(2-2) Conveyor 12
The conveyor 12 conveys the commodity G in the shield box 11 and is disposed so as to penetrate through the openings 11a formed on both side surfaces of the shield box 11 as shown in FIG. And the conveyor 12 conveys the goods G mounted on the belt, rotating an endless belt with the drive roller driven by the conveyor motor 12a (refer FIG. 5).

コンベア12による搬送速度は、オペレータが入力した設定速度になるように、制御コンピュータ20によるコンベアモータ12aのインバータ制御によって細かく制御される。また、コンベアモータ12aには、コンベア12による搬送速度を検出して制御コンピュータ20に送るエンコーダ12b(図5参照)が装着されている。   The conveyance speed by the conveyor 12 is finely controlled by the inverter control of the conveyor motor 12a by the control computer 20 so as to be the set speed input by the operator. The conveyor motor 12a is equipped with an encoder 12b (see FIG. 5) that detects the conveying speed of the conveyor 12 and sends it to the control computer 20.

(2−3)X線照射器13
X線照射器13は、図2に示すように、コンベア12の上方に配置されており、下方のX線ラインセンサ14に向けて扇状の照射範囲XにX線を照射する。
(2-3) X-ray irradiator 13
As shown in FIG. 2, the X-ray irradiator 13 is disposed above the conveyor 12 and irradiates the fan-shaped irradiation range X with X-rays toward the lower X-ray line sensor 14.

(2−4)X線ラインセンサ14
図3は、X線検査の原理を示す模式図である。図3において、X線ラインセンサ14は、コンベア12の下方に配置されており、主として多数の画素センサ14aから構成されている。これらの画素センサ14aは、コンベア12による搬送方向に直交する向きに一直線に水平配置されている。また、各画素センサ14aは、商品Gやコンベア12を透過したX線を検出し、X線透視像信号を出力する。X線透視像信号は、X線の明るさ(濃度)を示すものである。
(2-4) X-ray line sensor 14
FIG. 3 is a schematic diagram showing the principle of X-ray inspection. In FIG. 3, the X-ray line sensor 14 is disposed below the conveyor 12, and mainly includes a large number of pixel sensors 14a. These pixel sensors 14 a are horizontally arranged in a straight line in a direction orthogonal to the conveying direction by the conveyor 12. Each pixel sensor 14a detects X-rays that have passed through the product G or the conveyor 12, and outputs an X-ray fluoroscopic image signal. The X-ray fluoroscopic image signal indicates the brightness (density) of X-rays.

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

(2−6)制御コンピュータ20
図5は、制御コンピュータ20のブロック構成図である。図5において、制御コンピュータ20は、CPU(中央演算処理装置)21、ROM(リードオンリーメモリ)22、RAM(ランダムアクセスメモリ)23、HDD(ハードディスク)25および記憶メディア等を挿入するためのドライブ24を搭載している。
(2-6) Control computer 20
FIG. 5 is a block diagram of the control computer 20. In FIG. 5, the control computer 20 includes a CPU (Central Processing Unit) 21, ROM (Read Only Memory) 22, RAM (Random Access Memory) 23, HDD (Hard Disk) 25, and a drive 24 for inserting a storage medium and the like. It is equipped with.

CPU21では、ROM22やHDD25に格納されている各種プログラムが実行される。HDD25には、検査パラメータや検査結果が保存蓄積される。検査パラメータについては、モニタ30のタッチパネル機能を使ったオペレータからの入力によって設定および変更が可能である。オペレータは、これらのデータがHDD25だけでなくドライブ24に挿入された記憶メディアにも保存蓄積されるように設定することができる。   In the CPU 21, various programs stored in the ROM 22 and the HDD 25 are executed. The HDD 25 stores and accumulates inspection parameters and inspection results. The inspection parameters can be set and changed by input from the operator using the touch panel function of the monitor 30. The operator can set so that these data are stored and accumulated not only in the HDD 25 but also in a storage medium inserted in the drive 24.

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

そして、制御コンピュータ20の各部21〜25は、アドレスバスやデータバス等のバスラインを介して相互に接続されている。   And each part 21-25 of the control computer 20 is mutually connected via bus lines, such as an address bus and a data bus.

また、制御コンピュータ20は、コンベアモータ12a、エンコーダ12b、光電センサ15、X線照射器13、X線ラインセンサ14等に接続されている。光電センサ15は、検体である商品Gが扇状のX線の照射範囲X(図2参照)を通過するタイミングを検知するための同期センサであり、主として、コンベア12を挟んで配置される一対の投光器および受光器から構成されている。   The control computer 20 is connected to a conveyor motor 12a, an encoder 12b, a photoelectric sensor 15, an X-ray irradiator 13, an X-ray line sensor 14, and the like. The photoelectric sensor 15 is a synchronous sensor for detecting the timing when the product G as a specimen passes through the fan-shaped X-ray irradiation range X (see FIG. 2), and is mainly a pair of sensors arranged with the conveyor 12 interposed therebetween. It consists of a projector and a light receiver.

(3)CPU21の構成
制御コンピュータ20のHDD25には、画像生成モジュール、領域特定モジュール、重量推定モジュール、重量診断モジュール、異物検査モジュール、間隔検出モジュール、噛み込み推定モジュールおよび総合診断モジュールを含む検査プログラムが格納されている。そして、制御コンピュータ20のCPU21は、これらのプログラムモジュールを読み出して実行することにより、画像生成部21a、領域特定部21b、重量推定部21c、重量診断部21d、異物検査部21e、間隔検出部21f、噛み込み推定部21gおよび総合診断部21h(図5参照)として動作する。
(3) Configuration of CPU 21 The HDD 25 of the control computer 20 includes an image generation module, a region specifying module, a weight estimation module, a weight diagnosis module, a foreign substance inspection module, a distance detection module, a bite estimation module, and a comprehensive diagnosis module. Is stored. Then, the CPU 21 of the control computer 20 reads out and executes these program modules, whereby an image generation unit 21a, a region specifying unit 21b, a weight estimation unit 21c, a weight diagnosis unit 21d, a foreign matter inspection unit 21e, and an interval detection unit 21f. The biting estimation unit 21g and the comprehensive diagnosis unit 21h (see FIG. 5) operate.

(3−1)画像生成部21a
画像生成部21aは、X線ラインセンサ14から出力されるX線透視像信号に基づいて、商品GのX線透過画像を生成する。画像生成部21aは、商品Gが扇状のX線の照射範囲X(図2参照)を通過するときにX線ラインセンサ14の各画素センサ14aから出力されるX線透視像信号を細かい時間間隔で取得し、取得したX線透視像信号に基づいて商品GのX線透過画像を生成する。なお、商品Gが扇状のX線の照射範囲Xを通過するタイミングは、光電センサ15からの信号により判断される。すなわち、画像生成部21aは、X線ラインセンサ14の各画素センサ14aから得られるX線の明るさに関する細かい時間間隔毎のデータをマトリクス状に時系列につなぎ合わせることにより、商品Gを写すX線透過画像を生成する。
(3-1) Image generation unit 21a
The image generation unit 21 a generates an X-ray transmission image of the product G based on the X-ray fluoroscopic image signal output from the X-ray line sensor 14. The image generation unit 21a uses the X-ray fluoroscopic image signal output from each pixel sensor 14a of the X-ray line sensor 14 when the product G passes the fan-shaped X-ray irradiation range X (see FIG. 2) at fine time intervals. And an X-ray transmission image of the product G is generated based on the acquired X-ray fluoroscopic image signal. The timing at which the product G passes through the fan-shaped X-ray irradiation range X is determined by a signal from the photoelectric sensor 15. In other words, the image generation unit 21a copies the product G by connecting the data for each fine time interval related to the X-ray brightness obtained from each pixel sensor 14a of the X-ray line sensor 14 in a matrix in time series. A line transmission image is generated.

(3−2)領域特定部21b
領域特定部21bは、画像生成部21aにより生成された商品Gを写すX線透過画像から、商品領域を特定する。領域特定部21bは、多数の画素センサ14aのそれぞれから同様のタイミングで出力された画素センサ14aのX線の濃度値の平均値を算出し、算出した値をそのタイミングにおけるX線の濃度値の代表値とする。そして、当該代表値が所定の範囲内に収まっているか否かをチェック(真偽判定)する。領域特定部21bは、画像生成部21aにより生成されたX線透過画像Pと、真偽判定処理の結果とを重ね合わせ、狙いの範囲に対応する領域を商品領域とする。
(3-2) Area specifying unit 21b
The area specifying unit 21b specifies a product area from an X-ray transmission image that shows the product G generated by the image generation unit 21a. The area specifying unit 21b calculates the average value of the X-ray density values of the pixel sensor 14a output from each of the multiple pixel sensors 14a at the same timing, and uses the calculated value as the X-ray density value at that timing. It is a representative value. Then, it is checked (true / false determination) whether or not the representative value is within a predetermined range. The region specifying unit 21b superimposes the X-ray transmission image P generated by the image generation unit 21a and the result of the authenticity determination process, and sets a region corresponding to the target range as a product region.

(3−3)重量推定部21c
重量推定部21cは、領域特定部21bにより特定された商品領域に対して画像処理を施すことにより、商品Gの重量値を推定する。当該重量推定処理は、X線透過画像P上においてはX線の照射方向に厚みのある物質ほど暗く写るという性質を利用し、以下の原理に基づいて行われる。
(3-3) Weight estimation unit 21c
The weight estimation unit 21c estimates the weight value of the product G by performing image processing on the product region specified by the region specifying unit 21b. The weight estimation process is performed on the X-ray transmission image P based on the following principle using the property that a thicker substance appears darker in the X-ray irradiation direction.

X線透過画像P上の厚さtの物質を写す画素の明るさIは、物質の存在しない領域に含まれる画素の明るさをI0とした場合、以下の式(1)によって表される。
I/I0=e-μt ・・・(1)
The brightness I of a pixel that captures a substance having a thickness t on the X-ray transmission image P is expressed by the following formula (1), where I 0 is the brightness of a pixel included in a region where no substance exists. .
I / I 0 = e μ t (1)

ここで、μは、X線のエネルギーと物質の種類とに応じて定まる線吸収係数である。式(1)を物質の厚さtについて解くと、以下の式(2)のようになる。
t=−1/μ×ln(I/I0) ・・・(2)
Here, μ is a linear absorption coefficient determined according to the energy of X-rays and the type of substance. When equation (1) is solved for the thickness t of the substance, the following equation (2) is obtained.
t = −1 / μ × ln (I / I 0 ) (2)

また、内容物の微小部位の重量値は、当該微小部位の厚さに比例する。したがって、明るさIの画素の写す内容物の微小部位の重量値mは、適当な定数αを用いて、以下の式(3)によって近似的に算出される。
m=−αln(I/I0) ・・・(3)
The weight value of the minute part of the content is proportional to the thickness of the minute part. Therefore, the weight value m of the minute part of the content captured by the pixel of brightness I is approximately calculated by the following equation (3) using an appropriate constant α.
m = −αln (I / I 0 ) (3)

重量推定部21cは、商品Gを構成する全ての画素に対応する重量値mを算出して足し合わせることにより、商品G全体の重量値を推定する。   The weight estimation unit 21c estimates the weight value of the entire product G by calculating and adding the weight values m corresponding to all the pixels constituting the product G.

(3−4)重量診断部21d
重量診断部21dは、商品Gの内容物の重量値が所定の範囲内に収まっているか否かをチェックする。そして、重量値が当該範囲内に収まっている場合には、その商品Gを正常と診断し、当該範囲内に収まっていない場合には、その商品Gを重量異常と診断する。
(3-4) Weight diagnosis unit 21d
The weight diagnosis unit 21d checks whether or not the weight value of the contents of the product G is within a predetermined range. When the weight value is within the range, the product G is diagnosed as normal, and when the weight value is not within the range, the product G is diagnosed as being abnormal in weight.

なお、重量診断部21dによる処理は、重量推定部21cによる処理に遅れて並列に実行される。   The processing by the weight diagnosis unit 21d is executed in parallel with a delay from the processing by the weight estimation unit 21c.

(3−5)異物検査部21e
異物検査部21eは、画像生成部21aにより生成された商品GのX線透過画像Pに対して2値化処理を施すことにより、商品Gに含まれる異物を検出する。より具体的には、図3に示すように、商品GのX線透過画像P上に予め設定した閾値よりも暗く現れる領域が存在する場合には、その商品Gに異物が混入していると判断し、その商品Gを異常と判断する。
(3-5) Foreign matter inspection unit 21e
The foreign substance inspection unit 21e detects a foreign substance contained in the product G by performing a binarization process on the X-ray transmission image P of the product G generated by the image generation unit 21a. More specifically, as shown in FIG. 3, when there is a region that appears darker than a preset threshold on the X-ray transmission image P of the product G, foreign matter is mixed in the product G. The product G is determined to be abnormal.

(3−6)間隔検出部21f
間隔検出部21fは、2値化処理によって特定された、連包品の隣接する個包装の内容物に対して、内容物同士の間隔を検出する。検出の具体的方法は、後段で説明する。
(3-6) Interval detection unit 21f
The space | interval detection part 21f detects the space | interval of the contents with respect to the content of the individual packaging which the packaged goods adjacent specified by the binarization process. A specific method of detection will be described later.

(3−7)噛み込み推定部21g
噛み込み推定部21gは、間隔検出部21fで検出された内容物同士の間隔から、内容物がシール部分に噛み込まれているか否かを推定する。推定の具体的方法は、後段で説明する。
(3-7) Biting estimation unit 21g
The biting estimation unit 21g estimates whether or not the contents are bitten in the seal portion from the interval between the contents detected by the interval detection unit 21f. A specific method of estimation will be described later.

(3−8)総合診断部21h
重量診断部21d、異物検査部21eおよび噛み込み推定部21gは、商品Gを異常と判断すると、直ちにその旨を示す信号を総合診断部21hに送る。総合診断部21hは、重量診断部21dから当該信号を受け取ると、商品Gを不良品であると診断するとともに、直ちに他の検査を終了させる。
(3-8) General diagnosis unit 21h
When the weight diagnosis unit 21d, the foreign matter inspection unit 21e, and the bite estimation unit 21g determine that the product G is abnormal, the weight diagnosis unit 21d immediately sends a signal indicating that to the general diagnosis unit 21h. When the comprehensive diagnosis unit 21h receives the signal from the weight diagnosis unit 21d, the comprehensive diagnosis unit 21h diagnoses the product G as a defective product and immediately terminates another inspection.

また、異物検査部21eから異常信号を受け取った場合には、商品Gを不良品であると診断するとともに、直ちに他の検査を終了させる。   When an abnormal signal is received from the foreign matter inspection unit 21e, the product G is diagnosed as a defective product and other inspections are immediately terminated.

さらに、噛み込み推定部21gから異常信号を受け取った場合には、商品Gを不良品であると診断するとともに、直ちに他の検査を終了させる。   Further, when an abnormal signal is received from the bite estimation unit 21g, the product G is diagnosed as being defective and other inspections are immediately terminated.

異物が検出されただけの商品Gであっても、重量異常が検出されただけの商品Gであっても、噛み込みが検出されただけの商品Gであっても、出荷できないのであるから、他の検査結果にかかわらず当該商品Gを不良品と結論付けることができるからである。また、総合診断部21hは、重量診断部21d、異物検査部21eおよび噛み込み推定部21gから異常が検出されなかった旨を示す信号を受け取った場合には、商品Gを良品である診断する。そして、総合診断部21hは、診断結果を振分機構70へ送る。   Even if the product G has only foreign matter detected, the product G has only detected a weight abnormality, or the product G has only been detected to bite, it cannot be shipped. This is because the product G can be concluded as a defective product regardless of other inspection results. Further, when the comprehensive diagnosis unit 21h receives a signal indicating that no abnormality is detected from the weight diagnosis unit 21d, the foreign matter inspection unit 21e, and the bite estimation unit 21g, the general diagnosis unit 21h diagnoses the product G as a non-defective product. Then, the comprehensive diagnosis unit 21 h sends the diagnosis result to the distribution mechanism 70.

(4)制御コンピュータ20による商品検査
(4−1)包材がX線透過画像Pに写る商品の場合
図6(a)は、複数の個包装が連なった商品である連包品Gの平面図である。図6(a)において、連包品Gは、4個の袋M1,M2,M3,M4が順に連なったものであり、袋M1〜M4は、互いに同じ形状となるように製造されている。連包品Gは、コンベア12によって袋M1を先頭とし、袋M4を最後尾として搬送される。各袋M1〜M4のコンベア12による搬送方向の両端には、シール部分S1が形成されている。すなわち、連包品Gは、全体としては1つの細長い袋であり、その長手方向に所定の間隔で施されたシール部分S1によって各袋M1〜M4に対応する複数の空間が形成されたものである。そして、袋M1〜M4の内部空間には、内容物が詰められている。また、先行する袋の後方のシール部分S1とその後続の袋の前方のシール部分S1とは一体的に熱シールされて形成されたものであり、その中央には両袋を切り離すことを可能にする短手方向に走るミシン目が形成されている。
(4) Product inspection by control computer 20 (4-1) Case where packaging material is shown in X-ray transmission image P FIG. 6A is a plan view of a continuous product G that is a product in which a plurality of individual packages are connected. FIG. In FIG. 6 (a), the continuous package G is formed by sequentially connecting four bags M1, M2, M3, and M4, and the bags M1 to M4 are manufactured to have the same shape. The continuous goods G are conveyed by the conveyor 12 with the bag M1 as the head and the bag M4 as the tail. Seal portions S1 are formed at both ends of each bag M1 to M4 in the conveying direction by the conveyor 12. That is, the continuous product G is a single elongated bag as a whole, and a plurality of spaces corresponding to the bags M1 to M4 are formed by seal portions S1 provided at predetermined intervals in the longitudinal direction. is there. And the contents are stuffed in the internal space of the bags M1-M4. Further, the seal part S1 behind the preceding bag and the seal part S1 ahead of the succeeding bag are integrally heat-sealed, and both bags can be separated at the center. A perforation running in the short direction is formed.

図6(b)は、図6(a)に示す連包品GのX線透過画像Pを示している。X線画像P上において、最も暗く現れている領域A1〜A4は、それぞれ袋M1〜M4内の内容物を示しており、領域B1はシール部分S1を示している。最も明るく現れている領域Dは、連包品Gの背景を示しており、領域B1よりも明るく領域Dよりも暗く現れている領域Eは、袋M1〜M4の内容物の入っていない隙間部分を示している。なお、ともに同じ枚数の包材が重なり合った部位を写しているのにもかかわらず、シール部分S1に対応する領域B1がシールされていない部位に対応する領域EよりもX線画像P上において暗く写るのは、シール部分S1のほうがシールされていない部位よりも熱収縮によって密度が高くなっているからである。   FIG. 6B shows an X-ray transmission image P of the continuous package G shown in FIG. On the X-ray image P, the darkest areas A1 to A4 indicate the contents in the bags M1 to M4, respectively, and the area B1 indicates the seal portion S1. The brightest region D shows the background of the continuous package G, and the region E that appears brighter than the region B1 and darker than the region D is a gap portion that does not contain the contents of the bags M1 to M4. Is shown. Note that the region B1 corresponding to the seal portion S1 is darker on the X-ray image P than the region E corresponding to the unsealed portion, even though the same number of portions of the packaging material overlap each other. The reason is that the density of the seal portion S1 is higher due to thermal contraction than the portion that is not sealed.

領域特定部21bによる真偽判定処理において用いられる代表値の範囲としては、シール部分S1が照射領域Xを通過したときの代表値のとり得る範囲が設定される。内容物は連包品Gのシール部分と重なることはないと考えれば、シール部分S1を透過したX線の減衰の程度は概ね一定となると予想される。   As the range of the representative value used in the authenticity determination process by the region specifying unit 21b, a range that can be taken by the representative value when the seal portion S1 passes the irradiation region X is set. Assuming that the contents do not overlap with the seal portion of the continuous package G, the degree of attenuation of X-rays transmitted through the seal portion S1 is expected to be substantially constant.

しかし、万が一、内容物が連包品Gのシール部分と重なった場合は、そのシール部分S1を透過したX線の減衰量は、内容物は連包品Gのシール部分S1と重なった場合に比べて大きくなると予想される。   However, in the unlikely event that the contents overlap with the seal part of the continuous package G, the attenuation amount of the X-rays transmitted through the seal part S1 is the same as when the contents overlap with the seal part S1 of the continuous package G. Expected to be larger.

領域特定部21bは、こうした代表値の決定処理と真偽判定処理とを、1組の濃度値のデータセット(同様のタイミングで出力された画素センサ14aのX線透視像信号)を受け取るたびに繰り返す。   The area specifying unit 21b performs such representative value determination processing and authenticity determination processing each time a data set of density values (X-ray fluoroscopic image signal of the pixel sensor 14a output at the same timing) is received. repeat.

図6(c)は、X線の照射範囲Xを袋M1〜M4が通過したときのX線透視像信号に基づいて算出された代表値の時系列データを示している。また、図6(d)は、図6(c)の真偽判定処理の結果を示す図である。   FIG. 6C shows representative time-series data calculated based on X-ray fluoroscopic image signals when the bags M1 to M4 pass through the X-ray irradiation range X. FIG. 6D is a diagram illustrating the result of the authenticity determination process in FIG.

X線の濃度値(明るさ)の代表値が図6(c)に示す所定の範囲Y内に収まっているか否かをチェックし、範囲Y内に収まっている場合を「TRUE」とし、範囲Y内に収まっていない場合を「FALSE」とする。そして、「TRUE」状態がシール部分の幅に対応する所定の長さだけ連続した場合に、シール部分S1の存在を検出する。   It is checked whether or not the representative value of the X-ray density value (brightness) is within the predetermined range Y shown in FIG. 6 (c). The case where it is not within Y is set to “FALSE”. Then, when the “TRUE” state continues for a predetermined length corresponding to the width of the seal portion, the presence of the seal portion S1 is detected.

図6(b)の場合、個包装領域C3とC4との間のシール部分S1に個包装領域C3に収納されるべき内容物が噛み込んでいるため、代表値が範囲Y内に収まらず、「FALSE」となる。この場合、「FALSE」状態が個包装領域の幅に対応する所定の長さを超えて連続しているので、内容物のシール部分S1への噛み込みの存在が検出される。   In the case of FIG. 6B, since the contents to be stored in the individual packaging region C3 are bitten into the seal portion S1 between the individual packaging regions C3 and C4, the representative value does not fall within the range Y. “FALSE”. In this case, since the “FALSE” state continues beyond a predetermined length corresponding to the width of the individual packaging region, the presence of biting of the contents into the seal portion S1 is detected.

(4−2)包材がX線透過画像Pに写り難い商品の場合
X線透過画像P中に包材の輪郭が写らない、又は薄く写る程度であって、その輪郭を推定できるほどの安定した画像データを取得できないような包材、例えば、包材の厚さが非常に薄いもの(但し、アルミ包材やアルミ蒸着されたものは除く)では、シール部分S1を推定することができない。なぜなら、X線透過画像Pに包材とシール部分S1との境界が分かるほどの明るさの濃度差がなく、包材のX線の濃度値(明るさ)の代表値が図6(c)に示すような所定の範囲Y内に収まっているか否かをチェックしようにも、範囲が極めて狭いために真偽判定処理ができないからである。
(4-2) In the case where the packaging material is difficult to appear in the X-ray transmission image P. The outline of the packaging material does not appear in the X-ray transmission image P or is thin enough that the contour can be estimated. In the case of a packaging material in which the obtained image data cannot be obtained, for example, a packaging material having a very thin thickness (except for an aluminum packaging material or an aluminum-deposited material), the seal portion S1 cannot be estimated. This is because the X-ray transmission image P does not have a brightness density difference so that the boundary between the packaging material and the seal portion S1 can be seen, and the representative value of the X-ray density value (brightness) of the packaging material is shown in FIG. This is because even if it is checked whether or not it falls within the predetermined range Y as shown in FIG.

以下に、このような場合の内容物のシール部分S1への噛み込みの検出方法について図面を参照しながら説明する。   Hereinafter, a method for detecting the biting of the contents into the seal portion S1 in such a case will be described with reference to the drawings.

図7(a)は、厚さが非常に薄い包材による複数の個包装が連なった連包品Gの平面図である。図7(a)において、連包品Gは、4個の袋N1,N2,N3,N4が順に連なったものであり、袋N1〜N4は互いに同じ形状となるように製造されている。連包品Gは、コンベア12によって袋N1を先頭とし、袋N4を最後尾として搬送される。各袋N1〜N4のコンベア12による搬送方向の両端には、シール部分S1が形成されている。すなわち、連包品Gは、全体としては1つの袋であり、その長手方向に所定の間隔で施されたシール部分S1によって各袋N1〜N4に対応する複数の空間が形成されたものである。そして、袋N1〜N4の内部空間には、環状の縁を持つゴム製品が内容物として詰められている。また、先行する袋の後方のシール部分S1とその後続の袋の前方のシール部分S1とは一体的に熱シールされて形成されたものであり、その中央には両袋を切り離すことを可能にする短手方向に走るミシン目P1が形成されている。   FIG. 7A is a plan view of a continuous packaged product G in which a plurality of individual packages of packaging materials having a very thin thickness are connected. In Fig.7 (a), the continuous goods G are four bags N1, N2, N3, N4 connected in order, and the bags N1-N4 are manufactured so that it may become the mutually same shape. The continuous goods G are conveyed by the conveyor 12 with the bag N1 as the head and the bag N4 as the tail. Seal portions S1 are formed at both ends of the bags N1 to N4 in the conveying direction by the conveyor 12. That is, the continuous product G is a single bag as a whole, and a plurality of spaces corresponding to the bags N1 to N4 are formed by seal portions S1 provided at predetermined intervals in the longitudinal direction. . And the rubber product which has an annular edge is stuffed in the internal space of bag N1-N4 as a content. Further, the seal part S1 behind the preceding bag and the seal part S1 ahead of the succeeding bag are integrally heat-sealed, and both bags can be separated at the center. A perforation P1 that runs in the short direction is formed.

図7(b)は、図7(a)に示す連包品GのX線透過画像Pを示している。X線画像P上において、最も暗く現れている領域A1〜A4は、それぞれ袋N1〜N4内の内容物を示している。シール部分S1に相当する領域は、X線透過画像Pからは判別できない。なお、図7(b)や図7(c)における二点鎖線は、袋N1〜N4の外縁およびシール部分S1を示す仮想線であり、X線透過画像Pから判別できる線ではない。   FIG. 7B shows an X-ray transmission image P of the continuous package G shown in FIG. On the X-ray image P, areas A1 to A4 appearing darkest indicate the contents in the bags N1 to N4, respectively. The region corresponding to the seal portion S1 cannot be determined from the X-ray transmission image P. 7B and 7C are virtual lines indicating the outer edges of the bags N1 to N4 and the seal portion S1, and are not lines that can be distinguished from the X-ray transmission image P.

領域特定部21bは、画像生成部21aにより生成されたX線透過画像Pに対して2値化処理を施し、X線透過画像Pから内容物の環状部分を示す領域R1〜R4を特定する。   The region specifying unit 21b performs binarization processing on the X-ray transmission image P generated by the image generation unit 21a, and specifies regions R1 to R4 indicating the annular portion of the content from the X-ray transmission image P.

2値化処理では、X線透過画像Pを構成する各画素に対応するX線の濃度値が所定の範囲内に収まっているか否かがチェックされる。そして、そのチェック結果に応じて、各画素に「0」又は「1」のどちらかの値が割り当てられる。   In the binarization process, it is checked whether or not the X-ray density value corresponding to each pixel constituting the X-ray transmission image P is within a predetermined range. Then, according to the check result, either “0” or “1” is assigned to each pixel.

図7(c)は、図7(b)に示すX線透過画像Pに対して2値化処理を施した後の2値化画像Qである。図7(c)において、2値化画像Q上において黒く現れている領域R1〜R4は、内容物の環状部分に対応する領域である。   FIG. 7C is a binarized image Q after the binarization process is performed on the X-ray transmission image P shown in FIG. In FIG. 7C, regions R1 to R4 appearing black on the binarized image Q are regions corresponding to the annular portion of the contents.

間隔検出部21fは、領域R1〜R4の隣接する領域同士の最短距離Dを検出する。噛み込み推定部21gは、間隔検出部21fで検出された最短距離Dから、内容物がシール部分S1に噛み込まれているか否かを推定する。以下、推定方法を、図面を用いて説明する。   The space | interval detection part 21f detects the shortest distance D of the area | regions adjacent to area | region R1-R4. The biting estimation unit 21g estimates whether or not the contents are bitten in the seal portion S1 from the shortest distance D detected by the interval detection unit 21f. Hereinafter, the estimation method will be described with reference to the drawings.

図8は、内容物が収納領域の真ん中に位置する第1状態の2値化画像Qである。図8において、領域R1〜R4は、内容物の環状部分を示している。領域R1から領域R4の隣接するもの同士の最短距離DはTmidである。   FIG. 8 is a binarized image Q in the first state in which the contents are located in the middle of the storage area. In FIG. 8, regions R <b> 1 to R <b> 4 indicate an annular portion of the contents. The shortest distance D between adjacent regions R1 to R4 is Tmid.

図9は、2つの内容物がそれぞれ同一のシール部分S1の境界線まで達している第2状態の2値化画像Qである。図9において、領域R2と領域R3とはシール部分S1に噛み込まれていない状態で最も近接しているので、領域R2と領域R3との最短距離Dは最小であり、これをTminとする。   FIG. 9 is a binarized image Q in the second state in which two contents reach the boundary line of the same seal portion S1. In FIG. 9, since the region R2 and the region R3 are closest to each other without being engaged with the seal portion S1, the shortest distance D between the region R2 and the region R3 is the shortest, and this is Tmin.

例えば、第2状態(図9の状態)における最短距離Dの閾値をTminとしたとき、D=Tminのときは理論的に噛み込みがないのであるから、D<Tminであるときは噛み込んでいると推定することによって、噛み込み品を誤って正常品と判断することを防止することができる。   For example, when the threshold of the shortest distance D in the second state (the state of FIG. 9) is Tmin, there is no theoretical engagement when D = Tmin. It is possible to prevent the biting product from being erroneously determined to be a normal product by estimating that the product is present.

具体的には、図11に示すように領域R2と領域R3との距離がD<Tminであるので、領域R2および領域R3に対応する内容物の少なくとも一方がシール部分S1に噛み込んでいるのは明らかである。   Specifically, as shown in FIG. 11, since the distance between the region R2 and the region R3 is D <Tmin, at least one of the contents corresponding to the region R2 and the region R3 is caught in the seal portion S1. Is clear.

X線検査装置10の間隔検出部21fは、4個の個包装から連なる連包品Gの先頭から最後の個包装に至るまでの間に3つの最短距離Dを検出することになるが、それらのうちの少なくとも1つに、D<Tminが発見されれば、その時点で噛み込み推定部21gが連包品Gを異常と判断する。このフローを、図面を用いて説明する。   The interval detector 21f of the X-ray inspection apparatus 10 detects the three shortest distances D from the beginning of the continuous package G to the last individual package from the four individual packages. If D <Tmin is found in at least one of the above, the bite estimation unit 21g determines that the packaged item G is abnormal at that time. This flow will be described with reference to the drawings.

図13は、第1実施形態に係るX線検査装置の噛み込み推定のフローチャートである。図13において、制御コンピュータ20は、ステップS1でX線透過画像Pに対して2値化処理を施した2値化画像Qを作成し、ステップS2へ進む。なお、2値化画像Qは領域特定部21bを介して作成される。   FIG. 13 is a flowchart of bite estimation in the X-ray inspection apparatus according to the first embodiment. In FIG. 13, the control computer 20 creates a binarized image Q obtained by binarizing the X-ray transmission image P in step S1, and proceeds to step S2. The binarized image Q is created via the area specifying unit 21b.

次に、制御コンピュータ20は、ステップS2でカウンタを始動またはリセットしN=0と設定して、ステップS3へ進む。   Next, the control computer 20 starts or resets the counter in step S2, sets N = 0, and proceeds to step S3.

次に、制御コンピュータ20は、ステップS3で間隔検出部21fを介して2値化画像Qから隣接する領域間の最短距離Dを検出し、ステップS4へ進む。   Next, the control computer 20 detects the shortest distance D between adjacent regions from the binarized image Q via the interval detection unit 21f in step S3, and proceeds to step S4.

次に、制御コンピュータ20は、ステップS4で噛み込み推定部21gを介して、D<Tminであるか否かを判定し、D<TminのときはステップS41へ進み、D<TminでないときはステップS5へ進む。   Next, the control computer 20 determines whether or not D <Tmin through the bite estimation unit 21g in step S4. If D <Tmin, the process proceeds to step S41, and if D <Tmin, step S41 is performed. Proceed to S5.

次に、制御コンピュータ20は、ステップS5でカウンタをN=N+1と設定し、ステップS6に進む。これは、連包品Gの一つのシール部分S1に噛み込みがなかったことを意味する。   Next, the control computer 20 sets the counter to N = N + 1 in step S5, and proceeds to step S6. This means that there was no bite in one seal portion S1 of the continuous package G.

次に、制御コンピュータ20は、ステップS6でカウンタの回数Nが3以上であるか否かを判定し、N≧3のときはステップS7へ進み、N<3のときはステップS3に戻る。   Next, in step S6, the control computer 20 determines whether or not the counter count N is 3 or more. When N ≧ 3, the process proceeds to step S7, and when N <3, the process returns to step S3.

そして、制御コンピュータ20は、ステップS7で検査終了信号が有るか否かを判定し、検査終了信号が有る場合は検査を終了し、検査終了信号がない場合はステップS1へ戻る。   In step S7, the control computer 20 determines whether or not there is an inspection end signal. If there is an inspection end signal, the control computer 20 ends the inspection. If there is no inspection end signal, the control computer 20 returns to step S1.

なお、制御コンピュータ20は、ステップS4でD<Tminと判定したときは、ステップS41で噛み込み推定部21gを介して異常信号を総合診断部21hに送り、ステップS42へ進む。   When the control computer 20 determines that D <Tmin in step S4, the control computer 20 sends an abnormal signal to the comprehensive diagnosis unit 21h via the bite estimation unit 21g in step S41, and proceeds to step S42.

そして、制御コンピュータ20は、ステップS42で総合診断部21hを介して、連包品Gを不良品であると診断するとともに、直ちに検査を終了させる。   In step S42, the control computer 20 diagnoses the continuous package G as a defective product via the comprehensive diagnosis unit 21h, and immediately terminates the inspection.

(5)特徴
X線検査装置10では、隣接する内容物同士がシール部分S1に噛み込まれていない状態で最も近接しているときの最短距離DをTminとしたとき、間隔検出部21fの検出値の閾値をTminとすることによって、D=Tminのときは理論的に噛み込みがないのであるから、D<Tminであるときは噛み込んでいると推定することによって、噛み込み品を誤って正常品と判断することを防止することができる。
(5) Features In the X-ray inspection apparatus 10, when the shortest distance D when adjacent contents are closest to each other in a state where they are not bitten by the seal portion S1, Tmin is detected. By setting the threshold value to Tmin, there is theoretically no biting when D = Tmin. Therefore, when D <Tmin, the biting product is mistakenly estimated by assuming that biting occurs. It can be determined that the product is normal.

<第2実施形態>
(1)構成
第2実施形態に係るX線検査装置110は、構成は第1実施形態に係るX線検査装置10と同じであるが、間隔検出部21fの検出値の閾値を変更している。以下、図面を用いて説明する。
Second Embodiment
(1) Configuration The X-ray inspection apparatus 110 according to the second embodiment has the same configuration as the X-ray inspection apparatus 10 according to the first embodiment, but changes the threshold value of the detection value of the interval detection unit 21f. . Hereinafter, it demonstrates using drawing.

図10は、2つの内容物がそれぞれ離反してシール部分S1の境界線まで達している第3状態の2値化画像Qである。図10において、領域R2と領域R3とはシール部分S1に噛み込まれていない状態で最も離れているので、領域R2と領域R3との最短距離Dは最大となり、これをTmaxとする。   FIG. 10 is a binarized image Q in the third state in which the two contents are separated from each other and reach the boundary line of the seal portion S1. In FIG. 10, since the region R2 and the region R3 are farthest apart in a state where they are not engaged with the seal portion S1, the shortest distance D between the region R2 and the region R3 is the maximum, and this is Tmax.

例えば、第3状態(図10の状態)における最短距離の閾値をTmaxとしたとき、D=Tmaxのときは理論的に噛み込みがないのであるから、D>Tmaxであるときは噛み込んでいると推定することによって、噛み込み品を誤って正常品と判断することを防止することができる。   For example, when the threshold of the shortest distance in the third state (the state of FIG. 10) is Tmax, there is no bite when D = Tmax, so bite when D> Tmax. Therefore, it is possible to prevent the biting product from being erroneously determined as a normal product.

具体的には、図12に示すように領域R2と領域R3との距離がD>Tmaxであるので、領域R2および領域R3に対応する内容物の少なくとも一方がシール部分S1に噛み込んでいるのは明らかである。   Specifically, as shown in FIG. 12, since the distance between the region R2 and the region R3 is D> Tmax, at least one of the contents corresponding to the region R2 and the region R3 is in the seal portion S1. Is clear.

X線検査装置10の間隔検出部21fが、4個の個包装から連なる連包品Gの先頭から最後の個包装に至るまでの間に3つの最短距離Dを検出することになるが、それらのうちの少なくとも1つに、D>Tmaxが発見されれば、その時点で噛み込み推定部21gが連包品Gを異常と判断する。このフローを、図面を用いて説明する。   The interval detector 21f of the X-ray inspection apparatus 10 detects the three shortest distances D from the beginning of the continuous package G to the last individual package from the four individual packages. If D> Tmax is found in at least one of the above, the bite estimation unit 21g determines that the packaged item G is abnormal at that time. This flow will be described with reference to the drawings.

図14は、第2実施形態に係るX線検査装置110の噛み込み推定のフローチャートである。図14において、制御コンピュータ20は、ステップS11でX線透過画像Pに対して2値化処理を施した2値化画像Qを作成し、ステップS12へ進む。なお、2値化画像Qは領域特定部21bを介して作成される。   FIG. 14 is a flowchart of bite estimation in the X-ray inspection apparatus 110 according to the second embodiment. In FIG. 14, the control computer 20 creates a binarized image Q obtained by binarizing the X-ray transmission image P in step S11, and proceeds to step S12. The binarized image Q is created via the area specifying unit 21b.

次に、制御コンピュータ20は、ステップS12でカウンタを始動またはリセットしN=0と設定して、ステップS13へ進む。   Next, the control computer 20 starts or resets the counter in step S12, sets N = 0, and proceeds to step S13.

次に、制御コンピュータ20は、ステップS13で間隔検出部21fを介して2値化画像Qから隣接する領域間の最短距離Dを検出し、ステップS14へ進む。   Next, the control computer 20 detects the shortest distance D between adjacent regions from the binarized image Q via the interval detection unit 21f in step S13, and proceeds to step S14.

次に、制御コンピュータ20は、ステップS14で噛み込み推定部21gを介して、D>Tmaxであるか否かを判定し、D>TmaxのときはステップS141へ進み、D>TmaxでないときはステップS15へ進む。   Next, the control computer 20 determines whether or not D> Tmax through the bite estimation unit 21g in step S14. If D> Tmax, the process proceeds to step S141, and if D> Tmax is not satisfied, step S141 is performed. Proceed to S15.

次に、制御コンピュータ20は、ステップS15でカウンタをN=N+1と設定し、ステップS16に進む。これは、連包品Gの一つのシール部分S1に噛み込みがなかったことを意味する。   Next, the control computer 20 sets the counter to N = N + 1 in step S15, and proceeds to step S16. This means that there was no bite in one seal portion S1 of the continuous package G.

次に、制御コンピュータ20は、ステップS16でカウンタの回数Nが3以上であるか否かを判定し、N≧3のときはステップS17へ進み、N<3のときはステップS13に戻る。   Next, in step S16, the control computer 20 determines whether or not the counter count N is 3 or more. If N ≧ 3, the process proceeds to step S17, and if N <3, the process returns to step S13.

そして、制御コンピュータ20は、ステップS17で検査終了信号が有るか否かを判定し、検査終了信号が有る場合は検査を終了し、検査終了信号がない場合はステップS1へ戻る。   Then, the control computer 20 determines whether or not there is an inspection end signal in step S17. If there is an inspection end signal, the control computer 20 ends the inspection. If there is no inspection end signal, the control computer 20 returns to step S1.

なお、制御コンピュータ20は、ステップS14でD>Tmaxと判定したときは、ステップS141で噛み込み推定部21gを介して異常信号を総合診断部21hに送り、ステップS142へ進む。   When determining that D> Tmax in step S14, the control computer 20 sends an abnormal signal to the comprehensive diagnosis unit 21h via the bite estimation unit 21g in step S141, and proceeds to step S142.

そして、制御コンピュータ20は、ステップS142で総合診断部21hを介して、連包品Gを不良品であると診断するとともに、直ちに検査を終了させる。   In step S142, the control computer 20 diagnoses the continuous package G as a defective product via the comprehensive diagnosis unit 21h, and immediately ends the inspection.

(2)特徴
X線検査装置110では、隣接する内容物同士がシール部分S1に噛み込まれていない状態で最も離れているときの最短距離DをTmaxとしたとき、間隔検出部21fの検出値の閾値をTmaxとすることによって、D=Tmaxのときは理論的に噛み込みがないのであるから、D>Tmaxであるときは噛み込んでいると推定することによって、噛み込み品を誤って正常品と判断することを防止することができる。
(2) Features In the X-ray inspection apparatus 110, when the shortest distance D when the adjacent contents are not far from each other in a state where they are not bitten by the seal portion S1 is Tmax, the detection value of the interval detection unit 21f By setting the threshold of Tmax to Tmax, there is theoretically no biting when D = Tmax. Therefore, when D> Tmax, it is assumed that the biting has occurred and the biting product is mistakenly normal. It is possible to prevent the product from being judged as a product.

<第2実施形態の変形例>
(1)構成
X線検査装置110の間隔検出部21fが、4個の個包装から連なる連包品Gの先頭から最後の個包装に至るまでの間に3つの最短距離Dを検出することになるが、それらのうちの少なくとも1つで、D<Tmin又はD>Tmaxが発見されれば、その時点で噛み込み推定部21gが連包品Gを異常と判断してもよい。
<Modification of Second Embodiment>
(1) Configuration The interval detector 21f of the X-ray inspection apparatus 110 detects the three shortest distances D from the beginning of the continuous package G to the last individual package from the four individual packages. However, if D <Tmin or D> Tmax is found in at least one of them, the bite estimating unit 21g may determine that the continuous package G is abnormal at that time.

図15は、第2実施形態の変形例に係るX線検査装置110の噛み込み推定のフローチャートである。図15において、制御コンピュータ20は、ステップS21でX線透過画像Pに対して2値化処理を施した2値化画像Qを作成し、ステップS22へ進む。なお、2値化画像Qは領域特定部21bを介して作成される。   FIG. 15 is a flowchart of the bite estimation of the X-ray inspection apparatus 110 according to the modification of the second embodiment. In FIG. 15, the control computer 20 creates a binarized image Q obtained by binarizing the X-ray transmission image P in step S21, and proceeds to step S22. The binarized image Q is created via the area specifying unit 21b.

次に、制御コンピュータ20は、ステップS22でカウンタを始動またはリセットしN=0と設定して、ステップS23へ進む。   Next, the control computer 20 starts or resets the counter in step S22, sets N = 0, and proceeds to step S23.

次に、制御コンピュータ20は、ステップS23で間隔検出部21fを介して2値化画像Qから隣接する領域間の最短距離Dを検出し、ステップS24へ進む。   Next, in step S23, the control computer 20 detects the shortest distance D between adjacent regions from the binarized image Q via the interval detection unit 21f, and proceeds to step S24.

次に、制御コンピュータ20は、ステップS24で噛み込み推定部21gを介して、D<Tminであるか否かを判定し、D<TminのときはステップS241へ進み、D<TminでないときはステップS25へ進む。   Next, the control computer 20 determines whether or not D <Tmin through the bite estimation unit 21g in step S24. If D <Tmin, the process proceeds to step S241. If D <Tmin, step S241 is performed. Proceed to S25.

次に、制御コンピュータ20は、ステップS25で噛み込み推定部21gを介して、D>Tmaxであるか否かを判定し、D>TmaxのときはステップS241へ進み、D>TmaxでないときはステップS26へ進む。   Next, in step S25, the control computer 20 determines whether or not D> Tmax via the bite estimation unit 21g. If D> Tmax, the control computer 20 proceeds to step S241. If D> Tmax is not satisfied, step S241 is performed. Proceed to S26.

次に、制御コンピュータ20は、ステップS26でカウンタをN=N+1と設定し、ステップS27に進む。これは、連包品Gの一つのシール部分S1に噛み込みがなかったことを意味する。   Next, the control computer 20 sets the counter to N = N + 1 in step S26, and proceeds to step S27. This means that there was no bite in one seal portion S1 of the continuous package G.

次に、制御コンピュータ20は、ステップS27でカウンタの回数Nが3以上であるか否かを判定し、N≧3のときはステップS28へ進み、N<3のときはステップS23に戻る。   Next, in step S27, the control computer 20 determines whether or not the counter count N is 3 or more. When N ≧ 3, the process proceeds to step S28, and when N <3, the process returns to step S23.

そして、制御コンピュータ20は、ステップS28で検査終了信号が有るか否かを判定し、検査終了信号が有る場合は検査を終了し、検査終了信号がない場合はステップS21へ戻る。   Then, the control computer 20 determines whether or not there is an inspection end signal in step S28. If there is an inspection end signal, the control computer 20 ends the inspection. If there is no inspection end signal, the control computer 20 returns to step S21.

なお、制御コンピュータ20は、ステップS24でD<Tminと判定したとき、又はステップS25でD>Tmaxと判定したときは、ステップS241で噛み込み推定部21gを介して異常信号を総合診断部21hに送り、ステップS242へ進む。   When the control computer 20 determines that D <Tmin in step S24 or D> Tmax in step S25, the control computer 20 sends an abnormal signal to the comprehensive diagnosis unit 21h via the bite estimation unit 21g in step S241. Advance to step S242.

そして、制御コンピュータ20は、ステップS242で総合診断部21hを介して、連包品Gを不良品であると診断するとともに、直ちに検査を終了させる。   In step S242, the control computer 20 diagnoses the continuous package G as a defective product via the comprehensive diagnosis unit 21h, and immediately ends the inspection.

(2)特徴
X線検査装置110の間隔検出部21fが、複数個の個包装から連なる連包品Gの先頭から最後の個包装に至るまでの間に検出した値のうちの少なくとも1つで、D<Tmin又はD>Tmaxが発見されれば、その時点で噛み込み推定部21gが連包品Gを異常と判断する。
(2) Features At least one of the values detected by the interval detection unit 21f of the X-ray inspection apparatus 110 from the beginning of the continuous package G to the last individual package from a plurality of individual packages. If D <Tmin or D> Tmax is found, the bite estimation unit 21g determines that the packaged item G is abnormal at that time.

<第3実施形態>
(1)構成
図16は、第3実施形態に係るX線検査装置210の制御コンピュータ20のブロック構成図である。第3実施形態に係るX線検査装置210は、第1実施形態に係るX線検査装置10との対比において、間隔検出部21fおよび噛み込み推定部21gそれぞれが間隔検出部121fおよび噛み込み推定部121gに置き換えられている点で相違する。
<Third Embodiment>
(1) Configuration FIG. 16 is a block configuration diagram of the control computer 20 of the X-ray inspection apparatus 210 according to the third embodiment. In contrast to the X-ray inspection apparatus 10 according to the first embodiment, the X-ray inspection apparatus 210 according to the third embodiment includes an interval detection unit 121f and a bite estimation unit 21g, respectively. It is different in that it is replaced with 121g.

図16において、間隔検出部121fは、領域R1〜R4の隣接する領域同士の内接線の水平線に対する傾斜角度θを検出する。噛み込み推定部121gは、間隔検出部121fで検出された傾斜角度θから、内容物がシール部分S1に噛み込まれているか否かを推定する。以下、推定方法を、図面を用いて説明する。   In FIG. 16, the space | interval detection part 121f detects the inclination | tilt angle (theta) with respect to the horizontal line of the inscribed line of adjacent area | regions of area | region R1-R4. The bite estimation unit 121g estimates whether or not the contents are bitten in the seal portion S1 from the inclination angle θ detected by the interval detection unit 121f. Hereinafter, the estimation method will be described with reference to the drawings.

図17は、内容物が収納領域の真ん中に位置する第1状態の2値化画像Qである。図17において、領域R1〜R4は、内容物の環状部分を示している。領域R1から領域R4の隣接するもの同士の内接線の傾斜角度θはθmidである。   FIG. 17 is a binarized image Q in the first state in which the contents are located in the middle of the storage area. In FIG. 17, regions R <b> 1 to R <b> 4 indicate an annular portion of the contents. The inclination angle θ of the inscribed line between the adjacent regions R1 to R4 is θmid.

図18は、2つの内容物がそれぞれ同一のシール部分S1の境界線まで達している第2状態の2値化画像Qである。図18において、領域R2と領域R3とはシール部分S1に噛み込まれていない状態で最も近接しているので、領域R2と領域R3との内接線の傾斜角度θは最大であり、これをθmaxとする。   FIG. 18 is a binarized image Q in the second state in which two contents reach the boundary line of the same seal portion S1. In FIG. 18, since the region R2 and the region R3 are closest to each other when not engaged with the seal portion S1, the inclination angle θ of the inscribed line between the region R2 and the region R3 is the maximum, and this is expressed as θmax. And

例えば、第2状態(図18の状態)における傾斜角度の閾値をθmaxとしたとき、θ=θmaxのときは理論的に噛み込みがないのであるから、θ>θmaxであるときは噛み込んでいると推定することによって、噛み込み品を誤って正常品と判断することを防止することができる。   For example, when the threshold value of the inclination angle in the second state (the state of FIG. 18) is θmax, there is no theoretical engagement when θ = θmax, and therefore the engagement is performed when θ> θmax. Therefore, it is possible to prevent the biting product from being erroneously determined as a normal product.

具体的には、図20に示すように領域R2と領域R3との内接線の傾斜角度θがθ>θmaxであるので、領域R2および領域R3に対応する内容物の少なくとも一方がシール部分S1に噛み込んでいるのは明らかである。   Specifically, as shown in FIG. 20, since the inclination angle θ of the inscribed line between the region R2 and the region R3 is θ> θmax, at least one of the contents corresponding to the region R2 and the region R3 is in the seal portion S1. It is clear that they are biting.

X線検査装置210の間隔検出部121fが、4個の個包装から連なる連包品Gの先頭から最後の個包装に至るまでの間に3つの傾斜角度θを検出することになるが、それらのうちの少なくとも1つで、θ>θmaxが発見されれば、その時点で噛み込み推定部121gがX線検査装置210を停止させることになる。このフローを、図面を用いて説明する。   The interval detector 121f of the X-ray inspection apparatus 210 detects three inclination angles θ from the beginning of the continuous package G to the last individual package from four individual packages. If θ> θmax is found in at least one of the above, the bite estimation unit 121g stops the X-ray inspection apparatus 210 at that time. This flow will be described with reference to the drawings.

図22は、第3実施形態に係るX線検査装置210の噛み込み推定のフローチャートである。図22において、制御コンピュータ20は、ステップS31でX線透過画像Pに対して2値化処理を施した2値化画像Qを作成し、ステップS32へ進む。なお、2値化画像Qは領域特定部21bを介して作成される。   FIG. 22 is a flowchart of bite estimation in the X-ray inspection apparatus 210 according to the third embodiment. In FIG. 22, the control computer 20 creates a binarized image Q obtained by performing binarization processing on the X-ray transmission image P in step S31, and proceeds to step S32. The binarized image Q is created via the area specifying unit 21b.

次に、制御コンピュータ20は、ステップS32でカウンタを始動またはリセットしN=0と設定して、ステップS33へ進む。   Next, the control computer 20 starts or resets the counter in step S32, sets N = 0, and proceeds to step S33.

次に、制御コンピュータ20は、ステップS33で間隔検出部121fを介して2値化画像Qから隣接する領域間の内接線の傾斜角度θを検出し、ステップS34へ進む。   Next, in step S33, the control computer 20 detects the inclination angle θ of the inscribed line between adjacent regions from the binarized image Q via the interval detection unit 121f, and proceeds to step S34.

次に、制御コンピュータ20は、ステップS34で噛み込み推定部121gを介して、θ>θmaxであるか否かを判定し、θ>θmaxのときはステップS341へ進み、θ>θmaxでないときはステップS35へ進む。   Next, in step S34, the control computer 20 determines whether θ> θmax via the bite estimation unit 121g. If θ> θmax, the process proceeds to step S341, and if θ> θmax is not satisfied, step S341 is performed. Proceed to S35.

次に、制御コンピュータ20は、ステップS35でカウンタをN=N+1と設定し、ステップS36に進む。これは、連包品Gの最初のシール部分S1に噛み込みがなかったことを意味する。   Next, the control computer 20 sets the counter to N = N + 1 in step S35, and proceeds to step S36. This means that the first seal portion S1 of the continuous package G was not bitten.

次に、制御コンピュータ20は、ステップS36でカウンタの回数Nが3以上であるか否かを判定し、N≧3のときはステップS37へ進み、N<3のときはステップS33に戻る。   Next, in step S36, the control computer 20 determines whether or not the counter count N is 3 or more. When N ≧ 3, the process proceeds to step S37, and when N <3, the process returns to step S33.

そして、制御コンピュータ20は、ステップS37で検査終了信号が有るか否かを判定し、検査終了信号が有る場合は検査を終了し、検査終了信号がない場合はステップS31へ戻る。   In step S37, the control computer 20 determines whether or not there is an inspection end signal. If there is an inspection end signal, the control computer 20 ends the inspection. If there is no inspection end signal, the control computer 20 returns to step S31.

なお、制御コンピュータ20は、ステップS34でθ>θmaxと判定したときは、ステップS341で噛み込み推定部121gを介して異常信号を総合診断部21hに送り、ステップS342へ進む。   When the control computer 20 determines that θ> θmax in step S34, the control computer 20 sends an abnormal signal to the comprehensive diagnosis unit 21h via the bite estimation unit 121g in step S341, and proceeds to step S342.

そして、制御コンピュータ20は、ステップS342で総合診断部21hを介して、重量商品Gを不良品であると診断するとともに、直ちに噛み込み推定部121gによる検査を終了させる。   In step S342, the control computer 20 diagnoses the heavy product G as a defective product via the comprehensive diagnosis unit 21h, and immediately ends the inspection by the bite estimation unit 121g.

(2)特徴
X線検査装置210では、隣接する内容物同士がシール部分S1に噛み込まれていない状態で最も近接しているときの傾斜角度θをθmaxとしたとき、間隔検出部121fの検出値の閾値をθmaxとすることによって、θ=θmaxのときは理論的に噛み込みがないのであるから、θ>θmaxであるときは噛み込んでいると推定することによって、噛み込み品を誤って正常品と判断することを防止することができる。
(2) Features In the X-ray inspection apparatus 210, when the inclination angle θ when the adjacent contents are closest to each other in a state where they are not bitten by the seal portion S1, is set to θmax, detection by the interval detection unit 121f By setting the value threshold value to θmax, there is theoretically no biting when θ = θmax. Therefore, when θ> θmax, it is assumed that the biting has occurred, and the biting product is mistakenly It can be determined that the product is normal.

<第4実施形態>
(1)構成
第4実施形態に係るX線検査装置310は、構成は第3実施形態に係るX線検査装置210と同じであるが、間隔検出部121fの検出値の閾値を変更している。以下、図面を用いて説明する。
<Fourth embodiment>
(1) Configuration The X-ray inspection apparatus 310 according to the fourth embodiment has the same configuration as the X-ray inspection apparatus 210 according to the third embodiment, but changes the detection value threshold of the interval detection unit 121f. . Hereinafter, it demonstrates using drawing.

図19は、2つの内容物がそれぞれ離反してシール部分S1の境界線まで達している第3状態の2値化画像Qである。図19において、領域R2と領域R3とはシール部分S1に噛み込まれていない状態で最も離れているので、領域R2と領域R3との内接線の傾斜角度θは最小であり、これをθminとする。   FIG. 19 is a binarized image Q in a third state in which two contents are separated from each other and reach the boundary line of the seal portion S1. In FIG. 19, since the region R2 and the region R3 are farthest apart in a state where they are not engaged with the seal portion S1, the inclination angle θ of the inscribed line between the region R2 and the region R3 is the smallest, and this is expressed as θmin. To do.

例えば、第3状態(図19の状態)における傾斜角度の閾値をθminとしたとき、θ=θminのときは理論的に噛み込みがないのであるから、θ<θminであるときは噛み込んでいると推定することによって、噛み込み品を誤って正常品と判断することを防止することができる。   For example, when the threshold value of the tilt angle in the third state (state of FIG. 19) is θmin, there is no theoretical engagement when θ = θmin, and therefore, when θ <θmin, it is engaged. Therefore, it is possible to prevent the biting product from being erroneously determined as a normal product.

具体的には、図21に示すように領域R2と領域R3との内接線の傾斜角度θがθ<θminであるので、領域R2および領域R3に対応する内容物の少なくとも一方がシール部分S1に噛み込んでいるのは明らかである。   Specifically, as shown in FIG. 21, since the inclination angle θ of the inscribed line between the region R2 and the region R3 is θ <θmin, at least one of the contents corresponding to the region R2 and the region R3 is in the seal portion S1. It is clear that they are biting.

X線検査装置310の間隔検出部121fが、4個の個包装から連なる連包品Gの先頭から最後の個包装に至るまでの間に3つの傾斜角度θを検出することになるが、それらのうちの少なくとも1つで、θ<θminが発見されれば、その時点で噛み込み推定部121gがX線検査装置310を停止させることになる。このフローを、図面を用いて説明する。   The interval detection unit 121f of the X-ray inspection apparatus 310 detects three inclination angles θ from the beginning of the continuous package G to the last individual package from four individual packages. If θ <θmin is found in at least one of the above, the bite estimation unit 121g stops the X-ray inspection apparatus 310 at that time. This flow will be described with reference to the drawings.

図23は、第4実施形態に係るX線検査装置310の噛み込み推定のフローチャートである。図23において、制御コンピュータ20は、ステップS41でX線透過画像Pに対して2値化処理を施した2値化画像Qを作成し、ステップS42へ進む。なお、2値化画像Qは領域特定部21bを介して作成される。   FIG. 23 is a flowchart of bite estimation in the X-ray inspection apparatus 310 according to the fourth embodiment. In FIG. 23, the control computer 20 creates a binarized image Q obtained by performing binarization processing on the X-ray transmission image P in step S41, and proceeds to step S42. The binarized image Q is created via the area specifying unit 21b.

次に、制御コンピュータ20は、ステップS42でカウンタを始動またはリセットしN=0と設定して、ステップS43へ進む。   Next, the control computer 20 starts or resets the counter in step S42, sets N = 0, and proceeds to step S43.

次に、制御コンピュータ20は、ステップS43で間隔検出部121fを介して2値化画像Qから隣接する領域間の内接線の傾斜角度θを検出し、ステップS44へ進む。   Next, in step S43, the control computer 20 detects the inclination angle θ of the inscribed line between adjacent regions from the binarized image Q via the interval detection unit 121f, and proceeds to step S44.

次に、制御コンピュータ20は、ステップS44で噛み込み推定部121gを介して、θ<θminであるか否かを判定し、θ<θminのときはステップS441へ進み、θ<θminでないときはステップS45へ進む。   Next, in step S44, the control computer 20 determines whether θ <θmin via the bite estimation unit 121g. If θ <θmin, the process proceeds to step S441. If θ <θmin, the control computer 20 proceeds to step S441. Proceed to S45.

次に、制御コンピュータ20は、ステップS45でカウンタをN=N+1と設定し、ステップS46に進む。これは、連包品Gの最初のシール部分S1に噛み込みがなかったことを意味する。   Next, the control computer 20 sets the counter to N = N + 1 in step S45, and proceeds to step S46. This means that the first seal portion S1 of the continuous package G was not bitten.

次に、制御コンピュータ20は、ステップS46でカウンタの回数Nが3以上であるか否かを判定し、N≧3のときはステップS47へ進み、N<3のときはステップS43に戻る。   Next, in step S46, the control computer 20 determines whether or not the counter count N is 3 or more. If N ≧ 3, the process proceeds to step S47, and if N <3, the process returns to step S43.

そして、制御コンピュータ20は、ステップS47で検査終了信号が有るか否かを判定し、検査終了信号が有る場合は検査を終了し、検査終了信号がない場合はステップS41へ戻る。   In step S47, the control computer 20 determines whether or not there is an inspection end signal. If there is an inspection end signal, the control computer 20 ends the inspection. If there is no inspection end signal, the control computer 20 returns to step S41.

なお、制御コンピュータ20は、ステップS44でθ<θminと判定したときは、ステップS441で噛み込み推定部121gを介して異常信号を総合診断部21hに送り、ステップS442へ進む。   When the control computer 20 determines that θ <θmin in step S44, the control computer 20 sends an abnormal signal to the comprehensive diagnosis unit 21h via the bite estimation unit 121g in step S441, and proceeds to step S442.

そして、制御コンピュータ20は、ステップS442で総合診断部21hを介して、連包品Gを不良品であると診断するとともに、直ちに検査を終了させる。   In step S442, the control computer 20 diagnoses the continuous package G as a defective product via the comprehensive diagnosis unit 21h, and immediately ends the inspection.

(2)特徴
X線検査装置310では、隣接する内容物同士がシール部分S1に噛み込まれていない状態で最も離れているときの傾斜角度θをθminとしたとき、間隔検出部121fの検出値の閾値をθminとすることによって、θ=θminのときは理論的に噛み込みがないのであるから、θ<θminであるときは噛み込んでいると推定することによって、噛み込み品を誤って正常品と判断することを防止することができる。
(2) Features In the X-ray inspection apparatus 310, the detected value of the interval detector 121f is θmin when the inclination angle θ when the adjacent contents are not separated from each other in the seal portion S1 is the most apart. By setting the threshold value of θmin to θmin, theoretically there is no biting when θ = θmin. It is possible to prevent the product from being judged as a product.

<第4実施形態の変形例>
(1)構成
X線検査装置310の間隔検出部121fが、4個の個包装から連なる連包品Gの先頭から最後の個包装に至るまでの間に3つの傾斜角度θを検出することになるが、それらのうちの少なくとも1つで、θ>θmax又はθ<θminが発見されれば、その時点で噛み込み推定部121gがX線検査装置310を停止させることになる。このフローを、図面を用いて説明する。
<Modification of Fourth Embodiment>
(1) Configuration The interval detection unit 121f of the X-ray inspection apparatus 310 detects three inclination angles θ from the beginning of the continuous packaged goods G that are connected from four individual packages to the last individual package. However, if θ> θmax or θ <θmin is found in at least one of them, the bite estimation unit 121g stops the X-ray inspection apparatus 310 at that time. This flow will be described with reference to the drawings.

図24は、第4実施形態の変形例に係るX線検査装置310の噛み込み推定のフローチャートである。図24において、制御コンピュータ20は、ステップS51でX線透過画像Pに対して2値化処理を施した2値化画像Qを作成し、ステップS52へ進む。なお、2値化画像Qは領域特定部21bを介して作成される。   FIG. 24 is a flowchart of the bite estimation of the X-ray inspection apparatus 310 according to the modification of the fourth embodiment. In FIG. 24, the control computer 20 creates a binarized image Q obtained by binarizing the X-ray transmission image P in step S51, and proceeds to step S52. The binarized image Q is created via the area specifying unit 21b.

次に、制御コンピュータ20は、ステップS52でカウンタを始動またはリセットしN=0と設定して、ステップS53へ進む。   Next, the control computer 20 starts or resets the counter in step S52, sets N = 0, and proceeds to step S53.

次に、制御コンピュータ20は、ステップS53で間隔検出部121fを介して2値化画像Qから隣接する領域間の内接線の傾斜角度θを検出し、ステップS54へ進む。   Next, in step S53, the control computer 20 detects the inclination angle θ of the inscribed line between adjacent regions from the binarized image Q via the interval detection unit 121f, and proceeds to step S54.

次に、制御コンピュータ20は、ステップS54で噛み込み推定部121gを介して、θ>θmaxであるか否かを判定し、θ>θmaxのときはステップS541へ進み、θ>θmaxでないときはステップS55へ進む。   Next, in step S54, the control computer 20 determines whether θ> θmax via the bite estimation unit 121g. If θ> θmax, the control computer 20 proceeds to step S541, and if θ> θmax is not satisfied, step S541 is performed. Proceed to S55.

次に、制御コンピュータ20は、ステップS55で噛み込み推定部121gを介して、θ<θminであるか否かを判定し、θ<θminのときはステップS541へ進み、θ<θminでないときはステップS56へ進む。   Next, the control computer 20 determines whether or not θ <θmin via the bite estimation unit 121g in step S55. If θ <θmin, the process proceeds to step S541, and if θ <θmin is not satisfied, step S541 is performed. Proceed to S56.

次に、制御コンピュータ20は、ステップS56でカウンタをN=N+1と設定し、ステップS57に進む。これは、連包品Gの一つのシール部分S1に噛み込みがなかったことを意味する。   Next, the control computer 20 sets the counter to N = N + 1 in step S56, and proceeds to step S57. This means that there was no bite in one seal portion S1 of the continuous package G.

次に、制御コンピュータ20は、ステップS57でカウンタの回数Nが3以上であるか否かを判定し、N≧3のときはステップS58へ進み、N<3のときはステップS53に戻る。   Next, in step S57, the control computer 20 determines whether or not the counter count N is 3 or more. When N ≧ 3, the process proceeds to step S58, and when N <3, the process returns to step S53.

そして、制御コンピュータ20は、ステップS58で検査終了信号が有るか否かを判定し、検査終了信号が有る場合は検査を終了し、検査終了信号がない場合はステップS51へ戻る。   In step S58, the control computer 20 determines whether or not there is an inspection end signal. If there is an inspection end signal, the control computer 20 ends the inspection. If there is no inspection end signal, the control computer 20 returns to step S51.

なお、制御コンピュータ20は、ステップS54でθ>θmaxと判定したとき、又はステップS55でθ<θminと判定したときは、ステップS541で噛み込み推定部121gを介して異常信号を総合診断部21hに送り、ステップS542へ進む。   Note that if the control computer 20 determines that θ> θmax in step S54 or determines that θ <θmin in step S55, the control computer 20 sends an abnormal signal to the comprehensive diagnosis unit 21h via the bite estimation unit 121g in step S541. Advance to step S542.

そして、制御コンピュータ20は、ステップS542で総合診断部21hを介して、連包品Gを不良品であると診断するとともに、直ちに検査を終了させる。   In step S542, the control computer 20 diagnoses the continuous package G as a defective product via the comprehensive diagnosis unit 21h, and immediately terminates the inspection.

(2)特徴
X線検査装置310の間隔検出部121fが、複数個の個包装から連なる連包品Gの先頭から最後の個包装に至るまでの間に検出した値のうちの少なくとも1つで、θ>θmax又はθ<θminが発見されれば、その時点で噛み込み推定部121gが連包品Gを異常と判断する。
(2) Feature At least one of the values detected by the interval detection unit 121f of the X-ray inspection apparatus 310 from the beginning of the continuous package G to the last individual package from a plurality of individual packages. , Θ> θmax or θ <θmin is found, the bite estimation unit 121g determines that the packaged item G is abnormal at that time.

したがって、X線透過画像Pにシール部分S1が写らなくても、内容物が包材のシール部分に噛み込まれているか否かを推定することができる。   Therefore, even if the seal portion S1 does not appear in the X-ray transmission image P, it can be estimated whether or not the contents are caught in the seal portion of the packaging material.

<第5実施形態>
(1)構成
図25は、第5実施形態に係るX線検査装置410の制御コンピュータ20のブロック構成図である。第5実施形態に係るX線検査装置410は、第1実施形態に係るX線検査装置10との対比において、間隔検出部21fおよび噛み込み推定部21gそれぞれが間隔検出部221fおよび噛み込み推定部221gに置き換えられている点で相違する。
<Fifth Embodiment>
(1) Configuration FIG. 25 is a block configuration diagram of the control computer 20 of the X-ray inspection apparatus 410 according to the fifth embodiment. In contrast to the X-ray inspection apparatus 10 according to the first embodiment, the X-ray inspection apparatus 410 according to the fifth embodiment includes an interval detection part 21f and a bite estimation part 21g, respectively. It is different in that it is replaced with 221g.

図25において、間隔検出部221fは、領域R1〜R4の隣接する領域同士の最短距離Dを検出し、RAM23に記憶させる。噛み込み推定部221gは、間隔検出部221fで検出された最短距離Dの検出パターンから、内容物がシール部分S1に噛み込まれているか否かを推定する。以下、推定方法を、図面を用いて説明する。   In FIG. 25, the space | interval detection part 221f detects the shortest distance D of the area | regions adjacent to area | region R1-R4, and memorize | stores it in RAM23. The biting estimation unit 221g estimates whether or not the contents are bitten in the seal portion S1 from the detection pattern of the shortest distance D detected by the interval detection unit 221f. Hereinafter, the estimation method will be described with reference to the drawings.

例えば、図9の状態における最短距離の閾値をTminとしたとき、D=Tminのときは理論的に噛み込みがない。また、図10の状態における最短距離の閾値をTmaxとしたとき、D=Tmaxのときは理論的に噛み込みがない。   For example, assuming that the minimum distance threshold in the state of FIG. 9 is Tmin, there is no theoretical engagement when D = Tmin. Further, assuming that the threshold of the shortest distance in the state of FIG. 10 is Tmax, there is no theoretical engagement when D = Tmax.

しかしながら、例えば、図26に示すように、Tmin≦D≦Tmaxであっても、間隔検出部221fが、4個の個包装が連なる連包品Gの先頭から最後の個包装に至るまでの間に検出した3つの値(最短距離D)のうち、連続する2つの値がTmin、Tminのときはシール部分S1への噛み込んでいる可能性が高い。それゆえ、間隔検出部221fによる連続する2つの検出値がTmin、Tminのパターンに合致したときは、シール部分S1への噛み込みがあったとして、その時点で噛み込み推定部221gがX線検査装置410を停止させることになる。このフローを、図面を用いて説明する。   However, for example, as shown in FIG. 26, even if Tmin ≦ D ≦ Tmax, the interval detection unit 221f is from the beginning of the continuous package G in which four individual packages are connected to the last individual package. Among the three values detected in (the shortest distance D), when two consecutive values are Tmin and Tmin, there is a high possibility that the seal portion S1 is engaged. Therefore, when two consecutive detection values by the interval detection unit 221f match the pattern of Tmin and Tmin, it is assumed that there is a biting into the seal portion S1, and the biting estimation unit 221g at that point in time performs the X-ray inspection. The apparatus 410 will be stopped. This flow will be described with reference to the drawings.

図28は、第5実施形態に係るX線検査装置410の噛み込み推定のフローチャートである。図28において、制御コンピュータ20は、ステップS61でX線透過画像Pに対して2値化処理を施した2値化画像Qを作成し、ステップS62へ進む。なお、2値化画像Qは領域特定部21bを介して作成される。   FIG. 28 is a flowchart of bite estimation in the X-ray inspection apparatus 410 according to the fifth embodiment. In FIG. 28, the control computer 20 creates a binarized image Q obtained by binarizing the X-ray transmission image P in step S61, and proceeds to step S62. The binarized image Q is created via the area specifying unit 21b.

次に、制御コンピュータ20は、ステップS62でカウンタを始動またはリセットしN=0と設定して、ステップS63へ進む。   Next, the control computer 20 starts or resets the counter in step S62, sets N = 0, and proceeds to step S63.

次に、制御コンピュータ20は、ステップS63で間隔検出部221fを介して2値化画像Qから隣接する領域間の最短距離Dを検出し、ステップS64へ進む。   Next, in step S63, the control computer 20 detects the shortest distance D between adjacent regions from the binarized image Q via the interval detection unit 221f, and proceeds to step S64.

次に、制御コンピュータ20は、ステップS64で最短距離DをRAM23に記憶し、ステップS65へ進む。   Next, the control computer 20 stores the shortest distance D in the RAM 23 in step S64, and proceeds to step S65.

次に、制御コンピュータ20は、ステップS65で噛み込み推定部221gを介して、D<Tminであるか否かを判定し、D<TminのときはステップS651へ進み、D<TminでないときはステップS66へ進む。   Next, the control computer 20 determines whether or not D <Tmin through the bite estimation unit 221g in step S65. If D <Tmin, the process proceeds to step S651. If D <Tmin, the control computer 20 proceeds to step S651. Proceed to S66.

次に、制御コンピュータ20は、ステップS66で噛み込み推定部221gを介して、D>Tmaxであるか否かを判定し、D>TmaxのときはステップS651へ進み、D>TmaxでないときはステップS67へ進む。   Next, in step S66, the control computer 20 determines whether or not D> Tmax via the bite estimation unit 221g. If D> Tmax, the control computer 20 proceeds to step S651, and if D> Tmax is not satisfied, step S651 is performed. Proceed to S67.

次に、制御コンピュータ20は、ステップS67でカウンタをN=N+1と設定し、ステップS68に進む。これは、連包品Gの一つのシール部分S1に噛み込みがなかったことを意味する。   Next, the control computer 20 sets the counter to N = N + 1 in step S67, and proceeds to step S68. This means that there was no bite in one seal portion S1 of the continuous package G.

次に、制御コンピュータ20は、ステップS68でカウンタの回数Nが3以上であるか否かを判定し、N≧3のときはステップS69へ進み、N<3のときはステップS63に戻る。   Next, in step S68, the control computer 20 determines whether or not the counter count N is 3 or more, the process proceeds to step S69 if N ≧ 3, and returns to step S63 if N <3.

次に、制御コンピュータ20は、ステップS69で連続する2個の検出値の検出パターンが所定のパターンに合致しているか否かを判定する。つまり、3個の検出値のうち連続する検出値をD1,D2としたとき、D1=Tmin、D2=Tminのときは、所定のパターンに合致していると判定しステップS651へ進み、合致していないときはステップS70へ進む。   Next, the control computer 20 determines in step S69 whether or not the detection patterns of the two consecutive detection values match a predetermined pattern. In other words, when D1 and T2 are consecutive detection values among the three detection values, and D1 = Tmin and D2 = Tmin, it is determined that the pattern matches the predetermined pattern, and the process proceeds to step S651. If not, the process proceeds to step S70.

そして、制御コンピュータ20は、ステップS70で検査終了信号が有るか否かを判定し、検査終了信号が有る場合は検査を終了し、検査終了信号がない場合はステップS61へ戻る。   In step S70, the control computer 20 determines whether or not there is an inspection end signal. If there is an inspection end signal, the control computer 20 ends the inspection. If there is no inspection end signal, the control computer 20 returns to step S61.

なお、制御コンピュータ20は、ステップS65でD<Tminと判定したとき、ステップ66でD>Tmaxと判定したとき、ステップS69で連続する2個の検出値の検出パターンが所定のパターンに合致していると判定したときは、ステップS651で噛み込み推定部221gを介して異常信号を総合診断部21hに送り、ステップS652へ進む。   Note that when the control computer 20 determines that D <Tmin in step S65 or D> Tmax in step 66, the detection pattern of the two detection values consecutive in step S69 matches the predetermined pattern. If it is determined that there is, the abnormal signal is sent to the comprehensive diagnosis unit 21h via the bite estimation unit 221g in step S651, and the process proceeds to step S652.

そして、制御コンピュータ20は、ステップS652で総合診断部21hを介して、連包品Gを不良品であると診断するとともに、直ちに検査を終了させる。   In step S652, the control computer 20 diagnoses the continuous package G as a defective product via the comprehensive diagnosis unit 21h, and immediately terminates the inspection.

(2)特徴
X線検査装置410では、間隔検出部221fが、4個の個包装が連なる連包品Gの先頭から最後の個包装に至るまでの間に検出した連続する2つの検出値がTmin、Tminのパターンに合致したときは、シール部分S1への噛み込みがあったとして、その時点で噛み込み推定部221gが連包品Gを異常と判断する。
(2) Features In the X-ray inspection apparatus 410, the two consecutive detection values detected by the interval detection unit 221f from the beginning of the continuous package G including four individual packages to the last individual package are obtained. If the patterns Tmin and Tmin match, it is determined that the seal portion S1 has been bitten, and the bite estimation unit 221g determines that the packaged item G is abnormal at that time.

したがって、X線透過画像Pにシール部分S1が写らなくても、内容物が包材のシール部分に噛み込まれているか否かを推定することができる。   Therefore, even if the seal portion S1 does not appear in the X-ray transmission image P, it can be estimated whether or not the contents are caught in the seal portion of the packaging material.

<第6実施形態>
(1)構成
第6実施形態に係るX線検査装置510は、構成は第5実施形態に係るX線検査装置410と同じであるが、噛み込み推定部221gがシール部分S1への噛み込みがあると推定する際の間隔検出部221fの検出値のパターンを変更している。
<Sixth Embodiment>
(1) Configuration Although the configuration of the X-ray inspection apparatus 510 according to the sixth embodiment is the same as that of the X-ray inspection apparatus 410 according to the fifth embodiment, the biting estimation unit 221g bites into the seal portion S1. The pattern of the detection value of the interval detection unit 221f when estimating that there is a change is changed.

例えば、図27に示すように、Tmin≦D≦Tmaxであっても、間隔検出部221fが、4個の個包装が連なる連包品Gの先頭から最後の個包装に至るまでの間に検出した3つの値(最短距離D)のうち、連続する2つの値がTmax、Tmaxのときはシール部分S1への噛み込んでいる可能性が高い。それゆえ、間隔検出部221fによる連続する2つの検出値がTmax、Tmaxのパターンに合致したときは、シール部分S1への噛み込みがあったとして、その時点で噛み込み推定部221gが連包品Gを異常と判断する。このフローを、図面を用いて説明する。   For example, as shown in FIG. 27, even if Tmin ≦ D ≦ Tmax, the interval detection unit 221f detects from the beginning of the continuous package G in which four individual packages are connected to the last individual package. Among the three values (shortest distance D), when two consecutive values are Tmax and Tmax, there is a high possibility that the seal portion S1 is engaged. Therefore, when two consecutive detection values by the interval detection unit 221f match the patterns of Tmax and Tmax, it is determined that there is a biting into the seal portion S1, and the biting estimation unit 221g at that point in time is the packaged item. G is determined to be abnormal. This flow will be described with reference to the drawings.

図29は、第6実施形態に係るX線検査装置510の噛み込み推定のフローチャートである。図29において、制御コンピュータ20は、ステップS71でX線透過画像Pに対して2値化処理を施した2値化画像Qを作成し、ステップS72へ進む。なお、2値化画像Qは領域特定部21bを介して作成される。   FIG. 29 is a flowchart of bite estimation in the X-ray inspection apparatus 510 according to the sixth embodiment. In FIG. 29, the control computer 20 creates a binarized image Q obtained by binarizing the X-ray transmission image P in step S71, and proceeds to step S72. The binarized image Q is created via the area specifying unit 21b.

次に、制御コンピュータ20は、ステップS72でカウンタを始動またはリセットしN=0と設定して、ステップS73へ進む。   Next, the control computer 20 starts or resets the counter in step S72, sets N = 0, and proceeds to step S73.

次に、制御コンピュータ20は、ステップS73で間隔検出部221fを介して2値化画像Qから隣接する領域間の最短距離Dを検出し、ステップS74へ進む。   Next, the control computer 20 detects the shortest distance D between adjacent regions from the binarized image Q via the interval detector 221f in step S73, and proceeds to step S74.

次に、制御コンピュータ20は、ステップS74で最短距離DをRAM23に記憶し、ステップS75へ進む。   Next, the control computer 20 stores the shortest distance D in the RAM 23 in step S74, and proceeds to step S75.

次に、制御コンピュータ20は、ステップS75で噛み込み推定部221gを介して、D<Tminであるか否かを判定し、D<TminのときはステップS751へ進み、D<TminでないときはステップS76へ進む。   Next, the control computer 20 determines whether or not D <Tmin through the bite estimation unit 221g in step S75. If D <Tmin, the process proceeds to step S751, and if D <Tmin is not satisfied, step S751 is performed. Proceed to S76.

次に、制御コンピュータ20は、ステップS76で噛み込み推定部221gを介して、D>Tmaxであるか否かを判定し、D>TmaxのときはステップS751へ進み、D>TmaxでないときはステップS77へ進む。   Next, in step S76, the control computer 20 determines whether or not D> Tmax via the bite estimation unit 221g. If D> Tmax, the process proceeds to step S751, and if D> Tmax is not satisfied, step S751 is performed. Proceed to S77.

次に、制御コンピュータ20は、ステップS77でカウンタをN=N+1と設定し、ステップS78に進む。これは、連包品Gの一つのシール部分S1に噛み込みがなかったことを意味する。   Next, the control computer 20 sets the counter to N = N + 1 in step S77, and proceeds to step S78. This means that there was no bite in one seal portion S1 of the continuous package G.

次に、制御コンピュータ20は、ステップS78でカウンタの回数Nが3以上であるか否かを判定し、N≧3のときはステップS79へ進み、N<3のときはステップS73に戻る。   Next, in step S78, the control computer 20 determines whether or not the counter count N is 3 or more. If N ≧ 3, the process proceeds to step S79, and if N <3, the process returns to step S73.

次に、制御コンピュータ20は、ステップS79で連続する2個の検出値の検出パターンが所定のパターンに合致しているか否かを判定する。つまり、3個の検出値のうち連続する検出値をD1,D2としたとき、D1=Tmax、D2=Tmaxのときは、所定のパターンに合致していると判定しステップS751へ進み、合致していないときはステップS80へ進む。   Next, the control computer 20 determines in step S79 whether or not the detection patterns of the two consecutive detection values match a predetermined pattern. That is, when D1 and T2 are consecutive detection values among the three detection values, and D1 = Tmax and D2 = Tmax, it is determined that the pattern matches the predetermined pattern, and the process proceeds to step S751. If not, the process proceeds to step S80.

そして、制御コンピュータ20は、ステップS80で検査終了信号が有るか否かを判定し、検査終了信号が有る場合は検査を終了し、検査終了信号がない場合はステップS71へ戻る。   In step S80, the control computer 20 determines whether or not there is an inspection end signal. If there is an inspection end signal, the control computer 20 ends the inspection. If there is no inspection end signal, the control computer 20 returns to step S71.

なお、制御コンピュータ20は、ステップS75でD<Tminと判定したとき、ステップ76でD>Tmaxと判定したとき、ステップS79で連続する2個の検出値の検出パターンが所定のパターンに合致していると判定したときは、ステップS751で噛み込み推定部221gを介して異常信号を総合診断部21hに送り、ステップS752へ進む。   When the control computer 20 determines that D <Tmin in step S75 and determines that D> Tmax in step 76, the detection pattern of the two detection values that are consecutive in step S79 matches the predetermined pattern. If it is determined that there is, the abnormal signal is sent to the comprehensive diagnosis unit 21h via the bite estimation unit 221g in step S751, and the process proceeds to step S752.

そして、制御コンピュータ20は、ステップS752で総合診断部21hを介して、連包品Gを不良品であると診断するとともに、直ちに検査を終了させる。   In step S752, the control computer 20 diagnoses the continuous package G as a defective product via the comprehensive diagnosis unit 21h and immediately terminates the inspection.

(2)特徴
X線検査装置510では、間隔検出部221fが、4個の個包装が連なる連包品Gの先頭から最後の個包装に至るまでの間に検出した連続する2つの検出値がTmax、Tmaxのパターンに合致したときは、シール部分S1への噛み込みがあったとして、その時点で噛み込み推定部221gが連包品Gを異常と判断する。
(2) Features In the X-ray inspection apparatus 510, two consecutive detection values detected by the interval detection unit 221f from the beginning of the continuous package G in which four individual packages are connected to the last individual package are obtained. When the patterns match Tmax and Tmax, the bite estimation unit 221g determines that the packaged item G is abnormal at that time, assuming that the bite has entered the seal portion S1.

したがって、X線透過画像Pにシール部分S1が写らなくても、内容物が包材のシール部分に噛み込まれているか否かを推定することができる。   Therefore, even if the seal portion S1 does not appear in the X-ray transmission image P, it can be estimated whether or not the contents are caught in the seal portion of the packaging material.

本発明の検査装置は、X線検査装置を例に説明しているが、原理はX線に限定されるものではなく、物品に放射光を照射し、照射された放射光の透過光又は反射光を受光部で受け、受光部が受けた放射光に基づいて画像を生成して検査を行う検査装置に有用である。   The inspection apparatus of the present invention has been described by taking an X-ray inspection apparatus as an example, but the principle is not limited to X-rays, and an article is irradiated with radiant light, and transmitted light or reflection of the irradiated radiated light. It is useful for an inspection apparatus that receives light at a light receiving unit and generates an image based on the radiated light received by the light receiving unit for inspection.

10 X線検査装置
13 X線照射器(照射部)
14 X線ラインセンサ(受光部)
21a 画像生成部
21f 間隔検出部
21g 噛み込み推定部
G 商品、商品としての連包品(検査対象物)
N 内容物
10 X-ray inspection equipment 13 X-ray irradiator (irradiation part)
14 X-ray line sensor (light receiving part)
21a Image generation unit 21f Interval detection unit 21g Biting estimation unit G Product, packaged product as a product (inspection object)
N contents

特開2005− 91015号公報Japanese Patent Laid-Open No. 2005-91015 特開2011−196796号公報JP 2011-196696 A

Claims (4)

物品に放射光を照射し、前記放射光を受光部で受け、前記受光部が受けた放射光に基づいて画像を生成して検査を行う検査装置において、
検査対象が複数の個包装が連なった連包品であって、
前記画像の前記連包品の中の第1物品とそれに隣接する第2物品との間隔を検出する検出部と、
前記間隔に基づいて、前記第1物品と前記第2物品との間のシール部分に前記第1物品または前記第2物品が噛み込んでいるか否かを推定する推定部と、
を備える検査装置。
In an inspection apparatus for irradiating an article with radiated light, receiving the radiated light with a light receiving unit, generating an image based on the radiated light received by the light receiving unit, and performing an inspection,
The inspection object is a continuous package of multiple individual packages,
A detection unit for detecting a distance between a first article in the packaged article of the image and a second article adjacent thereto;
An estimation unit that estimates whether the first article or the second article is caught in a seal portion between the first article and the second article based on the interval;
An inspection apparatus comprising:
前記間隔は、前記第1物品と前記第2物品との最短距離であって、
前記推定部は、前記最短距離が予め設定されている閾値よりも小さいときに、前記シール部分への前記物品の噛み込みがあると推定する、
請求項1に記載の検査装置。
The interval is the shortest distance between the first article and the second article,
The estimation unit estimates that the article is caught in the seal portion when the shortest distance is smaller than a preset threshold.
The inspection apparatus according to claim 1.
前記間隔は、前記第1物品および前記第2物品の共通内接線の傾斜角度であって、
前記推定部は、前記傾斜角度が予め設定されている閾値よりも大きいときに、前記シール部分への前記物品の噛み込みがあると推定する、
請求項1に記載の検査装置。
The interval is an inclination angle of a common inscribed line of the first article and the second article,
The estimation unit estimates that the article is caught in the seal portion when the inclination angle is larger than a preset threshold value.
The inspection apparatus according to claim 1.
前記推定部は、複数の前記間隔の検出パターンが所定条件に合致するときは、前記シール部分への前記物品の噛み込みがあると推定する、
請求項1から請求項3のいずれか1項に記載の検査装置。
The estimation unit estimates that there is a biting of the article into the seal portion when a plurality of detection patterns of the intervals meet a predetermined condition.
The inspection apparatus according to any one of claims 1 to 3.
JP2013240061A 2013-09-26 2013-11-20 X-ray inspection equipment Active JP6224434B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013240061A JP6224434B2 (en) 2013-09-26 2013-11-20 X-ray inspection equipment

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2013200433 2013-09-26
JP2013200433 2013-09-26
JP2013240061A JP6224434B2 (en) 2013-09-26 2013-11-20 X-ray inspection equipment

Publications (2)

Publication Number Publication Date
JP2015087371A JP2015087371A (en) 2015-05-07
JP6224434B2 true JP6224434B2 (en) 2017-11-01

Family

ID=53050279

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013240061A Active JP6224434B2 (en) 2013-09-26 2013-11-20 X-ray inspection equipment

Country Status (1)

Country Link
JP (1) JP6224434B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020204491A (en) * 2019-06-14 2020-12-24 株式会社イシダ X-ray inspection apparatus
JP6917083B1 (en) * 2020-03-24 2021-08-11 株式会社 システムスクエア Teacher data generator, inspection device and program

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003029192A (en) * 2001-07-11 2003-01-29 Olympus Optical Co Ltd Direction control system for scanner drive part
EP1973782B8 (en) * 2006-01-17 2010-02-17 Novartis Ag Method and apparatus for detecting presence of an ophthalmic lens in a package
WO2009041393A1 (en) * 2007-09-26 2009-04-02 Ishida Co., Ltd. Examination apparatus
JP2009156822A (en) * 2007-12-27 2009-07-16 Nihon Tetra Pak Kk Quality inspection method and quality inspection apparatus
JP5936870B2 (en) * 2012-02-10 2016-06-22 アンリツインフィビス株式会社 Item inspection system
JP3175930U (en) * 2012-03-16 2012-06-07 株式会社イシダ X-ray inspection equipment

Also Published As

Publication number Publication date
JP2015087371A (en) 2015-05-07

Similar Documents

Publication Publication Date Title
JP5789083B2 (en) Inspection device
JP5876116B1 (en) X-ray inspection equipment
WO2015041259A1 (en) Inspection device
JP6224434B2 (en) X-ray inspection equipment
JP5324328B2 (en) Inspection equipment
JP6466671B2 (en) Inspection device
JP2007183200A (en) X-ray inspection apparatus and article inspection apparatus
JP2013253832A (en) X-ray inspection device
JP6270319B2 (en) X-ray inspection equipment
JP2017009319A (en) Inspection device
JP2009085627A (en) X-ray line sensor module and x-ray foreign matter inspection device
JP2015137858A (en) Inspection device
KR100687171B1 (en) Radioactive rays inspection apparatus
JP3955558B2 (en) X-ray inspection equipment
JP2005031069A (en) X-ray inspection apparatus
JP2009080031A (en) X-ray inspection device
JP2010038629A (en) X-ray inspection device
JP2009080030A (en) X-ray inspection device
JP6346831B2 (en) Inspection device
JP4170366B2 (en) X-ray inspection equipment
WO2017159855A1 (en) X-ray inspection device
JP6941851B2 (en) Mass estimation device
JP5553674B2 (en) X-ray inspection equipment
JPWO2017159856A1 (en) X-ray inspection equipment
JP4020711B2 (en) X-ray foreign object detection device and X-ray foreign object detection method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20161115

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170920

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171005

R150 Certificate of patent or registration of utility model

Ref document number: 6224434

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