JP4671992B2 - Appearance inspection apparatus and image processing method thereof - Google Patents

Appearance inspection apparatus and image processing method thereof Download PDF

Info

Publication number
JP4671992B2
JP4671992B2 JP2007193687A JP2007193687A JP4671992B2 JP 4671992 B2 JP4671992 B2 JP 4671992B2 JP 2007193687 A JP2007193687 A JP 2007193687A JP 2007193687 A JP2007193687 A JP 2007193687A JP 4671992 B2 JP4671992 B2 JP 4671992B2
Authority
JP
Japan
Prior art keywords
image
inspection
inspected
line camera
divided
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.)
Expired - Fee Related
Application number
JP2007193687A
Other languages
Japanese (ja)
Other versions
JP2009031060A (en
Inventor
理恵 中川
大樹 西原
Original Assignee
アロン電機株式会社
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 アロン電機株式会社 filed Critical アロン電機株式会社
Priority to JP2007193687A priority Critical patent/JP4671992B2/en
Publication of JP2009031060A publication Critical patent/JP2009031060A/en
Application granted granted Critical
Publication of JP4671992B2 publication Critical patent/JP4671992B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、被検査物の周囲面の状態を検査する外観検査装置およびその画像処理方法に関する。   The present invention relates to an appearance inspection apparatus for inspecting a state of a peripheral surface of an object to be inspected and an image processing method thereof.

被検査物の外観を検査する外観検査装置として、例えば、特許文献1に記載されたものがある。特許文献1には、チップ部品を、所定角度の公転移動に連動して所定角度ずつ自転させ、そして、フィーダ上のチップ部品の上面像を第1のカメラにて撮像した後、チップ部品の側面像を第2から第5のカメラにて撮像し、また該チップ部品の下面像を第6のカメラにて撮像して該チップ部品の良否を順次判定する外観検査装置が記載されている。
特許文献1に記載の外観検査装置では、チップ部品の一面を1回で撮像するCCDカメラを使用しているので、被検査物の各面を検査する際には、複数回撮像する必要がある。この外観検査装置では、被検査物を自転させるだけでなく、公転させているので、撮像回数に応じてカメラを複数台ほど設置している。
As an appearance inspection apparatus for inspecting the appearance of an object to be inspected, for example, there is one described in Patent Document 1. In Patent Document 1, a chip component is rotated by a predetermined angle in conjunction with a revolving movement of a predetermined angle, and a top image of the chip component on a feeder is captured by a first camera, and then the side surface of the chip component is detected. An appearance inspection apparatus is described in which an image is picked up by second to fifth cameras, and a lower surface image of the chip part is picked up by a sixth camera to sequentially judge the quality of the chip part.
In the appearance inspection apparatus described in Patent Document 1, since a CCD camera that images one surface of a chip component at a time is used, when inspecting each surface of an object to be inspected, it is necessary to image multiple times. . In this appearance inspection apparatus, not only the object to be inspected is rotated but also revolved, so that a plurality of cameras are installed according to the number of times of imaging.

カメラを複数台設置するのでは、装置規模が大きくなり、装置のコストも増大してしまう。そこで、カメラを撮像素子がライン状に配列されたラインカメラとし、被検査物を回転させて周囲面をラインカメラで走査するように撮像し、その撮像した画像を結合すれば、被検査面全体を1枚の画像として撮像することができるので、1台のラインカメラで被検査物の外観を検査することができる。このような外観検査装置が特許文献2,3に記載されている。   If a plurality of cameras are installed, the scale of the apparatus increases and the cost of the apparatus also increases. Therefore, if the camera is a line camera in which imaging elements are arranged in a line, and the object to be inspected is rotated and the surrounding surface is scanned with the line camera, and the captured images are combined, the entire surface to be inspected is obtained. Can be imaged as a single image, so that the appearance of the inspection object can be inspected with one line camera. Such appearance inspection apparatuses are described in Patent Documents 2 and 3.

特許文献2には、被検査物を回転軸の回りで回転させつつ、被検査物の表面を、CCD等の光電素子が縦方向に1次元的に配列されたラインセンサーにより2回転分ほど撮像し、得られた撮像データからテンプレートマッチング手法を用いて特徴点を抽出することで、基準画像と同じパターンを見つけ出し、一回転分の検査画像を切り出して、被検査物の外面の印刷欠陥の有無を判別する円筒形容器の印刷検査装置が記載されている。   In Patent Document 2, the surface of the inspection object is imaged about two rotations by a line sensor in which photoelectric elements such as CCDs are arranged one-dimensionally in the vertical direction while rotating the inspection object around the rotation axis. Then, by extracting the feature points from the obtained image data using the template matching method, the same pattern as the reference image is found, the inspection image for one rotation is cut out, and the presence or absence of print defects on the outer surface of the inspection object A printing inspection apparatus for a cylindrical container for discriminating the above is described.

また、特許文献3には、コンベア上を移動する容器を、コンベアと共に同速度で移動するヘッド部により回転させ、回転させた容器の外周面をラインスキャンカメラで1.4周分ほど撮像し、カメラが撮影した映像を画像処理部にて基準画像と比較して、良否を判定する円筒形容器の外周囲検査装置が記載されている。   Further, in Patent Document 3, a container moving on a conveyor is rotated by a head unit that moves at the same speed together with the conveyor, and the outer peripheral surface of the rotated container is imaged about 1.4 times by a line scan camera, A device for inspecting the outer periphery of a cylindrical container is described in which a video taken by a camera is compared with a reference image by an image processing unit to determine whether the image is good or bad.

特開2000−203713号公報JP 2000-203713 A 特開2000−103039号公報JP 2000-103039 A 特開2005−227257号公報JP 2005-227257 A

検査面を検査するには、被検査物の1周分の画像があればよいが、特許文献2,3では、回転する被検査物の被検査面を2周分や1.4周分ほど撮像することで、検査対象である印刷パターンの画像や、ラベルの画像が途切れてしまうことを防止している。   In order to inspect the inspection surface, it suffices if there is an image for one round of the inspection object. However, in Patent Documents 2 and 3, the inspection surface of the rotating inspection object is equivalent to two or 1.4 laps By taking an image, it is possible to prevent the image of the print pattern to be inspected and the image of the label from being interrupted.

しかし、検査対象の画像が途切れないように2周分や1.4周分撮像していたのでは、被検査物を余計に回転させる時間が余分なので、検査に時間を要してしまう。また、撮像した画像のサイズが大きくなるため、画像の処理に更に時間を要してしまう。   However, if the image to be inspected is imaged for two or 1.4 laps so that the image to be inspected is not interrupted, extra time is required to rotate the inspection object, which requires time. In addition, since the size of the captured image increases, it takes more time to process the image.

この時間の増大は、被検査物が少なければ問題とならないが、大量に製造される製品を検査する場合には、大きな問題である。   This increase in time is not a problem when the number of objects to be inspected is small, but is a serious problem when inspecting products manufactured in large quantities.

そこで本発明は、短い検査時間で被検査物の外観の状態を検査することが可能な外観検査装置およびその画像処理方法を提供することを目的とする。   Therefore, an object of the present invention is to provide an appearance inspection apparatus and an image processing method thereof that can inspect the appearance state of an object to be inspected in a short inspection time.

本発明の外観検査装置は、被検査物の被検査面にある検査対象の状態を検査する外観検査装置において、前記被検査物を回転させる回転台と、少なくとも前記被検査面の1周分を順次撮像してそれぞれを走査画像として出力するラインカメラと、前記走査画像をそれぞれ結合した元画像を被検査面画像とし、前記被検査面画像に含まれる検査対象画像が分断されているか否かを判定し、前記検査対象画像が分断されていると判定されると、前記被検査面画像を前記被検査面の基準位置に対応する位置から2分割し、2分割した被検査面画像のそれぞれの位置を入れ替えて結合して検査画像とする画像処理部とを備えたことを特徴とする。   An appearance inspection apparatus according to the present invention is an appearance inspection apparatus for inspecting a state of an inspection object on an inspection surface of an object to be inspected, and includes a turntable for rotating the inspection object and at least one turn of the inspection surface. A line camera that sequentially captures and outputs each as a scanned image, and an original image obtained by combining the scanned images as an inspection surface image, and whether or not the inspection target image included in the inspection surface image is divided. When the determination is made and it is determined that the inspection target image is divided, the inspection surface image is divided into two from the position corresponding to the reference position of the inspection surface, and each of the inspection surface images divided into two is divided. The image processing unit includes an image processing unit that replaces the positions and combines them to form an inspection image.

また、本発明の外観検査装置の画像処理方法は、被検査物を回転させる回転台と、少なくとも1周分の被検査物の被検査面を順次撮像してそれぞれを走査画像として出力するラインカメラと、前記走査画像をそれぞれ結合した元画像を被検査面画像とし、前記被検査面画像に基づいて前記被検査面にある検査対象の状態を検査するための検査画像を生成する画像処理部とを備えた外観検査装置の画像処理方法であって、前記被検査面画像に含まれる検査対象画像が分断されているか否かを判定する分断判定ステップと、前記検査対象画像が分断されていると判定されると、前記被検査面画像を前記被検査面の基準位置に対応する位置から分割する画像分割ステップと、分割した被検査面画像のそれぞれの位置を入れ替えて結合して検査画像とする画像結合ステップとを含むことを特徴とする。   Further, the image processing method of the appearance inspection apparatus according to the present invention includes a turntable for rotating an object to be inspected, and a line camera that sequentially images at least one inspected surface of the object to be inspected and outputs each as a scanned image. And an image processing unit that generates an inspection image for inspecting the state of the inspection object on the inspection surface based on the inspection surface image, and an original image obtained by combining the scanned images with each other An image processing method for an appearance inspection apparatus comprising: a division determination step for determining whether or not an inspection target image included in the inspection surface image is divided; and the inspection target image is divided If determined, an image dividing step of dividing the inspection surface image from a position corresponding to a reference position of the inspection surface, and an inspection image obtained by combining the respective positions of the divided inspection surface images Characterized in that it comprises an image combining step that.

被検査物が回転台に搭載されて回転することで、ラインカメラによって被検査面である周囲面が順次撮像される。ラインカメラは少なくとも1周分の被検査面を順次撮像した画像を、走査画像として出力する。画像処理部は、まず、この走査画像を結合した元画像を被検査面画像とする。この被検査面画像は、任意の箇所からラインカメラで順次撮影した画像なので、被検査面にある検査対象を撮像した被検査対象画像が、途中から撮像が開始されることで2分割に分断した状態となっていることがある。そこで、画像処理部が、被検査面画像に含まれる検査対象画像が分断されているか否かを判定し、次に、画像処理部が、検査対象画像が分断されていると判定すると、被検査面画像を被検査面の基準位置に対応する位置から分割する。そして、分割した被検査面画像のそれぞれの位置を入れ替えて結合して検査画像とする。そうすることで、被検査物を多く回転させないために、検査対象となる検査対象画像が分断された画像となっていても、検査対象画像を元の連続した画像とすることができる。従って、被検査面の画像が1周分ほど連続して予め元画像内に含まれていなくても、検査を行うことができるので、被検査物を検査するために余計な回転をさせる必要がない。   As the object to be inspected is mounted on the turntable and rotates, the peripheral surface as the surface to be inspected is sequentially imaged by the line camera. The line camera outputs an image obtained by sequentially capturing the surface to be inspected for at least one round as a scanned image. The image processing unit first sets an original image obtained by combining the scanned images as an inspection surface image. Since the surface image to be inspected is an image that is sequentially captured by a line camera from an arbitrary location, the image to be inspected that is an image of the inspection target on the surface to be inspected is divided into two parts by starting imaging from the middle. It may be in a state. Therefore, the image processing unit determines whether or not the inspection target image included in the inspection surface image is divided, and then the image processing unit determines that the inspection target image is divided, The surface image is divided from the position corresponding to the reference position of the surface to be inspected. Then, the positions of the divided surface images to be inspected are interchanged to form an inspection image. By doing so, in order not to rotate the object to be inspected much, even if the inspection target image to be inspected is an divided image, the inspection target image can be made an original continuous image. Therefore, even if the image of the surface to be inspected is not included in the original image continuously for one round, the inspection can be performed, so that it is necessary to rotate extra to inspect the object to be inspected. Absent.

前記画像処理部は、前記画像処理部は、前記ラインカメラにより走査画像を1周分より多く結合した画像を元画像とし、前記元画像から1周分を切り出した切出画像を被検査面画像とするのが望ましい。回転台を回転させて被検査物の被検査面全体を撮像する際に、回転台の回転に回転むらがあると、1周分の元画像を2分割して位置を入れ替えて結合しても、繋ぎ目が一致しない場合がある。そこで、画像処理部が、被検査面を1周分より多く撮像した走査画像により元画像を生成し、この元画像から1周分を切り出した切出画像を被検査面画像とすることで、連続した被検査面1周分の画像を確実に得ることができる。   The image processing unit uses an image obtained by combining more than one round of scanned images by the line camera as an original image, and a cut-out image obtained by cutting out one round from the original image is a surface image to be inspected Is desirable. When imaging the entire surface to be inspected by rotating the turntable, if there is uneven rotation in the rotation of the turntable, even if the original image for one round is divided into two parts and the positions are changed and combined, , The joints may not match. Therefore, the image processing unit generates an original image from a scanned image obtained by capturing more than one round of the surface to be inspected, and a cut-out image obtained by cutting out one round from the original image is used as the surface to be inspected. An image for one continuous round of the inspection surface can be obtained with certainty.

前記回転台には、前記被検査面が回転する方向に沿って等間隔に配置され、前記ラインカメラにより前記被検査面と共に撮像されるマークが設けられ、前記画像処理部は、前記元画像に撮像されたマークの数に基づいて前記被検査面の1周分の長さを検出し、前記元画像から当該長さに基づいて前記被検査面の1周分を切り出しする機能を備えているのが望ましい。
回転台に回転むらがあると、順次撮像される元画像の時間方向の長さが変わってくる。そうなると、被検査面の1周分の長さを予め定め、その定めた長さで、元画像から被検査面の1周分を切り出して、分割した切出画像のそれぞれの位置を入れ替えて結合して検査画像とすると、結合部分が合致しないおそれがある。そこで、回転台に等間隔に配置されたマークがあれば、回転台に回転むらがあっても、回転むらに応じて撮像されたマーク同士の間隔は変わるが、マークの数には変わりがないので、このマークの数から被検査面の1周分の長さを決定することで、正確に切出画像を生成することができる。
The turntable is provided with marks that are arranged at equal intervals along the direction in which the surface to be inspected rotates, and is imaged together with the surface to be inspected by the line camera. A function of detecting the length of one round of the surface to be inspected based on the number of captured marks and cutting out one round of the surface to be inspected based on the length from the original image is provided. Is desirable.
If there is uneven rotation on the turntable, the length in the time direction of the sequentially captured original images changes. Then, the length of one round of the surface to be inspected is determined in advance, and one round of the surface to be inspected is cut out from the original image with the determined length, and the respective positions of the divided cut-out images are exchanged and combined. If the inspection image is used, there is a possibility that the joint portion does not match. Therefore, if there are marks arranged at equal intervals on the turntable, even if there is uneven rotation on the turntable, the interval between the captured images changes according to the rotation unevenness, but the number of marks does not change. Therefore, the cut image can be generated accurately by determining the length of one round of the surface to be inspected from the number of marks.

前記マークは、前記被検査面が回転する方向に沿って所定幅を有するものであるのが望ましい。切出画像を生成するときには、マークの位置を正確に検出する必要がある。しかし、ラインカメラで被検査面を撮像するときに、回転台の回転にむらがあると、元画像のマークが歪んだり抜けたりする可能性があり、正確にマークの位置を検出できないおそれがある。マークが、被検査面が回転する方向に沿って所定幅を有していると、ラインカメラに撮像される元画像に、マークがしっかりと撮像されるので、マークの位置を正確に検出することができる。   It is desirable that the mark has a predetermined width along a direction in which the surface to be inspected rotates. When generating a cutout image, it is necessary to accurately detect the position of the mark. However, when imaging the surface to be inspected with a line camera, if the rotation of the turntable is uneven, the mark in the original image may be distorted or missing, and the mark position may not be detected accurately. . If the mark has a predetermined width along the direction in which the surface to be inspected rotates, the mark is imaged firmly in the original image captured by the line camera, so the position of the mark can be detected accurately Can do.

前記回転台の回転に応じて、所定角度ごとに回転情報を出力するロータリエンコーダが設けられ、前記ラインカメラは、前記回転情報に基づいて前記被検査面を撮像するのが望ましい。回転台に回転むらがあっても、ラインカメラがロータリエンコーダから出力される回転情報に基づいて被検査面を撮像するので、回転むらによる元画像の歪みを抑制することができる。   It is desirable that a rotary encoder that outputs rotation information for each predetermined angle according to the rotation of the turntable is provided, and the line camera images the surface to be inspected based on the rotation information. Even if there is uneven rotation on the turntable, the line camera images the surface to be inspected based on the rotation information output from the rotary encoder, so that distortion of the original image due to uneven rotation can be suppressed.

本発明は、被検査面の画像が1周分ほど連続して予め元画像内に含まれていなくても、検査を行うことができるので、被検査物を検査するために余計な回転をさせる必要がない。よって、本発明は、短い検査時間で被検査物の外観の状態を検査することが可能である。   In the present invention, since the inspection image can be inspected even if the image of the inspection surface is not included in the original image continuously for one round, an extra rotation is performed to inspect the inspection object. There is no need. Therefore, this invention can test | inspect the state of the external appearance of a to-be-inspected object in short inspection time.

本発明の実施の形態に係る外観検査装置の一例であるラベル検査装置を、図面に基づいて説明する。図1は、本発明の実施の形態に係るラベル検査装置の概略平面図である。図2は、図1に示すラベル検査装置の概略斜視図である。図3は、図1に示すラベル検査装置の押圧ユニットを説明するための図である。図4は、図1に示すラベル検査装置のロータリエンコーダを説明するための図である。図5は、図1に示すラベル検査装置の検査装置本体の構成を説明するためのブロック図である。   A label inspection apparatus which is an example of an appearance inspection apparatus according to an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a schematic plan view of a label inspection apparatus according to an embodiment of the present invention. FIG. 2 is a schematic perspective view of the label inspection apparatus shown in FIG. FIG. 3 is a view for explaining a pressing unit of the label inspection apparatus shown in FIG. FIG. 4 is a diagram for explaining the rotary encoder of the label inspection apparatus shown in FIG. FIG. 5 is a block diagram for explaining the configuration of the inspection apparatus main body of the label inspection apparatus shown in FIG.

ラベル検査装置は、被検査物である焼酎のボトルの周囲面(被検査面)に貼られたラベルを検査対象として、ラベルの貼り付け状態やラベルへの印刷状態を検査するものである。
図1に示すようにラベル検査装置1は、焼酎が充填されたボトルBを搬送する搬入部2と、検査されたボトルBを搬送する搬出部3と、搬出部3により搬送されるボトルBの中から不良と判定されたボトルBを抜き出して搬送する不良品搬送部4と、ボトルBを検査する検査装置本体5とを備えている。
The label inspection apparatus inspects the label affixed state and the printed state on the label using a label affixed to the peripheral surface (inspected surface) of a shochu bottle as an inspection object.
As shown in FIG. 1, the label inspection apparatus 1 includes a carry-in unit 2 that conveys a bottle B filled with shochu, a carry-out unit 3 that carries the inspected bottle B, and a bottle B that is carried by the carry-out unit 3. A defective product transport unit 4 that extracts and transports a bottle B determined to be defective from the inside, and an inspection apparatus main body 5 that inspects the bottle B are provided.

搬入部2は、ボトルBを搭載して搬送する上流側コンベア21と、搬送されるボトルBの前後の間隔を一定に揃えるために、棒状体の周囲面全体に螺旋状の溝が上流から下流に向かうに従って徐々に広がり最終的に一定となるように形成されたタイミングスクリュー22と、タイミングスクリュー22により搬送されるボトルBをガイドするために上流側コンベア21を挟んでタイミングスクリュー22の反対側に設けられたガイド板23と、タイミングスクリュー22により整列したボトルBに同期して検査装置本体5へボトルBを取り込む上流側スターホイール24とを備えている。   The carry-in unit 2 has an upstream conveyor 21 that carries the bottle B and conveys it, and a spiral groove is formed on the entire peripheral surface of the rod-like body from the upstream in order to keep the front and back distances of the bottle B being conveyed constant. To the opposite side of the timing screw 22 across the upstream conveyor 21 to guide the bottle B conveyed by the timing screw 22 and the timing screw 22 that gradually spreads and finally becomes constant. A guide plate 23 provided and an upstream star wheel 24 for taking the bottle B into the inspection apparatus main body 5 in synchronization with the bottles B aligned by the timing screw 22 are provided.

搬出部3は、検査が終了したボトルBを検査装置本体5から取り出す下流側スターホイール31と、取り出したボトルBを搬送する下流側コンベア32とを備えている。   The carry-out unit 3 includes a downstream star wheel 31 that takes out the bottle B that has been inspected from the inspection apparatus main body 5, and a downstream conveyor 32 that conveys the taken out bottle B.

不良品搬送部4は、下流側コンベア32上のボトルBを押し出す選別部41と、選別部41により押し出された外観が不良と判定されたボトルBを搬送する不良品搬送コンベア42とを備えている。   The defective product transport unit 4 includes a sorting unit 41 that pushes out the bottles B on the downstream conveyor 32, and a defective product transport conveyor 42 that transports the bottles B whose appearance is judged to be defective by the sorting unit 41. Yes.

検査装置本体5は、上流側スターホイール24からのボトルBを取り込んで移動させる検査ステージ51と、検査ステージ51上のボトルBの周囲面を被検査面として撮像するラインカメラ52と、ラインカメラ52により撮像された画像を処理し、検査の判定を行う制御部53とを備えている。   The inspection apparatus body 5 includes an inspection stage 51 that takes in and moves the bottle B from the upstream star wheel 24, a line camera 52 that images the peripheral surface of the bottle B on the inspection stage 51 as an inspection surface, and a line camera 52. And a control unit 53 that processes the image picked up by the above and performs inspection determination.

検査ステージ51は、平面視して時計回りにボトルBを公転させるインデックステーブル511と、インデックステーブル511上に円描くように配置され、ボトルBの軸線を中心に水平回転させて、ボトルBを自転させる検査テーブル512と、検査テーブル512を回転させる3つのローラ513とを備えている。   The inspection stage 51 is arranged so as to draw a circle on the index table 511 that revolves the bottle B clockwise in plan view, and rotates the bottle B by rotating horizontally around the axis of the bottle B. An inspection table 512 to be rotated and three rollers 513 for rotating the inspection table 512 are provided.

インデックステーブル511の下方には、連続的な回転を発生させるモータ(図示せず)と、モータからの回転を所定角度ごとに停止するような間欠的な回転に変換してインデックステーブル511を駆動するインデックスユニット(図示せず)とが設けられている。インデックステーブル511の上方には、検査テーブル512上で自転しながら公転するボトルBを上から押さえる押圧ユニット514(図3参照)が設けられている。この押圧ユニット514は、インデックステーブル511の中央部から立設された支柱511aに配置された円形状の支持板511bに昇降可能に設けられている。   Below the index table 511, a motor (not shown) that generates continuous rotation, and the index table 511 is driven by converting the rotation from the motor into intermittent rotation that stops every predetermined angle. An index unit (not shown) is provided. Above the index table 511, there is provided a pressing unit 514 (see FIG. 3) that presses the bottle B revolving while rotating on the inspection table 512 from above. The pressing unit 514 is provided so as to be movable up and down on a circular support plate 511 b disposed on a support column 511 a erected from the center of the index table 511.

図4に示すように、検査テーブル512は、ボトルBを搭載して回転する回転台である。この検査テーブル512の周囲面の上部には、全周に渡って24個の円形状のマーク512aが等間隔に配置されている。マーク512aは、マーク512a同士の間隔が狭すぎて、検査テーブル512の回転むらによりマーク512a同士が繋がったような状態で撮像されない程度の間隔とするのが望ましい。   As shown in FIG. 4, the inspection table 512 is a turntable that mounts the bottle B and rotates. In the upper part of the peripheral surface of the inspection table 512, 24 circular marks 512a are arranged at equal intervals over the entire circumference. It is desirable that the marks 512a have such an interval that the images are not picked up in a state where the marks 512a are connected to each other due to uneven rotation of the inspection table 512 because the spaces between the marks 512a are too narrow.

3つのローラ513は、摩擦により検査テーブル512を回転駆動するために、周囲縁部に環状の弾性部材を設けた円盤状部材であり、駆動軸513aが図示しないモータに接続されている。そして、ラインカメラ52の前に位置するローラ513には、所定角度ごとに回転情報を出力するロータリエンコーダ515(図4参照)が取り付けられている。このロータリエンコーダ515は、通信部(図示せず)を介して制御部53に接続されている。   The three rollers 513 are disk-shaped members provided with an annular elastic member at the peripheral edge in order to rotationally drive the inspection table 512 by friction, and the drive shaft 513a is connected to a motor (not shown). A rotary encoder 515 (see FIG. 4) that outputs rotation information for each predetermined angle is attached to the roller 513 positioned in front of the line camera 52. The rotary encoder 515 is connected to the control unit 53 via a communication unit (not shown).

ラインカメラ52は、撮像素子がライン状に配列されていることで、ボトルBの検査面を、上下方向のラインごとに撮像して走査画像として制御部53へ出力するカメラである。   The line camera 52 is a camera that images the inspection surface of the bottle B for each line in the vertical direction and outputs it to the control unit 53 as a scanned image by arranging the image pickup elements in a line.

制御部53は、図5に示すように、ラベル検査装置1全体を統括制御する制御部本体531と、検査の状況が表示されCRTやLCDなどで構成される表示部532と、キーボードやマウスなどで構成される入力部533とを備えている。   As shown in FIG. 5, the control unit 53 includes a control unit main body 531 that performs overall control of the entire label inspection apparatus 1, a display unit 532 that displays an inspection status and is configured by a CRT, LCD, etc., a keyboard, a mouse, and the like The input part 533 comprised by this is provided.

制御部本体531は、ラインカメラ52からの走査画像を入力して画像処理を行って、ラベルの画像が分断されていない検査画像を出力する画像処理部531aと、検査画像に基づいて検査して結果を不良品搬送部4の選別部41へ通知する検査処理部531bとを備えている。この制御部53は、検査プログラムを動作させることで、画像処理部531a、検査処理部531bとして機能させることができるコンピュータとすることができる。   The control unit main body 531 inputs a scanned image from the line camera 52, performs image processing, and performs an inspection based on the inspection image, an image processing unit 531a that outputs an inspection image in which the label image is not divided. And an inspection processing unit 531b that notifies the sorting unit 41 of the defective product transporting unit 4 of the result. The control unit 53 can be a computer that can function as the image processing unit 531a and the inspection processing unit 531b by operating the inspection program.

以上のように構成された本発明の実施の形態に係るラベル検査装置1の動作を、図面に基づいて説明する。   The operation of the label inspection apparatus 1 according to the embodiment of the present invention configured as described above will be described with reference to the drawings.

まず、図1に示すように、ボトルBが上流側コンベア21より連なった状態で搬送されてくる。ボトルBは、ガイド板23に支持されながらタイミングスクリュー22により前後の間隔が一定に揃えられて上流側スターホイール24に到達する。次に、上流側スターホイール24により検査テーブル512にボトルBは移送される。移送されたボトルBは、インデックステーブル511の間欠的な回転により、まず最初のローラ513の位置まで移動する。すると最初のローラ513が検査テーブル512の周囲面に接触することで検査テーブル512が回転し始める。そして次のインデックステーブル511の間欠的な回転により2番目のローラ513の位置まで検査テーブル512が移動すると、2番目のローラ513と検査テーブル512とが接触して、検査テーブル512に更に回転が加わる。   First, as shown in FIG. 1, the bottle B is conveyed in a state of being connected to the upstream conveyor 21. While being supported by the guide plate 23, the bottle B reaches the upstream star wheel 24 with the front and rear intervals being made constant by the timing screw 22. Next, the bottle B is transferred to the inspection table 512 by the upstream side star wheel 24. The transferred bottle B moves to the position of the first roller 513 by intermittent rotation of the index table 511. Then, when the first roller 513 comes into contact with the peripheral surface of the inspection table 512, the inspection table 512 starts to rotate. Then, when the inspection table 512 moves to the position of the second roller 513 by the intermittent rotation of the next index table 511, the second roller 513 and the inspection table 512 come into contact with each other, and the inspection table 512 is further rotated. .

検査テーブル512には、焼酎が充填されたボトルBが搭載されていることで、相当な重量が加わっている。従って、ラインカメラ52に撮像する前に、事前に回転を検査テーブル512に付与しておくことで、安定した回転を得ることができる。そして、次のインデックステーブル511の間欠的な回転により、3番目のローラ513の位置まで検査テーブル512が移動することで、3番目のローラ513により、更に安定した回転状態となる。   A considerable weight is added to the inspection table 512 because the bottle B filled with the shochu is mounted. Therefore, stable rotation can be obtained by applying rotation to the inspection table 512 in advance before imaging by the line camera 52. Then, the inspection table 512 is moved to the position of the third roller 513 by the intermittent rotation of the next index table 511, so that the third roller 513 becomes a more stable rotation state.

ラインカメラ52の前に位置するローラ513が所定角度となる度にロータリエンコーダ515から回転情報が制御部53へ出力される。制御部53は、回転情報を受信するとラインカメラ52にボトルBの周囲面の撮像を指示する。つまり、ロータリエンコーダ515からの回転情報がラインカメラ52のシャッターを切るタイミングとなっている。従って、検査テーブル512の回転に応じて正確にラインカメラ52の撮像を行うことができる。   Rotation information is output from the rotary encoder 515 to the control unit 53 every time the roller 513 positioned in front of the line camera 52 has a predetermined angle. When receiving the rotation information, the control unit 53 instructs the line camera 52 to image the peripheral surface of the bottle B. That is, the rotation information from the rotary encoder 515 is the timing at which the shutter of the line camera 52 is released. Accordingly, the line camera 52 can be accurately imaged according to the rotation of the inspection table 512.

ラインカメラ52は、撮像する度に、撮像した画像をそれぞれ走査画像として制御部53へ出力する。図5に示す制御部53の画像処理部531aでは、この走査画像をそれぞれ結合して元画像とし、元画像に基づいて被検査面にあるラベルの状態を検査するための検査画像を生成する。   Each time the line camera 52 captures an image, the captured image is output to the control unit 53 as a scanned image. The image processing unit 531a of the control unit 53 shown in FIG. 5 combines the scanned images to form an original image, and generates an inspection image for inspecting the state of the label on the inspection surface based on the original image.

ここで、画像処理部531aの画像処理方法について、図6および図7に基づいて詳細に説明する。図6は、画像処理部531aの画像処理方法について説明するためのフローチャートである。図7(A)〜同図(E)は、画像処理部が処理する画像の一例を示す図である。   Here, the image processing method of the image processing unit 531a will be described in detail based on FIG. 6 and FIG. FIG. 6 is a flowchart for explaining the image processing method of the image processing unit 531a. FIGS. 7A to 7E are diagrams illustrating examples of images processed by the image processing unit.

まず、画像処理部531aは、ラインカメラ52から出力される走査画像を順次メモリに取り込んで結合することで、図7(A)に示すような1枚の元画像G1とする(ステップS10)。この場合、検査テーブル512が平面視して時計回りに回転するのであれば走査画像が元画像G1の左端から右端に積み重なるようにして結合される。本実施の形態では、元画像G1は、ボトルBの約1.2周分の走査画像に基づいて生成される。   First, the image processing unit 531a sequentially captures and combines the scanned images output from the line camera 52 into a memory, thereby forming one original image G1 as shown in FIG. 7A (step S10). In this case, if the inspection table 512 rotates clockwise in plan view, the scanned images are combined so as to be stacked from the left end to the right end of the original image G1. In the present embodiment, the original image G1 is generated based on the scanned image of the bottle B for about 1.2 turns.

この焼酎のボトルBには、検査対象である正面ラベルと背面ラベルと肩ラベルとが貼り付けられているので、元画像G1には、それぞれ検査対象画像として、正面ラベル画像L1と背面ラベル画像L2と肩ラベル画像L3とが含まれている。また、検査テーブル512の周囲面に配置されたマーク512aは、検査テーブル512が回転する方向に沿って設けられているので、マーク画像Mも撮像された時間方向に沿って含まれている。この元画像G1では、ラインカメラ52が撮像を開始する位置が、それぞれのボトルBで定まっていないため、正面ラベル画像L1と肩ラベル画像L3とが分断された状態となっている。   Since the front label, the rear label, and the shoulder label, which are inspection targets, are attached to the shochu bottle B, the front label image L1 and the rear label image L2 are respectively included in the original image G1 as inspection target images. And a shoulder label image L3. Further, since the mark 512a arranged on the peripheral surface of the inspection table 512 is provided along the direction in which the inspection table 512 rotates, the mark image M is also included along the time direction in which the image is captured. In the original image G1, the position where the line camera 52 starts imaging is not determined for each bottle B, so the front label image L1 and the shoulder label image L3 are separated.

次に、画像処理部531aは、この元画像G1から外周面(被検査面)の1周分を切り出して、図7(B)に示すような切出画像G2を生成して被検査面画像とする(画像切出ステップ)。本実施の形態では、ボトルBの約1.2周分の走査画像を結合して元画像G1としているが、ボトルBの1周分の走査画像を結合した元画像を被検査面画像とすることで、画像切出ステップを省略してもよい。しかし、1周分の走査画像のみで元画像G1を生成すると、検査テーブル512と検査テーブル512を回転させるローラ513とが接触し始めたときや、または接触している最中に、ローラ513が滑ることで、検査テーブル512の回転むらとなってしまい、検査テーブル512の回転角度とロータリエンコーダ515が検出するローラ513の回転角度とに差ができる。そうなると、ボトルBの周囲面の1周分に満たないおそれがある。従って、1周分より多く1.2周分の走査画像を取り込んで元画像G1とし、この元画像G1からボトルBの周囲面1周分を切り出して切出画像G2とすることで、確実にボトルBの周囲面の1周分を含む元画像G1とすることができる。   Next, the image processing unit 531a cuts out one round of the outer peripheral surface (inspected surface) from the original image G1, and generates a cut-out image G2 as shown in FIG. (Image cutting step). In the present embodiment, the scanned image of about 1.2 rounds of the bottle B is combined to form the original image G1, but the original image that combines the scanned images of the round of the bottle B is used as the inspection surface image. Thus, the image cutting step may be omitted. However, when the original image G1 is generated with only one scan image, the roller 513 is moved when the inspection table 512 and the roller 513 that rotates the inspection table 512 start to contact or during contact. By sliding, the rotation of the inspection table 512 becomes uneven, and a difference can be made between the rotation angle of the inspection table 512 and the rotation angle of the roller 513 detected by the rotary encoder 515. If so, there is a possibility that it is less than one round of the peripheral surface of the bottle B. Therefore, by capturing a scan image for 1.2 laps more than one round to obtain an original image G1, and cutting out one round of the peripheral surface of the bottle B from the original image G1 to obtain a cut-out image G2, it is ensured. The original image G1 including one round of the peripheral surface of the bottle B can be obtained.

このとき、ボトルBの周囲面の1周分の長さに対応するドット数で、元画像G1を切り出して切出画像を生成するようにしてもよいが、前記した回転むらにより、切り出した画像の時間方向の長さが、実際のボトルBの1周分とは異なる場合がある。そうなると、やはり、ボトルBの周囲面の1周分に満たないおそれがある。   At this time, the original image G1 may be cut out with the number of dots corresponding to the length of one circumference of the peripheral surface of the bottle B to generate a cutout image. The length in the time direction may differ from the actual one round of the bottle B. In that case, there is a possibility that it is less than one round of the peripheral surface of the bottle B.

そこで、画像処理部531aは、マーク画像Mを数えることでボトルBの1周分を検出する。本実施の形態では、検査テーブル512の周面に24個のマーク512aを等間隔に付与しているので、マーク画像Mの24個分の長さでボトルBの1周分となる(ステップS20)。従って、図7(A)に示すマーク画像Mが28個ほど撮像された元画像G1の左端から、中心が撮像されたマーク画像Mを左端マーク画像M1とし、左端マーク画像M1から24個目となるマーク画像Mを右端マーク画像M2として、左端マーク画像M1の中心から右端マーク画像M2までの中心までを元画像G1から切り出すことで、図7(B)に示すような切出画像G2を正確に生成することができる(ステップS30)。つまり、左端マーク画像M1と右端マーク画像M2とは、同じマーク512aである。   Therefore, the image processing unit 531a detects one round of the bottle B by counting the mark images M. In the present embodiment, since 24 marks 512a are provided on the peripheral surface of the inspection table 512 at equal intervals, the length of 24 mark images M is one round of the bottle B (step S20). ). Accordingly, from the left end of the original image G1 in which about 28 mark images M shown in FIG. 7A are captured, the mark image M whose center is captured is taken as the left end mark image M1, and the 24th from the left end mark image M1. The cut image G2 as shown in FIG. 7B is accurately obtained by cutting out the mark image M as the right end mark image M2 from the original image G1 from the center of the left end mark image M1 to the center of the right end mark image M2. (Step S30). That is, the left end mark image M1 and the right end mark image M2 are the same mark 512a.

