JP2009003839A - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
JP2009003839A
JP2009003839A JP2007166090A JP2007166090A JP2009003839A JP 2009003839 A JP2009003839 A JP 2009003839A JP 2007166090 A JP2007166090 A JP 2007166090A JP 2007166090 A JP2007166090 A JP 2007166090A JP 2009003839 A JP2009003839 A JP 2009003839A
Authority
JP
Japan
Prior art keywords
inspection
image
standard
registration
positional deviation
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.)
Pending
Application number
JP2007166090A
Other languages
Japanese (ja)
Inventor
Tasuku Yuguchi
翼 湯口
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.)
Optex FA Co Ltd
Original Assignee
Optex FA Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Optex FA Co Ltd filed Critical Optex FA Co Ltd
Priority to JP2007166090A priority Critical patent/JP2009003839A/en
Publication of JP2009003839A publication Critical patent/JP2009003839A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing device for properly handling displacement of an image as an inspection reference for re-registration. <P>SOLUTION: When a displacement occurs between the image as the inspection reference for the re-registration and an inspection image of an original inspection reference, when confirming that the displacement falls within a predetermined allowable range, an inspection area set to at least the original inspection image is positionally corrected according to the displacement, and the position-corrected inspection area is re-registered as a new inspection reference. Thus, since whether or not the displacement of the image as the inspection reference for re-registration falls within the allowable range can be confirmed, this image processing device can properly handle the displacement. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、搬送される製品を撮像素子で撮影し、製品の撮像データを画像処理する画像処理装置に関する。   The present invention relates to an image processing apparatus that captures an image of a conveyed product with an image sensor and performs image processing on image data of the product.

図1に示すように、従来から、搬送コンベアCで多数の製品Pを次々に移動させながら、例えば同期センサSによって製品Pが検知されたときの撮影タイミングで、イメージセンサのような撮像素子(撮像カメラ)1で撮像した例えば製品Pに貼られたラベルの撮像データを画像処理し、製品Pのラベルの撮影画像と検査基準の画像である検査画像とを比較して、製品Pのラベルの良否を検査する画像処理装置が知られている。   As shown in FIG. 1, an image pickup device (such as an image sensor) is conventionally used at a shooting timing when a product P is detected by, for example, the synchronization sensor S while moving a number of products P one after another on the conveyor C. The imaging data of the label attached to, for example, the product P captured by the imaging camera 1) is image-processed, and the photographed image of the label of the product P is compared with the inspection image that is the inspection reference image. An image processing apparatus for inspecting pass / fail is known.

ところで、撮影時における外乱光や照明光の変化、ラベルの印字状態の変化などで製品Pの写り方が変化したり、搬送コンベアCの振動等で製品P自体が位置ずれしたりして、検査画像を再登録(保存)する際に、元の検査画像から位置ずれを生じることがある。   By the way, the appearance of the product P changes due to changes in ambient light and illumination light at the time of photographing, changes in the label printing state, etc., and the product P itself is displaced due to vibration of the conveyor C, etc. When the image is re-registered (saved), positional deviation may occur from the original inspection image.

この場合、従来は、検査画像や検査画像に対して設定された検査領域の位置はそのままで、検査画像に一致するようにカメラまたは製品を微調整して登録していた(例えば、特許文献1)。   In this case, conventionally, the position of the inspection area set for the inspection image or the inspection image remains the same, and the camera or product is finely adjusted so as to match the inspection image (for example, Patent Document 1). ).

一方、検査画像の位置ずれに応じて、検査画像や検査領域の位置を補正して新たな検査画像に検査領域を設定することも知られている(例えば、特許文献2)。
特開平11−191840号公報 特開2002−288633号公報
On the other hand, it is also known to set the inspection area in a new inspection image by correcting the position of the inspection image or the inspection area in accordance with the displacement of the inspection image (for example, Patent Document 2).
JP-A-11-191840 JP 2002-288633 A

しかし、特許文献1では、生産ラインの稼動中に、検査画像に一致するようにカメラまたは製品を微調整するのは困難であり、生産ラインを停止して微調整するのでは、生産効率が低下する。   However, in Patent Document 1, it is difficult to fine-tune the camera or product so that it matches the inspection image while the production line is in operation. If the production line is stopped and fine-tuned, the production efficiency decreases. To do.

また、特許文献2では、再登録の検査基準となる画像が予想外の位置に外れた場合に、これに対して適切に対応することができず、やはり生産ラインを停止させて再登録することとなり、生産効率が低下する。   Further, in Patent Document 2, when an image serving as an inspection standard for re-registration deviates from an unexpected position, it is not possible to appropriately cope with this, and the production line is also stopped and re-registered. As a result, production efficiency decreases.

本発明は、前記の問題点を解決して、再登録の検査基準となる画像の位置ずれに応じて適切に対応できる画像処理装置を提供することを目的としている。   SUMMARY OF THE INVENTION An object of the present invention is to provide an image processing apparatus that solves the above-described problems and can appropriately cope with a positional deviation of an image serving as an inspection standard for re-registration.

