JP2019215659A - Image inspection device and image detection method thereof - Google Patents

Image inspection device and image detection method thereof Download PDF

Info

Publication number
JP2019215659A
JP2019215659A JP2018111843A JP2018111843A JP2019215659A JP 2019215659 A JP2019215659 A JP 2019215659A JP 2018111843 A JP2018111843 A JP 2018111843A JP 2018111843 A JP2018111843 A JP 2018111843A JP 2019215659 A JP2019215659 A JP 2019215659A
Authority
JP
Japan
Prior art keywords
image
inspection
block
amount
calculated
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
JP2018111843A
Other languages
Japanese (ja)
Other versions
JP7017207B2 (en
Inventor
祐志 森
Yushi Mori
祐志 森
行馬 渡邉
Ikuma Watanabe
行馬 渡邉
英明 浅井
Hideaki Asai
英明 浅井
菊地真人
Masato Kikuchi
真人 菊地
孝彰 原
Takaaki Hara
孝彰 原
金澤 雅樹
Masaki Kanazawa
雅樹 金澤
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.)
TechnoWave Ltd
Airec Engineering Corp
Original Assignee
TechnoWave Ltd
Airec Engineering 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 TechnoWave Ltd, Airec Engineering Corp filed Critical TechnoWave Ltd
Priority to JP2018111843A priority Critical patent/JP7017207B2/en
Publication of JP2019215659A publication Critical patent/JP2019215659A/en
Application granted granted Critical
Publication of JP7017207B2 publication Critical patent/JP7017207B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

To perform a combination, in a block image divided vertically and horizontally, so that the number of alignment points for correction of a positional deviation satisfies the necessary number, thereby correcting the positional deviation of an inspection object.SOLUTION: An image inspection device includes a block image correction unit, detects a POS point as an alignment point from a reference image including an inspection object, and defines a point at which a positional deviation amount can be calculated for pixels in the vicinity of an area corresponding to the POS point for each block image obtained by dividing an inspection image including the same inspection object vertically and horizontally as a POM point. If the number of POM points in one block image is less than a set number, the adjacent block images are combined until the number of POM points exceeds the set number. An average value is obtained by summing the positional deviation amounts of the uncombined or combined block images and dividing the sum by the number of POM points, and the sign is inverted to obtain a registration correction amount. An image block of the comparison image including the inspection image corrected by the alignment correction amount is compared with a block image of the reference image to determine whether the inspection image is good or bad.SELECTED DRAWING: Figure 1

Description

本発明の実施形態は、検査対象の画像検査装置及び、その画像検出方法に関する。   An embodiment of the present invention relates to an image inspection apparatus for an inspection object and an image detection method thereof.

従来、印刷される文字の品質の検査は、例えば良品である基準文字を含む基準画像を判定基準として、読み取った検査対象となる印刷文字が基準文字と一致しているか否かを比較して、印刷文字の良/不良が判定されている。ワーク又はワークに貼付されるラベルに印刷された文字や記号及び絵柄は、例えば、ラインセンサ等の撮像部によって光学的に読み取られ、光電変換により静止画像の画像データ(映像信号)として生成される。   Conventionally, the inspection of the quality of the characters to be printed is, for example, using a reference image including non-defective reference characters as a criterion, by comparing whether the read print characters to be inspected match the reference characters, Good / bad print characters are determined. Characters, symbols, and pictures printed on the work or on a label attached to the work are optically read by an imaging unit such as a line sensor, and are generated as still image data (video signal) by photoelectric conversion. .

ラインセンサは、複数の撮像子を一列に配置する構成であるため、ラインセンサ自体又はワークを移動させて走査により撮像する。例えば、ワークが円筒形状の樹脂チューブである場合、樹脂チューブの側面に印刷された、又は貼付されたラベルに印刷された文字を読み取るためには、樹脂チューブを回転させて読み取ることとなる。この時、樹脂チューブにおける回転軸の偏心や貼付方向のずれ等があった場合には、読み取った画像は、画像データに傾きが生じて、基準文字に対して位置ずれが生じている虞がある。   Since the line sensor has a configuration in which a plurality of image pickup elements are arranged in a line, the line sensor itself or a workpiece is moved to perform imaging by scanning. For example, when the work is a cylindrical resin tube, in order to read a character printed on a side surface of the resin tube or a label printed thereon, the resin tube is rotated and read. At this time, if there is an eccentricity of the rotation axis of the resin tube or a shift in the sticking direction, the read image may be tilted in the image data and may be shifted from the reference character. .

特許第3725207号公報Japanese Patent No. 3725207

前述した読み取った検査画像データに生じた傾き等に対して、基準との比較により判定する場合には、位置ずれ補正を行う必要がある。例えば、特許文献1には、読み取った画像データ(画素群)を一定数のラインブロック画像に分割して、ブロック単位で位置ずれ補正を行っている。位置補正を行うためには、各ラインブロック画像内に複数の特徴点を含めなければならず、検査対象となる画像によっては、画像の切り分けの設定が難しくなっている。   In the case where the inclination or the like generated in the read inspection image data described above is determined by comparison with a reference, it is necessary to perform misregistration correction. For example, in Japanese Patent Application Laid-Open No. H11-163, the read image data (pixel group) is divided into a fixed number of line block images, and positional deviation correction is performed in block units. In order to perform position correction, a plurality of feature points must be included in each line block image, and it is difficult to set image segmentation depending on the image to be inspected.

また、画像の水平方向で等間隔に分離した帯状のラインブロック画像による位置ずれ補正もあるが、帯状のラインブロック画像は、長さが長くなるほど、端部側の位置ずれ補正量が大きくなるため演算処理量が多くなり、処理時間の高速化を実現するための高性能化が望まれる。また、帯状のラインブロック画像においては、例えば、ラインセンサによる撮像時に、中程に撓み等があるラベルから読み取った検査画像は、文字列の中程に上下の位置ずれが発生する場合ある。1本の帯状のラインブロック画像の中央寄りで、列状に記載される文字列の一部が上下に位置ずれしているような部分的な位置ずれの補正は対応できない。   In addition, there is also displacement correction using band-shaped line block images separated at equal intervals in the horizontal direction of the image. However, as the length of the band-shaped line block image increases, the amount of displacement correction on the end side increases. The amount of arithmetic processing increases, and higher performance for realizing faster processing time is desired. In a strip-shaped line block image, for example, when an image is read by a line sensor, an inspection image read from a label having a middle bend or the like may be displaced vertically in the middle of a character string. It is not possible to cope with partial displacement correction such that a part of a character string described in a row is vertically displaced near the center of one strip-shaped line block image.

そこで本発明は、検査対象を含み縦横分割されたブロック画像内に位置ずれ補正のための位置合わせ点が設定数を満たすように結合を行い、検査対象の位置ずれ補正を行う画像検査装置及び、その画像検出方法を提供することを目的とする。   Therefore, the present invention provides an image inspection apparatus that performs alignment so that alignment points for misalignment correction satisfies a set number in a vertically and horizontally divided block image including an inspection object, and performs misalignment correction of the inspection object, and An object of the present invention is to provide an image detection method.

