JP6389380B2 - Inspection device - Google Patents

Inspection device Download PDF

Info

Publication number
JP6389380B2
JP6389380B2 JP2014118934A JP2014118934A JP6389380B2 JP 6389380 B2 JP6389380 B2 JP 6389380B2 JP 2014118934 A JP2014118934 A JP 2014118934A JP 2014118934 A JP2014118934 A JP 2014118934A JP 6389380 B2 JP6389380 B2 JP 6389380B2
Authority
JP
Japan
Prior art keywords
article
region
area
mask
mask creation
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
JP2014118934A
Other languages
Japanese (ja)
Other versions
JP2015232469A (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 JP2014118934A priority Critical patent/JP6389380B2/en
Publication of JP2015232469A publication Critical patent/JP2015232469A/en
Application granted granted Critical
Publication of JP6389380B2 publication Critical patent/JP6389380B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

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

従来の検査装置として、例えば特許文献1に記載された装置が知られている。特許文献1に記載の検査装置は、包材で内容物を包んだ物品を検査する装置であり、物品の画像からシール部を含む帯状の部分画像を取得し、部分画像に異物が存在しているか否かを判別する。この検査装置では、物品が所定方向に対して傾いている場合、物品の画像を回転させて補正し、補正後の画像から部分画像を取得している。   As a conventional inspection apparatus, for example, an apparatus described in Patent Document 1 is known. The inspection apparatus described in Patent Document 1 is an apparatus that inspects an article in which contents are wrapped with a packaging material, acquires a band-shaped partial image including a seal portion from the image of the article, and foreign objects exist in the partial image. It is determined whether or not. In this inspection apparatus, when an article is tilted with respect to a predetermined direction, an image of the article is rotated and corrected, and a partial image is acquired from the corrected image.

特開2013−7597号公報JP 2013-7597 A

一般的に、画像を回転させる画像処理では、回転後の画素が回転前のどの画素に対応しているのか、すなわち回転後の画素位置が回転前の画像のどの位置に対応しているのかを求める必要がある。従来の検査装置のように、画像において物品の画像だけを回転させる処理では、物品の回転前の画素の位置と回転後の画素の位置とを正確に対応づけることが困難となるため、回転後の物品の画像の精度が低くなるおそれがある。そのため、従来の検査装置では、補正後の物品の画像からシール部を含む帯状の部分画像を精度良く取得できないおそれがある。そのため、従来の検査装置では、シール部の検査を精度良く行うことができない可能性がある。   Generally, in image processing for rotating an image, which pixel before rotation corresponds to which pixel before rotation, that is, which position in the image before rotation corresponds to the pixel position after rotation. Need to ask. In the process of rotating only the image of the article in the image as in the conventional inspection apparatus, it is difficult to accurately associate the position of the pixel before rotation of the article with the position of the pixel after rotation. The accuracy of the image of the article may be lowered. Therefore, in the conventional inspection apparatus, there is a possibility that a belt-like partial image including the seal portion cannot be accurately obtained from the corrected article image. Therefore, the conventional inspection apparatus may not be able to accurately inspect the seal portion.

本発明は、傾いている物品におけるシール部の検査を良好に行うことができる検査装置を提供することを目的とする。   An object of this invention is to provide the inspection apparatus which can test | inspect well the seal | sticker part in the inclined article | item.

本発明に係る検査装置は、内容物が包材に包装された物品に光を照射する光照射部と、物品を透過した光に基づいて、物品を含む透過画像を生成する画像生成部と、画像生成部により生成された透過画像に基づいて、包材のシール部における不良の有無を判断する判断部と、を備える検査装置であって、判断部は、物品に対応する物品領域が透過画像における画素の列方向及び列方向である配列方向に対して傾いている場合、物品領域と当該物品領域を含むマスク作成領域とに基づいて、内容物が収容された領域をマスク領域に設定し、透過画像とマスク領域とに基づいてシール部における不良の有無を判断する。   An inspection apparatus according to the present invention includes a light irradiation unit that irradiates light on an article whose contents are packaged in a packaging material, an image generation unit that generates a transmission image including the article based on light transmitted through the article, And a determination unit that determines whether there is a defect in the sealing portion of the packaging material based on the transmission image generated by the image generation unit, wherein the determination unit is configured such that the article region corresponding to the article is a transmission image. In the case of tilting with respect to the arrangement direction which is the column direction and the column direction of the pixel, the area containing the contents is set as a mask area based on the article area and the mask creation area including the article area, Based on the transmission image and the mask area, the presence or absence of a defect in the seal portion is determined.

この検査装置では、判断部は、物品領域と当該物品領域を含むマスク作成領域とに基づいて、内容物が収容された領域をマスク領域に設定し、透過画像とマスク領域とに基づいてシール部における不良の有無を判断する。これにより、検査装置では、物品領域が透過画像の配列方向に対して傾いている(物品が搬送方向に対して傾いている)場合であっても、物品領域を回転させることなく、内容物が収容された領域にマスク領域を設定できる。そのため、検査装置では、透過画像とマスク領域とに基づいて、シール部における不良の有無を判断できる。したがって、検査装置では、傾いている物品におけるシール部の検査を良好に行うことができる。   In this inspection apparatus, the determination unit sets the region containing the contents as the mask region based on the article region and the mask creation region including the article region, and the seal unit based on the transmission image and the mask region. The presence or absence of a defect is determined. Thereby, in the inspection apparatus, even if the article region is inclined with respect to the arrangement direction of the transmission image (the article is inclined with respect to the transport direction), the contents are not rotated without rotating the article region. A mask area can be set in the accommodated area. Therefore, the inspection apparatus can determine whether there is a defect in the seal portion based on the transmission image and the mask area. Therefore, the inspection apparatus can satisfactorily inspect the seal portion of the tilted article.

一実施形態においては、マスク作成領域は、物品領域に対して配列方向の一方向に沿って移動させてもよい。このように、検査装置では、マスク作成領域を物品領域に対して配列方向の一方向(列方向、行方向)に沿って平行移動させて、物品領域と移動後のマスク作成領域において例えば論理演算をすることにより、マスク領域を良好に設定することができる。その結果、検査装置では、シール部の検査を良好に行うことができる。   In one embodiment, the mask creation area may be moved along one direction of the arrangement direction with respect to the article area. Thus, in the inspection apparatus, the mask creation area is translated along one direction (column direction, row direction) in the arrangement direction with respect to the article area, and, for example, a logical operation is performed in the article area and the moved mask creation area. By doing this, the mask region can be set satisfactorily. As a result, in the inspection apparatus, the seal portion can be inspected satisfactorily.

一実施形態においては、包材には、互いに対向する位置に一対のシール部が形成されており、マスク作成領域は、物品領域に重複する第1マスク作成領域と、一方のシール部の外側の頂部のそれぞれから透過画像の端部まで延在する2本の第1仮想線と、他方のシール部の外側の頂部のそれぞれから透過画像の端部まで延在する2本の第2仮想線と、第1マスク作成領域と、に囲まれる第2マスク作成領域と、から成っていてもよい。このように、マスク作成領域において第2マスク作成領域を設定することで、配列方向にマスク作成領域を移動させても内容物の収容領域からずれないので、マスク領域をより正確に設定することができる。   In one embodiment, the packaging material is formed with a pair of seal portions at positions facing each other, and the mask creation region includes a first mask creation region overlapping the article region, and an outer side of one seal portion. Two first imaginary lines extending from each of the tops to the end of the transmission image, and two second imaginary lines extending from each of the tops outside the other seal part to the end of the transmission image, And a first mask creation region and a second mask creation region surrounded by the first mask creation region. In this way, by setting the second mask creation area in the mask creation area, even if the mask creation area is moved in the arrangement direction, it does not deviate from the contents storage area, so the mask area can be set more accurately. it can.

一実施形態においては、第1仮想線及び第2仮想線のそれぞれは、シール部の頂部同士を直線的に結ぶ仮想線の延在方向と同方向に延在していてもよい。このように第1仮想線及び第2仮想線を設定すると、第2マスク作成領域を良好に設定できる。また、この第1仮想線及び第2仮想線は迅速に設定できるため、処理の高速化が図れる。   In one embodiment, each of the first virtual line and the second virtual line may extend in the same direction as the extending direction of the virtual line that linearly connects the tops of the seal portions. Thus, when the first virtual line and the second virtual line are set, the second mask creation region can be set satisfactorily. In addition, since the first virtual line and the second virtual line can be set quickly, the processing speed can be increased.

一実施形態においては、第1仮想線及び第2仮想線のそれぞれは、シール部の頂部のそれぞれから透過画像の端部まで配列方向に延在していてもよい。このように第1仮想線及び第2仮想線を設定すると、第2マスク作成領域を良好に設定できる。また、この第1仮想線及び第2仮想線は、シール部の外縁の形状を問わず作成できる。したがって、検査装置では、適切にマスク作成領域を作成することができる。   In one embodiment, each of the first imaginary line and the second imaginary line may extend in the arrangement direction from the top of the seal part to the end of the transmission image. Thus, when the first virtual line and the second virtual line are set, the second mask creation region can be set satisfactorily. The first imaginary line and the second imaginary line can be created regardless of the shape of the outer edge of the seal portion. Therefore, the inspection apparatus can appropriately create a mask creation region.

一実施形態においては、物品は、略矩形形状を呈しており、判断部は、シール部の数が1以上4以下の場合、マスク作成領域をシール部の数だけ移動させてもよい。これにより、マスク領域を迅速且つ正確に設定できる。   In one embodiment, the article has a substantially rectangular shape, and the determination unit may move the mask creation region by the number of the seal portions when the number of the seal portions is 1 or more and 4 or less. Thereby, a mask area | region can be set rapidly and correctly.

一実施形態においては、判断部は、物品領域の配列方向の一方向に対する傾斜角度が45°よりも大きい場合、透過画像を90°回転させてもよい。物品領域の傾斜角度が45°よりも大きい場合、物品領域の縦と横とを誤って認識する可能性があり、これにより、マスク領域が誤って設定されるおそれがある。そこで、物品領域の傾斜角度が45°よりも大きい場合に透過画像を90°回転させることで、物品領域の縦と横との誤認識を防止し、マスク領域を良好に設定できる。   In one embodiment, the determination unit may rotate the transmission image by 90 ° when the inclination angle with respect to one direction of the arrangement direction of the article regions is larger than 45 °. When the inclination angle of the article region is larger than 45 °, there is a possibility that the length and the width of the article region are erroneously recognized, which may cause the mask region to be set erroneously. Accordingly, when the inclination angle of the article region is larger than 45 °, the transmission image is rotated by 90 ° to prevent erroneous recognition of the article region between the vertical and horizontal directions, and the mask region can be set satisfactorily.

一実施形態においては、判断部は、透過画像とマスク領域とを重ねて表示部に表示させてもよい。これにより、表示部において、検査領域となるシール部を確認できる。   In one embodiment, the determination unit may display the transparent image and the mask region on the display unit in an overlapping manner. Thereby, the seal part used as a test | inspection area | region can be confirmed in a display part.

本発明によれば、傾いている物品におけるシール部の検査を良好に行うことができる。   ADVANTAGE OF THE INVENTION According to this invention, the test | inspection of the seal part in the inclined article can be performed favorably.

一実施形態に係る近赤外線検査装置の側面図である。It is a side view of the near-infrared inspection apparatus concerning one embodiment. 図1の近赤外線検査装置が設置された搬送ラインの平面図である。It is a top view of the conveyance line in which the near-infrared inspection apparatus of FIG. 1 was installed. 図1の近赤外線検査装置が備えている制御コンピュータの構成を示す制御ブロック図である。It is a control block diagram which shows the structure of the control computer with which the near-infrared inspection apparatus of FIG. 1 is provided. 画像生成部により生成された透過画像を示す図である。It is a figure which shows the permeation | transmission image produced | generated by the image generation part. 判断部により設定された物品領域を示す図である。It is a figure which shows the article | item area | region set by the judgment part. 判断部により設定された作成領域を示す図である。It is a figure which shows the creation area set by the judgment part. マスク作成領域の作成手順を示す図である。It is a figure which shows the preparation procedure of a mask preparation area | region. マスク作成領域の作成手順を示す図である。It is a figure which shows the preparation procedure of a mask preparation area | region. マスク作成領域の移動を示す図である。It is a figure which shows the movement of a mask preparation area | region. マスク作成領域の移動を示す図である。It is a figure which shows the movement of a mask preparation area | region. マスク領域を示す図である。It is a figure which shows a mask area | region. 透過画像とマスク領域とを重ねて示す図である。It is a figure which overlaps and shows a transparent image and a mask area | region. マスク領域のずれを説明するための図である。It is a figure for demonstrating the shift | offset | difference of a mask area | region. マスク作成領域の他の作成手順を示す図である。It is a figure which shows the other preparation procedure of a mask preparation area | region.

以下、添付図面を参照して、本発明の好適な実施形態について詳細に説明する。なお、図面の説明において同一又は相当要素には同一符号を付し、重複する説明は省略する。   Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the description of the drawings, the same or equivalent elements will be denoted by the same reference numerals, and redundant description will be omitted.

(1)全体構成
図1及び図2に示される近赤外線検査装置1は、樹脂フィルムからなる包材、及び当該樹脂フィルム内に収容された内容物を有する物品Gを検査する装置である。物品Gは、例えば、食品などの搬送ラインにおいて搬送される袋入り菓子などである。包材は、透明な材料、半透明な材料など、光透過性を有する材料からなる。また、パッケージの材料自体が色彩を有している場合もあるし、印刷などによってパッケージに色彩が施されている場合もある。
(1) Overall Configuration The near-infrared inspection apparatus 1 shown in FIGS. 1 and 2 is an apparatus for inspecting an article G having a packaging material made of a resin film and contents contained in the resin film. The article G is, for example, a bag-like confectionery that is conveyed on a conveyance line for food or the like. The packaging material is made of a material having optical transparency such as a transparent material or a translucent material. The package material itself may have a color, or the package may be colored by printing or the like.

近赤外線検査装置(検査装置)1は、光照射部2と、光検出部3と、制御コンピュータ4と、振分機構5と、を備えている。光照射部2は、搬送コンベア11,12の下方に配置されている。光検出部3は、搬送コンベア11,12の上方に配置されている。光照射部2及び光検出部3は、搬送コンベア11,12間に設けられた間隙を介して互いに対向している。   The near-infrared inspection device (inspection device) 1 includes a light irradiation unit 2, a light detection unit 3, a control computer 4, and a distribution mechanism 5. The light irradiation unit 2 is disposed below the conveyors 11 and 12. The light detection unit 3 is disposed above the conveyors 11 and 12. The light irradiation unit 2 and the light detection unit 3 face each other through a gap provided between the transport conveyors 11 and 12.

光照射部2は、搬送コンベア11,12間の間隙の下方において当該間隙に沿って延在する近赤外線照射器13を有している。光照射部2は、搬送コンベア11,12によって搬送される物品Gが搬送コンベア11,12間の間隙上を通過する際に、近赤外線照射器13から物品Gに近赤外線を照射する。なお、近赤外線の波長は、780nm〜1400nmである。   The light irradiation unit 2 includes a near infrared irradiator 13 that extends along the gap below the gap between the conveyors 11 and 12. The light irradiation unit 2 irradiates the article G with near infrared rays from the near infrared irradiator 13 when the article G conveyed by the conveyors 11 and 12 passes over the gap between the conveyors 11 and 12. The near infrared wavelength is 780 nm to 1400 nm.

光検出部3は、搬送コンベア11,12間の間隙の上方において当該間隙に沿って延在する近赤外線ラインセンサ14を有している。光検出部3は、搬送コンベア11,12によって搬送される物品Gが搬送コンベア11,12間の間隙上を通過する際に物品Gに照射された近赤外線の透過光を近赤外線ラインセンサ14で検出し、検出信号を出力する。   The light detection unit 3 has a near-infrared line sensor 14 that extends along the gap above the gap between the conveyors 11 and 12. The light detection unit 3 uses the near-infrared line sensor 14 to transmit near-infrared light transmitted to the article G when the article G conveyed by the conveyors 11 and 12 passes over the gap between the conveyors 11 and 12. Detect and output detection signal.

近赤外線ラインセンサ14は、物品Gを透過した近赤外線を検出する。近赤外線ラインセンサ14は、搬送コンベア11,12による物品Gの搬送方向に直交する水平方向に一列に配列された複数の検出素子14a(図3参照)を有している。   The near-infrared line sensor 14 detects near-infrared rays that have passed through the article G. The near-infrared line sensor 14 has a plurality of detection elements 14a (see FIG. 3) arranged in a row in a horizontal direction orthogonal to the conveyance direction of the article G by the conveyance conveyors 11 and 12.

光照射部2及び光検出部3は、光照射部2から光検出部3に至る近赤外線の光路が周囲雰囲気に露出した状態で、台座6に立設された支柱7に片持ち支持されている。なお、物品Gの検査領域がシールドボックスなどによって覆われる構成としてもよい。   The light irradiation unit 2 and the light detection unit 3 are cantilevered by a support column 7 erected on the pedestal 6 with the near-infrared optical path from the light irradiation unit 2 to the light detection unit 3 exposed to the surrounding atmosphere. Yes. Note that the inspection area of the article G may be covered with a shield box or the like.

制御コンピュータ4は、支柱7内に収容されており、近赤外線検査装置1の動作制御及び各種の信号処理を行う。支柱7には、制御コンピュータ4の他、ディスプレイなどの表示部及びタッチボタンなどの操作部が設けられている。ただし、制御コンピュータ4、表示部及び操作部は、台座6及び支柱7とは別に用意された制御ボックスなどに設けられていてもよい。   The control computer 4 is housed in the column 7 and performs operation control of the near-infrared inspection apparatus 1 and various signal processing. In addition to the control computer 4, the column 7 is provided with a display unit such as a display and an operation unit such as a touch button. However, the control computer 4, the display unit, and the operation unit may be provided in a control box prepared separately from the base 6 and the support column 7.

図2に示されるように、振分機構5は、近赤外線検査装置1の下流側に配置されている。振分機構5は、搬送コンベア11,12によって近赤外線検査装置1に対して連続的に搬送される物品Gを振り分ける。振分機構5は、物品Gに不具合が有る場合には、アーム5aを動作させて、正規のラインコンベア80から外れた回収箱90に物品Gを送る。   As shown in FIG. 2, the distribution mechanism 5 is disposed on the downstream side of the near-infrared inspection apparatus 1. The distribution mechanism 5 distributes the articles G that are continuously conveyed to the near-infrared inspection apparatus 1 by the conveyors 11 and 12. When there is a defect in the article G, the sorting mechanism 5 operates the arm 5a to send the article G to the collection box 90 that is removed from the regular line conveyor 80.

(2)制御コンピュータの構成
制御コンピュータ4は、近赤外線検査装置1における各種動作を制御する部分であり、CPU(Central Processing Unit)、ROM(Read OnlyMemory)、RAM(Random Access Memory)などで構成される。制御コンピュータ4は、光検出部3から出力された検出信号に基づいて、物品Gの近赤外線透過像を取得し、当該赤外線透過像における1画素当たりの濃淡値に基づいて、シール部のシール不良、包材における内容物以外の異物の混入の有無、内容物の割れの有無、シール部への内容物の噛み込みの有無、シール部の折れ曲がりの有無などを判断する。本実施形態では、制御コンピュータ4がシール部のシール不良の有無を判断する場合について説明する。
(2) Configuration of Control Computer The control computer 4 is a part that controls various operations in the near-infrared inspection apparatus 1, and includes a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), and the like. The The control computer 4 acquires a near-infrared transmission image of the article G based on the detection signal output from the light detection unit 3, and based on the grayscale value per pixel in the infrared transmission image, the seal portion has a sealing failure. Then, the presence or absence of foreign matter other than the contents in the packaging material, the presence or absence of cracks in the contents, the presence or absence of biting of the contents into the seal portion, the presence or absence of bending of the seal portion, etc. are determined. In the present embodiment, a case will be described in which the control computer 4 determines whether or not there is a seal failure in the seal portion.

