Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7658211B2 - IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND IMAGE PROCESSING PROGRAM - Google Patents
[go: Go Back, main page]

JP7658211B2 - IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND IMAGE PROCESSING PROGRAM - Google Patents

IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND IMAGE PROCESSING PROGRAM Download PDF

Info

Publication number
JP7658211B2
JP7658211B2 JP2021130264A JP2021130264A JP7658211B2 JP 7658211 B2 JP7658211 B2 JP 7658211B2 JP 2021130264 A JP2021130264 A JP 2021130264A JP 2021130264 A JP2021130264 A JP 2021130264A JP 7658211 B2 JP7658211 B2 JP 7658211B2
Authority
JP
Japan
Prior art keywords
image processing
barcode
image
bar
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2021130264A
Other languages
Japanese (ja)
Other versions
JP2023024148A (en
Inventor
直弘 飯田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron 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 Omron Corp filed Critical Omron Corp
Priority to JP2021130264A priority Critical patent/JP7658211B2/en
Publication of JP2023024148A publication Critical patent/JP2023024148A/en
Application granted granted Critical
Publication of JP7658211B2 publication Critical patent/JP7658211B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)

Description

本開示は、画像処理装置、画像処理方法、および画像処理プログラムに関する。 This disclosure relates to an image processing device, an image processing method, and an image processing program.

特開2013-40895号公報(特許文献1)は、バーコードの外観を検査する検査システムを開示する。当該検査システムは、バーコードを撮影した画像に対し欠陥検出領域を設定し、当該欠陥検出領域における濃度値の変化に基づいてカスレや欠けの領域(欠陥領域)を特定する。当該検査システムは、欠陥領域が所定の面積以上である場合にバーコードの外観が不良であると判定する。 JP 2013-40895 A (Patent Document 1) discloses an inspection system that inspects the appearance of a barcode. The inspection system sets a defect detection area in a photographed image of the barcode, and identifies areas of smudges or chipping (defective areas) based on changes in density values in the defect detection area. The inspection system determines that the appearance of the barcode is defective if the defective area is equal to or larger than a specified area.

特開2013-40895号公報JP 2013-40895 A

カスレや欠けは、バーの長手方向の先端に発生する場合もある。上述の検査システムでは、エッジの誤検出を防ぐために、バーコードの領域をバーの長さ方向に所定量だけ縮小した領域を欠陥検出領域に設定する。そのため、上述の検査システムでは、欠陥検出領域よりも外側の領域に発生しているカスレや欠けは検出されない。欠陥検出領域よりも外側の領域に発生しているカスレや欠けによりバーコードの外観が損なわれることもあり、カスレや欠けの発生箇所に関わらずバーコードの外観を検査可能な技術が必要とされる。 Sometimes smudges or chipping occurs at the longitudinal tip of the bar. In the inspection system described above, to prevent erroneous detection of edges, the defect detection area is set to an area that is the barcode area reduced by a specified amount in the length direction of the bar. Therefore, the inspection system described above does not detect smudges or chipping that occurs in areas outside the defect detection area. Since smudges or chipping that occurs in areas outside the defect detection area can mar the appearance of the barcode, there is a need for technology that can inspect the appearance of the barcode regardless of where the smudges or chipping occurs.

本開示の目的は、カスレや欠けの発生箇所に関わらずバーコードの外観を検査可能な画像処理装置、画像処理方法、および画像処理プログラムを提供することである。 The objective of this disclosure is to provide an image processing device, an image processing method, and an image processing program that can inspect the appearance of a barcode regardless of where blurring or chipping occurs.

本開示のある局面に従う画像処理装置は、複数のバーを含むバーコードを撮像した撮像画像を受け付ける受付部と、撮像画像における複数のバーに相当するバー領域を特定する特定部と、バー領域に基づいて検査対象領域を決定する決定部と、複数のバーに対応する特徴を有する画素で構成される少なくとも1つの部分領域を検査対象領域から抽出する抽出部と、抽出した少なくとも1つの部分領域の各々の長手方向の長さを算出する算出部と、当該長さの最小値が閾値未満である場合に、バーコードの外観が不良であると判定する判定部とを備える。 An image processing device according to an aspect of the present disclosure includes a receiving unit that receives a captured image of a barcode including multiple bars, a specifying unit that specifies a bar region in the captured image that corresponds to the multiple bars, a determining unit that determines an inspection target region based on the bar region, an extracting unit that extracts at least one partial region composed of pixels having characteristics corresponding to the multiple bars from the inspection target region, a calculating unit that calculates the longitudinal length of each of the at least one extracted partial region, and a determining unit that determines that the appearance of the barcode is poor if the minimum value of the lengths is less than a threshold value.

これにより、カスレや欠けの発生箇所に関わらずバーコードの外観を検査することができる。 This makes it possible to inspect the appearance of the barcode regardless of where the mark is smudged or missing.

上述の開示において、好ましくは、検査対象領域は、バー領域を上下左右の方向に所定幅だけ拡大した領域である。 In the above disclosure, the inspection target area is preferably an area obtained by expanding the bar area by a predetermined width in the up, down, left and right directions.

これにより、部分領域として抽出される領域にバーの先端部を含めることができる。 This allows the tip of the bar to be included in the area extracted as the subregion.

上述の開示において、好ましくは、画像処理装置は、ユーザによる入力操作に基づいて所定幅を設定する第1設定部をさらに備える。 In the above disclosure, preferably, the image processing device further includes a first setting unit that sets the predetermined width based on an input operation by a user.

これにより、ユーザの操作により所定幅を変更することが可能となる。 This allows the user to change the specified width.

上述の開示において、好ましくは、画像処理装置は、ユーザによる入力操作に基づいて閾値を設定する第2設定部をさらに備える。 In the above disclosure, preferably, the image processing device further includes a second setting unit that sets the threshold value based on an input operation by a user.

これにより、ユーザの操作により閾値を変更することが可能となる。 This allows the threshold to be changed by user operation.

上述の開示において、好ましくは、受付部は、バーコードの正解画像をさらに受け付ける。画像処理装置は、正解画像の少なくとも1つの部分領域の長手方向の長さの最小値に基づいて閾値を設定する第2設定部をさらに備える。 In the above disclosure, preferably, the receiving unit further receives a correct image of the barcode. The image processing device further includes a second setting unit that sets a threshold value based on the minimum value of the longitudinal length of at least one partial region of the correct image.

これにより、ユーザが閾値を決める必要がないことから、ユーザの利便性が向上する。 This improves user convenience by eliminating the need for users to set threshold values.

本開示の他の局面における、コンピュータが実行する画像処理方法は、複数のバーを含むバーコードを撮像した撮像画像を受け付けることと、撮像画像における複数のバーに相当するバー領域を特定することと、バー領域に基づいて検査対象領域を決定することと、複数のバーに対応する特徴を有する画素で構成される少なくとも1つの部分領域を検査対象領域から抽出することと、抽出した少なくとも1つの部分領域の各々の長手方向の長さを算出することと、当該長さの最小値が閾値未満である場合に、バーコードの外観が不良であると判定することとを備える。 In another aspect of the present disclosure, an image processing method executed by a computer includes receiving an image of a barcode including multiple bars, identifying a bar region in the captured image that corresponds to the multiple bars, determining an inspection target region based on the bar region, extracting at least one partial region from the inspection target region that is composed of pixels having characteristics corresponding to the multiple bars, calculating the longitudinal length of each of the at least one extracted partial region, and determining that the appearance of the barcode is poor if the minimum value of the lengths is less than a threshold value.

これにより、カスレや欠けの発生箇所に関わらずバーコードの外観を検査することができる。 This makes it possible to inspect the appearance of the barcode regardless of where the mark is smudged or missing.

本開示の他の局面における、画像処理プログラムは、上述の画像処理方法をコンピュータに実行させる。 In another aspect of the present disclosure, an image processing program causes a computer to execute the image processing method described above.

これにより、カスレや欠けの発生箇所に関わらずバーコードの外観を検査することができる。 This makes it possible to inspect the appearance of the barcode regardless of where the mark is smudged or missing.

本開示によれば、カスレや欠けの発生箇所に関わらずバーコードの外観を検査可能な画像処理装置、画像処理方法、および画像処理プログラムを提供することができる。 The present disclosure provides an image processing device, an image processing method, and an image processing program that can inspect the appearance of a barcode regardless of where blurring or chipping occurs.

本実施の形態における画像処理装置を含む画像処理システムの全体構成を示す概略図である。1 is a schematic diagram showing an overall configuration of an image processing system including an image processing device according to an embodiment of the present invention. 本実施の形態における画像処理装置の主要なハードウェア構成を示すブロック図である。1 is a block diagram showing a main hardware configuration of an image processing device according to an embodiment of the present invention; 本実施の形態における画像処理装置によって実現される機能の一例を示すブロック図である。FIG. 2 is a block diagram showing an example of functions realized by the image processing device according to the present embodiment. バー領域の特定方法を示す図である。FIG. 13 is a diagram showing a method for specifying a bar region. 検査対象領域を示す図である。FIG. 2値化レベルの設定画面の一例を示す図である。FIG. 13 is a diagram showing an example of a binarization level setting screen. 部分領域とその縦幅との一例を示す図である。FIG. 13 is a diagram showing an example of a partial region and its vertical width. 余裕幅の設定画面の一例を示す図である。FIG. 13 is a diagram showing an example of a margin width setting screen. 縦幅の閾値の設定画面の一例を示す図である。FIG. 13 is a diagram showing an example of a vertical width threshold setting screen. 本実施の形態における画像処理装置で実行される処理の一例を示す図である。FIG. 2 is a diagram illustrating an example of processing executed by the image processing device according to the present embodiment. 検査結果の出力形態の一例を示す図である。FIG. 11 is a diagram showing an example of an output form of the inspection result. バーコードの正解画像として1つの画像を用いる場合の処理の一例を示す図である。11A and 11B are diagrams illustrating an example of a process in which one image is used as a correct image of a barcode. バーコードの正解画像として複数の画像を用いる場合の処理の一例を示す図である。11A and 11B are diagrams illustrating an example of processing when a plurality of images are used as correct images of a barcode.

