JP2022132991A - Image processing device, control method thereof, and program - Google Patents

Image processing device, control method thereof, and program Download PDF

Info

Publication number
JP2022132991A
JP2022132991A JP2021031770A JP2021031770A JP2022132991A JP 2022132991 A JP2022132991 A JP 2022132991A JP 2021031770 A JP2021031770 A JP 2021031770A JP 2021031770 A JP2021031770 A JP 2021031770A JP 2022132991 A JP2022132991 A JP 2022132991A
Authority
JP
Japan
Prior art keywords
alignment
image
inspection
image processing
linear
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
JP2021031770A
Other languages
Japanese (ja)
Inventor
直諒 柏木
Naoaki Kashiwagi
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 JP2021031770A priority Critical patent/JP2022132991A/en
Publication of JP2022132991A publication Critical patent/JP2022132991A/en
Pending legal-status Critical Current

Links

Images

Abstract

To overcome a disadvantage in which printed result inspection processing takes a very long time and results in a decrease in productivity of a printing apparatus when alignment based on nonlinear transformation is used in the inspection of printed results although the alignment accuracy is high.SOLUTION: Alignment parameters used in alignment based on nonlinear transformation that has already been performed are reused when the alignment based on the nonlinear transformation is performed to inspect print defects of printed sheets continuously output from a printing apparatus.SELECTED DRAWING: Figure 6

Description

本発明は、印刷結果の検査技術に関する。 The present invention relates to a technology for inspecting print results.

印刷装置にて記録媒体上に画像を形成する際、例えばインクやトナー等の色材が意図しない箇所に付着して汚れが発生したり、画像を形成すべき箇所に十分な色材が付着せず企図した色が再現できない色抜けが起こったりすることがある。こうした汚れや色抜けといった印刷欠陥は、印刷物の品質を低下させる。そこで、いわゆる商業印刷などの用途では、印刷装置から出力された結果物に印刷欠陥がないかを納品前に検査することが必要となる。そして、印刷欠陥の有無を検査員が目視にて検査する目視検査は、多くの時間とコストを必要とするため、近年、目視に頼らずに自動で検査を行う検査システムが提案されている。 When forming an image on a recording medium with a printing apparatus, for example, coloring materials such as ink or toner may adhere to unintended locations, resulting in stains, or insufficient coloring materials may adhere to locations where an image should be formed. In some cases, color omission may occur in which the intended color cannot be reproduced. Print defects such as stains and missing colors reduce the quality of printed matter. Therefore, in applications such as so-called commercial printing, it is necessary to inspect whether there are any printing defects in the resulting product output from the printing apparatus before delivery. Visual inspection, in which an inspector visually inspects for printing defects, requires a lot of time and cost, so in recent years, an inspection system that automatically performs inspection without relying on visual inspection has been proposed.

自動で検査を行う手法として、印刷装置から出力された印刷物をスキャナで読み取り、得られた読取画像を基準画像(正解画像)と比較して印刷欠陥を検出する手法がある。この手法の場合、画像同士を比較する際の位置合わせが検査精度に大きく影響するため、高い精度で位置合わせを行うことが重要となる。一般的な位置合わせ手法としては、特徴点を抽出した後に射影変換等の線形変換を行って画像同士の位置を合わせる手法が知られている。特許文献1には、読取画像の搬送方向の先端及び後端において特徴点を抽出してアフィン変換により位置合わせすることで、検査の精度を維持しつつ処理の高速化を図った技術が開示されている。しかし、特許文献1にあるような画像全体に対して線形変換を行う技術では、搬送ムラや紙の伸びによる局所的な位置ずれについては対処することができないという原理的な限界がある。この点、より高精度な位置合わせ手法として、等間隔に配置した制御点を用いた非線形変換によって局所的に画像を合わせこむ手法(例えばFFD(Free-Form Deformations)など)が知られている。 As an automatic inspection method, there is a method of reading a printed matter output from a printing apparatus with a scanner and comparing the obtained read image with a reference image (correct image) to detect printing defects. In the case of this method, alignment at the time of comparing images greatly affects inspection accuracy, so it is important to perform alignment with high accuracy. As a general alignment method, a method of extracting feature points and then performing linear transformation such as projective transformation to align the positions of images is known. Japanese Patent Application Laid-Open No. 2002-200001 discloses a technique for speeding up processing while maintaining inspection accuracy by extracting feature points at the leading edge and trailing edge of a read image in the transport direction and aligning them by affine transformation. ing. However, the technique of linearly transforming the entire image, such as that disclosed in Japanese Patent Application Laid-Open No. 2002-200310, has a theoretical limit in that it cannot deal with local positional deviations due to unevenness in transportation and stretching of paper. In this regard, as a more accurate alignment method, a method of locally matching images by nonlinear transformation using control points arranged at regular intervals (for example, FFD (Free-Form Deformations)) is known.

特開2020-118497号公報JP 2020-118497 A

上述した非線形変換による位置合わせ手法であれば、局所的な位置ずれにも対処することが可能となる。しかしながら、この非線形変換による位置合わせ手法は、制御点の更新や位置合わせ後の画素位置の算出といった処理に非常に多くの時間を要する手法である。そのため、検査に多くの時間が掛かり、結果として印刷装置の生産性が低下するという課題がある。 With the above-described alignment method using nonlinear transformation, it is possible to deal with local misalignment. However, this alignment method using nonlinear transformation requires a very long time for processing such as updating control points and calculating pixel positions after alignment. Therefore, there is a problem that the inspection takes a long time, and as a result, the productivity of the printing apparatus is lowered.

本開示に係る画像処理装置は、印刷装置から出力される印刷済みシートを検査する画像処理装置であって、前記印刷済みシートを読み取って読取画像を取得する取得手段と、前記取得手段で取得された読取画像を、前記検査において基準となる基準画像に合わせこむ位置合わせを行う位置合わせ手段と、前記位置合わせ後の読取画像と前記基準画像との差分に基づいて、印刷欠陥の有無を検出する検査手段と、を備え、前記位置合わせ手段は、連続して出力される複数の印刷済みシートそれぞれの前記読取画像に対し非線形変換を行なって前記基準画像に合わせこむ非線形位置合わせを行う場合、既に行った非線形位置合わせで使用したパラメータを再利用する、ことを特徴とする。 An image processing apparatus according to the present disclosure is an image processing apparatus that inspects a printed sheet output from a printing apparatus, and includes an acquisition unit that acquires a read image by reading the printed sheet, and an image that is acquired by the acquisition unit. positioning means for aligning the read image with a reference image serving as a reference in the inspection; and detecting the presence or absence of print defects based on the difference between the read image after the positioning and the reference image. and an inspection means, wherein the alignment means performs nonlinear alignment by performing nonlinear transformation on the read images of each of a plurality of continuously output printed sheets to align them with the reference image. It is characterized by reusing the parameters used in the performed nonlinear alignment.

本開示の技術によれば、非線形変換による位置合わせ手法の下で高速に処理することができる。これにより、印刷装置の生産性を落とすことなく高精度での検査が可能となる。 According to the technique of the present disclosure, high-speed processing can be performed under a registration technique based on nonlinear transformation. As a result, high-precision inspection can be performed without reducing the productivity of the printing apparatus.