図3に示されるように、制御コンピュータ4は、近赤外線検査装置1における各種制御処理を実行する概念的な部分として、画像生成部41と、判断部43と、を有している。このような概念的な部分は、例えばROMに格納されているプログラムがRAM上にロードされてCPUで実行されるソフトウェアとして構成することができる。なお、制御コンピュータ4は、電子回路などによるハードウェアとして構成されてもよい。   As shown in FIG. 3, the control computer 4 includes an image generation unit 41 and a determination unit 43 as conceptual parts for executing various control processes in the near-infrared inspection apparatus 1. Such a conceptual part can be configured as software that is executed by the CPU after a program stored in the ROM is loaded onto the RAM, for example. The control computer 4 may be configured as hardware such as an electronic circuit.

(2−1)画像生成部
画像生成部41は、物品Gを透過した光に基づいて、物品Gの透過画像を生成する部分である。具体的には、画像生成部41は、近赤外線ラインセンサ14から連続的に送信されてくる検出信号に基づいて、図4に示されるような、物品Gを含む透過画像50を生成する。画像生成部41は、検出信号に基づく画像の明度が低い場合には、透過画像50の明るさを調整する。画像生成部41は、生成した透過画像50を判断部43に出力する。
(2-1) Image Generation Unit The image generation unit 41 is a part that generates a transmission image of the article G based on light transmitted through the article G. Specifically, the image generation unit 41 generates a transmission image 50 including the article G as shown in FIG. 4 based on the detection signal continuously transmitted from the near-infrared line sensor 14. The image generation unit 41 adjusts the brightness of the transmission image 50 when the brightness of the image based on the detection signal is low. The image generation unit 41 outputs the generated transparent image 50 to the determination unit 43.