以下、図面を参照しつつ、本発明に従う実施の形態について説明する。以下の説明では、同一の部品および構成要素には同一の符号を付してある。それらの名称および機能も同じである。したがって、これらについての詳細な説明は繰り返さない。なお、以下で説明される実施の形態および変形例は、適宜選択的に組み合わされてもよい。 Below, an embodiment of the present invention will be described with reference to the drawings. In the following description, the same parts and components are given the same reference numerals. Their names and functions are also the same. Therefore, detailed descriptions thereof will not be repeated. Note that the embodiments and variations described below may be combined as appropriate.

[適用例]
図1を参照して、本発明の適用例について説明する。本適用例では、バーコードの外観を検査するための画像処理プログラムを実行する画像処理装置を説明する。
[Application example]
An application example of the present invention will be described with reference to Fig. 1. In this application example, an image processing device that executes an image processing program for inspecting the appearance of a barcode will be described.

一般的に、バーコードは、種々の媒体(たとえば商品の包装材に付されるラベル等)に印刷される。そのため、印刷不良によりバーコードにカスレや欠け等が発生する場合がある。そのような場合には、バーコードの可読性(バーコードリーダーでの読み取り可否)に加え、バーコードの外観が問題となる。 Generally, barcodes are printed on various media (such as labels attached to product packaging). As a result, printing defects can cause the barcode to become smudged or chipped. In such cases, in addition to the readability of the barcode (whether it can be read by a barcode reader), the appearance of the barcode becomes an issue.

なぜなら、バーコードの外観が不良な場合には、ユーザに不安を与えるからである。バーコードの可読性に問題は無かったとしても外観不良のバーコードが付された商品は、返品となる例が少なくない。ゆえに、バーコードの外観を検査することが求められる。 This is because if the appearance of the barcode is poor, it will cause anxiety to the user. Even if there is no problem with the readability of the barcode, there are many cases where products with barcodes that have poor appearances are returned. Therefore, it is necessary to inspect the appearance of the barcode.

図1は、本実施の形態における画像処理装置を含む画像処理システムの全体構成を示す概略図である。画像処理システム1は、画像処理装置100と、撮像装置500と、入力装置600と、出力装置700とを含む。撮像装置500、入力装置600、および出力装置700は、画像処理装置100と接続される。 Figure 1 is a schematic diagram showing the overall configuration of an image processing system including an image processing device in this embodiment. The image processing system 1 includes an image processing device 100, an imaging device 500, an input device 600, and an output device 700. The imaging device 500, the input device 600, and the output device 700 are connected to the image processing device 100.

撮像装置500は、一例として、レンズなどの光学系に加えて、CCD(Coupled Charged Device)やCMOS(Complementary Metal Oxide Semiconductor)センサといった、複数の画素に区画された撮像素子を含んで構成される。撮像装置500は、複数のバーBを含むバーコードCを撮像し、撮像によって取得した画像データ(以下、「撮像画像」とも称する)を画像処理装置100へ送信する。なお、図1に示す例では、バーコードCは、ラベルLに印刷されている。 The imaging device 500 includes, as an example, an imaging element partitioned into multiple pixels, such as a CCD (Coupled Charged Device) or CMOS (Complementary Metal Oxide Semiconductor) sensor, in addition to an optical system such as a lens. The imaging device 500 captures an image of a barcode C including multiple bars B, and transmits image data acquired by the image capture (hereinafter also referred to as the "captured image") to the image processing device 100. In the example shown in FIG. 1, the barcode C is printed on a label L.

画像処理装置100は、撮像装置500から受信した撮像画像に対し画像処理を行なうことにより、バーコードCの外観を検査する。詳細には、画像処理装置100は、撮像装置500から受信した撮像画像を基に、各バーBの長手方向の長さ(以下、「縦幅」または「縦幅W」とも称する)を算出する。本来は1本であるはずのバーがカスレや欠けにより複数に分断されている場合には、分断されているそれぞれについて縦幅Wを算出する。画像処理装置100は、算出した縦幅Wの最小値が閾値未満である場合に、バーコードCの外観が不良であると判定する。 The image processing device 100 inspects the appearance of the barcode C by performing image processing on the captured image received from the imaging device 500. In detail, the image processing device 100 calculates the longitudinal length of each bar B (hereinafter also referred to as "vertical width" or "vertical width W") based on the captured image received from the imaging device 500. If a bar that should be a single bar is divided into multiple pieces due to smudges or chipping, the image processing device 100 calculates the vertical width W for each divided bar. If the minimum value of the calculated vertical width W is less than a threshold value, the image processing device 100 determines that the appearance of the barcode C is defective.

バーBにカスレや欠けが発生している場合には、カスレや欠けの発生箇所に関わらずバーBの縦幅Wは本来の縦幅よりも短くなる。ゆえに、画像処理装置100によれば、カスレや欠けの発生箇所に関わらずバーコードの外観を検査することが可能となる。 If the bar B is blurred or missing, the vertical width W of the bar B will be shorter than the original vertical width, regardless of where the blur or missing occurs. Therefore, the image processing device 100 makes it possible to inspect the appearance of the barcode, regardless of where the blur or missing occurs.

入力装置600は、マウス、キーボード、およびタッチパネルのうち少なくとも1つを含み、画像処理装置100に対する操作を受け付ける。出力装置700は、液晶ディスプレイや有機EL(Electro Luminescence)ディスプレイ等を含み、各種の情報を表示する。なお、出力装置700は、ディスプレイに加え、インジケータやスピーカーをさらに含んでもよい。 The input device 600 includes at least one of a mouse, a keyboard, and a touch panel, and accepts operations on the image processing device 100. The output device 700 includes a liquid crystal display, an organic EL (Electro Luminescence) display, etc., and displays various types of information. Note that the output device 700 may further include an indicator and a speaker in addition to the display.

なお、画像処理システム1は、撮像装置500によって撮像されるバーコードCに対して光を照射する照明装置をさらに含んでもよい。 The image processing system 1 may further include an illumination device that irradiates light onto the barcode C imaged by the imaging device 500.

(画像処理装置のハードウェア構成)
図2を参照して、画像処理装置100のハードウェア構成について説明する。図2は、本実施の形態における画像処理装置の主要なハードウェア構成を示すブロック図である。画像処理装置100は、プロセッサ101、主メモリ102、通信インターフェイス103、カメラインターフェイス104、入力インターフェイス105、出力インターフェイス106、メモリーカードインターフェイス107、および記憶装置120を含む。これらのコンポーネントは、内部バス119を介して互いに通信可能に接続されている。
(Hardware configuration of image processing device)
The hardware configuration of the image processing device 100 will be described with reference to Fig. 2. Fig. 2 is a block diagram showing the main hardware configuration of the image processing device in this embodiment. The image processing device 100 includes a processor 101, a main memory 102, a communication interface 103, a camera interface 104, an input interface 105, an output interface 106, a memory card interface 107, and a storage device 120. These components are connected to each other via an internal bus 119 so as to be able to communicate with each other.

プロセッサ101は、たとえば、少なくとも1つの集積回路によって構成される。集積回路は、たとえば、少なくとも1つのCPU(Central Processing Unit)、少なくとも1つのASIC(Application Specific Integrated Circuit)、少なくとも1つのFPGA(Field Programmable Gate Array)、またはそれらの組み合わせなどによって構成される。 The processor 101 is, for example, configured with at least one integrated circuit. The integrated circuit is, for example, configured with at least one CPU (Central Processing Unit), at least one ASIC (Application Specific Integrated Circuit), at least one FPGA (Field Programmable Gate Array), or a combination thereof.

プロセッサ101は、記憶装置120に記憶されているプログラム122を主メモリ102に展開して実行することで、本実施の形態に従う各種処理を実現する。主メモリ102は、揮発性メモリにより構成され、プロセッサ101によるプログラムの実行に必要なワークメモリとして機能する。 The processor 101 realizes various processes according to the present embodiment by expanding the program 122 stored in the storage device 120 into the main memory 102 and executing it. The main memory 102 is composed of a volatile memory, and functions as a work memory required for the processor 101 to execute the program.

通信インターフェイス103は、ネットワークを介して、外部機器との間でデータや信号を遣り取りする。 The communication interface 103 exchanges data and signals with external devices via the network.

カメラインターフェイス104は、撮像装置500から複数のバーを含むバーコードを撮像した撮像画像を受け付ける「受付部」に相当し、プロセッサ101と撮像装置500との間のデータ伝送を仲介する。詳細には、カメラインターフェイス104は、撮像装置500から撮像画像を受け付けると、当該撮像画像をプロセッサ101に出力する。 The camera interface 104 corresponds to a "reception unit" that receives an image of a barcode including multiple bars from the imaging device 500, and mediates data transmission between the processor 101 and the imaging device 500. In detail, when the camera interface 104 receives an image from the imaging device 500, it outputs the image to the processor 101.

