Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7731666B2 - Image processing device and image processing method - Google Patents
[go: Go Back, main page]

JP7731666B2 - Image processing device and image processing method - Google Patents

Image processing device and image processing method

Info

Publication number
JP7731666B2
JP7731666B2 JP2020202920A JP2020202920A JP7731666B2 JP 7731666 B2 JP7731666 B2 JP 7731666B2 JP 2020202920 A JP2020202920 A JP 2020202920A JP 2020202920 A JP2020202920 A JP 2020202920A JP 7731666 B2 JP7731666 B2 JP 7731666B2
Authority
JP
Japan
Prior art keywords
feature points
image
paper
transformation
vertices
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2020202920A
Other languages
Japanese (ja)
Other versions
JP2022090492A (en
JP2022090492A5 (en
Inventor
宏樹 渡部
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2020202920A priority Critical patent/JP7731666B2/en
Publication of JP2022090492A publication Critical patent/JP2022090492A/en
Publication of JP2022090492A5 publication Critical patent/JP2022090492A5/ja
Application granted granted Critical
Publication of JP7731666B2 publication Critical patent/JP7731666B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Description

本発明は、印刷装置が出力した印刷物における欠陥の有無を検査する技術に関する。 The present invention relates to technology for inspecting printed materials output by a printing device for defects.

印刷物に欠陥がなく、問題のない品質であることを確認する検査作業が行われることがある。例えば、あらかじめ良品である印刷物の画像データ(以下、参照画像とも呼ぶ)を用意しておく。次に、検査対象となる印刷物の画像データ(以下、対象画像とも呼ぶ)をスキャンや撮影等によって取得する。そしてこの二つの画像データを比較することで検査が行われる。 Inspection work is sometimes carried out to ensure that printed matter is free of defects and of acceptable quality. For example, image data of a good printed matter (hereafter also referred to as a reference image) is prepared in advance. Next, image data of the printed matter to be inspected (hereafter also referred to as a target image) is obtained by scanning or photographing, etc. The inspection is then carried out by comparing these two sets of image data.

より正確な比較検査を行うためには、印刷物の位置合わせを行う必要がある。位置合わせの方法としては、画像中からエッジ情報を抽出し、エッジが集中する点を特徴点とし、検出した特徴点に基づき位置合わせを行う方法がある。 To perform a more accurate comparison inspection, it is necessary to align the printed materials. One method of alignment is to extract edge information from the image, define the points where the edges converge as feature points, and then align the materials based on the detected feature points.

しかしながら、画像によっては特徴点が検出されない、あるいは検出されたとしても非常に少ない場合がある。このような場合に特徴点に基づき位置合わせを行ったとしても、位置合わせの精度が低いことがある。具体的には、1点の特徴点のみに基づいて位置合わせをする場合、平行移動による位置合わせは可能だが、回転・スケール変更による位置合わせはできない。また、2点の特徴点のみに基づいて位置合わせをする場合、平行移動・回転・スケール変更による位置合わせは可能だが、縦横が等しいスケール変更しかできない。搬送装置で用紙を送り、ラインスキャナで用紙をスキャンして画像を取得するような構成の場合、縦横で異なるスケールとなるため、正確に位置合わせをすることができない。 However, depending on the image, feature points may not be detected, or even if they are detected, there may be very few. In such cases, even if alignment is performed based on feature points, the accuracy of alignment may be low. Specifically, when alignment is performed based on only one feature point, alignment by translation is possible, but alignment by rotation or scale change is not possible. Furthermore, when alignment is performed based on only two feature points, alignment by translation, rotation, and scale change is possible, but only scale changes that are equal in both the vertical and horizontal directions are possible. In a configuration where paper is fed using a transport device and the paper is scanned using a line scanner to obtain an image, accurate alignment is not possible because the vertical and horizontal scales are different.

このように位置合わせの精度が低い場合に比較検査を行うと、良品な印刷物に対しても不良であるとの誤判定が生じる可能性がある。ここで、特許文献1には、特徴点の数が少ない場合に、位置合わせを行わずに特徴点の数に基づく検査を行うことが記載されている。具体的には、参照画像の特徴点の数より対象画像の特徴点の数のほうが多い場合、印刷物に付着した汚れなどによって欠陥が生じたとして不良品と判定することが記載されている。 When comparative inspection is performed with such low alignment accuracy, there is a risk that good printed matter may be erroneously determined to be defective. Patent Document 1 describes a method for performing inspection based on the number of feature points without alignment when the number of feature points is small. Specifically, it describes a method for determining that a defect has occurred due to dirt or other factors adhering to the printed matter, resulting in a defective product.

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

特許文献1に記載の方法では、欠陥のコントラストが低い場合、欠陥が特徴点として検出されない可能性がある。また、特徴点の数に基づく検査では、検出された欠陥の大きさや位置を求めることはできない。更に、特許文献1に記載の方法では位置合わせを行わないため、印刷位置ずれ検査を行うことができず、印刷位置ずれ異常を検出することもできない。 With the method described in Patent Document 1, if the contrast of the defect is low, the defect may not be detected as a feature point. Furthermore, inspection based on the number of feature points makes it impossible to determine the size or position of a detected defect. Furthermore, because the method described in Patent Document 1 does not perform alignment, it is not possible to inspect for print misalignment, and therefore it is not possible to detect print misalignment abnormalities.

本発明は、参照画像の特徴点が少ない場合でも位置合わせを行うことを可能とし、検査の精度を高めることを目的とする。 The present invention aims to improve inspection accuracy by enabling alignment even when there are few feature points in the reference image.

本発明に係る画像処理装置は、検査の基準である参照画像と印刷物を読み取って得られる対象画像とを取得する画像取得手段と、前記参照画像から特徴点を検出する第1検出手段と、前記対象画像において、前記対象画像の背景領域と前記印刷物に用いられた用紙用紙領域との境界に対応する画素を追跡することにより前記用紙の頂点を検出する第2検出手段と、前記用紙の頂点と、前記特徴点とに基づき、前記参照画像と前記対象画像との間の位置合わせを行うための変換を算出することにより、位置合わせを行う位置合わせ手段と、前記位置合わせされた参照画像および対象画像に基づき、前記対象画像の検査を行う検査手段とを有し、前記位置合わせ手段は、前記特徴点に基づき前記変換の平行移動成分を算出し、前記頂点に基づき前記変換の回転成分とスケール成分との少なくとも一つを算出し、前記第2検出手段は、前記背景領域の画素値が第1の値、前記用紙領域の画素値が前記第1の値と異なる第2の値となるように前記対象画像に対して二値化処理を行い、前記第1の値に対応する領域と前記第2の値に対応する領域との境界となる画素を追跡して軌跡を抽出し、前記軌跡に対応する前記用紙の輪郭において所定の角度以上を成している部分を前記用紙の頂点として検出することを特徴とする。 The image processing device according to the present invention includes an image acquisition means for acquiring a reference image that is a standard for inspection and a target image obtained by reading a printed matter, a first detection means for detecting feature points from the reference image, a second detection means for detecting vertices of the paper by tracking pixels in the target image that correspond to the boundary between a background region of the target image and a paper region of the paper used for the printed matter, a registration means for performing registration between the reference image and the target image by calculating a transformation for performing registration between the reference image and the target image based on the registered reference image and the target image, and a second detection means for performing registration between the reference image and the target image by calculating a transformation for performing registration between the reference image and the target image based on the registered reference image and the target image. and an inspection means for inspecting the image, wherein the alignment means calculates a translation component of the transformation based on the feature points, and calculates at least one of a rotation component and a scale component of the transformation based on the vertices, and the second detection means performs a binarization process on the target image so that pixel values of the background region become a first value and pixel values of the paper region become a second value different from the first value, tracks pixels that form a boundary between the region corresponding to the first value and the region corresponding to the second value, extracts a trajectory, and detects parts of the outline of the paper that correspond to the trajectory and form an angle equal to or greater than a predetermined angle as vertices of the paper .

本発明によれば、参照画像の特徴点が少ない場合でも位置合わせを行うことができ、精度の高い検査を行うことができる。 According to the present invention, alignment can be performed even when there are few feature points in the reference image, enabling highly accurate inspection.

画像処理装置を含む印刷システム全体の構成を示す図。FIG. 1 is a diagram showing the overall configuration of a printing system including an image processing apparatus. 実施例1の画像処理装置の構成を示すブロック図。FIG. 1 is a block diagram showing the configuration of an image processing apparatus according to a first embodiment. 実施例1のフローチャート。1 is a flowchart of the first embodiment. 実施例1の位置合わせ処理のフローチャート。10 is a flowchart of alignment processing according to the first embodiment. 参照画像と対象画像の概要図。Schematic diagram of the reference and target images. 参照画像と対象画像の概要図(特徴点が少ない場合)。Overview of the reference and target images (when there are few feature points). 実施例2の画像処理装置の構成を示すブロック図。FIG. 10 is a block diagram showing the configuration of an image processing apparatus according to a second embodiment. 実施例2のフローチャート。10 is a flowchart of a second embodiment. 実施例2の特徴点分布判断処理の概要図。FIG. 10 is a schematic diagram of a feature point distribution determination process according to the second embodiment. 実施例2の位置合わせ処理のフローチャート。10 is a flowchart of a registration process according to the second embodiment. 変形例1のフローチャート。10 is a flowchart of a first modified example. 変形例5のフローチャート。10 is a flowchart of a fifth modified example. 変形例6のフローチャート。10 is a flowchart of a sixth modified example.

以下、図面を参照して本実施例を説明する。尚、以下の実施例は本発明を必ずしも限定するものではない。また、本実施例において説明されている特徴の組み合わせの全てが本発明の解決手段に必須のものとは限らず、複数の特徴は任意に組み合わせられてもよい。さらに、添付図面においては、同一若しくは同様の構成に同一の参照番号を付し、重複した説明は省略する。また、フローチャートにおける各工程(ステップ)についてはSで始まる符号を用いて示す。 The present embodiment will now be described with reference to the drawings. Note that the following embodiment does not necessarily limit the present invention. Furthermore, not all of the combinations of features described in the present embodiment are necessarily essential to the solution of the present invention, and multiple features may be combined arbitrarily. Furthermore, in the accompanying drawings, the same reference numbers are used for identical or similar components, and duplicate explanations will be omitted. Furthermore, each process (step) in the flowchart is indicated by a number beginning with S.

本実施例では、本実施例に係る画像処理装置は、印刷が行われた検査対象媒体(以降、印刷結果とも呼ぶ)における欠陥の有無を検査する。また、欠陥の無い印刷物を表す画像データを参照画像、検査対象である印刷結果の読み取り画像データを対象画像と呼ぶ。 In this embodiment, the image processing device according to this embodiment inspects the presence or absence of defects in the inspection target medium on which printing has been performed (hereinafter also referred to as the print result). Furthermore, image data representing a printout without defects is referred to as the reference image, and the scanned image data of the print result to be inspected is referred to as the target image.

本実施例では、特徴点の数に応じて、位置合わせの平行移動成分、回転・スケール成分を異なる位置合わせ基準点群から求める。ここで、画像中の特徴点や用紙の頂点等、位置合わせに使用する点群を位置合わせ基準点群と呼ぶ。本実施例では、特徴点の数が一個又は二個の場合に、特徴点と用紙の頂点との両方を用いた位置合わせを行い、位置合わせした画像を用いて比較検査を行う。これにより、低コントラスト欠陥も検出することができる。 In this embodiment, the translation components and rotation/scale components of alignment are calculated from different alignment reference point groups depending on the number of feature points. Here, the point groups used for alignment, such as feature points in the image and the vertices of the paper, are called alignment reference point groups. In this embodiment, when there are one or two feature points, alignment is performed using both the feature points and the vertices of the paper, and a comparison inspection is performed using the aligned image. This makes it possible to detect low-contrast defects as well.

(印刷システムの構成)
図1は、本発明を適用した画像処理装置100を含む、印刷物の出力と検査を行う印刷システム全体の構成例である。本実施例の印刷システムは、画像処理装置100と、印刷用サーバ180、印刷装置190を有する。印刷用サーバ180は、印刷する原稿の印刷ジョブを生成し、印刷装置190へ印刷ジョブを投入する。印刷装置190は、印刷用サーバ180から投入された印刷ジョブに基づき、記録媒体(紙)上に画像を形成する。印刷装置190は給紙部191を有しており、ユーザはあらかじめ印刷用紙を給紙部にセットしておく。印刷装置190は印刷ジョブが投入されたら、給紙部191にセットされた印刷用紙を搬送路192に沿って搬送しながら、その表面または両面に画像を形成し、画像処理装置100へと送る。
(Printing system configuration)
FIG. 1 shows an example of the overall configuration of a printing system that outputs and inspects printed materials, including an image processing device 100 to which the present invention is applied. The printing system of this embodiment includes the image processing device 100, a printing server 180, and a printing device 190. The printing server 180 generates a print job for a document to be printed and submits the print job to the printing device 190. The printing device 190 forms an image on a recording medium (paper) based on the print job submitted from the printing server 180. The printing device 190 has a paper feed unit 191, and the user loads printing paper in the paper feed unit in advance. When a print job is submitted, the printing device 190 transports the printing paper loaded in the paper feed unit 191 along a transport path 192, forms an image on one or both sides of the paper, and sends it to the image processing device 100.

本発明の画像処理装置100は、印刷装置190が画像を形成し、搬送路192を通じて送ってきた印刷物に対し、欠陥の有無を調べる検査処理を行う。すなわち画像処理装置100は検査処理装置として機能する。画像処理装置100は、内部にCPU101、RAM102、ROM103、記憶装置104、画像読取装置105を有する。また、印刷装置とのインターフェース(I/F)106、汎用インターフェース(I/F)107、ユーザインターフェース(UI)パネル108、メインバス109を有する。さらに、印刷装置190の搬送路192と接続された印刷物の搬送路110、検査合格した印刷成果物の出力トレー111と、検査不合格だった印刷物の出力トレー112を有する。 The image processing device 100 of the present invention performs an inspection process to check for defects on printed matter sent via a conveying path 192 after an image is formed by a printing device 190. In other words, the image processing device 100 functions as an inspection processing device. The image processing device 100 internally has a CPU 101, RAM 102, ROM 103, a storage device 104, and an image reading device 105. It also has an interface (I/F) 106 with the printing device, a general-purpose interface (I/F) 107, a user interface (UI) panel 108, and a main bus 109. It also has a conveying path 110 for printed matter connected to the conveying path 192 of the printing device 190, an output tray 111 for printed matter that has passed inspection, and an output tray 112 for printed matter that has failed inspection.

CPU101は画像処理装置100内の各部を統括的に制御するプロセッサである。RAM102は、CPU101の主メモリ、ワークエリア等として機能する。ROM103は、CPU101によって実行されるプログラム群を格納している。主記憶装置104は、CPU101によって実行されるアプリケーションや、画像処理に用いられるデータ等を記憶する。画像読取装置(スキャナ)105は、印刷装置から送られてきた印刷物の片面または両面を、搬送路110上で読み取り、画像データとして取得することができる。本実施例では、画像読取装置105はラインスキャナとする。印刷装置I/F106は印刷装置190と接続されており、印刷装置190と印刷物の処理タイミングの同期を取ったり、互いの稼働状況を連絡し合ったりすることができる。汎用I/F107はUSBやIEEE1394等のシリアルバスインターフェースであり、ユーザがログ等のデータを持ち出したりすることができる。UIパネル108は、液晶ディスプレイにユーザインターフェースが表示されているもので、現在の状況や設定を表示し、ユーザに伝える。また、用紙の大きさや種類といった印刷設定を、例えば汎用I/F107に接続された、特に図示しないマウスやキーボードを通してユーザから受け取る。メインバス109は画像処理装置100の各部分を接続している。このほか、図2からは省略するが、CPU101は指示によって画像処理装置100や印刷システムの内部各所を動作させることができる。例えば、搬送路を同期して動かしたり、検査結果に応じて印刷物を合格の出力トレー111か不合格の出力トレー112かのどちらに送るかを切り替えたりすることができる。 The CPU 101 is a processor that controls all components within the image processing device 100. The RAM 102 functions as the CPU 101's main memory, work area, etc. The ROM 103 stores programs executed by the CPU 101. The main memory device 104 stores applications executed by the CPU 101 and data used for image processing, etc. The image reading device (scanner) 105 can read one or both sides of a printed document sent from the printing device on the conveying path 110 and acquire it as image data. In this embodiment, the image reading device 105 is a line scanner. The printing device I/F 106 is connected to the printing device 190, and can synchronize the processing timing of printed documents with the printing device 190 and communicate each other's operating status. The general-purpose I/F 107 is a serial bus interface such as USB or IEEE 1394, and allows users to take out data such as logs. The UI panel 108 displays a user interface on an LCD screen, displaying the current status and settings to the user. It also receives print settings such as paper size and type from the user via, for example, a mouse or keyboard (not shown) connected to the general-purpose I/F 107. The main bus 109 connects the various components of the image processing device 100. In addition, although not shown in Figure 2, the CPU 101 can operate various internal components of the image processing device 100 and printing system in response to instructions. For example, it can synchronize the movement of transport paths, or switch between sending printed materials to either the pass output tray 111 or the fail output tray 112 depending on the inspection results.

全体として画像処理装置100は、印刷装置190から送られた印刷物を搬送路110で搬送しつつ、画像読取装置105で読み取った印刷物の画像データに基づき、以下に説明する検査処理を行う。印刷物は、検査合格であれば合格の出力トレー111まで搬送され、そうでなければ不合格の出力トレー112に搬送される。こうして品質の確認されたものだけを納品用として出力トレー111に集めることができる。 Overall, the image processing device 100 transports printed materials sent from the printing device 190 along the transport path 110, while performing the inspection process described below based on the image data of the printed materials read by the image reading device 105. If the printed materials pass the inspection, they are transported to the pass output tray 111; if not, they are transported to the fail output tray 112. In this way, only those whose quality has been confirmed can be collected in the output tray 111 for delivery.

(画像処理装置の構成)
画像処理装置100の構成を図2に示す。画像処理装置100は、参照画像取得部201、特徴点取得部202、対象画像取得部203、位置合わせ部204、検査部205を有する。
(Configuration of image processing device)
2 shows the configuration of the image processing device 100. The image processing device 100 includes a reference image acquisition unit 201, a feature point acquisition unit 202, a target image acquisition unit 203, a position adjustment unit 204, and an inspection unit 205.

参照画像取得部201は、検査の基準となる参照画像を取得する。特徴点取得部202は、参照画像中から位置合わせに使用する特徴点を検出する。対象画像取得部203は、搬送路110上の印刷物を画像読取装置105が読み取って得られる、検査対象の対象画像を取得する。位置合わせ部204は、参照画像と対象画像の位置合わせを行う。検査部205は、位置合わせされた参照画像と対象画像を用いて印刷画像の比較検査を行う。 The reference image acquisition unit 201 acquires a reference image that serves as the basis for inspection. The feature point acquisition unit 202 detects feature points from the reference image that are used for alignment. The target image acquisition unit 203 acquires a target image to be inspected, obtained by the image reading device 105 reading a printed material on the conveying path 110. The alignment unit 204 aligns the reference image and target image. The inspection unit 205 performs a comparative inspection of the printed image using the aligned reference image and target image.

(画像処理装置が実行する処理)
図3を用いて画像処理装置100が実行する実施例1の処理の流れを説明する。図3は装置全体の処理の流れを示すフローチャートである。
(Processing performed by the image processing device)
The flow of processing in the first embodiment executed by the image processing apparatus 100 will be described with reference to Fig. 3. Fig. 3 is a flowchart showing the flow of processing in the entire apparatus.

S1010において、参照画像取得部201は、検査の基準となる参照画像を取得する。尚、参照画像は予め目視で汚れがないことを確認した印刷物をスキャンして予め作成したものが記憶装置104に格納されているものとする。 In S1010, the reference image acquisition unit 201 acquires a reference image that serves as the basis for inspection. Note that the reference image is assumed to be a pre-created image stored in the storage device 104, created by scanning a printed material that has been visually confirmed to be free of dirt.

S1020において、特徴点取得部202は、S1010で取得した参照画像から特徴点の検出を行う。本実施例では、用紙の印刷領域のコーナーを特徴点として検出する。コーナーの検出には、いわゆるHarrisのコーナー検出アルゴリズムを用いるが、これに限られるものではない。また、本実施例ではコーナーを特徴点として検出するが、これに限らず、他の特徴を持つ画素を特徴点としてもよい。 In S1020, the feature point acquisition unit 202 detects feature points from the reference image acquired in S1010. In this embodiment, corners of the print area of the paper are detected as feature points. The so-called Harris corner detection algorithm is used to detect the corners, but this is not limiting. Also, while corners are detected as feature points in this embodiment, this is not limiting, and pixels with other characteristics may also be used as feature points.

S1030において、対象画像取得部203は、搬送路110上の印刷物を画像読取装置105が読み取って得られる、対象画像を取得する。 In S1030, the target image acquisition unit 203 acquires the target image obtained by the image reading device 105 reading the printed material on the conveying path 110.

S1040において、位置合わせ部204は、S1020で取得した特徴点を用いて参照画像と対象画像の位置合わせを行う。位置合わせ処理の詳細については後述する。 In S1040, the alignment unit 204 aligns the reference image and the target image using the feature points acquired in S1020. Details of the alignment process will be described later.

S1050において、検査部205は、参照画像と位置合わせされた対象画像との差分を算出する。そして、差分が所定の値よりも大きな画素を欠陥として検出する。対象画像に欠陥が検出されなかった場合は対応する印刷物を合格とし、対象画像に欠陥が検出された場合は対応する印刷物を合格とする。 In S1050, the inspection unit 205 calculates the difference between the reference image and the aligned target image. Pixels for which the difference is greater than a predetermined value are then detected as defective. If no defects are detected in the target image, the corresponding printed matter is deemed to be acceptable; if defects are detected in the target image, the corresponding printed matter is deemed to be acceptable.

S1060において、印刷装置190の印刷が終了した場合は処理を終了する。印刷を継続する場合には、S1030に戻り、処理を継続する。 If printing by the printing device 190 is complete at S1060, the process ends. If printing is to continue, the process returns to S1030 and continues.

(位置合わせ処理の詳細)
S1040で行う位置合わせ処理について、図4のフローチャートを用いて説明する。
(Details of the alignment process)
The alignment process performed in S1040 will be described with reference to the flowchart in FIG.

S1041において、位置合わせ部204は、S1020で取得した特徴点に対応する、対象画像上の対応点を取得する。図5は参照画像と対象画像の関係を示す図である。参照画像501は四つの特徴点502を有している。位置合わせ部204は、まずこれらの参照画像501上の特徴点に対して、各々の特徴点を中心とした規定の大きさのテンプレート503を設定する。そして、設定したテンプレートを用いて対象画像511に対してテンプレートマッチングを行い、特徴点502に対応する対象画像511上の対応点512を得る。 In S1041, the registration unit 204 acquires corresponding points on the target image that correspond to the feature points acquired in S1020. Figure 5 is a diagram showing the relationship between the reference image and the target image. The reference image 501 has four feature points 502. The registration unit 204 first sets templates 503 of a specified size centered on each of these feature points on the reference image 501. Then, using the set templates, template matching is performed on the target image 511 to acquire corresponding points 512 on the target image 511 that correspond to the feature points 502.

S1042において、S1020で取得した特徴点が3個以上ならばS1043に、2個以下ならばS1044に移行する。 In S1042, if the number of feature points acquired in S1020 is three or more, the process proceeds to S1043; if the number is two or less, the process proceeds to S1044.

S1043において、位置合わせ部204は、参照画像501上の特徴点502と対象画像511上の対応点512に基づき、対象画像511から参照画像501への変換Xを算出する。本実施例における変換Xはアフィン変換であり、対象画像511から参照画像501への平行移動、回転、スケールを合成した変換を表す。参照画像501上の四つの特徴点502における座標を(a1,a1)~(a4,a4)、対象画像511上の四つの対応点512における座標(b1,b1)を~(b4,b4)と表記する。 In S1043, the registration unit 204 calculates a transformation X from the target image 511 to the reference image 501 based on the feature points 502 on the reference image 501 and the corresponding points 512 on the target image 511. The transformation X in this embodiment is an affine transformation, which represents a transformation combining translation, rotation, and scale from the target image 511 to the reference image 501. The coordinates of the four feature points 502 on the reference image 501 are represented as (a x 1, a y 1) to (a x 4, a y 4), and the coordinates (b x 1, b y 1) of the four corresponding points 512 on the target image 511 are represented as (b x 4, b y 4).

ここで、対象画像上の対応点から参照画像への変換は以下のように表される。特徴点の個数をnとする。本実施例では、n=4でXを算出する。位置合わせ部204は、(式1)におけるBの逆行列をAの右から乗ずることによって、変換Xを算出する。(式1)のAとBは正方行列でない場合、位置合わせ部204は、行列Bに対するムーア・ペンローズの疑似逆行列を求め、Xを算出する。Xの成分x13,x23は平行移動成分をx11,x12,x21,x22、は回転・スケール成分を表す。
A=BX ・・・(式1)
ただし、
Here, the transformation from corresponding points on the target image to the reference image is expressed as follows. Let the number of feature points be n. In this embodiment, X is calculated when n=4. The alignment unit 204 calculates the transformation X by multiplying the inverse matrix of B in (Equation 1) from the right of A. If A and B in (Equation 1) are not square matrices, the alignment unit 204 finds the Moore-Penrose pseudo-inverse matrix for matrix B to calculate X. The components x13 and x23 of X represent translation components, and x11 , x12 , x21 , and x22 represent rotation and scale components.
A=BX...(Formula 1)
however,

S1044において、位置合わせ部204は、参照画像、対象画像の用紙の頂点を検出する。頂点の検出は、まず対象画像の背景領域が画素値0、用紙領域が画素値1となるように画像の二値化を行う。次に、画素値0と画素値1の境界となる画素を追跡し、軌跡を抽出する。そして、輪郭が所定の角度以上を成している部分を頂点として検出する。特徴点が2個以下の参照画像と対象画像の例を図6に示す。参照画像601、対象画像612は二個の特徴点602、612を有している。参照画像601からは頂点603が、対象画像611からは頂点613が検出される。 In S1044, the registration unit 204 detects the vertices of the paper in the reference image and target image. To detect the vertices, the image is first binarized so that the background area of the target image has a pixel value of 0 and the paper area has a pixel value of 1. Next, the pixels on the boundary between pixel values 0 and 1 are tracked to extract a trajectory. Then, parts where the contour forms an angle greater than a predetermined angle are detected as vertices. Figure 6 shows an example of a reference image and target image with two or fewer feature points. Reference image 601 and target image 612 have two feature points 602 and 612. Vertex 603 is detected from reference image 601, and vertex 613 is detected from target image 611.

S1045において、位置合わせ部204は、S1044で検出した用紙の頂点に基づき、対象画像611から参照画像601への変換X’を算出する。用紙の頂点の個数をmとする。本実施例ではm=4でX’を算出する。変換X’はS1043と同様に求められる。ただし、参照画像601上の頂点603における座標を(a’1,a’1)~(a’4,a’4)、対象画像611上の対応点613における座標を(b’1,b’1)~(b’4,b’4)と表記する。
A’=B’X’ ・・・(式2)
ただし、
In S1045, the registration unit 204 calculates a transformation X' from the target image 611 to the reference image 601 based on the vertices of the paper detected in S1044. The number of vertices of the paper is assumed to be m. In this embodiment, X' is calculated when m=4. The transformation X' is obtained in the same manner as in S1043. However, the coordinates of the vertices 603 on the reference image 601 are expressed as (a x '1, a y '1) to (a x '4, a y '4), and the coordinates of the corresponding points 613 on the target image 611 are expressed as (b x '1, b y '1) to (b x '4, b y '4).
A'=B'X'...(Formula 2)
however,

S1046において、S1020で取得した特徴点が1個以上ならばS1047に、0個ならばX=X’として、S1048に移行する。 In S1046, if there are one or more feature points acquired in S1020, the process proceeds to S1047; if there are zero feature points, X = X' is set and the process proceeds to S1048.

S1047において、位置合わせ部204は、参照画像601上の特徴点602と対象画像611上の対応点612に基づき、対象画像611から参照画像601への平行移動成分Tを算出する。平行移動量Tは以下の式で求められる。ただし、参照画像601上のn個の特徴点602における座標を(a1,a1)~(an,an)、対象画像611上のn個の対応点612における座標を(b1,b1)~(bn,bn)と表記する。 In S1047, the registration unit 204 calculates a translation component T from the target image 611 to the reference image 601 based on the feature points 602 on the reference image 601 and the corresponding points 612 on the target image 611. The translation amount T is calculated using the following formula, where the coordinates of the n feature points 602 on the reference image 601 are represented as (a x 1, a y 1) to (a x n, a y n), and the coordinates of the n corresponding points 612 on the target image 611 are represented as (b x 1, b y 1) to (b x n, b y n).

次に、特徴点に基づき算出した平行移動成分Tと、用紙の頂点に基づき算出した回転・スケール成分を合成した変換X’’を算出する。ここで変換X’’は、S1045で求めた変換X’の平行移動成分をTで置き換えたものとなる。変換X’中のx13’,x23’が平行移動成分を表すので、変換X’’は以下のように求めることができる。 Next, a transformation X'' is calculated by combining the translation component T calculated based on the feature points and the rotation and scale components calculated based on the vertices of the paper. Here, transformation X'' is obtained by replacing the translation component of transformation X' calculated in S1045 with T. Since x 13 ' and x 23 ' in transformation X' represent translation components, transformation X'' can be calculated as follows:

そして、X=X’’として、変換の算出を完了する。 Then, set X = X'' to complete the transformation calculation.

S1048において、位置合わせ部204は、特徴点の個数に応じて求められた変換Xを用いて対象画像を変換する。この変換により、参照画像に対して位置合わせされた対象画像を得られる。 In S1048, the alignment unit 204 transforms the target image using the transformation X calculated according to the number of feature points. This transformation results in a target image that is aligned with the reference image.

このように、本実施例では特徴点の個数が一個又は二個の場合に、特徴点基づき平行移動成分を、用紙の頂点に基づき回転・スケール成分を算出する。よって、特徴点が一個の場合も回転・スケール成分を算出することができ、二個の場合もスケール成分をより正確に求めることができる。 In this way, in this embodiment, when there is one or two feature points, the translation component is calculated based on the feature points, and the rotation and scale components are calculated based on the vertices of the paper. Therefore, the rotation and scale components can be calculated even when there is one feature point, and the scale components can be calculated more accurately when there are two feature points.

上記の処理により、特徴点が少ない場合でも高精度な位置合わせを行うことができる。それにより、比較検査を行い、低コントラスト欠陥を検出したり、検出された欠陥の大きさや位置を求めたりすることができる。 The above process enables highly accurate alignment even when there are few feature points. This makes it possible to perform comparative inspections, detect low-contrast defects, and determine the size and location of detected defects.

特徴点が直線状に並んでいる場合、特徴点が三個以上でも二個の場合と同等の情報量しかない。このため、特徴点のみを位置合わせ基準点群として用いると位置合わせの精度が低下してしまう可能性がある。そこで、本実施例では、特徴点の分布に応じて、位置合わせの平行移動成分、回転・スケール成分を異なる位置合わせ基準点群から求める。本実施例では、特徴点が三個以上ある場合でも、特徴点が直線上に分布する場合は特徴点と用紙の頂点を用いた位置合わせを行い、位置合わせした画像を用いて比較検査を行う。これにより、特徴点が直線上に分布する場合の位置合わせ精度を向上させることができる。 When feature points are arranged in a straight line, even if there are three or more feature points, the amount of information is the same as when there are two. For this reason, using only feature points as the alignment reference point group can result in a decrease in alignment accuracy. Therefore, in this embodiment, the translation components and rotation/scale components of alignment are obtained from different alignment reference point groups depending on the distribution of feature points. In this embodiment, even when there are three or more feature points, if the feature points are distributed in a straight line, alignment is performed using the feature points and the vertices of the paper, and a comparison inspection is performed using the aligned image. This makes it possible to improve alignment accuracy when feature points are distributed in a straight line.

(画像処理装置の構成)
本実施例の画像処理装置100の構成を図7に示す。画像処理装置100は、参照画像取得部701、特徴点取得部702、特徴点分布判定部703、対象画像取得部704、位置合わせ部705、検査部706を有する。参照画像取得部701、特徴点取得部702、対象画像取得部704、位置合わせ部705、検査部706は実施例1と同じなので省略する。
(Configuration of image processing device)
7 shows the configuration of the image processing device 100 of this embodiment. The image processing device 100 has a reference image acquisition unit 701, a feature point acquisition unit 702, a feature point distribution determination unit 703, a target image acquisition unit 704, a positioning unit 705, and an inspection unit 706. The reference image acquisition unit 701, the feature point acquisition unit 702, the target image acquisition unit 704, the positioning unit 705, and the inspection unit 706 are the same as those in the first embodiment, and therefore will not be described here.

特徴点分布判定部703は、特徴点取得部702で取得した特徴点の分布を判定する。本実施例では、特徴点が直線上に分布しているかを判定する。 The feature point distribution determination unit 703 determines the distribution of the feature points acquired by the feature point acquisition unit 702. In this embodiment, it determines whether the feature points are distributed on a straight line.

(画像処理装置が実行する処理)
図8を用いて画像処理装置100が実行する実施例2の処理の流れを説明する。図8は装置全体の処理の流れを示すフローチャートである。以下、実施例1との差分に限定して説明し、同じ部分については説明を省略する。
(Processing performed by the image processing device)
The flow of processing in the second embodiment executed by the image processing device 100 will be described with reference to Fig. 8. Fig. 8 is a flowchart showing the flow of processing in the entire device. The following description will be limited to differences from the first embodiment, and descriptions of the same parts will be omitted.

S1130において、特徴点分布判定部703は、特徴点取得部702で取得した特徴点が直線上に分布しているかを判定する。図9は直線分布判定処理の概要を示している。参照画像901は三つの特徴点902を有している。まず、最小二乗法により特徴点902の回帰直線903を算出する。直線の式は以下のように求められる。
y=sx+t
In S1130, the feature point distribution determination unit 703 determines whether the feature points acquired by the feature point acquisition unit 702 are distributed on a straight line. Fig. 9 shows an overview of the straight line distribution determination process. A reference image 901 has three feature points 902. First, a regression line 903 of the feature points 902 is calculated by the least squares method. The equation of the line is found as follows:
y = sx + t

t=μ-sμ
ここで、μ,μは特徴点のx,yの平均値を、σxは特徴点のxの分散を、Covは特徴点の共分散を表す。
t = μ y - sμ x
Here, μ x and μ y represent the mean values of x and y of the feature points, σ x represents the variance of x of the feature points, and Cov represents the covariance of the feature points.

次に、以下のように、直線と各特徴点との誤差の最大値Mを求める。本実施例では、y方向の誤差を求める。ただし、各特徴点の座標を(x,y)と表記する。図9の例では誤差の最大値Mは904となる。
M=max(|y-sx-t|) (式6)
そして、求めたMを所定の閾値以下だった場合、特徴点が直線上に分布していると判定する。
Next, the maximum error M between the line and each feature point is calculated as follows. In this embodiment, the error in the y direction is calculated. Note that the coordinates of each feature point are expressed as (x i , y i ). In the example of FIG. 9, the maximum error M is 904.
M=max(|y i -sx i -t|) (Formula 6)
If the calculated M is equal to or smaller than a predetermined threshold, it is determined that the feature points are distributed on a straight line.

S1150において、位置合わせ部705は、S1120で取得した特徴点とS1130での判定結果に基づき参照画像と対象画像の位置合わせを行う。図10に実施例2の位置合わせ処理のフローチャートを示す。 In S1150, the alignment unit 705 aligns the reference image and the target image based on the feature points acquired in S1120 and the determination result in S1130. Figure 10 shows a flowchart of the alignment process in Example 2.

S1153において、位置合わせ部705は、S1130での判定結果に基づき処理を変更する。特徴点が直線上に分布していると判定された場合は、S1155に、そうでない場合はS1154に移行する。 In S1153, the alignment unit 705 changes the processing based on the determination result in S1130. If it is determined that the feature points are distributed on a straight line, the process proceeds to S1155; otherwise, the process proceeds to S1154.

このように、本実施例では特徴点が直線上に分布する場合に、特徴点基づき平行移動成分を、用紙の頂点に基づき回転・スケール成分を算出する。よって、スケール成分をより正確に求めることができる。 In this way, in this embodiment, when feature points are distributed on a straight line, the translation component is calculated based on the feature points, and the rotation and scale components are calculated based on the vertices of the paper. This allows for more accurate calculation of the scale components.

上記の処理により、特徴点が直線上に分布している場合でも高精度な位置合わせを行うことができる。それにより、比較検査を行い、低コントラスト欠陥を検出したり、検出された欠陥の大きさや位置を求めたりすることができる。 The above process enables highly accurate alignment even when feature points are distributed along a straight line. This makes it possible to perform comparative inspections, detect low-contrast defects, and determine the size and location of detected defects.

〔変形例1〕
実施例1,2では、特徴点の数もしくは特徴点の分布が所定の条件を満たす場合に、平行移動成分を特徴点から、回転・スケール成分を用紙の頂点から求めたが、位置合わせ基準点群と変換成分の組み合わせはこれに限らなくともよい。例えば、平行移動・回転成分を特徴点から、スケールを用紙の頂点から求めても良い。
[Variation 1]
In the first and second embodiments, when the number of feature points or the distribution of feature points satisfies a predetermined condition, the translation components are calculated from the feature points and the rotation and scale components are calculated from the vertices of the paper. However, the combination of the alignment reference point group and the transformation components is not limited to this. For example, the translation and rotation components may be calculated from the feature points and the scale may be calculated from the vertices of the paper.

実施例1に対応する本変形例の位置合わせ処理のフローチャートを図11に示す。以下、実施例1との差分に限定して説明し、同じ部分については説明を省略する。 A flowchart of the alignment process of this modified example, which corresponds to Example 1, is shown in Figure 11. The following explanation will be limited to the differences from Example 1, and explanation of the same parts will be omitted.

S1246において、位置合わせ部204は、対象画像から参照画像へのスケール変換成分を算出する。まず、各画像の頂点の座標から用紙の各辺の長さを算出する。次に、参照画像と対象画像の辺の長さの比からスケール成分を算出する。 In S1246, the alignment unit 204 calculates the scale transformation components from the target image to the reference image. First, the length of each side of the paper is calculated from the coordinates of the vertices of each image. Next, the scale components are calculated from the ratio of the side lengths of the reference image and the target image.

S1247において、位置合わせ部204は、S1246で求めたスケール成分を用いて対象画像上の特徴点を変換する。スケール成分による、変換前の特徴点Bから変換後の特徴点B’への変換は、以下の式で行う。ただし、sをx方向のスケール成分、sをy方向のスケール成分とする。
B’=BX’ ・・・(式7)
In S1247, the alignment unit 204 transforms the feature point on the target image using the scale component calculated in S1246. The transformation from feature point B before transformation to feature point B' after transformation using the scale component is performed using the following equation, where s x is the scale component in the x direction, and s y is the scale component in the y direction.
B'=BX'...(Formula 7)

S1248において、S1247で変換した特徴点B’から参照画像の特徴点Aへの変換X’’を算出する。
A=B’X’’ ・・・(式8)
In S1248, a transformation X'' from the feature point B' transformed in S1247 to the feature point A of the reference image is calculated.
A=B'X''...(Formula 8)

そして、求めたX’’が平行移動・回転成分を表しているので、S1247で求めたスケール成分と組み合わせて、最終的な変換Xを算出する。 Then, since the calculated X'' represents the translation and rotation components, it is combined with the scale components calculated in S1247 to calculate the final transformation X.

〔変形例2〕
実施例1では、特徴点が一点又は二点の場合のみ平行移動成分を特徴点から、回転・スケール成分を用紙の頂点から求めたが、特徴点の個数による条件はこれに限らない。特徴点の個数が1~n点の場合は平行移動成分を特徴点から、回転・スケール成分を用紙の頂点から求めても構わない。あるいは、条件に寄らずに、平行移動成分を特徴点から、回転・スケール成分を用紙の頂点から求めてもよい。
[Variation 2]
In the first embodiment, the translation components are calculated from the feature points and the rotation and scale components are calculated from the vertices of the paper only when there are one or two feature points, but the condition based on the number of feature points is not limited to this. When the number of feature points is 1 to n, the translation components may be calculated from the feature points and the rotation and scale components may be calculated from the vertices of the paper. Alternatively, the translation components may be calculated from the feature points and the rotation and scale components may be calculated from the vertices of the paper regardless of the conditions.

〔変形例3〕
実施例1,2では、変換Xをアフィン変換として算出したが、変換はこれに限らなくともよい。例えば、射影変換を変換Xとして算出してもよい。
[Variation 3]
In the first and second embodiments, the transformation X is calculated as an affine transformation, but the transformation is not limited to this. For example, the transformation X may be calculated as a projective transformation.

〔変形例4〕
実施例1,2では、特徴点を参照画像から検出して取得したが、ユーザが予め設定したものを使用しても良い。例えば、参照画像を基に、UIパネル108を通じてユーザが特徴点を設定し、それを使用しても良い。
[Modification 4]
In the first and second embodiments, feature points are detected and acquired from the reference image, but feature points previously set by the user may also be used. For example, feature points may be set by the user via the UI panel 108 based on the reference image, and the set feature points may then be used.

〔変形例5〕
実施例1,2で特徴点に基づき求められた変換成分について、所定の条件を満たす場合は特徴点基づき平行移動成分を、用紙の頂点に基づき回転・スケール成分を算出するようにしても良い。この変形例の位置合わせ処理のフローチャートを図12に示す。以下、実施例1との差分に限定して説明し、同じ部分については説明を省略する。
[Modification 5]
For the transformation components calculated based on the feature points in the first and second embodiments, if certain conditions are met, translation components may be calculated based on the feature points, and rotation and scale components may be calculated based on the vertices of the paper. A flowchart of the alignment process for this modification is shown in Figure 12. The following description will be limited to the differences from the first embodiment, and a description of the same parts will be omitted.

S1354において、特徴点に基づき求められた変換成分に対して、所定の条件を満たすかどうかの判定を行う。本変形例では、変換の縦横のスケール成分がそれぞれ所定の値以上かどうかの判定を行う。判定の結果条件を満たしていた場合はS1355に、満たしていなかった場合はS1359に移行する。尚、所定の条件はこれに限らない。例えば、回転成分が所定の角度以上かどうかを判定しても良い。 In S1354, a determination is made as to whether the transformation components found based on the feature points satisfy predetermined conditions. In this modified example, a determination is made as to whether the horizontal and vertical scale components of the transformation are equal to or greater than predetermined values. If the determination results in the condition being satisfied, the process proceeds to S1355; if not, the process proceeds to S1359. Note that the predetermined conditions are not limited to this. For example, it may be determined whether the rotation component is equal to or greater than a predetermined angle.

〔変形例6〕
検査部205は比較検査に加えて、絵柄の印刷位置ずれの検査(絵柄位置ずれ検査)を行っても良い。絵柄位置ずれ検査を行う場合の検査処理のフローチャートを図13に示す。以下、実施例1との差分に限定して説明し、同じ部分については説明を省略する。
[Variation 6]
In addition to the comparison inspection, the inspection unit 205 may also inspect for print position misalignment of a pattern (pattern misalignment inspection). A flowchart of the inspection process when inspecting for pattern misalignment is shown in Figure 13. The following explanation will be limited to the differences from the first embodiment, and explanation of the same parts will be omitted.

S1051において、特徴点が1個以上ある場合はS1052に、0個の場合はS1054に移行する。 In S1051, if there are one or more feature points, proceed to S1052; if there are none, proceed to S1054.

S1052において、検査部205は、絵柄の印刷位置ずれ検査を行う。まず、位置合わせ処理時に用紙の頂点に基づく変換を算出していない場合は、用紙の頂点を検出し、用紙の頂点に基づく変換を算出する。次に、用紙の頂点に基づき求められた平行移動成分と特徴点に基づき求められた平行移動成分との差分を算出する。算出した差分が所定の閾値より大きい場合、印刷位置ずれ異常と判断する。 In S1052, the inspection unit 205 inspects the print position misalignment of the image. First, if a transformation based on the vertices of the paper was not calculated during the alignment process, the vertices of the paper are detected and a transformation based on the vertices of the paper is calculated. Next, the difference between the translation component calculated based on the vertices of the paper and the translation component calculated based on the feature points is calculated. If the calculated difference is greater than a predetermined threshold, it is determined that there is an abnormal print position misalignment.

尚、印刷位置ずれ検査処理はこの方法に限らない。例えば、対象画像の頂点の座標を頂点に基づく変換と特徴点に基づく変換とでそれぞれ変換し、それらの差分が所定の閾値よりも大きい場合を印刷位置ずれ異常としてもよい。 Note that the print position misalignment inspection process is not limited to this method. For example, the coordinates of the vertices of the target image can be transformed using a vertex-based transformation and a feature point-based transformation, and if the difference between these is greater than a predetermined threshold, it can be determined that there is a print position misalignment abnormality.

S1053において、S1052で印刷位置ずれ異常と判断されなかった場合は、S1054に移行する。印刷位置ずれ異常と判断された場合は、検査処理を終了する。 If S1052 does not determine that there is a print position misalignment error, S1053 proceeds to S1054. If there is a print position misalignment error, the inspection process ends.

実施例1と本変形例を組み合わせることにより、特徴点が少ない場合でも高精度な位置合わせを行い、印刷位置ずれ異常を検出することができる。 By combining Example 1 with this modified example, highly accurate alignment can be performed and printing misalignment abnormalities can be detected even when there are few feature points.

本発明は上記直接説明したものに限らず、各実施例で説明した要素や概念を組み合わせて実施してもよい。 The present invention is not limited to what has been directly described above, and may be implemented by combining the elements and concepts described in each example.

本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施例の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。 The present invention can also be realized by performing the following process. That is, software (programs) that realize the functions of the above-described embodiments are supplied to a system or device via a network or various storage media, and the computer (or CPU, MPU, etc.) of that system or device reads and executes the programs.

201 参照画像取得部
202 特徴点取得部
203 対象画像取得部
204 位置合わせ部
205 検査部
201 Reference image acquisition unit 202 Feature point acquisition unit 203 Target image acquisition unit 204 Alignment unit 205 Inspection unit

Claims (9)

検査の基準である参照画像と印刷物を読み取って得られる対象画像とを取得する画像取得手段と、
前記参照画像から特徴点を検出する第1検出手段と、
前記対象画像において、前記対象画像の背景領域と前記印刷物に用いられた用紙用紙領域との境界に対応する画素を追跡することにより前記用紙の頂点を検出する第2検出手段と、
前記用紙の頂点と、前記特徴点とに基づき、前記参照画像と前記対象画像との間の位置合わせを行うための変換を算出することにより、位置合わせを行う位置合わせ手段と、
前記位置合わせされた参照画像および対象画像に基づき、前記対象画像の検査を行う検査手段と
を有し、
前記位置合わせ手段は、前記特徴点に基づき前記変換の平行移動成分を算出し、前記頂点に基づき前記変換の回転成分とスケール成分との少なくとも一つを算出し、
前記第2検出手段は、前記背景領域の画素値が第1の値、前記用紙領域の画素値が前記第1の値と異なる第2の値となるように前記対象画像に対して二値化処理を行い、前記第1の値に対応する領域と前記第2の値に対応する領域との境界となる画素を追跡して軌跡を抽出し、前記軌跡に対応する前記用紙の輪郭において所定の角度以上を成している部分を前記用紙の頂点として検出する
ことを特徴とする画像処理装置。
an image acquisition means for acquiring a reference image that is a standard for inspection and a target image obtained by reading a printed matter;
a first detection means for detecting feature points from the reference image;
a second detection means for detecting the vertices of the paper by tracking pixels in the target image that correspond to the boundary between a background area of the target image and a paper area of the paper used for the printed matter;
a registration means for performing registration between the reference image and the target image by calculating a transformation for performing registration between the reference image and the target image based on the vertices of the paper and the feature points;
an inspection means for inspecting the target image based on the aligned reference image and target image,
the position adjustment means calculates a translation component of the transformation based on the feature points, and calculates at least one of a rotation component and a scale component of the transformation based on the vertices ;
The second detection means performs a binarization process on the target image so that pixel values of the background region become a first value and pixel values of the paper region become a second value different from the first value, tracks pixels that are the boundary between the region corresponding to the first value and the region corresponding to the second value, extracts a locus, and detects parts of the outline of the paper that correspond to the locus and form an angle equal to or greater than a predetermined angle as vertices of the paper.
1. An image processing device comprising:
前記位置合わせ手段は、前記特徴点に基づき前記変換の平行移動成分を算出し、前記頂点に基づき前記変換の回転成分および前記スケール成分を算出する
ことを特徴とする請求項1に記載の画像処理装置。
The image processing device according to claim 1 , wherein the positioning means calculates a translation component of the transformation based on the feature points, and calculates a rotation component of the transformation and the scale component based on the vertices.
前記位置合わせ手段は、前記特徴点に基づき前記変換の平行移動成分および回転成分を算出し、前記頂点に基づき前記変換のスケール成分を算出する
ことを特徴とする請求項1に記載の画像処理装置。
The image processing device according to claim 1 , wherein the positioning means calculates translation components and rotation components of the transformation based on the feature points, and calculates scale components of the transformation based on the vertices.
前記位置合わせ手段は、前記特徴点の数が所定の値以下の場合に、前記特徴点に基づき前記変換の平行移動成分を算出し、前記頂点に基づき前記変換の回転成分とスケール成分との少なくとも一つを算出する
ことを特徴とする請求項2又は請求項3に記載の画像処理装置。
4. The image processing device according to claim 2, wherein the alignment means calculates a translation component of the transformation based on the feature points when the number of the feature points is equal to or less than a predetermined value, and calculates at least one of a rotation component and a scale component of the transformation based on the vertices.
前記特徴点の分布を判定する判定手段を更に有し、
前記位置合わせ手段は、前記判定手段が、前記特徴点が直線上に分布すると判定した場合、前記頂点に基づき前記変換の回転成分とスケール成分との少なくとも一つを算出する
ことを特徴とする請求項2又は請求項3に記載の画像処理装置。
The method further includes a determination means for determining a distribution of the feature points,
4. The image processing device according to claim 2, wherein the alignment means calculates at least one of a rotation component and a scale component of the transformation based on the vertices when the determination means determines that the feature points are distributed on a straight line.
前記位置合わせ手段は、前記特徴点のみから算出した変換が所定の条件を満たす場合に、前記特徴点に基づき前記変換の平行移動成分を算出し、前記頂点に基づき前記変換の回転成分とスケール成分との少なくとも一つを算出する
ことを特徴とする請求項1乃至請求項5のいずれか一項に記載の画像処理装置。
6. The image processing device according to claim 1, wherein, when a transformation calculated from only the feature points satisfies a predetermined condition, the alignment means calculates a translation component of the transformation based on the feature points, and calculates at least one of a rotation component and a scale component of the transformation based on the vertices.
前記参照画像と前記対象画像との絵柄の位置ずれ検査を行う絵柄位置ずれ検査手段を更に有し、
前記絵柄位置ずれ検査手段は、前記第1検出手段が一つ以上の特徴点を検出した場合に絵柄の位置ずれ検査を行う
ことを特徴とする請求項1乃至請求項6のいずれか一項に記載の画像処理装置。
Further, a pattern position deviation inspection means is provided for inspecting a pattern position deviation between the reference image and the target image,
7. The image processing apparatus according to claim 1, wherein the pattern misalignment inspection means inspects the pattern misalignment when the first detection means detects one or more feature points.
コンピュータを、請求項1乃至請求項7のいずれか一項に記載された画像処理装置の各手段として機能させるためのプログラム。 A program for causing a computer to function as each of the means of the image processing device described in any one of claims 1 to 7. 検査の基準である参照画像と印刷物を読み取って得られる対象画像とを取得する画像取得工程と、
前記参照画像から特徴点を検出する第1検出工程と、
前記対象画像において、前記対象画像の背景領域と前記印刷物に用いられた用紙用紙領域との境界に対応する画素を追跡することにより前記用紙の頂点を検出する第2検出工程と、
前記用紙の頂点と、前記特徴点とに基づき、前記参照画像と前記対象画像との間の位置合わせを行うための変換を算出することにより、位置合わせを行う位置合わせ工程と、
前記位置合わせされた参照画像および対象画像に基づき、前記対象画像の検査を行う検査工程と
を有し、
前記位置合わせ工程は、前記特徴点に基づき前記変換の平行移動成分を算出し、前記頂点に基づき前記変換の回転成分とスケール成分との少なくとも一つを算出し、
前記第2検出工程では、前記背景領域の画素値が第1の値、前記用紙領域の画素値が前記第1の値と異なる第2の値となるように前記対象画像に対して二値化処理を行い、前記第1の値に対応する領域と前記第2の値に対応する領域との境界となる画素を追跡して軌跡を抽出し、前記軌跡に対応する前記用紙の輪郭において所定の角度以上を成している部分を前記用紙の頂点として検出する
ことを特徴とする画像処理方法。
an image acquisition step of acquiring a reference image that is a standard for inspection and an object image obtained by reading a printed matter;
a first detection step of detecting feature points from the reference image;
a second detection step of detecting vertices of the paper by tracking pixels in the target image that correspond to a boundary between a background region of the target image and a paper region of the paper used for the printed matter;
a registration step of calculating a transformation for performing registration between the reference image and the target image based on the vertices of the paper and the feature points;
an inspection step of inspecting the target image based on the aligned reference image and target image,
In the alignment step, a translation component of the transformation is calculated based on the feature points, and at least one of a rotation component and a scale component of the transformation is calculated based on the vertices;
In the second detection step, a binarization process is performed on the target image so that pixel values of the background region become a first value and pixel values of the paper region become a second value different from the first value, pixels that form a boundary between the region corresponding to the first value and the region corresponding to the second value are tracked to extract a locus, and portions of the outline of the paper that correspond to the locus and form an angle equal to or greater than a predetermined angle are detected as vertices of the paper.
An image processing method comprising:
JP2020202920A 2020-12-07 2020-12-07 Image processing device and image processing method Active JP7731666B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020202920A JP7731666B2 (en) 2020-12-07 2020-12-07 Image processing device and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020202920A JP7731666B2 (en) 2020-12-07 2020-12-07 Image processing device and image processing method

Publications (3)

Publication Number Publication Date
JP2022090492A JP2022090492A (en) 2022-06-17
JP2022090492A5 JP2022090492A5 (en) 2023-11-29
JP7731666B2 true JP7731666B2 (en) 2025-09-01

Family

ID=81992315

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020202920A Active JP7731666B2 (en) 2020-12-07 2020-12-07 Image processing device and image processing method

Country Status (1)

Country Link
JP (1) JP7731666B2 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001283231A (en) 2000-03-29 2001-10-12 Toshiba Corp Document image filing apparatus and document image updating method
JP2002063566A (en) 2000-08-17 2002-02-28 Rengo Co Ltd Print inspecting device for paper sheet
JP2003255626A (en) 2002-02-28 2003-09-10 Konica Corp Image forming apparatus
JP2019026677A (en) 2017-07-26 2019-02-21 東ソー株式会社 Resin composition and optical compensation film using the same
JP2019087923A (en) 2017-11-08 2019-06-06 キヤノン株式会社 Imaging device, imaging method and program
JP2019205133A (en) 2018-05-25 2019-11-28 キヤノン株式会社 Image processing apparatus, image processing method, image projection system, and program
JP2020118483A (en) 2019-01-21 2020-08-06 コニカミノルタ株式会社 Image inspection device, image forming system, image inspection method, and program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001283231A (en) 2000-03-29 2001-10-12 Toshiba Corp Document image filing apparatus and document image updating method
JP2002063566A (en) 2000-08-17 2002-02-28 Rengo Co Ltd Print inspecting device for paper sheet
JP2003255626A (en) 2002-02-28 2003-09-10 Konica Corp Image forming apparatus
JP2019026677A (en) 2017-07-26 2019-02-21 東ソー株式会社 Resin composition and optical compensation film using the same
JP2019087923A (en) 2017-11-08 2019-06-06 キヤノン株式会社 Imaging device, imaging method and program
JP2019205133A (en) 2018-05-25 2019-11-28 キヤノン株式会社 Image processing apparatus, image processing method, image projection system, and program
JP2020118483A (en) 2019-01-21 2020-08-06 コニカミノルタ株式会社 Image inspection device, image forming system, image inspection method, and program

Also Published As

Publication number Publication date
JP2022090492A (en) 2022-06-17

Similar Documents

Publication Publication Date Title
CN113311676B (en) Image processing device, image processing method, and computer readable medium
US9189845B2 (en) Apparatus, system, and method of inspecting image, and recording medium storing image inspection control program
US7136191B2 (en) Method for inspecting prints
JP7778872B2 (en) Image processing device, image processing method and program
JP7665326B2 (en) Image processing device, image processing method, and program
US9019526B2 (en) Image examination apparatus, image examination system, and image examination method
US11354799B2 (en) Image processing for inspecting an inspection target image so that a difference in the difference image greater than a threshold value is reduced
CN111476753A (en) Image inspection device, image forming system, image inspection method, and computer-readable recording medium
JP2017166929A (en) Defect inspection apparatus, defect inspection method and defect inspection system for sheet-like object to be inspected
US11838454B2 (en) Inspection apparatus, control method thereof, and storage medium
JP7350637B2 (en) High-speed image distortion correction for image inspection
US12063331B2 (en) Image processing apparatus, image processing method, and recording medium
US20230386020A1 (en) Image processing apparatus, method of controlling the same, and storage medium
JP7731666B2 (en) Image processing device and image processing method
JP2005274183A (en) Image inspection device with inclination detection function
US12450727B2 (en) Image processing apparatus, image processing method, and medium that obtains a difference in color information at corresponding positions between a composite image and a print image
JP2022184098A5 (en)
JP7526225B2 (en) Image processing device, image processing method, and program
JP2022132991A (en) IMAGE PROCESSING DEVICE, CONTROL METHOD THEREOF, AND PROGRAM
JP2023170637A (en) Image processing device, image processing method, and program
JP7716183B2 (en) Image processing device, image processing method, and program
JP7585705B2 (en) Inspection device, image forming system, inspection method and program
JP2024138962A (en) Image processing device, image processing method, and program
JP7833884B2 (en) Image processing device, image processing method
JP2022162422A (en) Image processing device, image processing method and program

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20210108

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20231117

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20231117

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20231213

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20240806

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240820

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20241011

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20250121

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20250227

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20250603

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20250630

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20250820

R150 Certificate of patent or registration of utility model

Ref document number: 7731666

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150