図4に示されるように、物品Gは、内容物61が包材60に包装されてなる。内容物61は、包材60の領域S内に収容されている。物品G(包材60)は、略矩形形状を呈している。包材60には、互いに対向する位置に一対のシール部62が形成されている。シール部62のそれぞれは、例えば、略矩形形状を呈している。   As shown in FIG. 4, the article G is obtained by packaging the contents 61 in a packaging material 60. The contents 61 are accommodated in the region S of the packaging material 60. The article G (wrapping material 60) has a substantially rectangular shape. A pair of seal portions 62 are formed in the packaging material 60 at positions facing each other. Each of the seal portions 62 has, for example, a substantially rectangular shape.

(2−2)判断部
判断部43は、画像生成部41により生成された透過画像50に基づいて、包材60のシール部62における不良の有無を判断する。判断部43は、画像生成部41から出力された透過画像50を受け取ると、透過画像50を2値化処理し、図5に示されるように、2値化した画像において物品Gに対応する物品領域52を設定する。なお、図5においては、物品領域52を斜線で示しているが、実際には、2値化処理によって物品領域52が黒、その他の領域が白の2階調に変換されている。
(2-2) Determination Unit The determination unit 43 determines whether there is a defect in the sealing unit 62 of the packaging material 60 based on the transmission image 50 generated by the image generation unit 41. When the determination unit 43 receives the transmission image 50 output from the image generation unit 41, the determination unit 43 binarizes the transmission image 50 and, as shown in FIG. 5, the item corresponding to the item G in the binarized image. Region 52 is set. In FIG. 5, the article region 52 is indicated by diagonal lines, but in reality, the article region 52 is converted to two gradations of black and the other regions are white by binarization processing.