マーク512aは、円形状に形成されている。しかし、このマーク512aは、三角形状、四角形状、それ以上の多角形状や、星形や異形状や、単なる目盛としてもよい。しかし、目盛のように等間隔に細線が並んでいるだけでは、検査テーブル512に前記したような回転むらがあると歪んだり抜けたりするおそれがある。本実施の形態では、マーク512aが被検査面であるボトルBの周囲面が回転する方向に沿って所定幅を有しているので、検査テーブル512に回転むらがあっても、マーク512aがマーク画像Mとしてしっかりと元画像G1に撮像されるので、歪んだり抜けたりすることがない。従って、画像処理部531aは、マーク512aの位置を正確に検出することができる。なお、このマーク512aの歪みや抜けを防止するためには、少なくともラインカメラ52のライン幅の2つ分以上の幅があればよい。   The mark 512a is formed in a circular shape. However, the mark 512a may be a triangle, a quadrangle, a polygon more than that, a star or an irregular shape, or a simple scale. However, if thin lines are arranged at regular intervals like a scale, if the inspection table 512 has the rotation unevenness as described above, the inspection table 512 may be distorted or removed. In the present embodiment, since the mark 512a has a predetermined width along the direction in which the peripheral surface of the bottle B, which is the surface to be inspected, rotates, the mark 512a is marked even if the inspection table 512 has uneven rotation. Since the original image G1 is firmly captured as the image M, there is no distortion or missing. Therefore, the image processing unit 531a can accurately detect the position of the mark 512a. In order to prevent distortion and omission of the mark 512a, it is sufficient that the width is at least two lines of the line camera 52.

