JP6686712B2 - Spout inspection device and spout inspection method - Google Patents

Spout inspection device and spout inspection method Download PDF

Info

Publication number
JP6686712B2
JP6686712B2 JP2016114721A JP2016114721A JP6686712B2 JP 6686712 B2 JP6686712 B2 JP 6686712B2 JP 2016114721 A JP2016114721 A JP 2016114721A JP 2016114721 A JP2016114721 A JP 2016114721A JP 6686712 B2 JP6686712 B2 JP 6686712B2
Authority
JP
Japan
Prior art keywords
spout
unit
image
pouch body
illumination
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
JP2016114721A
Other languages
Japanese (ja)
Other versions
JP2017219450A (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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing 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 Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2016114721A priority Critical patent/JP6686712B2/en
Publication of JP2017219450A publication Critical patent/JP2017219450A/en
Application granted granted Critical
Publication of JP6686712B2 publication Critical patent/JP6686712B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Description

本開示は、パウチ本体に挿入されたスパウトを検査するスパウト検査装置およびスパウト検査方法に関する。   The present disclosure relates to a spout inspection device and a spout inspection method for inspecting a spout inserted in a pouch body.

パウチ本体にスパウトを挿入した状態でスパウト周辺を撮影し、その撮影画像に基づいて、パウチ本体の開口部のめくれや破れの有無を検査する技術が提案されている(特許文献1参照)。特許文献1では、バックライトでパウチ本体を照明するとともに、天面スポットライトにてスパウトを照明し、バックライトの照明光を受けたパウチ本体のシルエットと、天面スポットライトで明るく照明されたスパウトとをカメラで撮影している。   A technique has been proposed in which the spout and its surroundings are photographed with the spout inserted in the pouch body, and based on the photographed image, whether or not the opening of the pouch body is turned or broken (see Patent Document 1). In Patent Document 1, the pouch body is illuminated by the backlight, and the spout is illuminated by the top spotlight, and the silhouette of the pouch body is illuminated by the backlight and the spout is illuminated brightly by the top spotlight. And are shooting with a camera.

特許4312474号公報Japanese Patent No. 4312474

従来のスパウト付きのパウチ(以下、スパウチと呼ぶ)は、スパウチの材料としてアルミ箔やアルミ蒸着フィルム等の不透明なシート材を用いることが多かった。このため、特許文献1のように、スパウチの表面に絵柄が印刷されていても、バックライトを当てたときに、絵柄に関係なく、黒色のシルエットをカメラで撮影することができた。   Conventional pouches with spouts (hereinafter referred to as spouts) often use an opaque sheet material such as aluminum foil or aluminum vapor-deposited film as the material for the pouch. For this reason, even if a pattern is printed on the surface of the spout as in Patent Document 1, when a backlight is applied, a black silhouette can be photographed by the camera regardless of the pattern.

しかしながら、最近のスパウチは、デザイン性や内容物の可視化の観点から、透明や半透明のシート材に絵柄を印刷したものが増えてきた。   However, in recent years, from the viewpoint of designability and visualization of contents, an increasing number of spouches have a pattern printed on a transparent or translucent sheet material.

透明や半透明のシート材に絵柄を印刷したスパウチにバックライトを当ててカメラで撮影すると、撮影画像中に絵柄が写り込んでしまう。絵柄が写り込んだ撮影画像に基づいて、上述した検査を行うと、絵柄の影響を受けて、スパウトの取付位置の不良やめくれ不良の有無を正しく検査できないおそれがある。   When a back light is applied to a spouch with a picture printed on a transparent or semi-transparent sheet material and a picture is taken with the camera, the picture is reflected in the taken image. If the above-described inspection is performed based on the photographed image in which the pattern is reflected, there is a possibility that it cannot be correctly inspected for the presence or absence of a defective position of the spout or a curl defect due to the influence of the pattern.

本発明の一実施形態は、透明や半透明のパウチ本体に絵柄が描画されていても、パウチ本体に挿入されたスパウトを正しく検査できるスパウト検査装置およびスパウト検査方法を提供するものである。   An embodiment of the present invention provides a spout inspection device and a spout inspection method that can correctly inspect a spout inserted in a pouch body even if a pattern is drawn on the transparent or translucent pouch body.

上記の課題を解決するために、本開示の一態様によれば、パウチ本体の開口部にスパウトを挿入した状態で前記開口部をシールしたスパウチを検査するスパウト検査装置であって、
撮影部と、
前記スパウトの軸方向から、前記スパウトの天面をスポット照明光にて照明する第1照明部と、
前記パウチ本体と前記スパウトとの接続箇所周辺の第1領域を無影照明光にて照明する第2照明部と、
前記第2照明部を消灯させて、前記第1照明部にて前記スパウトの天面を照明した状態で、前記スパウト周辺を前記撮影部により撮影して第1撮影画像を生成する第1撮影制御部と、
前記第1照明部を消灯させて、前記第2照明部にて前記接続箇所周辺を照明した状態で、前記スパウト周辺を前記撮影部により撮影して第2撮影画像を生成する第2撮影制御部と、
前記第1撮影画像と前記第2撮影画像との差分画像を生成する差分画像生成部と、
前記差分画像に基づいて、前記スパウトの取付不良の有無を判定するスパウト不良判定部と、を備えるスパウト検査装置が提供される。
In order to solve the above problems, according to one aspect of the present disclosure, there is provided a spout inspection device that inspects a spout that seals the opening of a pouch body with the spout inserted in the opening,
The shooting department,
A first illumination unit that illuminates the top surface of the spout with spot illumination light in the axial direction of the spout;
A second illumination unit that illuminates a first region around the connection between the pouch body and the spout with shadowless illumination light;
A first shooting control in which the second lighting unit is turned off and the top surface of the spout is illuminated by the first lighting unit, and the surroundings of the spout are photographed by the photographing unit to generate a first photographed image. Department,
A second photographing control unit that generates a second photographed image by photographing the periphery of the spout by the photographing unit in a state where the first lighting unit is turned off and the periphery of the connection point is illuminated by the second lighting unit. When,
A difference image generation unit that generates a difference image between the first captured image and the second captured image;
A spout inspection device is provided, which includes a spout failure determination unit that determines whether or not there is a mounting failure of the spout based on the difference image.

前記スパウト不良判定部が判定する前記スパウトの取付不良は、前記パウチ本体のめくれ不良と、前記スパウトの取付位置の不良と、の少なくとも一方を含んでいてもよい。   The spout mounting failure determined by the spout failure determining unit may include at least one of a pouch body turning-up failure and a spout mounting position failure.

前記差分画像生成部は、前記第1撮影画像および前記第2撮影画像に写し込まれた前記パウチ本体に描画された絵柄を見かけ上相殺させた前記差分画像を生成してもよい。   The difference image generation unit may generate the difference image by apparently offsetting the pattern drawn on the pouch body that is imprinted on the first captured image and the second captured image.

前記第2照明部は、前記撮影部と前記パウチ本体との間に配置されてもよい。   The second lighting unit may be arranged between the photographing unit and the pouch body.

前記パウチ本体を間に挟んで、前記第2照明部とは反対側に配置され、前記パウチ本体と前記スパウトとの接続箇所周辺の第2領域を照明する第3照明部を備え、
前記第1撮影制御部は、前記第2照明部を消灯させて、前記第1照明部で前記スパウトの天面を照明しつつ、前記第3照明部で前記第2領域を照明した状態で、前記スパウト周辺を前記撮影部により撮影して前記第1撮影画像を生成し、
前記第2撮影部は、前記第1照明部および前記第3照明部を消灯させて、前記第2照明部で前記第1領域を照明した状態で、前記スパウト周辺を前記撮影部により撮影して前記第2撮影画像を生成してもよい。
A third illuminating unit that is disposed on the opposite side of the second illuminating unit with the pouch body interposed therebetween and illuminates a second region around a connection point between the pouch body and the spout,
The first imaging control unit turns off the second illumination unit, illuminates the top surface of the spout with the first illumination unit, and illuminates the second region with the third illumination unit, The surroundings of the spout are photographed by the photographing unit to generate the first photographed image,
The second photographing unit turns off the first illuminating unit and the third illuminating unit and illuminates the first region with the second illuminating unit, and photographs the area around the spout by the photographing unit. The second captured image may be generated.

前記第1撮影制御部は、前記スパウチの第1面および第2面のそれぞれについて、前記第1撮影画像を生成し、
前記第2撮影制御部は、前記スパウチの第1面および第2面のそれぞれについて、前記第2撮影画像を生成し、
前記差分画像生成部は、前記スパウチの第1面および第2面のそれぞれについて、前記差分画像を生成し、
前記スパウト不良判定部は、前記スパウチの第1面および第2面のそれぞれについて、各面での前記差分画像に基づいて前記スパウトの取付不良の有無を判定し、前記スパウチの第1面および第2面の少なくとも一方において前記取付不良があると判定されると、対応する前記スパウチを不良と判定してもよい。
The first photographing control unit generates the first photographed image for each of the first surface and the second surface of the spouch,
The second photographing control unit generates the second photographed image for each of the first surface and the second surface of the spouch,
The difference image generation unit generates the difference image for each of the first surface and the second surface of the spouch,
The spout failure determination unit determines, for each of the first surface and the second surface of the spout, whether there is a mounting failure of the spout based on the difference image on each surface, and determines whether the spout has the first surface or the second surface. When it is determined that the mounting failure is present on at least one of the two surfaces, the corresponding pouch may be determined to be defective.

前記パウチ本体は、透明または半透明なシート部材で形成され、前記シート部材の少なくとも一部には、絵柄が描画されていてもよい。   The pouch body may be formed of a transparent or translucent sheet member, and a pattern may be drawn on at least a part of the sheet member.

前記差分画像中に検査範囲を設定する検査範囲設定部と、
前記検査範囲内の画像を2値化画像に変換する2値化部と、
前記2値化画像に基づいて、2値の一方の面積を検出する面積検出部と、を備え、
前記スパウト不良判定部は、前記面積検出部で検出された面積に基づいて、前記パウチ本体のめくれが生じたか否かを判定してもよい。
An inspection range setting unit for setting an inspection range in the difference image,
A binarization unit for converting an image within the inspection range into a binarized image;
An area detection unit that detects one of two areas based on the binary image,
The spout failure determination unit may determine whether or not the pouch body is turned over based on the area detected by the area detection unit.

本開示の他の一態様によれば、パウチ本体の開口部にスパウトを挿入した状態で前記開口部をシールしたスパウチを検査するスパウト検査方法であって、
第1照明部にて、前記スパウトの軸方向から前記スパウトの天面をスポット照明光にて照明し、
第2照明部にて、前記パウチ本体と前記スパウトとの接続箇所周辺の第1領域を無影照明光にて照明し、
前記第2照明部を消灯させて、前記第1照明部にて前記スパウトの天面を照明した状態で、前記スパウト周辺を撮影部により撮影して第1撮影画像を生成し、
前記第1照明部を消灯させて、前記第2照明部にて前記接続箇所周辺を照明した状態で、前記スパウト周辺を前記撮影部により撮影して第2撮影画像を生成し、
前記第1撮影画像と前記第2撮影画像との差分画像を生成し、
前記差分画像に基づいて、前記スパウトの取付不良の有無を判定するスパウト検査方法が提供される。
According to another aspect of the present disclosure, a spout inspection method for inspecting a spout that seals the opening of the pouch body with the spout inserted in the opening,
In the first illumination unit, the top surface of the spout is illuminated with spot illumination light from the axial direction of the spout,
In the second illumination unit, the first area around the connection between the pouch body and the spout is illuminated with shadowless illumination light,
With the second lighting unit turned off and the top surface of the spout illuminated by the first lighting unit, the surroundings of the spout are photographed by a photographing unit to generate a first photographed image,
With the first illumination unit turned off and the second illumination unit illuminating the periphery of the connection point, the image capturing unit captures the periphery of the spout to generate a second captured image,
Generating a difference image between the first captured image and the second captured image,
A spout inspection method for determining whether or not there is a mounting failure of the spout based on the difference image is provided.

本開示によれば、パウチ本体に挿入されたスパウトを正しく検査することができる。   According to the present disclosure, the spout inserted in the pouch body can be correctly inspected.

一実施形態によるスパウト検査装置1を内蔵するスパウト取付装置2の概略構成を示すブロック図。The block diagram showing the schematic structure of the spout attachment device 2 which incorporates the spout inspection device 1 by one embodiment. (a)はセンターパウチ、(b)はコーナーパウチを示す図。(A) is a center pouch, (b) is a figure which shows a corner pouch. (a)〜(d)はスパウト挿入部の処理動作を模式的に示した図。(A)-(d) is the figure which showed the processing operation of the spout insertion part typically. (a)はめくれ不良が生じたスパウチの平面図、(b)はめくれ不良が生じていないスパウチの平面図。FIG. 3A is a plan view of a spouch having a swelling defect, and FIG. 3B is a plan view of a spouch having no swelling defect. スパウト検査装置の内部構成の第1例を示すブロック図。The block diagram which shows the 1st example of an internal structure of a spout inspection apparatus. 図5のスパウト検査装置の模式的な斜視図。The typical perspective view of the spout inspection device of FIG. (a)は第1撮影画像の一例を示す図、(b)は第2撮影画像の一例を示す図、(c)は差分画像の一例を示す図。(A) is a figure which shows an example of a 1st captured image, (b) is a figure which shows an example of a 2nd captured image, (c) is a figure which shows an example of a difference image. スパウト検査装置の内部構成の第2例を示すブロック図。The block diagram which shows the 2nd example of an internal structure of a spout inspection apparatus. 図8のスパウト検査装置1の模式的な斜視図。The typical perspective view of the spout inspection device 1 of FIG. 図9のスパウトの軸方向から見た平面図。The top view seen from the axial direction of the spout of FIG. 撮影部による撮影範囲を示す図。The figure which shows the imaging range by an imaging part. 本実施形態によるスパウト検査装置1の処理動作の一例を示すフローチャート。The flowchart which shows an example of the processing operation of the spout inspection apparatus 1 by this embodiment. 図12のステップS6とS7で行われるめくれ不良の検査の詳細な処理手順の一例を示すフローチャート。13 is a flowchart showing an example of a detailed processing procedure of the inspection of the turning-over defect performed in steps S6 and S7 of FIG. 図12のステップS6で行われるスパウトの取付位置の不良の検査の詳細な処理手順の一例を示すフローチャート。FIG. 13 is a flowchart showing an example of a detailed processing procedure of inspection of a defective attachment position of the spout performed in step S6 of FIG. 12. (a)と(b)はスパウトの取付位置を検査する手法を説明する図。(A) And (b) is a figure explaining the method of inspecting the attachment position of a spout.

以下、本開示の実施の形態について、詳細に説明する。図1は本発明の一実施形態によるスパウト検査装置1を内蔵するスパウト取付装置2の概略構成を示すブロック図である。図1のスパウト取付装置2は、パウチ供給部3と、スパウト供給部4と、スパウト挿入部5と、ヒートシール部6と、冷却部7と、良品排出部8と、不良品排出部9とを備えている。   Hereinafter, embodiments of the present disclosure will be described in detail. FIG. 1 is a block diagram showing a schematic configuration of a spout mounting device 2 incorporating a spout inspection device 1 according to an embodiment of the present invention. The spout attachment device 2 of FIG. 1 includes a pouch supply unit 3, a spout supply unit 4, a spout insertion unit 5, a heat seal unit 6, a cooling unit 7, a non-defective product discharge unit 8, and a defective product discharge unit 9. Is equipped with.

図1に示すスパウト取付装置2内の各部は、例えば、周状に配置されており、各部間でパウチ本体を周方向に搬送する不図示の搬送部が設けられている。   Each part in the spout attachment device 2 shown in FIG. 1 is arranged, for example, in a circumferential shape, and a carrying part (not shown) for carrying the pouch body in the circumferential direction is provided between the parts.

パウチ供給部3には、複数のパウチ本体が積載されており、順に一つずつをスパウト挿入部5に供給する。本実施形態のパウチ本体には、例えば半透明のシート部材が使われており、シート部材の少なくとも一部には、絵柄が描画されている。絵柄とは、絵や写真等の画像だけでなく、文字、記号、数字、模様などの任意の描画情報を指している。   A plurality of pouch bodies are stacked on the pouch supply unit 3, and the pouch supply unit 3 supplies the pouch main units one by one to the spout insertion unit 5. A translucent sheet member, for example, is used in the pouch body of the present embodiment, and a pattern is drawn on at least a part of the sheet member. A picture refers to not only an image such as a picture or a photograph, but also arbitrary drawing information such as characters, symbols, numbers, and patterns.

スパウト供給部4には、複数のスパウトが積載されており、その中から一つずつをスパウト挿入部5に供給する。   A plurality of spouts are loaded in the spout supply section 4, and one of the spouts is supplied to the spout insertion section 5.

スパウト挿入部5は、パウチ本体の開口部を広げて、その中にスパウトを挿入する。パウチ本体には、上面の中央部に開口部がある図2(a)のようなセンターパウチと、上面の角部に開口部がある図2(b)のようなコーナーパウチとがある。本実施形態は、センターパウチとコーナーパウチとの両方の製造および検査に適用可能である。   The spout insertion portion 5 widens the opening of the pouch body and inserts the spout therein. The pouch body includes a center pouch as shown in FIG. 2 (a) having an opening at the center of the upper surface and a corner pouch as shown in FIG. 2 (b) having an opening at the corner of the upper surface. This embodiment is applicable to manufacturing and inspection of both center pouches and corner pouches.

ヒートシール部6は、パウチ本体の開口部にスパウトを挿入した状態で、開口部周辺を加熱して、開口部をシールする。冷却部7は、加熱した箇所を冷却して、シール効果を向上させる。以上の製造工程により、パウチ本体にスパウトが挿入されたスパウチが作製される。   The heat seal portion 6 heats the periphery of the opening in the state where the spout is inserted into the opening of the pouch body to seal the opening. The cooling unit 7 cools the heated portion to improve the sealing effect. Through the above manufacturing process, a spouch having the spout inserted in the pouch body is produced.

スパウト検査装置1は、パウチ本体とスパウトとの接合部付近を、パウチ本体の表面側と裏面側とについて撮影し、これら撮影画像に基づいて、スパウトの取付不良の有無を検査する。本明細書では、パウチ本体の表面と裏面の一方を第1面と呼び、他方を第2面と呼ぶ。パウチ本体の第1面と第2面の少なくとも一方には絵柄が描画されているものとする。   The spout inspection device 1 photographs the vicinity of the joint between the pouch body and the spout with respect to the front surface side and the back surface side of the pouch body, and inspects the presence or absence of defective attachment of the spout based on these photographed images. In this specification, one of the front surface and the back surface of the pouch body is referred to as a first surface, and the other is referred to as a second surface. It is assumed that a pattern is drawn on at least one of the first surface and the second surface of the pouch body.

本実施形態によるスパウト検査装置1は、後述するように、めくれ不良とスパウトの取付位置の不良を検査する。検査の結果、めくれ不良とスパウトの取付位置の不良のいずれもないと判断されたスパウチは良品排出部8に搬送され、めくれ不良とスパウトの取付位置の不良の少なくとも一方があると判断されたスパウチは不良品排出部9に搬送される。   As will be described later, the spout inspection device 1 according to the present embodiment inspects a turning defect and a mounting position of the spout. As a result of the inspection, the spouch which is determined to have neither the flipping defect nor the mounting position of the spout is conveyed to the non-defective product discharging portion 8 and is determined to have at least one of the turning defect and the mounting position of the spout. Are conveyed to the defective product discharging section 9.

図3はスパウト挿入部5の処理動作を模式的に示した図である。スパウト挿入部5は、図3(a)に示すように、パウチ本体11の開口部11a付近の第1面11bと第2面11cとに一対の吸着部材12を吸着させた後、これら吸着部材12を吸着方向とは逆方向に引っ張って、図3(b)のように、開口部11aを開口させる。次に、図3(c)のように、開口部11aの中にスパウト13を挿入する。   FIG. 3 is a diagram schematically showing the processing operation of the spout insertion portion 5. As shown in FIG. 3A, the spout insertion portion 5 sucks the pair of suction members 12 on the first surface 11b and the second surface 11c in the vicinity of the opening 11a of the pouch body 11, and then, these suction members. 12 is pulled in the direction opposite to the suction direction to open the opening 11a as shown in FIG. Next, as shown in FIG. 3C, the spout 13 is inserted into the opening 11a.

一対の吸着部材12のうち、一方がパウチ本体11にしっかりと吸着しなかった場合は、図3(d)のように、開口部11aの開口面積が狭くなり、この状態でスパウト13を開口部11a内に挿入すると、吸着部材12がしっかりと吸着しなかった側がめくれてしまう。これがめくれ不良である。めくれ不良が起きると、パウチ本体11とスパウト13とのシールが不完全になり、パウチ本体11に収納された内容物が漏れ出す要因になる。   When one of the pair of suction members 12 is not firmly sucked to the pouch body 11, the opening area of the opening 11a becomes narrow as shown in FIG. 3D, and the spout 13 is opened in this state. When it is inserted into 11a, the side where the suction member 12 is not firmly sucked is turned over. This is a bad turn. When the flipping failure occurs, the seal between the pouch body 11 and the spout 13 becomes incomplete, which causes the contents stored in the pouch body 11 to leak out.

図4(a)はめくれ不良が生じたスパウチ14の平面図、図4(b)はめくれ不良が生じていないスパウチ14の平面図である。めくれ不良が生じると、図4(a)のように、スパウト13が余計に露出するため、パウチ本体11の外観検査により、めくれ不良の有無を検査することができる。そこで、本実施形態は、後述するように、パウチ本体11の第1面11b側と第2面11c側をそれぞれ撮影して、スパウト13の露出面積により、めくれ不良の有無を検査する。   FIG. 4A is a plan view of the spouch 14 in which the turning-over failure has occurred, and FIG. 4B is a plan view of the spouch 14 in which the turning-over failure has not occurred. When the turning-over failure occurs, the spout 13 is exposed excessively as shown in FIG. 4A. Therefore, it is possible to inspect the appearance of the pouch body 11 for the turning-over failure. Therefore, in the present embodiment, as will be described later, the first surface 11b side and the second surface 11c side of the pouch body 11 are photographed, respectively, and the exposed area of the spout 13 is used to inspect whether or not there is a turn-up defect.

図5はスパウト検査装置1の内部構成の第1例を示すブロック図、図6は図5のスパウト検査装置1の模式的な斜視図である。図5および図6に示すスパウト検査装置1は、撮影部21と、第1照明部22と、第2照明部23と、第1撮影制御部24と、第2撮影制御部25と、差分画像生成部26と、スパウト不良判定部27とを有する。   5 is a block diagram showing a first example of the internal configuration of the spout inspection device 1, and FIG. 6 is a schematic perspective view of the spout inspection device 1 of FIG. The spout inspection device 1 shown in FIGS. 5 and 6 includes a photographing unit 21, a first lighting unit 22, a second lighting unit 23, a first photographing control unit 24, a second photographing control unit 25, and a difference image. It has a generation unit 26 and a spout failure determination unit 27.

撮影部21は、スパウチ14のパウチ本体11とスパウト13との接続箇所周辺を撮影する。第1照明部22は、図6に示すように、スパウト13の軸方向からスパウト13の天面をスポット照明光にて照明する。第1照明部22は、スパウト13の天面を狙って照明するが、照明光の一部はパウチ本体11にも照射される。よって、パウチ本体11が半透明な場合は、照明光を受けて、パウチ本体11の絵柄が浮かび上がる。   The image capturing unit 21 captures an image around the connection portion between the pouch body 11 and the spout 13 of the spouch 14. As shown in FIG. 6, the first illumination unit 22 illuminates the top surface of the spout 13 with spot illumination light from the axial direction of the spout 13. The first illuminator 22 illuminates the top surface of the spout 13, and a part of the illumination light is also applied to the pouch body 11. Therefore, when the pouch body 11 is translucent, the design of the pouch body 11 is exposed by receiving the illumination light.

第2照明部23は、パウチ本体11とスパウト13との接続箇所周辺の第1領域32を無影照明光にて照明する。第2照明部23は、リング状またはドープ状に配置された複数の光源部を有し、影ができないようにパウチ本体11とスパウト13との接続箇所周辺を撮影する。第2照明部23は、図6に示すように、撮影部21とともに、例えばパウチ本体11の第1面11b側に配置されている。より詳細には、第2照明部23は、撮影部21とパウチ本体11の第1面11bとの間に配置されている。第2照明部23がリング状の場合には、パウチ本体11の第1面11bの法線方向で、かつリング中心部の孔を通過する方向に撮影部21を配置することで、第1撮影画像と第2撮影画像に第2照明部23が写り込むことを防止できる。第2照明部23がドーム状の場合には、撮影部21の光軸方向からずれた位置に第2照明部23を配置することで、やはり、第1撮影画像と第2撮影画像に第2照明部23が写り込むことを防止できる。   The second illumination unit 23 illuminates the first area 32 around the connection between the pouch body 11 and the spout 13 with shadowless illumination light. The second illumination section 23 has a plurality of light source sections arranged in a ring shape or a dope shape, and photographs the periphery of the connection portion between the pouch body 11 and the spout 13 so that shadows cannot be formed. As shown in FIG. 6, the second lighting unit 23 is arranged, for example, on the first surface 11b side of the pouch body 11 together with the photographing unit 21. More specifically, the second lighting unit 23 is arranged between the photographing unit 21 and the first surface 11b of the pouch body 11. When the second illuminator 23 has a ring shape, by arranging the photographing unit 21 in a direction normal to the first surface 11b of the pouch body 11 and in a direction passing through the hole at the center of the ring, the first photographing is performed. It is possible to prevent the second illumination unit 23 from being reflected in the image and the second captured image. When the second illumination unit 23 has a dome shape, by arranging the second illumination unit 23 at a position deviated from the optical axis direction of the image capturing unit 21, the second captured image and the second captured image are also secondarily arranged. It is possible to prevent the illumination unit 23 from being reflected.

第2照明部23の照明範囲である第1領域32のサイズは任意であるが、パウチ本体11のめくれ不良と、スパウト13の接続位置不良とを検査できる範囲を含むサイズである必要がある。より具体的には、第1領域32は、パウチ本体11から露出しているスパウト13と、パウチ本体11とスパウト13との接続箇所付近とを含むサイズである。同様に、第1撮影画像と第2撮影画像の撮影範囲は、パウチ本体11から露出しているスパウト13と、パウチ本体11とスパウト13との接続箇所付近とを含む範囲である。   The size of the first region 32, which is the illumination range of the second illumination unit 23, is arbitrary, but it is necessary to have a size that includes a range in which it is possible to inspect the pouch body 11 for turning over defects and the spout 13 for connection position defects. More specifically, the first region 32 has a size including the spout 13 exposed from the pouch body 11 and the vicinity of the connection portion between the pouch body 11 and the spout 13. Similarly, the shooting range of the first shot image and the second shot image is a range including the spout 13 exposed from the pouch body 11 and the vicinity of the connection portion between the pouch body 11 and the spout 13.

第1撮影制御部24は、第2照明部23を消灯させて、第1照明部22にてスパウト13の天面を照明した上で、スパウト13周辺を撮影部21にて撮影して第1撮影画像を生成する。第2撮影制御部25は、第1照明部22を消灯させて、第2照明部23にて接続箇所周辺を照明した状態で、スパウト13周辺を撮影部21にて撮影して第2撮影画像を生成して出力する。   The first shooting control unit 24 turns off the second lighting unit 23, illuminates the top surface of the spout 13 with the first lighting unit 22, and then shoots the surroundings of the spout 13 with the shooting unit 21 to perform the first shooting. Generate a captured image. The second photographing control unit 25 turns off the first illumination unit 22 and illuminates the periphery of the connection point with the second illumination unit 23, and photographs the surroundings of the spout 13 with the photographing unit 21 to obtain a second photographed image. Is generated and output.

差分画像生成部26は、第1撮影画像と第2撮影画像との差分画像を生成する。スパウト不良判定部27は、差分画像に基づいて、スパウト13の取付位置の不良の有無を判定する。   The difference image generation unit 26 generates a difference image between the first captured image and the second captured image. The spout defect determination unit 27 determines whether or not the attachment position of the spout 13 is defective based on the difference image.

上述した第1撮影制御部24、第2撮影制御部25および差分画像生成部26の処理は、スパウチ14の第1面11b側と第2面11c側について、それぞれ行われる。すなわち、スパウチ14の第1面11b側と第2面11c側のそれぞれについて撮影を行って、スパウチ14の第1面11b側の差分画像と第2面11c側の差分画像とを出力する。スパウト不良判定部27は、スパウチ14の第1面11b側の差分画像と第2面11c側の差分画像とに基づいて、スパウト13の取付位置の不良の有無を判定する。   The processes of the first shooting control unit 24, the second shooting control unit 25, and the difference image generation unit 26 described above are performed on the first surface 11b side and the second surface 11c side of the spouch 14, respectively. That is, each of the first surface 11b side and the second surface 11c side of the spouch 14 is photographed, and the difference image on the first surface 11b side and the difference image on the second surface 11c side of the spouch 14 are output. The spout defect determination unit 27 determines whether or not there is a defect in the mounting position of the spout 13 based on the difference image on the first surface 11b side and the difference image on the second surface 11c side of the spout 14.

図7(a)は第1撮影制御部24が生成する第1撮影画像の一例を示す図である。上述したように、第1照明部22は、スパウト13の天面を照明するが、照明光の一部はパウチ本体11も照明するため、第1撮影画像には、スパウト13と絵柄11dの画像が写り込まれている。   FIG. 7A is a diagram showing an example of the first captured image generated by the first capturing control unit 24. As described above, the first lighting unit 22 illuminates the top surface of the spout 13, but part of the illumination light also illuminates the pouch body 11, so the first captured image includes the image of the spout 13 and the pattern 11d. Is reflected.

図7(b)は第2撮影制御部25が生成する第2撮影画像の一例を示す図である。第2照明部23は、パウチ本体11とスパウト13との接続箇所周辺を影ができないように照明するため、第2撮影画像には、スパウト13と絵柄11dの画像が写り込まれている。   FIG. 7B is a diagram showing an example of the second photographed image generated by the second photographing control unit 25. Since the second illumination unit 23 illuminates the periphery of the connection between the pouch body 11 and the spout 13 so that no shadow can be cast, the image of the spout 13 and the pattern 11d is reflected in the second captured image.

差分画像生成部26は、図7(a)に示す第1撮影画像と、図7(b)に示す第2撮影画像との差分画像を生成する。第1撮影画像と第2撮影画像のいずれにも、絵柄11dが写り込んでいるため、第1撮影画像と第2撮影画像の少なくとも一方の輝度調整を行った上で、両画像の差分を取ると、両画像に含まれる絵柄11dを相殺することができ、図7(c)に示すように絵柄11dの画像を含まない差分画像を生成することができる。この結果、差分画像は、パウチ本体11とスパウト13との接続箇所付近の画像のみを含むことになり、パウチ本体11の開口部11aのめくれ不良と、パウチ本体11に挿入されたスパウト13の取付位置および取付角度の不良とを検出しやすくなる。   The difference image generation unit 26 generates a difference image between the first captured image shown in FIG. 7A and the second captured image shown in FIG. 7B. Since the pattern 11d is reflected in both the first captured image and the second captured image, the brightness of at least one of the first captured image and the second captured image is adjusted, and then the difference between the two images is obtained. By doing so, the patterns 11d included in both images can be offset, and a difference image that does not include the image of the patterns 11d can be generated as shown in FIG. 7C. As a result, the difference image includes only the image in the vicinity of the connection between the pouch body 11 and the spout 13, and the opening 11a of the pouch body 11 is not turned up and the spout 13 inserted in the pouch body 11 is attached. It becomes easy to detect defective position and mounting angle.

後述するように、スパウト不良判定部27は、図7(c)のような差分画像内に検査エリア11eを設定して、検査エリア11e内の画像に基づいて、パウチ本体11のめくれ不良とスパウト13の取付位置不良とを検査する。   As will be described later, the spout defect determination unit 27 sets the inspection area 11e in the difference image as shown in FIG. 7C, and based on the image in the inspection area 11e, the pouch body 11 has a defect of turning over and a spout. Inspect 13 for defective mounting position.

撮影部21は、一回の撮影では、パウチ本体11の第1面11b側と第2面11c側のいずれか一方のみの撮影画像を得ることができる。よって、パウチ本体11の第1面11b側と第2面11c側のそれぞれについて、第1撮影画像と第2撮影画像を生成して、第1面11b側の差分画像と、第2面11c側の差分画像とを生成する必要がある。   The photographing unit 21 can obtain a photographed image of only one of the first surface 11b side and the second surface 11c side of the pouch body 11 in one photographing. Therefore, the first captured image and the second captured image are generated for each of the first surface 11b side and the second surface 11c side of the pouch body 11, and the difference image on the first surface 11b side and the second surface 11c side are generated. It is necessary to generate the difference image of

スパウト不良判定部27は、パウチ本体11の第1面11b側と第2面11c側の少なくとも一方において、パウチ本体11とスパウト13との接続箇所に不良が検出されれば、そのスパウチ14を不良品と判定する。また、パウチ本体11の第1面11b側と第2面11c側の双方において、パウチ本体11とスパウト13との接続箇所に不良が検出されなければ、そのスパウチ14を良品と判定する。   If the spout defect determination unit 27 detects a defect at the connection point between the pouch body 11 and the spout 13 on at least one of the first surface 11b side and the second surface 11c side of the pouch body 11, the spout 14 is not detected. Judge as good product. Further, if no defect is detected in the connection portion between the pouch body 11 and the spout 13 on both the first surface 11b side and the second surface 11c side of the pouch body 11, the spouch 14 is determined as a good product.

図5では、第1照明部22と第2照明部23を用いてスパウト13の不良判定を行う例を説明したが、図8に示すように、さらに第3照明部31を設けてもよい。図8はスパウト検査装置1の内部構成の第2例を示すブロック図、図9は図8のスパウト検査装置1の模式的な斜視図、図10は図9のスパウト13の軸方向から見た平面図、図11は撮影部21による撮影範囲を示す図である。図8のスパウト検査装置1は、図5の構成に加えて、第3照明部31を有する。   Although the example in which the defect determination of the spout 13 is performed using the first illumination unit 22 and the second illumination unit 23 has been described with reference to FIG. 5, a third illumination unit 31 may be further provided as illustrated in FIG. 8. 8 is a block diagram showing a second example of the internal configuration of the spout inspection device 1, FIG. 9 is a schematic perspective view of the spout inspection device 1 of FIG. 8, and FIG. 10 is seen from the axial direction of the spout 13 of FIG. FIG. 11 is a plan view, and FIG. 11 is a diagram showing a shooting range by the shooting unit 21. The spout inspection device 1 of FIG. 8 has a third illumination unit 31 in addition to the configuration of FIG.

第3照明部31は、図9に示すように、パウチ本体11を間に挟んで、第2照明部23とは反対側に配置されている。例えば、第1照明部22と撮影部21がパウチ本体11の第1面11b側に配置されている場合、第3照明部31はパウチ本体11の第2面11c側に配置されている。第3照明部31は、パウチ本体11とスパウト13との接続箇所周辺を撮影する。第3照明部31の照明範囲である第2領域33の面積は、第1照明部22の照明範囲の面積とは必ずしも一致している必要はない。   As shown in FIG. 9, the third lighting unit 31 is arranged on the opposite side of the second lighting unit 23 with the pouch body 11 interposed therebetween. For example, when the first lighting unit 22 and the photographing unit 21 are arranged on the first surface 11b side of the pouch body 11, the third lighting unit 31 is arranged on the second surface 11c side of the pouch body 11. The third lighting unit 31 captures an image of the area around the connection between the pouch body 11 and the spout 13. The area of the second region 33, which is the illumination range of the third illumination section 31, does not necessarily have to match the area of the illumination range of the first illumination section 22.

第3照明部31は、第1照明部22と同タイミングで照明される。すなわち、第1撮影制御部24は、第2照明部23を消灯させて、第1照明部22でスパウト13の天面を照明しつつ、第3照明部31で第2領域33を照明した状態で、スパウト13周辺を撮影部21にて撮影して第1撮影画像を出力する。第2撮影制御部25は、第1照明部22と第3照明部31を消灯させて、第2照明部23で第1領域32を照明した状態で、スパウト13周辺を撮影部21にて撮影して第2撮影画像を出力する。   The third illuminator 31 is illuminated at the same timing as the first illuminator 22. That is, the first imaging control unit 24 turns off the second illumination unit 23, illuminates the top surface of the spout 13 with the first illumination unit 22, and illuminates the second region 33 with the third illumination unit 31. Then, the periphery of the spout 13 is photographed by the photographing unit 21 and the first photographed image is output. The second shooting control unit 25 turns off the first lighting unit 22 and the third lighting unit 31 and lights the first region 32 with the second lighting unit 23, and the shooting unit 21 shoots the surroundings of the spout 13. Then, the second captured image is output.

図11に示すように、第3照明部31の照明範囲である第2領域33は例えば矩形状であり、第2照明部23の照明範囲である第1領域32は例えば円形である。図11では、第2照明部23の照明範囲は、第3照明部31の照明範囲33を包含しているが、これは一例にすぎない。第1〜第3照明部22,23,33の照明範囲は任意である。   As shown in FIG. 11, the second region 33 that is the illumination range of the third illumination unit 31 is, for example, a rectangular shape, and the first region 32 that is the illumination range of the second illumination unit 23 is, for example, a circle. In FIG. 11, the illumination range of the second illumination section 23 includes the illumination range 33 of the third illumination section 31, but this is only an example. The illumination range of the first to third illumination units 22, 23, 33 is arbitrary.

パウチ本体11が半透明で、かつパウチ本体11の第1面11bと第2面11cの少なくとも一方に絵柄11dが描画されている場合には、第3照明部31の照明により、絵柄11dの画像が第1撮影画像に写し込まれる。第2撮影画像は、図7(b)に示した画像と同様である。よって、差分画像生成部26で第1撮影画像と第2撮影画像との差分を取ったときに、パウチ本体11に描画された絵柄11dが相殺された差分画像を生成することができる。よって、スパウト不良判定部27は、絵柄11dに影響されずに、スパウト13の不良の有無を正しく検出することができる。   When the pouch body 11 is translucent and the pattern 11d is drawn on at least one of the first surface 11b and the second surface 11c of the pouch body 11, the image of the pattern 11d is illuminated by the illumination of the third lighting unit 31. Is imprinted on the first captured image. The second captured image is similar to the image shown in FIG. Therefore, when the difference image generation unit 26 calculates the difference between the first captured image and the second captured image, it is possible to generate a difference image in which the pattern 11d drawn on the pouch body 11 is offset. Therefore, the spout defect determination unit 27 can correctly detect the presence or absence of a defect in the spout 13 without being influenced by the pattern 11d.

図12は本実施形態によるスパウト検査装置1の処理動作の一例を示すフローチャートである。まず、パウチ供給部3から一つずつパウチ本体11をスパウト挿入部5に供給する(ステップS1)とともに、スパウト13供給部4から一つずつスパウト13をスパウト挿入部5に供給する(ステップS2)。スパウト挿入部5では、パウチ本体11の開口部11aを開いて、開口部11aからスパウト13を挿入する(ステップS3)。次に、ヒートシール部6は、パウチ本体11の開口部11a付近に熱をかけてヒートシールする(ステップS4)。続いて、冷却部7は、ヒートシールした箇所を冷却して、シール効果を向上させる(ステップS5)。以上の工程により、パウチ本体11にスパウト13が挿入されたスパウチ14が作製される。   FIG. 12 is a flowchart showing an example of the processing operation of the spout inspection device 1 according to this embodiment. First, the pouch body 11 is supplied to the spout insertion part 5 one by one from the pouch supply part 3 (step S1), and the spouts 13 are supplied one by one from the spout 13 supply part 4 to the spout insertion part 5 (step S2). . In the spout insertion portion 5, the opening 11a of the pouch body 11 is opened, and the spout 13 is inserted through the opening 11a (step S3). Next, the heat seal part 6 applies heat to the vicinity of the opening 11a of the pouch body 11 to perform heat seal (step S4). Subsequently, the cooling unit 7 cools the heat-sealed portion to improve the sealing effect (step S5). Through the above steps, the spouch 14 in which the spout 13 is inserted into the pouch body 11 is manufactured.

次に、スパウト検査装置1は、パウチ本体11の第1面11b側を図5の第1例または図8の第2例に従って撮影して、第1面11b側のパウチ本体11のめくれ不良とスパウト13の位置不良の有無を検査する(ステップS6)。   Next, the spout inspection device 1 takes an image of the first surface 11b side of the pouch body 11 according to the first example of FIG. 5 or the second example of FIG. 8 to determine that the pouch body 11 on the first surface 11b side is not turned up. The spout 13 is inspected for a position defect (step S6).

次に、スパウト検査装置1は、パウチ本体11を裏返して、第2面11c側を図5の第1例または図8の第2例に従って撮影して、第2面11c側のパウチ本体11のめくれ不良の有無を検査する(ステップS7)。   Next, the spout inspection device 1 flips over the pouch body 11, photographs the second surface 11c side in accordance with the first example of FIG. 5 or the second example of FIG. 8, and then removes the pouch body 11 on the second surface 11c side. The presence / absence of a turning-over defect is inspected (step S7).

次に、スパウト検査装置1内のスパウト不良判定部27は、ステップS6とS7の検査結果に基づいて、作製したスパウチ14の良否判定を行う(ステップS8)。その結果、ステップS6とS7のいずれにおいても不良と判断されなければ、作製したスパウチ14を良品排出部8まで搬送する(ステップS9)。ステップS6とS7の少なくとも一方にて不良と判断されると、作製したスパウチ14を不良品排出部9まで搬送する(ステップS10)。   Next, the spout failure determination unit 27 in the spout inspection device 1 determines the quality of the produced spouch 14 based on the inspection results of steps S6 and S7 (step S8). As a result, if neither of the steps S6 and S7 is determined to be defective, the manufactured pouch 14 is conveyed to the non-defective product discharging portion 8 (step S9). When it is determined to be defective in at least one of steps S6 and S7, the produced pouch 14 is conveyed to the defective product discharge portion 9 (step S10).

図13は図12のステップS6とS7で行われるめくれ不良の検査の詳細な処理手順の一例を示すフローチャートである。まず、第1撮影制御部24は、第2照明部23を消灯させた状態で、第1照明部22にてパウチ本体11に挿入されたスパウト13の天面を照明した状態で、撮影部21にてパウチ本体11とスパウト13との接続箇所付近を撮影して第1撮影画像を生成する(ステップS11)。スパウト検査装置1が図5のような第3照明部31を有する場合は、第1撮影制御部24は、第1照明部22にてスパウト13の天面を照明し、かつ第3照明部31にてパウチ本体11の第2面11c側からパウチ本体11とスパウト13との接続箇所付近を照明した状態で、撮影部21にて撮影を行って、第1撮影画像を出力する。   FIG. 13 is a flowchart showing an example of a detailed processing procedure of the inspection of the turning-over defect performed in steps S6 and S7 of FIG. First, the first shooting controller 24 lights the top surface of the spout 13 inserted into the pouch body 11 by the first lighting unit 22 with the second lighting unit 23 turned off, and the shooting unit 21. At, the vicinity of the connection between the pouch body 11 and the spout 13 is photographed to generate a first photographed image (step S11). When the spout inspection apparatus 1 has the third illumination unit 31 as shown in FIG. 5, the first imaging control unit 24 illuminates the top surface of the spout 13 with the first illumination unit 22 and also the third illumination unit 31. In the state where the vicinity of the connection between the pouch body 11 and the spout 13 is illuminated from the second surface 11c side of the pouch body 11, the photographing unit 21 performs photographing and outputs the first photographed image.

次に、第2撮影制御部25は、第1照明部22を消灯させた状態で(第3照明部31がある場合は第3照明部31も消灯させた状態で)、第2照明部23にてパウチ本体11とスパウト13との接続箇所付近を照明した状態で、撮影部21にて接続箇所付近を撮影して、第2撮影画像を生成する(ステップS12)。   Next, the 2nd photography control part 25 is in the state which made the 1st illumination part 22 light-extinguish (when the 3rd illumination part 31 exists, also makes the 3rd illumination part 31 light-extinguish), and the 2nd illumination part 23. In the state where the vicinity of the connection between the pouch body 11 and the spout 13 is illuminated, the vicinity of the connection is photographed by the photographing unit 21 to generate a second photographed image (step S12).

次に、差分画像生成部26は、第1撮影画像と第2撮影画像との差分を取る画像処理を行って、第1撮影画像と第2撮影画像に写り込んだ絵柄11dの画像を相殺させた差分画像を生成する(ステップS13)。   Next, the difference image generation unit 26 performs image processing for obtaining a difference between the first captured image and the second captured image to cancel the image of the pattern 11d reflected in the first captured image and the second captured image. The difference image is generated (step S13).

次に、スパウト不良判定部27は、差分画像中に検査エリア11eを設定する(ステップS14、検査範囲設定部)。検査エリア11eは、めくれ不良がおきる範囲であるパウチ本体11とスパウト13との接続箇所付近に設定される。検査エリア11eは、例えば、図7(c)の破線枠内の差分画像である。   Next, the spout failure determination unit 27 sets the inspection area 11e in the difference image (step S14, inspection range setting unit). The inspection area 11e is set in the vicinity of the connection point between the pouch body 11 and the spout 13, which is a range in which the turning-over failure occurs. The inspection area 11e is, for example, a difference image within a broken line frame in FIG.

次に、スパウト不良判定部27は、差分画像中の検査エリア11e内の画像データを2値化する(ステップS15、2値化部)。スパウト13とパウチ本体11とは、互いに相違する明るさを有するため、2値化することで、スパウト13とパウチ本体11とを0と1で識別可能になる。   Next, the spout failure determination unit 27 binarizes the image data in the inspection area 11e in the difference image (step S15, binarization unit). Since the spout 13 and the pouch body 11 have different brightness from each other, the spout 13 and the pouch body 11 can be distinguished by 0 and 1 by binarizing.

次に、スパウト不良判定部27は、2値化した画像データに基づいて、スパウト13とパウチ本体11との面積を比較し、めくれ不良を判定する(ステップS16、面積検出部)。より具体的には、スパウト13の面積比率が所定の閾値よりも大きければ、めくれ不良が生じていると判断する。図13の処理は、パウチ本体11の第1面11b側と第2面11c側のそれぞれについて行われる。   Next, the spout failure determination unit 27 compares the areas of the spout 13 and the pouch body 11 on the basis of the binarized image data, and determines the turning over failure (step S16, area detection unit). More specifically, if the area ratio of the spout 13 is larger than a predetermined threshold value, it is determined that the turning-over failure has occurred. The process of FIG. 13 is performed for each of the first surface 11b side and the second surface 11c side of the pouch body 11.

図14は図12のステップS6で行われるスパウト13の取付位置の不良の検査の詳細な処理手順の一例を示すフローチャートである。このフローチャートは、スパウト13がパウチ本体11の中央に挿入されているセンターパウチの検査手順の一例を示している。   FIG. 14 is a flowchart showing an example of a detailed processing procedure of the inspection of the attachment position of the spout 13 performed in step S6 of FIG. This flowchart shows an example of the inspection procedure of the center pouch in which the spout 13 is inserted in the center of the pouch body 11.

まず、第1照明部22と第3照明部31の少なくとも一方による照明を行った状態で、パウチ本体11とスパウト13との接続箇所付近を撮影部21にて撮影する(ステップS21)。ステップS21の撮影画像に基づいて、図15(a)に示すように、スパウト13の頭部の位置を検出する(ステップS22)とともに、スパウト13の端部の位置を検出する(ステップS23)。   First, in a state where illumination is performed by at least one of the first illumination unit 22 and the third illumination unit 31, the imaging unit 21 captures an image of the vicinity of the connection between the pouch body 11 and the spout 13 (step S21). As shown in FIG. 15A, the position of the head of the spout 13 is detected based on the captured image of step S21 (step S22), and the position of the end of the spout 13 is detected (step S23).

次に、ステップS22とS23の検出結果に基づいて、図15(a)に示すように、スパウト13の頭部から端部までの距離d1を検出する(ステップS24)。次に、ステップS24で検出した距離d1が予め想定した範囲内の値であるか否かを判定する(ステップS25)。   Next, based on the detection results of steps S22 and S23, as shown in FIG. 15A, the distance d1 from the head to the end of the spout 13 is detected (step S24). Next, it is determined whether or not the distance d1 detected in step S24 is a value within a range assumed in advance (step S25).

次に、ステップS21の撮影画像に基づいて、図15(b)に示すように、スパウト13の中心位置を検出する(ステップS26)。次に、図15(b)に示すように、パウチ本体11の中心位置を検出する(ステップS27)。次に、ステップS26とS27で検出した中心位置同士間の距離d2を検出する(ステップS28)。次に、ステップS28で検出した距離d2が予め想定した範囲内の値であるか否かを判定する(ステップS29)。   Next, as shown in FIG. 15B, the center position of the spout 13 is detected based on the captured image of step S21 (step S26). Next, as shown in FIG. 15B, the center position of the pouch body 11 is detected (step S27). Next, the distance d2 between the center positions detected in steps S26 and S27 is detected (step S28). Next, it is determined whether or not the distance d2 detected in step S28 is a value within a range assumed in advance (step S29).

ステップS25の判定とステップS29の判定との少なくとも一方にてNOと判定された場合は、スパウト13の取付位置の不良が生じたと判定し(ステップS30)、両方ともYESと判定された場合は、スパウト13の取付位置の不良は生じていないと判定する(ステップS31)。   When NO is determined in at least one of the determination in step S25 and step S29, it is determined that the mounting position of the spout 13 is defective (step S30), and when both are determined to be YES, It is determined that the mounting position of the spout 13 is not defective (step S31).

このように、本実施形態では、パウチ本体11の開口部11aにスパウト13を挿入してシールした後、第1照明部22にてスパウト13の天面方向にスポット照明光を当てた状態で、パウチ本体11とスパウト13との接続箇所周辺を撮影した第1撮影画像と、第2照明部23にてパウチ本体11とスパウト13との接続箇所周辺に無影照明光を当てた状態で接続箇所周辺を撮影した第2撮影画像との差分画像を生成する。これにより、パウチ本体11が透明または半透明のシート部材で、かつシート表面に絵柄11dが描画されていても、その絵柄11dを相殺させた差分画像を得ることができる。よって、絵柄11dに影響されずに、差分画像によってパウチ本体11のめくれ不良やスパウト13の取付位置不良の有無を正しく検査できる。   As described above, in the present embodiment, after the spout 13 is inserted and sealed in the opening 11a of the pouch body 11, the spot illumination light is applied to the top surface direction of the spout 13 by the first illumination unit 22, A first photographed image of the area around the connection between the pouch body 11 and the spout 13 and a connection area around the connection between the pouch body 11 and the spout 13 in the second illumination unit 23 in the state where shadowless illumination light is applied to the connection area. A difference image from the second captured image obtained by capturing the periphery is generated. Thereby, even if the pouch body 11 is a transparent or semi-transparent sheet member and the pattern 11d is drawn on the sheet surface, a difference image in which the pattern 11d is offset can be obtained. Therefore, it is possible to correctly inspect whether the pouch body 11 is turned over or the spout 13 is attached at a wrong position by the difference image without being influenced by the design 11d.

本発明の態様は、上述した個々の実施形態に限定されるものではなく、当業者が想到しうる種々の変形も含むものであり、本発明の効果も上述した内容に限定されない。すなわち、特許請求の範囲に規定された内容およびその均等物から導き出される本発明の概念的な思想と趣旨を逸脱しない範囲で種々の追加、変更および部分的削除が可能である。   The aspects of the present invention are not limited to the individual embodiments described above, but include various modifications that can be conceived by those skilled in the art, and the effects of the present invention are not limited to the above-described contents. That is, various additions, changes and partial deletions can be made without departing from the conceptual idea and spirit of the present invention derived from the contents defined in the claims and the equivalents thereof.

1 スパウト検査装置、2 スパウト取付装置、3 パウチ供給部、4 スパウト供給部、5 スパウト挿入部、6 ヒートシール部、7 冷却部、8 良品排出部、9 不良品排出部、11 パウチ本体、11a 第1面、11b 第2面、12 吸着部材、13 スパウト、14 スパウチ、21 撮影部、22 第1照明部、23 第2照明部、24 第1撮影制御部、25 第2撮影制御部、26 差分画像生成部、27 スパウト不良判定部、   1 spout inspection device, 2 spout mounting device, 3 pouch supply part, 4 spout supply part, 5 spout insertion part, 6 heat seal part, 7 cooling part, 8 good product discharge part, 9 defective product discharge part, 11 pouch body, 11a 1st surface, 11b 2nd surface, 12 adsorption member, 13 spout, 14 spout, 21 photography part, 22 1st illumination part, 23 2nd illumination part, 24 1st photography control part, 25 2nd photography control part, 26 Difference image generation unit, 27 spout defect determination unit,

Claims (9)

パウチ本体の開口部にスパウトを挿入した状態で前記開口部をシールしたスパウチを検査するスパウト検査装置であって、
撮影部と、
前記スパウトの軸方向から、前記スパウトの天面をスポット照明光にて照明する第1照明部と、
前記パウチ本体と前記スパウトとの接続箇所周辺の第1領域を無影照明光にて照明する第2照明部と、
前記第2照明部を消灯させて、前記第1照明部にて前記スパウトの天面を照明した状態で、前記スパウト周辺を前記撮影部により撮影して第1撮影画像を生成する第1撮影制御部と、
前記第1照明部を消灯させて、前記第2照明部にて前記接続箇所周辺を照明した状態で、前記スパウト周辺を前記撮影部により撮影して第2撮影画像を生成する第2撮影制御部と、
前記第1撮影画像と前記第2撮影画像との差分画像を生成する差分画像生成部と、
前記差分画像に基づいて、前記スパウトの取付不良の有無を判定するスパウト不良判定部と、を備えるスパウト検査装置。
A spout inspection device for inspecting a spout that seals the opening in a state where the spout is inserted into the opening of the pouch body,
The shooting department,
A first illumination unit that illuminates the top surface of the spout with spot illumination light in the axial direction of the spout;
A second illumination unit that illuminates a first region around the connection between the pouch body and the spout with shadowless illumination light;
A first shooting control in which the second lighting unit is turned off and the top surface of the spout is illuminated by the first lighting unit, and the surroundings of the spout are photographed by the photographing unit to generate a first photographed image. Department,
A second photographing control unit that generates a second photographed image by photographing the periphery of the spout by the photographing unit in a state where the first lighting unit is turned off and the periphery of the connection point is illuminated by the second lighting unit. When,
A difference image generation unit that generates a difference image between the first captured image and the second captured image;
A spout inspection device, comprising: a spout failure determination unit that determines whether or not there is a mounting failure of the spout based on the difference image.
前記スパウト不良判定部が判定する前記スパウトの取付不良は、前記パウチ本体のめくれ不良と、前記スパウトの取付位置の不良と、の少なくとも一方を含む、請求項1に記載のスパウト検査装置。   The spout inspection device according to claim 1, wherein the spout attachment defect determined by the spout defect determination unit includes at least one of a pouch body flip-up defect and a spout attachment position defect. 前記差分画像生成部は、前記第1撮影画像および前記第2撮影画像に写し込まれた前記パウチ本体に描画された絵柄を見かけ上相殺させた前記差分画像を生成する、請求項1に記載のスパウト検査装置。   The difference image generation unit generates the difference image by apparently offsetting a pattern drawn on the pouch body that is imprinted on the first captured image and the second captured image. Spout inspection device. 前記第2照明部は、前記撮影部と前記パウチ本体との間に配置される、請求項1乃至3のいずれか一項に記載のスパウト検査装置。   The spout inspection device according to claim 1, wherein the second illumination unit is arranged between the imaging unit and the pouch body. 前記パウチ本体を間に挟んで、前記第2照明部とは反対側に配置され、前記パウチ本体と前記スパウトとの接続箇所周辺の第2領域を照明する第3照明部を備え、
前記第1撮影制御部は、前記第2照明部を消灯させて、前記第1照明部で前記スパウトの天面を照明しつつ、前記第3照明部で前記第2領域を照明した状態で、前記スパウト周辺を前記撮影部により撮影して前記第1撮影画像を生成し、
前記第2撮影部は、前記第1照明部および前記第3照明部を消灯させて、前記第2照明部で前記第1領域を照明した状態で、前記スパウト周辺を前記撮影部により撮影して前記第2撮影画像を生成する、請求項1乃至4のいずれか一項に記載のスパウト検査装置。
A third illuminating unit that is arranged on the opposite side of the second illuminating unit with the pouch body interposed therebetween and that illuminates a second region around a connection point between the pouch body and the spout,
The first imaging control unit turns off the second illumination unit, illuminates the top surface of the spout with the first illumination unit, and illuminates the second region with the third illumination unit, The surroundings of the spout are photographed by the photographing unit to generate the first photographed image,
The second photographing unit turns off the first illuminating unit and the third illuminating unit and illuminates the first region with the second illuminating unit, and photographs the area around the spout by the photographing unit. The spout inspection device according to any one of claims 1 to 4, which generates the second captured image.
前記第1撮影制御部は、前記スパウチの第1面および第2面のそれぞれについて、前記第1撮影画像を生成し、
前記第2撮影制御部は、前記スパウチの第1面および第2面のそれぞれについて、前記第2撮影画像を生成し、
前記差分画像生成部は、前記スパウチの第1面および第2面のそれぞれについて、前記差分画像を生成し、
前記スパウト不良判定部は、前記スパウチの第1面および第2面のそれぞれについて、各面での前記差分画像に基づいて前記スパウトの取付不良の有無を判定し、前記スパウチの第1面および第2面の少なくとも一方において前記取付不良があると判定されると、対応する前記スパウチを不良と判定する、請求項1乃至5のいずれか一項に記載のスパウト検査装置。
The first photographing control unit generates the first photographed image for each of the first surface and the second surface of the spouch,
The second photographing control unit generates the second photographed image for each of the first surface and the second surface of the spouch,
The difference image generation unit generates the difference image for each of the first surface and the second surface of the spouch,
The spout failure determination unit determines, for each of the first surface and the second surface of the spout, whether there is a mounting failure of the spout based on the difference image on each surface, and determines whether the spout has the first surface or the second surface. The spout inspection device according to claim 1, wherein when it is determined that the mounting failure is present on at least one of the two surfaces, the corresponding spouch is determined to be defective.
前記パウチ本体は、透明または半透明なシート部材で形成され、前記シート部材の少なくとも一部には、絵柄が描画されている、請求項1乃至6のいずれか一項に記載のスパウト検査装置。   The spout inspection device according to claim 1, wherein the pouch body is formed of a transparent or translucent sheet member, and a pattern is drawn on at least a part of the sheet member. 前記差分画像中に検査範囲を設定する検査範囲設定部と、
前記検査範囲内の画像を2値化画像に変換する2値化部と、
前記2値化画像に基づいて、2値の一方の面積を検出する面積検出部と、を備え、
前記スパウト不良判定部は、前記面積検出部で検出された面積に基づいて、前記パウチ本体のめくれが生じたか否かを判定する、請求項1乃至7のいずれか一項に記載のスパウト検査装置。
An inspection range setting unit for setting an inspection range in the difference image,
A binarization unit for converting an image within the inspection range into a binarized image;
An area detection unit that detects one of two areas based on the binary image,
The spout inspection device according to any one of claims 1 to 7, wherein the spout failure determination unit determines whether or not the pouch body is turned over, based on the area detected by the area detection unit. .
パウチ本体の開口部にスパウトを挿入した状態で前記開口部をシールしたスパウチを検査するスパウト検査方法であって、
第1照明部にて、前記スパウトの軸方向から前記スパウトの天面をスポット照明光にて照明し、
第2照明部にて、前記パウチ本体と前記スパウトとの接続箇所周辺の第1領域を無影照明光にて照明し、
前記第2照明部を消灯させて、前記第1照明部にて前記スパウトの天面を照明した状態で、前記スパウト周辺を撮影部により撮影して第1撮影画像を生成し、
前記第1照明部を消灯させて、前記第2照明部にて前記接続箇所周辺を照明した状態で、前記スパウト周辺を前記撮影部により撮影して第2撮影画像を生成し、
前記第1撮影画像と前記第2撮影画像との差分画像を生成し、
前記差分画像に基づいて、前記スパウトの取付不良の有無を判定するスパウト検査方法。
A spout inspection method for inspecting a spout that seals the opening in a state where the spout is inserted into the opening of the pouch body,
In the first illumination unit, the top surface of the spout is illuminated with spot illumination light from the axial direction of the spout,
In the second illumination unit, the first area around the connection between the pouch body and the spout is illuminated with shadowless illumination light,
With the second lighting unit turned off and the top surface of the spout illuminated by the first lighting unit, the surroundings of the spout are photographed by a photographing unit to generate a first photographed image,
With the first illumination unit turned off and the second illumination unit illuminating the periphery of the connection point, the image capturing unit captures the periphery of the spout to generate a second captured image,
Generating a difference image between the first captured image and the second captured image,
A spout inspection method for determining whether or not there is a mounting failure of the spout based on the difference image.
JP2016114721A 2016-06-08 2016-06-08 Spout inspection device and spout inspection method Active JP6686712B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016114721A JP6686712B2 (en) 2016-06-08 2016-06-08 Spout inspection device and spout inspection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016114721A JP6686712B2 (en) 2016-06-08 2016-06-08 Spout inspection device and spout inspection method

Publications (2)

Publication Number Publication Date
JP2017219450A JP2017219450A (en) 2017-12-14
JP6686712B2 true JP6686712B2 (en) 2020-04-22

Family

ID=60656385

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016114721A Active JP6686712B2 (en) 2016-06-08 2016-06-08 Spout inspection device and spout inspection method

Country Status (1)

Country Link
JP (1) JP6686712B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW202120198A (en) * 2019-08-13 2021-06-01 日商東京威力科創股份有限公司 Substrate processing apparatus, nozzle inspection method, and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04216445A (en) * 1990-12-17 1992-08-06 Asahi Chem Ind Co Ltd Device for inspecting bottle
JP2001315718A (en) * 2000-02-23 2001-11-13 Toyo Jidoki Co Ltd Sealing method of sealed portion of packaging container, heat-treated plate used for the sealing method, and inspecting method of sealed portion
JP4312474B2 (en) * 2003-03-05 2009-08-12 大日本印刷株式会社 Spout mounting device inspection system
JP4261221B2 (en) * 2003-03-05 2009-04-30 大日本印刷株式会社 Packaging inspection method and inspection device
WO2014171814A1 (en) * 2013-04-19 2014-10-23 Ipn Ip B.V. System and method for the assembly and collection of non-filled spouted pouches

Also Published As

Publication number Publication date
JP2017219450A (en) 2017-12-14

Similar Documents

Publication Publication Date Title
TWI598581B (en) Inspection apparatus and inspection method
JP2005127989A (en) Flaw detector and flaw detecting program
US8837809B2 (en) Method for detecting a bridge connecting failure
CN105184739A (en) Printed circuit board AOI detection image stitching method
JP2006226724A (en) Label inspection method and label inspection device
JP6686712B2 (en) Spout inspection device and spout inspection method
JP4783650B2 (en) PTP seal inspection device
JP6454913B2 (en) Inspection method for cap having bridge and inspection device for the cap
TWI676798B (en) Inspection device
JP5776467B2 (en) Defect inspection equipment
JP3989739B2 (en) Inspection device
JP5608925B2 (en) Glass bottle printing inspection equipment
JP2007212544A (en) Liquid crystal panel inspecting apparatus and its inspecting method
JP2012122912A (en) Determination method of inspection region and foreign matter inspection device
JP5959430B2 (en) Bottle cap appearance inspection device and appearance inspection method
JP6428554B2 (en) Inspection system, inspection method
KR20230130617A (en) Capsule marking device and method
JP2010151457A (en) Container label inspecting device
JP7296035B2 (en) Packaging film inspection device
JP6937647B2 (en) Optical display panel damage inspection method
KR20090110117A (en) Apparatus and method for the inspection of flat display
JP7069621B2 (en) Heat seal inspection equipment, heat seal inspection method, and program for heat seal inspection equipment
WO2021153057A1 (en) Three-dimensional shape measurement device, three-dimensional shape measurement method, and program
JP7290825B2 (en) Label inspection device
JP2004271238A (en) Method and apparatus for inspecting package

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190425

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200212

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200316

R150 Certificate of patent or registration of utility model

Ref document number: 6686712

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150