本発明に従う実施形態の画像検査装置は、検査対象を含む基準画像に座標情報を与え、前記基準画像から位置合わせ点を検出する位置合わせ点検出部と、前記検査対象を含む検査画像を縦横分割したブロック画像内で、前記位置合わせ点の画素の濃度と、前記ブロック画像内で前記位置合わせ点に対応する座標近傍にある画素の濃度とを比較し、差分による位置ずれ量を計算する位置ずれ量計算部と、前記位置ずれ量が計算できる画素を位置ずれ量が計算できた点とし、該位置ずれ量が計算できた点が1つのブロック画像内で設定数に満たない場合には、前記設定数を越えるまで、隣接するブロック画像と結合を繰り返すブロック結合部と、前記基準画像の前記検査対象を基準位置として、前記設定数を越える前記位置ずれ量が計算できた点を有する前記検査画像の前記検査対象の位置ずれを補正する位置合わせ補正量を求める補正量検出部と、を備え、前記位置合わせ補正量で補正された前記検査画像のブロック画像と、前記基準画像とを比較して、検査画像の良・不良判定を行う。   An image inspection apparatus according to an embodiment of the present invention provides a reference image including an inspection target with coordinate information, an alignment point detection unit that detects an alignment point from the reference image, and vertically and horizontally divides an inspection image including the inspection target. In the block image obtained, the density of the pixel at the alignment point is compared with the density of a pixel near the coordinates corresponding to the alignment point in the block image, and the amount of positional shift due to the difference is calculated. The amount calculation unit, and a pixel from which the amount of displacement can be calculated is a point at which the amount of displacement can be calculated. If the number of points at which the amount of displacement can be calculated is less than a set number in one block image, A block combining unit that repeats combining with an adjacent block image until the set number is exceeded, and a point at which the displacement amount exceeding the set number can be calculated with the inspection target of the reference image as a reference position. A correction amount detection unit that calculates an alignment correction amount that corrects a positional shift of the inspection target of the inspection image, and a block image of the inspection image corrected with the alignment correction amount, and the reference image. Are compared to determine whether the inspection image is good or bad.

本発明によれば、検査対象を含み縦横分割されたブロック画像内に位置ずれ補正のための位置合わせ点が設定数を満たすように結合を行い、検査対象の位置ずれ補正を行う画像検査装置及び、その画像検出方法を提供することができる。   According to the present invention, there is provided an image inspection apparatus that performs alignment so that alignment points for positional deviation correction satisfies a set number in a vertically and horizontally divided block image including an inspection target and corrects positional deviation of an inspection target, and , The image detection method can be provided.

図1は、一実施形態に係る画像検査装置の構成例を概念的に示す図である。FIG. 1 is a diagram conceptually illustrating a configuration example of an image inspection apparatus according to an embodiment. 図2は、ブロック画像補正について説明するための図である。FIG. 2 is a diagram for explaining the block image correction. 図3は、ブロック画像に位置合わせ点を含ませる画像結合について説明するための図である。FIG. 3 is a diagram for explaining image combination for including a registration point in a block image. 図4は、実施形態の画像検査装置による画像位置ずれ補正について説明するためのフローチャートである。FIG. 4 is a flowchart for explaining image position shift correction by the image inspection apparatus of the embodiment. 図5は、カラー画像に対するブロック画像を用いた画像検査について説明するための図である。FIG. 5 is a diagram for describing image inspection using a block image for a color image.

以下、図面を参照して本発明の実施形態について詳細に説明する。
本実施形態に係る画像検査装置は、検査対象の基準文字及び基準絵柄を含む基準画像を縦横分割したブロック画像と、同じ検査対象を含む撮像した検査画像を基準画像と同じ区分で縦横分割したブロック画像とに分割する。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
The image inspection apparatus according to the present embodiment includes a block image obtained by vertically and horizontally dividing a reference image including a reference character and a reference pattern to be inspected, and a block obtained by vertically and horizontally dividing a captured inspection image including the same inspection object in the same section as the reference image. Divide into images.

画像検査装置は、ブロック画像補正部を備える。ブロック画像補正部は、1つのブロック画像毎に、予め基準画像に設けた座標上に設定した特徴点である位置合わせ点(POS点)と検査画像上でPOS点と対応する領域近傍に対して、いわゆるテンプレートマッチングを行うことによって、座標のX方向及びY方向のそれぞれについて位置ずれの量を計算する。以下の説明において、位置ずれ量が算出された位置合わせ点をPOM点と称している。1つのブロック画像内のPOM点が予め定めた設定数に満たなかった場合には、設定数を越えるまで、隣接するブロック画像と結合する。結合したブロック画像を含めて、POM点が予め定めた設定数以上のブロック画像は、位置ずれ量を合算しPOM点の数で割って平均値を求め、その符号を反転することで位置合せ補正量とする。前記位置合わせ補正量で補正された検査画像からなる比較画像の画像ブロックと基準画像のブロック画像とを比較して、検査画像の良・不良判定を行う。   The image inspection device includes a block image correction unit. The block image correction unit performs, for each block image, an alignment point (POS point), which is a feature point set on coordinates provided in advance in the reference image, and a vicinity of an area corresponding to the POS point on the inspection image. That is, by performing so-called template matching, the amount of displacement is calculated for each of the X direction and the Y direction of the coordinates. In the following description, the alignment point at which the amount of misalignment has been calculated is referred to as a POM point. If the number of POM points in one block image is less than the preset number, the image is combined with the adjacent block images until the number exceeds the preset number. For block images with a POM point equal to or greater than a predetermined number, including the combined block images, the position shift amount is summed, divided by the number of POM points to obtain the average value, and the sign is inverted to reverse the sign to correct the position alignment Amount. An image block of a comparative image composed of the inspection image corrected by the alignment correction amount is compared with a block image of the reference image to determine whether the inspection image is good or bad.

[第1の実施形態]
図1は、第1の実施形態に係る画像検査装置の構成例を概念的に示す図である。
画像検査装置100は、撮像部1と、画像処理部2と、制御部3と、表示部4と、入力部5と、記憶部6とで構成される。
本実施形態において、撮像部1は、印刷された文字や記号及び絵柄を光学的に読み取り、光電変換により静止画像の画像データ(デジタル信号)を生成する。
[First Embodiment]
FIG. 1 is a diagram conceptually illustrating a configuration example of the image inspection apparatus according to the first embodiment.
The image inspection apparatus 100 includes an imaging unit 1, an image processing unit 2, a control unit 3, a display unit 4, an input unit 5, and a storage unit 6.
In the present embodiment, the imaging unit 1 optically reads printed characters, symbols, and patterns, and generates still image data (digital signals) by photoelectric conversion.

撮像部1は、CCD撮像素子又は、CMOS撮像素子を用いた所謂、デジタルカメラにより静止画像をフレーム単位に撮像する又は、撮像素子がライン状に配置されるラインセンサを用いて撮像する。本実施形態では、ラインセンサを用いた撮像部1を用いている。ラインセンサは、ラインセンサ自体又は検査対象物を移動(平行移動及び回転移動を含む)させて走査により、文字や記号及び絵柄を撮像する。特に、ラインセンサを用いた撮像部1は、曲面に印刷又は、貼付されたラベルの文字を読み取る場合などに好適する。   The imaging unit 1 captures a still image in a frame unit by a so-called digital camera using a CCD imaging device or a CMOS imaging device, or captures an image using a line sensor in which the imaging devices are arranged in a line. In the present embodiment, the imaging unit 1 using a line sensor is used. The line sensor captures images of characters, symbols, and pictures by moving the line sensor itself or the inspection target (including translation and rotation) and scanning. In particular, the imaging unit 1 using a line sensor is suitable for reading characters on a label printed or pasted on a curved surface.

表示部4は、例えば、液晶表示モニタを用いる。表示部4は、制御部3の制御に従い、操作画面、検査状況及び判定結果等の種々の情報を表示する。入力部5は、例えば、各種スイッチ、キーボード及びマウス等の入力デバイスを組み合わせて用いている。また、入力部5として、表示部4の画面上にタッチパネルを設けて利用してもよい。
記憶部6は、制御部3を動作させるためのプログラムやアプリケーションソフトが記憶される。さらに、後述する特徴点である位置合わせ点の座標情報やブロック画像の位置合わせ補正量等も記憶する。
The display unit 4 uses, for example, a liquid crystal display monitor. The display unit 4 displays various information such as an operation screen, an inspection status, and a determination result according to the control of the control unit 3. The input unit 5 uses, for example, various switches, input devices such as a keyboard and a mouse in combination. As the input unit 5, a touch panel may be provided on the screen of the display unit 4 and used.
The storage unit 6 stores a program for operating the control unit 3 and application software. Further, it also stores coordinate information of a positioning point, which is a feature point described later, a position correction amount of a block image, and the like.