前記目的を達成するために、本発明に係る画像処理装置は、撮像素子で撮影された製品の撮像データを画像処理し、製品の撮影画像と検査基準の画像である検査画像とを比較して、製品の良否の検査を行う画像処理装置であって、検査基準を再登録する際に、製品の撮影画像のうち再登録の検査基準となる画像と、元の検査基準の検査画像との間に位置ずれがある場合に、前記位置ずれが所定の許容範囲内であると確認されたとき、少なくとも元の検査画像に対して設定された検査領域を前記位置ずれに応じて位置補正し、新たな検査基準として当該位置補正した検査領域を再登録する制御を行う検査基準再登録制御手段を備えている。   In order to achieve the above object, an image processing apparatus according to the present invention performs image processing on imaging data of a product photographed by an imaging device, and compares the photographed image of the product with an inspection image that is an inspection standard image. An image processing apparatus for inspecting the quality of a product, and when re-registering an inspection standard, between an image that is a re-registration inspection standard among the captured images of the product and an inspection image of the original inspection standard If the positional deviation is confirmed to be within a predetermined allowable range, at least the inspection area set for the original inspection image is corrected according to the positional deviation, and a new An inspection standard re-registration control unit that performs control for re-registering the position-corrected inspection region as a proper inspection standard is provided.

この構成によれば、再登録の検査基準となる画像と、元の検査基準の検査画像との間に位置ずれがある場合に、前記位置ずれが所定の許容範囲内であると確認されたとき、少なくとも元の検査画像に対して設定された検査領域を前記位置ずれに応じて位置補正し、新たな検査基準として当該位置補正した検査領域を再登録する。したがって、再登録の検査基準となる画像の位置ずれが許容範囲内か否かを確認して、当該位置ずれに対して適切に対応できるので、従来のように、生産ラインを停止させて再登録することなく、生産効率の低下を防止できる。   According to this configuration, when there is a positional deviation between the image serving as the inspection reference for re-registration and the inspection image based on the original inspection standard, the positional deviation is confirmed to be within a predetermined allowable range. Then, at least the inspection area set for the original inspection image is position-corrected according to the positional deviation, and the position-corrected inspection area is re-registered as a new inspection standard. Therefore, it is possible to check whether the image misregistration that is the inspection standard for re-registration is within an allowable range and appropriately deal with the misregistration, so that the production line is stopped and re-registered as in the past. Therefore, it is possible to prevent a decrease in production efficiency.

好ましくは、前記検査基準再登録制御手段は、製品の撮影画像から、元の検査基準の検査画像と一致する再登録の検査基準となる画像をサーチする位置補正画像サーチ手段と、元の検査基準の検査画像とサーチされた前記再登録の検査基準となる画像との一致度に基づき保存された当該再登録の検査基準となる画像の位置と、元の検査基準の検査画像の位置との位置ずれ量を検出する位置ずれ量検出手段と、前記位置ずれ量が所定の許容範囲内か否かを確認する位置ずれ範囲確認手段と、前記位置ずれ量が前記許容範囲を超えると確認された場合には、再登録を中止し、前記許容範囲内と確認された場合には、元の検査領域から位置ずれ量に応じて位置補正した検査領域を新たな検査基準とする検査基準位置補正手段と、前記位置補正した検査領域を新たな検査基準として再登録する検査基準再登録手段とを備えている。したがって、再登録の検査基準となる画像の位置ずれに応じてより適切に対応できる。   Preferably, the inspection reference re-registration control means includes a position-corrected image search means for searching for a re-registered inspection reference image that matches the inspection image of the original inspection reference from the photographed image of the product, and the original inspection reference The position of the re-registered inspection reference image stored based on the degree of coincidence between the inspection image and the re-registered inspection reference image and the position of the original inspection reference inspection image When it is confirmed that a positional deviation amount detecting means for detecting a deviation amount, a positional deviation range checking means for confirming whether or not the positional deviation amount is within a predetermined allowable range, and that the positional deviation amount exceeds the allowable range. The re-registration is canceled, and when it is confirmed that the value is within the allowable range, the inspection reference position correcting unit that uses the inspection area corrected according to the amount of positional deviation from the original inspection area as a new inspection reference; , The position corrected detection And a test reference reregistration means for re-registering the region as a new inspection standard. Accordingly, it is possible to more appropriately cope with the positional deviation of the image that is the inspection standard for re-registration.

好ましくは、前記再登録される検査基準が、検査基準の画像である検査画像および前記検査画像に対して設定された検査領域である。したがって、製品の品種の変更に応じて、適切に検査画像および検査領域を再登録することができる。   Preferably, the inspection standard to be re-registered is an inspection image that is an image of the inspection reference and an inspection region set for the inspection image. Therefore, it is possible to appropriately re-register the inspection image and the inspection area according to the change of the product type.

好ましくは、前記位置ずれ範囲確認手段が、手動操作により位置ずれ量の許容範囲をモニタに表示させて確認させるとともに、位置ずれ量の許容範囲を規定する閾値に基づいて自動的に確認されるように設定されている。したがって、再登録の状況に応じて適切に検査基準を再登録することができる。   Preferably, the misregistration range confirmation means displays the permissible range of misregistration on the monitor by manual operation and confirms it, and automatically confirms based on a threshold value that defines the permissible range of misregistration. Is set to Therefore, the inspection standard can be re-registered appropriately according to the re-registration situation.