印刷システム全体の構成例を示す図。FIG. 2 is a diagram showing a configuration example of an entire printing system; 画像処理装置の機能構成を示すブロック図。2 is a block diagram showing the functional configuration of an image processing apparatus; FIG. 画像処理装置で行われる検査処理の大まかな流れを示すフローチャート。4 is a flowchart showing a rough flow of inspection processing performed by the image processing apparatus; 欠陥検出処理の詳細を示すフローチャート。4 is a flowchart showing details of defect detection processing; (a)及び(b)は、強調処理用フィルタの形状の一例を示す図。4A and 4B are diagrams showing an example of the shape of an enhancement filter; FIG. 実施形態1に係る、位置合わせ処理の詳細を示すフローチャート。6 is a flowchart showing details of alignment processing according to the first embodiment; (a)~(c)は、位置合わせ処理を説明する図。4A to 4C are diagrams for explaining alignment processing; FIG. (a)~(c)は、位置合わせ処理を説明する図。4A to 4C are diagrams for explaining alignment processing; FIG. 位置合わせ処理を説明する図。4A and 4B are views for explaining alignment processing; FIG. 位置合わせ時の動作モードを選択するためのUI画面の一例を示す図。FIG. 6 is a diagram showing an example of a UI screen for selecting an operation mode during alignment; 検査結果を通知するUI画面の一例を示す図。The figure which shows an example of UI screen which notifies a test result. (a)及び(b)はシートの位置ずれを説明する図。4A and 4B are diagrams for explaining sheet misalignment; FIG. 実施形態2に係る、位置合わせ処理の詳細を示すフローチャート。9 is a flowchart showing details of alignment processing according to the second embodiment;

以下、添付図面を参照して実施形態を詳しく説明する。なお、以下の実施形態は特許請求の範囲に係る発明を限定するものではない。実施形態には複数の特徴が記載されているが、これらの複数の特徴の全てが発明に必須のものとは限らず、また、複数の特徴は任意に組み合わせられてもよい。さらに、添付図面においては、同一若しくは同様の構成に同一の参照番号を付し、重複した説明は省略する。 Hereinafter, embodiments will be described in detail with reference to the accompanying drawings. In addition, the following embodiments do not limit the invention according to the scope of claims. Although multiple features are described in the embodiments, not all of these multiple features are essential to the invention, and multiple features may be combined arbitrarily. Furthermore, in the accompanying drawings, the same or similar configurations are denoted by the same reference numerals, and redundant description is omitted.

[実施形態1]
通常、搬送ムラや紙の伸びによる局所的な位置ずれは、連続する印刷処理の合間においては殆ど変化しないことが経験則から分かっている。そこで、本実施形態では、非線形変換による位置合わせをしながら連続して印刷物を検査する際に、一つ前の印刷物に対する検査で用いた位置合わせパラメータを再利用することで位置合わせ処理に要する時間を短縮して、検査の高速化を図る態様を説明する。なお、本明細書において、線形変換による位置合わせを「線形位置合わせ」と呼び、非線形変換による位置合わせを「非線形位置合わせ」と呼ぶこととする。
[Embodiment 1]
It is empirically known that local misalignment caused by uneven transport or stretched paper usually does not change between successive printing processes. Therefore, in this embodiment, when inspecting printed materials continuously while performing alignment by nonlinear transformation, the time required for alignment processing is reduced by reusing the alignment parameters used in the inspection of the previous printed material. will be shortened to speed up the inspection. In this specification, alignment by linear transformation is called "linear alignment", and alignment by nonlinear transformation is called "nonlinear alignment".

<印刷システムの構成>
まず、図1を参照して、本実施形態に係る印刷システム全体の構成について説明する。図1に示す印刷システムは、画像処理装置100、印刷用サーバ180、及び印刷装置190を有する。印刷用サーバ180は、印刷処理の対象となる原稿の印刷ジョブを生成し、印刷装置190へ印刷ジョブを投入する機能を有する。印刷用サーバ180には不図示の複数の外部装置がネットワークを介して通信可能に接続され、これらの外部装置から印刷ジョブを生成する依頼や印刷データ等を受信するようにしてもよい。
<Configuration of printing system>
First, referring to FIG. 1, the configuration of the entire printing system according to the present embodiment will be described. The printing system shown in FIG. 1 has an image processing apparatus 100 , a printing server 180 , and a printing apparatus 190 . The print server 180 has a function of generating a print job of a document to be printed and inputting the print job to the printing device 190 . A plurality of external devices (not shown) may be communicatively connected to the print server 180 via a network, and requests for generating print jobs, print data, and the like may be received from these external devices.

印刷装置190は、印刷用サーバ180から投入された印刷ジョブに基づき、記録媒体(用紙)上に画像を形成する機能を有する。印刷装置190における印刷方式としては、オフセット印刷方式、電子写真方式、インクジェット方式といった公知の印刷方式を適用することができる。本実施形態では電子写真方式を採用した場合を例に説明を行うものとするがこれに限定されないことは言うまでもない。印刷装置190は給紙部191を有しており、ユーザは予め印刷用紙を給紙部191にセットしておく。印刷装置190は印刷ジョブが投入されると、給紙部191にセットされた用紙を搬送路192に沿って搬送しながらその表面又は両面に印刷ジョブで指定された画像を形成し、画像が形成された用紙(以下、「印刷済みシート」と呼ぶ。)を画像処理装置100へと搬送する。 The printing device 190 has a function of forming an image on a recording medium (paper) based on a print job input from the print server 180 . As a printing method in the printing device 190, a known printing method such as an offset printing method, an electrophotographic method, or an inkjet method can be applied. In this embodiment, the case where the electrophotographic method is adopted will be described as an example, but it goes without saying that the present invention is not limited to this. The printing apparatus 190 has a paper feeding section 191, and the user sets printing paper in the paper feeding section 191 in advance. When a print job is input, the printing apparatus 190 forms an image specified by the print job on the surface or both sides of the paper set in the paper feed unit 191 while conveying the paper along the conveying path 192 to form the image. The printed sheet (hereinafter referred to as a “printed sheet”) is conveyed to the image processing apparatus 100 .

画像処理装置100は、印刷装置190から搬送されてきた印刷済みシートに対し、印刷欠陥の有無を調べる検査する処理を行う。つまり、画像処理装置100は、印刷物の検査処理装置としての機能を有する。画像処理装置100は、内部にCPU101、RAM102、ROM103、主記憶装置104、及び画像読取装置105を備える。また、画像処理装置100は、印刷装置190とのインタフェース(I/F)106、汎用インタフェース(I/F)107、ユーザインタフェース(UI)パネル108、及びメインバス109を備える。さらに、画像処理装置100は、印刷装置190の搬送路192と接続された搬送路110、検査処理で合格した印刷済みシートの出力トレイ111、及び検査処理で不合格になって印刷済みシートの出力トレイ112を備える。なお、本実施形態では、検査処理の合格と不合格の2種類で出力トレイを分けているが、例えば検出された印刷欠陥の種類に応じてさらに細かく出力先のトレイを分けてもよい。 The image processing apparatus 100 performs an inspection process for checking the presence or absence of print defects on the printed sheet conveyed from the printing apparatus 190 . In other words, the image processing apparatus 100 functions as an inspection processing apparatus for printed matter. The image processing apparatus 100 includes a CPU 101, a RAM 102, a ROM 103, a main storage device 104, and an image reading device 105 inside. The image processing apparatus 100 also includes an interface (I/F) 106 with the printing apparatus 190 , a general-purpose interface (I/F) 107 , a user interface (UI) panel 108 , and a main bus 109 . Further, the image processing apparatus 100 includes a transport path 110 connected to the transport path 192 of the printing apparatus 190, an output tray 111 for printed sheets that have passed the inspection process, and an output tray 111 for printed sheets that have failed the inspection process. A tray 112 is provided. In the present embodiment, the output trays are divided into two types, i.e., pass and fail inspection processing.