次に、画像処理部531aは、切出画像G2に含まれる検査対象画像である正面ラベル画像L1と背面ラベル画像L2と肩ラベル画像L3とが分断されているか否かを判定する(分断判定ステップ)。この検査対象画像が分断されているか否かの判定は、予め定めたボトルBの基準位置から切出画像G2の右端、または左端までの距離を割り出すことで行う。図7(C)に示すように、例えば、正面ラベル画像L1の左上の角部K1をパターンマッチングにより検出し、切出画像G2の右端までの距離を割り出す。また、同様に、背面ラベル画像L2の右下の角部K2をパターンマッチングにより検出し、切出画像G2の左端までの距離を割り出す。そして、割り出した距離が所定距離より短ければ、検査対象画像が分断されていると判定する(ステップS40)。図7(C)に示す切出画像G2では、正面ラベル画像L1または背面ラベル画像L2のいずれかが分断されていることが判定されるので、この切出画像G2をそのまま画像処理をせずに検査画像として使用することができないことを認識する。検査対象画像が分断されていないと判定されれば、画像処理部531aは切出画像G2である被検査面画像をそのまま検査画像とする。   Next, the image processing unit 531a determines whether or not the front label image L1, the back label image L2, and the shoulder label image L3, which are inspection target images included in the cut image G2, are divided (partition determination step). ). Whether or not the inspection target image is divided is determined by determining a distance from a predetermined reference position of the bottle B to the right end or the left end of the cut image G2. As shown in FIG. 7C, for example, the upper left corner K1 of the front label image L1 is detected by pattern matching, and the distance to the right end of the cutout image G2 is determined. Similarly, the lower right corner K2 of the back label image L2 is detected by pattern matching, and the distance to the left end of the cutout image G2 is determined. If the determined distance is shorter than the predetermined distance, it is determined that the inspection target image is divided (step S40). In the cutout image G2 shown in FIG. 7C, since it is determined that either the front label image L1 or the back label image L2 is divided, the cutout image G2 is not subjected to image processing as it is. Recognize that it cannot be used as an inspection image. If it is determined that the inspection target image is not divided, the image processing unit 531a uses the inspection surface image, which is the cut image G2, as it is as the inspection image.