判断部43は、物品領域52が透過画像50における画素の列方向及び列方向である配列方向に対して傾いている否かを判断する。画素の列方向は、図5におけるX方向であり、画素の行方向は、図5におけるY方向である。判断部43は、例えば、物品領域52の4つの頂部を通る略矩形形状の枠を設定し、この枠の辺が配列方向に対して所定角度以上傾いている場合には、物品領域52が配列方向に対して傾いていると判断する。物品領域52の傾きは、他の方法によって判断されてもよい。   The determination unit 43 determines whether or not the article region 52 is tilted with respect to the pixel column direction in the transmission image 50 and the arrangement direction which is the column direction. The column direction of the pixels is the X direction in FIG. 5, and the row direction of the pixels is the Y direction in FIG. For example, the determination unit 43 sets a substantially rectangular frame that passes through the four tops of the article region 52, and the article region 52 is arranged when the sides of the frame are inclined at a predetermined angle or more with respect to the arrangement direction. Judged to be tilted relative to the direction. The inclination of the article region 52 may be determined by other methods.

判断部43は、物品領域52が透過画像50の画素の配列方向に対して傾いている場合、物品領域52と、物品領域52を含むマスク作成領域M(図6参照)とに基づいて、内容物61が収容された領域Sをマスク領域MA(図11参照)に設定する。マスク作成領域Mは、マスク領域MAを作成するために設定される領域である。マスク作成領域Mの具体的な作成方法について、図6〜図8を参照しながら説明する。   When the article region 52 is tilted with respect to the arrangement direction of the pixels of the transmission image 50, the determination unit 43 determines the content based on the article region 52 and the mask creation region M including the article region 52 (see FIG. 6). The area S in which the object 61 is accommodated is set as a mask area MA (see FIG. 11). The mask creation area M is an area set for creating the mask area MA. A specific method for creating the mask creation region M will be described with reference to FIGS.

図6に示されるように、マスク作成領域Mは、第1マスク作成領域M1、第2マスク作成領域M2及び第2マスク作成領域M3から成る。なお、図6では、マスク作成領域Mを斜線で示しているが、実際には、マスク作成領域Mの全体が塗りつぶされている。マスク領域MAについても同様である。   As shown in FIG. 6, the mask creation area M includes a first mask creation area M1, a second mask creation area M2, and a second mask creation area M3. In FIG. 6, the mask creation area M is indicated by oblique lines, but actually, the entire mask creation area M is filled. The same applies to the mask area MA.

判断部43は、図7に示されるように、物品領域52に重複する第1マスク作成領域M1を作成する。第1マスク作成領域M1は、物品領域52と略同形状を呈している。   The determination unit 43 creates a first mask creation region M1 that overlaps the article region 52, as shown in FIG. The first mask creation area M1 has substantially the same shape as the article area 52.

また、判断部43は、図8に示されるように、一方のシール部62の外側の頂部C1に対応する部分から透過画像50の端部50aまで行方向(Y方向)に沿って延在する第1仮想線L1を作成すると共に、他方のシール部62の外側の頂部C3に対応する部分から端部50aまで行方向に沿って延在する第2仮想線L3を作成し、図6に示されるように、第1仮想線L1と第2仮想線L3と第1マスク作成領域M1とで囲まれる領域を第2マスク作成領域M2に設定する。   Further, as shown in FIG. 8, the determination unit 43 extends along the row direction (Y direction) from the portion corresponding to the top portion C <b> 1 outside the one seal portion 62 to the end portion 50 a of the transmission image 50. A first imaginary line L1 is created, and a second imaginary line L3 extending in the row direction from the portion corresponding to the outer top portion C3 of the other seal portion 62 to the end portion 50a is created, as shown in FIG. As described above, an area surrounded by the first virtual line L1, the second virtual line L3, and the first mask creation area M1 is set as the second mask creation area M2.

判断部43は、図8に示されるように、一方のシール部62の外側の頂部C2に対応する部分から透過画像50の端部50bまで行方向(Y方向)に沿って延在する第1仮想線L2を作成すると共に、他方のシール部62の外側の頂部C4に対応する部分から端部50bまで行方向に沿って延在する第2仮想線L4を作成し、図6に示されるように、第1仮想線L2と第2仮想線L4と第1マスク作成領域M1とで囲まれる領域を第2マスク作成領域M3に設定する。以上の処理により、判断部43は、第1マスク作成領域M1、第2マスク作成領域M2及び第2マスク作成領域M3を含む領域を、マスク作成領域Mとして設定する。   As shown in FIG. 8, the determination unit 43 extends in the row direction (Y direction) from the portion corresponding to the outer top portion C <b> 2 of one seal portion 62 to the end portion 50 b of the transmission image 50. A virtual line L2 is created, and a second virtual line L4 extending in the row direction from the portion corresponding to the top portion C4 outside the other seal portion 62 to the end portion 50b is created, as shown in FIG. In addition, an area surrounded by the first virtual line L2, the second virtual line L4, and the first mask creation area M1 is set as the second mask creation area M3. Through the above processing, the determination unit 43 sets a region including the first mask creation region M1, the second mask creation region M2, and the second mask creation region M3 as the mask creation region M.