好ましくは、前記位置補正画像サーチ手段が、元の検査基準の検査画像に最も一致度の高い再登録の検査基準となる画像をサーチし、このサーチされた画像の位置ずれ量が前記許容範囲を超えるものと前記位置ずれ範囲確認手段により確認された場合には、元の検査基準の検査画像に次に一致度の高い画像をサーチするものであり、前記位置ずれ量検出手段が、前記保存された次に一致度の高い画像の位置と、元の検査基準の検査画像の位置との位置ずれ量を検出するものである。したがって、再登録の検査領域が予想外の位置に外れた場合でも、より適切に対応することができる。   Preferably, the position-corrected image search means searches for an image serving as a re-registration inspection standard having the highest degree of coincidence with the original inspection standard inspection image, and the positional deviation amount of the searched image satisfies the allowable range. If it is confirmed by the misregistration range confirmation means that the image has exceeded the original inspection standard inspection image, the image having the next highest matching score is searched. Next, the amount of positional deviation between the position of the image with the next highest degree of coincidence and the position of the original inspection reference inspection image is detected. Therefore, even when the re-registration inspection area deviates from an unexpected position, it is possible to cope more appropriately.

以下、本発明の実施形態を図面にしたがって説明する。
図2は、本発明の第1実施形態に係る画像処理装置を示すブロック図である。本装置は、前記した図1の搬送コンベアCで搬送される製品Pを、例えば同期センサSの検知による撮影タイミングで、イメージセンサのような撮像素子(撮像カメラ)1によって撮像した撮像データを画像処理するものであり、図2のように、この撮像素子(撮像カメラ)1と、撮像素子1で撮像した撮像データを記憶する画像メモリ2を含み、製品Pの撮像データを画像処理する画像処理部3と、検査基準再登録制御手段10とを備えている。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 2 is a block diagram showing the image processing apparatus according to the first embodiment of the present invention. This apparatus captures image data obtained by imaging an image sensor (imaging camera) 1 such as an image sensor on the product P conveyed by the conveyor C shown in FIG. As shown in FIG. 2, the image processing includes an imaging device (imaging camera) 1 and an image memory 2 that stores imaging data captured by the imaging device 1, and performs image processing on imaging data of the product P Unit 3 and inspection standard re-registration control means 10.

図1の製品Pは、例えばケースに収納された食品であり、製品Pの検査対象部位は、その食品の賞味期限や製造場所、製造時刻等の文字がケースに印字された製品ラベルであり、本装置により製品ラベル内の賞味期限等の文字や製品ラベルの位置ずれなどを検出して製品Pの良否を判定する。   The product P in FIG. 1 is, for example, food stored in a case, and the inspection target portion of the product P is a product label on which characters such as the expiration date, manufacturing location, and manufacturing time of the food are printed on the case. The apparatus determines the quality of the product P by detecting characters such as the expiration date in the product label and the positional deviation of the product label.

図2の検査基準再登録制御手段10は、検査基準の再登録の際に、製品Pの撮影画像のうち再登録の検査基準となる画像と、元の検査基準の検査画像との間に位置ずれがある場合に、前記位置ずれが所定の許容範囲内であると確認されたとき、少なくとも元の検査画像に対して設定された検査領域を前記位置ずれに応じて位置補正し、新たな検査基準として当該位置補正した検査領域を再登録する制御を行う。   The inspection standard re-registration control means 10 in FIG. 2 is positioned between the image that is the re-registered inspection standard among the captured images of the product P and the original inspection standard inspection image when re-registering the inspection standard. In the case where there is a deviation, when it is confirmed that the positional deviation is within a predetermined allowable range, at least the inspection area set for the original inspection image is corrected according to the positional deviation, and a new inspection is performed. As a reference, control is performed to re-register the inspection area whose position has been corrected.

この検査基準再登録制御手段10は、検査基準の画像である検査画像(基準画像)の登録を指令する画像の登録指令部4、検査基準の画像である検査画像(基準画像)の位置を保存する検査画像登録手段5、検査領域の大きさと位置を保存する検査領域登録手段6を備えている。   This inspection standard re-registration control means 10 stores an image registration command unit 4 for instructing registration of an inspection image (reference image) that is an inspection standard image, and the position of the inspection image (reference image) that is an inspection standard image. An inspection image registration unit 5 for performing inspection and an inspection region registration unit 6 for storing the size and position of the inspection region are provided.

また、この検査基準再登録制御手段10は、製品Pの撮影画像から、元の検査基準の検査画像と一致する再登録の検査基準となる画像(位置補正対象の基準画像)をすべての画素座標からサーチする再登録画像サーチ手段7、および元の検査基準の検査画像とサーチされた前記再登録の検査基準となる画像との一致度に基づいて位置補正結果として検査領域の位置を補正する画像位置ずれ処理手段8を備えている。この例では、最も一致度の高かった画像の画素座標を位置補正結果として検査領域の位置が補正される。判定部9は、製品Pの撮影画像を、この補正された検査領域内の検査画像と比較して製品Pの良否を判定する。   Further, the inspection standard re-registration control means 10 converts all the pixel coordinates from the captured image of the product P to an image (reference image to be corrected) that is a re-registered inspection standard that matches the inspection image of the original inspection standard. Re-registered image search means 7 for searching from and an image for correcting the position of the inspection area as a position correction result based on the degree of coincidence between the original inspection standard inspection image and the searched image as the re-registration inspection standard A misalignment processing means 8 is provided. In this example, the position of the inspection area is corrected using the pixel coordinates of the image with the highest degree of matching as the position correction result. The determination unit 9 determines the quality of the product P by comparing the photographed image of the product P with the inspection image in the corrected inspection region.