画像処理部2は、撮像部1から出力された画像データ(基準画像REM,検査画像DI)に対して、CDS(相関二重サンプリング)処理、及びAGC(利得制御)処理等が施される。この時に、各画素の濃度(明度)を量子化による256階調の明度値(グレースケール)に数値化する。この明度値は、画素値とする。画像処理部2は、位置合わせ点検出部16及び記憶部6に基準画像の画像データを出力し、ブロック分割部11に検査画像の画像データを出力する。画像処理部2は、制御部3と一体的に構成されてもよい。   The image processing unit 2 performs CDS (correlated double sampling) processing, AGC (gain control) processing, and the like on image data (reference image REM, inspection image DI) output from the imaging unit 1. At this time, the density (lightness) of each pixel is digitized into a lightness value (gray scale) of 256 gradations by quantization. This lightness value is a pixel value. The image processing unit 2 outputs the image data of the reference image to the alignment point detection unit 16 and the storage unit 6, and outputs the image data of the inspection image to the block division unit 11. The image processing unit 2 may be configured integrally with the control unit 3.

制御部3は、ブロック分割部11と、ブロック画像補正部12と、比較画像生成部13と、比較部14と、判定部15、位置合わせ点検出部16とを備えている。制御部3は、専用のプログラムやアプリケーションソフトを用いれば、汎用的なパーソナルコンピュータで構成することも可能である。   The control unit 3 includes a block division unit 11, a block image correction unit 12, a comparison image generation unit 13, a comparison unit 14, a determination unit 15, and an alignment point detection unit 16. The control unit 3 can be configured by a general-purpose personal computer by using a dedicated program or application software.

ブロック分割部11は、画像処理部2から出力された基準画像及び検査画像の画像データ(1フレーム)に対して、座標情報(XY座標)を与えて、図2に示すような基準画像31(REM)、検査画像32(DI)のフレームを縦横に分割して、複数のブロック画像を生成する。   The block division unit 11 gives the coordinate information (XY coordinates) to the image data (one frame) of the reference image and the inspection image output from the image processing unit 2, and outputs the reference image 31 (see FIG. 2). REM) and a frame of the inspection image 32 (DI) are divided vertically and horizontally to generate a plurality of block images.

ブロック画像は、座標情報により、フレーム上の位置や大きさが定義され、ブロック画像内の検査対象に対しても座標情報が付与されているものとする。以下の説明において、縦横分割された各部分画像をブロック画像と称し、又は帯状に分割したラインブロックを縦割りすることからサブラインブロック画像とも称してもよい。ブロック分割部11は、基準画像と検査画像に対して同一の座標情報を与えた後、同一の区分で縦横分割を行い、ブロック画像を生成する。この分割においては、基準画像と検査画像内には、同じ検査対象が画像内に含まれているものとする。図2においては、枠部41が検査対象となる。   The position and size of the block image on the frame are defined by the coordinate information, and the coordinate information is also given to the inspection target in the block image. In the following description, each of the partial images divided vertically and horizontally may be referred to as a block image, or may be referred to as a sub-line block image because a line block divided into a band shape is divided vertically. After giving the same coordinate information to the reference image and the inspection image, the block division unit 11 performs vertical and horizontal division in the same section to generate a block image. In this division, it is assumed that the same inspection target is included in the reference image and the inspection image. In FIG. 2, the frame part 41 is an inspection target.

ブロック画像補正部12は、検査画像に対して、1つのブロック画像毎に、予め基準画像に設けた座標上に設定した特徴点である位置合わせ点(POS点)と検査画像上でPOS点と対応する領域近傍に対して、いわゆるテンプレートマッチングを行うことによって、座標のX方向及びY方向のそれぞれについて位置ずれの量を計算する。この位置ずれ量が計算できた点(POM点)が予め定められた設定数に満たなかった場合には、隣接するブロック画像と結合し、結合したブロック画像のPOM点を合算する。そして、POM点数の合算値が設定数を越えるまで、隣接するブロック画像と結合し続ける。結合しなくともPOM点が設定数以上のブロック画像(非結合)は、ブロック内のPOM点の位置ずれ量を、X,Y座標毎にそれぞれ合算し、POM点の数で割って平均値を求め符号を逆転することによって、そのブロック画像のX方向、Y方向それぞれの位置合わせ補正量とする。また、結合したブロック画像においては、結合したブロック全てに含まれるPOM点を用いて、上記と同じ要領で位置合わせ補正量を算出する。   The block image correction unit 12 determines, for each block image, an alignment point (POS point), which is a feature point set on coordinates provided in the reference image, and a POS point on the inspection image. By performing so-called template matching on the vicinity of the corresponding area, the amount of displacement is calculated for each of the X and Y directions of the coordinates. If the point (POM point) at which the amount of displacement can be calculated is less than the predetermined number, the block image is combined with an adjacent block image and the POM points of the combined block image are added up. Until the sum of the POM points exceeds the set number, the POM points are continuously combined with the adjacent block images. For a block image in which the number of POM points is greater than the set number (non-combined) even if not combined, the amount of displacement of the POM points in the block is summed for each of the X and Y coordinates and divided by the number of POM points to obtain the average value By reversing the obtained code, the block image is set as the position correction amount in the X direction and the Y direction, respectively. In the combined block image, the POM points included in all the combined blocks are used to calculate the alignment correction amount in the same manner as described above.

位置合わせ点検出部16は、基準画像に座標(座標情報)を設定する。次に、位置合わせを行うために基準画像から、図3に示す極小の画素群で形成される位置合わせ点(POS点)を検出する。画像の比較に用いる位置合わせ点は、特徴点と同様であり、文字や罫線を含む特徴的な図柄又は、それらのエッジ、又は周囲と輝度が異なるものなど公知なものでよい。位置合わせ点検出部16は、位置合わせ点(POS点)を基準画像の各ブロック画像の位置情報(座標情報)に関連づけてマップデータを作成し、記憶部6に記憶する。   The alignment point detection unit 16 sets coordinates (coordinate information) in the reference image. Next, a positioning point (POS point) formed by the minimum pixel group shown in FIG. 3 is detected from the reference image in order to perform positioning. The alignment points used for comparing the images are the same as the characteristic points, and may be a known pattern such as a characteristic pattern including a character or a ruled line, an edge thereof, or a luminance different from the surroundings. The registration point detection unit 16 creates map data by associating the registration points (POS points) with the position information (coordinate information) of each block image of the reference image, and stores the map data in the storage unit 6.

ブロック画像補正部12は、位置ずれ量計算部21と、ブロック結合部22と、補正量算出部23とで構成される。
位置ずれ量計算部21は、テンプレートマッチングによりPOS点周辺の位置ずれ量を計算する。その計算方法として、基準画像のPOS点の画素の濃度と、検査画像内でPOS点に対応する座標近傍にある画素の濃度とを比較する。この比較、即ち、画素毎の濃度の差分の絶対値の合計値を計算する。その合計値の大きさにより、POS点と、検査画像内でPOS点に対応する座標近傍にある画素(点)における位置ずれ量を算出する。
The block image correction unit 12 includes a position shift amount calculation unit 21, a block combination unit 22, and a correction amount calculation unit 23.
The displacement calculator 21 calculates the displacement around the POS point by template matching. As a calculation method, the density of the pixel at the POS point in the reference image is compared with the density of the pixel near the coordinates corresponding to the POS point in the inspection image. This comparison, that is, the total value of the absolute values of the differences in density for each pixel is calculated. Based on the magnitude of the total value, the displacement amount between the POS point and the pixel (point) near the coordinates corresponding to the POS point in the inspection image is calculated.

位置ずれ量が計算できる点は、そのブロック画像内のPOM点(位置ずれ量が計算できた点)として記録する。尚、画像に著しい位置ずれが生じている場合、及びPOS点位置に存在するはずの図柄が欠損していた場合などは、比較した画像同士の差異が大きく差分の合計値が十分に小さくならないためPOM点として認めないものとする。   Points at which the amount of displacement can be calculated are recorded as POM points (points at which the amount of displacement can be calculated) in the block image. In addition, when the image is significantly displaced, or when the symbol that should exist at the POS point position is missing, the difference between the compared images is large and the total value of the differences does not become sufficiently small. Not accepted as a POM point.