入力インターフェイス105は、プロセッサ101と入力装置600との間のデータ伝送を仲介する。すなわち、入力インターフェイス105は、ユーザが入力装置600を操作することにより与えられる操作指令を受け付ける。 The input interface 105 mediates data transmission between the processor 101 and the input device 600. That is, the input interface 105 accepts operation commands given by the user operating the input device 600.

出力インターフェイス106は、出力装置700と接続されており、プロセッサ101からのコマンドに従って、各種の情報を出力するための信号を出力装置700へ出力する。 The output interface 106 is connected to the output device 700, and outputs signals to the output device 700 to output various types of information in accordance with commands from the processor 101.

メモリーカードインターフェイス107は、プロセッサ101とメモリーカード107Aとの間のデータ伝送を仲介する。メモリーカード107Aは、SD(Secure Digital)などの汎用的な半導体記憶デバイスや、フレキシブルディスク(Flexible Disk)などの磁気記録媒体や、CD-ROM(Compact Disk Read Only Memory)などの光学記録媒体等を含む。 The memory card interface 107 mediates data transmission between the processor 101 and the memory card 107A. The memory card 107A includes general-purpose semiconductor storage devices such as SD (Secure Digital), magnetic recording media such as flexible disks, and optical recording media such as CD-ROMs (Compact Disk Read Only Memory).

記憶装置120は、たとえば、ハードディスクである。一例として、記憶装置120は、本実施の形態に従う各種の処理を実現するためのプログラム122と、各種の設定情報124とを含む。 The storage device 120 is, for example, a hard disk. As an example, the storage device 120 includes a program 122 for implementing various processes according to the present embodiment, and various setting information 124.

プログラム122は、メモリーカード107Aなどの記憶媒体に格納されて提供される。プログラム122は、メモリーカードインターフェイス107により、メモリーカード107Aから読み出されて画像処理装置100にインストールされる。 The program 122 is provided by being stored in a storage medium such as the memory card 107A. The program 122 is read from the memory card 107A by the memory card interface 107 and installed in the image processing device 100.

プログラム122は、単体のプログラムとしてではなく、任意のプログラムの一部に組み込まれて提供されてもよい。この場合、任意のプログラムと協働して本実施の形態に従う処理が実現される。このような一部のモジュールを含まないプログラムであっても、本実施の形態に従う画像処理装置100の趣旨を逸脱するものではない。また、プログラム122によって提供される機能の一部または全部は、専用のハードウェアによって実現されてもよい。 Program 122 may be provided not as a standalone program, but as part of an arbitrary program. In this case, the program 122 cooperates with the arbitrary program to realize the processing according to this embodiment. Even if the program does not include some of these modules, this does not deviate from the spirit of the image processing device 100 according to this embodiment. In addition, some or all of the functions provided by program 122 may be realized by dedicated hardware.

また、メモリーカード107Aに格納されたプログラム122を画像処理装置100にインストールする形態に代えて、通信インターフェイス103を介して、配信サーバーなどからダウンロードしたプログラムを画像処理装置100にインストールしてもよい。 In addition, instead of installing the program 122 stored in the memory card 107A in the image processing device 100, a program downloaded from a distribution server or the like via the communication interface 103 may be installed in the image processing device 100.

設定情報124は、後述する余裕幅や、バーの縦幅の閾値等を含む。以下では、余裕幅や、バーの縦幅の閾値等が設定情報124として記憶装置120に保存されることを「設定される」と表現する。 The setting information 124 includes the margin width and the threshold value of the vertical width of the bar, which will be described later. In the following, the margin width, the threshold value of the vertical width of the bar, etc. being stored in the storage device 120 as the setting information 124 will be expressed as being "set."

(画像処理装置の機能)
図3を参照して、画像処理装置100によって実現される機能について説明する。図3は、本実施の形態における画像処理装置によって実現される機能の一例を示すブロック図である。本実施の形態においては、画像処理装置100によって、受付部131、特定部132、決定部133、抽出部134、算出部135、判定部136、第1設定部137、および第2設定部138が実現される。
(Functions of image processing device)
The functions realized by the image processing device 100 will be described with reference to Fig. 3. Fig. 3 is a block diagram showing an example of the functions realized by the image processing device in this embodiment. In this embodiment, the image processing device 100 realizes a reception unit 131, a specification unit 132, a determination unit 133, an extraction unit 134, a calculation unit 135, a determination unit 136, a first setting unit 137, and a second setting unit 138.

受付部131は、図2に示すカメラインターフェイス104により実現される。受付部131は、撮像装置500から複数のバーを含むバーコードを撮像した撮像画像を受け付ける。 The reception unit 131 is realized by the camera interface 104 shown in FIG. 2. The reception unit 131 receives an image of a barcode including multiple bars from the imaging device 500.

特定部132、決定部133、抽出部134、算出部135、判定部136、第1設定部137、および第2設定部138は、プロセッサ101がプログラム122を実行することにより実現される。 The identification unit 132, the determination unit 133, the extraction unit 134, the calculation unit 135, the judgment unit 136, the first setting unit 137, and the second setting unit 138 are realized by the processor 101 executing the program 122.

特定部132は、受付部131によって受け付けられた撮像画像におけるバー領域を特定する。バーコードは複数のバーに加え、数字を含む場合がある。バー領域とは、バーコードのうち複数のバーに相当する領域のことである。 The identification unit 132 identifies a bar area in the captured image received by the reception unit 131. A barcode may include numbers in addition to multiple bars. A bar area is an area that corresponds to multiple bars in a barcode.

ここで、図4を参照して、バー領域の特定方法について説明する。図4は、バー領域の特定方法を示す図である。画面G1は、出力装置700(図1参照)に表示される。画面G1は、撮像装置500(図1参照)により取得された撮像画像Iが表示される欄41と、撮像画像I内でのバーコードのおおよその位置を入力するための入力欄42とを含む。図4に示す例では、撮像画像Iは、バーコードC(図1参照)の画像とバーコードCが印刷されているラベルL(図1参照)の画像とを含む。 Now, with reference to FIG. 4, a method for identifying a bar area will be described. FIG. 4 is a diagram showing a method for identifying a bar area. A screen G1 is displayed on the output device 700 (see FIG. 1). The screen G1 includes a field 41 in which a captured image I acquired by the imaging device 500 (see FIG. 1) is displayed, and an input field 42 for inputting the approximate position of the barcode in the captured image I. In the example shown in FIG. 4, the captured image I includes an image of a barcode C (see FIG. 1) and an image of a label L (see FIG. 1) on which the barcode C is printed.

ユーザは、領域ARの4つの頂点K1~K4をマウス等の入力装置600(図1参照)を用いてドラッグすることにより、バーコードのおおよその位置を入力する。入力欄42には、頂点K1の座標と頂点K3の座標とが表示される。なお、ユーザは入力欄42に数値を入力することにより、バーコードのおおよその位置を入力してもよい。入力欄42への入力には、入力装置600が用いられる。特定部132(図3参照)は、領域AR内を公知の技術を用いて画像処理することにより、バー領域Pを特定する。なお、バーコードのおおよその位置が入力されなくてもよく、その場合には、特定部132は、撮像画像Iの全体を公知の技術を用いて画像処理することにより、バー領域Pを特定する。 The user inputs the approximate position of the barcode by dragging the four vertices K1 to K4 of the area AR using an input device 600 such as a mouse (see FIG. 1). The coordinates of vertex K1 and vertex K3 are displayed in the input field 42. The user may input the approximate position of the barcode by inputting a numerical value in the input field 42. The input device 600 is used for inputting into the input field 42. The identification unit 132 (see FIG. 3) identifies the bar area P by performing image processing on the area AR using a known technique. It is also possible that the approximate position of the barcode is not input. In that case, the identification unit 132 identifies the bar area P by performing image processing on the entire captured image I using a known technique.

再び図3を参照して、決定部133は、特定部132により特定されたバー領域に基づいて検査対象領域を決定する。一例として、決定部133は、バー領域を上下左右の方向に所定幅だけ拡大した領域を検査対象領域に決定する。当該所定幅は、設定情報124の1つである余裕幅として記憶装置120に記憶されている。所定幅は、画素数(たとえば、10画素等)で指定されてもよいし、バー領域に対する割合(たとえば、1.1倍等)で指定されてもよい。 Referring again to FIG. 3, the determination unit 133 determines the inspection target area based on the bar area identified by the identification unit 132. As an example, the determination unit 133 determines an area obtained by expanding the bar area by a predetermined width in the up, down, left, and right directions as the inspection target area. The predetermined width is stored in the storage device 120 as a margin width, which is one of the setting information 124. The predetermined width may be specified by the number of pixels (e.g., 10 pixels, etc.) or may be specified as a ratio to the bar area (e.g., 1.1 times, etc.).

ここで、図5を参照して、検査対象領域について説明する。図5は、検査対象領域を示す図である。バー領域Pは、4つの頂点E1~E4の座標により示される。検査対象領域Qは、4つの頂点F1~F4の座標により示される。検査対象領域Qは、バー領域Pを上下左右の方向に所定幅THだけ拡大した領域である。以下の説明では、複数のバーの配列方向をX方向とし、撮像画像Iにおいて複数のバーの配列方向に直交する方向をY方向とする。 Now, the inspection target area will be described with reference to FIG. 5. FIG. 5 is a diagram showing the inspection target area. Bar area P is indicated by the coordinates of four vertices E1 to E4. Inspection target area Q is indicated by the coordinates of four vertices F1 to F4. Inspection target area Q is an area obtained by expanding bar area P by a predetermined width TH in the up, down, left, and right directions. In the following description, the arrangement direction of the multiple bars is defined as the X direction, and the direction perpendicular to the arrangement direction of the multiple bars in the captured image I is defined as the Y direction.