図3に示すように、前記画像位置ずれ処理手段10は、位置ずれ量検出手段11、位置ずれ範囲確認手段12および検査基準位置補正手段13を備えている。位置ずれ量検出手段11は、元の検査基準の検査画像とサーチされた前記再登録の検査基準となる画像との一致度(最も高い一致度)に基づき保存された当該再登録の検査基準となる画像の位置と、元の検査基準の検査画像の位置との位置ずれ量を検出する。位置ずれ範囲確認手段12は、前記位置ずれ量が所定の許容範囲内か否かを確認する。検査基準位置補正手段13は、前記位置ずれ量が前記許容範囲を超えると確認された場合には、再登録を中止し、前記許容範囲内と確認された場合には、元の検査領域から位置ずれ量に応じて位置補正した検査領域を新たな検査基準とする。この場合、新たな検査基準として検査領域のみを再登録して、検査画像を再登録していないが、検査領域に加えて検査画像も再登録するようにしてもよい。   As shown in FIG. 3, the image misregistration processing means 10 includes a misregistration amount detection means 11, a misregistration range confirmation means 12, and an inspection reference position correction means 13. The misregistration amount detection means 11 includes the re-registration inspection standard stored based on the degree of coincidence (highest coincidence) between the inspection image of the original inspection standard and the searched image as the re-registration inspection standard. The amount of positional deviation between the position of the image to be detected and the position of the original inspection reference inspection image is detected. The misregistration range confirmation unit 12 confirms whether or not the misregistration amount is within a predetermined allowable range. The inspection reference position correcting means 13 stops the re-registration when it is confirmed that the amount of positional deviation exceeds the allowable range, and the position from the original inspection area when it is confirmed that the amount is within the allowable range. The inspection area whose position is corrected according to the amount of deviation is set as a new inspection standard. In this case, only the inspection area is re-registered as a new inspection standard and the inspection image is not re-registered, but the inspection image may be re-registered in addition to the inspection area.

上記構成の本装置における検査領域の再登録動作の一例を、図4のフローチャートに基づいて説明する。予め、検査画像登録手段5には元の検査画像の位置が保存され、検査領域登録手段6には元の検査領域の大きさと位置が保存されている。   An example of the inspection area re-registration operation in the apparatus having the above configuration will be described with reference to the flowchart of FIG. In advance, the position of the original inspection image is stored in the inspection image registration unit 5, and the size and position of the original inspection region are stored in the inspection region registration unit 6.

まず、再登録動作がスタートすると、製品Pを撮影した撮影画像から最も一致度の高い再登録の基準となる画像(基準画像)が探し出され、その位置が保存される(ステップS1)。次に、元の検査画像の位置と保存された撮影画像の基準画像の位置との位置ずれ量が取り出される(ステップS2)。   First, when the re-registration operation starts, an image (reference image) having the highest degree of coincidence is searched from the captured image obtained by photographing the product P, and the position is stored (step S1). Next, a displacement amount between the position of the original inspection image and the position of the reference image of the stored captured image is extracted (step S2).

次に、位置ずれ量が所定の許容範囲内にあって、その位置ずれ量に応じて検査領域の位置を補正してよいか、の確認が行われる(ステップS3)。許容範囲内であれば(ステップS4)、検査領域の位置が位置ずれ量に応じて移動され、これが新たな検査領域として再登録されて(ステップS5)、再登録を終了する(ステップS6)。   Next, it is confirmed whether the displacement amount is within a predetermined allowable range and whether the position of the inspection region may be corrected according to the displacement amount (step S3). If it is within the allowable range (step S4), the position of the inspection area is moved according to the amount of displacement, and this is re-registered as a new inspection area (step S5), and the re-registration is terminated (step S6).

この許容範囲内の状態を図5に示す。(A)は、「ABC」、「123」などの元の検査画像および検査画像に対して設定された検査領域を示す。(B)は撮影画像の基準画像の位置ずれに応じて、最も一致度の高い例えば「123」について検査領域の位置が補正された状態を示す。このように、検査基準の再登録の際に、撮影画像の位置ずれした基準画像に追従するように新たな検査領域の位置が補正される。   A state within this allowable range is shown in FIG. (A) shows the original inspection image such as “ABC” and “123” and the inspection area set for the inspection image. (B) shows a state in which the position of the inspection region is corrected for, for example, “123” having the highest degree of coincidence according to the positional deviation of the reference image of the captured image. In this way, at the time of re-registering the inspection standard, the position of the new inspection region is corrected so as to follow the reference image whose position of the photographed image is shifted.