ブロック結合部22は、位置ずれ量計算部21の計算結果に基づき、検査画像の1つのブロック画像内のPOM点の数を積算する。また、検査画像の1つのブロック画像内に4個以上のPOM点の有無を判断し、POM点の合計が設定された4個以上となるまで、隣接するブロック画像と結合する。
分割により切り出された各ブロック画像は、必ずしも4個以上のPOM点が算出されるとは限らない。そこで、POM点が4個未満のブロック画像であれば、POM点の合計が4個以上となるまで、隣接するブロック画像と結合する。尚、本実施形態では、POM点の設定数として、4個を一例として説明しているが、4個に限定されるものではなく、検査画像内の検査対象の形状や画質や解像度等により、適宜、設定される個数である。
The block combining unit 22 integrates the number of POM points in one block image of the inspection image based on the calculation result of the displacement amount calculating unit 21. Also, the presence or absence of four or more POM points in one block image of the inspection image is determined, and the POM points are combined with adjacent block images until the total number of POM points becomes the set four or more.
In each block image cut out by division, four or more POM points are not always calculated. Therefore, if a block image has less than four POM points, it is combined with an adjacent block image until the total number of POM points becomes four or more. In the present embodiment, four POM points are set as an example. However, the number is not limited to four. Depending on the shape, image quality, resolution, and the like of the inspection target in the inspection image, The number is set as appropriate.

図3を参照して説明する。ここでは、設定数が4個のブロック画像を一例としている。ブロック画像SB1は、4個のブロック画像P1,P2,P3,P4が直列する。この例では、ブロック画像P1,P2,P4は、共に、位置合わせに利用できる1個のPOM点が存在する。また、ブロック画像P3は、位置合わせに利用できる4個のPOM点が存在する。従って、ブロック画像P1,P2,P4は、位置合わせ補正を行うためには、POM点の数が不足している。   This will be described with reference to FIG. Here, a set number of block images is four as an example. In the block image SB1, four block images P1, P2, P3, and P4 are arranged in series. In this example, each of the block images P1, P2, and P4 has one POM point that can be used for alignment. The block image P3 has four POM points that can be used for alignment. Therefore, the block images P1, P2, and P4 have insufficient number of POM points to perform the alignment correction.

まず、ブロック画像SB2に示すように、ブロック画像P1とブロック画像P2を結合させて、ブロック画像P12とする。このブロック画像P12は、2個のPOM点となるが、設定数に対して、まだ不足している。他方、ブロック画像P3とブロック画像P4を結合させて、ブロック画像P34とする。このブロック画像P34内には、5個のPOM点となり、4個以上の条件を満たしている。   First, as shown in the block image SB2, the block image P1 and the block image P2 are combined to form a block image P12. Although this block image P12 has two POM points, it is still insufficient for the set number. On the other hand, the block image P3 and the block image P4 are combined to form a block image P34. There are five POM points in this block image P34, which satisfies four or more conditions.

しかし、ブロック画像P12は、まだPOM点が設定数に対して不足しているため、ブロック画像SB3に示すように、隣接するブロック画像P34と結合して、ブロック画像Pとする。このブロック画像Pにおいては、7個のPOM点となり、4個以上の条件を満たしている。   However, since the number of POM points is still insufficient for the set number, the block image P12 is combined with the adjacent block image P34 to form the block image P as shown in the block image SB3. In this block image P, there are seven POM points, which satisfies four or more conditions.

また、隣接するブロック画像の結合においては、優先性や結合順を設定してもよい。例えば、第1の係合順として、ブロック画像の並びのいずれかの端から、例えば、右端のブロック画像から左側に向かって、一組ずつ組み合わせて順次結合する。第2の結合順として、両側にブロック画像が隣接していた場合に、POM点が多い方のブロック画像と優先的に結合する。第3の結合順として、最もPOM点が多い(又は、少ない)ブロック画像を起点として、両側に広がるように順次結合する。   In addition, in combining adjacent block images, a priority and a combining order may be set. For example, as a first engagement order, one set is combined and sequentially combined from one end of the arrangement of the block images to, for example, the left end from the right end block image. As a second combination order, when a block image is adjacent to both sides, the block image is preferentially combined with the block image having the larger number of POM points. As a third combination order, the block images having the largest (or smallest) POM point are sequentially combined so as to spread to both sides.

補正量算出部23は、検査画像のPOM点が4個以上の条件を満たしている非結合、または、結合されたブロック画像において、POM点の位置ずれ量情報を用いて、基準画像の検査対象の特定の部位の位置に、検査画像の検査対象の同一な特定部位の位置が近づくためのX方向、Y方向の補正量を算出する。補正量は、ブロック内のPOM点の位置ずれ量をX,Y座標毎にそれぞれ合算し、POM点の数で割って平均値を求めその値に−1を掛けることによって計算される。   The correction amount calculation unit 23 uses the POM point position shift amount information in the uncombined or combined block image in which the number of POM points of the inspection image satisfies the condition of four or more to inspect the reference image. The amount of correction in the X and Y directions is calculated so that the position of the same specific part of the inspection target in the inspection image approaches the position of the specific part. The correction amount is calculated by summing the displacement amounts of the POM points in the block for each of the X and Y coordinates, dividing by the number of POM points, obtaining an average value, and multiplying the obtained value by -1.

具体例とすれば、図2に示す基準画像31(REM)のブロック画像42a内に存在する検査対象の枠部41を基準位置とする。検査画像32(DI)のブロック画像43aの枠部41の位置が基準画像31の枠部41の位置に近づくための位置合わせ補正量を算出する。   As a specific example, the frame portion 41 to be inspected existing in the block image 42a of the reference image 31 (REM) shown in FIG. 2 is set as the reference position. An alignment correction amount for the position of the frame portion 41 of the block image 43a of the inspection image 32 (DI) to approach the position of the frame portion 41 of the reference image 31 is calculated.

比較画像生成部13は、図2に示すように、検査画像32の各ブロック画像43a〜43nに対して、位置合わせ補正量を用いた補正(X,Y方向への移動)を行い、基準画像の検査対象に近づけた比較画像33の検査対象を形成する。即ち、検査画像32のブロック画像をXY方向で位置補正した比較画像33を生成する。具体的には、比較画像33のブロック画像44aは、位置合わせ補正量により検査画像32(DI)のブロック画像43aを補正した画像である。   As shown in FIG. 2, the comparison image generation unit 13 performs correction (movement in the X and Y directions) on each of the block images 43 a to 43 n of the inspection image 32 using the alignment correction amount, and outputs the reference image. The inspection object of the comparative image 33 which is brought closer to the inspection object is formed. That is, a comparison image 33 is generated by correcting the position of the block image of the inspection image 32 in the XY directions. Specifically, the block image 44a of the comparative image 33 is an image obtained by correcting the block image 43a of the inspection image 32 (DI) by the amount of correction for alignment.

比較部14は、検査画像32を位置補正した比較画像33の各ブロック画像44a〜44n内の位置が補正された検査対象と、基準画像31の検査対象を画素単位で比較する。判定部15は、基準画像と比較画像の比較結果において、基準画像の画素と比較画像の画素の明度の値の差分を取り、予め設定した閾値範囲を逸脱する画素を欠陥画素として判定する。この欠陥画素の数が予め設定した数を越えた際に、検査画像に対して不良判定を行う。判定結果は、表示部に表示又は、他の機器に出力する。   The comparison unit 14 compares the inspection target whose position in each of the block images 44a to 44n of the comparison image 33 whose position of the inspection image 32 has been corrected and the inspection target of the reference image 31 with each pixel. The determination unit 15 calculates a difference between the brightness values of the pixels of the reference image and the pixels of the comparison image in the comparison result of the reference image and the comparison image, and determines a pixel that deviates from a preset threshold range as a defective pixel. When the number of defective pixels exceeds a preset number, a defect is determined for the inspection image. The determination result is displayed on the display unit or output to another device.