<画像処理装置のハードウェア構成>
CPU101は、画像処理装置100の全体を制御するプロセッサである。RAM102は、CPU101の主メモリ、ワークエリア等として機能する。ROM103は、CPU101によって実行されるプログラム群を格納している。主記憶装置104は、CPU101によって実行されるアプリケーションや、画像処理に用いられるデータ等を記憶する。画像読取装置(スキャナ)105は、印刷装置190から搬送されてきた印刷済みシートの片面又は両面を、搬送路110上で読み取り、画像データとして取得する。具体的には、画像読取装置105は、搬送路110の近傍に設けられた1以上の読取センサ(不図示)を用いて、搬送されてくる印刷済みシートの片面又は両面を光学的に読み取る。当該読取センサは片面側のみに設けられてもよいし、表面側と裏面側の両側に設けられてもよい。片面側のみに設けられる場合には、一方の面を読み取った後に搬送路110において不図示の両面搬送路を用いて印刷済みシートの表裏を反転して再び読取センサに他方の面を読み取らせればよい。
<Hardware Configuration of Image Processing Apparatus>
A CPU 101 is a processor that controls the entire image processing apparatus 100 . The RAM 102 functions as a main memory, work area, etc. of the CPU 101 . The ROM 103 stores programs executed by the CPU 101 . The main storage device 104 stores applications executed by the CPU 101, data used for image processing, and the like. The image reading device (scanner) 105 reads one side or both sides of the printed sheet conveyed from the printing device 190 on the conveying path 110 and obtains image data. Specifically, the image reading device 105 uses one or more reading sensors (not shown) provided near the conveying path 110 to optically read one side or both sides of the conveyed printed sheet. The reading sensor may be provided only on one side, or may be provided on both the front side and the back side. In the case where it is provided only on one side, after reading one side, the printed sheet is turned upside down using a double-sided conveying path (not shown) in the conveying path 110, and the reading sensor reads the other side again. good.

印刷装置I/F106は、印刷装置190との間で印刷済みシートの搬送タイミングの同期を取ったり、互いの稼働状況を連絡し合ったりするためのインタフェースである。汎用I/F107は、USBやIEEE1394等のシリアルバスインタフェースであり、ユーザがログ等のデータを持ち出したり、何らかのデータを画像処理装置100に取り込んだりする。UIパネル108は、例えば液晶ディスプレイ(表示部)であり、画像処理装置100のユーザインタフェースとして機能し、現在の状況や設定を表示しユーザに伝える。また、タッチパネル式の液晶ディスプレイを用いて、表示したボタンがユーザによって操作されることによりユーザからの指示を受け付けることができる構成でもよい。 The printing device I/F 106 is an interface for synchronizing the timing of conveying printed sheets with the printing device 190 and communicating the operating status of each other. A general-purpose I/F 107 is a serial bus interface such as USB or IEEE 1394, through which a user brings out data such as a log or imports some data into the image processing apparatus 100 . The UI panel 108 is, for example, a liquid crystal display (display unit), functions as a user interface of the image processing apparatus 100, displays the current status and settings, and informs the user. Alternatively, a touch panel type liquid crystal display may be used, and a user may operate a displayed button to receive an instruction from the user.

メインバス109は、画像処理装置100の各部を接続しデータ等のやり取りを行うバスである。メインバス109を通じたCPU101からの指示によって、画像処理装置100の各部や印刷システムの内部各所を動作させることができる。例えば、搬送路110を印刷装置190の搬送路192と同期させて動かしたり、検査結果に応じて印刷済みシートの排紙先を出力トレイ111か出力トレイ112のどちらにするかを切り替えたりすることができる。また、画像処理装置。00は、CPU101の他に、画像処理に特化したGPUを備えてもよい。 A main bus 109 is a bus that connects each unit of the image processing apparatus 100 and exchanges data and the like. In accordance with instructions from the CPU 101 through the main bus 109, each part of the image processing apparatus 100 and various internal parts of the printing system can be operated. For example, moving the transport path 110 in synchronization with the transport path 192 of the printing apparatus 190, or switching between the output tray 111 and the output tray 112 as the discharge destination of the printed sheet according to the inspection result. can be done. Also, an image processing device. 00 may include a GPU specialized for image processing in addition to the CPU 101 .

本実施形態に係る画像処理装置100は、印刷装置190から搬送されてきた印刷済みシートを搬送路110上に設置された画像読取装置105に読み取らせ、得られた読取画像に対して、以下に説明する検査処理を行う。検査処理の結果、印刷済みシートから印刷欠陥が検出されなければ検査合格と判定して印刷済みシートを出力トレイ111に排出し、何らかの印刷欠陥が検出されれば検査不合格と判定して印刷済みシートを出力トレイ112に排出する。こうして、検査に合格し品質が保証されたものだけを納品用の成果物として出力トレイ111に集めることができる。 The image processing apparatus 100 according to the present embodiment causes the image reading apparatus 105 installed on the conveying path 110 to read the printed sheet conveyed from the printing apparatus 190, and the obtained read image is processed as follows. Perform the inspection process to be described. As a result of the inspection process, if no printing defect is detected from the printed sheet, it is determined that the inspection has passed and the printed sheet is discharged to the output tray 111. If any printing defect is detected, it is determined that the inspection has failed and the printed sheet has been printed. The sheet is discharged to output tray 112 . In this way, only the products that have passed the inspection and whose quality has been guaranteed can be collected in the output tray 111 as deliverables.

<検査処理の概要>
次に、画像処理装置100が実行する検査処理の概要について、図2のブロック図及び図3のフローチャートを参照して説明する。図2に示すように、画像処理装置100は、画像取得部201、検査項目設定部202、位置合わせパラメータ保存部203、位置合わせ処理部204、検査パラメータ決定部205、検査処理部206、検査結果出力部207の各処理部を有する。そして、例えばCPU101がROM103に格納される図3のフローチャートに対応するプログラムをRAM102に展開してこれを実行することで、上記各処理部の機能が実現される。なお、以下の説明において記号「S」はステップを意味する。
<Outline of inspection process>
Next, an overview of inspection processing executed by the image processing apparatus 100 will be described with reference to the block diagram of FIG. 2 and the flowchart of FIG. As shown in FIG. 2, the image processing apparatus 100 includes an image acquisition unit 201, an inspection item setting unit 202, an alignment parameter storage unit 203, an alignment processing unit 204, an inspection parameter determination unit 205, an inspection processing unit 206, an inspection result It has each processing unit of the output unit 207 . Then, for example, the CPU 101 expands a program corresponding to the flowchart of FIG. 3 stored in the ROM 103 into the RAM 102 and executes the program, thereby realizing the functions of the above processing units. In the following description, symbol "S" means step.

S301では、検査項目設定部202が、検査処理において実施する1又は複数の検査項目を設定する。また検査項目の設定と共に、検査パラメータ設定部205が、設定された1又は複数の検査項目に対応する検査パラメータを設定する。検査項目の設定に先立ってユーザは、UIパネル108に表示された検査項目の設定画面(不図示)を介して、所望の検査項目を選択する。検査項目には、点形状の欠陥、線形状(スジ)の欠陥、画像ムラや面形状の歪みなどが含まれ、これら印刷欠陥の種類に対応した選択肢の中から任意の検査項目をユーザは選択する。なお、ユーザ選択が行われない場合に、デフォルトで既定されている検査項目を設定するようにしてもよい。検査項目の設定に合わせて、検査パラメータ設定部205は、検査項目設定部202によって設定された検査項目に対応する検査パラメータを設定する。検査パラメータには、設定された検査項目(印刷欠陥の種類)に応じたフィルタと、当該印刷欠陥の有無を判別するための閾値などが含まれる。検査パラメータの設定については後述する。 In S301, the inspection item setting unit 202 sets one or more inspection items to be performed in inspection processing. Along with setting the inspection items, the inspection parameter setting unit 205 sets inspection parameters corresponding to one or more set inspection items. Prior to setting the inspection items, the user selects a desired inspection item via an inspection item setting screen (not shown) displayed on the UI panel 108 . Inspection items include point-shaped defects, line-shaped (streak) defects, image unevenness, surface shape distortion, etc. The user can select any inspection item from options corresponding to the types of these print defects. do. It should be noted that, if no user selection is made, default examination items may be set. The inspection parameter setting unit 205 sets inspection parameters corresponding to the inspection items set by the inspection item setting unit 202 in accordance with the setting of the inspection items. The inspection parameters include a filter according to the set inspection item (type of print defect), a threshold value for determining the presence or absence of the print defect, and the like. The setting of inspection parameters will be described later.

