JP2020057308A - Workpiece inspection device - Google Patents

Workpiece inspection device Download PDF

Info

Publication number
JP2020057308A
JP2020057308A JP2018189076A JP2018189076A JP2020057308A JP 2020057308 A JP2020057308 A JP 2020057308A JP 2018189076 A JP2018189076 A JP 2018189076A JP 2018189076 A JP2018189076 A JP 2018189076A JP 2020057308 A JP2020057308 A JP 2020057308A
Authority
JP
Japan
Prior art keywords
inspection
code
unit
image
work
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2018189076A
Other languages
Japanese (ja)
Other versions
JP7148209B2 (en
Inventor
孝樹 佐々木
Yoshiki Sasaki
孝樹 佐々木
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.)
Azbil Corp
Original Assignee
Azbil Corp
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 Azbil Corp filed Critical Azbil Corp
Priority to JP2018189076A priority Critical patent/JP7148209B2/en
Publication of JP2020057308A publication Critical patent/JP2020057308A/en
Application granted granted Critical
Publication of JP7148209B2 publication Critical patent/JP7148209B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

To provide a workpiece inspection device capable of automatically switching an inspection method even if there are a workpiece having a code and a workpiece not having a code as types for which inspection is performed.SOLUTION: A processing unit of a workpiece inspection device includes: a camera for imaging a photographing region to obtain an image; a code reading unit 103 for reading a code from the obtained image; a first inspection unit 106 for determining whether a workpiece is good or not on the basis of a read result by the code reading unit 103 by using a code image reflecting a code at the time of inspection; a second inspection unit 107 for determining whether the workpiece is good or not by an inspection method different from the first inspection unit 106 on the basis of the obtained image at the time of inspection; and an inspection switching unit 108 for validating inspection by the first inspection unit 106 if there is an image from which the code is successfully read out among images obtained for one workpiece and validating inspection by the second inspection unit 107 if there is no image from which the code is successfully read out at the time of step change.SELECTED DRAWING: Figure 2

Description

この発明は、ワークの検査を行うワーク検査装置に関する。   The present invention relates to a work inspection device for inspecting a work.

従来から、コードを用いたワークの検査方法が広く使用されている(例えば特許文献1参照)。この検査方法では、事前に、ワークに対して、1次元又は2次元のコード(例えばバーコード又はQRコード(登録商標、以下記載を省略する))を印刷又はラベルの貼付けによって設ける。そして、検査ラインを流れるワークをカメラで撮像し、このカメラにより得られた画像からコードを読取ることで、当該ワークの検査を行う。   2. Description of the Related Art Conventionally, a work inspection method using a code has been widely used (for example, see Patent Document 1). In this inspection method, a one-dimensional or two-dimensional code (for example, a barcode or a QR code (registered trademark, omitted from the following description)) is provided on a work in advance by printing or pasting a label. Then, the work flowing through the inspection line is imaged by a camera, and a code is read from the image obtained by the camera to inspect the work.

特開2012−114886号公報JP 2012-114886 A

しかしながら、検査を行う品種として、コードを有するワークの他に、コードを有していないワークがある場合には、品種が変更となる段取替えの際に、作業者が手動で検査方法及び設定を切替える必要がある。この場合、段取替えの工程に非常に手間と時間がかかることが多かった。   However, if there is a work that does not have a code as well as a work that has a code as a product type to be inspected, the operator manually sets the inspection method and setting during setup change when the product type is changed. You need to switch. In this case, the setup change process often takes a lot of trouble and time.

この発明は、上記のような課題を解決するためになされたもので、検査を行う品種としてコードを有するワークとコードを有しないワークとがある場合でも、自動的に検査方法を切替え可能なワーク検査装置を提供することを目的としている。   The present invention has been made in order to solve the above-described problem, and even when there are a work having a code and a work having no code as a type to be inspected, a work capable of automatically switching an inspection method. It is intended to provide an inspection device.

この発明に係るワーク検査装置は、撮像領域を撮像して画像を得る撮像部と、撮像部により得られた画像から、コードの読取りを行うコード読取り部と、検査の際に、コードが映ったコード画像を用い、コード読取り部による読取り結果に基づいてワークの正否を判定する第1検査部と、検査の際に、撮像部により得られた画像に基づいて、第1検査部とは異なる検査方法で、ワークの正否を判定する第2検査部と、段取替えの際に、撮像部により1つのワークに対して得られた画像のうち、コード読取り部によりコードの読取りに成功した画像がある場合に第1検査部による検査を有効とし、当該コード読取り部によりコードの読取りに成功した画像がない場合に第2検査部による検査を有効とする検査切換え部とを備えたことを特徴とする。   A work inspection apparatus according to the present invention includes an imaging unit that captures an image of an imaging region to obtain an image, a code reading unit that reads a code from an image obtained by the imaging unit, and a code that is reflected during inspection. A first inspection unit that uses a code image to determine whether the work is correct based on the result of reading by the code reading unit, and an inspection that differs from the first inspection unit based on an image obtained by the imaging unit during inspection. There is a second inspection unit that determines whether the work is correct or not, and an image that has been successfully read by the code reading unit among the images obtained for one work by the imaging unit during setup change. A test switching unit that validates the inspection by the first inspection unit and validates the inspection by the second inspection unit when there is no image whose code has been successfully read by the code reading unit. .