尚、さらに比較画像生成部13は、図2を例として、検査画像32の各ブロック画像内の傾きを有する枠部41の部分枠に対して、基準画像31のブロック画像内の枠部41の部分枠の向きに合わせるように、座標を回転させて回転補正を掛ける回転補正部を備えてもよい。   In addition, the comparison image generation unit 13 further compares the frame 41 of the frame image 41 of the reference image 31 with respect to the partial frame of the frame 41 having the inclination in each block image of the inspection image 32 in FIG. A rotation correction unit may be provided that rotates the coordinates to correct the rotation so as to match the direction of the partial frame.

図4に示すフローチャートを参照して、本実施形態の画像検査装置100による画像検査について説明する。
まず、制御部3の指示により撮像部1に撮像された比較基準となる良品の検査対象の文字や記号及び絵柄を含む画像データ(基準画像REM)が画像処理部2に入力される(ステップS1)。
The image inspection performed by the image inspection apparatus 100 according to the present embodiment will be described with reference to the flowchart illustrated in FIG.
First, image data (reference image REM) including a character, a symbol, and a pattern to be inspected for a non-defective product, which is a comparison reference and is captured by the imaging unit 1 according to an instruction from the control unit 3, is input to the image processing unit 2 (step S1). ).

次に、基準画像REMは、位置合わせ点検出部16により、それぞれに位置情報を持つ特徴点からなる位置合わせ点(POS点)を検出する(ステップS2)。さらに、制御部3は、基準画像に対して、POS点の位置情報(座標情報)をマップデータとして作成し、基準画像REMとともに記憶部6に記憶する(ステップS3)。   Next, in the reference image REM, a positioning point (POS point) composed of feature points each having position information is detected by the positioning point detection unit 16 (step S2). Further, the control unit 3 creates position information (coordinate information) of the POS point as map data for the reference image, and stores it in the storage unit 6 together with the reference image REM (step S3).

次に、撮像部1は、検査対象の文字や記号及び絵柄を撮像して検査画像を生成する(ステップS4)。撮像された検査画像は、画像処理部2によって前述した画像処理を施し、階調等が数値化された画像データを含む検査画像DIをブロック分割部11へ出力する。ブロック分割部11は、検査画像DIを予め設定された区分サイズ(例えば、16画素×128画素)ブロック画像を分割する(ステップS5)。この時、検査画像DIにXYの座標情報を与える。尚、ブロック画像の区分サイズは、任意のサイズで有り、検査対象によって適宜設定される。   Next, the imaging unit 1 captures the characters, symbols, and patterns to be inspected to generate an inspection image (step S4). The captured inspection image is subjected to the above-described image processing by the image processing unit 2, and outputs an inspection image DI including image data in which gradations and the like are quantified to the block division unit 11. The block division unit 11 divides the inspection image DI into block images each having a preset division size (for example, 16 pixels × 128 pixels) (step S5). At this time, XY coordinate information is given to the inspection image DI. Note that the section size of the block image is an arbitrary size, and is appropriately set depending on the inspection target.

次に、分割されたブロック画像に対して、前述したように位置ずれ量計算部21により位置ずれ量を検出する(ステップS6)。次に、ブロック結合部22は、位置ずれ量が算出できたPOM点の数を算出して、算出されたPOM点の数が設定数以上か否かを判断する(ステップS7)。検出されたPOM点が設定数に満たなければ(NO)、一纏まりのブロック画像内に4つ以上のPOM点が含まれるように隣接するブロック画像どうしを結合する(ステップS8)。さらに、補正量算出部23は、POM点の位置ずれ量から各ブロック画像の位置合わせ補正量を算出する(ステップS9)。   Next, for the divided block images, the positional shift amount is detected by the positional shift amount calculation unit 21 as described above (step S6). Next, the block combining unit 22 calculates the number of POM points for which the amount of displacement has been calculated, and determines whether the calculated number of POM points is equal to or greater than a set number (step S7). If the number of detected POM points is less than the set number (NO), adjacent block images are combined so that four or more POM points are included in a group of block images (step S8). Further, the correction amount calculation unit 23 calculates a position correction amount of each block image from the position shift amount of the POM point (Step S9).

次に、検査画像(DIB)の各ブロック画像に対して、位置合わせ補正量を用いた補正を行い、基準画像のブロック画像に近づけた比較画像33を形成する(ステップS10)。
次に、比較画像33とブロック画像による基準画像31(REMA)と比較する(ステップS11)。この比較において検査画像の各画素を閾値データと比較し、予め設定した閾値範囲を逸脱する画素を欠陥画素として判定し、結果は、表示部に表示又は、他の機器に出力する(ステップS12)。次に、全ての検査画像の良否判定が終了したかを判断する(ステップS13)。全ての画像の良否判定が終了していない場合には(NO)、ステップS4に戻り、次の検査画像を撮像して検査を継続する。全ての画像の良否判定が終了したならば(YES)、画像検査を終了する。
Next, each block image of the inspection image (DIB) is corrected using the alignment correction amount to form a comparison image 33 close to the block image of the reference image (step S10).
Next, the comparison image 33 is compared with the reference image 31 (REMA) based on the block image (step S11). In this comparison, each pixel of the inspection image is compared with threshold data, and a pixel that deviates from a preset threshold range is determined as a defective pixel, and the result is displayed on a display unit or output to another device (step S12). . Next, it is determined whether the quality determination of all the inspection images has been completed (step S13). If the pass / fail determination has not been completed for all the images (NO), the process returns to step S4 to capture the next inspection image and continue the inspection. When the pass / fail determination of all the images is completed (YES), the image inspection ends.

以上説明した様に、本実施形態の画像検査装置は、基準画像に含まれる文字や絵柄等の検査対象に対して、撮像した検査画像内の同じ検査画像に傾きを有し位置ずれが生じていた場合には、検査画像がブロック分割されているため、ブロック画像の単位で位置合わせのための補正量を算出することができる。従来のラインブロック画像の補正に対して、精度の高い位置補正を実現することができる。   As described above, in the image inspection apparatus according to the present embodiment, the same inspection image in the captured inspection image is inclined and misaligned with respect to the inspection target such as a character or a pattern included in the reference image. In this case, since the inspection image is divided into blocks, it is possible to calculate a correction amount for alignment in units of block images. As compared with the conventional correction of a line block image, highly accurate position correction can be realized.

また、1つのブロック画像内で位置合わせ点が設定数に満たない場合には、その設定数になるまでブロック画像を結合して、位置ずれを補正する位置合わせ補正量を算出することにより、当該ブロックが見当はずれな位置に補正されることや、全く補正されないといったことを防ぐことができる。   In addition, when the number of alignment points in one block image is less than the set number, the block images are combined until the set number is reached, and the alignment correction amount for correcting the positional shift is calculated, thereby It is possible to prevent the block from being corrected to a misregistered position or not being corrected at all.

さらに、従来のラインブロック画像の補正では基準画像の検査対象に対して、撮像した検査画像の検査対象が傾きを持っていた場合には、文字欠け等の画素の欠損がなくても傾き加減によっては、不良判定されていたが、ブロック画像単位で位置ずれを解消する位置合わせを行うため、不要な不良判定を減少させることができる。   Further, in the conventional correction of the line block image, when the inspection target of the captured inspection image has an inclination with respect to the inspection target of the reference image, even if there is no pixel loss such as a character missing, the inclination is adjusted. Has been determined to be defective. However, since position adjustment is performed to eliminate positional deviation in block image units, unnecessary defect determination can be reduced.