続いて、S302で、画像取得部201が、印刷済みシートに印刷欠陥があるか否かを判別するための基準となる画像(以下、「基準画像」と呼ぶ。なお「正解画像」或いは「参照画像」とも呼ばれる。)のデータをRAM102又は主記憶装置104から取得する。さらに、S303で、画像取得部201は、印刷装置190から搬送されてくる印刷済みシートを画像読取装置105に読み取らせ、検査処理の対象となる読取画像(以下、「検査対象画像」と表記。)を取得する。なお、検査対象画像については、画像読取装置105によって予め読み取られ、主記憶装置104に保持されている読取画像データを取得するような構成であってもよい。 Subsequently, in step S302, the image acquisition unit 201 acquires a reference image (hereinafter referred to as a "reference image") for determining whether or not the printed sheet has a print defect. (also called "image") is acquired from the RAM 102 or the main storage device 104 . Further, in S303, the image acquisition unit 201 causes the image reading device 105 to read the printed sheet conveyed from the printing device 190, and obtains a read image to be inspected (hereinafter referred to as an "inspection target image"). ). Note that the image to be inspected may be read in advance by the image reading device 105 and read image data held in the main storage device 104 may be acquired.

次に、S304で、検査項目設定部202が、S301で設定した検査項目のうち、最初に実行する検査項目(初期値)をセットする。この初期値は、設定されている各検査項目について特に優先順位が無い場合にはユーザが最初に選択した検査項目を初期値に選ぶなど、任意の順序で決定すればよい。そして、続くS305では、位置合わせパラメータ保存部203、位置合わせ処理部204及び検査処理部206が協働して、実行対象として注目する検査項目(以下、「注目検査項目」と表記)について欠陥検出処理を実行する。欠陥検出処理の詳細については後述する。 Next, in S304, the inspection item setting unit 202 sets an inspection item (initial value) to be executed first among the inspection items set in S301. This initial value may be determined in any order, such as selecting the inspection item first selected by the user as the initial value if there is no particular priority for each of the set inspection items. Then, in subsequent S305, the alignment parameter storage unit 203, the alignment processing unit 204, and the inspection processing unit 206 cooperate to perform defect detection on inspection items of interest as execution targets (hereinafter referred to as "notable inspection items"). Execute the process. Details of the defect detection process will be described later.

注目検査項目についての欠陥検出処理が完了後、S306で、検査処理部206は、S301で設定されたすべての検査項目について欠陥検出処理が完了したか否かを判定する。全ての検査項目について欠陥検出処理が完了していればS308に進み、未処理の検査項目が残っていればS307に進む。S307で、検査項目設定部202は、注目検査項目を更新する。すなわち、未処理の検査項目の中から次の注目検査項目を決定して、S305に戻り、同様の処理を繰り返す。 After completing the defect detection process for the inspection item of interest, in S306, the inspection processing unit 206 determines whether or not the defect detection process for all the inspection items set in S301 has been completed. If defect detection processing has been completed for all inspection items, the process proceeds to S308, and if there are unprocessed inspection items remaining, the process proceeds to S307. In S307, the inspection item setting unit 202 updates the inspection item of interest. That is, the next target inspection item is determined from the unprocessed inspection items, and the process returns to S305 to repeat the same processing.

S308で、検査結果出力部207は、S301で設定された全ての検査項目の検査結果をUIパネル108に表示する。検査結果の表示処理の詳細については後述する。 In S<b>308 , the inspection result output unit 207 displays the inspection results of all inspection items set in S<b>301 on the UI panel 108 . The details of the inspection result display processing will be described later.

以上が、画像処理装置100における検査処理の概要である。このような検査処理が、印刷装置190から搬送されてくる印刷済みシート毎に実行される。 The outline of the inspection process in the image processing apparatus 100 has been described above. Such inspection processing is performed for each printed sheet conveyed from the printing apparatus 190 .

<欠陥検出処理>
次に、図4のフローチャートを参照して、上述の欠陥検出処理(S305)について詳しく説明する。本実施形態では、予め印刷欠陥が無いことが確認された印刷処理済みシートを読み取って得られた基準画像との比較により、検査対象画像から印刷欠陥を検出する方法について述べる。
<Defect detection processing>
Next, the defect detection process (S305) described above will be described in detail with reference to the flowchart of FIG. In this embodiment, a method of detecting print defects from an inspection target image by comparing it with a reference image obtained by reading a print-processed sheet that has been confirmed to have no print defects in advance will be described.

まず、S401で、位置合わせ処理部204が、基準画像と検査対象画像とを比較しやすいように、検査対象画像を基準画像に対して合わせこむ位置合わせ処理を行う。位置合わせ処理の詳細については後述する。続いて、S402で、検査処理部206が、位置合わせ後の検査対象画像と基準画像との差分を示す画像(以下、「差分画像」と呼ぶ。)を生成する。この差分画像は、例えば双方の画像における対応する画素同士を比較し、画素値(例えばRGB値)の差分値を画素毎に取得することで得られる。 First, in S401, the alignment processing unit 204 performs alignment processing for aligning the inspection target image with the reference image so that the reference image and the inspection target image can be easily compared. Details of the alignment process will be described later. Subsequently, in S402, the inspection processing unit 206 generates an image (hereinafter referred to as a "difference image") indicating the difference between the image to be inspected after alignment and the reference image. This difference image is obtained, for example, by comparing corresponding pixels in both images and obtaining a difference value between pixel values (eg, RGB values) for each pixel.

S403で、検査処理部206は、S402で生成された差分画像に対し、特定の形状を強調するためのフィルタ処理を実行する。フィルタ処理においてどのようなフィルタを使用するかは、注目検査項目に応じて決まる。例えば、注目検査項目が点状欠陥の検出である場合には、図5(a)に示すような点状の欠陥を強調するためのフィルタを用い、注目検査項目が線状欠陥の検出である場合には、図5(b)に示すような線状の欠陥を強調するためのフィルタを用いる。 In S403, the inspection processing unit 206 executes filter processing for emphasizing a specific shape on the difference image generated in S402. What kind of filter is used in the filtering process is determined according to the inspection item of interest. For example, when the inspection item of interest is the detection of a point-like defect, a filter for emphasizing the point-like defect as shown in FIG. 5A is used to detect the line-like defect. In this case, a filter for emphasizing linear defects is used as shown in FIG. 5(b).

次に、S404で、検査処理部206は、フィルタ処理が施された差分画像に対し二値化処理を実行する。この二値化処理は、フィルタ処理後の差分画像における各画素の差分値が、閾値以上なら画素値を“1”にし、閾値以下なら画素値を“0”にする処理である。これにより各画素が“1”または“0”で表された二値画像に変換される。ここで例えば、フィルタ処理にて適用するフィルタサイズを小さくしたとする。この場合、より小さいサイズの点状欠陥が強調され、検出されやすくなる。そして、二値化処理時の閾値を小さくすれば、差分値が小さくても閾値を越えて“1”となり、欠陥画素として検出されやすくなる。すなわち、より小さなコントラストの欠陥画素まで検出することができることになる。前述のS301では、このようにフィルタサイズや二値化処理における閾値などが、検査パラメータとして設定されることになる。 Next, in S404, the inspection processing unit 206 executes binarization processing on the filtered difference image. This binarization process sets the pixel value to "1" if the difference value of each pixel in the difference image after filtering is equal to or greater than the threshold value, and sets the pixel value to "0" if the difference value is equal to or less than the threshold value. As a result, each pixel is converted into a binary image represented by "1" or "0". Here, for example, assume that the filter size applied in the filtering process is reduced. In this case, point-like defects of smaller size are emphasized and easily detected. If the threshold value in the binarization process is made small, even if the difference value is small, it exceeds the threshold value and becomes "1", and is easily detected as a defective pixel. That is, it is possible to detect even defective pixels with a smaller contrast. In the above-described S301, the filter size, the threshold in the binarization process, and the like are set as inspection parameters.