判断部43は、マスク作成領域Mを設定すると、物品領域52と、マスク作成領域Mとに基づいて、内容物61が収容された領域Sをマスク領域MAに設定する。具体的には、判断部43は、マスク作成領域Mを配列方向(本実施形態では列方向)に沿って平行に移動させて、移動後のマスク作成領域Mと物品領域52とに基づいてマスク領域MAを設定する。マスク作成領域Mの移動について、マスク作成領域Mの移動回数は、物品Gが略矩形形状を呈しており且つシール部の数が1以上4以下の場合、包材に形成されたシール部の数に応じて設定される。本実施形態では、包材60にシール部62が2つ形成されているため、判断部43は、マスク作成領域Mを2回移動させる。なお、シール部62の数は、タッチボタンなどの操作部により入力され、制御コンピュータ4に予め設定されている。   When the determination unit 43 sets the mask creation area M, the determination unit 43 sets the area S containing the contents 61 as the mask area MA based on the article area 52 and the mask creation area M. Specifically, the determination unit 43 moves the mask creation area M in parallel along the arrangement direction (in the row direction in the present embodiment), and performs masking based on the moved mask creation area M and the article area 52. Region MA is set. Regarding the movement of the mask preparation region M, the number of movements of the mask preparation region M is the number of seal portions formed on the packaging material when the article G has a substantially rectangular shape and the number of seal portions is 1 or more and 4 or less. Is set according to In the present embodiment, since two sealing portions 62 are formed on the packaging material 60, the determination portion 43 moves the mask creation region M twice. Note that the number of the seal parts 62 is input by an operation part such as a touch button, and is preset in the control computer 4.

判断部43は、図9に示されるように、マスク作成領域Mを、物品領域52に対して画素の列方向に沿って図示右側に平行移動させる。マスク作成領域Mの移動量は、包材60のシール部62の幅寸法と同等とする。シール部62の幅寸法は、図4に示される透過画像50から取得される。また、判断部43は、図10に示されるように、マスク作成領域Mを、物品領域52に対して画素の列方向に沿って図示側に平行移動させる。 As shown in FIG. 9, the determination unit 43 translates the mask creation region M to the right side in the drawing along the pixel column direction with respect to the article region 52. The amount of movement of the mask creation region M is equal to the width dimension of the seal portion 62 of the packaging material 60. The width dimension of the seal portion 62 is acquired from the transmission image 50 shown in FIG. Further, determination unit 43, as shown in FIG. 10, the mask creation area M, moves parallel to the leftward side in the column direction of the pixel with respect to the article area 52.

判断部43は、図5に示される物品領域52と、図9に示される移動後のマスク作成領域Mと、図10に示される移動後のマスク作成領域Mとにおいて論理演算を行い、図11に示されるように、マスク領域MAを設定する。具体的には、判断部43は、物品領域52と移動後のマスク作成領域Mの論理和を求めて、マスク領域MAを設定する。   The determination unit 43 performs a logical operation on the article region 52 shown in FIG. 5, the mask creation region M after movement shown in FIG. 9, and the mask creation region M after movement shown in FIG. The mask area MA is set as shown in FIG. Specifically, the determination unit 43 obtains a logical sum of the article region 52 and the moved mask creation region M, and sets the mask region MA.

判断部43は、マスク領域MAを設定すると、図12に示されるように、透過画像50にマスク領域MAが重ねられた画像に基づいて、包材60のシール部62における不良の有無を判断する。判断部43は、シール部62のシール不良、シール部62への内容物61の噛み込みの有無、シール部62の折れ曲がりの有無などを判断する。判断部43は、判断結果を振分機構5に出力する。なお、判断部43は、シール部62の不良の判断の際、透過画像50にマスク領域MAが重ねられた画像をディスプレイに表示させる信号を出力し、当該画像をディスプレイに表示させてもよい。これにより、表示部において、検査領域となるシール部62を作業者が確認できる。   When the mask area MA is set, the determination unit 43 determines whether there is a defect in the seal part 62 of the packaging material 60 based on the image in which the mask area MA is superimposed on the transmission image 50 as shown in FIG. . The determination unit 43 determines the seal failure of the seal portion 62, the presence / absence of the content 61 in the seal portion 62, the presence / absence of bending of the seal portion 62, and the like. The determination unit 43 outputs the determination result to the distribution mechanism 5. Note that the determination unit 43 may output a signal that causes the display to display an image in which the mask area MA is superimposed on the transmission image 50 when determining whether or not the seal unit 62 is defective, and display the image on the display. Thereby, an operator can confirm the seal | sticker part 62 used as a test | inspection area | region in a display part.

振分機構5は、判断部43から出力された判断結果においてシール部にシール不良が有ることを示している場合には、アーム5aを動作させることで、正規のラインコンベア80から外れた回収箱90に、シール不良であると判断された物品Gを送る。言い換えれば、振分機構5は、シール部62のシール不良がなく、シール部62への内容物の噛み込みがなく、かつシール部62の折れ曲がりのない、良品と判定された物品Gについては、正規のラインコンベア80に当該物品Gを送る。振分機構5は、判断部43から出力された判断結果においてシール不良以外の不具合の有ることを示している場合にも、物品Gを振り分ける。   When the determination result output from the determination unit 43 indicates that there is a seal failure in the seal unit, the distribution mechanism 5 operates the arm 5a to remove the collection box from the regular line conveyor 80. 90, the article G determined to have a poor seal is sent. In other words, the distribution mechanism 5 has no seal failure in the seal portion 62, the bite of the contents into the seal portion 62, and the bending of the seal portion 62, and the article G determined as a good product, The article G is sent to the regular line conveyor 80. The distribution mechanism 5 also distributes the articles G even when the determination result output from the determination unit 43 indicates that there is a defect other than a seal failure.

以上説明したように、本実施形態の近赤外線検査装置1では、判断部43は、物品領域52が透過画像50の配列方向に対して傾いている場合、物品領域52とマスク作成領域Mとに基づいて、内容物61が収容された領域Sをマスク領域MAに設定する。これにより、近赤外線検査装置1では、物品領域52が透過画像50の配列方向に対して傾いている(物品Gが搬送コンベア11,12の搬送方向に対して傾いている)場合であっても、物品領域52を回転させることなく、内容物61が収容された領域にマスク領域MAを設定できる。そのため、近赤外線検査装置1では、透過画像50とマスク領域MAとに基づいて、シール部62における不良の有無を判断できる。したがって、近赤外線検査装置1では、傾いている物品Gにおけるシール部62の検査を良好に行うことができる。   As described above, in the near-infrared inspection apparatus 1 of the present embodiment, the determination unit 43 determines that the article region 52 is in the article region 52 and the mask creation region M when the article region 52 is inclined with respect to the arrangement direction of the transmission image 50. Based on this, the area S in which the contents 61 are accommodated is set as the mask area MA. Thereby, in the near-infrared inspection apparatus 1, even when the article region 52 is inclined with respect to the arrangement direction of the transmission images 50 (the article G is inclined with respect to the conveyance direction of the conveyors 11 and 12). The mask area MA can be set in the area in which the contents 61 are accommodated without rotating the article area 52. Therefore, the near-infrared inspection apparatus 1 can determine whether there is a defect in the seal portion 62 based on the transmission image 50 and the mask area MA. Therefore, the near-infrared inspection apparatus 1 can satisfactorily inspect the seal portion 62 in the tilted article G.