[第1の実施形態の変形例]
次に、第1の実施形態の変形例の画像検査装置について説明する。
前述した第1の実施形態においては、基準画像の検査対象に対して、検査画像の検査対象の位置を補正し、比較を行っていた。本変形例では、検査画像の検査対象の位置に対して、基準画像の検査対象の位置を補正して比較を行う。即ち、補正量を求める計算において符号を反転せず、検査画像に対する基準画像の補正量として用いる。本変形例の画像検査装置は、前述した第1の実施形態の装置構成と同等であり、補正量算出部における補正量の算出が異なっている。
[Modification of First Embodiment]
Next, an image inspection apparatus according to a modification of the first embodiment will be described.
In the first embodiment, the position of the inspection target in the inspection image is corrected with respect to the inspection target in the reference image, and the comparison is performed. In this modification, the position of the inspection target in the reference image is corrected with respect to the position of the inspection target in the inspection image, and the comparison is performed. In other words, the sign is not inverted in the calculation of the correction amount, and is used as the correction amount of the reference image with respect to the inspection image. The image inspection apparatus of the present modification is equivalent to the apparatus configuration of the above-described first embodiment, and the calculation of the correction amount by the correction amount calculation unit is different.

この変形例は、検査対象を含む基準画像から位置合わせ点を検出する。この時、基準画像に座標を設定する。基準画像を縦横分割によりブロック画像に分割する。1つのブロック画像毎に、予め基準画像の座標上に設定した特徴点である位置合わせ点(POS点)と、検査画像上でPOS点と対応する領域近傍に対して、座標のX方向及びY方向のそれぞれについて位置ずれの量を計算する。   In this modification, an alignment point is detected from a reference image including an inspection target. At this time, coordinates are set in the reference image. The reference image is divided into block images by vertical and horizontal division. For each block image, the X direction and the Y direction of the coordinates are set for the alignment point (POS point), which is a feature point set in advance on the coordinates of the reference image, and the vicinity of the area corresponding to the POS point on the inspection image. Calculate the amount of displacement for each of the directions.

これらの位置ずれ量が算出できる位置合わせ点をPOM点とする。1つのブロック画像内のPOM点が予め定めた設定数に満たなかった場合には、設定数を越えるまで、隣接するブロック画像と結合する。結合したブロック画像を含めて、POM点が予め定めた設定数以上のブロック画像は、位置ずれ量を合算しPOM点の数で割って平均値を求め、位置合せ補正量とする。前記位置合わせ補正量で補正された基準画像からなる比較画像の画像ブロックと、検査画像のブロック画像とを比較して、検査画像の良・不良判定を行ってもよい。
本変形例においても、前述した第1の実施形態における効果と同等の効果を奏することができる。
A POM point is a position alignment point at which these positional deviation amounts can be calculated. If the number of POM points in one block image is less than the preset number, the block image is combined with the adjacent block images until the number exceeds the preset number. For the block images including the combined block images, the POM points of which are equal to or more than the predetermined number, the sum of the displacements is divided by the number of the POM points to obtain an average value, which is used as a registration correction amount. An image block of a comparative image composed of the reference image corrected by the alignment correction amount may be compared with a block image of the inspection image to determine whether the inspection image is good or bad.
Also in this modification, the same effects as those in the above-described first embodiment can be obtained.

[第2の実施形態]
図5を参照して、第2の実施形態について説明する。
本実施形態の画像検査装置は、1つのカラーブロック画像の3つのR、G、Bブロック画像201,202,203における画像に対して画像の検査を行う。R、G、B画像に対して、第1の実施形態と同様に、ブロック分割、位置合わせ点(POS点)の検出、位置ずれ量計算、隣接するブロック画像どうしの結合、位置ずれを補正するための位置合わせ補正量を算出する。本実施形態では、前述した第1の実施形態における単色の画像に対するものから、単にカラー画像に変更されただけであるため、R、G、Bブロック画像内には、1つに重なり合う検査対象が含まれている。従って、1つのカラーブロック画像のR、G、Bブロック画像においては、同じ位置(座標位置)に、同じ検査対象の同じ一部分が含まれている。
[Second Embodiment]
The second embodiment will be described with reference to FIG.
The image inspection apparatus according to the present embodiment performs image inspection on three R, G, and B block images 201, 202, and 203 of one color block image. For the R, G, and B images, similarly to the first embodiment, block division, detection of an alignment point (POS point), calculation of a position shift amount, combination of adjacent block images, and correction of a position shift. Is calculated for the alignment. In the present embodiment, since the monochrome image in the first embodiment described above is simply changed to a color image, the R, G, and B block images include an inspection object that overlaps one. include. Accordingly, in the R, G, and B block images of one color block image, the same position (coordinate position) includes the same part of the same inspection target.

本実施形態では、基準画像、検査画像のR、G、B画像は、それぞれが同じサイズのブロック画像に分割する(例えば、16画素×128画素)。その後、基準画像のRブロック画像、Gブロック画像、及びBブロック画像のPOS点の検出をそれぞれに行う。
1つのカラーブロック画像におけるPOM点の数は同一座標上のR、G、Bブロック画像内のPOM点の合計とする。1つのカラーブロック画像のPOM点の数が4個以上となった場合、第1の実施形態と同様の計算方法で位置合せ補正量を求める。
In the present embodiment, the R, G, and B images of the reference image and the inspection image are each divided into block images of the same size (for example, 16 pixels × 128 pixels). Thereafter, POS points of the R block image, the G block image, and the B block image of the reference image are respectively detected.
The number of POM points in one color block image is the sum of the POM points in the R, G, and B block images on the same coordinates. When the number of POM points in one color block image is four or more, the amount of registration correction is obtained by the same calculation method as in the first embodiment.

また、前述した第1の実施形態と同様に、1つのカラーブロック画像におけるR、G、Bブロック画像の各POM点を合算しても合計のPOM点が4個に満たなかった場合には、カラーブロック画像に隣接するカラーブロック画像と結合し、POM点に対して、色毎の位置ずれなく比較画像を形成することができる。   Further, as in the first embodiment described above, when the total POM points of the R, G, and B block images in one color block image are less than four even when the POM points are summed, By combining with a color block image adjacent to the color block image, a comparative image can be formed without displacement for each color with respect to the POM point.

なお、本発明は、前記実施形態及び前記変形例に限定されるものではなく、その要旨を逸脱しない範囲で種々に変形することが可能である。また、各実施形態及び変形例は適宜組み合わせて実施してもよく、その場合組み合わせた効果が得られる。   Note that the present invention is not limited to the above-described embodiment and the modified examples, and can be variously modified without departing from the gist thereof. In addition, the embodiments and the modified examples may be appropriately combined and implemented, and in that case, the combined effect is obtained.

1…撮像部、2…画像処理部、3…制御部、4…表示部、5…入力部、6…記憶部、11…ブロック分割部、12…ブロック画像補正部、13…比較画像生成部、14…比較部、15…判定部、16…位置合わせ点検出部、21…位置ずれ量計算部、22…ブロック結合部、23…補正量算出部、31…基準画像、32…検査画像、33…比較画像、41…枠部、42a〜42n,43a〜43n,44a〜44n…ブロック画像。 REFERENCE SIGNS LIST 1 imaging unit 2 image processing unit 3 control unit 4 display unit 5 input unit 6 storage unit 11 block division unit 12 block image correction unit 13 comparison image generation unit , 14 ... comparator, 15 ... determiner, 16 ... alignment point detector, 21 ... position shift calculator, 22 ... block combiner, 23 ... correction calculator, 31 ... reference image, 32 ... test image, 33: comparative image, 41: frame part, 42a to 42n, 43a to 43n, 44a to 44n: block image.

Claims (7)