本実施の形態では、正面ラベル画像L1の左上の角部K1と、背面ラベル画像L2の右下の角部K2とをパターンマッチングの基準パターンとしているが、検査対象画像が分断されていないボトルBの周囲面全体の画像を予め準備し、この画像を基準パターンとして比較することで、判定してもよい。しかし、ボトルBの周囲面全体の画像を基準パターンとすると、メモリを大量に必要とするだけでなく、画像処理に時間を要するので、部分的なパターンを基準パターンとするのが望ましい。   In the present embodiment, the upper left corner K1 of the front label image L1 and the lower right corner K2 of the rear label image L2 are used as reference patterns for pattern matching. However, the bottle B in which the inspection target image is not divided. The determination may be made by preparing an image of the entire peripheral surface of the image in advance and comparing this image as a reference pattern. However, if the image of the entire peripheral surface of the bottle B is used as a reference pattern, not only a large amount of memory is required, but also time is required for image processing. Therefore, it is desirable to use a partial pattern as a reference pattern.

次に、検査対象画像が分断されていると判定された場合には、切出画像G2を分割する(画像分割ステップ)。本実施の形態では、正面ラベルと背面ラベルとの中間位置を基準位置としているので、図7(D)に示すように正面ラベル画像L1の左上の角部K1と、背面ラベル画像L2の右下の角部K2との中間位置を基準位置に対応する位置として分割して分割画像D1,D2とする(ステップS50)。この基準位置は、検査対象画像を分断しない位置であれば任意の位置とすることができるが、検査対象画像の分断を判定する際に、角部K1と角部K2の位置が判別できているので、その中間位置を基準位置とすることで、より早い実行速度を実現することができる。   Next, when it is determined that the inspection target image is divided, the cut-out image G2 is divided (image division step). In the present embodiment, since the intermediate position between the front label and the back label is set as the reference position, as shown in FIG. 7D, the upper left corner K1 of the front label image L1 and the lower right of the back label image L2 are displayed. An intermediate position with respect to the corner K2 is divided as a position corresponding to the reference position to obtain divided images D1 and D2 (step S50). The reference position may be any position as long as it does not divide the inspection target image, but the positions of the corner K1 and the corner K2 can be determined when determining the division of the inspection target image. Therefore, a faster execution speed can be realized by setting the intermediate position as the reference position.