本実施形態では、判断部43は、マスク作成領域Mを、物品領域52に対して配列方向の一方向に沿って移動させて、マスク領域MAを設定している。このように、マスク作成領域Mを物品領域52に対して配列方向の一方向(列方向、行方向)に沿って平行移動させて、物品領域52と移動後のマスク作成領域Mにおいて例えば論理演算をすることにより、マスク領域MAを良好に設定することができる。その結果、近赤外線検査装置1では、シール部62の検査を良好に行うことができる。   In the present embodiment, the determination unit 43 sets the mask area MA by moving the mask creation area M along one direction of the arrangement direction with respect to the article area 52. In this way, the mask creation area M is translated along one direction (column direction, row direction) in the arrangement direction with respect to the article area 52, and for example, a logical operation is performed in the article area 52 and the moved mask creation area M. By doing this, the mask area MA can be set satisfactorily. As a result, the near-infrared inspection apparatus 1 can satisfactorily inspect the seal portion 62.

本実施形態では、判断部43は、第1マスク作成領域M1と第2マスク作成領域M2,M3とから成るマスク作成領域Mを設定する。第1マスク作成領域M1は、物品領域52に重複する領域である。また、第2マスク作成領域M2,M3は、一方のシール部62の外側の頂部C1,C2のそれぞれから透過画像50の端部50a,50bまで延在する2本の第1仮想線L1,L2と、他方のシール部62の外側の頂部C3,C4のそれぞれから透過画像50の端部50a,50bまで延在する2本の第2仮想線L3,L4と、第1マスク作成領域M1と、に囲まれる領域である。ここで、第2マスク作成領域M2,M3を設定しない場合には、図13に示されるように、マスク作成領域MSを配列方向(行方向)に移動させると、図中ハッチングしている部分で示すように、内容物61の収容領域からマスク作成領域MSがずれるため、マスク領域を正確に設定できないおそれがある。   In the present embodiment, the determination unit 43 sets a mask creation area M including a first mask creation area M1 and second mask creation areas M2 and M3. The first mask creation area M1 is an area overlapping the article area 52. The second mask creation areas M2 and M3 include two first imaginary lines L1 and L2 that extend from the outer top portions C1 and C2 of one seal portion 62 to the end portions 50a and 50b of the transmission image 50, respectively. Two second imaginary lines L3 and L4 extending from the respective outer top portions C3 and C4 of the other seal portion 62 to the end portions 50a and 50b of the transmission image 50, and a first mask creating region M1. It is an area surrounded by. Here, when the second mask creation areas M2 and M3 are not set, as shown in FIG. 13, when the mask creation area MS is moved in the arrangement direction (row direction), the hatched portion in the figure is displayed. As shown, since the mask creation area MS deviates from the accommodation area for the contents 61, the mask area may not be set accurately.

これに対して、本実施形態では、マスク作成領域Mにおいて第2マスク作成領域M2,M3を設定しているため、配列方向にマスク作成領域Mを移動させても内容物61の収容領域からずれないので、マスク領域MAをより正確に設定することができる。   On the other hand, in the present embodiment, since the second mask creation areas M2 and M3 are set in the mask creation area M, even if the mask creation area M is moved in the arrangement direction, it is displaced from the accommodation area of the contents 61. Therefore, the mask area MA can be set more accurately.

本実施形態では、第1仮想線L1,L2及び第2仮想線L3,L4のそれぞれは、シール部62の頂部C1,C2,C3,C4のそれぞれから透過画像50の端部50a,50bまで配列方向(行方向、Y方向)に延在している。このように第1仮想線L1,L2及び第2仮想線L3,L4を設定すると、第2マスク作成領域M2,M3を良好に設定できる。また、第1仮想線L1,L2及び第2仮想線L3,L4は、シール部62の外縁の形状を問わず作成できる。したがって、近赤外線検査装置1では、適切にマスク作成領域Mを作成することができ、その結果、マスク領域MAを正確に設定できる。   In the present embodiment, the first imaginary lines L1 and L2 and the second imaginary lines L3 and L4 are arranged from the tops C1, C2, C3, and C4 of the seal portion 62 to the end portions 50a and 50b of the transmission image 50, respectively. It extends in the direction (row direction, Y direction). When the first virtual lines L1 and L2 and the second virtual lines L3 and L4 are set in this way, the second mask creation areas M2 and M3 can be set satisfactorily. The first virtual lines L1 and L2 and the second virtual lines L3 and L4 can be created regardless of the shape of the outer edge of the seal portion 62. Therefore, the near-infrared inspection apparatus 1 can appropriately create the mask creation area M, and as a result, the mask area MA can be accurately set.

本発明は、上記実施形態に限定されない。例えば、上記実施形態では、マスク作成領域Mの第2マスク作成領域M2,M3を、図8に示される第1仮想線L1,L2及び第2仮想線L3,L4に基づいて設定しているが、第2マスク作成領域の設定方法はこれに限定されない。第2マスク作成領域は、以下のように設定されてもよい。   The present invention is not limited to the above embodiment. For example, in the above embodiment, the second mask creation areas M2 and M3 of the mask creation area M are set based on the first virtual lines L1 and L2 and the second virtual lines L3 and L4 shown in FIG. The method for setting the second mask creation region is not limited to this. The second mask creation area may be set as follows.

判断部43は、図14に示されるように、一方のシール部62の外側の頂部C1に対応する部分から透過画像50の端部50aまで、頂部C1と頂部C2とを直線的に結ぶ仮想線の延在方向(図13に示す例では、シール部62の外縁の延在方向)と同方向に延在する第1仮想線L11を作成すると共に、他方のシール部62の外側の頂部C3に対応する部分から端部50aまで、頂部C3と頂部C4とを直線的に結ぶ仮想線の延在方向と同方向に延在する第2仮想線L13を作成し、第1仮想線L11と第2仮想線L13と第1マスク作成領域M1とで囲まれる領域を第2マスク作成領域に設定する。   As shown in FIG. 14, the determination unit 43 linearly connects the top portion C1 and the top portion C2 from the portion corresponding to the top portion C1 outside the one seal portion 62 to the end portion 50a of the transmission image 50. The first imaginary line L11 extending in the same direction as the extending direction (in the example shown in FIG. 13, the extending direction of the outer edge of the seal portion 62) is created, and the outer top portion C3 of the other seal portion 62 is formed. From the corresponding part to the end 50a, a second virtual line L13 extending in the same direction as the extending direction of the virtual line that linearly connects the top part C3 and the top part C4 is created, and the first virtual line L11 and the second virtual line L11 A region surrounded by the virtual line L13 and the first mask creation region M1 is set as the second mask creation region.