ステップS4で許容範囲外であれば、再登録を終了する(ステップS6)。この許容範囲外の状態を図6に示す。この場合、画像の範囲外に検査領域がはみ出しているので、これを新しい検査領域とすることはできない。この状態はモニタ上で表示されるので、これに基づいて確認され、手動操作でこの位置を採用しない場合は元の位置のまま変更せずに、再登録を終了する。なお、手動操作に代えて、位置ずれ量の許容範囲を規定する閾値に基づいて自動的に確認されるように設定して、再登録を終了させてもよい。   If it is outside the allowable range in step S4, the re-registration is terminated (step S6). FIG. 6 shows a state outside this allowable range. In this case, since the inspection area protrudes outside the image range, it cannot be used as a new inspection area. Since this state is displayed on the monitor, it is confirmed based on this, and when this position is not adopted by manual operation, the re-registration is terminated without changing the original position. Instead of manual operation, the re-registration may be terminated by setting so as to be automatically confirmed based on a threshold value that defines an allowable range of the positional deviation amount.

こうして、第1実施形態では、再登録の検査基準となる画像と、元の検査基準の検査画像との間に位置ずれがある場合に、前記位置ずれが所定の許容範囲内であると確認されたとき、少なくとも元の検査画像に対して設定された検査領域を前記位置ずれに応じて位置補正し、新たな検査基準として当該位置補正した検査領域を再登録し、許容範囲外であると確認されたとき、再登録を終了する。したがって、再登録の検査基準となる画像の位置ずれが許容範囲内か否かを確認して、当該位置ずれに対して適切に対応できるので、従来のように、生産ラインを停止させて再登録することなく、生産効率の低下を防止できる。   Thus, in the first embodiment, when there is a positional deviation between the image serving as the inspection standard for re-registration and the inspection image based on the original inspection standard, it is confirmed that the positional deviation is within a predetermined allowable range. The position of the inspection area set for at least the original inspection image is corrected according to the displacement, and the position-corrected inspection area is re-registered as a new inspection standard, and is confirmed to be out of the allowable range. When finished, re-registration is terminated. Therefore, it is possible to check whether the image misregistration that is the inspection standard for re-registration is within an allowable range and appropriately deal with the misregistration, so that the production line is stopped and re-registered as in the past. Therefore, it is possible to prevent a decrease in production efficiency.

次に第2実施形態について説明する。この第2実施形態は、第1実施形態と異なり、最も一致度の高い画像が予想外の位置にあり、基準画像として再登録できない場合に、次に一致度の高い画像を基準画像として再登録する。すなわち、図2の位置補正画像サーチ手段7が、元の検査基準の検査画像と最も一致度の高い再登録の検査基準となる画像をサーチし、このサーチされた画像の位置ずれ量が前記許容範囲を超えるものと図3の位置ずれ範囲確認手段12により確認された場合には、元の検査基準の検査画像に次に一致度の高い画像をサーチするものであり、位置ずれ量検出手段11が、保存された次に一致度の高い画像の位置と、元の検査基準の検査画像の位置との位置ずれ量を検出する。その他の構成は第1実施形態と同様である。   Next, a second embodiment will be described. Unlike the first embodiment, the second embodiment re-registers the next highest matching image as a reference image when the highest matching image is in an unexpected position and cannot be re-registered as a reference image. To do. That is, the position-corrected image search means 7 in FIG. 2 searches for an image as a re-registration inspection standard having the highest degree of coincidence with the inspection image of the original inspection standard, and the positional deviation amount of the searched image is the allowable amount. If it is confirmed by the misregistration range confirmation means 12 in FIG. 3 that it exceeds the range, an image having the next highest matching degree is searched for the original inspection standard inspection image, and the misregistration amount detection means 11 is detected. However, the amount of positional deviation between the position of the stored image having the next highest degree of coincidence and the position of the original inspection reference inspection image is detected. Other configurations are the same as those of the first embodiment.

上記構成の本装置における検査領域の再登録動作の一例を、図7のフローチャートに基づいて説明する。第1実施形態と同様に、予め、検査画像登録手段5には元の検査画像の位置が保存され、検査領域登録手段6には元の検査領域の大きさと位置が保存されている。   An example of the inspection area re-registration operation in the apparatus having the above configuration will be described with reference to the flowchart of FIG. Similarly to the first embodiment, the position of the original inspection image is stored in the inspection image registration unit 5 in advance, and the size and position of the original inspection region are stored in the inspection region registration unit 6 in advance.

まず、再登録動作がスタートすると、製品Pを撮影した撮影画像から最も一致度の高い再登録の基準となる画像(基準画像)が探し出され、その位置が保存される(ステップT1)。次に、元の検査画像の位置と保存された撮影画像の基準画像の位置との位置ずれ量が取り出される(ステップT2)。   First, when the re-registration operation starts, an image (reference image) having the highest degree of coincidence is searched from the captured image obtained by photographing the product P, and the position is stored (step T1). Next, the amount of positional deviation between the position of the original inspection image and the position of the reference image of the stored captured image is extracted (step T2).