最後に、画像処理部531aは、図7(E)に示すように、角部K1と角部K2の中間位置から分割した分割画像D1,D2のそれぞれ位置を入れ替えて検査画像Tを生成する(画像結合ステップ)。このようにして、画像処理部531aは、ボトルBの周囲面の1周分の画像を生成することができる(ステップS60)。   Finally, as shown in FIG. 7E, the image processing unit 531a generates the inspection image T by switching the positions of the divided images D1 and D2 divided from the intermediate positions of the corner K1 and the corner K2. Image combining step). In this way, the image processing unit 531a can generate an image for one round of the peripheral surface of the bottle B (step S60).

次に、画像処理部531aが生成した検査画像Tに基づいて、検査処理部531bが検査を行う。検査は、正面ラベル画像L1、背面ラベル画像L2や、肩ラベル画像L3の傾きが許容範囲か、正面ラベル画像L1、背面ラベル画像L2、肩ラベル画像L3のそれぞれの位置関係がずれているか、また、正しく貼られたときの正面ラベル画像、背面ラベル画像や、肩ラベル画像と比較して、めくれや汚れの発生や、間違ったラベルを貼っているか、正しいバーコードであるか、製造年月日が印刷されているかなどの検査を行う。   Next, based on the inspection image T generated by the image processing unit 531a, the inspection processing unit 531b performs an inspection. In the inspection, whether the inclination of the front label image L1, the back label image L2, and the shoulder label image L3 is within an allowable range, whether the positional relationship between the front label image L1, the back label image L2, and the shoulder label image L3 is shifted, Compared with the front label image, back label image, and shoulder label image when applied correctly, turning and smearing, incorrect labeling, correct barcode, date of manufacture Check whether or not is printed.