一例として、所定幅として10画素が設定されているとする。その場合には、決定部133(図3参照)は、頂点F1のX座標の値を頂点E1のX座標の値から10画素をマイナスした値とし、頂点F1のY座標の値を頂点E1のY座標の値に10画素をプラスした値とする。また、決定部133は、頂点F2のX座標の値を頂点E2のX座標の値から10画素をマイナスした値とし、頂点F2のY座標の値を頂点E2のY座標の値から10画素をマイナスした値とする。また、決定部133は、頂点F3のX座標の値を頂点E3のX座標の値に10画素をプラスした値とし、頂点F3のY座標の値を頂点E3のY座標の値から10画素をマイナスした値とする。また、決定部133は、頂点F4のX座標の値を頂点E4のX座標の値に10画素をプラスした値とし、頂点F4のY座標の値を頂点E4のY座標の値に10画素をプラスした値とする。 As an example, assume that 10 pixels are set as the predetermined width. In that case, the determination unit 133 (see FIG. 3) sets the X coordinate value of vertex F1 to the value obtained by subtracting 10 pixels from the X coordinate value of vertex E1, and sets the Y coordinate value of vertex F1 to the value obtained by adding 10 pixels to the Y coordinate value of vertex E1. The determination unit 133 also sets the X coordinate value of vertex F2 to the value obtained by subtracting 10 pixels from the X coordinate value of vertex E2, and sets the Y coordinate value of vertex F2 to the value obtained by subtracting 10 pixels from the Y coordinate value of vertex E2. The determination unit 133 also sets the X coordinate value of vertex F3 to the value obtained by adding 10 pixels to the X coordinate value of vertex E3, and sets the Y coordinate value of vertex F3 to the value obtained by subtracting 10 pixels from the Y coordinate value of vertex E3. In addition, the determination unit 133 sets the X coordinate value of vertex F4 to the X coordinate value of vertex E4 plus 10 pixels, and sets the Y coordinate value of vertex F4 to the Y coordinate value of vertex E4 plus 10 pixels.

なお、所定幅THが画素数で指定される場合には、上方向の所定幅TH1、下方向の所定幅TH3、左方向の所定幅TH2、および右方向の所定幅TH4は互いに等しい値でもよいし、これらのうち少なくとも1つが異なる値でもよい。 When the specified width TH is specified by the number of pixels, the specified width TH1 in the upward direction, the specified width TH3 in the downward direction, the specified width TH2 in the leftward direction, and the specified width TH4 in the rightward direction may be equal to each other, or at least one of them may be a different value.

再び図3を参照して、抽出部134は、複数のバーに対応する特徴を有する画素で構成される少なくとも1つの部分領域を検査対象領域から抽出する。複数のバーに対応する特徴とは、複数のバーの反射光の特徴であり、より詳細には、色や濃度(輝度)等である。一例として、抽出部134は、複数のバーに対応する色を有する画素で構成される少なくとも1つの部分領域を検査対象領域から抽出する。他の例として、抽出部134は、複数のバーに対応する濃度を有する画素で構成される少なくとも1つの部分領域を検査対象領域から抽出する。抽出部134による処理は、いわゆる画像処理におけるラベリング処理に該当する。抽出部134は、検査対象領域を予め定められた2値化レベルで2値化した後、濃度値に基づいて部分領域を抽出する。詳細には、抽出部134は、予め定められた2値化レベルで検査対象領域を2値化することにより、黒に分類された一塊の画素群を1つの部分領域として抽出する。2値化レベルとは、黒に分類される画素の濃度値の範囲を示す。2値化レベルは、バーの画像を構成する画素、すなわち、複数のバーに対応する色を有する画素や複数のバーに対応する濃度を有する画素が黒に分類されるように設定されている。 Referring again to FIG. 3, the extraction unit 134 extracts at least one partial region consisting of pixels having characteristics corresponding to the multiple bars from the inspection target region. The characteristics corresponding to the multiple bars are the characteristics of the reflected light of the multiple bars, and more specifically, the color, density (brightness), etc. As an example, the extraction unit 134 extracts at least one partial region consisting of pixels having colors corresponding to the multiple bars from the inspection target region. As another example, the extraction unit 134 extracts at least one partial region consisting of pixels having densities corresponding to the multiple bars from the inspection target region. The processing by the extraction unit 134 corresponds to a labeling process in so-called image processing. The extraction unit 134 binarizes the inspection target region at a predetermined binarization level, and then extracts the partial region based on the density value. In detail, the extraction unit 134 binarizes the inspection target region at a predetermined binarization level, thereby extracting a group of pixels classified as black as one partial region. The binarization level indicates the range of density values of pixels classified as black. The binarization level is set so that the pixels that make up the bar image, i.e., pixels that have a color that corresponds to multiple bars or pixels that have a density that corresponds to multiple bars, are classified as black.

これにより、バーの1本1本に相当する領域が抽出部134により部分領域として抽出される。なお、本来は1本であるはずのバーがカスレや欠けにより複数に分断されている場合には、分断されているそれぞれが1つの部分領域として抽出される。 As a result, the area corresponding to each bar is extracted as a partial area by the extraction unit 134. Note that if a bar that should be a single bar is divided into multiple parts due to smudges or chipping, each divided part is extracted as a single partial area.

ここで、図6を参照して、2値化レベルの設定について説明する。図6は、2値化レベルの設定画面の一例を示す図である。画面G2は、2値化レベルの設定画面の一例である。画面G2は、出力装置700(図1参照)に表示される。画面G2は、2値化レベルを入力するための入力欄61と、ボタン62とを含む。入力欄61には、2値化レベルとして、黒に分類される画素の濃度値の範囲が入力される。ユーザが入力欄61に数値を入力してボタン62を押下すると、プロセッサ101(図2参照)は入力欄61に入力された数値を2値化レベルとして設定する。2値化レベルとして図6に示す値が設定されている場合には、抽出部134(図3参照)は濃度値が0~159に該当する画素を黒に分類する。 Now, with reference to FIG. 6, the setting of the binarization level will be described. FIG. 6 is a diagram showing an example of a binarization level setting screen. Screen G2 is an example of a binarization level setting screen. Screen G2 is displayed on the output device 700 (see FIG. 1). Screen G2 includes an input field 61 for inputting the binarization level, and a button 62. In the input field 61, a range of density values of pixels classified as black is input as the binarization level. When the user inputs a numerical value in the input field 61 and presses the button 62, the processor 101 (see FIG. 2) sets the numerical value input in the input field 61 as the binarization level. When the values shown in FIG. 6 are set as the binarization level, the extraction unit 134 (see FIG. 3) classifies pixels with density values of 0 to 159 as black.

一般的には、バーの色は黒色だが、バーコードが印刷されるラベルの色に合わせて黒の濃さは異なる。そこで、入力欄61に入力する値を調整することで、バーの画像を構成する画素が黒に分類されるように設定することが可能となる。 Generally, the color of the bar is black, but the darkness of the black varies depending on the color of the label on which the barcode is printed. Therefore, by adjusting the value entered in input field 61, it is possible to set the pixels that make up the image of the bar to be classified as black.

再び図3を参照して、算出部135は、抽出部134により抽出された少なくとも1つの部分領域の各々の長手方向の長さ(縦幅)を算出する。これにより、バーの縦幅が算出される。本来は1本であるはずのバーがカスレや欠けにより複数に分断されている場合には、分断されているそれぞれについて縦幅が算出される。 Referring again to FIG. 3, the calculation unit 135 calculates the longitudinal length (vertical width) of each of at least one partial region extracted by the extraction unit 134. This calculates the vertical width of the bar. If a bar that should be a single piece is divided into multiple pieces due to smudges or chipping, the vertical width of each of the divided pieces is calculated.

判定部136は、算出部135により算出された縦幅の最小値が閾値未満である場合に、バーコードの外観が不良であると判定する。当該閾値は、設定情報124として記憶装置120に記憶されている。 The determination unit 136 determines that the appearance of the barcode is defective if the minimum vertical width calculated by the calculation unit 135 is less than a threshold value. The threshold value is stored in the storage device 120 as the setting information 124.

ここで、図7を参照して、判定部136による判定方法を説明する。図7は、部分領域とその縦幅との一例を示す図である。図示の関係上、図7では、複数の部分領域RのうちバーB1~B4に相当する部分領域R1~R4のみを図示しているが、実際には、抽出部134(図3参照)による処理により、バーBの1本1本に相当する領域が部分領域Rとして抽出される。 Now, with reference to FIG. 7, the determination method used by the determination unit 136 will be described. FIG. 7 is a diagram showing an example of partial regions and their vertical widths. For ease of illustration, FIG. 7 shows only partial regions R1 to R4 that correspond to bars B1 to B4 out of the multiple partial regions R, but in reality, the regions corresponding to each of the bars B are extracted as partial regions R through processing by the extraction unit 134 (see FIG. 3).