続いて、S405で、検査処理部206は、二値化処理によって得られた二値画像に基づき、差分値が閾値を越えていた欠陥画素(画素値が“1”の画素)が存在するか否かを判定する。欠陥画素が存在していればS406に進み、存在していなければ本処理を抜ける。 Subsequently, in S405, the inspection processing unit 206 determines whether there are defective pixels (pixels whose pixel value is “1”) whose difference value exceeds the threshold based on the binary image obtained by the binarization process. determine whether or not If a defective pixel exists, the process proceeds to S406, and if not, the process exits.

S406では、検査処理部206は、検出された欠陥画素の位置情報(座標情報)を注目検査項目と対応付けてRAM102に記憶し、本処理を抜ける。 In S406, the inspection processing unit 206 stores the position information (coordinate information) of the detected defective pixel in the RAM 102 in association with the inspection item of interest, and exits from this process.

以上が、検査処理の詳細である。このような検査処理が、S301にて設定された検査項目の数だけ繰り返されることになる。 The above is the details of the inspection process. Such inspection processing is repeated by the number of inspection items set in S301.

<位置合わせ処理>
次に、図6のフローチャートを参照して、上述の位置合わせ処理(S401)について詳しく説明する。以下では、図7(a)に示す検査対象画像Iを、図7(b)に示す基準画像Tに対して合わせ込むための位置合わせを行って、図7(c)に示す位置合わせ後画像I’を得る場合を例に説明を行うものとする。なお、以下の説明において、I(x,y)、T(x,y)、I’(x,y)は、それぞれ座標(x,y)のときの画素値を表す。
<Alignment processing>
Next, with reference to the flowchart of FIG. 6, the above-described alignment processing (S401) will be described in detail. Below, the image to be inspected I shown in FIG. 7A is aligned with the reference image T shown in FIG. 7B, and the image after alignment shown in FIG. The case of obtaining I' will be described as an example. In the following description, I(x, y), T(x, y), and I'(x, y) represent pixel values at coordinates (x, y).

S601で、位置合わせ処理部204は、位置合わせパラメータ保存部203に保存されている前回の位置合わせパラメータを取得する。ここで、前回の位置合わせパラメータとは、一つ前(すなわち、N枚目に対するN-1枚目)の検査処理で使用された、後述の式(3)の変換式及び制御点Pl、mの位置情報を意味する。図8(a)は、図7(a)に示す検査対象画像Iに対して制御点Pl、mが等間隔で格子状に配置された様子を示している。位置合わせ処理では、検査対象画像Iに配置された制御点Pl、mの位置を更新することで、検査対象画像Iが位置合わせ後画像I’へと非線形変換される。 In S<b>601 , the alignment processing unit 204 acquires the previous alignment parameters saved in the alignment parameter storage unit 203 . Here, the previous alignment parameters are the conversion formula (3) and the control point P l used in the previous inspection process (that is, the (N−1)th sheet with respect to the Nth sheet), means the location information of m . FIG. 8(a) shows a state in which control points P l and m are arranged in a grid pattern at regular intervals in the image I to be inspected shown in FIG. 7(a). In the registration process, by updating the positions of the control points P l,m arranged in the image I to be inspected, the image I to be inspected is non-linearly transformed into the post-alignment image I′.

S602で、位置合わせ処理部204は、S601にて前回の位置合わせパラメータが取得できたか否かを判定する。検査処理を開始した直後(最初の印刷済みシートに対する検査時)には、位置合わせパラメータ保存部203には前回の位置合わせパラメータが保存されていない。よって、前回の位置合わせパラメータを取得できるのは2枚目以降の印刷済みシートに対する検査処理からである。前回の位置合わせパラメータが取得できない場合(つまり、1枚目の印刷済みシートに対する検査を行う場合)は、S603に進む。一方、前回の位置合わせパラメータを取得できた場合(つまり、2枚目以降の印刷済みシートに対する検査を行う場合)は、S605に進む。なお、“前回”は基本的には1つ前(N枚目に対するN-1枚目)を意味するが必ずしも1つ前に限定されない。 In S602, the alignment processing unit 204 determines whether or not the previous alignment parameters could be acquired in S601. Immediately after starting the inspection process (when inspecting the first printed sheet), the previous alignment parameters are not stored in the alignment parameter storage unit 203 . Therefore, the previous alignment parameters can be acquired from the inspection process on the second and subsequent printed sheets. If the previous alignment parameters cannot be acquired (that is, if the first printed sheet is to be inspected), the process advances to step S603. On the other hand, if the previous registration parameters could be acquired (that is, if inspection is to be performed on the second and subsequent printed sheets), the process advances to step S605. Note that "previous time" basically means one page before (the N-1 page with respect to the Nth page), but is not necessarily limited to one page before.

前回の位置合わせパラメータを取得できなかった場合のS603では、位置合わせ処理部204が、初期位置合わせを行う。この初期位置合わせには一般的な線形変換による位置合わせを適用する。例えば特徴点を抽出し、当該抽出した特徴点のユークリッド距離の総和が最小になるように射影変換やアフィン変換を行なう。 In S603 when the previous alignment parameters could not be acquired, the alignment processing unit 204 performs initial alignment. Alignment by general linear transformation is applied to this initial alignment. For example, feature points are extracted, and projective transformation or affine transformation is performed so that the total sum of Euclidean distances of the extracted feature points is minimized.

次のS604では、位置合わせ処理部204が、検査対象画像Iに対し制御点の配置を行う。具体的には、検査対象画像Iに対して図8(a)に示すように、格子状に制御点Pl、mをL行×M列個だけ配置する。なお、L及びMは、正の整数である。このとき、制御点間の距離δは、L及びMの値と検査対象画像のサイズにより決まる。例えば、検査対象画像Iが、解像度600dpiのA3(7016x9921画素)であったとする。この場合、A3サイズ以上の(7050x9950画素)を候補として、L=199、M=141となり、距離δ=50画素となる。 In the next step S604, the alignment processing unit 204 arranges control points on the image I to be inspected. Specifically, as shown in FIG. 8A, L rows×M columns of control points P 1,m are arranged in a grid for the image I to be inspected. Note that L and M are positive integers. At this time, the distance δ between the control points is determined by the values of L and M and the size of the image to be inspected. For example, assume that the image I to be inspected is A3 (7016×9921 pixels) with a resolution of 600 dpi. In this case, with A3 size or larger (7050×9950 pixels) as a candidate, L=199, M=141, and the distance δ=50 pixels.

S605で、位置合わせ処理部204は、検査対象画像Iに配置された制御点Pl、mの位置を更新する。ここでの更新対象の制御点は、最初の印刷済みシートが検査対象の時は初期位置合わせの後に配置された制御点であり、2枚目以降の印刷済みシートが検査対象の時はS601で取得した前回の位置合わせパラメータに基づき配置された制御点である。更新後の制御点Pl、mの位置は、以下の式(1)によって求められる。 In S605, the alignment processing unit 204 updates the positions of the control points P l,m arranged in the image I to be inspected. The control point to be updated here is the control point arranged after the initial alignment when the first printed sheet is to be inspected. Control points placed based on the previous alignment parameters obtained. The position of the updated control point P l,m is obtained by the following equation (1).

Figure 2022132991000002
Figure 2022132991000002

上記式(1)において、μは重み係数を表し、例えば0.1のような値である。また、μは制御点Pl、mの更新の速度に合わせて変えてもよい。∇cは、制御点Pl、mの近傍にある画素の集合Dl、mにおける(図8(b)及び(c)を参照)、検査対象画像I’の画素値と基準画像Tの画素値との差の二乗和の微分値であり、以下の式(2)で表される。 In the above formula (1), μ represents a weighting factor, and has a value such as 0.1, for example. Also, μ may be changed according to the update speed of the control points P l,m . ∇c is the pixel value of the inspection target image I′ and the pixel of the reference image T in the set D l,m of pixels near the control point P l,m (see FIGS. 8(b) and (c)) is a differential value of the sum of squares of the difference from the value, and is represented by the following equation (2).

Figure 2022132991000003
Figure 2022132991000003