本実施の形態では、ロータリエンコーダ515から出力される角度情報は、ラインカメラ52が撮像するタイミングとしているだけだが、角度情報が出力されるそれぞれの時間間隔を測定して標準時間からのずれに基づいて検査画像Tの時間方向のずれを補正するようにしてもよい。そうすることで、正面ラベル画像L1、背面ラベル画像L2、または肩ラベル画像L3の時間方向の長さのずれを修正することができる。   In the present embodiment, the angle information output from the rotary encoder 515 is only the timing at which the line camera 52 captures an image. However, each time interval at which the angle information is output is measured and based on a deviation from the standard time. Thus, the deviation in the time direction of the inspection image T may be corrected. By doing so, the shift | offset | difference of the length of the time direction of the front label image L1, the back label image L2, or the shoulder label image L3 can be corrected.

もし、検査処理部531bが不良を検出した場合には、不良品搬送部4の選別部41へ通知することで、順次下流側へ移動するボトルBを不良品搬送コンベア42へ移送して良品と選別する。   If the inspection processing unit 531b detects a defect, it notifies the sorting unit 41 of the defective product transporting unit 4 so that the bottle B that is sequentially moved to the downstream side is transferred to the defective product transporting conveyor 42 as a non-defective product. Sort out.

このように、元画像G1に含まれる正面ラベル画像L1、背面ラベル画像L2や、肩ラベル画像L3が分断された画像となっていても、検査対象画像を元の連続した画像とすることができるので、ボトルBの周囲面の画像が連続して1周分ほど予め元画像内に含まれていなくても、検査を行うことができる。従って、ボトルBを検査するために余計に回転をさせる必要がないので、短い検査時間でボトルBの外観の状態を検査することが可能である。   As described above, even if the front label image L1, the back label image L2, and the shoulder label image L3 included in the original image G1 are divided, the inspection target image can be an original continuous image. Therefore, the inspection can be performed even if the image of the peripheral surface of the bottle B is not included in the original image in advance for one round. Accordingly, since it is not necessary to rotate the bottle B excessively in order to inspect the bottle B, it is possible to inspect the appearance of the bottle B in a short inspection time.