判断部43は、図14に示されるように、一方のシール部62の外側の頂部C2に対応する部分から透過画像50の端部50bまで、頂部C1と頂部C2とを直線的に結ぶ仮想線の延在方向と同方向に延在する第1仮想線L12を作成すると共に、他方のシール部62の外側の頂部C4に対応する部分から端部50bまで、頂部C3と頂部C4とを直線的に結ぶ仮想線の延在方向と同方向に延在する第2仮想線L14を作成し、第1仮想線L12と第2仮想線L14と第1マスク作成領域M1とで囲まれる領域を第2マスク作成領域に設定する。判断部43は、以上のように設定された第2マスク作成領域と第1マスク作成領域とからなるマスク作成領域を設定する。このように第1仮想線L11,L12及び第2仮想線L13,L14を設定すると、第2マスク作成領域を良好に設定できる。また、この第1仮想線L11,L12及び第2仮想線L13,L14は迅速に設定できるため、処理の高速化が図れる。   As shown in FIG. 14, the determination unit 43 linearly connects the top portion C1 and the top portion C2 from the portion corresponding to the top portion C2 outside the one seal portion 62 to the end portion 50b of the transmission image 50. The first imaginary line L12 extending in the same direction as the extending direction is created, and the top portion C3 and the top portion C4 are linearly formed from the portion corresponding to the top portion C4 on the outside of the other seal portion 62 to the end portion 50b. A second virtual line L14 extending in the same direction as the extending direction of the virtual line connecting to the second virtual line L14 is created, and a region surrounded by the first virtual line L12, the second virtual line L14, and the first mask creating region M1 is defined as the second virtual line L14. Set in the mask creation area. The determination unit 43 sets a mask creation area including the second mask creation area and the first mask creation area set as described above. When the first virtual lines L11 and L12 and the second virtual lines L13 and L14 are set in this way, the second mask creation area can be set satisfactorily. In addition, since the first virtual lines L11 and L12 and the second virtual lines L13 and L14 can be set quickly, the processing speed can be increased.

上記実施形態では、透過画像50の配列方向の一方向に対して、物品領域52が45°以下の角度で傾いている形態を一例に説明した。これについて、透過画像50の配列方向の一方向に対して、物品領域52が45°よりも傾いている場合、判断部43は、透過画像50を90°回転させてもよい。物品領域52の傾斜角度が45°よりも大きい場合、物品領域52の縦と横とを誤って認識する可能性があり、これにより、マスク領域MAが誤って設定されるおそれがある。そこで、物品領域52の傾斜角度が45°よりも大きい場合に透過画像50を90°回転させることで、物品領域52の縦と横の誤認識を防止し、マスク領域MAを良好に設定できる。なお、透過画像50の90°回転であるため、回転後の画素位置の対応関係を正確に設定できる。   In the embodiment described above, an example in which the article region 52 is inclined at an angle of 45 ° or less with respect to one direction of the arrangement direction of the transmission images 50 has been described. In this regard, when the article region 52 is inclined with respect to one direction of the arrangement direction of the transparent image 50 by more than 45 °, the determination unit 43 may rotate the transparent image 50 by 90 °. When the inclination angle of the article area 52 is larger than 45 °, there is a possibility that the vertical and horizontal directions of the article area 52 may be erroneously recognized, and thus the mask area MA may be set erroneously. Therefore, when the inclination angle of the article region 52 is larger than 45 °, the transmission image 50 is rotated by 90 ° to prevent erroneous recognition of the article region 52 in the vertical and horizontal directions, and the mask region MA can be set satisfactorily. Since the transmission image 50 is rotated by 90 °, the correspondence relationship between the rotated pixel positions can be accurately set.

上記実施形態では、検査対象となる物品Gとして、シール部62を有する包材60を一例に説明した。包材としては、包材の外枠の3辺に沿ってシール部が形成されたいわゆる3方シールであってもよいし、外枠の4辺に沿ってシール部が形成されたいわゆる4方シールであってもよい。また、その他の形状を有するものであってもよい。   In the above embodiment, the packaging material 60 having the seal portion 62 is described as an example of the article G to be inspected. The packaging material may be a so-called three-way seal in which a seal portion is formed along the three sides of the outer frame of the packaging material, or a so-called four-side seal in which a seal portion is formed along the four sides of the outer frame. It may be a seal. Moreover, you may have another shape.

上記実施形態では、光検出部3が近赤外線ラインセンサ14を有していたが、光検出部は、近赤外線ラインセンサ14に代えて近赤外線エリアセンサを有していてもよい。また、光検出部は、近赤外線を通過させ且つ可視光を遮断するフィルタを有していてもよい。これにより、光照射部から光検出部に至る近赤外線の光路が周囲雰囲気に露出している場合に、周囲雰囲気から近赤外線ラインセンサ又は近赤外線エリアセンサに可視光が入射し、当該可視光が外乱光となるのを防止することができる。   In the embodiment described above, the light detection unit 3 includes the near infrared line sensor 14, but the light detection unit may include a near infrared area sensor instead of the near infrared line sensor 14. In addition, the light detection unit may include a filter that allows near infrared light to pass through and blocks visible light. Thereby, when the near-infrared optical path from the light irradiation unit to the light detection unit is exposed to the ambient atmosphere, visible light enters the near-infrared line sensor or near-infrared area sensor from the ambient atmosphere, and the visible light is It is possible to prevent disturbance light.

上記実施形態では、光照射部から照射する光として近赤外線を一例に説明したが、光は、可視光、近赤外線、X線、紫外線、テラヘルツ波等であってもよい。光は、検査対象となる物品Gに応じて適宜設定されればよい。   In the above-described embodiment, near-infrared light has been described as an example of light emitted from the light irradiation unit. However, the light may be visible light, near-infrared light, X-rays, ultraviolet light, terahertz waves, or the like. The light may be appropriately set according to the article G to be inspected.

1…近赤外線検査装置(検査装置)、2…光照射部、41…画像生成部、43…判断部、50…透過画像、52…物品領域、60…包材、61…内容物、62…シール部、L1,L2…第1仮想線、L3,L4…第2仮想線、M…マスク作成領域、MA…マスク領域、M1…第1マスク作成領域、M2…第2マスク作成領域、S…領域。
DESCRIPTION OF SYMBOLS 1 ... Near-infrared inspection apparatus (inspection apparatus), 2 ... Light irradiation part, 41 ... Image generation part, 43 ... Judgment part, 50 ... Transmission image, 52 ... Article area | region, 60 ... Packaging material, 61 ... Contents, 62 ... Seal part, L1, L2 ... first imaginary line, L3, L4 ... second imaginary line, M ... mask creation area, MA ... mask area, M1 ... first mask creation area, M2 ... second mask creation area, S ... region.

Claims (9)