検査対象を含む基準画像に座標情報を与え、前記基準画像から位置合わせ点を検出する位置合わせ点検出部と、
前記検査対象を含む検査画像を縦横分割したブロック画像内で、前記位置合わせ点の画素の濃度と、前記ブロック画像内で前記位置合わせ点に対応する座標近傍にある画素の濃度とを比較し、差分による位置ずれ量を計算する位置ずれ量計算部と、
前記位置ずれ量が計算できる画素を位置ずれ量が計算できた点とし、該位置ずれ量が計算できた点が1つのブロック画像内で設定数に満たない場合には、前記設定数を越えるまで、隣接するブロック画像と結合を繰り返すブロック結合部と、
前記基準画像の前記検査対象を基準位置として、前記設定数を越える前記位置ずれ量が計算できた点を有する前記検査画像の前記検査対象の位置ずれを補正する位置合わせ補正量を求める補正量検出部と、
を備え、前記位置合わせ補正量で補正された前記検査画像のブロック画像と、前記基準画像とを比較して、検査画像の良・不良判定を行う画像検査装置。
Providing coordinate information to the reference image including the inspection target, an alignment point detection unit that detects an alignment point from the reference image,
In the block image obtained by vertically and horizontally dividing the inspection image including the inspection target, the density of the pixel at the alignment point is compared with the density of the pixel near the coordinates corresponding to the alignment point in the block image, A displacement amount calculating unit that calculates a displacement amount due to the difference,
Pixels from which the amount of displacement can be calculated are defined as points at which the amount of displacement can be calculated. If the number of points at which the amount of displacement can be calculated is less than the set number in one block image, the number of pixels until the set number is exceeded is exceeded. A block combining unit that repeats combining with an adjacent block image,
With the inspection target of the reference image as a reference position, a correction amount detection for obtaining an alignment correction amount for correcting a positional deviation of the inspection target in the inspection image having a point at which the positional deviation amount exceeding the set number can be calculated. Department and
An image inspection apparatus comprising: comparing a block image of the inspection image corrected with the alignment correction amount with the reference image to determine whether the inspection image is good or bad.
検査対象を含む基準画像に座標情報を与え、前記基準画像から位置合わせ点を検出する位置合わせ点検出部と、
前記検査対象を含む検査画像を縦横分割によるブロック画像に分割するブロック分割部と、
前記ブロック画像内で前記位置合わせ点の画素の濃度と、前記ブロック画像内で前記位置合わせ点に対応する座標近傍にある画素の濃度とを比較し、差分による位置ずれ量を計算する位置ずれ量計算部と、
前記位置ずれ量が計算できる画素を位置ずれ量が計算できた点とし、該位置ずれ量が計算できた点が設定数に満たない場合には、前記設定数を越えるまで、隣接するブロック画像と結合を繰り返すブロック結合部と、
前記基準画像に含まれる前記検査対象を基準位置として、前記設定数を越える前記位置ずれ量が計算できた点を有する前記検査画像の前記ブロック画像に含まれる前記検査対象の位置ずれを補正する位置合わせ補正量を求める補正量検出部と、
前記補正量検出部による前記位置合わせ補正量で前記検査画像の前記ブロック画像を補正した比較画像を形成する比較画像形成部と、
前記比較画像に含まれる前記検査対象と、前記基準画像に含まれる前記検査対象とを比較し、画素値の差分による比較結果を算出する比較部と、
前記比較部による比較結果に対して、前記差分が予め定めた閾値範囲を逸脱する画素の数が任意の設定数を越えた際に、前記検査画像に対して不良判定を行う判定部と、
を備える画像検査装置。
Giving the coordinate information to the reference image including the inspection target, an alignment point detection unit that detects an alignment point from the reference image,
A block division unit that divides the inspection image including the inspection target into block images by vertical and horizontal division,
A displacement amount for comparing the density of the pixel at the alignment point in the block image with the density of a pixel near the coordinates corresponding to the alignment point in the block image, and calculating the displacement amount due to the difference A calculation unit,
A pixel at which the amount of displacement can be calculated is a point at which the amount of displacement can be calculated, and if the number of points at which the amount of displacement can be calculated is less than a set number, adjacent blocks are used until the set number is exceeded. A block joining section that repeats joining,
With the inspection target included in the reference image as a reference position, a position for correcting the positional deviation of the inspection target included in the block image of the inspection image having a point at which the positional deviation amount exceeding the set number can be calculated. A correction amount detection unit for obtaining an alignment correction amount;
A comparison image forming unit that forms a comparison image obtained by correcting the block image of the inspection image with the alignment correction amount by the correction amount detection unit;
A comparison unit that compares the inspection target included in the comparison image with the inspection target included in the reference image, and calculates a comparison result based on a difference between pixel values;
For a comparison result by the comparison unit, when the number of pixels that the difference deviates from a predetermined threshold range exceeds an arbitrary set number, a determination unit that performs a failure determination on the inspection image,
An image inspection apparatus comprising:
前記補正量検出部は、前記設定数を越える位置ずれ量が計算できた点を用いて、前記検査画像の前記ブロック画像における前記基準画像の前記検査対象に対する位置ずれを補正する位置合わせ補正量を算出し、前記位置合わせ補正量を前記位置ずれ量が計算できた点の合計数で除した平均の位置合わせ補正量を算出する、請求項1に記載の画像検査装置。   The correction amount detecting unit calculates a position correction amount for correcting a position deviation of the reference image in the block image of the inspection image with respect to the inspection target by using a point at which a position deviation amount exceeding the set number can be calculated. The image inspection apparatus according to claim 1, wherein an average position correction amount is calculated by calculating and dividing the position correction amount by a total number of points at which the position deviation amount can be calculated. 前記ブロック結合部は、係合順として、両側に前記ブロック画像が隣接していた場合に、前記位置ずれ量が計算できた点が多い方のブロック画像と優先的に結合する、又は、前記基準画像及び前記検査画像の端のブロック画像から順次結合する、いずれかの結合順で前記ブロック画像を結合する、請求項1に記載の画像検査装置。   When the block images are adjacent on both sides as the engagement order, the block combining unit preferentially combines with the block image having the larger number of points where the displacement amount can be calculated, or The image inspection apparatus according to claim 1, wherein the block images are combined in any combination order in which the block images are sequentially combined from an image and an end block image of the inspection image. 検査対象を含む基準画像に座標情報を与え、前記基準画像から位置合わせ点を検出する位置合わせ点検出部と、
前記基準画像を縦横分割したブロック画像内の前記位置合わせ点の画素の濃度と、前記検査対象を含む検査画像内の前記位置合わせ点に対応する座標近傍にある画素の濃度とを比較し、差分による位置ずれ量を計算する位置ずれ量計算部と、
前記位置ずれ量が計算できる画素を位置ずれ量が計算できた点とし、該位置ずれ量が計算できた点が1つのブロック画像内で設定数に満たない場合には、前記設定数を越えるまで、隣接するブロック画像と結合を繰り返すブロック結合部と、
前記検査画像の前記検査対象を基準位置として、前記設定数を越える前記位置ずれ量が計算できた点を有する前記基準画像の前記検査対象の位置ずれを補正する位置合わせ補正量を求める補正量検出部と、
を備え、前記位置合わせ補正量で補正された前記基準画像のブロック画像と、前記検査画像とを比較して、検査画像の良・不良判定を行う画像検査装置。
Giving the coordinate information to the reference image including the inspection target, an alignment point detection unit that detects an alignment point from the reference image,
The density of the pixel at the alignment point in the block image obtained by vertically and horizontally dividing the reference image is compared with the density of pixels near the coordinates corresponding to the alignment point in the inspection image including the inspection target, and the difference is calculated. A position shift amount calculation unit for calculating a position shift amount due to
Pixels from which the amount of displacement can be calculated are defined as points at which the amount of displacement can be calculated. If the number of points at which the amount of displacement can be calculated is less than the set number in one block image, the number of pixels until the set number is exceeded is exceeded. A block combining unit that repeats combining with an adjacent block image,
With the inspection target of the inspection image as a reference position, a correction amount detection for obtaining an alignment correction amount for correcting a positional deviation of the inspection target of the reference image having a point at which the positional deviation amount exceeding the set number can be calculated. Department and
An image inspection apparatus that compares the block image of the reference image corrected by the alignment correction amount with the inspection image to determine whether the inspection image is good or defective.
検査対象を含む基準画像に座標情報を与え、前記基準画像から位置合わせ点を検出し、
前記検査対象を含む検査画像を縦横分割によるブロック画像に分割し、
前記位置合わせ点の画素の濃度と、前記ブロック画像内で前記位置合わせ点に対応する座標近傍にある画素の濃度とを比較し、差分による位置ずれ量が計算できる画素を前記位置ずれ量が計算できた点として抽出し、
前記検査画像で検出された位置ずれ量が計算できた点が1つのブロック画像内で設定数に満たない場合には、前記設定数を越えるまで、隣接するブロック画像と結合を繰り返し、
前記基準画像の前記検査対象を基準位置として、前記設定数を越える位置ずれ量が計算できた点を有する前記検査画像の前記ブロック画像毎に前記検査対象の位置ずれを補正する位置合わせ補正量を求め、
前記位置合わせ補正量で補正された前記検査画像のブロック画像と前記基準画像を比較して、検査画像の良・不良判定を行う画像検査方法。
Giving the coordinate information to the reference image including the inspection target, detecting the alignment point from the reference image,
The inspection image including the inspection target is divided into block images by vertical and horizontal division,
The density of the pixel at the alignment point is compared with the density of a pixel near the coordinates corresponding to the alignment point in the block image, and the pixel for which the amount of positional deviation can be calculated by the difference is calculated. Extract it as a completed point,
If the number of points at which the amount of displacement detected in the inspection image can be calculated is less than the set number in one block image, the combination with adjacent block images is repeated until the set number is exceeded,
With the inspection target of the reference image as a reference position, a registration correction amount for correcting the positional deviation of the inspection target for each block image of the inspection image having a point at which the positional deviation amount exceeding the set number can be calculated. Asked,
An image inspection method for comparing a block image of the inspection image corrected with the alignment correction amount and the reference image to determine whether the inspection image is good or defective.
検査対象を含む基準画像に座標情報を与え、前記基準画像から位置合わせ点を検出し、
前記基準画像を縦横分割によるブロック画像に分割し、
前記ブロック画像内の前記位置合わせ点の画素の濃度と、前記検査対象を含む検査画像内の前記位置合わせ点に対応する座標近傍にある画素の濃度とを比較し、差分による位置ずれ量が計算できる画素を位置ずれ量が計算できた点として抽出し、
前記基準画像で検出された位置合わせ点が1つのブロック画像内で設定数に満たない場合には、前記設定数を越えるまで、隣接するブロック画像と結合を繰り返し、
前記検査画像の前記検査対象を基準位置として、前記設定数を越える位置合わせ点を有する前記基準画像の前記ブロック画像毎に前記検査対象の位置ずれを補正する位置合わせ補正量を求め、
前記位置合わせ補正量で補正された前記基準画像のブロック画像と、前記検査画像を比較して、検査画像の良・不良判定を行う画像検査方法。
Giving the coordinate information to the reference image including the inspection target, detecting the alignment point from the reference image,
Dividing the reference image into block images by vertical and horizontal division,
The density of the pixel at the alignment point in the block image is compared with the density of a pixel near the coordinates corresponding to the alignment point in the inspection image including the inspection target, and the amount of positional deviation due to the difference is calculated. Pixels that can be extracted are extracted as points at which the amount of displacement can be calculated,
If the number of registration points detected in the reference image is less than the set number in one block image, the combination with adjacent block images is repeated until the set number is exceeded,
With the inspection target of the inspection image as a reference position, an alignment correction amount for correcting the positional deviation of the inspection target for each block image of the reference image having the alignment points exceeding the set number,
An image inspection method for comparing the block image of the reference image corrected by the alignment correction amount with the inspection image to determine whether the inspection image is good or defective.
JP2018111843A 2018-06-12 2018-06-12 Image inspection device and its image inspection method Active JP7017207B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018111843A JP7017207B2 (en) 2018-06-12 2018-06-12 Image inspection device and its image inspection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018111843A JP7017207B2 (en) 2018-06-12 2018-06-12 Image inspection device and its image inspection method