なお、本実施の形態では、被検査物として被検査面が円筒形状のボトルBを例に説明したが、被検査物が円筒形に限らず直方体状でも異形状でも、被検査物を回転させ、ラインカメラで撮像することで、周囲面を平坦面に展開した画像とすることができれば、同様に少ない回転数で検査することが可能である。   In the present embodiment, the bottle B whose inspection surface is a cylindrical shape has been described as an example of the inspection object. However, the inspection object is not limited to the cylindrical shape, and the inspection object is rotated regardless of whether it is a rectangular parallelepiped or an irregular shape. If it is possible to obtain an image in which the peripheral surface is developed into a flat surface by taking an image with a line camera, the inspection can be similarly performed with a small number of rotations.

また、本実施の形態に係るラベル検査装置1では、ボトルBがインデックステーブル511により公転しながら検査テーブル512により自転していたが、被検査物が直線状のコンベアで搬送されている途中で回転を付与されることで、被検査物の周囲面である検査面の状態を検査する、例えば特許文献3に記載の外周面検査装置のようなものとしてもよい。   Further, in the label inspection apparatus 1 according to the present embodiment, the bottle B is rotated by the inspection table 512 while revolving by the index table 511, but is rotated while the inspection object is being conveyed by the linear conveyor. It is good also as a thing like the outer peripheral surface test | inspection apparatus of the patent document 3, for example, which test | inspects the state of the test surface which is a surrounding surface of a to-be-inspected object.

本発明は、被検査物の周囲面に付与されたラベルを検査するラベル検査装置だけでなく、商品名や内容物の表示、製造年月日などが、被検査面に直接印刷されているような被検査物の外観を検査する外観検査装置およびその画像処理方法に好適である。   In the present invention, not only the label inspection apparatus for inspecting the label applied to the peripheral surface of the object to be inspected, but also the product name, display of contents, date of manufacture, etc. are directly printed on the surface to be inspected. It is suitable for an appearance inspection apparatus and an image processing method for inspecting the appearance of an inspected object.

本発明の実施の形態に係るラベル検査装置の概略平面図である。1 is a schematic plan view of a label inspection apparatus according to an embodiment of the present invention. 図1に示すラベル検査装置の概略斜視図である。It is a schematic perspective view of the label inspection apparatus shown in FIG. 図1に示すラベル検査装置の押圧ユニットを説明するための図である。It is a figure for demonstrating the press unit of the label inspection apparatus shown in FIG. 図1に示すラベル検査装置のロータリエンコーダを説明するための図である。It is a figure for demonstrating the rotary encoder of the label inspection apparatus shown in FIG. 図1に示すラベル検査装置の検査装置本体の構成を説明するためのブロック図である。It is a block diagram for demonstrating the structure of the inspection apparatus main body of the label inspection apparatus shown in FIG. 画像処理部の画像処理方法について説明するためのフローチャートである。It is a flowchart for demonstrating the image processing method of an image process part. (A)〜(E)は、画像処理部が処理する画像の一例を示す図である。(A)-(E) are figures which show an example of the image which an image process part processes.

符号の説明Explanation of symbols

1 ラベル検査装置
2 搬入部
21 上流側コンベア
22 タイミングスクリュー
23 ガイド板
24 上流側スターホイール
3 搬出部
31 下流側スターホイール
32 下流側コンベア
4 不良品搬送部
41 選別部
42 不良品搬送コンベア
5 検査装置本体
51 検査ステージ
511 インデックステーブル
511a 支柱
511b 支持板
512 検査テーブル
512a マーク
513 ローラ
513a 駆動軸
514 押圧ユニット
515 ロータリエンコーダ
52 ラインカメラ
53 制御部
531 制御部本体
531a 画像処理部
531b 検査処理部
532 表示部
533 入力部
G1 元画像
G2 切出画像
L1 正面ラベル画像
L2 背面ラベル画像
L3 肩ラベル画像
M マーク画像
M1 左端マーク画像
M2 右端マーク画像
T 検査画像
DESCRIPTION OF SYMBOLS 1 Label inspection apparatus 2 Carry-in part 21 Upstream conveyor 22 Timing screw 23 Guide plate 24 Upstream star wheel 3 Carry-out part 31 Downstream star wheel 32 Downstream conveyor 4 Defective article conveyance part 41 Sorting part 42 Defective article conveyance conveyor 5 Inspection apparatus Main body 51 Inspection stage 511 Index table 511a Support column 511b Support plate 512 Inspection table 512a Mark 513 Roller 513a Drive shaft 514 Press unit 515 Rotary encoder 52 Line camera 53 Control unit 531 Control unit main body 531a Image processing unit 531b Inspection processing unit 533 Input unit G1 Original image G2 Cut image L1 Front label image L2 Rear label image L3 Shoulder label image M Mark image M1 Left end mark image M2 Right end mark image T Inspection image

Claims (3)

被検査物の被検査面にある検査対象の状態を検査する外観検査装置において、
記被検査面を順次撮像してそれぞれを走査画像として出力するラインカメラと、
前記被検査面が回転する方向に沿って等間隔に配置され、前記ラインカメラにより前記被検査面と共に撮像されるマークが、前記ラインカメラが撮像する走査画像のライン幅の2つ分以上の幅で設けられた、前記被検査物を回転させる回転台と、
前記ラインカメラにより走査画像を1周分より多く結合した画像を元画像とし、前記元画像に撮像されたマークの数に基づいて前記被検査面の1周分の長さを検出し、前記元画像から当該長さに基づいて前記被検査面の1周分を切り出して前記切出画像を被検査面画像として、前記被検査面画像に含まれる検査対象画像が分断されているか否かを、前記検査対象をパターンマッチングして判定し、前記検査対象画像が分断されていると判定されると、前記被検査面画像を前記被検査面の基準位置に対応する位置から2分割し、2分割した被検査面画像のそれぞれの位置を入れ替えて結合して検査画像とする画像処理部とを備えた外観検査装置。
In the visual inspection device that inspects the state of the inspection object on the inspection surface of the inspection object,
A line camera for outputting each sequentially captured pre Symbol test surface as a scanned image,
The marks that are arranged at equal intervals along the direction in which the surface to be inspected rotates and are imaged together with the surface to be inspected by the line camera have a width that is equal to or more than two line widths of the scanned image captured by the line camera. A turntable for rotating the object to be inspected.
An image obtained by combining more than one round of scanned images by the line camera is used as an original image, and the length of one round of the surface to be inspected is detected based on the number of marks captured in the original image. Whether or not the inspection target image included in the inspection surface image is divided by cutting out one turn of the inspection surface based on the length from the image and using the cut image as the inspection surface image , When the inspection target is determined by pattern matching and it is determined that the inspection target image is divided, the inspection surface image is divided into two from the position corresponding to the reference position of the inspection surface. An appearance inspection apparatus comprising: an image processing unit that replaces and combines the positions of the inspected surface images to form an inspection image.
前記回転台の回転に応じて、所定角度ごとに回転情報を出力するロータリエンコーダが設けられ、
前記ラインカメラは、前記回転情報に基づいて前記被検査面を撮像するものである請求項1記載の外観検査装置。
A rotary encoder that outputs rotation information for each predetermined angle according to the rotation of the turntable is provided,
Said line camera, the appearance inspection apparatus of claim 1 Symbol placement is for imaging the inspection surface based on the rotation information.
被検査物を回転させる回転台と、前記被検査物の被検査面を順次撮像してそれぞれを走査画像として出力するラインカメラと、前記走査画像をそれぞれ結合した元画像を被検査面画像とし、前記被検査面画像に基づいて前記被検査面にある検査対象の状態を検査するための検査画像を生成する画像処理部とを備えた外観検査装置の画像処理方法であって、
前記回転台に前記被検査面が回転する方向に沿って等間隔に配置されたマークであって、前記ラインカメラが撮像する走査画像のライン幅の2つ分以上の幅で設けられたマークを、前記ラインカメラにより前記被検査面と共に撮像するステップと、
前記ラインカメラにより走査画像を1周分より多く結合した画像を元画像とし、前記元画像に撮像されたマークの数に基づいて前記被検査面の1周分の長さを検出するステップと、
前記元画像から当該長さに基づいて前記被検査面の1周分を切り出して前記切出画像を被検査面画像とするステップと、
前記被検査面画像に含まれる検査対象画像が分断されているか否かを、前記検査対象をパターンマッチングして判定する分断判定ステップと、
前記検査対象画像が分断されていると判定されると、前記被検査面画像を前記被検査面の基準位置に対応する位置から分割する画像分割ステップと、
分割した被検査面画像のそれぞれの位置を入れ替えて結合して検査画像とする画像結合ステップと
を含む外観検査装置の画像処理方法。
And a turntable for rotating the object to be inspected, a line camera for outputting each sequentially images the inspected surface of the object to be inspected as a scanned image, the original image obtained by combining the scanned image respectively inspected surface image, An image processing method of an appearance inspection apparatus comprising: an image processing unit that generates an inspection image for inspecting a state of an inspection object on the inspection surface based on the inspection surface image;
Marks arranged on the turntable at equal intervals along the direction in which the surface to be inspected rotates, and provided with a width equal to or more than two line widths of a scanning image captured by the line camera. Imaging with the surface to be inspected by the line camera;
An image obtained by combining more than one round of scanned images by the line camera as an original image, and detecting the length of one round of the surface to be inspected based on the number of marks captured in the original image;
Cutting out one round of the surface to be inspected based on the length from the original image and making the cut-out image as an inspected surface image;
Whether the inspection target image included in the surface image to be inspected is divided or not is determined by pattern matching the inspection target ,
When it is determined that the inspection target image is divided, an image dividing step of dividing the inspection surface image from a position corresponding to a reference position of the inspection surface;
An image processing method for an appearance inspection apparatus, comprising: an image combining step in which the positions of the divided surface images to be inspected are replaced and combined to form an inspection image.
JP2007193687A 2007-07-25 2007-07-25 Appearance inspection apparatus and image processing method thereof Expired - Fee Related JP4671992B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007193687A JP4671992B2 (en) 2007-07-25 2007-07-25 Appearance inspection apparatus and image processing method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007193687A JP4671992B2 (en) 2007-07-25 2007-07-25 Appearance inspection apparatus and image processing method thereof