内容物が包材に包装された物品に光を照射する光照射部と、前記物品を透過した前記光に基づいて、前記物品を含む透過画像を生成する画像生成部と、前記画像生成部により生成された前記透過画像に基づいて、前記包材のシール部における不良の有無を判断する判断部と、を備える検査装置であって、
前記判断部は、
前記物品に対応する物品領域が前記透過画像における画素の列方向及び方向である配列方向に対して傾いている場合、前記物品領域を回転させることなく、マスク領域を設定するための領域であって前記物品領域を含むマスク作成領域を作成し前記マスク作成領域を前記物品領域に対して前記配列方向の一方に沿って移動させ、
前記物品領域と移動後の前記マスク作成領域との論理演算により、前記内容物が収容された領域を前記マスク領域に設定し、前記透過画像と前記マスク領域とに基づいて前記シール部における不良の有無を判断する、検査装置。
A light irradiating unit configured to irradiate light on an article whose contents are wrapped in a packaging material; an image generating unit configured to generate a transmission image including the article based on the light transmitted through the article; and the image generating unit. A determination unit that determines the presence or absence of a defect in the sealing portion of the packaging material based on the generated transmission image,
The determination unit
When the article region corresponding to the article is inclined with respect to the arrangement direction which is the column direction and the row direction of the pixels in the transmission image, it is an area for setting a mask region without rotating the article region. wherein to create the mask creation area including the article area, said mask creation area is moved along one of the arrangement directions relative to the article area Te,
The logical operation of the mask creation area after the movement and the article area, set the region where the content is accommodated in the mask area, the defect in the sealing portion on the basis of the said transparent image the mask region Inspection device that determines the presence or absence.
前記判断部は、前記マスク作成領域を前記物品領域に対して前記配列方向の一方に沿って移動させるときに、前記シール部から前記物品領域に向かう方向に移動させる、請求項1記載の検査装置。 The inspection apparatus according to claim 1, wherein the determination unit moves the mask creation region in a direction from the seal unit toward the article region when moving the mask creation region along one of the arrangement directions with respect to the article region. . 前記包材には、互いに対向する位置に一対の前記シール部が形成されており、
前記マスク作成領域は、
前記物品領域に重複する第1マスク作成領域と、
一方の前記シール部の外側の頂部のそれぞれから前記透過画像の端部まで延在する2本の第1仮想線と、他方の前記シール部の外側の頂部のそれぞれから前記透過画像の端部まで延在する2本の第2仮想線と、前記第1マスク作成領域と、に囲まれる第2マスク作成領域と、から成る、請求項1又は2記載の検査装置。
In the packaging material, a pair of the seal portions are formed at positions facing each other,
The mask creation area is
A first mask creation region overlapping the article region;
Two first imaginary lines extending from each of the outer tops of one of the seal portions to the end of the transmission image, and from each of the outer tops of the other sealing portion to the end of the transmission image 2 and a second imaginary line which extends to said the first mask creation area, and a second mask creation area surrounded by, consisting inspection apparatus according to claim 1 or 2, wherein.
前記第1仮想線及び前記第2仮想線のそれぞれは、前記シール部の前記頂部同士を直線的に結ぶ仮想線の延在方向と同方向に延在している、請求項3記載の検査装置。   The inspection apparatus according to claim 3, wherein each of the first imaginary line and the second imaginary line extends in the same direction as an extending direction of an imaginary line that linearly connects the top portions of the seal portion. . 前記第1仮想線及び前記第2仮想線のそれぞれは、前記シール部の前記頂部のそれぞれから前記透過画像の前記端部まで前記配列方向に延在している、請求項3記載の検査装置。   4. The inspection apparatus according to claim 3, wherein each of the first virtual line and the second virtual line extends in the arrangement direction from each of the top portions of the seal portion to the end portion of the transmission image. 前記マスク作成領域が前記配列方向に沿って移動する方向と、前記第1仮想線及び前記第2仮想線が延在する方向とは、交差する、請求項5に記載の検査装置。The inspection apparatus according to claim 5, wherein a direction in which the mask creation region moves along the arrangement direction intersects with a direction in which the first imaginary line and the second imaginary line extend. 前記物品は、略矩形形状を呈しており、
前記判断部は、前記シール部の数が1以上4以下の場合、前記マスク作成領域を前記シール部の数だけ移動させ、前記物品領域と、前記シール部の数だけ移動された複数の前記マスク作成領域との論理演算により、前記マスク領域を設定する、請求項〜5のいずれか一項記載の検査装置。
The article has a substantially rectangular shape,
When the number of the seal portions is 1 or more and 4 or less, the determination unit moves the mask creation region by the number of the seal portions, and moves the article region and the plurality of masks moved by the number of the seal portions. the logical operation of the creation area, sets the mask regions, the inspection apparatus of any one of claims 1-5.
前記判断部は、前記物品領域の前記配列方向の一方向に対する傾斜角度が45°よりも大きい場合、前記透過画像を90°回転させる、請求項1〜のいずれか一項記載の検査装置。 The determination unit is configured when the inclination angle with respect to one direction of the array direction of the article area is greater than 45 °, the transmission image rotating 90 °, the inspection apparatus of any one of claims 1-7. 前記判断部は、前記透過画像と前記マスク領域とを重ねて表示部に表示させる、請求項1〜のいずれか一項記載の検査装置。 The determination unit, the transmission image and to be displayed on the display unit overlapping the mask region, the inspection apparatus of any one of claims 1-8.
JP2014118934A 2014-06-09 2014-06-09 Inspection device Active JP6389380B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014118934A JP6389380B2 (en) 2014-06-09 2014-06-09 Inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014118934A JP6389380B2 (en) 2014-06-09 2014-06-09 Inspection device

Publications (2)

Publication Number Publication Date
JP2015232469A JP2015232469A (en) 2015-12-24
JP6389380B2 true JP6389380B2 (en) 2018-09-12

Family

ID=54934005

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014118934A Active JP6389380B2 (en) 2014-06-09 2014-06-09 Inspection device

Country Status (1)

Country Link
JP (1) JP6389380B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5453350B2 (en) * 2011-06-23 2014-03-26 株式会社 システムスクエア Packaging inspection equipment

Also Published As

Publication number Publication date
JP2015232469A (en) 2015-12-24

Similar Documents

Publication Publication Date Title
JP6126230B2 (en) Inspection device
KR20210126163A (en) Inspection device
JP6537008B1 (en) Inspection device
JP6619547B2 (en) Inspection device
JP3828781B2 (en) X-ray foreign object detection device
JP2006505787A (en) Device for inspecting filled containers with X-rays and devices using the same
JP2017020843A (en) Packaged body inspection device
JP6270319B2 (en) X-ray inspection equipment
JP6389380B2 (en) Inspection device
JP2005127962A (en) X-ray inspection system
JP2015137858A (en) Inspection device
WO2019235022A1 (en) Inspection device
JP6420065B2 (en) Inspection device
JP6997036B2 (en) Package inspection method and package inspection device
JP2016176813A (en) Inspection device and inspection method
US20230366838A1 (en) X-ray inspection apparatus and x-ray inspection method
JP6043220B2 (en) Inspection equipment
JP5744414B2 (en) Tablet inspection device and PTP packaging machine
JP6392552B2 (en) Inspection device
JP2018091874A (en) Inspection device
JP2009080031A (en) X-ray inspection device
JP7250301B2 (en) Inspection device, inspection system, inspection method, inspection program and recording medium
JP2006208209A (en) Inspection device and ptp packing machine
JP2018059845A (en) X-ray inspection device and x-ray inspection method
JP2017067622A (en) Article inspection device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170606

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180207

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180220

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180423

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180817

R150 Certificate of patent or registration of utility model

Ref document number: 6389380

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