次に、位置ずれ量が所定の許容範囲内にあって、その位置ずれ量に応じて検査領域の位置を補正してよいか、の確認が行われる(ステップT3)。許容範囲内であれば(ステップT4)、検査領域の位置が位置ずれ量に応じて移動され、これが新たな検査領域として再登録されて(ステップT5)、再登録を終了する(ステップT6)。   Next, it is confirmed whether the positional deviation amount is within a predetermined allowable range and whether the position of the inspection area may be corrected according to the positional deviation amount (step T3). If it is within the allowable range (step T4), the position of the inspection area is moved according to the amount of displacement, this is re-registered as a new inspection area (step T5), and the re-registration is terminated (step T6).

ステップT4で許容範囲外であれば、製品Pを撮影した撮影画像から次に一致度の高い再登録の基準となる画像(基準画像)が探し出され、その位置が保存される(ステップT7)。次に、元の検査画像の位置と保存された撮影画像の次に一致度の高い基準画像の位置との位置ずれ量が取り出される(ステップT8)。   If it is out of the allowable range in step T4, an image (reference image) having the next highest matching score is searched from the captured image obtained by photographing the product P, and its position is stored (step T7). . Next, the amount of positional deviation between the position of the original inspection image and the position of the reference image having the next highest matching degree after the stored captured image is extracted (step T8).

次に、位置ずれ量が所定の許容範囲内にあって、その位置ずれ量に応じて検査領域の位置を補正してよいか、の確認が行われる(ステップT9)。許容範囲内であれば(ステップT10)、検査領域の位置が位置ずれ量に応じて移動され、これが新たな検査領域として再登録されて(ステップT5)、再登録を終了する(ステップT6)。ステップT10で許容範囲外であれば、再登録を終了する(ステップS6)。   Next, it is confirmed whether the positional deviation amount is within a predetermined allowable range and whether the position of the inspection region may be corrected according to the positional deviation amount (step T9). If it is within the allowable range (step T10), the position of the inspection area is moved in accordance with the amount of displacement, this is re-registered as a new inspection area (step T5), and the re-registration ends (step T6). If it is outside the allowable range in step T10, the re-registration is terminated (step S6).

この許容範囲内の状態を図8に示す。「ABC」が最も一致度の高い撮影画像の基準画像であり、「123」が次に一致度の高い撮影画像の基準画像である。この場合、「ABC」が予想外の位置にあるようなとき(図示せず)には、「ABC」の次に一致度の高い画像「123」が探し出され、これを撮影画像の基準画像の他の候補として、位置ずれ量が所定の許容範囲内にあるか確認され、許容範囲内であれば新しい検査領域として再登録される。   A state within this allowable range is shown in FIG. “ABC” is the reference image of the photographed image with the highest degree of coincidence, and “123” is the reference image of the photographed image with the highest degree of coincidence. In this case, when “ABC” is in an unexpected position (not shown), the image “123” having the next highest matching score after “ABC” is searched for, and this is used as the reference image of the photographed image. As another candidate, it is confirmed whether the positional deviation amount is within a predetermined allowable range, and if it is within the allowable range, it is re-registered as a new inspection region.

こうして、第2実施形態では、検査基準の再登録の際に、候補となる撮影画像の基準画像が予想外の位置に外れた場合でも、これに代えて他の候補の撮影画像の基準画像に新たな検査領域が追従するように位置が補正されるので、再登録の検査基準となる画像の位置ずれに応じて、適切に対応することができる。   Thus, in the second embodiment, even when the reference image of the candidate captured image deviates from an unexpected position during the re-registration of the inspection standard, the reference image of another candidate captured image is used instead. Since the position is corrected so that the new inspection area follows, it is possible to appropriately cope with the positional deviation of the image serving as the inspection reference for re-registration.

次に第3実施形態について説明する。この第3実施形態は、第1実施形態と異なり、製品Pの品種を変更した場合で、かつ再登録の検査基準となる画像に位置ずれが生じた場合であり、この場合、製品Pの検査画像と検査領域が再登録される。その他の構成は第1実施形態と同様である。   Next, a third embodiment will be described. Unlike the first embodiment, the third embodiment is a case where the product P is changed in type and the image serving as an inspection standard for re-registration is misaligned. In this case, the product P is inspected. The image and inspection area are re-registered. Other configurations are the same as those of the first embodiment.

この再登録の状態を図9に示す。(A)は再登録する基準画像を示すもので、「124」が元の検査画像「123」と異なる。(B)は再登録する基準画像が位置ずれを生じて撮影された状態を示し、(C)は撮影画像の基準画像の位置ずれに応じて、検査画像および検査領域の位置が補正された状態を示す。このように、検査基準の再登録の際に、撮影画像の位置ずれした基準画像に新たな検査画像および検査領域が追従するように位置が補正される。   The re-registration state is shown in FIG. (A) shows the reference image to be re-registered. “124” is different from the original inspection image “123”. (B) shows a state in which the reference image to be re-registered is photographed with a positional shift, and (C) shows a state in which the positions of the inspection image and the inspection region are corrected according to the positional shift of the reference image of the photographed image. Indicates. As described above, at the time of re-registering the inspection standard, the position is corrected so that the new inspection image and the inspection region follow the reference image whose position of the photographed image is shifted.