S606で、位置合わせ処理部204は、検査対象画像Iの各画素について、基準画像Tとの位置合わせ後の画素位置を算出し、位置合わせ後画像I’を得る。検査対象画像Iの各画素における位置合わせ後の画素位置は以下の式(3)によって求められる。 In S<b>606 , the alignment processing unit 204 calculates the pixel position after alignment with the reference image T for each pixel of the image to be inspected I, and obtains the image after alignment I′. The pixel position after alignment in each pixel of the image to be inspected I is obtained by the following equation (3).

Figure 2022132991000004
Figure 2022132991000004

上記式(3)において、w(x、y)は、検査対象画像Iにおける座標(x,y)の位置合わせ後の座標であり、以下の式(4)で表される。 In the above equation (3), w(x, y) is the coordinates after alignment of the coordinates (x, y) in the image I to be inspected, and is represented by the following equation (4).

Figure 2022132991000005
Figure 2022132991000005

上記式(4)における基底B0(t)、B1(t)、B2(t)、B3(t)はそれぞれ以下の式(5)~式(8)で表される。 The bases B 0 (t), B 1 (t), B 2 (t), and B 3 (t) in the above formula (4) are respectively represented by the following formulas (5) to (8).

Figure 2022132991000006
Figure 2022132991000006

Figure 2022132991000007
Figure 2022132991000007

Figure 2022132991000008
Figure 2022132991000008

Figure 2022132991000009
Figure 2022132991000009

また、図9に示すように、u=〔x/δ〕-1、v=〔y/δ〕-1、u'=x/δ-〔x/δ〕、v'=y/δ-〔y/δ〕である。なお、本実施形態では、位置合わせ後画像I’における画素位置を算出するために使用する格子点をp(u,v)、p(u+1,v)、・・・p(u+3,v+3)の16点としているが、これに限定されない。例えば(x,y)のユークリッド距離が近い格子点4点でも構わない。 Also, as shown in FIG. 9, u=[x/δ]-1, v=[y/δ]-1, u′=x/δ-[x/δ], v′=y/δ-[ y/δ]. In the present embodiment, the grid points used to calculate the pixel positions in the aligned image I′ are p(u, v), p(u+1, v), . . . p(u+3, v+3). Although 16 points are used, the present invention is not limited to this. For example, four lattice points having a close Euclidean distance of (x, y) may be used.

S607で、位置合わせ処理部204は、検査対象画像Iについての位置合わせが完了し、位置合わせ後画像I’が得られたか否かを判定する。位置合わせが完了したかどうかの判定は例えば以下のようにして行えばよい。まず、以下の式(9)を用いて、現時点の位置合わせ後画像I’と基準画像Tとの距離dを求める。 In S<b>607 , the alignment processing unit 204 determines whether or not the alignment of the image to be inspected I has been completed and the alignment-aligned image I′ has been obtained. The determination as to whether or not the alignment is completed may be performed, for example, as follows. First, the distance d between the current position-aligned image I' and the reference image T is obtained using the following equation (9).

Figure 2022132991000010
Figure 2022132991000010

そして、求めた距離dに対する閾値処理によって判定すればよい。具体的には、上記式(9)によって得られた距離dが閾値以下となると、位置合わせが完了したと判定することができる。いま、検査対象画像Iが解像度600dpiのA3(7016x9921画素)であったとすると、X=7016画素、Y=9921画素となり、8bit信号値換算で平均誤差の許容を“5”とするならば、閾値は“5”とすればよい。 Then, determination may be made by performing threshold processing on the obtained distance d. Specifically, when the distance d obtained by the above formula (9) is equal to or less than the threshold, it can be determined that the alignment is completed. Now, assuming that the image to be inspected I is A3 (7016×9921 pixels) with a resolution of 600 dpi, X=7016 pixels and Y=9921 pixels. should be set to "5".

S608では、位置合わせパラメータ保存部203が、位置合わせ完了時点における位置合わせパラメータを、次の印刷済みシートの検査でも利用するために保存する。より詳細には、検査対象画像Iの各画素における位置合わせ後の画素位置を算出する上記式(3)の変換式及びS605で更新された制御点Pl、mの配置情報を、「前回の位置合わせパラメータ」としてRAM102に保存する。 In S608, the alignment parameter storage unit 203 stores the alignment parameters at the time of completion of alignment for use in inspection of the next printed sheet. More specifically, the conversion formula of the above formula (3) for calculating the pixel position after alignment in each pixel of the inspection target image I and the arrangement information of the control points P l and m updated in S605 are referred to as "previous are stored in the RAM 102 as "alignment parameters".

以上が、本実施形態に係る位置合わせ処理の内容である。なお、例えば図10に示すような動作モードをユーザに選択させるUI画面を介して、非線形位置合わせモードか線形位置合わせモードかをユーザに選択させてもよい。そして、非線形位置合わせモードが選択された場合に上述の処理を行ない、線形位置合わせモードが選択された場合には通常の線形位置合わせのみを行うようにしてもよい。 The above is the content of the alignment processing according to the present embodiment. For example, the user may be allowed to select either the non-linear alignment mode or the linear alignment mode via a UI screen for allowing the user to select the operation mode as shown in FIG. Then, the above processing may be performed when the nonlinear alignment mode is selected, and only normal linear alignment may be performed when the linear alignment mode is selected.

<検査結果の表示>
図11は、前述した検査結果の表示処理(S308)においてUIパネルに表示される画面の一例である。図11は、検査不合格であった場合の検査結果を示すUI画面の例であり、画像表示領域1101に検査対象画像の全体が表示され、さらに、検出された印刷欠陥の種類を示す文字列1102及び1103が表示されている。さらに、画像表示領域1101の右側には、検出された印刷欠陥がどの位置に発生したのかを示す位置情報(座標情報)1104及び1105も併せて表示されている。なお、図11の例では示されていないが、検査対象画像を特定するページIDや、表示させるページを切り替えるためのボタンなどが存在していてもよい。また、例えば、印刷欠陥の種類毎に異なる色でその内容を示す文字列を表示するなどしてもよい。
<Display of test results>
FIG. 11 is an example of a screen displayed on the UI panel in the inspection result display process (S308) described above. FIG. 11 is an example of a UI screen showing the inspection result when the inspection fails. The entire image to be inspected is displayed in the image display area 1101, and a character string indicating the type of the detected print defect is displayed. 1102 and 1103 are displayed. Furthermore, on the right side of the image display area 1101, position information (coordinate information) 1104 and 1105 indicating the position of the detected print defect is also displayed. Although not shown in the example of FIG. 11, there may be a page ID for specifying the image to be inspected, a button for switching pages to be displayed, and the like. Further, for example, a character string indicating the content may be displayed in a different color for each type of print defect.

<変形例>
なお、上述の実施形態では、「前回の位置合わせパラメータ」が取得できたときはそれを用いることとし、初期位置合わせ(S603)と制御点の配置(S604)がスキップされる。しかし、「前回の位置合わせパラメータ」が取得できた場合でも、所定の場合においては「前回の位置合わせパラメータ」を使用しないように制御してもよい。所定の場合とは、直前にペーパージャムが発生して印刷・検査を再開した場合や、印刷条件が変化している場合(例えばシートの種類が異なるなど)など、直前の位置合わせで使用された位置合わせパラメータを再利用することが馴染まないケースである。これらの場合は、改めて初期位置合わせと制御点の配置を行えばよい。
<Modification>
In the above-described embodiment, when the "previous alignment parameters" are acquired, they are used, and the initial alignment (S603) and control point placement (S604) are skipped. However, even if the "previous alignment parameter" can be acquired, control may be performed so that the "previous alignment parameter" is not used in a predetermined case. Predetermined cases include cases where printing/inspection is restarted due to a paper jam occurring immediately before, or cases where printing conditions have changed (for example, the type of sheet is different), etc. This is the case when reuse of alignment parameters is not amenable. In these cases, initial alignment and placement of control points may be performed again.