Publications (2)

Publication Number Publication Date
JP2019215659A true JP2019215659A (en) 2019-12-19
JP7017207B2 JP7017207B2 (en) 2022-02-08

Family

ID=68919535

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018111843A Active JP7017207B2 (en) 2018-06-12 2018-06-12 Image inspection device and its image inspection method

Country Status (1)

Country Link
JP (1) JP7017207B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113752260A (en) * 2021-09-07 2021-12-07 京东方科技集团股份有限公司 Material taking positioning correction method and device
WO2022232480A1 (en) * 2021-04-30 2022-11-03 Texas Instruments Incorporated Frozen image detection
WO2022232476A1 (en) * 2021-04-30 2022-11-03 Texas Instruments Incorporated Video accuracy verification
CN117372515A (en) * 2023-09-15 2024-01-09 钛玛科(北京)工业科技有限公司 Self-adaptive deviation rectifying control system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH064661A (en) * 1992-06-24 1994-01-14 Fuji Xerox Co Ltd Image processor
WO2006011153A2 (en) * 2004-07-30 2006-02-02 Extreme Reality Ltd. A system and method for 3d space-dimension based image processing
JP2012075088A (en) * 2010-09-03 2012-04-12 Pentax Ricoh Imaging Co Ltd Image processing system and image processing method
JP2013186562A (en) * 2012-03-06 2013-09-19 Ricoh Co Ltd Image detection apparatus and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH064661A (en) * 1992-06-24 1994-01-14 Fuji Xerox Co Ltd Image processor
WO2006011153A2 (en) * 2004-07-30 2006-02-02 Extreme Reality Ltd. A system and method for 3d space-dimension based image processing
JP2012075088A (en) * 2010-09-03 2012-04-12 Pentax Ricoh Imaging Co Ltd Image processing system and image processing method
JP2013186562A (en) * 2012-03-06 2013-09-19 Ricoh Co Ltd Image detection apparatus and method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022232480A1 (en) * 2021-04-30 2022-11-03 Texas Instruments Incorporated Frozen image detection
WO2022232476A1 (en) * 2021-04-30 2022-11-03 Texas Instruments Incorporated Video accuracy verification
CN113752260A (en) * 2021-09-07 2021-12-07 京东方科技集团股份有限公司 Material taking positioning correction method and device
CN113752260B (en) * 2021-09-07 2023-12-26 京东方科技集团股份有限公司 Material taking positioning correction method and device
CN117372515A (en) * 2023-09-15 2024-01-09 钛玛科(北京)工业科技有限公司 Self-adaptive deviation rectifying control system

Also Published As

Publication number Publication date
JP7017207B2 (en) 2022-02-08

Similar Documents

Publication Publication Date Title
JP2019215659A (en) Image inspection device and image detection method thereof
JP6701118B2 (en) Image processing apparatus and image processing method
JP3851384B2 (en) Image composition apparatus and method
JP5296967B2 (en) 3D shape measuring device
JPWO2007074605A1 (en) Image processing method, image processing program, image processing apparatus, and imaging apparatus
JP2022094791A5 (en)
JP2011182078A (en) Correction information calculation device, image correction device, image display system, and correction information calculation method
JP2011076204A (en) Method and apparatus for inspecting printed matter
JP4163199B2 (en) Inspection device, inspection method
JP2009031006A (en) Visual inspection device and method
JP5375488B2 (en) Appearance inspection apparatus, appearance inspection method, and appearance inspection program
JP3204876B2 (en) Print inspection equipment
JP2009250937A (en) Pattern inspection device and method
JP6717666B2 (en) Inspection image generator
JP5190619B2 (en) Inspection method for inspection object and inspection apparatus therefor
JPH06311333A (en) Picture processing unit
JP4121605B2 (en) Captured image composite distortion detector
US20230296531A1 (en) Information processing apparatus, information processing method, and information processing program
JP2021033857A (en) Image processing device and image processing method
JP2000082141A (en) Picked up image geometric distortion detection device
US11893706B2 (en) Image correction device
JP6960620B2 (en) Detection system
JP2008048459A (en) Image composing apparatus
JP2005205748A (en) Printed matter inspecting apparatus and printed matter inspecting method
JP3626353B2 (en) Pattern inspection apparatus and pattern inspection method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200821

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210921

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20211118

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220118

R150 Certificate of patent or registration of utility model

Ref document number: 7017207

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150