バーB1およびバーB2は、本来は1本であるはずのバーがカスレや欠けにより複数に分断された場合の一例である。バーB2に相当する部分領域R2は、抽出部134により抽出された部分領域Rのうち縦幅Wが最も短い部分領域の一例である。この例では、算出部135(図3参照)により算出された部分領域R1の縦幅Wは60画素であり、算出部135により算出された部分領域R2の縦幅Wは20画素である。 Bars B1 and B2 are examples of a bar that should be a single bar but has been split into multiple pieces due to smudges or chipping. Partial region R2 corresponding to bar B2 is an example of a partial region having the shortest vertical width W among the partial regions R extracted by extraction unit 134. In this example, the vertical width W of partial region R1 calculated by calculation unit 135 (see FIG. 3) is 60 pixels, and the vertical width W of partial region R2 calculated by calculation unit 135 is 20 pixels.

バーB3は、バーの先端が欠けている場合の一例である。この例では、算出部135により算出された部分領域R3の縦幅Wは89画素である。 Bar B3 is an example of a bar with a missing tip. In this example, the vertical width W of partial region R3 calculated by calculation unit 135 is 89 pixels.

バーB4は、カスレや欠けが発生していない場合の一例である。この例では、複数の部分領域Rのうち部分領域R1と、部分領域R2と、部分領域R3とを除く部分領域のそれぞれについて算出部135により算出された縦幅Wは100画素である。 Bar B4 is an example of a case where no blurring or chipping occurs. In this example, the vertical width W calculated by the calculation unit 135 for each of the multiple partial regions R, excluding partial region R1, partial region R2, and partial region R3, is 100 pixels.

この例において、算出部135により算出された部分領域R毎の縦幅Wのうち最も小さい値は、部分領域R2の縦幅Wである20画素である。縦幅Wの閾値として90画素が設定されていた場合、算出部135により算出された縦幅Wの最小値(20画素)は縦幅Wの閾値(90画素)未満であることから、判定部136(図3参照)はバーコードの外観は不良であると判定する。 In this example, the smallest value of the vertical width W for each partial region R calculated by the calculation unit 135 is the vertical width W of partial region R2, which is 20 pixels. If the threshold value for the vertical width W is set to 90 pixels, the minimum value of the vertical width W calculated by the calculation unit 135 (20 pixels) is less than the threshold value for the vertical width W (90 pixels), and therefore the determination unit 136 (see FIG. 3) determines that the appearance of the barcode is defective.

再び図3を参照して、第1設定部137は、ユーザによる入力操作に基づいて所定幅を設定する。詳細には、第1設定部137は、入力装置600から入力された値(所定幅)を余裕幅として記憶装置120に保存する。なお、画像処理装置100は、第1設定部137を含まなくてもよく、その場合には、余裕幅として予め定められた値(所定幅)が記憶装置120に保存されているものとする。 Referring again to FIG. 3, the first setting unit 137 sets the predetermined width based on an input operation by the user. In detail, the first setting unit 137 stores the value (predetermined width) input from the input device 600 in the storage device 120 as the margin width. Note that the image processing device 100 does not need to include the first setting unit 137, in which case it is assumed that a value (predetermined width) previously determined as the margin width is stored in the storage device 120.

ここで、図8を参照して、余裕幅の設定方法について説明する。図8は、余裕幅の設定画面の一例を示す図である。画面G3は、余裕幅の設定画面の一例である。画面G3は、出力装置700(図1参照)に表示される。画面G3は、値(所定幅)を入力するための入力欄81と、ボタン82とを含む。ユーザが入力欄81に値を入力してボタン82を押下すると、プロセッサ101(図2参照)は入力欄81に入力された値を余裕幅として記憶装置120(図3参照)に保存する。 Now, with reference to FIG. 8, a method for setting the margin width will be described. FIG. 8 is a diagram showing an example of a margin width setting screen. Screen G3 is an example of a margin width setting screen. Screen G3 is displayed on the output device 700 (see FIG. 1). Screen G3 includes an input field 81 for inputting a value (predetermined width), and a button 82. When the user inputs a value in the input field 81 and presses the button 82, the processor 101 (see FIG. 2) saves the value input in the input field 81 as the margin width in the storage device 120 (see FIG. 3).

再び図3を参照して、第2設定部138は、ユーザによる入力操作に基づいて縦幅の閾値を設定する。一例として、第2設定部138は、入力装置600から入力された値を縦幅の閾値として記憶装置120に保存する。 Referring again to FIG. 3, the second setting unit 138 sets the vertical width threshold based on an input operation by the user. As an example, the second setting unit 138 stores the value input from the input device 600 in the storage device 120 as the vertical width threshold.

ここで、図9を参照して、縦幅の閾値の設定方法について説明する。図9は、縦幅の閾値の設定画面の一例を示す図である。画面G4は、縦幅の閾値の設定画面の一例である。画面G4は、出力装置700(図1参照)に表示される。画面G4は、値を入力するための入力欄91と、ボタン92とを含む。ユーザが入力欄91に値を入力してボタン92を押下すると、プロセッサ101(図2参照)は入力欄91に入力された値を縦幅の閾値として記憶装置120(図3参照)に保存する。 Now, with reference to FIG. 9, a method for setting the vertical width threshold will be described. FIG. 9 is a diagram showing an example of a vertical width threshold setting screen. Screen G4 is an example of a vertical width threshold setting screen. Screen G4 is displayed on the output device 700 (see FIG. 1). Screen G4 includes an input field 91 for inputting a value, and a button 92. When the user inputs a value in the input field 91 and presses the button 92, the processor 101 (see FIG. 2) saves the value input in the input field 91 as the vertical width threshold in the storage device 120 (see FIG. 3).

再び図3を参照して、他の例として、第2設定部138は、バーコードの正解画像を基に縦幅の閾値を設定してもよい。バーコードの正解画像は撮像装置500が正しく印刷されたバーコードを撮像することにより取得され、受付部131によって受け付けられる。詳細については、後述する。 Referring again to FIG. 3, as another example, the second setting unit 138 may set the threshold value for the vertical width based on the correct image of the barcode. The correct image of the barcode is acquired by the imaging device 500 capturing an image of a correctly printed barcode, and is accepted by the acceptance unit 131. Details will be described later.

なお、画像処理装置100は、第2設定部138を含まなくてもよく、その場合には、縦幅の閾値として予め定められた値が記憶装置120に保存されているものとする。 The image processing device 100 may not include the second setting unit 138. In that case, a predetermined value is stored in the storage device 120 as the vertical width threshold value.

(画像処理装置で実行される処理)
図10を参照して、画像処理装置100で実行される処理について説明する。図10は、本実施の形態における画像処理装置で実行される処理の一例を示す図である。図10に示す処理は、図2に示すプロセッサ101がプログラム122(図2参照)を実行することにより実現される。
(Processing Executed by Image Processing Device)
The process executed by the image processing device 100 will be described with reference to Fig. 10. Fig. 10 is a diagram showing an example of the process executed by the image processing device in this embodiment. The process shown in Fig. 10 is realized by the processor 101 shown in Fig. 2 executing the program 122 (see Fig. 2).

ステップS1において、プロセッサ101は、複数のバーを含むバーコードを撮像した撮像画像をカメラインターフェイス104(図2参照)を介して撮像装置500(図2参照)から受け付ける。 In step S1, the processor 101 receives an image of a barcode including multiple bars from the imaging device 500 (see FIG. 2) via the camera interface 104 (see FIG. 2).

ステップS2において、プロセッサ101は、撮像画像におけるバー領域を特定する。ステップS2の処理は、特定部132(図3参照)により実行される。 In step S2, the processor 101 identifies a bar region in the captured image. The process of step S2 is executed by the identification unit 132 (see FIG. 3).

ステップS3において、プロセッサ101は、バー領域に基づいて検査対象領域を決定する。ステップS3の処理は、決定部133(図3参照)により実行される。 In step S3, the processor 101 determines the inspection target area based on the bar area. The process of step S3 is executed by the determination unit 133 (see FIG. 3).

ステップS4において、プロセッサ101は、複数のバーに対応する特徴を有する画素で構成される少なくとも1つの部分領域を検査対象領域から抽出する。ステップS4の処理は、いわゆる画像処理におけるラベリング処理である。ステップS4の処理は、抽出部134(図3参照)により実行される。 In step S4, the processor 101 extracts at least one partial region from the inspection target region, the partial region being composed of pixels having characteristics corresponding to a plurality of bars. The process of step S4 is a so-called labeling process in image processing. The process of step S4 is executed by the extraction unit 134 (see FIG. 3).

ステップS5において、プロセッサ101は、ステップS4で抽出した部分領域の各々の縦幅を算出する。ステップS5の処理は、算出部135(図3参照)により実行される。 In step S5, the processor 101 calculates the vertical width of each of the partial regions extracted in step S4. The process of step S5 is executed by the calculation unit 135 (see FIG. 3).

ステップS6において、プロセッサ101は、ステップS5で算出した縦幅の最小値が閾値未満であるか否かを判定する。ステップS5で算出した縦幅の最小値が閾値未満である場合には(ステップS6においてYES)、プロセッサ101は、処理をステップS7に移行する。一方、ステップS5で算出した縦幅の最小値が閾値以上である場合には(ステップS6においてNO)、プロセッサ101は、処理をステップS8に移行する。 In step S6, the processor 101 determines whether the minimum vertical width calculated in step S5 is less than the threshold value. If the minimum vertical width calculated in step S5 is less than the threshold value (YES in step S6), the processor 101 transitions the process to step S7. On the other hand, if the minimum vertical width calculated in step S5 is equal to or greater than the threshold value (NO in step S6), the processor 101 transitions the process to step S8.

ステップS7において、プロセッサ101は、バーコードの外観は不良と判定する。 In step S7, the processor 101 determines that the appearance of the barcode is defective.