この発明によれば、上記のように構成したので、検査を行う品種としてコードを有するワークとコードを有しないワークとがある場合でも、自動的に検査方法を切替え可能となる。   According to the present invention, as described above, the inspection method can be automatically switched even when there are a work having a code and a work having no code as a type to be inspected.

実施の形態1に係るワーク検査装置の構成例を示す図である。FIG. 2 is a diagram illustrating a configuration example of a work inspection device according to the first embodiment. 実施の形態1における処理部の構成例を示す図である。5 is a diagram illustrating a configuration example of a processing unit according to Embodiment 1. FIG. 実施の形態1に係るワーク検査装置が適用される丁合機の構成例を示す図である。FIG. 2 is a diagram illustrating a configuration example of a collating machine to which the work inspection device according to the first embodiment is applied; 実施の形態1におけるカメラの撮像タイミングの一例を示す図である。5 is a diagram illustrating an example of imaging timing of a camera in Embodiment 1. FIG. 実施の形態1における処理部による段取替えでの動作例を示すフローチャートである。5 is a flowchart illustrating an operation example of setup change by a processing unit according to the first embodiment. 実施の形態1における処理部による検査動作例を示すフローチャートである。5 is a flowchart illustrating an example of an inspection operation by a processing unit according to the first embodiment. 実施の形態2における処理部による検査動作例を示すフローチャートである。13 is a flowchart illustrating an example of an inspection operation performed by a processing unit according to the second embodiment.

以下、この発明の実施の形態について図面を参照しながら詳細に説明する。
実施の形態1.
図1は実施の形態1に係るワーク検査装置1の構成例を示す図である。
ワーク検査装置1は、ワークの検査を行う。なお、ワークとしては、コードが印刷又はラベルの貼付け等によって設けられたワークと、コードを有していないワークとが存在する。コードの種類としては、例えば、一次元のバーコード、二次元のバーコード、QRコード、SPコード、ベリコード、マキシコード、CPコード、DataMatrix又はカメレオンコード等が挙げられ、コードリーダであるコード読取り部103で読取り可能なものであればよい。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
Embodiment 1 FIG.
FIG. 1 is a diagram illustrating a configuration example of a work inspection device 1 according to the first embodiment.
The work inspection device 1 inspects a work. The work includes a work provided with a code by printing or attaching a label, and a work having no code. Examples of the code type include a one-dimensional barcode, a two-dimensional barcode, a QR code, an SP code, a Vericode, a maxicode, a CP code, a DataMatrix or a chameleon code, and a code reading unit that is a code reader. Anything that can be read by 103 can be used.

ワーク検査装置1は、図1に示すように、カメラ(撮像部)101及び処理部102を備えている。
カメラ101は、所定の撮像領域を所定の撮像タイミングで撮像する。このカメラ101による撮像によって得られた画像を示すデータは、処理部102に出力される。
処理部102は、カメラ101により得られた画像に基づいて、ワークの検査を行う。この処理部102は、図2に示すように、コード読取り部103、コード画像設定部104、コード画像登録部105、第1検査部106、第2検査部107及び検査切換え部108を備えている。なお、処理部102は、システムLSI(Large Scale Integration)等の処理回路、又はメモリ等に記憶されたプログラムを実行するCPU(Central Processing Unit)等により実現される。
The work inspection apparatus 1 includes a camera (imaging unit) 101 and a processing unit 102, as shown in FIG.
The camera 101 images a predetermined imaging region at a predetermined imaging timing. Data indicating an image obtained by the imaging by the camera 101 is output to the processing unit 102.
The processing unit 102 inspects the workpiece based on the image obtained by the camera 101. As shown in FIG. 2, the processing unit 102 includes a code reading unit 103, a code image setting unit 104, a code image registration unit 105, a first inspection unit 106, a second inspection unit 107, and an inspection switching unit 108. . The processing unit 102 is realized by a processing circuit such as a system LSI (Large Scale Integration) or a CPU (Central Processing Unit) that executes a program stored in a memory or the like.

コード読取り部103は、カメラ101により得られた画像から、コードの読取りを行う。   The code reading unit 103 reads a code from an image obtained by the camera 101.

コード画像設定部104は、段取替えの際に、コード読取り部103によりコードが読取られた場合に、当該コードが映った画像をコード画像として設定する。   When a code is read by the code reading unit 103 at the time of setup change, the code image setting unit 104 sets an image in which the code appears as a code image.

コード画像登録部105は、コード画像設定部104により設定されたコード画像を示すデータを登録する。   The code image registration unit 105 registers data indicating the code image set by the code image setting unit 104.

なお、コード画像登録部105は、HDD(Hard Disk Drive)、DVD(Digital Versatile Disc)又はメモリ等によって構成される。
また図1では、コード画像登録部105がワーク検査装置1の内部に設けられている。しかしながら、これに限らず、コード画像登録部105はワーク検査装置1の外部に設けられていてもよい。
Note that the code image registration unit 105 is configured by a hard disk drive (HDD), a digital versatile disc (DVD), a memory, or the like.
In FIG. 1, the code image registration unit 105 is provided inside the work inspection device 1. However, the present invention is not limited to this, and the code image registration unit 105 may be provided outside the work inspection apparatus 1.