こうして、第3実施形態では、再登録の検査基準となる製品Pの品種の変更および撮影画像の基準画像の位置ずれに応じて、適切に検査画像および検査領域の検査基準を再登録して、適切に対応することができる。   Thus, in the third embodiment, in accordance with the change in the type of the product P that is the inspection reference for re-registration and the positional deviation of the reference image of the photographed image, the inspection image and the inspection reference for the inspection area are appropriately re-registered, Can respond appropriately.

撮像素子、搬送コンベアおよび画像処理装置を示す構成図である。It is a block diagram which shows an image pick-up element, a conveyance conveyor, and an image processing apparatus. 本発明の第1実施形態に係る画像処理装置を示すブロック図である。1 is a block diagram illustrating an image processing apparatus according to a first embodiment of the present invention. 図2の画像位置ずれ処理手段の構成を示すブロック図である。It is a block diagram which shows the structure of the image position shift process means of FIG. 図2の画像処理装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the image processing apparatus of FIG. 検査領域の再登録状態を示す図である。It is a figure which shows the re-registration state of a test | inspection area | region. 検査領域の確認状態を示す図である。It is a figure which shows the confirmation state of a test | inspection area | region. 本発明の第2実施形態に係る画像処理装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the image processing apparatus which concerns on 2nd Embodiment of this invention. 検査領域の確認状態を示す図である。It is a figure which shows the confirmation state of a test | inspection area | region. 本発明の第3実施形態に係る画像処理装置の検査画像および検査領域の再登録状態を示す図である。It is a figure which shows the re-registration state of the test | inspection image and test | inspection area | region of the image processing apparatus which concerns on 3rd Embodiment of this invention.

符号の説明Explanation of symbols

1:撮像素子
5:検査画像登録手段
6:検査領域登録手段
7:再登録画像サーチ手段
8:画像位置ずれ処理手段
9:判定部
10:検査基準再登録制御手段
11:位置ずれ量検出手段
12:位置ずれ範囲確認手段
13:検査基準位置補正手段
P:製品


1: Image sensor 5: Inspection image registration means 6: Inspection area registration means 7: Re-registered image search means 8: Image position deviation processing means 9: Determination unit 10: Inspection reference re-registration control means 11: Position deviation amount detection means 12 : Misalignment range confirmation means 13: Inspection reference position correction means P: Product


Claims (5)

撮像素子で撮影された製品の撮像データを画像処理し、製品の撮影画像と検査基準の画像である検査画像とを比較して、製品の良否の検査を行う画像処理装置であって、
検査基準を再登録する際に、製品の撮影画像のうち再登録の検査基準となる画像と、元の検査基準の検査画像との間に位置ずれがある場合に、前記位置ずれが所定の許容範囲内であると確認されたとき、少なくとも元の検査画像に対して設定された検査領域を前記位置ずれに応じて位置補正し、新たな検査基準として当該位置補正した検査領域を再登録する制御を行う検査基準再登録制御手段を備えた、画像処理装置。
An image processing device that performs image processing on imaging data of a product photographed by an imaging device, compares a photographed image of the product with an inspection image that is an inspection standard image, and performs an inspection of the quality of the product,
When the inspection standard is re-registered, if there is a positional deviation between the image that is the re-registered inspection standard among the captured images of the product and the inspection image of the original inspection standard, the positional deviation is a predetermined tolerance. Control that, when confirmed as being within the range, at least corrects the inspection area set for the original inspection image according to the positional deviation and re-registers the inspection area that has been corrected as a new inspection standard An image processing apparatus comprising inspection standard re-registration control means for performing
請求項1において、
前記検査基準再登録制御手段は、
製品の撮影画像から、元の検査基準の検査画像と一致する再登録の検査基準となる画像をサーチする位置補正画像サーチ手段と、
元の検査基準の検査画像とサーチされた前記再登録の検査基準となる画像との一致度に基づき保存された当該再登録の検査基準となる画像の位置と、元の検査基準の検査画像の位置との位置ずれ量を検出する位置ずれ量検出手段と、
前記位置ずれ量が所定の許容範囲内か否かを確認する位置ずれ範囲確認手段と、
前記位置ずれ量が前記許容範囲を超えると確認された場合には、再登録を中止し、前記許容範囲内と確認された場合には、元の検査領域から位置ずれ量に応じて位置補正した検査領域を新たな検査基準とする検査基準位置補正手段と、
前記位置補正した検査領域を新たな検査基準として再登録する検査基準再登録手段と、
を備えている画像処理装置。
In claim 1,
The inspection standard re-registration control means includes
A position-corrected image search means for searching a re-registered inspection reference image that matches the inspection image of the original inspection reference from the photographed image of the product;
The position of the image as the inspection standard of the re-registration stored based on the degree of coincidence between the inspection image of the original inspection standard and the searched image as the inspection standard of the re-registration, and the inspection image of the original inspection standard A positional deviation amount detecting means for detecting a positional deviation amount from the position;
A displacement range confirmation means for confirming whether or not the displacement amount is within a predetermined allowable range;
When it is confirmed that the amount of positional deviation exceeds the allowable range, re-registration is stopped, and when it is confirmed that the positional deviation is within the allowable range, the position is corrected from the original inspection area according to the amount of positional deviation. Inspection reference position correcting means using the inspection area as a new inspection reference;
Inspection standard re-registering means for re-registering the position-corrected inspection region as a new inspection standard;
An image processing apparatus.
請求項1において、
前記再登録される検査基準が、検査基準の画像である検査画像および前記検査画像に対して設定された検査領域である画像処理装置。
In claim 1,
An image processing apparatus in which the re-registered inspection standard is an inspection image that is an image of an inspection standard and an inspection region that is set for the inspection image.
請求項2において、
前記位置ずれ範囲確認手段は、手動操作により位置ずれ量の許容範囲をモニタに表示させて確認させるとともに、位置ずれ量の許容範囲を規定する閾値に基づいて自動的に確認されるように設定されている、画像処理装置。
In claim 2,
The misregistration range confirmation means is set so that the permissible range of misregistration is displayed on a monitor by manual operation, and is confirmed automatically based on a threshold value that defines the permissible range of misregistration. An image processing apparatus.
請求項2において、さらに、
前記位置補正画像サーチ手段が、元の検査基準の検査画像に最も一致度の高い再登録の検査基準となる画像をサーチし、このサーチされた画像の位置ずれ量が前記許容範囲を超えるものと前記位置ずれ範囲確認手段により確認された場合には、元の検査基準の検査画像に次に一致度の高い画像をサーチするものであり、
前記位置ずれ量検出手段が、前記保存された次に一致度の高い画像の位置と、元の検査基準の検査画像の位置との位置ずれ量を検出するものである、画像処理装置。