以上のとおり本実施形態では、印刷済みシートの検査処理において、直近(N-1枚目)の位置合わせで用いた位置合わせパラメータをその次(N枚目)の位置合わせの際に再利用する。これにより、位置合わせ処理に要する時間を短縮することが可能となる。 As described above, in the present embodiment, in the printed sheet inspection process, the alignment parameters used in the most recent (N-1) alignment are reused in the next (Nth) alignment. . This makes it possible to shorten the time required for alignment processing.

[実施形態2]
実施形態1においては、印刷時の搬送ムラや局所的な位置ずれが、連続する印刷処理の合間に殆ど変化しないことを前提としていた。次に、連続する印刷処理の合間にシートが大きくずれた場合にも対処し得る態様について、実施形態2として説明する。
[Embodiment 2]
In the first embodiment, it is assumed that unevenness in transportation and local misalignment during printing hardly change between successive printing processes. Next, a mode capable of coping with a case where the sheet is greatly misaligned between successive printing processes will be described as a second embodiment.

図12(a)は検査時にシートがずれていなかった状態を示し、同(b)は検査時にシートがずれていた状態を示している。仮に、これから検査を行う印刷済みシートが、一つ前の検査時と比較して大きくずれてスキャンされたとする。本実施形態ではこのようなケースを想定し、まず、得られたスキャン画像に射影変換を施し、図12(b)のようなずれた状態の画像から図12(a)のようなずれのない状態の画像に変換する。その後、一つ前の検査時に用いた位置合わせパラメータを使用して、非線形位置合わせを行うようにする。なお、印刷システムの構成など実施形態1と共通する内容については説明を省略し、以下では差異点である位置合わせ処理について説明を行うものとする。 FIG. 12(a) shows a state in which the sheet is not misaligned during inspection, and FIG. 12(b) shows a state in which the sheet is misaligned during inspection. Suppose that the printed sheet to be inspected from now on is scanned with a large shift compared to the time of the previous inspection. In the present embodiment, assuming such a case, first, the obtained scanned image is subjected to projective transformation, and the image in a displaced state as shown in FIG. Convert to state image. Thereafter, non-linear alignment is performed using the alignment parameters used during the previous inspection. Note that the description of the contents common to the first embodiment, such as the configuration of the printing system, will be omitted, and the following will describe the alignment process, which is the point of difference.

<位置合わせ処理>
次に、図13のフローチャートを参照して、本実施形態に係る位置合わせ処理(S401)について詳しく説明する。
<Alignment processing>
Next, the alignment processing (S401) according to this embodiment will be described in detail with reference to the flowchart of FIG.

まずS1301で、位置合わせ処理部204が、実施形態1に係る図6のフローチャートのS603と同様、一般的な線形変換による初期位置合わせを行う。続くS1302で、位置合わせ処理部204は、位置合わせパラメータ保存部203に保存されている前回の位置合わせパラメータを取得する。この処理は、実施形態1に係る図6のフローチャートのS601に対応する。 First, in S1301, the alignment processing unit 204 performs initial alignment by general linear transformation, as in S603 of the flowchart of FIG. 6 according to the first embodiment. In subsequent S<b>1302 , the alignment processing unit 204 acquires the previous alignment parameters saved in the alignment parameter storage unit 203 . This process corresponds to S601 in the flowchart of FIG. 6 according to the first embodiment.

S1303で、位置合わせ処理部204は、S1302にて前回の位置合わせパラメータが取得できたか否かを判定する。検査処理の開始直後の場合は、位置合わせパラメータ保存部203には「前回の位置合わせパラメータ」が保存されていないので、前回の位置合わせパラメータを取得できるのは2枚目以降の印刷済みシートに対する検査処理からである。前回の位置合わせパラメータが取得できない場合(つまり、1枚目の印刷済みシートに対する検査を行う場合)は、S1304に進む。一方、前回の位置合わせパラメータを取得できた場合(つまり、2枚目以降の印刷済みシートに対する検査を行う場合)は、S1305に進む。 In S1303, the alignment processing unit 204 determines whether or not the previous alignment parameters could be acquired in S1302. Immediately after the inspection process starts, the "previous alignment parameters" are not stored in the alignment parameter storage unit 203. Therefore, the previous alignment parameters can be acquired only for the second and subsequent printed sheets. It is from the inspection process. If the previous registration parameters cannot be acquired (that is, if the first printed sheet is to be inspected), the process advances to step S1304. On the other hand, if the previous registration parameters could be acquired (that is, if inspection is to be performed on the second and subsequent printed sheets), the process advances to step S1305.

次のS1304では、位置合わせ処理部204が、検査対象画像Iに対し制御点の配置を行う。この処理は、実施形態1に係る図6のフローチャートのS604に対応する。 In the next step S1304, the alignment processing unit 204 arranges control points on the image I to be inspected. This process corresponds to S604 in the flowchart of FIG. 6 according to the first embodiment.

S1305~S1308の各処理は、実施形態1に係る図6のフローチャートのS605~S608にそれぞれ対応し、特に異なるところはないので説明を省く。
以上が、本実施形態に係る位置合わせ処理の内容である。
Each process of S1305 to S1308 corresponds to S605 to S608 in the flowchart of FIG. 6 according to the first embodiment, and since there is no particular difference, the description is omitted.
The above is the content of the alignment processing according to the present embodiment.

本実施形態によれば、位置合わせ処理の冒頭で一般的な線形位置合わせを施した後に、一つ前の検査処理で用いた位置合わせパラメータを利用して非線形位置合わせを行う。これにより、印刷済みシートが大きくずれてスキャンされた場合にも対処しつつ、実施形態1と同様の効果を得ることが可能となる。 According to this embodiment, general linear alignment is performed at the beginning of the alignment process, and then non-linear alignment is performed using the alignment parameters used in the previous inspection process. As a result, it is possible to obtain the same effect as in the first embodiment while coping with the case where the printed sheet is scanned with a large deviation.

(その他の実施例)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
(Other examples)
The present invention supplies a program that implements one or more functions of the above-described embodiments to a system or device via a network or a storage medium, and one or more processors in the computer of the system or device reads and executes the program. It can also be realized by processing to It can also be implemented by a circuit (for example, ASIC) that implements one or more functions.

Claims (12)