第1検査部106は、検査の際に、コード画像登録部105に登録されたデータが示すコード画像を用い、コード読取り部103による読取り結果に基づいてワークの正否を判定する。この際、第1検査部106は、カメラ101により1つのワークに対して得られた画像のうち、コード読取り部103により読取られたコードがコード画像におけるコードと同一である画像がある場合には、当該ワークは正しいと判定する。一方、第1検査部106は、カメラ101により1つのワークに対して得られた画像のうち、コード読取り部103により読取られたコードがコード画像におけるコードと同一である画像がない場合、又は、コード読取り部103によりコードの読取りに成功した画像がない場合には、当該ワークは正しくないと判定する。   At the time of inspection, the first inspection unit 106 uses a code image indicated by the data registered in the code image registration unit 105 and determines whether or not the work is correct based on the result of reading by the code reading unit 103. At this time, the first inspection unit 106 determines that if there is an image in which the code read by the code reading unit 103 is the same as the code in the code image among the images obtained for one work by the camera 101, The work is determined to be correct. On the other hand, the first inspection unit 106 determines whether there is no image in which the code read by the code reading unit 103 is the same as the code in the code image among the images obtained for one work by the camera 101, or If there is no image whose code has been successfully read by the code reading unit 103, it is determined that the work is not correct.

第2検査部107は、検査の際に、カメラ101により得られた画像(検査画像)に基づいて、第1検査部106とは異なる検査方法により、ワークの正否を判定する。この際、第2検査部107は、例えばパターンマッチング又は画像における外観検査等を用いて、ワークの正否を判定する。   At the time of inspection, the second inspection unit 107 determines whether or not the work is correct based on an image (inspection image) obtained by the camera 101 using an inspection method different from that of the first inspection unit 106. At this time, the second inspection unit 107 determines whether the work is correct using, for example, pattern matching or appearance inspection of an image.

第2検査部107による検査方法としては、コード読取り部103として使用している装置を入力機器として使用した検査方法が考えられる。例えば、コード読取り部103がレーザを使用している場合、レーザによるコードのスキャン及びワークのスキャンを同時に行い、第1検査部106によるコードを用いた検査と第2検査部107によるレーザを用いた外観検査とを併用する。また、第2検査部107による検査方法として、レーザによるスキャンの代わりに、ラインスキャナ、CCD(Charge Coupled Device)カメラ又はCMOS(Complementary Metal Oxide Semiconductor)カメラ等を用いて、画像検査を行う方法も考えられる。   As an inspection method by the second inspection unit 107, an inspection method using an apparatus used as the code reading unit 103 as an input device can be considered. For example, when the code reading unit 103 uses a laser, scanning of the code by the laser and scanning of the workpiece are performed simultaneously, and the inspection using the code by the first inspection unit 106 and the laser by the second inspection unit 107 are performed. Use with visual inspection. In addition, as an inspection method by the second inspection unit 107, a method of performing image inspection using a line scanner, a charge coupled device (CCD) camera, a complementary metal oxide semiconductor (CMOS) camera, or the like instead of scanning with a laser is also considered. Can be

検査切換え部108は、段取替えの際に、コード読取り部103によるコードの読取り結果に基づいて、第1検査部106による検査及び第2検査部107による検査を有効又は無効とする。この際、検査切換え部108は、カメラ101により1つのワークに対して得られた画像のうち、コード読取り部103によりコードの読取りに成功した画像がある場合には、第1検査部106による検査を有効とし、第2検査部107による検査を無効とする。一方、検査切換え部108は、カメラ101により1つのワークに対して得られた画像のうち、コード読取り部103によりコードの読取りに成功した画像がない場合には、第2検査部107による検査を有効とし、第1検査部106による検査を無効とする。   The inspection switching unit 108 enables or disables the inspection by the first inspection unit 106 and the inspection by the second inspection unit 107 based on the code reading result by the code reading unit 103 during the setup change. At this time, if there is an image whose code has been successfully read by the code reading unit 103 among the images obtained for one work by the camera 101, the inspection switching unit 108 performs the inspection by the first inspection unit 106. Is valid, and the inspection by the second inspection unit 107 is invalid. On the other hand, if there is no image whose code has been successfully read by the code reading unit 103 among the images obtained for one work by the camera 101, the inspection switching unit 108 performs the inspection by the second inspection unit 107. The inspection by the first inspection unit 106 is invalidated.

なお、ワークが有するコードの種類が複数種類考えられる場合には、ワーク検査装置1は、段取替え時のコード読取り処理をその種類分だけ繰り返し行うこともできる。   When there are a plurality of types of codes included in the work, the work inspection apparatus 1 can repeat the code reading process at the time of the setup change by the types.