ステップS8において、プロセッサ101は、バーコードの外観は良好と判定する。ステップS6~S8の処理は、判定部136(図3参照)により実行される。 In step S8, the processor 101 determines that the appearance of the barcode is good. The processes in steps S6 to S8 are executed by the determination unit 136 (see FIG. 3).

ステップS7またはステップS8の後、プロセッサ101は、図10に示す一連の処理を終了する。 After step S7 or step S8, the processor 101 ends the series of processes shown in FIG. 10.

(検査結果の出力形態)
図11は、検査結果の出力形態の一例を示す図である。画面G5は、検査結果を示す画面の一例である。画面G5は、出力装置700(図1参照)に表示される。画面G5は、バーコードの外観検査の結果が表示される欄11と、ステップS5(図10参照)で算出された縦幅の最小値が表示される欄12とを含む。また、画面G5は、撮像装置500(図1参照)により取得されたバーコードの画像(撮像画像I)が表示される欄13をさらに含む。
(Test result output format)
Fig. 11 is a diagram showing an example of an output form of the inspection result. Screen G5 is an example of a screen showing the inspection result. Screen G5 is displayed on output device 700 (see Fig. 1). Screen G5 includes a field 11 in which the result of the visual inspection of the barcode is displayed, and a field 12 in which the minimum value of the vertical width calculated in step S5 (see Fig. 10) is displayed. Screen G5 further includes a field 13 in which an image of the barcode (captured image I) acquired by imaging device 500 (see Fig. 1) is displayed.

ユーザは、画面G5よりバーコードの外観検査の結果を知ることができる。また、ユーザは、画面G5よりステップS5(図10参照)で算出された縦幅の最小値を知ることができる。ユーザは、欄12に表示される数値を、設定した縦幅の閾値と比較することによりバーにカスレや欠けが発生していることを知ることができる。 The user can view the results of the visual inspection of the barcode on screen G5. The user can also view the minimum vertical width calculated in step S5 (see FIG. 10) on screen G5. By comparing the value displayed in column 12 with the vertical width threshold value that was set, the user can see if there are any smudges or chips in the bar.

なお、画面G5は、少なくとも欄11を含んでいればよい。また、画面G5は、欄11に加え、バーの縦幅の閾値として設定されている値が表示される欄を含んでもよい。 It is sufficient that screen G5 includes at least field 11. Furthermore, in addition to field 11, screen G5 may include a field that displays a value set as a threshold for the vertical width of the bar.

また、欄13に縦幅が閾値未満のバーを示す情報がさらに表示されてもよい。これにより、ユーザは、カスレや欠けが発生しているバーを知ることができる。また、欄13に縦幅が閾値未満のバーを示す情報と、当該バーの縦幅とがさらに表示されてもよい。これにより、ユーザは、カスレや欠けが発生しているバーと、当該バーの縦幅とを知ることができる。 In addition, information indicating bars whose vertical width is less than a threshold value may be further displayed in column 13. This allows the user to know which bars have smudges or chips.In addition, information indicating bars whose vertical width is less than a threshold value and the vertical width of the bars may be further displayed in column 13. This allows the user to know which bars have smudges or chips and the vertical width of the bars.

また、検査結果は、音声で出力されてもよい。また、インジケータの点灯によって検査結果を報知してもよい。 The test results may also be output as audio. The test results may also be notified by lighting an indicator.

(バーコードの正解画像を基に縦幅の閾値を設定する方法)
図12および図13を参照して、閾値の設定方法のうちバーコードの正解画像を基に縦幅の閾値を設定する方法について説明する。バーコードの正解画像を基に縦幅の閾値を設定する方法とは、バーコードの正解画像を基に算出されるバーの縦幅の最小値に基づいて縦幅の閾値を設定するという方法である。バーコードの正解画像として1つの画像を用いる場合と、複数の画像を用いる場合とに分けて説明する。
(Method of setting the vertical threshold based on the correct barcode image)
Among the threshold setting methods, a method of setting a threshold for the vertical width based on a correct image of a barcode will be described with reference to Figures 12 and 13. The method of setting a threshold for the vertical width based on a correct image of a barcode is a method of setting a threshold for the vertical width based on the minimum value of the vertical width of a bar calculated based on the correct image of a barcode. The method will be described separately for a case where one image is used as the correct image of a barcode and a case where multiple images are used.

図12は、バーコードの正解画像として1つの画像を用いる場合の処理の一例を示す図である。図12に示す処理は、図2に示すプロセッサ101がプログラム122(図2参照)を実行することにより実現される。 Figure 12 is a diagram showing an example of processing when one image is used as the correct image of a barcode. The processing shown in Figure 12 is realized by the processor 101 shown in Figure 2 executing the program 122 (see Figure 2).

ステップS21において、プロセッサ101は、バーコードの1つの正解画像をカメラインターフェイス104(図2参照)を介して撮像装置500(図2参照)から受け付ける。バーコードの正解画像は、正しく印刷されたバーコードを撮像装置500が撮像することにより取得される。 In step S21, the processor 101 receives one correct image of the barcode from the imaging device 500 (see FIG. 2) via the camera interface 104 (see FIG. 2). The correct image of the barcode is obtained by the imaging device 500 capturing an image of a correctly printed barcode.

ステップS22において、プロセッサ101は、正解画像におけるバー領域を特定する。ステップS22の処理は、特定部132(図3参照)により実行される。 In step S22, the processor 101 identifies a bar region in the correct image. The process of step S22 is executed by the identification unit 132 (see FIG. 3).

ステップS23において、プロセッサ101は、バー領域に基づいて検査対象領域を決定する。ステップS23の処理は、決定部133(図3参照)により実行される。 In step S23, the processor 101 determines the inspection target area based on the bar area. The process of step S23 is executed by the determination unit 133 (see FIG. 3).

ステップS24において、プロセッサ101は、複数のバーに対応する特徴を有する画素で構成される少なくとも1つの部分領域を検査対象領域から抽出する。ステップS24の処理は、いわゆる画像処理におけるラベリング処理である。ステップS24の処理は、抽出部134(図3参照)により実行される。 In step S24, the processor 101 extracts at least one partial region from the inspection target region, the partial region being composed of pixels having characteristics corresponding to a plurality of bars. The process of step S24 is a so-called labeling process in image processing. The process of step S24 is executed by the extraction unit 134 (see FIG. 3).

ステップS25において、プロセッサ101は、ステップS24で抽出した部分領域の各々の縦幅を算出する。ステップS25の処理は、算出部135(図3参照)により実行される。 In step S25, the processor 101 calculates the vertical width of each of the partial regions extracted in step S24. The process of step S25 is executed by the calculation unit 135 (see FIG. 3).

ステップS26において、プロセッサ101は、ステップS25で算出した縦幅の最小値を縦幅の閾値に決定する。 In step S26, the processor 101 determines the minimum vertical width value calculated in step S25 as the vertical width threshold value.

ステップS27において、プロセッサ101は、ステップS26で決定した値を縦幅の閾値として記憶装置120(図3参照)に保存する。これにより、縦幅の閾値の設定が完了する。ステップS26およびステップS27の処理は、第2設定部138(図3参照)により実行される。 In step S27, the processor 101 stores the value determined in step S26 in the storage device 120 (see FIG. 3) as the vertical width threshold. This completes the setting of the vertical width threshold. The processes in steps S26 and S27 are executed by the second setting unit 138 (see FIG. 3).

ステップS27の後、プロセッサ101は、図12に示す一連の処理を終了する。 After step S27, the processor 101 ends the series of processes shown in FIG. 12.

図13は、バーコードの正解画像として複数の画像を用いる場合の処理の一例を示す図である。図13に示す処理は、図2に示すプロセッサ101がプログラム122(図2参照)を実行することにより実現される。 Figure 13 is a diagram showing an example of processing when multiple images are used as correct images of a barcode. The processing shown in Figure 13 is realized by the processor 101 shown in Figure 2 executing the program 122 (see Figure 2).

ステップS31において、プロセッサ101は、バーコードのN(N≧2)個の正解画像をカメラインターフェイス104(図2参照)を介して撮像装置500(図2参照)から受け付ける。バーコードの正解画像は、正しく印刷されたバーコードを撮像装置500が撮像することにより取得される。 In step S31, the processor 101 receives N (N≧2) correct images of the barcode from the imaging device 500 (see FIG. 2) via the camera interface 104 (see FIG. 2). The correct images of the barcode are obtained by the imaging device 500 capturing an image of a correctly printed barcode.

ステップS32において、プロセッサ101は、変数n(n≧1)に1を設定する。 In step S32, the processor 101 sets the variable n (n≧1) to 1.

ステップS33において、プロセッサ101は、n個目の正解画像におけるバー領域を特定する。ステップS33の処理は、特定部132(図3参照)により実行される。 In step S33, the processor 101 identifies a bar region in the nth correct image. The process of step S33 is executed by the identification unit 132 (see FIG. 3).

ステップS34において、プロセッサ101は、バー領域に基づいて検査対象領域を決定する。ステップS34の処理は、決定部133(図3参照)により実行される。 In step S34, the processor 101 determines the inspection target area based on the bar area. The process of step S34 is executed by the determination unit 133 (see FIG. 3).

ステップS35において、プロセッサ101は、複数のバーに対応する特徴を有する画素で構成される少なくとも1つの部分領域を検査対象領域から抽出する。ステップS35の処理は、いわゆる画像処理におけるラベリング処理である。ステップS35の処理は、抽出部134(図3参照)により実行される。 In step S35, the processor 101 extracts at least one partial region from the inspection target region, the partial region being composed of pixels having characteristics corresponding to a plurality of bars. The process of step S35 is a so-called labeling process in image processing. The process of step S35 is executed by the extraction unit 134 (see FIG. 3).