Publications (2)

Publication Number Publication Date
JP2009031060A JP2009031060A (en) 2009-02-12
JP4671992B2 true JP4671992B2 (en) 2011-04-20

Family

ID=40401733

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007193687A Expired - Fee Related JP4671992B2 (en) 2007-07-25 2007-07-25 Appearance inspection apparatus and image processing method thereof

Country Status (1)

Country Link
JP (1) JP4671992B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103674972A (en) * 2013-12-17 2014-03-26 楚天科技股份有限公司 Method and device for increasing camera collecting speed of lamp inspection machine
KR20220124601A (en) * 2021-03-03 2022-09-14 주식회사 자이로시스템 Apparatus For Inspecting Pet Bottle

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5087106B2 (en) * 2010-06-07 2012-11-28 パナソニック デバイスSunx株式会社 Image processing system
KR101269524B1 (en) * 2012-12-21 2013-05-30 대광소결금속 주식회사 Apparatus for sorting of badness oilless bearing
KR101491566B1 (en) * 2012-12-21 2015-02-12 대광소결금속 주식회사 Oilless bearing a manufacturing process system
DE102014107221A1 (en) 2014-05-22 2015-11-26 Krones Ag Apparatus and computer implemented method for label inspection
KR101638032B1 (en) * 2015-12-28 2016-07-11 주식회사 풍산 Image detection machine of ammunition which is able to rotating and revolving the subject while transferring
CN106705840A (en) * 2016-12-07 2017-05-24 广州道注塑机械股份有限公司 Bottle pre-form size fast measuring device
CN106705839A (en) * 2016-12-07 2017-05-24 广州道注塑机械股份有限公司 Fast moving bottle pre-form size precision measuring device
CN108226185A (en) * 2016-12-16 2018-06-29 广东技术师范学院 The accurate acquisition device of bottle cap image and method based on iteration control
JP6914185B2 (en) * 2017-12-27 2021-08-04 サントリーホールディングス株式会社 Container inspection device
CN110479643B (en) * 2019-09-18 2020-06-19 青岛亚洲湾包装有限公司 Code spraying detection device for production package
IT202000006751A1 (en) * 2020-03-31 2021-10-01 Makro Labelling Srl Machine for inspecting containers
JP7100753B1 (en) 2021-11-26 2022-07-13 アサヒ飲料株式会社 Label and inspection method
JP7086439B1 (en) 2022-01-24 2022-06-20 大洋エレックス株式会社 Container inspection equipment
CN116140213B (en) * 2023-04-04 2023-07-11 西南科技大学 Intelligent material sorting equipment and integrated control system thereof

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004251855A (en) * 2003-02-21 2004-09-09 Toyo Seikan Kaisha Ltd Method for inspecting external surface of can

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004251855A (en) * 2003-02-21 2004-09-09 Toyo Seikan Kaisha Ltd Method for inspecting external surface of can

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103674972A (en) * 2013-12-17 2014-03-26 楚天科技股份有限公司 Method and device for increasing camera collecting speed of lamp inspection machine
CN103674972B (en) * 2013-12-17 2016-03-23 楚天科技股份有限公司 Improve method and the device of collected by camera speed in lamp inspection machine
KR20220124601A (en) * 2021-03-03 2022-09-14 주식회사 자이로시스템 Apparatus For Inspecting Pet Bottle
KR102447815B1 (en) 2021-03-03 2022-09-27 주식회사 자이로시스템 Apparatus For Inspecting Pet Bottle

Also Published As

Publication number Publication date
JP2009031060A (en) 2009-02-12

Similar Documents

Publication Publication Date Title
JP4671992B2 (en) Appearance inspection apparatus and image processing method thereof
US7329855B2 (en) Optical inspection of glass bottles using multiple cameras
WO2015008742A1 (en) Apparatus and method for marking edible object
JP5934268B2 (en) Complex processing system
JP2007069950A (en) Ptp sheet manufacturing device
CN106802304B (en) Appearance inspection device
JPH0143347B2 (en)
JP2017100796A (en) Container orientation detection device, container processing apparatus and container orientation detection method
JP5248007B2 (en) Label inspection method and apparatus
JP2012132929A (en) Label inspection method and apparatus
JP2005227257A (en) Inspection device for peripheral surface of cylindrical container
JP2019105610A (en) Distorted image inspection device and distorted image inspection method
JP6730559B2 (en) Method for printing scored tablet and scored tablet printing device
JP2011252886A (en) Inspection method for printed matter and inspection device therefor
JP4235800B2 (en) Can outer surface inspection method
JP2000105199A (en) Printing inspection method of cylindrical container
JP4477516B2 (en) Inspection device and PTP packaging machine
JP3327159B2 (en) Defect inspection equipment
WO2017134869A1 (en) Solid pharmaceutical preparation template creating method, computer-readable recording medium on which solid pharmaceutical preparation template creating program is recorded, solid pharmaceutical preparation print inspecting method, and solid pharmaceutical preparation print inspecting device
JP2561193B2 (en) Print pattern inspection device
JP2011112593A (en) Inspection method and inspection device of printed matter
JP2014106069A (en) Printed matter inspection method and printed matter inspection device
JP4368813B2 (en) Inspection device and PTP packaging machine
JP3055576B2 (en) Cylindrical body inspection device
JP4177204B2 (en) Container foreign matter inspection system

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101012

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101019

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101206

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110118

R150 Certificate of patent or registration of utility model

Ref document number: 4671992

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20140128

Year of fee payment: 3

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

LAPS Cancellation because of no payment of annual fees