次に、実施の形態1に係るワーク検査装置1の動作例について説明する。以下では、実施の形態1に係るワーク検査装置1が図3に示す丁合機2に適用された場合を示す。
丁合機2は、図3に示すように、搬送路201及び複数のストッカ(駒)202を備えている。搬送路201は、コンベア機構等である。ストッカ202は、搬送路201に沿って設けられ、折丁5(ワーク)が収納されている。この丁合機2では、搬送路201の搬送速度に合わせて、各ストッカ202にそれぞれ収納された折丁5が例えば最上部のものから1枚ずつ抜き出されて搬送路201上に供給される。これにより、丁合機2では、搬送路201の上流側から順に折丁5が重ねられ、丁合機2は最終的に折丁5を製本機に供給する。
この丁合機2に対し、ワーク検査装置1が有するカメラ101が、ストッカ202の上方にそれぞれ設けられている。そして、ワーク検査装置1が有する処理部102は、カメラ101により得られた画像から、折丁5の検査を行う。図3では処理部102の図示は省略している。また以下では、図4に示すように、カメラ101は、ストッカ202から抜き出される折丁5の搬送速度(抜き出し速度)に応じて、1枚の折丁5に対して撮像領域の位置を変えながら所定の大きさの画像を複数枚に渡って得るように動作が制御される。例えば、カメラ101は、4cm×4cmの撮像領域を480画素×480画素から成る画像とし、1枚の折丁5に対して計8枚(♯1〜♯8)の画像を得る。
Next, an operation example of the workpiece inspection device 1 according to the first embodiment will be described. Hereinafter, a case where the work inspection apparatus 1 according to the first embodiment is applied to the collating machine 2 shown in FIG. 3 will be described.
The collating machine 2 includes a transport path 201 and a plurality of stockers (pieces) 202, as shown in FIG. The transport path 201 is a conveyor mechanism or the like. The stocker 202 is provided along the transport path 201, and stores the signature 5 (work). In this collating machine 2, the signatures 5 stored in the respective stockers 202 are extracted one by one from the top one, for example, and supplied onto the transport path 201 in accordance with the transport speed of the transport path 201. . Thus, in the collating machine 2, the signatures 5 are sequentially stacked from the upstream side of the transport path 201, and the collating machine 2 finally supplies the signatures 5 to the bookbinding machine.
A camera 101 of the work inspection apparatus 1 is provided above the stocker 202 with respect to the collating machine 2. Then, the processing unit 102 of the work inspection apparatus 1 inspects the signature 5 from the image obtained by the camera 101. In FIG. 3, illustration of the processing unit 102 is omitted. In the following, as shown in FIG. 4, the camera 101 changes the position of the imaging area with respect to one signature 5 according to the transport speed (drawing speed) of the signature 5 extracted from the stocker 202. The operation is controlled so that a plurality of images of a predetermined size are obtained. For example, the camera 101 sets an image area of 4 cm × 4 cm as an image composed of 480 pixels × 480 pixels, and obtains a total of eight (# 1 to # 8) images for one signature 5.

まず、実施の形態1における処理部102による段取替えでの動作例について、図5を参照しながら説明する。なお、カメラ101は、所定の撮像領域を所定の撮像タイミングで撮像することで、ストッカ202から抜き出された折丁5を撮像する。上記の例では、カメラ101は、1枚の折丁5に対して計8枚(♯1〜♯8)の画像(ティーチング画像)を得る。このカメラ101による撮像によって得られたティーチング画像を示すデータは、処理部102に出力される。   First, an operation example of the setup change by the processing unit 102 according to the first embodiment will be described with reference to FIG. The camera 101 captures an image of the signature 5 extracted from the stocker 202 by capturing an image of a predetermined imaging region at a predetermined imaging timing. In the above example, the camera 101 obtains a total of eight images (teaching images) for one signature 5 (# 1 to # 8). Data indicating the teaching image obtained by the imaging by the camera 101 is output to the processing unit 102.

処理部102による段取替えでの動作例では、図5に示すように、まず、コード読取り部103は、カメラ101により得られたティーチング画像から、コードの読取りを行う(ステップST501)。なお、コードの読取り領域のサイズは、事前に設定される。   In the operation example of the setup change by the processing unit 102, as shown in FIG. 5, first, the code reading unit 103 reads a code from a teaching image obtained by the camera 101 (step ST501). The size of the code reading area is set in advance.

次いで、コード読取り部103は、カメラ101により1枚の折丁5に対して得られたティーチング画像のうち、コードの読取りに成功した画像があるかを判定する(ステップST502)。   Next, code reading section 103 determines whether or not there is an image whose code has been successfully read among the teaching images obtained for one signature 5 by camera 101 (step ST502).

このステップST502において、コード読取り部103がコードの読取りに成功した画像があると判定した場合には、コード画像設定部104は、当該コードが映った画像をコード画像として設定し、コード画像登録部105は当該コード画像を示すデータを登録する(ステップST503)。   In step ST502, when the code reading unit 103 determines that there is an image for which the code has been successfully read, the code image setting unit 104 sets an image in which the code is reflected as a code image, and sets the code image registration unit 105 registers data indicating the code image (step ST503).

また、検査切換え部108は、第1検査部106による検査を有効とし、第2検査部107による検査を無効とする(ステップST504)。   Further, inspection switching section 108 enables the inspection by first inspection section 106 and invalidates the inspection by second inspection section 107 (step ST504).

一方、ステップST502において、コード読取り部103がコードの読取りに成功した画像がないと判定した場合には、検査切換え部108は、第2検査部107による検査を有効とし、第1検査部106による検査を無効とする(ステップST505)。   On the other hand, in step ST502, when the code reading unit 103 determines that there is no image for which the code has been successfully read, the inspection switching unit 108 validates the inspection by the second inspection unit 107 and performs the inspection by the first inspection unit 106. The inspection is invalidated (step ST505).

このように、実施の形態1に係るワーク検査装置1は、段取替えの際に、コードの読取り結果に応じて検査方法を自動で切替え、また、コードが読取れた場合にはコード画像の設定を自動で行うため、段取替えにおける手間と時間を従来に対して削減可能となる。   As described above, the work inspection apparatus 1 according to the first embodiment automatically switches the inspection method according to the code reading result at the time of setup change, and sets the code image when the code is read. Is performed automatically, the labor and time required for the setup change can be reduced as compared with the related art.

次に、実施の形態1における処理部102による折丁5の検査動作例について、図6を参照しながら説明する。なお図6では、ワーク検査装置1において、第1検査部106による検査が有効となっているものとする。また、カメラ101は、所定の撮像領域を所定の撮像タイミングで撮像し、得られた画像(検査画像)を示すデータを処理部102に出力している。例えば、カメラ101は、4cm×4cmの撮像領域を480画素×480画素から成る画像とし、1枚の折丁5に対して計8枚の検査画像を得る。   Next, an example of the inspection operation of the signature 5 by the processing unit 102 according to the first embodiment will be described with reference to FIG. In FIG. 6, it is assumed that the inspection by the first inspection unit 106 is valid in the work inspection apparatus 1. Further, the camera 101 captures an image of a predetermined imaging region at a predetermined imaging timing, and outputs data indicating the obtained image (inspection image) to the processing unit 102. For example, the camera 101 sets a 4 cm × 4 cm imaging area to an image composed of 480 pixels × 480 pixels, and obtains a total of eight inspection images for one signature 5.

処理部102による折丁5の検査動作例では、図6に示すように、まず、コード読取り部103は、カメラ101により得られた検査画像から、コードの読取りを行う(ステップST601)。   In the inspection operation example of the signature 5 by the processing unit 102, as shown in FIG. 6, first, the code reading unit 103 reads a code from the inspection image obtained by the camera 101 (step ST601).

次いで、第1検査部106は、コード画像登録部105に登録されたデータが示すコード画像を用い、コード読取り部103による読取り結果に基づいて折丁5の正否を判定する(ステップST602)。この際、第1検査部106は、カメラ101により1枚の折丁5に対して得られた検査画像のうち、コード読取り部103により読取られたコードがコード画像におけるコードと同一である画像がある場合には、当該折丁5は正しいと判定する。一方、第1検査部106は、カメラ101により1枚の折丁5に対して得られた検査画像のうち、コード読取り部103により読取られたコードがコード画像におけるコードと同一である画像がない場合、又は、コード読取り部103によりコードの読取りに成功した画像がない場合には、当該折丁5は正しくないと判定する。   Next, first inspection unit 106 determines whether signature 5 is correct based on the result of reading by code reading unit 103 using the code image indicated by the data registered in code image registration unit 105 (step ST602). At this time, the first inspection unit 106 determines, among inspection images obtained by the camera 101 for one signature 5, an image in which the code read by the code reading unit 103 is the same as the code in the code image. In some cases, the signature 5 is determined to be correct. On the other hand, the first inspection unit 106 has no image in which the code read by the code reading unit 103 is the same as the code in the code image among the inspection images obtained for one signature 5 by the camera 101. In this case, or when there is no image whose code has been successfully read by the code reading unit 103, the signature 5 is determined to be incorrect.

なお上記では、検査切換え部108は、コード読取り部103によりコードの読取りに成功した画像がある場合に、第1検査部106による検査を有効とし、第2検査部107による検査を無効としている。しかしながら、これに限らず、検査切換え部108は、コード読取り部103によりコードの読取りに成功した画像がある場合に、第1検査部106による検査を有効とし、且つ、第2検査部107による検査も有効としてもよい。このように、実施の形態1に係るワーク検査装置1は、コードの読取りによる検査と他の検査方法による検査とを併用することで、検査の厳密性が向上し、不良品の流出可能性が低減可能となる。   In the above description, the inspection switching unit 108 validates the inspection by the first inspection unit 106 and invalidates the inspection by the second inspection unit 107 when there is an image whose code has been successfully read by the code reading unit 103. However, the present invention is not limited thereto, and the inspection switching unit 108 enables the inspection by the first inspection unit 106 and the inspection by the second inspection unit 107 when there is an image whose code has been successfully read by the code reading unit 103. May also be valid. As described above, the work inspection apparatus 1 according to the first embodiment improves the strictness of the inspection by using the inspection based on the code reading and the inspection based on another inspection method, and reduces the possibility of defective products flowing out. It can be reduced.

以上のように、この実施の形態1によれば、ワーク検査装置1は、撮像領域を撮像して画像を得るカメラ101と、カメラ101により得られた画像から、コードの読取りを行うコード読取り部103と、検査の際に、コードが映ったコード画像を用い、コード読取り部103による読取り結果に基づいてワークの正否を判定する第1検査部106と、検査の際に、カメラ101により得られた画像に基づいて、第1検査部106とは異なる検査方法で、ワークの正否を判定する第2検査部107と、段取替えの際に、カメラ101により1つのワークに対して得られた画像のうち、コード読取り部103によりコードの読取りに成功した画像がある場合に第1検査部106による検査を有効とし、当該コード読取り部103によりコードの読取りに成功した画像がない場合に第2検査部107による検査を有効とする検査切換え部108とを備えた。これにより、実施の形態1に係るワーク検査装置1は、検査を行う品種としてコードを有するワークとコードを有しないワークとがある場合でも、自動的に検査方法を切替え可能となる。   As described above, according to the first embodiment, the work inspection apparatus 1 includes the camera 101 that captures an image of the imaging region and obtains an image, and the code reading unit that reads a code from the image obtained by the camera 101. 103, a first inspection unit 106 that uses a code image in which a code is reflected at the time of inspection, and determines whether or not the work is correct based on the result of reading by the code reading unit 103. A second inspection unit 107 that determines whether the work is correct or not based on the image obtained by the first inspection unit 106 using an inspection method different from that of the first inspection unit 106, and an image obtained for one work by the camera 101 during setup change. Of these, when there is an image whose code has been successfully read by the code reading unit 103, the inspection by the first inspection unit 106 is validated, and the code reading unit 103 If there is no image that has been successfully taken and a test switching unit 108 to enable the inspection by the second inspection unit 107. As a result, the work inspection apparatus 1 according to the first embodiment can automatically switch the inspection method even when there are a work having a code and a work having no code as types to be inspected.

実施の形態2.
実施の形態1では、第1検査部106による検査が有効である場合、コード読取り部103によりコードの読取りに成功したか否かに関わらず、第1検査部106が検査を行う場合を示した。この場合、コードの印刷品質が悪い等の理由によってコードの読取りに失敗した場合に、良品であるにも関わらず不良品と判定してしまい、歩留まりが悪化する可能性がある。そこで、実施の形態2では、上記の課題を解決する方法について示す。実施の形態2に係るワーク検査装置1の構成例は、図1,2に示す実施の形態1に係るワーク検査装置1の構成例と同様である。
Embodiment 2 FIG.
In the first embodiment, when the inspection by the first inspection unit 106 is valid, the first inspection unit 106 performs the inspection regardless of whether the code reading unit 103 successfully reads the code. . In this case, when reading of the code fails due to reasons such as poor print quality of the code, the product may be determined to be a defective product although it is a good product, and the yield may be deteriorated. Therefore, in a second embodiment, a method for solving the above problem will be described. The configuration example of the work inspection device 1 according to the second embodiment is the same as the configuration example of the work inspection device 1 according to the first embodiment shown in FIGS.

なお、実施の形態2における第2検査部107は、実施の形態1で示した機能に加え、第1検査部106による検査が有効である状態において、検査の際に、カメラ101により1つのワークに対して得られた画像のうち、コード読取り部103によりコードの読取りに成功した画像がない場合に、当該ワークに対する再検査を行う機能も有する。   In addition, in addition to the functions described in the first embodiment, the second inspection unit 107 according to the second embodiment uses the camera 101 to perform one work by the camera 101 when the inspection by the first inspection unit 106 is valid. When there is no image whose code has been successfully read by the code reading unit 103 out of the images obtained for, the work is re-inspected.

次に、実施の形態2における処理部102による折丁5の検査動作例について、図7を参照しながら説明する。なお図7では、ワーク検査装置1において、第1検査部106による検査が有効となっているものとする。また、カメラ101は、所定の撮像領域を所定の撮像タイミングで撮像し、得られた画像(検査画像)を示すデータを処理部102に出力している。例えば、カメラ101は、4cm×4cmの撮像領域を480画素×480画素から成る画像とし、1枚の折丁5に対して計8枚の検査画像を得る。   Next, an example of an inspection operation of the signature 5 by the processing unit 102 according to the second embodiment will be described with reference to FIG. In FIG. 7, it is assumed that the inspection by the first inspection unit 106 is effective in the work inspection apparatus 1. Further, the camera 101 captures an image of a predetermined imaging region at a predetermined imaging timing, and outputs data indicating the obtained image (inspection image) to the processing unit 102. For example, the camera 101 sets a 4 cm × 4 cm imaging area to an image composed of 480 pixels × 480 pixels, and obtains a total of eight inspection images for one signature 5.

処理部102による折丁5の検査動作例では、図6に示すように、まず、コード読取り部103は、カメラ101により得られた検査画像から、コードの読取りを行う(ステップST701)。   In the inspection operation example of the signature 5 by the processing unit 102, as shown in FIG. 6, first, the code reading unit 103 reads a code from the inspection image obtained by the camera 101 (step ST701).

次いで、コード読取り部103は、カメラ101により1枚の折丁5に対して得られた検査画像のうち、コードの読取りに成功した画像があるかを判定する(ステップST702)。   Next, code reading section 103 determines whether there is an image whose code has been successfully read out of the inspection images obtained for one signature 5 by camera 101 (step ST702).

このステップST702において、コード読取り部103がコードの読取りに成功した画像があると判定した場合には、第1検査部106は、コード画像登録部105に登録されたデータが示すコード画像を用い、コード読取り部103による読取り結果に基づいて折丁5の正否を判定する(ステップST703)。この際、第1検査部106は、コード読取り部103によりコードの読取りに成功した画像のうち、コードがコード画像におけるコードと同一である画像がある場合には、当該折丁5は正しいと判定する。一方、第1検査部106は、コード読取り部103によりコードの読取りに成功したティーチング画像のうち、コードがコード画像におけるコードと同一である画像がない場合には、当該折丁5は正しくないと判定する。   In step ST702, if the code reading unit 103 determines that there is an image whose code has been successfully read, the first inspection unit 106 uses the code image indicated by the data registered in the code image registration unit 105, Whether the signature 5 is correct or not is determined based on the result of reading by the code reading unit 103 (step ST703). At this time, if there is an image in which the code is the same as the code in the code image among the images for which the code reading unit 103 has successfully read the code, the first inspection unit 106 determines that the signature 5 is correct. I do. On the other hand, if there is no image in which the code is the same as the code in the code image among the teaching images from which the code reading unit 103 has successfully read the code, the first inspection unit 106 determines that the signature 5 is incorrect. judge.

一方、ステップST702において、コード読取り部103がコードの読取りに成功した画像がないと判定した場合には、第2検査部107は、カメラ101により得られた検査画像に基づいて、第1検査部106とは異なる検査方法により、ワークの正否を判定する(ステップST704)。   On the other hand, in step ST702, when the code reading unit 103 determines that there is no image for which the code has been successfully read, the second inspection unit 107 performs the first inspection unit based on the inspection image obtained by the camera 101. Whether the work is correct or not is determined by an inspection method different from 106 (step ST704).

このように、実施の形態2に係るワーク検査装置1は、第1検査部106による検査が有効となっている状態において、検査の際にコードの読取りに失敗した場合には、第2検査部107により再検査を行う。これにより、実施の形態2に係るワーク検査装置1は、実施の形態1における効果に加え、コードの印刷品質が悪い等の理由によってコードの読取りに失敗した場合でも、不良品と判定してしまうことを抑制でき、歩留まりを改善可能となる。   As described above, in the state where the inspection by the first inspection unit 106 is enabled, the work inspection apparatus 1 according to the second embodiment, when the reading of the code fails at the time of the inspection, is performed by the second inspection unit. A retest is performed by 107. As a result, in addition to the effects of the first embodiment, the workpiece inspection apparatus 1 according to the second embodiment determines that the code is defective even if the code reading fails due to poor code print quality or the like. Can be suppressed, and the yield can be improved.

なお実施の形態1,2では、カメラ101が、1つのワークに対し、撮像領域の位置が異なる複数枚の画像を得る場合を示した。しかしながら、これに限らず、カメラ101は1つのワークに対してワーク全体を撮像した1枚の画像を得てもよい。なお、カメラ101が1つのワークに対して得る画像の枚数は、カメラ101の分解能と処理時間との関係に応じて適宜設定される。   In the first and second embodiments, the case where the camera 101 obtains a plurality of images at different positions of the imaging region for one workpiece has been described. However, the present invention is not limited to this, and the camera 101 may obtain one image of the entire work for one work. Note that the number of images obtained by the camera 101 for one work is appropriately set according to the relationship between the resolution of the camera 101 and the processing time.

なお、本願発明はその発明の範囲内において、各実施の形態の自由な組合わせ、或いは各実施の形態の任意の構成要素の変形、若しくは各実施の形態において任意の構成要素の省略が可能である。   In addition, within the scope of the present invention, the present invention can freely combine any of the embodiments, modify any of the components in each of the embodiments, or omit any of the components in each of the embodiments. is there.

1 ワーク検査装置
2 丁合機
5 折丁
101 カメラ(撮像部)
102 処理部
103 コード読取り部
104 コード画像設定部
105 コード画像登録部
106 第1検査部
107 第2検査部
108 検査切換え部
201 搬送路
202 ストッカ
DESCRIPTION OF SYMBOLS 1 Work inspection apparatus 2 Collator 5 Signature 101 Camera (imaging part)
102 processing unit 103 code reading unit 104 code image setting unit 105 code image registration unit 106 first inspection unit 107 second inspection unit 108 inspection switching unit 201 transport path 202 stocker

Claims (5)

撮像領域を撮像して画像を得る撮像部と、
前記撮像部により得られた画像から、コードの読取りを行うコード読取り部と、
検査の際に、コードが映ったコード画像を用い、前記コード読取り部による読取り結果に基づいてワークの正否を判定する第1検査部と、
検査の際に、前記撮像部により得られた画像に基づいて、前記第1検査部とは異なる検査方法で、ワークの正否を判定する第2検査部と、
段取替えの際に、前記撮像部により1つのワークに対して得られた画像のうち、前記コード読取り部によりコードの読取りに成功した画像がある場合に前記第1検査部による検査を有効とし、当該コード読取り部によりコードの読取りに成功した画像がない場合に前記第2検査部による検査を有効とする検査切換え部と
を備えたワーク検査装置。
An imaging unit that captures an image by capturing an imaging area;
A code reading unit that reads a code from an image obtained by the imaging unit;
At the time of inspection, using a code image in which a code is reflected, a first inspection unit that determines whether or not the work is correct based on a result of reading by the code reading unit;
At the time of inspection, based on an image obtained by the imaging unit, a second inspection unit that determines whether the work is correct or not using an inspection method different from that of the first inspection unit;
At the time of the setup change, among the images obtained for one workpiece by the imaging unit, when there is an image for which the code reading unit has successfully read the code, the inspection by the first inspection unit is validated, An inspection switching unit that validates the inspection by the second inspection unit when there is no image whose code has been successfully read by the code reading unit.
前記撮像部は、1つのワークに対し、撮像領域の位置が異なる複数枚の画像を得る
ことを特徴とする請求項1記載のワーク検査装置。
The work inspection apparatus according to claim 1, wherein the imaging unit obtains a plurality of images having different positions of an imaging region for one work.
段取替えの際に、前記コード読取り部によりコードが読取られた場合に、当該コードが映った画像を、コード画像として設定するコード画像設定部を備え、
前記第1検査部は、検査の際に、前記コード画像設定部により設定されたコード画像を用いる
ことを特徴とする請求項1又は請求項2記載のワーク検査装置。
At the time of setup change, when a code is read by the code reading unit, a code image setting unit that sets an image in which the code is reflected as a code image,
The work inspection apparatus according to claim 1, wherein the first inspection unit uses a code image set by the code image setting unit at the time of inspection.
前記検査切換え部は、段取替えの際に、前記撮像部により1つのワークに対して得られた画像のうち、前記コード読取り部によりコードの読取りに成功した画像がある場合に、前記第1検査部による検査に加え、前記第2検査部による検査も有効とする
ことを特徴とする請求項1から請求項3のうちの何れか1項記載のワーク検査装置。
The inspection switching unit is configured to perform the first inspection when the code reading unit successfully reads a code among images obtained for one workpiece by the imaging unit during the setup change. The work inspection apparatus according to any one of claims 1 to 3, wherein the inspection by the second inspection unit is also effective in addition to the inspection by the unit.
前記第2検査部は、前記第1検査部による検査が有効である状態において、検査の際に、前記撮像部により1つのワークに対して得られた画像のうち、前記コード読取り部によりコードの読取りに成功した画像がない場合に、当該ワークに対する再検査を行う
ことを特徴とする請求項1から請求項3のうちの何れか1項記載のワーク検査装置。
In the state where the inspection by the first inspection unit is valid, the second inspection unit may include, among the images obtained for the one workpiece by the imaging unit during the inspection, the code reading unit of the code reading unit. The work inspection apparatus according to any one of claims 1 to 3, wherein when there is no image that has been successfully read, the work is re-inspected.
JP2018189076A 2018-10-04 2018-10-04 Work inspection device Active JP7148209B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018189076A JP7148209B2 (en) 2018-10-04 2018-10-04 Work inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018189076A JP7148209B2 (en) 2018-10-04 2018-10-04 Work inspection device

Publications (2)

Publication Number Publication Date
JP2020057308A true JP2020057308A (en) 2020-04-09
JP7148209B2 JP7148209B2 (en) 2022-10-05

Family

ID=70107387

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018189076A Active JP7148209B2 (en) 2018-10-04 2018-10-04 Work inspection device

Country Status (1)

Country Link
JP (1) JP7148209B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021192373A1 (en) 2020-03-27 2021-09-30 株式会社Jvcケンウッド Display control device, display control method, and program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004535030A (en) * 2001-07-11 2004-11-18 ベヘルマッチャピジュ ヴァン デア ルー ビー.ブイ. Automatic clearing system
JP2013225916A (en) * 2008-04-18 2013-10-31 T-Mobile Usa Inc Robotic device tester
JP2014157519A (en) * 2013-02-18 2014-08-28 Keyence Corp Optical code reading system and reading control method of optical code
JP2018066660A (en) * 2016-10-20 2018-04-26 株式会社寺岡精工 Inspection device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004535030A (en) * 2001-07-11 2004-11-18 ベヘルマッチャピジュ ヴァン デア ルー ビー.ブイ. Automatic clearing system
JP2013225916A (en) * 2008-04-18 2013-10-31 T-Mobile Usa Inc Robotic device tester
JP2014157519A (en) * 2013-02-18 2014-08-28 Keyence Corp Optical code reading system and reading control method of optical code
JP2018066660A (en) * 2016-10-20 2018-04-26 株式会社寺岡精工 Inspection device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021192373A1 (en) 2020-03-27 2021-09-30 株式会社Jvcケンウッド Display control device, display control method, and program

Also Published As

Publication number Publication date
JP7148209B2 (en) 2022-10-05

Similar Documents

Publication Publication Date Title
EP3040906B1 (en) Visual feedback for code readers
JP6666046B2 (en) Image processing apparatus and image processing method
JP6701118B2 (en) Image processing apparatus and image processing method
JP2009168581A (en) Inspecting apparatus of inspection object
JP2011163766A (en) Image processing method and image processing system
WO2011129113A1 (en) Form processing device, form processing method, and recording medium
JP6860355B2 (en) Improved matrix symbol error correction method
JP2000509537A (en) Method and apparatus for decoding barcode symbols using module size ratio analysis
CN109580658B (en) Inspection method and inspection apparatus
JP2019117171A (en) Inspection device, inspection system, method for inspection, and program
JP2017183390A (en) Identification apparatus
JP7148209B2 (en) Work inspection device
US8736914B2 (en) Image scanning apparatus and methods of using the same
US20090121024A1 (en) Image processing apparatus, image processing method, and computer program stored in storage medium
CN113808108B (en) Visual detection method and system for defects of printing film
KR20170141297A (en) A bar-code scanner performance test device
JP7170486B2 (en) Work inspection device
JP2017198607A (en) Pattern defect inspection method and pattern defect inspection device
JP2018028636A (en) Mask inspection method
JP2017173048A (en) Inspection device and inspection method for object to be inspected
JP2020024111A (en) Inspection device and inspection method
JP2020024110A (en) Inspection device and inspection method
JPS61277248A (en) Method and device for discriminating picture quality of picture reader
JP2009229110A (en) Image input method and image input device
KR102575685B1 (en) Display panel inspection device and operation method thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210924

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220920

R150 Certificate of patent or registration of utility model

Ref document number: 7148209

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150