ステップS36において、プロセッサ101は、ステップS35で抽出した部分領域の各々の縦幅を算出する。ステップS36の処理は、算出部135(図3参照)により実行される。 In step S36, the processor 101 calculates the vertical width of each of the partial regions extracted in step S35. The process of step S36 is executed by the calculation unit 135 (see FIG. 3).

ステップS37において、プロセッサ101は、ステップS36で算出した縦幅の最小値を記憶装置120(図2参照)または主メモリ102(図2参照)に保存する。 In step S37, the processor 101 stores the minimum vertical width calculated in step S36 in the storage device 120 (see FIG. 2) or the main memory 102 (see FIG. 2).

ステップS38において、プロセッサ101は、nはN以上であるか否かを判定する。nがN以上である場合には(ステップS38においてYES)、プロセッサ101は、処理をステップS40に移行する。一方、nがN未満である場合には(ステップS38においてNO)、プロセッサ101は、処理をステップS39に移行する。 In step S38, the processor 101 determines whether n is equal to or greater than N. If n is equal to or greater than N (YES in step S38), the processor 101 transitions the process to step S40. On the other hand, if n is less than N (NO in step S38), the processor 101 transitions the process to step S39.

ステップS39において、プロセッサ101は、nを1だけインクリメントし、処理をステップS33に戻す。 In step S39, the processor 101 increments n by 1 and returns the process to step S33.

ステップS40において、プロセッサ101は、ステップS37により保存された正解画像毎の縦幅の最小値を基に縦幅の閾値を決定する。一例として、プロセッサ101は、ステップS37により保存された正解画像毎の縦幅の最小値の平均値を縦幅の閾値に決定する。他の例として、プロセッサ101は、ステップS37により保存された正解画像毎の縦幅の最小値の中で最も小さい値を縦幅の閾値に決定する。他の例として、プロセッサ101は、ステップS37により保存された正解画像毎の縦幅の最小値の中で最も大きい値を縦幅の閾値に決定する。 In step S40, the processor 101 determines the threshold height based on the minimum height of each correct image saved in step S37. As one example, the processor 101 determines the average of the minimum heights of each correct image saved in step S37 as the threshold height. As another example, the processor 101 determines the smallest value among the minimum heights of each correct image saved in step S37 as the threshold height. As another example, the processor 101 determines the largest value among the minimum heights of each correct image saved in step S37 as the threshold height.

ステップS41において、プロセッサ101は、ステップS40で決定した値を縦幅の閾値として記憶装置120(図3参照)に保存する。これにより、縦幅の閾値の設定が完了する。ステップS37~ステップS41の処理は、第2設定部138(図3参照)により実行される。 In step S41, the processor 101 stores the value determined in step S40 in the storage device 120 (see FIG. 3) as the vertical width threshold. This completes the setting of the vertical width threshold. The processes in steps S37 to S41 are executed by the second setting unit 138 (see FIG. 3).

ステップS41の後、プロセッサ101は、図13に示す一連の処理を終了する。 After step S41, the processor 101 ends the series of processes shown in FIG. 13.

このように、本実施の形態に従えば、複数のバーを含むバーコードを撮像した撮像画像を基に各バーの縦幅が算出され、算出された縦幅の最小値を基にバーコードの外観が判定される。バーにカスレや欠けが発生している場合には、カスレや欠けの発生箇所に関わらずバーの縦幅は本来の縦幅よりも短くなる。ゆえに、本実施の形態に従えば、カスレや欠けの発生箇所に関わらずバーコードの外観を検査することが可能となる。 Thus, according to this embodiment, the vertical width of each bar is calculated based on an image of a barcode containing multiple bars, and the appearance of the barcode is determined based on the minimum value of the calculated vertical widths. If the bars are smudged or chipped, the vertical width of the bar will be shorter than the original vertical width regardless of where the smudge or chipping occurs. Therefore, according to this embodiment, it is possible to inspect the appearance of the barcode regardless of where the smudge or chipping occurs.

また、検査対象領域はバー領域に基づいて決定される。これにより、バーコードが本来意図した印刷位置からずれている場合であっても、検査精度が担保される。 The inspection area is also determined based on the bar area. This ensures inspection accuracy even if the barcode is misaligned from the originally intended printing position.

なお、上記実施の形態では、バー領域を上下左右の方向に所定幅だけ拡大した領域が検査対象領域とされたが、バー領域が検査対象領域とされてもよい。 In the above embodiment, the area to be inspected is an area obtained by expanding the bar area by a certain width in the up, down, left, and right directions, but the bar area may be the area to be inspected.

また、上記実施の形態では、判定部136は、算出部135により算出された縦幅の最小値が閾値未満である場合に、バーコードの外観が不良であると判定したが、算出部135により算出された縦幅の最小値が閾値以下である場合に、バーコードの外観が不良であると判定してもよい。 In addition, in the above embodiment, the determination unit 136 determines that the appearance of the barcode is poor if the minimum value of the vertical width calculated by the calculation unit 135 is less than a threshold value, but the determination unit 136 may determine that the appearance of the barcode is poor if the minimum value of the vertical width calculated by the calculation unit 135 is equal to or less than a threshold value.

[付記]
上述した実施の形態は、以下のような技術思想を含む。
[Additional Notes]
The above-described embodiment includes the following technical ideas.

[構成1]
複数のバー(B)を含むバーコード(C)を撮像した撮像画像(I)を受け付ける受付部(131)と、
前記撮像画像(I)における前記複数のバー(B)に相当するバー領域(P)を特定する特定部(132)と、
前記バー領域(P)に基づいて検査対象領域(Q)を決定する決定部(133)と、
前記複数のバー(B)に対応する特徴を有する画素で構成される少なくとも1つの部分領域(R)を前記検査対象領域(Q)から抽出する抽出部(134)と、
抽出した前記少なくとも1つの部分領域(R)の各々の長手方向の長さを算出する算出部(135)と、
前記長さの最小値が閾値未満である場合に、前記バーコード(C)の外観が不良であると判定する判定部(136)とを備える、画像処理装置。
[Configuration 1]
a reception unit (131) for receiving a captured image (I) of a barcode (C) including a plurality of bars (B);
An identification unit (132) that identifies a bar region (P) corresponding to the plurality of bars (B) in the captured image (I);
A determination unit (133) that determines an inspection target area (Q) based on the bar area (P);
an extraction unit (134) for extracting at least one partial region (R) composed of pixels having characteristics corresponding to the plurality of bars (B) from the inspection target region (Q);
A calculation unit (135) that calculates the length of each of the at least one extracted partial region (R) in the longitudinal direction;
and a determination unit (136) that determines that the appearance of the barcode (C) is defective if the minimum length value is less than a threshold value.

[構成2]
前記検査対象領域(Q)は、前記バー領域(P)を上下左右の方向に所定幅(TH)だけ拡大した領域である、構成1に記載の画像処理装置。
[Configuration 2]
2. The image processing apparatus according to configuration 1, wherein the inspection target area (Q) is an area obtained by expanding the bar area (P) by a predetermined width (TH) in all directions.

[構成3]
前記画像処理装置(100)は、ユーザによる入力操作に基づいて前記所定幅(TH)を設定する第1設定部(137)をさらに備える、構成2に記載の画像処理装置。
[Configuration 3]
The image processing device according to configuration 2, further comprising a first setting unit (137) that sets the predetermined width (TH) based on an input operation by a user.

[構成4]
前記画像処理装置(100)は、ユーザによる入力操作に基づいて前記閾値を設定する第2設定部(138)をさらに備える、構成1~構成3のいずれか1項に記載の画像処理装置。
[Configuration 4]
The image processing device (100) according to any one of configurations 1 to 3, further comprising a second setting unit (138) that sets the threshold value based on an input operation by a user.

[構成5]
前記受付部(131)は、前記バーコード(C)の正解画像をさらに受け付け、
前記画像処理装置(100)は、前記正解画像の前記少なくとも1つの部分領域(R)の前記長さの最小値に基づいて前記閾値を設定する第2設定部(138)をさらに備える、構成1~構成3のいずれか1項に記載の画像処理装置。
[Configuration 5]
The reception unit (131) further receives a correct image of the barcode (C),
The image processing device (100) is further provided with a second setting unit (138) that sets the threshold value based on the minimum value of the length of at least one partial region (R) of the correct image. The image processing device described in any one of configurations 1 to 3.

[構成6]
コンピュータが実行する画像処理方法であって、
複数のバー(B)を含むバーコード(C)を撮像した撮像画像(I)を受け付けることと、
前記撮像画像(I)における前記複数のバー(B)に相当するバー領域(P)を特定することと、
前記バー領域(P)に基づいて検査対象領域(Q)を決定することと、
前記複数のバー(B)に対応する特徴を有する画素で構成される少なくとも1つの部分領域(R)を前記検査対象領域(Q)から抽出することと、
抽出した前記少なくとも1つの部分領域(R)の各々の長手方向の長さを算出することと、
前記長さの最小値が閾値未満である場合に、前記バーコード(C)の外観が不良であると判定することとを備える、画像処理方法。
[Configuration 6]
1. A computer-implemented image processing method, comprising:
Receiving a captured image (I) of a barcode (C) including a plurality of bars (B);
Identifying a bar region (P) corresponding to the plurality of bars (B) in the captured image (I);
determining an inspection area (Q) based on the bar area (P);
Extracting at least one partial region (R) composed of pixels having characteristics corresponding to the plurality of bars (B) from the inspection target region (Q);
Calculating the length of each of the at least one extracted partial region (R) in the longitudinal direction;
and determining that the appearance of the barcode (C) is defective if the minimum length value is less than a threshold value.