印刷装置から出力される印刷済みシートを検査する画像処理装置であって、
前記印刷済みシートを読み取って読取画像を取得する取得手段と、
前記取得手段で取得された読取画像を、前記検査において基準となる基準画像に合わせこむ位置合わせを行う位置合わせ手段と、
前記位置合わせ後の読取画像と前記基準画像との差分に基づいて、印刷欠陥の有無を検出する検査手段と、
を備え、
前記位置合わせ手段は、連続して出力される複数の印刷済みシートそれぞれの前記読取画像に対し非線形変換を行なって前記基準画像に合わせこむ非線形位置合わせを行う場合、既に行った非線形位置合わせで使用したパラメータを再利用する、
ことを特徴とする画像処理装置。
An image processing device for inspecting a printed sheet output from a printing device,
acquisition means for reading the printed sheet and acquiring a read image;
alignment means for aligning the read image acquired by the acquisition means with a reference image serving as a reference in the inspection;
inspection means for detecting the presence or absence of print defects based on the difference between the read image after alignment and the reference image;
with
The positioning means is used in non-linear positioning that has already been performed when performing non-linear positioning by performing non-linear transformation on the read images of each of a plurality of printed sheets that are successively output and aligning them with the reference image. to reuse the parameters of the
An image processing apparatus characterized by:
前記位置合わせ手段は、連続して出力される複数の印刷済みシートのうちN枚目の印刷済みシートの読取画像についての前記非線形位置合わせを行う際、N-1枚目の印刷済みシートの読取画像についての前記非線形位置合わせで使用したパラメータを使用する、
ことを特徴とする請求項1に記載の画像処理装置。
The positioning means reads the (N-1)th printed sheet when performing the non-linear positioning for the read image of the Nth printed sheet among the plurality of printed sheets that are continuously output. using the parameters used in said non-linear registration for the images;
2. The image processing apparatus according to claim 1, wherein:
前記N-1枚目の印刷済みシートの読取画像について前記非線形位置合わせを行った際に使用した前記パラメータを保存する保存手段をさらに備え、
前記位置合わせ手段は、前記保存手段が保存した前記パラメータを使用して、前記N枚目の印刷済みシートの読取画像についての前記非線形位置合わせを行う、
ことを特徴とする請求項2に記載の画像処理装置。
further comprising storage means for storing the parameters used when performing the non-linear alignment for the read image of the N-1 printed sheet;
The alignment means uses the parameters stored by the storage means to perform the non-linear alignment of the read image of the Nth printed sheet.
3. The image processing apparatus according to claim 2, wherein:
前記位置合わせ手段は、前記再利用が適さない所定の場合、前記保存手段が保存した前記パラメータを使用して前記非線形位置合わせを行わない、ことを特徴とする請求項3に記載の画像処理装置。 4. The image processing apparatus according to claim 3, wherein said alignment means does not perform said non-linear alignment using said parameters stored by said storage means in a predetermined case where said reuse is not suitable. . 前記所定の場合は、ペーパージャムが発生して前記検査を再開した場合、又は印刷条件が変化している場合である、ことを特徴とする請求項4に記載の画像処理装置。 5. The image processing apparatus according to claim 4, wherein the predetermined case is when a paper jam occurs and the inspection is restarted, or when printing conditions have changed. 前記パラメータは、前記非線形変換を行うため前記取得手段で取得された読取画像に対して配置された制御点の配置情報であることを特徴とする請求項1乃至5のいずれか一項に記載の画像処理装置。 6. The method according to any one of claims 1 to 5, wherein the parameter is arrangement information of control points arranged with respect to the read image acquired by the acquisition means for performing the nonlinear transformation. Image processing device. 前記パラメータは、前記取得手段で取得された読取画像の各画素における位置合わせ後の画素位置を算出するための変換式であることを特徴とする請求項1乃至5のいずれか一項に記載の画像処理装置。 6. The apparatus according to any one of claims 1 to 5, wherein the parameter is a conversion formula for calculating a post-alignment pixel position in each pixel of the read image acquired by the acquisition means. Image processing device. 前記位置合わせ手段は、
前記取得手段で取得された読取画像に対し線形変換を行なって前記基準画像に合わせこむ線形位置合わせを、初期位置合わせとして行ない、
前記初期位置合わせ後の読取画像に対して、前記非線形位置合わせを行う、
ことを特徴とする請求項1乃至7のいずれか一項に記載の画像処理装置。
The alignment means are
linearly aligning the read image acquired by the acquisition means with the reference image by performing linear transformation as an initial alignment;
performing the non-linear alignment on the read image after the initial alignment;
8. The image processing apparatus according to any one of claims 1 to 7, characterized by:
前記線形変換は、射影変換又はアフィン変換であることを特徴とする請求項8に記載の画像処理装置。 9. The image processing apparatus according to claim 8, wherein the linear transformation is projective transformation or affine transformation. 前記位置合わせ手段の動作モードとして、前記線形位置合わせを行う第1動作モードと前記非線形位置合わせを行う第2動作モードをユーザに選択させるユーザインタフェースをさらに備え、
前記位置合わせ手段は、前記ユーザインタフェースにて選択された動作モードが前記第2動作モードである場合に、前記パラメータを再利用する前記非線形位置合わせを行う、
ことを特徴とする請求項1乃至9のいずれか一項に記載の画像処理装置。
further comprising a user interface for allowing a user to select a first operation mode in which the linear alignment is performed and a second operation mode in which the nonlinear alignment is performed as the operation mode of the alignment means;
The alignment means performs the nonlinear alignment that reuses the parameters when the operation mode selected by the user interface is the second operation mode.
10. The image processing apparatus according to any one of claims 1 to 9, characterized by:
印刷装置から出力される印刷済みシートを検査する画像処理装置の制御方法であって、
前記印刷済みシートを読み取って読取画像を取得する取得ステップと、
前記取得ステップにて取得された読取画像を、前記検査において基準となる基準画像に合わせこむ位置合わせを行う位置合わせステップと、
前記位置合わせ後の読取画像と前記基準画像との差分に基づいて、印刷欠陥の有無を検出する検査ステップと、
を含み、
前記位置合わせステップでは、連続して出力される複数の印刷済みシートそれぞれの前記読取画像に対し非線形変換を行なって前記基準画像に合わせこむ非線形位置合わせを行う場合、既に行った非線形位置合わせで使用したパラメータを再利用する、
ことを特徴とする制御方法。
A control method for an image processing device that inspects a printed sheet output from a printing device, comprising:
an obtaining step of reading the printed sheet to obtain a read image;
an alignment step of aligning the read image acquired in the acquisition step with a reference image serving as a reference in the inspection;
an inspection step of detecting the presence or absence of a print defect based on the difference between the read image after alignment and the reference image;
including
In the alignment step, when performing nonlinear alignment in which nonlinear transformation is performed on the read images of each of the plurality of printed sheets that are successively output to align them with the reference image, the nonlinear alignment is used in the already performed nonlinear alignment. to reuse the parameters of the
A control method characterized by:
コンピュータを、請求項1乃至10のいずれか一項に記載の画像処理装置として機能させるためのプログラム。 A program for causing a computer to function as the image processing apparatus according to any one of claims 1 to 10.
JP2021031770A 2021-03-01 2021-03-01 Image processing device, control method thereof, and program Pending JP2022132991A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021031770A JP2022132991A (en) 2021-03-01 2021-03-01 Image processing device, control method thereof, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021031770A JP2022132991A (en) 2021-03-01 2021-03-01 Image processing device, control method thereof, and program

Publications (1)

Publication Number Publication Date
JP2022132991A true JP2022132991A (en) 2022-09-13

Family

ID=83229235

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021031770A Pending JP2022132991A (en) 2021-03-01 2021-03-01 Image processing device, control method thereof, and program

Country Status (1)

Country Link
JP (1) JP2022132991A (en)

Similar Documents

Publication Publication Date Title
US9536297B2 (en) Apparatus, system, and method of inspecting image, and recording medium storing image inspection control program
JP4750047B2 (en) Misalignment detection apparatus, misalignment detection method, misalignment detection program, and recording medium
JP2013195350A (en) Image inspection method, image inspection device, and control program of image inspection device
JP6613641B2 (en) Inspection device, threshold changing method, and program
US11551350B2 (en) Inspecting for a defect on a print medium with an image aligned based on an object in the image and based on vertices of the inspection target medium and the reference medium
US11514568B2 (en) Image processing apparatus, image processing method, and storage medium
JP7350637B2 (en) High-speed image distortion correction for image inspection
US20200234456A1 (en) Image inspection device, image forming system, image inspection method, and recording medium
US20230386020A1 (en) Image processing apparatus, method of controlling the same, and storage medium
US11750747B2 (en) Inspection apparatus capable of preventing lowering of position matching accuracy, method of controlling same, and storage medium
JP2019164033A (en) Image inspection device, image formation system and program
JP2022132991A (en) Image processing device, control method thereof, and program
US20230398776A1 (en) Inspection apparatus, inspection method, and storage medium
JP2024014720A (en) Inspection equipment and its control method, inspection system and program
JP2024051445A (en) Print media inspection system, control method, and control program
JP2022041718A (en) Image processing system, control method thereof, and program
JP2021149305A (en) Image processing apparatus, image processing method, and program
US11838454B2 (en) Inspection apparatus, control method thereof, and storage medium
US20240029238A1 (en) Inspection apparatus, method of controlling the same, inspection system, and storage medium
JP2009285997A (en) Image defect detecting method, and image forming apparatus
US20230409248A1 (en) Image processing apparatus, image processing method, and storage medium
JP2023033152A (en) Inspection device, control method for inspection device, and program
US20230401695A1 (en) Inspection apparatus, method of controlling the same, and storage medium
JP2023170637A (en) Image processing device, image processing method, and program
JP2023164056A (en) Image processing device, image processing method, and program