In claim 2, further:
The position-corrected image search means searches for an image as a re-registration inspection standard having the highest degree of coincidence with the inspection image of the original inspection standard, and the amount of positional deviation of the searched image exceeds the allowable range. When it is confirmed by the misalignment range confirmation means, it searches for an image having the next highest matching degree with the original inspection standard inspection image,
The image processing apparatus, wherein the misregistration amount detection means detects a misregistration amount between the position of the stored image having the next highest degree of coincidence and the position of the original inspection reference inspection image.


JP2007166090A 2007-06-25 2007-06-25 Image processing device Pending JP2009003839A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007166090A JP2009003839A (en) 2007-06-25 2007-06-25 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007166090A JP2009003839A (en) 2007-06-25 2007-06-25 Image processing device

Publications (1)

Publication Number Publication Date
JP2009003839A true JP2009003839A (en) 2009-01-08

Family

ID=40320133

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007166090A Pending JP2009003839A (en) 2007-06-25 2007-06-25 Image processing device

Country Status (1)

Country Link
JP (1) JP2009003839A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180034788A (en) * 2016-09-27 2018-04-05 현대자동차주식회사 Composite lamination structure, vehicle body panel and partition panel for vehicle
JP2019211319A (en) * 2018-06-04 2019-12-12 アイレック技建株式会社 Image defect detection apparatus and image defect detection method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6329887A (en) * 1986-07-24 1988-02-08 Tokyo Keiki Co Ltd Pattern inspection device
JPH0891543A (en) * 1994-09-28 1996-04-09 Omron Corp Image processing method, and device therefor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6329887A (en) * 1986-07-24 1988-02-08 Tokyo Keiki Co Ltd Pattern inspection device
JPH0891543A (en) * 1994-09-28 1996-04-09 Omron Corp Image processing method, and device therefor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180034788A (en) * 2016-09-27 2018-04-05 현대자동차주식회사 Composite lamination structure, vehicle body panel and partition panel for vehicle
JP2019211319A (en) * 2018-06-04 2019-12-12 アイレック技建株式会社 Image defect detection apparatus and image defect detection method

Similar Documents

Publication Publication Date Title
JP5318657B2 (en) Tire inspection equipment
JP5704606B2 (en) Alignment correction method and exposure apparatus for substrate to be exposed
JP6310058B2 (en) Image processing apparatus and substrate production system
US20080014772A1 (en) Component mounting position correcting method and component mouting apparatus
JP2006287062A (en) Mounting substrate manufacturing apparatus
JP6969144B2 (en) Printing device and control method
JP2009003839A (en) Image processing device
KR101818826B1 (en) Apparatus and method for assembling lens
JP2011082506A (en) Device for inspecting or mounting component
JP2015166722A (en) Defect image imaging device and defect image imaging method
JP2007123503A (en) Inspection conveyance machine, inspection check method and mounting line
JP4520324B2 (en) Inspection result notification device and mounting system
JP2005072317A (en) Packaging method and apparatus
JP6091285B2 (en) Image processing apparatus, inspection system using the same, sheet image correction method, and sheet inspection method using the same
JP2009080004A (en) Inspection device
CN114162376B (en) Method and device for detecting appearance quality of tobacco packet
WO2019229920A1 (en) Recognition parameter optimization device, component mounting system, and recognition parameter optimization method
JP2017009434A (en) Image inspection device and image inspection method
JP2009192358A (en) Defect inspection device
KR101754598B1 (en) System for testing panel using focus mapping scheme and method thereof
JP6893198B2 (en) Information processing device and information processing method
JP2000339458A (en) Image processor
JP5003610B2 (en) Board inspection method
KR101738847B1 (en) Apparatus and method for determining combination status of combination means
JP4847390B2 (en) Image processing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100309

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110630

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110705

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20111101