[構成7]
構成6に記載の画像処理方法をコンピュータに実行させるための画像処理プログラム。
[Configuration 7]
7. An image processing program for causing a computer to execute the image processing method according to claim 6.

今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。 The embodiments disclosed herein should be considered to be illustrative and not restrictive in all respects. The scope of the present invention is indicated by the claims, not by the above description, and is intended to include all modifications within the meaning and scope of the claims.

1 画像処理システム、100 画像処理装置、101 プロセッサ、102 主メモリ、103 通信インターフェイス、104 カメラインターフェイス、105 入力インターフェイス、106 出力インターフェイス、107 メモリーカードインターフェイス、107A メモリーカード、119 内部バス、120 記憶装置、122 プログラム、124 設定情報、131 受付部、132 特定部、133 決定部、134 抽出部、135 算出部、136 判定部、137 第1設定部、138 第2設定部、500 撮像装置、600 入力装置、700 出力装置、B,B1,B4 バー、C バーコード、G1,G2,G3,G4,G5 画面、I 撮像画像、L ラベル、P バー領域、Q 検査対象領域、R,R1,R2,R3,R4 部分領域、TH,TH1,TH2,TH3,TH4 所定幅、W 縦幅。 1 Image processing system, 100 Image processing device, 101 Processor, 102 Main memory, 103 Communication interface, 104 Camera interface, 105 Input interface, 106 Output interface, 107 Memory card interface, 107A Memory card, 119 Internal bus, 120 Storage device, 122 Program, 124 Setting information, 131 Reception unit, 132 Identification unit, 133 Decision unit, 134 Extraction unit, 135 Calculation unit, 136 Judgment unit, 137 First setting unit, 138 Second setting unit, 500 Imaging device, 600 Input device, 700 Output device, B, B1, B4 Bar, C Bar code, G1, G2, G3, G4, G5 Screen, I Captured image, L Label, P Bar area, Q Inspection target area, R, R1, R2, R3, R4 Partial area, TH, TH1, TH2, TH3, TH4 predetermined width, W vertical width.

Claims (7)

複数のバーを含むバーコードを撮像した撮像画像を受け付ける受付部と、
前記撮像画像における前記複数のバーに相当するバー領域を特定する特定部と、
前記バー領域に基づいて検査対象領域を決定する決定部と、
前記複数のバーに対応する特徴を有する画素で構成される少なくとも1つの部分領域を前記検査対象領域から抽出する抽出部と、
抽出した前記少なくとも1つの部分領域の各々の長手方向の長さを算出する算出部と、
前記長さの最小値が閾値未満である場合に、前記バーコードの外観が不良であると判定する判定部とを備える、画像処理装置。
a reception unit that receives an image of a barcode including a plurality of bars;
an identification unit that identifies a bar region corresponding to the plurality of bars in the captured image;
A determination unit that determines an inspection target area based on the bar area;
an extraction unit that extracts at least one partial area configured with pixels having characteristics corresponding to the plurality of bars from the inspection target area;
A calculation unit that calculates a length in a longitudinal direction of each of the at least one extracted partial region;
and a determination unit that determines that an appearance of the barcode is defective if the minimum length value is less than a threshold value.
前記検査対象領域は、前記バー領域を上下左右の方向に所定幅だけ拡大した領域である、請求項1に記載の画像処理装置。 The image processing device according to claim 1, wherein the inspection target area is an area obtained by expanding the bar area by a predetermined width in the up, down, left and right directions. 前記画像処理装置は、ユーザによる入力操作に基づいて前記所定幅を設定する第1設定部をさらに備える、請求項2に記載の画像処理装置。 The image processing device according to claim 2, further comprising a first setting unit that sets the predetermined width based on an input operation by a user. 前記画像処理装置は、ユーザによる入力操作に基づいて前記閾値を設定する第2設定部をさらに備える、請求項1~請求項3のいずれか1項に記載の画像処理装置。 The image processing device according to any one of claims 1 to 3, further comprising a second setting unit that sets the threshold value based on an input operation by a user. 前記受付部は、前記バーコードの正解画像をさらに受け付け、
前記画像処理装置は、前記正解画像の前記少なくとも1つの部分領域の前記長さの最小値に基づいて前記閾値を設定する第2設定部をさらに備える、請求項1~請求項3のいずれか1項に記載の画像処理装置。
The reception unit further receives a correct image of the barcode,
The image processing device according to any one of claims 1 to 3, further comprising a second setting unit configured to set the threshold value based on a minimum value of the length of the at least one partial region of the correct image.
コンピュータが実行する画像処理方法であって、
複数のバーを含むバーコードを撮像した撮像画像を受け付けることと、
前記撮像画像における前記複数のバーに相当するバー領域を特定することと、
前記バー領域に基づいて検査対象領域を決定することと、
前記複数のバーに対応する特徴を有する画素で構成される少なくとも1つの部分領域を前記検査対象領域から抽出することと、
抽出した前記少なくとも1つの部分領域の各々の長手方向の長さを算出することと、
前記長さの最小値が閾値未満である場合に、前記バーコードの外観が不良であると判定することとを備える、画像処理方法。
1. A computer-implemented image processing method, comprising:
receiving an image of a barcode including a plurality of bars;
Identifying a bar region corresponding to the plurality of bars in the captured image;
determining an inspection target area based on the bar area;
extracting at least one partial region from the inspection area, the partial region being composed of pixels having characteristics corresponding to the plurality of bars;
Calculating a length in a longitudinal direction of each of the at least one extracted partial region;
determining that the appearance of the barcode is defective if the minimum length is less than a threshold.
請求項6に記載の画像処理方法をコンピュータに実行させるための画像処理プログラム。
An image processing program for causing a computer to execute the image processing method according to claim 6.
JP2021130264A 2021-08-06 2021-08-06 IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND IMAGE PROCESSING PROGRAM Active JP7658211B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021130264A JP7658211B2 (en) 2021-08-06 2021-08-06 IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND IMAGE PROCESSING PROGRAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021130264A JP7658211B2 (en) 2021-08-06 2021-08-06 IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND IMAGE PROCESSING PROGRAM

Publications (2)

Publication Number Publication Date
JP2023024148A JP2023024148A (en) 2023-02-16
JP7658211B2 true JP7658211B2 (en) 2025-04-08

Family

ID=85204134

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021130264A Active JP7658211B2 (en) 2021-08-06 2021-08-06 IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND IMAGE PROCESSING PROGRAM

Country Status (1)

Country Link
JP (1) JP7658211B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010054289A (en) 2008-08-27 2010-03-11 Omron Corp Visual inspection system
JP2013040895A (en) 2011-08-19 2013-02-28 Dainippon Printing Co Ltd Bar code visual inspection system, and bar code visual inspection method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010054289A (en) 2008-08-27 2010-03-11 Omron Corp Visual inspection system
JP2013040895A (en) 2011-08-19 2013-02-28 Dainippon Printing Co Ltd Bar code visual inspection system, and bar code visual inspection method

Also Published As

Publication number Publication date
JP2023024148A (en) 2023-02-16

Similar Documents

Publication Publication Date Title
CN118967672B (en) Industrial defect detection method, system, device and storage medium
KR100730051B1 (en) Defect detection apparatus and defect detection method
JP3834041B2 (en) Learning type classification apparatus and learning type classification method
JP5546317B2 (en) Visual inspection device, visual inspection discriminator generation device, visual inspection discriminator generation method, and visual inspection discriminator generation computer program
CN109472271B (en) Printed circuit board image contour extraction method and device
US10109045B2 (en) Defect inspection apparatus for inspecting sheet-like inspection object, computer-implemented method for inspecting sheet-like inspection object, and defect inspection system for inspecting sheet-like inspection object
KR20090101356A (en) Fault detection device and fault detection method
US12087421B2 (en) AI-based product surface inspecting apparatus and method
US20120207379A1 (en) Image Inspection Apparatus, Image Inspection Method, And Computer Program
CN113781396A (en) Screen defect detection method, device, equipment and storage medium
KR101842535B1 (en) Method for the optical detection of symbols
JP2021039734A (en) Specification of module size of optical code
JP2019045451A (en) Inspection apparatus, inspection method and program
JP7658211B2 (en) IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND IMAGE PROCESSING PROGRAM
JP2021064300A (en) Information processing apparatus, information processing method, and program
CN112129768B (en) Appearance inspection management system, apparatus, method, and storage medium
CN116580026B (en) Automatic optical detection method, equipment and storage medium for appearance defects of precision parts
JP2018173732A (en) Inspection device, inspection method, inspection program, and recording medium
CN117788444A (en) SMT patch offset detection method, SMT patch offset detection device and SMT patch offset detection system
CN101666641B (en) Image recognition method
CN113506297B (en) Printing data identification method based on big data processing
JP2016217872A (en) Inspection device, inspection method, program, and storage media
JP7380332B2 (en) Image processing device, control method and program for the image processing device
JP5988228B2 (en) Two-dimensional code, image reading apparatus, image reading method, program, and storage medium
CN116993654A (en) Camera module defect detection methods, devices, equipment, storage media and products

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20240610

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20250212

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20250310

R150 Certificate of patent or registration of utility model

Ref document number: 7658211

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150