JP2021071301A - Image inspection device and image inspection system - Google Patents

Image inspection device and image inspection system Download PDF

Info

Publication number
JP2021071301A
JP2021071301A JP2019196052A JP2019196052A JP2021071301A JP 2021071301 A JP2021071301 A JP 2021071301A JP 2019196052 A JP2019196052 A JP 2019196052A JP 2019196052 A JP2019196052 A JP 2019196052A JP 2021071301 A JP2021071301 A JP 2021071301A
Authority
JP
Japan
Prior art keywords
image
feature amount
streak
unit
defect detection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2019196052A
Other languages
Japanese (ja)
Other versions
JP7367462B2 (en
Inventor
貴志 土屋
Takashi Tsuchiya
貴志 土屋
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.)
Konica Minolta Inc
Original Assignee
Konica Minolta 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 Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP2019196052A priority Critical patent/JP7367462B2/en
Publication of JP2021071301A publication Critical patent/JP2021071301A/en
Application granted granted Critical
Publication of JP7367462B2 publication Critical patent/JP7367462B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Processing (AREA)

Abstract

To solve the problem that streak-like defects differing in length cannot be detected with good accuracy.SOLUTION: An image inspection device 3 comprises: a change amount calculation unit 611 for calculating a classification result obtained by classifying a difference value between a pixel of interest included in a read image and a comparison pixel by a classification threshold into a plurality of classification values, as a change amount of pixel value; a defect feature quantity extraction unit 612 for extracting, for each first defect detection region whose length in a sub-scan direction defines a first size, a first feature quantity of a streak-like defect occurring in an image formed on a recording material from the classification result, and extracting, for each second defect detection region whose length in the sub-scan direction defines a second size shorter then the first size, a second feature quantity of a streak-like defect from the classification result; and a quality determination unit 613 for comparing the first feature quantity with a first defect detection threshold and comparing the second feature quantity with a second defect detection threshold higher than the first defect detection threshold, detecting streak-like defects of different lengths in the sub-scan direction, and determining the quality of the image.SELECTED DRAWING: Figure 4

Description

本発明は、画像検査装置及び画像検査システムに関する。 The present invention relates to an image inspection device and an image inspection system.

大量の印刷を行う場合、通常、オペレーターが何度か試し印刷を行って各種の調整を行い、印刷内容に問題のないことを見本により確認できたら本印刷を開始する。しかし、本印刷された用紙の画像において、何らかの要因で、見本に対する色ズレが生じたり、歪みが生じたりすることがある。そこで、近年は、画像形成装置の後段の搬送路上にスキャナ等の読取装置を設け、印刷出力される各用紙の画像を読み取って得た読取画像を画像検査装置が検査する検査システムが提供されるようになった。この検査では、用紙に形成される画像の元となる画像を出力対象画像として保存しておく。そして、画像検査装置は、本印刷で印刷した用紙をスキャナで読み取って得た画像(読取画像)と、保存してある出力対象画像とを比較する。 When printing a large amount of prints, the operator usually performs trial printing several times to make various adjustments, and when it is confirmed by a sample that there is no problem in the printed contents, the main printing is started. However, in the image of the printed paper, color deviation or distortion may occur with respect to the sample for some reason. Therefore, in recent years, there has been provided an inspection system in which a scanning device such as a scanner is provided on a transport path in the subsequent stage of the image forming apparatus, and the image inspection device inspects the scanned image obtained by reading the image of each paper to be printed out. It became so. In this inspection, an image that is the source of the image formed on the paper is saved as an output target image. Then, the image inspection device compares the image (scanned image) obtained by scanning the paper printed by the main printing with a scanner and the stored output target image.

読取画像と出力対象画像とを比較すると、読取画像から画像欠陥が検出されることがある。画像欠陥の種類としては、例えば、所定方向に連続し、又は所定方向に途切れながら現れる幅の細いスジや帯等がある。このような画像欠陥は、スジ状欠陥と総称される。ただし、以下の説明では、スジ状欠陥を、「スジ」とも略記する。スジは、画像形成装置やスキャナなどの読取装置が備えるドラムやローラなどのキズや汚れが原因で生じる欠陥であり、オペレーターが意図していない画素値(輝度値ともいう)の階調差(「スジ強度」ともいう)や濃度ムラとして現れる。スジとしては、例えば、元の画像より薄い白スジ、元の画像より濃い黒スジ等がある。スジは繰り返し生じやすく、オペレーターや顧客が認識しやすい欠陥であるため、本印刷の途中であってもスジを確実に検出することが求められる。 Comparing the scanned image with the output target image, image defects may be detected in the scanned image. Examples of the types of image defects include narrow streaks and bands that appear continuously in a predetermined direction or interrupted in a predetermined direction. Such image defects are collectively referred to as streak-like defects. However, in the following description, the streak-like defect is also abbreviated as "streak". A streak is a defect caused by scratches or stains on a drum or roller of a reading device such as an image forming device or a scanner, and is a gradation difference (also referred to as a brightness value) of a pixel value (also referred to as a brightness value) not intended by the operator. It also appears as "streak strength") or uneven density. Examples of the streaks include white streaks that are lighter than the original image, black streaks that are darker than the original image, and the like. Since streaks are likely to occur repeatedly and are easily recognized by operators and customers, it is required to reliably detect streaks even during the main printing.

スジを検出するために、特許文献1に開示された技術が知られている。この特許文献1には、撮像画像に設定するスジ検出領域のサイズを変化しながら作成した解像度の異なる複数の低解像度画像を合成した合成画像を作成して、合成画像から欠陥候補を抽出する技術が開示されている。 A technique disclosed in Patent Document 1 is known for detecting streaks. In Patent Document 1, a technique of creating a composite image obtained by synthesizing a plurality of low-resolution images having different resolutions created while changing the size of a streak detection area set in the captured image, and extracting defect candidates from the composite image. Is disclosed.

特開2019−100937号公報Japanese Unexamined Patent Publication No. 2019-100937

スジは様々な要因により、用紙に形成された画像の副走査方向又は主走査方向に現れる。例えば、画像形成装置が備える帯電極がトナーなどによって汚れている場合、汚れた箇所の帯電がうまくいかず、結果として、画像の副走査方向にスジとして現れることがある。また、感光体ドラムなどの回転体に不良が生じた場合には、回転体が回転する周期に同期して主走査方向にスジが現れる。ここで、読取画像に現れるスジについて、図1を参照して説明する。 The streaks appear in the sub-scanning direction or the main scanning direction of the image formed on the paper due to various factors. For example, when the band electrode included in the image forming apparatus is contaminated with toner or the like, the contaminated portion may not be charged well, and as a result, it may appear as a streak in the sub-scanning direction of the image. Further, when a defect occurs in a rotating body such as a photoconductor drum, streaks appear in the main scanning direction in synchronization with the rotation cycle of the rotating body. Here, the streaks appearing in the scanned image will be described with reference to FIG.

図1は、副走査方向(FD:Feed direction)に画素値を平均化したデータの一例を示すグラフである。このグラフの横軸は、主走査方向(CD:Cross direction)における読取画像の主走査位置を表し、縦軸は、G−ch(緑チャンネル)で読み取られた読取画像の画素毎の画素値を表す。このグラフは、スキャナ等の読取装置が平坦な画像を読み取った結果に基づき、主走査方向に同じ位置にある副走査方向の画素の画素値を平均化したものである。以下の例では、シートに画像や字が形成される印字方向が主走査方向に一致するものとして説明するが、印字方向が副走査方向に一致する場合も同様である。図1に示す読取画像には、副走査方向へ2本のスジが生じていたとする。 FIG. 1 is a graph showing an example of data in which pixel values are averaged in the sub-scanning direction (FD: Feed direction). The horizontal axis of this graph represents the main scanning position of the scanned image in the main scanning direction (CD: Cross direction), and the vertical axis represents the pixel value for each pixel of the scanned image read in the G-ch (green channel). Represent. This graph is an average of the pixel values of the pixels in the sub-scanning direction at the same position in the main scanning direction based on the result of reading a flat image by a scanning device such as a scanner. In the following example, the printing direction in which images and characters are formed on the sheet will be described as matching the main scanning direction, but the same applies when the printing direction coincides with the sub-scanning direction. It is assumed that the scanned image shown in FIG. 1 has two streaks in the sub-scanning direction.

従来は、読取画像に生じたスジを検出するために、ある一定の長さで分割したスジ検出領域に対し、1種類の検出閾値を設定してスジを探索する方法がとられていた。しかし、この方法では、スジ検出領域に対応しないノイズをスジと検出するようなスジの誤検知が発生し、スジ検出精度が悪くなっていた。特許文献1に開示された技術は、読取画像を有限個の領域に分割し、スジ検出領域からスジ検知を実施するものであった。しかし、検査(分割)領域に対応した検出レベル(特徴量に対する閾値)変更の記載はない為、長さ違いのスジ検出性に劣っていた。 Conventionally, in order to detect streaks generated in a scanned image, a method of searching for streaks by setting one type of detection threshold value for a streak detection area divided into a certain length has been adopted. However, in this method, false detection of streaks such as detecting noise that does not correspond to the streak detection region as streaks occurs, and the streak detection accuracy is deteriorated. The technique disclosed in Patent Document 1 divides the scanned image into a finite number of regions and performs streak detection from the streak detection region. However, since there is no description of changing the detection level (threshold value for the feature amount) corresponding to the inspection (division) region, the streak detectability of different lengths is inferior.

本発明はこのような状況に鑑みて成されたものであり、異なる長さのスジ状欠陥を検出できるようにすることを目的とする。 The present invention has been made in view of such a situation, and an object of the present invention is to enable detection of streak-like defects having different lengths.

上述した目的のうち少なくとも一つを実現するために、本発明の一側面を反映した画像検査装置は、画像が形成された記録材から読み取られた読取画像に含まれる複数の画素のうち、注目画素の画素値に対する、注目画素を基準として第1の方向に第1画素数だけ離れた比較画素の画素値の差分値を算出し、差分値を分類閾値で複数の分類値に分類した分類結果を画素値の変化量として算出する変化量算出部と、分類結果の第1の方向に交差する第2の方向の長さを第1のサイズとした第1の欠陥検出領域ごとに、記録材に形成された画像に発生するスジ状欠陥の第1特徴量を分類結果から抽出し、かつ、第2の方向の長さを第1のサイズよりも短い第2のサイズとした第2の欠陥検出領域ごとに、スジ状欠陥の第2特徴量を分類結果から抽出する特徴量抽出部と、第1特徴量を第1の欠陥検出閾値と比較し、かつ、第2特徴量を、第1の欠陥検出閾値よりも高い第2の欠陥検出閾値と比較して、第2の方向に異なる長さのスジ状欠陥を検出し、記録材に形成された画像の品質を判断する品質判断部と、を備える。
なお、上記の画像検査装置は本発明の一態様であり、本発明の一側面を反映した画像検査システムについても、上記の画像検査装置と同様に構成される。
In order to achieve at least one of the above-mentioned objects, an image inspection apparatus reflecting one aspect of the present invention is noted among a plurality of pixels included in a scanned image read from a recording material on which an image is formed. The difference value of the pixel value of the comparison pixel separated by the number of the first pixel in the first direction with respect to the pixel value of the pixel with respect to the attention pixel is calculated, and the difference value is classified into a plurality of classification values by the classification threshold. For each of the change amount calculation unit that calculates the change amount of the pixel value and the first defect detection region having the length of the second direction intersecting the first direction of the classification result as the first size, the recording material. A second defect in which the first feature amount of the streak-like defect generated in the image formed in the image is extracted from the classification result and the length in the second direction is set to the second size shorter than the first size. For each detection region, the feature amount extraction unit that extracts the second feature amount of the streak-like defect from the classification result, the first feature amount is compared with the first defect detection threshold, and the second feature amount is the first. With a quality judgment unit that detects streaky defects of different lengths in the second direction and judges the quality of the image formed on the recording material as compared with the second defect detection threshold that is higher than the defect detection threshold of , Equipped with.
The above-mentioned image inspection apparatus is one aspect of the present invention, and an image inspection system reflecting one aspect of the present invention is configured in the same manner as the above-mentioned image inspection apparatus.

本発明によれば、異なる長さのスジ状欠陥を精度よく検出するため、記録材に形成される画像の品質を向上することができる。
上記した以外の課題、構成及び効果は、以下の実施の形態の説明により明らかにされる。
According to the present invention, since the streak-like defects of different lengths are detected with high accuracy, the quality of the image formed on the recording material can be improved.
Issues, configurations and effects other than those described above will be clarified by the following description of the embodiments.

副走査方向に画素値を平均化したデータの一例を示すグラフである。It is a graph which shows an example of the data which averaged the pixel value in the sub-scanning direction. 本発明の第1の実施の形態に係る画像検査システムの概要構成図である。It is a schematic block diagram of the image inspection system which concerns on 1st Embodiment of this invention. 本発明の第1の実施の形態に係る画像形成装置の制御系の構成例を示すブロック図である。It is a block diagram which shows the structural example of the control system of the image forming apparatus which concerns on 1st Embodiment of this invention. 本発明の第1の実施の形態に係る画像検査装置の制御系の構成例を示すブロック図である。It is a block diagram which shows the structural example of the control system of the image inspection apparatus which concerns on 1st Embodiment of this invention. 本発明の第1の実施の形態に係る検出対象とするスジが含まれる読取画像、及び分類結果の例を示す図である。It is a figure which shows the example of the scanned image which contains the streak to be detected which concerns on 1st Embodiment of this invention, and the classification result. 本発明の第1の実施の形態に係る分類結果からスジ特徴量を抽出する様子を示す図である。It is a figure which shows the state of extracting the streak feature amount from the classification result which concerns on 1st Embodiment of this invention. 本発明の第1の実施の形態に係る変化量算出部が、分類結果を副走査方向に低解像度化して3値化平均値を算出する様子を示す図である。It is a figure which shows a mode that the change amount calculation part which concerns on 1st Embodiment of this invention lowers the resolution in the sub-scanning direction, and calculates the ternary average value. 本発明の第1の実施の形態に係る分類結果に含まれる3値化画素と、分類結果に現れるノイズ、短いスジ及び長いスジの位置の例を示す図である。It is a figure which shows the example of the ternary pixel included in the classification result which concerns on 1st Embodiment of this invention, and the position of a noise, a short streak and a long streak appearing in a classification result. 本発明の第1の実施の形態に係る欠陥特徴量抽出部が、長いスジの3値化平均値から長いスジのスジ特徴量を抽出する様子を示す図である。It is a figure which shows a mode that the defect feature amount extraction part which concerns on 1st Embodiment of this invention extracts a streak feature amount of a long streak from a ternation average value of a long streak. 本発明の第1の実施の形態に係る欠陥特徴量抽出部が、短いスジの3値化平均値からノイズと短いスジのスジ特徴量を抽出する様子を示す図である。It is a figure which shows a mode that the defect feature amount extraction part which concerns on 1st Embodiment of this invention extracts a noise and a streak feature amount of a short streak from a ternation average value of a short streak. 本発明の第1の実施の形態に係る検査処理装置で行われる処理の例を示すフローチャートである。It is a flowchart which shows the example of the processing performed by the inspection processing apparatus which concerns on 1st Embodiment of this invention. 本発明の第1の実施の形態の変形例に係る複数のスジ検出領域の一部が重なる例を示す図である。It is a figure which shows the example in which a part of the plurality of streak detection regions which concern on the modification of 1st Embodiment of this invention overlap. 本発明の第2の実施の形態に係る画像検査装置の制御系の構成例を示すブロック図である。It is a block diagram which shows the structural example of the control system of the image inspection apparatus which concerns on 2nd Embodiment of this invention. 本発明の第2の実施の形態に係る読取画像の平坦領域と非平坦領域における画素の画素値と差分値、及び分類閾値の例を示すグラフである。It is a graph which shows the example of the pixel value and the difference value of the pixel in the flat region and the non-flat region of the scanned image which concerns on 2nd Embodiment of this invention, and the classification threshold value. 本発明の第2の実施の形態に係る検査処理装置で行われる処理の例を示すフローチャートである。It is a flowchart which shows the example of the processing performed by the inspection processing apparatus which concerns on 2nd Embodiment of this invention.

以下、本発明を実施するための形態について、添付図面を参照して説明する。本明細書及び図面において、実質的に同一の機能又は構成を有する構成要素については、同一の符号を付することにより重複する説明を省略する。 Hereinafter, embodiments for carrying out the present invention will be described with reference to the accompanying drawings. In the present specification and the drawings, components having substantially the same function or configuration are designated by the same reference numerals, and redundant description will be omitted.

[第1の実施の形態]
<画像検査システムの構成>
本発明者は、読取画像に含まれる注目画素と、注目画素の近くにある比較画素との差分を取ることで、図1に示したようなノイズと分離不能であって、オペレーターが視認可能な長さの異なるスジを検出する画像検査装置を発明した。以下に、第1の実施の形態に係る、読取画像からスジを検出可能な画像検査装置を含む画像検査システムの構成例及び動作例について、図2〜図11を参照して説明する。
[First Embodiment]
<Configuration of image inspection system>
By taking the difference between the pixel of interest included in the scanned image and the comparison pixel near the pixel of interest, the present inventor is inseparable from the noise as shown in FIG. 1 and is visible to the operator. We have invented an image inspection device that detects streaks of different lengths. Hereinafter, a configuration example and an operation example of an image inspection system including an image inspection device capable of detecting streaks from a scanned image according to the first embodiment will be described with reference to FIGS. 2 to 11.

始めに、図2を参照して、本発明の第1の実施の形態に係る画像検査システムの構成例について説明する。
図2は、本発明の第1の実施の形態に係る画像検査システム1の概要構成図である。なお、図2には、本発明の説明に必要と考える要素又はその関連要素を記載しており、本発明の画像検査システムは図2に示す例に限定されない。
First, a configuration example of the image inspection system according to the first embodiment of the present invention will be described with reference to FIG.
FIG. 2 is a schematic configuration diagram of the image inspection system 1 according to the first embodiment of the present invention. Note that FIG. 2 shows elements considered necessary for the description of the present invention or related elements thereof, and the image inspection system of the present invention is not limited to the example shown in FIG.

画像検査システム1は、画像形成装置2及び画像検査装置3を備える。画像形成装置2は、静電気を用いて画像の形成を行う電子写真方式によって用紙に画像を形成する画像形成装置の一例である。画像形成装置2は、例えば、イエロー(Y)、マゼンタ(M)、シアン(C)及びブラック(K)の4色のトナー画像を重ね合わせるタンデム形式によって、用紙上にカラー画像を形成する。画像形成装置2には、不図示のLAN(Local Area Network)を介して、オペレーターによって操作されるPC(Personal Computer)6(後述する図3を参照)等が接続されている。そして、PC6からLANを介して画像形成装置2にジョブが投入される。画像形成装置2は、投入されたジョブに従って、画像形成処理等の各種の処理を行う。 The image inspection system 1 includes an image forming device 2 and an image inspection device 3. The image forming apparatus 2 is an example of an image forming apparatus that forms an image on paper by an electrophotographic method that forms an image using static electricity. The image forming apparatus 2 forms a color image on paper in a tandem format in which toner images of four colors of yellow (Y), magenta (M), cyan (C), and black (K) are superimposed, for example. A PC (Personal Computer) 6 (see FIG. 3 to be described later) operated by an operator is connected to the image forming apparatus 2 via a LAN (Local Area Network) (not shown). Then, a job is input from the PC 6 to the image forming apparatus 2 via the LAN. The image forming apparatus 2 performs various processes such as an image forming process according to the submitted job.

始めに、画像形成装置2の構成例について説明する。
画像形成装置2は、自動原稿給送装置(ADF:Auto Document Feeder)12を有する画像入力部11、操作表示部13を備える。また、画像形成装置2は、給紙トレイ20及び画像形成部30を有するプリンター部10を備える。
First, a configuration example of the image forming apparatus 2 will be described.
The image forming apparatus 2 includes an image input unit 11 and an operation display unit 13 having an automatic document feeder (ADF: Auto Document Feeder) 12. Further, the image forming apparatus 2 includes a printer unit 10 having a paper feed tray 20 and an image forming unit 30.

画像入力部11は、ADF12の原稿台上の原稿から画像を光学的に読み取り、読み取った画像をA/D変換して画像データを生成する。なお、画像入力部11は、プラテンガラス上で原稿から画像を読み込むこともできる。 The image input unit 11 optically reads an image from the document on the platen of the ADF 12 and A / D-converts the read image to generate image data. The image input unit 11 can also read an image from the original on the platen glass.

操作表示部13は、液晶パネル等からなる表示部、及び、タッチセンサ等からなる操作部で構成される。表示部及び操作部は、例えばタッチパネルとして一体に形成される。操作表示部13は、操作部に入力されたオペレーターからの操作内容を表す操作信号を生成し、該操作信号を制御部50(後述する図3を参照)に供給する。また、操作表示部13は、制御部50から供給される表示信号に基づいて、表示部に、オペレーターによる操作内容や設定情報等を表示する。なお、操作部をマウスやタブレットなどで構成し、表示部とは別体で構成することも可能である。 The operation display unit 13 is composed of a display unit including a liquid crystal panel and the like, and an operation unit including a touch sensor and the like. The display unit and the operation unit are integrally formed as, for example, a touch panel. The operation display unit 13 generates an operation signal indicating the operation content from the operator input to the operation unit, and supplies the operation signal to the control unit 50 (see FIG. 3 to be described later). Further, the operation display unit 13 displays the operation content and setting information by the operator on the display unit based on the display signal supplied from the control unit 50. It is also possible to configure the operation unit with a mouse, tablet, or the like, and to configure it separately from the display unit.

給紙トレイ20は、画像形成部30で画像形成が行われる用紙Shを収容する容器である。給紙トレイ20には、それぞれ、紙種や坪量等が異なる用紙が収容される。用紙Shは、記録材の一例である。画像形成装置2は、記録材の一例である樹脂製のシートにも画像を形成することが可能である。なお、本実施形態では、2つの給紙トレイ20を設けた例を挙げたが、給紙トレイ20の個数は1つであってもよく、3個以上であってもよい。 The paper feed tray 20 is a container for accommodating the paper Sh on which the image is formed by the image forming unit 30. Papers having different paper types, basis weights, and the like are stored in the paper feed trays 20. Paper Sh is an example of a recording material. The image forming apparatus 2 can also form an image on a resin sheet which is an example of a recording material. In the present embodiment, an example in which two paper feed trays 20 are provided has been given, but the number of paper feed trays 20 may be one or three or more.

画像形成装置2には、給紙トレイ20から給紙された用紙Shを画像検査装置3まで搬送する搬送路21が設けられる。搬送路21には、用紙Shを搬送するための複数の搬送ローラが設けられる。 The image forming apparatus 2 is provided with a transport path 21 for transporting the paper Sh fed from the paper feed tray 20 to the image inspection device 3. The transport path 21 is provided with a plurality of transport rollers for transporting the paper Sh.

定着部36の下流側では、搬送路21が伸長して画像検査装置3の搬送路41に接続されている。また、搬送路21は、定着部36の下流側で分岐する。分岐した搬送路21の一端には、プリンター部10の上流側の搬送路21に合流する反転搬送路22が接続されている。反転搬送路22には、用紙Shを反転させる反転部23が設けられている。反転部23で反転された用紙Shは、反転搬送路22を通して搬送路21の上流側に返される。また、経路の切り替えによって反転した用紙Shが、定着部36の下流側の搬送路21に戻された後、画像検査装置3に搬送されることもある。 On the downstream side of the fixing portion 36, the transport path 21 extends and is connected to the transport path 41 of the image inspection device 3. Further, the transport path 21 branches on the downstream side of the fixing portion 36. An inverted transport path 22 that joins the transport path 21 on the upstream side of the printer unit 10 is connected to one end of the branched transport path 21. The reversing transfer path 22 is provided with a reversing portion 23 for reversing the paper Sh. The paper Sh flipped by the reversing section 23 is returned to the upstream side of the transport path 21 through the reverse transport path 22. Further, the paper Sh that has been inverted due to the route switching may be returned to the transport path 21 on the downstream side of the fixing portion 36 and then transported to the image inspection device 3.

画像形成部30は、Y、M、C及びKの各色のトナー画像を形成するための、4つの画像形成ユニット31Y,31M,31C及び31Kを備え、用紙Shに画像を形成する。画像形成ユニット31Y,31M,31C及び31Kはそれぞれ、帯電部、露光部(いずれも不図示)、像担持体としての感光体ドラム32Y,32M,32C,32K、及び、現像部33Y,33M,33C,33Kを備える。 The image forming unit 30 includes four image forming units 31Y, 31M, 31C and 31K for forming toner images of each color of Y, M, C and K, and forms an image on paper Sh. The image forming units 31Y, 31M, 31C and 31K have a charging unit, an exposure unit (all not shown), a photoconductor drum 32Y, 32M, 32C, 32K as an image carrier, and a developing unit 33Y, 33M, 33C, respectively. , 33K.

現像部33Y,33M,33C,33Kは、感光体ドラム32Y,32M,32C,32Kの各表面(外周部)に、画像に応じた光を照射することにより、各感光ドラムの周上に静電潜像を形成させる。そして、現像部33Y,33M,33C,33Kは、該静電潜像にトナーを付着させることにより、感光体ドラム32Y,32M,32C,32K上にトナー画像を形成する。 The developing units 33Y, 33M, 33C, and 33K irradiate the surfaces (outer peripheral portions) of the photoconductor drums 32Y, 32M, 32C, and 32K with light according to the image, thereby electrostatically irradiating the peripheral portions of the photosensitizing drums. Form a latent image. Then, the developing units 33Y, 33M, 33C, 33K form a toner image on the photoconductor drums 32Y, 32M, 32C, 32K by adhering the toner to the electrostatic latent image.

また、画像形成部30は、中間転写ベルト34、2次転写部35及び定着部36を備える。中間転写ベルト34は、感光体ドラム32Y,32M,32C,32Kに形成された画像が1次転写されるベルトである。2次転写部35は、中間転写ベルト34上に1次転写された各色のトナー画像を、搬送路21を搬送された用紙Shに2次転写するローラである。 Further, the image forming unit 30 includes an intermediate transfer belt 34, a secondary transfer unit 35, and a fixing unit 36. The intermediate transfer belt 34 is a belt on which images formed on the photoconductor drums 32Y, 32M, 32C, and 32K are primarily transferred. The secondary transfer unit 35 is a roller that secondarily transfers the toner images of each color primary transferred onto the intermediate transfer belt 34 onto the paper Sh transported along the transport path 21.

定着部36は、2次転写部35の用紙搬送方向の下流側に配置されて、画像形成部30から供給されるカラーのトナー画像が形成された用紙Shに対して、定着処理を施す。定着部36は、搬送された用紙Shを加熱及び加圧することにより用紙Shの表面側に、画像形成部30により転写された画像を定着する。定着部36により画像が定着した用紙Shは、搬送路21によって画像検査装置3に搬送されるか、反転搬送路22を通して反転部23により表裏が反転された後、プリンター部10の上流側で搬送路21に返される。表裏反転された用紙Shは、プリンター部10によって裏面への画像形成が行われる。その後、定着部36によって定着処理が施された用紙Shは、画像検査装置3に搬送される。 The fixing unit 36 is arranged on the downstream side of the secondary transfer unit 35 in the paper transport direction, and performs a fixing process on the paper Sh on which the color toner image supplied from the image forming unit 30 is formed. The fixing unit 36 fixes the image transferred by the image forming unit 30 on the surface side of the paper Sh by heating and pressurizing the conveyed paper Sh. The paper Sh on which the image is fixed by the fixing section 36 is conveyed to the image inspection device 3 by the conveying path 21, or is conveyed on the upstream side of the printer section 10 after being inverted by the inversion section 23 through the inversion conveying path 22. Returned to Road 21. An image is formed on the back side of the paper Sh whose front and back sides are reversed by the printer unit 10. After that, the paper Sh that has been fixed by the fixing unit 36 is conveyed to the image inspection device 3.

次に、画像検査装置3の構成例について説明する。
画像検査装置3は、画像形成装置2から搬送された用紙Shに形成(印刷)された画像に発生したスジを検出するための画像検査を行う。用紙Shに形成された画像に対する処理、すなわち画像検査装置3による画像の検査は、主に画像検査装置3に取付けられた検査処理装置5によって行われる。
Next, a configuration example of the image inspection device 3 will be described.
The image inspection device 3 performs an image inspection for detecting streaks generated in an image formed (printed) on the paper Sh conveyed from the image forming device 2. The processing of the image formed on the paper Sh, that is, the inspection of the image by the image inspection device 3, is mainly performed by the inspection processing device 5 attached to the image inspection device 3.

画像検査装置3は、画像形成装置2から搬送されてきた用紙Shを搬送する搬送路41,42,43、切替え部44、読取部45a,45b、測色計46、搬送路41上を搬送された用紙Shが排紙される排紙トレイ47,48を有する。 The image inspection device 3 is conveyed on the transfer paths 41, 42, 43, the switching unit 44, the reading units 45a, 45b, the colorimeter 46, and the transfer path 41 that convey the paper Sh conveyed from the image forming apparatus 2. It has paper ejection trays 47 and 48 from which the paper Sh is ejected.

読取部45a,45bは、それぞれイメージセンサー等の画像入力装置の一例である。読取部45a,45bは、例えば、用紙Shの表面に光を投射し、用紙Shからの反射光を画像データとして取り込む。このように読取部45a,45bが用紙Shの画像データを取り込むことを「読取る」と呼ぶ。読取部45aは、搬送路41を搬送される用紙Shを搬送路41の下方から読取り、読取部45bは、搬送路41を搬送される用紙Shを搬送路41の上方から読取る。以降の説明では、読取部45a,45bを区別しないため、「読取部45」と総称する。そして、読取部45は、取り込んだ画像データを検査処理装置5に出力する。 The reading units 45a and 45b are examples of image input devices such as image sensors, respectively. The reading units 45a and 45b project light onto the surface of the paper Sh, for example, and capture the reflected light from the paper Sh as image data. The fact that the reading units 45a and 45b capture the image data of the paper Sh in this way is called "reading". The reading unit 45a reads the paper Sh transported through the transport path 41 from below the transport path 41, and the reading unit 45b reads the paper Sh conveyed through the transport path 41 from above the transport path 41. In the following description, since the reading units 45a and 45b are not distinguished, they are collectively referred to as "reading unit 45". Then, the reading unit 45 outputs the captured image data to the inspection processing device 5.

測色計46は、搬送路41を搬送される用紙Shの上面に形成された画像を読み取り、読み取って得た画像情報に基づいて、該画像の色濃度(反射濃度)を測定する色濃度測定装置の一例である。測色計46は、例えば、光の波長ごとの反射光の強度(スペクトル)を計測可能な測色器であり、測定した色の濃度(反射濃度)や、L*a*b*値などを出力する。測色計46には、例えば、不図示の複数のセンサ(光電変換素子)を用紙幅方向(用紙搬送方向と直交する方向)の全域にわたる1次元上に配列したスキャナ(ラインセンサ)が使用される。測色計46をスキャナで構成した場合、画像の読み取りは、スキャナをその配置方向と直交する方向(用紙搬送方向)に移動させながら行われる。そして、測色計46は、画像の読み取りが行われる領域をメッシュ状に分割して得られる各領域を対象として、用紙Sh上に形成された画像の色濃度を測定する。測色計46は、測定した色濃度の情報を、検査処理装置5に出力する。 The colorimeter 46 reads an image formed on the upper surface of the paper Sh transported through the transport path 41, and measures the color density (reflection density) of the image based on the image information obtained by reading the image. This is an example of a device. The colorimeter 46 is, for example, a colorimeter capable of measuring the intensity (spectrum) of reflected light for each wavelength of light, and measures the measured color density (reflection density), L * a * b * value, and the like. Output. For the colorimeter 46, for example, a scanner (line sensor) in which a plurality of sensors (photoelectric conversion elements) (not shown) are arranged one-dimensionally over the entire area in the paper width direction (direction orthogonal to the paper transport direction) is used. To. When the colorimeter 46 is configured by a scanner, the image is read while moving the scanner in a direction orthogonal to the arrangement direction (paper transport direction). Then, the colorimeter 46 measures the color density of the image formed on the paper Sh for each region obtained by dividing the region where the image is read into a mesh shape. The colorimeter 46 outputs the measured color density information to the inspection processing device 5.

なお、測色計46を単一のセンサで構成し、該センサを2次元的に移動させることにより、用紙Shに形成された画像の色の濃度を測定してもよい。または、測色計46を2次元上(マトリクス状)に配置した複数のセンサで構成し、該複数のセンサで1回の測定により用紙上の全画素の色の濃度を読み取ってもよい。 The colorimeter 46 may be composed of a single sensor, and the sensor may be moved two-dimensionally to measure the color density of the image formed on the paper Sh. Alternatively, the colorimeter 46 may be composed of a plurality of sensors arranged two-dimensionally (matrixally), and the plurality of sensors may read the color density of all pixels on the paper by one measurement.

画像検査装置3は、搬送路41に接続される搬送路42,43を備える。
搬送路42は、搬送路41の途中から分岐する経路であり、検査処理装置5により検査された用紙Shを、排紙トレイ47(排紙部の一例)に排紙する。排紙トレイ47には、検査処理装置5によって画像が正常と判断された用紙Sh(「正常用紙」とも呼ぶ)が排紙される。
The image inspection device 3 includes transport paths 42 and 43 connected to the transport path 41.
The transport path 42 is a path that branches from the middle of the transport path 41, and the paper Sh inspected by the inspection processing device 5 is discharged to the paper discharge tray 47 (an example of the paper discharge unit). Paper Sh (also referred to as “normal paper”) whose image is determined to be normal by the inspection processing device 5 is discharged to the paper ejection tray 47.

搬送路43も搬送路41の途中から分岐する経路であり、検査処理装置5により検査された用紙Shを、排紙トレイ48(排紙部の一例)に排紙する。排紙トレイ48には、検査処理装置5によって画像が異常と判断された用紙Sh(「異常用紙」とも呼ぶ)が排紙される。 The transport path 43 is also a path that branches from the middle of the transport path 41, and the paper Sh inspected by the inspection processing device 5 is discharged to the paper discharge tray 48 (an example of the paper discharge portion). Paper Sh (also referred to as “abnormal paper”) whose image is determined to be abnormal by the inspection processing device 5 is discharged to the paper ejection tray 48.

切替え部44は、搬送路42,43のいずれかに用紙Shが搬送されるよう、用紙Shの搬送方向を切替える。なお、画像検査装置3に一つの排紙トレイ47しかない場合、正常用紙と異常用紙が混在して排紙される。この場合、正常用紙と異常用紙は、例えば、それぞれ排紙される方向に直交する方向に少しずらして排紙される。 The switching unit 44 switches the transport direction of the paper Sh so that the paper Sh is transported to either the transport path 42 or 43. If the image inspection device 3 has only one paper ejection tray 47, normal paper and abnormal paper are mixed and ejected. In this case, the normal paper and the abnormal paper are discharged, for example, with a slight shift in the direction orthogonal to the discharge direction.

画像検査装置3に搬送される用紙Shは、両面又は片面に画像が形成された印刷物である。画像検査装置3は、画像形成装置2が用紙Shの両面又は片面に形成した画像を読取り、検査処理装置5が所定の検査を行う。 The paper Sh conveyed to the image inspection device 3 is a printed matter having an image formed on both sides or one side. The image inspection device 3 reads the image formed on both sides or one side of the paper Sh by the image forming device 2, and the inspection processing device 5 performs a predetermined inspection.

なお、本実施の形態では、画像形成装置2が用紙Shの両面に画像を形成可能であるため、検査処理装置5が用紙Shの両面を検査する例を挙げた。しかし、検査処理装置5は、用紙Shの片面だけに画像を形成可能な画像形成装置から搬送された用紙Shの片面だけを検査するように構成してもよい。 In this embodiment, since the image forming apparatus 2 can form an image on both sides of the paper Sh, the inspection processing apparatus 5 inspects both sides of the paper Sh. However, the inspection processing device 5 may be configured to inspect only one side of the paper Sh conveyed from the image forming apparatus capable of forming an image on only one side of the paper Sh.

[画像形成装置の制御系の構成]
次に、図3を参照して、画像形成装置2の制御系の構成例について説明する。
図3は、画像形成装置2の制御系の構成例を示すブロック図である。
画像形成装置2は、主要な構成として、通信I/F部51、用紙搬送部24、画像入力部11、画像形成部30、制御部50、記憶部52、定着部36及び操作表示部13を備える。
[Structure of control system of image forming apparatus]
Next, a configuration example of the control system of the image forming apparatus 2 will be described with reference to FIG.
FIG. 3 is a block diagram showing a configuration example of the control system of the image forming apparatus 2.
The image forming apparatus 2 mainly includes a communication I / F unit 51, a paper conveying unit 24, an image input unit 11, an image forming unit 30, a control unit 50, a storage unit 52, a fixing unit 36, and an operation display unit 13. Be prepared.

通信I/F部51は、ネットワーク又は専用線を介して、オペレーターが操作する端末であるPC6との間でデータを送受信するインターフェースである。通信I/F部51として、例えばNIC(Network Interface Card)が用いられる。 The communication I / F unit 51 is an interface for transmitting and receiving data to and from a PC 6 which is a terminal operated by an operator via a network or a dedicated line. As the communication I / F unit 51, for example, a NIC (Network Interface Card) is used.

用紙搬送部24は、制御部50による制御に基づいて、図2に示した搬送路21、反転搬送路22上に設けられた搬送ローラ(図示略)、及び反転部23を駆動する。 The paper transport unit 24 drives a transport path 21 shown in FIG. 2, a transport roller (not shown) provided on the reverse transport path 22, and a reverse section 23 based on control by the control unit 50.

制御部50は、CPU(Central Processing Unit)501、ROM(Read Only Memory)502、RAM(Random Access Memory)503及び入力画像処理部504を備える。
ROM502には、制御部50のCPU501が実行するプログラム、又はプログラムの実行時に使用するデータ等が保存される。CPU501は、ROM502に保存されたプログラムを読み出すことにより、画像形成装置2を構成する各部の制御を行う。
RAM503には、CPU501の演算処理の途中に発生した変数やパラメータなどが一時的に書き込まれる。
The control unit 50 includes a CPU (Central Processing Unit) 501, a ROM (Read Only Memory) 502, a RAM (Random Access Memory) 503, and an input image processing unit 504.
The ROM 502 stores a program executed by the CPU 501 of the control unit 50, data used when executing the program, and the like. The CPU 501 controls each part constituting the image forming apparatus 2 by reading the program stored in the ROM 502.
Variables and parameters generated during the arithmetic processing of the CPU 501 are temporarily written in the RAM 503.

入力画像処理部504は、PC6から通信I/F部51を介して入力したジョブに含まれる入力画像に所定の画像処理(例えば、ラスタライズ処理)を施し、印刷用画像データを作成する。また、入力画像処理部504は、画像入力部11がADF12で読み取った原稿から取得した画像データ、又は、外部から取得した画像データについても画像処理を施し、印刷用画像データを作成する。この印刷用画像データは、画像形成部30及び画像検査装置3に送られる。画像検査装置3では、印刷用画像データが、出力対象画像603b(後述する図4を参照)として保存される。 The input image processing unit 504 performs predetermined image processing (for example, rasterization processing) on the input image included in the job input from the PC 6 via the communication I / F unit 51 to create print image data. Further, the input image processing unit 504 also performs image processing on the image data acquired from the document read by the image input unit 11 by the ADF 12 or the image data acquired from the outside to create image data for printing. The image data for printing is sent to the image forming unit 30 and the image inspection device 3. In the image inspection apparatus 3, the image data for printing is stored as an output target image 603b (see FIG. 4 described later).

制御部50は、用紙搬送部24を制御して搬送ローラを駆動させ、用紙Shを搬送路21上で搬送させる。また、制御部50は、入力画像処理部504が作成した印刷用画像データを画像形成部30に出力する。また、制御部50は、画像形成部30を制御して、用紙Shに画像を形成させる。また、制御部50は、定着部36を制御して、画像を用紙Shに定着させる。 The control unit 50 controls the paper transport unit 24 to drive the transport roller to transport the paper Sh on the transport path 21. Further, the control unit 50 outputs the print image data created by the input image processing unit 504 to the image forming unit 30. Further, the control unit 50 controls the image forming unit 30 to form an image on the paper Sh. Further, the control unit 50 controls the fixing unit 36 to fix the image on the paper Sh.

また、制御部50は、操作表示部13から操作信号を受信し、該操作信号に応じた制御を行う。さらに、制御部50は、操作表示部13に表示信号を出力し、操作表示部13が、各種操作指示や設定情報を入力するための各種設定画面や各種処理結果等を表示する操作画面を表示パネルに表示する。操作表示部13に表示される情報としては、画像検査装置3から出力される、スジ検出結果631(後述する図4を参照)も含まれる。 Further, the control unit 50 receives an operation signal from the operation display unit 13 and performs control according to the operation signal. Further, the control unit 50 outputs a display signal to the operation display unit 13, and the operation display unit 13 displays an operation screen for displaying various setting screens for inputting various operation instructions and setting information, various processing results, and the like. Display on the panel. The information displayed on the operation display unit 13 also includes the streak detection result 631 (see FIG. 4 described later) output from the image inspection device 3.

記憶部52には、制御部50のCPU501がプログラムを実行する際に使用するパラメータや、プログラムを実行して得られたデータなどが保存される。例えば、記憶部52には、各濃度レベルの画像形成条件等の情報が保存される。なお、記憶部52に、CPU501が実行するプログラムを記憶させてもよい。 The storage unit 52 stores parameters used when the CPU 501 of the control unit 50 executes the program, data obtained by executing the program, and the like. For example, the storage unit 52 stores information such as image formation conditions for each density level. The storage unit 52 may store the program executed by the CPU 501.

[画像検査装置の制御系の構成]
次に、図4を参照して、画像検査装置3の制御系の構成例について説明する。
図4は、画像検査装置3の制御系の構成例を示すブロック図である。
[Configuration of control system for image inspection equipment]
Next, a configuration example of the control system of the image inspection device 3 will be described with reference to FIG.
FIG. 4 is a block diagram showing a configuration example of the control system of the image inspection device 3.

画像検査装置3は、主要な構成として、通信I/F部61、用紙搬送部62、読取部45、測色計46を備える。また、画像検査装置3に取り付けられた検査処理装置5は、制御部60及び記憶部63を備える。また、検査処理装置5には、記憶装置4が取り付けられる。 The image inspection device 3 includes a communication I / F unit 61, a paper transport unit 62, a reading unit 45, and a colorimeter 46 as main configurations. Further, the inspection processing device 5 attached to the image inspection device 3 includes a control unit 60 and a storage unit 63. Further, a storage device 4 is attached to the inspection processing device 5.

通信I/F部61は、ネットワークを介して、画像形成装置2との間でデータを送受信するインターフェースである。通信I/F部61として、例えばNICが用いられる。
用紙搬送部62は、制御部60による制御に基づいて、図2に示した搬送路41上に設けられた搬送ローラ(不図示)を駆動する。
The communication I / F unit 61 is an interface for transmitting and receiving data to and from the image forming apparatus 2 via a network. For example, NIC is used as the communication I / F unit 61.
The paper transport unit 62 drives a transport roller (not shown) provided on the transport path 41 shown in FIG. 2 based on the control by the control unit 60.

上述したように読取部45は、搬送路41を搬送される用紙Shの上面及び下面に形成された画像を読取る。本実施の形態では、読取部45a,45bで読取られた用紙Shの画像データを「読取画像」と呼ぶ。 As described above, the reading unit 45 reads the images formed on the upper surface and the lower surface of the paper Sh transported through the transport path 41. In the present embodiment, the image data of the paper Sh read by the reading units 45a and 45b is referred to as a "read image".

読取部45が、画像が形成された用紙Shから読み取った画像は、読取画像603aとして、制御部60のRAM603に保存される。また、検査処理装置5が、画像形成装置2から受け取ったRIP処理済みの印刷用画像データが、出力対象画像603bとしてRAM603に保存される。後述する第2の実施の形態にて説明するように、出力対象画像603bについても、読取画像603aの検査に使用されることがある。なお、読取画像603a及び出力対象画像603bは、大容量のHDD等で構成される記憶部63に保存されてもよい。また、測色計46から画像検査装置3に出力される色濃度の情報が、読取画像603a及び出力対象画像603bに含まれてもよい。 The image read by the reading unit 45 from the paper Sh on which the image is formed is stored in the RAM 603 of the control unit 60 as the read image 603a. Further, the RIP-processed print image data received by the inspection processing device 5 from the image forming device 2 is stored in the RAM 603 as an output target image 603b. As will be described in the second embodiment described later, the output target image 603b may also be used for inspecting the read image 603a. The scanned image 603a and the output target image 603b may be stored in a storage unit 63 composed of a large-capacity HDD or the like. Further, the color density information output from the colorimeter 46 to the image inspection device 3 may be included in the scanned image 603a and the output target image 603b.

制御部60は、CPU601、ROM602、RAM603、変化量算出部611、欠陥特徴量抽出部612及び品質判断部613を備える。 The control unit 60 includes a CPU 601 and a ROM 602, a RAM 603, a change amount calculation unit 611, a defect feature amount extraction unit 612, and a quality determination unit 613.

CPU601は、ROM602に保存されたプログラムを読み出すことにより、画像検査装置3を構成する各部の制御を行う。CPU601がROM602から読み出したプログラムを実行することで、変化量算出部611、欠陥特徴量抽出部612及び品質判断部613の各機能が実現される。 The CPU 601 controls each part constituting the image inspection device 3 by reading the program stored in the ROM 602. By executing the program read from the ROM 602 by the CPU 601, the functions of the change amount calculation unit 611, the defect feature amount extraction unit 612, and the quality determination unit 613 are realized.

ROM602には、制御部60のCPU601が実行するプログラム、又はプログラムの実行時に使用するデータ等が保存される。ROM602は、CPU601によって実行されるプログラムを格納したコンピューター読取可能な非一過性の記録媒体の一例として用いられる。
RAM603には、CPU601の演算処理の途中に発生した変数やパラメータなどが一時的に書き込まれる。上述したようにRAM603には、読取画像603a及び出力対象画像603b、差分画像603c1、分類結果603d及びパラメータ603eも保存される。
The ROM 602 stores a program executed by the CPU 601 of the control unit 60, data used when executing the program, and the like. The ROM 602 is used as an example of a computer-readable, non-transient recording medium that stores a program executed by the CPU 601.
Variables and parameters generated during the arithmetic processing of the CPU 601 are temporarily written in the RAM 603. As described above, the read image 603a, the output target image 603b, the difference image 603c1, the classification result 603d, and the parameter 603e are also stored in the RAM 603.

パラメータ603eは、制御部60又はオペレーターによって設定された各種の値を含む。パラメータ603eは、例えば、後述するスジ特徴量からスジを検出するための欠陥検出閾値等を含む。変化量算出部611、欠陥特徴量抽出部612及び品質判断部613は、パラメータ603eから読み出した各種の値に基づいて各種の処理を行う。 The parameter 603e includes various values set by the control unit 60 or the operator. The parameter 603e includes, for example, a defect detection threshold value for detecting a streak from a streak feature amount described later. The change amount calculation unit 611, the defect feature amount extraction unit 612, and the quality determination unit 613 perform various processes based on various values read from the parameter 603e.

変化量算出部611は、読取画像603aに含まれる複数の画素のうち、注目画素71の画素値に対する、注目画素71を基準として第1の方向に第1画素数だけ離れた比較画素72の画素値の差分値を算出し、差分値を分類閾値で複数の分類値に分類した分類結果603dを画素値の変化量として算出する。注目画素71、比較画素72の例は、後述する図5に示す。以下、第1の方向を主走査方向、第2の方向を副走査方向として説明する。ただし、検出対象とするスジの方向が主走査方向であれば、第1の方向を副走査方向、第2の方向を主走査方向としてもよい。つまり、第1の方向は、印字方向に平行な水平方向、又は印字方向に垂直な垂直方向のいずれかである。また、本実施の形態では、第1画素数を“3”とする。 The change amount calculation unit 611 is a pixel of the comparison pixel 72 that is separated by the first pixel number in the first direction with respect to the pixel value of the attention pixel 71 with respect to the pixel value of the attention pixel 71 among the plurality of pixels included in the scanned image 603a. The difference value of the values is calculated, and the classification result 603d in which the difference value is classified into a plurality of classification values by the classification threshold is calculated as the amount of change in the pixel value. Examples of the attention pixel 71 and the comparison pixel 72 are shown in FIG. 5, which will be described later. Hereinafter, the first direction will be described as the main scanning direction, and the second direction will be described as the sub-scanning direction. However, if the direction of the streaks to be detected is the main scanning direction, the first direction may be the sub-scanning direction and the second direction may be the main scanning direction. That is, the first direction is either a horizontal direction parallel to the printing direction or a vertical direction perpendicular to the printing direction. Further, in the present embodiment, the number of first pixels is set to "3".

例えば、変化量算出部611は、読取画像603aに含まれる複数の画素から選択した注目画素71の画素値と、比較画素72の画素値との差分値を変化量として算出する。比較画素72は、注目画素71を基準として第1の方向に第1画素数だけ離れた位置にある画素である。そして、変化量算出部611は、読取画像603aの他の画素に対しても同様の差分処理を行って算出した差分値を含む差分画像603c1を生成する。このとき、変化量算出部611は、読取画像603aを水平又は垂直方向に所定画素数だけシフトして得たシフト画像(不図示)と、シフト前の読取画像603aとの差分をとって差分画像603c1を生成することが可能である。シフトとは、注目画素71に対して比較画素72を決定するための画素間の距離を表す。 For example, the change amount calculation unit 611 calculates the difference value between the pixel value of the attention pixel 71 selected from the plurality of pixels included in the scanned image 603a and the pixel value of the comparison pixel 72 as the change amount. The comparison pixel 72 is a pixel located at a position separated by the number of first pixels in the first direction with respect to the pixel of interest 71. Then, the change amount calculation unit 611 generates a difference image 603c1 including the difference value calculated by performing the same difference processing on the other pixels of the read image 603a. At this time, the change amount calculation unit 611 takes a difference between the shift image (not shown) obtained by shifting the read image 603a in the horizontal or vertical direction by a predetermined number of pixels and the read image 603a before the shift, and obtains a difference image. It is possible to generate 603c1. The shift represents the distance between the pixels for determining the comparison pixel 72 with respect to the pixel of interest 71.

また、変化量算出部611は、差分画像603c1に含まれる各画素の差分値の大きさ及び符号に基づいて、画素毎に複数に分類した分類結果603dを変化量として生成する。ここで、分類結果603dは、変化量算出部611が、差分画像603c1に含まれる複数の画素ごとに、差分値を分類閾値で分類(3値化)した結果として表される(後述する図5の下段)。分類閾値は、パラメータ603eに設定される値である。 Further, the change amount calculation unit 611 generates a classification result 603d classified into a plurality of pixels for each pixel as a change amount based on the size and code of the difference value of each pixel included in the difference image 603c1. Here, the classification result 603d is represented as a result of the change amount calculation unit 611 classifying (trivalentizing) the difference value by the classification threshold value for each of a plurality of pixels included in the difference image 603c1 (FIG. 5 described later). Lower row). The classification threshold is a value set in the parameter 603e.

本実施の形態では、変化量算出部611が分類閾値を参照して、差分画像603c1に含まれる各画素の差分値を、画素ごとに3値化する処理を「多値化」という。分類閾値によっては、変化量算出部611が差分画像603c1の差分値を2値化、4値化等に多値化してもよい。ここで、分類結果603dは、変化量算出部611が、差分画像603c1に含まれる複数の画素ごとに、差分値を分類閾値で分類(3値化)した結果として表される(後述する図5の下段)。 In the present embodiment, the process in which the change amount calculation unit 611 refers to the classification threshold value and digitizes the difference value of each pixel included in the difference image 603c1 for each pixel is referred to as “multi-valued”. Depending on the classification threshold value, the change amount calculation unit 611 may multi-value the difference value of the difference image 603c1 to binarize, quaternize, or the like. Here, the classification result 603d is represented as a result of the change amount calculation unit 611 classifying (trivalentizing) the difference value by the classification threshold value for each of a plurality of pixels included in the difference image 603c1 (FIG. 5 described later). Lower row).

分類閾値は、パラメータ603eに設定される値である。分類閾値は、画像検査の開始前に、予め設定される値であり、読取画像603aの解像度、用紙Shに形成された画像の種類等によって異なる値が設定されることがある。分類結果603dの詳細については、後述する図7と図8にて説明する。 The classification threshold is a value set in the parameter 603e. The classification threshold value is a value set in advance before the start of the image inspection, and may be set to a different value depending on the resolution of the scanned image 603a, the type of the image formed on the paper Sh, and the like. Details of the classification result 603d will be described with reference to FIGS. 7 and 8 described later.

欠陥特徴量抽出部612は、副走査方向にある複数の画素に基づいて算出された変化量に基づいて、用紙Shに形成された画像に発生するスジ状欠陥の特徴量(「スジ特徴量」と呼ぶ)を抽出する。例えば、欠陥特徴量抽出部612は、スジが発生する方向が副走査方向である場合に、主走査方向の所定位置ごとに分類結果603dを副走査方向に参照して、平均化結果(3値化平均化結果)からスジ特徴量を抽出する。3値化平均化結果は、変化量算出部611が分類閾値で分類して多値化した差分値を、欠陥特徴量抽出部612が平均化して得る結果であり、後述する図6の上段及び中段に示す3値化平均値で表すグラフで示される。 The defect feature amount extraction unit 612 is a feature amount of streak-like defects generated in an image formed on the paper Sh based on a change amount calculated based on a plurality of pixels in the sub-scanning direction (“streak feature amount”). Is called) is extracted. For example, when the direction in which the streaks are generated is the sub-scanning direction, the defect feature amount extraction unit 612 refers to the classification result 603d for each predetermined position in the main scanning direction in the sub-scanning direction, and refers to the averaging result (three values). Extract the streak features from the averaging result). The ternary averaging result is a result obtained by the defect feature amount extraction unit 612 averaging the difference values classified by the classification threshold value by the change amount calculation unit 611 and multi-valued. It is shown in the graph represented by the ternary average value shown in the middle row.

本実施の形態では、欠陥特徴量抽出部612が、画素値の変化量が算出された読取画像603aを主走査方向に交差する副走査方向の長さを第1のサイズ(例えば、30ライン)とした第1のスジ検出領域ごとに、用紙Shに形成された画像に発生するスジ状欠陥の第1特徴量を分類結果603dから抽出する。併せて、欠陥特徴量抽出部612が、副走査方向の長さを第1のサイズよりも短い第2のサイズ(例えば、10ライン)とした第2のスジ検出領域ごとに、スジ状欠陥の第2特徴量を分類結果603dから抽出する。この際、欠陥特徴量抽出部612は、分類結果603dの副走査方向に分類値を平均化した第1の平均値から、第1のスジ検出領域ごとに第1特徴量を抽出し、かつ、分類結果603dの副走査方向に分類値を平均化した第2の平均値から、第2のスジ検出領域ごとに第2特徴量を抽出する。スジ特徴量の詳細については、後述する図6、図9及び図10にて説明する。 In the present embodiment, the defect feature amount extraction unit 612 sets the length in the sub-scanning direction of intersecting the scanned image 603a in which the change amount of the pixel value is calculated in the main scanning direction as the first size (for example, 30 lines). The first feature amount of the streak-like defect generated in the image formed on the paper Sh is extracted from the classification result 603d for each of the first streak detection regions. At the same time, the defect feature amount extraction unit 612 sets the length in the sub-scanning direction to the second size (for example, 10 lines) shorter than the first size for each of the second streak detection regions of streak-like defects. The second feature amount is extracted from the classification result 603d. At this time, the defect feature amount extraction unit 612 extracts the first feature amount for each first streak detection region from the first average value obtained by averaging the classification values in the sub-scanning direction of the classification result 603d, and also From the second average value obtained by averaging the classification values in the sub-scanning direction of the classification result 603d, the second feature amount is extracted for each second streak detection region. The details of the streak feature amount will be described later with reference to FIGS. 6, 9 and 10.

品質判断部613は、第1特徴量を予め設定された欠陥検出閾値th1(第1の欠陥検出閾値の一例)と比較し、かつ、第2特徴量を、欠陥検出閾値th1とよりも高い欠陥検出閾値th2(第2の欠陥検出閾値の一例)と比較して、副走査方向に異なる長さのスジ状欠陥を検出し、用紙Shに形成された画像の品質を判断する。この際、品質判断部613は、欠陥検出閾値th1を超える第1特徴量が存在する主走査方向で特定される位置、又は、欠陥検出閾値th2を超える第2特徴量が存在する主走査方向で特定される位置に、スジ状欠陥があると判断する。品質判断部613が、それぞれのスジ特徴量を、欠陥検出閾値と比較してスジ状欠陥を検出する処理の詳細は、後述する図8〜図10に示す。 The quality determination unit 613 compares the first feature amount with the preset defect detection threshold th1 (an example of the first defect detection threshold), and sets the second feature amount to a defect higher than the defect detection threshold th1. Compared with the detection threshold value th2 (an example of the second defect detection threshold value), streak-like defects having different lengths in the sub-scanning direction are detected, and the quality of the image formed on the paper Sh is determined. At this time, the quality determination unit 613 is at a position specified in the main scanning direction in which the first feature amount exceeding the defect detection threshold th1 exists, or in the main scanning direction in which the second feature amount exceeding the defect detection threshold th2 exists. It is determined that there is a streak-like defect at the specified position. The details of the process in which the quality determination unit 613 compares each streak feature amount with the defect detection threshold value to detect streak-like defects are shown in FIGS. 8 to 10 described later.

品質判断部613は、スジ特徴量からスジを検出しなければ読取画像603aを正常と判断する。一方、品質判断部613は、スジ特徴量からスジを検出すれば読取画像603aを異常と判断する。そして、品質判断部613は、読取画像603aの元となったページのページ番号等を含むスジ検出結果631を記憶部63に保存する。 If the quality determination unit 613 does not detect a streak from the streak feature amount, the quality determination unit 613 determines that the read image 603a is normal. On the other hand, if the quality determination unit 613 detects a streak from the streak feature amount, the quality determination unit 613 determines that the read image 603a is abnormal. Then, the quality determination unit 613 stores the streak detection result 631 including the page number of the page that is the source of the read image 603a in the storage unit 63.

スジ検出結果631は、記憶部63に保存されるだけでなく、画像検査装置3に接続された外部の記憶装置4に送られる。記憶装置4は、例えば、画像検査装置3に接続されたUSB(Universal Serial Bus)メモリ、SSD(Solid State Drive)、HDD(Hard Disk Drive)等としてよい。スジ検出結果631が記憶装置4に送られることにより、オペレーターは、記憶装置4に保存されたスジ検出結果631を表示し、内容を確認することができる。なお、通信I/F部61を経由して接続するクラウドのサーバー(図示略)又はPC6にスジ検出結果631を転送し、保存してもよい。 The streak detection result 631 is not only stored in the storage unit 63, but also sent to an external storage device 4 connected to the image inspection device 3. The storage device 4 may be, for example, a USB (Universal Serial Bus) memory, an SSD (Solid State Drive), an HDD (Hard Disk Drive), or the like connected to the image inspection device 3. By sending the streak detection result 631 to the storage device 4, the operator can display the streak detection result 631 stored in the storage device 4 and confirm the contents. The streak detection result 631 may be transferred and saved to a cloud server (not shown) or PC6 connected via the communication I / F unit 61.

また、制御部60は、必要に応じて記憶部63から読出したスジ検出結果631を、通信I/F部61を介して画像形成装置2又はPC6に送信する。画像形成装置2は、操作表示部13にスジ検出結果631を表示することができる。このため、画像形成装置2及び画像検査装置3のオペレーターは、操作表示部13からスジ検出結果631の内容を確認することができる。また、オペレーターは、PC6からスジ検出結果631の内容を確認することもできる。 Further, the control unit 60 transmits the streak detection result 631 read from the storage unit 63 as necessary to the image forming apparatus 2 or the PC 6 via the communication I / F unit 61. The image forming apparatus 2 can display the streak detection result 631 on the operation display unit 13. Therefore, the operators of the image forming apparatus 2 and the image inspection apparatus 3 can confirm the contents of the streak detection result 631 from the operation display unit 13. The operator can also confirm the content of the streak detection result 631 from the PC 6.

制御部60は、スジ検出結果631に従って、搬送路41を搬送される用紙Shの排紙トレイ(排紙先の一例)を選択する。例えば、制御部60は、切替え部44を動作して、搬送路42に搬送させた正常用紙を排紙トレイ47に排紙させ、搬送路43に搬送させた異常用紙を排紙トレイ48に排紙させる。 The control unit 60 selects a paper ejection tray (an example of a paper ejection destination) of the paper Sh to be conveyed along the conveying path 41 according to the streak detection result 631. For example, the control unit 60 operates the switching unit 44 to eject the normal paper conveyed to the transport path 42 to the output tray 47, and eject the abnormal paper conveyed to the transport path 43 to the output tray 48. Make it paper.

また、制御部60は、スジ検出結果631にスジありと書き込まれた読取画像603aに対応するページの再印刷処理(「リカバリ処理」と呼ぶ)を、通信I/F部61を通じて画像形成装置2に指示することができる。なお、リカバリ処理は、オペレーターにより、スジの要因となった回転体のクリーニング、交換等が行われた後に、画像検査システム1にて自動的に、又はオペレーターの手動により実施される。 Further, the control unit 60 performs a page reprinting process (referred to as “recovery processing”) corresponding to the scanned image 603a written in the streak detection result 631 as having streaks through the communication I / F unit 61 to perform the image forming apparatus 2 Can be instructed to. The recovery process is performed automatically by the image inspection system 1 or manually by the operator after the rotating body that has caused the streaks has been cleaned or replaced by the operator.

次に、読取画像からスジ特徴量を抽出する手順について、図5と図6を参照して説明する。
図5は、検出対象とするスジ70が含まれる読取画像603a、及び分類結果603dの例を示す図である。
Next, the procedure for extracting the streak feature amount from the scanned image will be described with reference to FIGS. 5 and 6.
FIG. 5 is a diagram showing an example of a scanned image 603a including a streak 70 to be detected and a classification result 603d.

図5の上段にある読取画像603aの拡大図(1)には、読取画像603aの真ん中、かつ、副走査方向に検出対象とするスジ70が発生していることが示される。副走査方向に画素値を平均化したデータを図1に示したように、濃度ムラの変動周期は大きいので、スジ70を確実に検出できないことがある。 The enlarged view (1) of the scanned image 603a in the upper part of FIG. 5 shows that a streak 70 to be detected is generated in the center of the scanned image 603a and in the sub-scanning direction. As shown in FIG. 1, the data obtained by averaging the pixel values in the sub-scanning direction has a large fluctuation cycle of density unevenness, so that the streaks 70 may not be detected reliably.

そこで、変化量算出部611は、注目画素71を選び、注目画素71の近くにある画素を比較画素72として選んで、注目画素71と比較画素72の差分をとる。この際、変化量算出部611は、読取画像603aに対して、検出対象とするスジ70と直交する方向にある比較画素72と画素値の差分を取る。この例では、注目画素71に対して主走査方向にある比較画素72と画素値の差分が取られている。比較する画素が近いほど、濃度ムラの影響を受けないが、比較する画素が近過ぎるとスジによる影響を検出できない。このため、変化量算出部611は、検出対象とするスジ70の幅の半分以上離れた画素と比較する。そして、変化量算出部611は、注目画素71の位置に差分値が算出された差分画像603c1を生成する。 Therefore, the change amount calculation unit 611 selects the pixel of interest 71, selects a pixel near the pixel of interest 71 as the comparison pixel 72, and takes the difference between the pixel of interest 71 and the comparison pixel 72. At this time, the change amount calculation unit 611 takes the difference between the comparison pixel 72 and the pixel value in the direction orthogonal to the streak 70 to be detected with respect to the read image 603a. In this example, the difference between the comparison pixel 72 in the main scanning direction and the pixel value is taken with respect to the pixel of interest 71. The closer the pixels to be compared, the less affected by the density unevenness, but if the pixels to be compared are too close, the influence of streaks cannot be detected. Therefore, the change amount calculation unit 611 compares with pixels separated by half or more of the width of the streak 70 to be detected. Then, the change amount calculation unit 611 generates a difference image 603c1 in which the difference value is calculated at the position of the pixel of interest 71.

次に、欠陥特徴量抽出部614は、変化量算出部611が生成した差分画像603c1に含まれる各画素の差分値に基づいて、スジの特徴量を抽出する。ここで、欠陥特徴量抽出部614は、スジに対して直交する方向(例えば、主走査方向)に差分値を取ると比較画素72がスジの位置に来たときと、注目画素71がスジの位置に来たときとで、符号が逆の大きな値を得ることができる(後述する図6のグラフ(3)を参照)。 Next, the defect feature amount extraction unit 614 extracts the feature amount of the streaks based on the difference value of each pixel included in the difference image 603c1 generated by the change amount calculation unit 611. Here, when the defect feature amount extraction unit 614 takes a difference value in a direction orthogonal to the streak (for example, the main scanning direction), the comparison pixel 72 comes to the streak position and the attention pixel 71 is the streak. A large value whose sign is opposite to that when the position is reached can be obtained (see the graph (3) of FIG. 6 described later).

ただし、差分値から求めた欠陥特徴量の値は、スジがない箇所と比較すれば値が大きいものの、値自体は小さい。このため、変化量算出部611は、差分値を第1分類閾値Aより大きいか、または第2分類閾値Bよりも小さいかによって、値を3つの値に分類して分類結果603dを得る。なお、第1分類閾値Aは、第2分類閾値Bよりも大きい値である。以下の説明で、第1分類閾値A及び第2分類閾値Bを区別しない場合は、「分類閾値」と総称する。 However, although the value of the defect feature amount obtained from the difference value is larger than that in the place where there is no streak, the value itself is small. Therefore, the change amount calculation unit 611 classifies the values into three values according to whether the difference value is larger than the first classification threshold value A or smaller than the second classification threshold value B, and obtains the classification result 603d. The first classification threshold value A is a value larger than the second classification threshold value B. In the following description, when the first classification threshold value A and the second classification threshold value B are not distinguished, they are collectively referred to as “classification threshold value”.

図5の下段にある分類結果603dの拡大図(2)は、図5の上段にある読取画像603aの拡大図(1)を3値化した例を示す。分類結果603dは、変化量算出部611が、読取画像603aから求めた各画素の差分値を3値化して得たものである。分類結果603dは、各画素を“0”、“128”、“255”のいずれかの値に置き換えたものとして表される。ここでは、説明しやすくするために、画素毎に着色した分類結果603dの例を示す。このような分類結果603dを得るためには、適切な多値化が必要とされる。そこで、本実施の形態では、多値化処理で参照される分類閾値が、読取画像603aの領域に合わせて変動される。 The enlarged view (2) of the classification result 603d in the lower part of FIG. 5 shows an example in which the enlarged view (1) of the scanned image 603a in the upper part of FIG. 5 is quantified. The classification result 603d is obtained by the change amount calculation unit 611 ternating the difference value of each pixel obtained from the read image 603a. The classification result 603d is represented as having each pixel replaced with a value of any one of "0", "128", and "255". Here, for the sake of simplicity, an example of the classification result 603d colored for each pixel is shown. In order to obtain such a classification result 603d, appropriate multi-value increase is required. Therefore, in the present embodiment, the classification threshold value referred to in the multi-value processing is changed according to the region of the scanned image 603a.

図6は、分類結果603dからスジ特徴量を抽出する様子を示す図である。
図6の上段にあるグラフ(1)は、3値化平均値の例を示す。欠陥特徴量抽出部614は、分類結果603dを検出対象とするスジ方向に平均化した3値化平均値を算出する。この例では、オペレーターが検出対象とするスジ方向は、副走査方向であるとする。そして、3値化平均値は、主走査位置が“15”で山を作り、“18”で谷を作るグラフとして表される。
FIG. 6 is a diagram showing how the streak feature amount is extracted from the classification result 603d.
The graph (1) in the upper part of FIG. 6 shows an example of a ternary average value. The defect feature amount extraction unit 614 calculates a quantified average value obtained by averaging the classification result 603d in the streak direction for detection. In this example, it is assumed that the streak direction to be detected by the operator is the sub-scanning direction. Then, the ternary average value is represented as a graph in which a peak is formed when the main scanning position is “15” and a valley is formed when the main scanning position is “18”.

図6の中段にあるグラフ(2)についても、3値化平均値の例を示す。ただし、グラフ(2)に示す3値化平均値は、グラフ(1)に比べて3画素分(注目画素71から比較画素72までの画素数分)だけ右側にシフトした位置、すなわち図5に示した注目画素71が比較画素72の位置にシフトした状態における3値化平均値を表す。 The graph (2) in the middle of FIG. 6 also shows an example of the ternary average value. However, the ternary average value shown in the graph (2) is shifted to the right by 3 pixels (the number of pixels from the attention pixel 71 to the comparison pixel 72) as compared with the graph (1), that is, in FIG. It represents a ternary average value in a state where the indicated pixel 71 is shifted to the position of the comparison pixel 72.

図6の下段にあるグラフ(3)は、グラフ(1)からグラフ(2)を減じた値の絶対値をスジ特徴量として示す。グラフ(3)より、逆符号同士の値(例えば、主走査位置が“18”)では、他の箇所の値よりも大きい値が算出されたことが示される。そして、品質判断部613は、逆符号同士の値の差分を取って算出されたスジ特徴量が、欠陥検出閾値C(例えば、“150”)よりも大きければ、この位置にスジが生じたと判断する。 The graph (3) at the bottom of FIG. 6 shows the absolute value of the value obtained by subtracting the graph (2) from the graph (1) as the streak feature amount. From the graph (3), it is shown that the values with opposite signs (for example, the main scanning position is “18”) are calculated to be larger than the values at other locations. Then, the quality determination unit 613 determines that a streak has occurred at this position if the streak feature amount calculated by taking the difference between the values of the inverse signs is larger than the defect detection threshold value C (for example, “150”). To do.

ところで、読取画像603aに含まれるスジの長さは様々である。また、読取画像603aにはノイズが重畳することも多い。周囲の画素値よりも濃くて(階調差が大きい)短いスジは3値化平均後に抽出されるスジ特徴量の連続性が目立たないが、ノイズの影響が大きいという傾向がある。一方で、周囲の画素値と同程度の薄くて(階調差が小さい)長いスジは3値化平均後に抽出されるスジ特徴量の連続性が目立つため、ノイズの影響が小さい傾向がある。また、長いスジであれば検出可能であっても、短いスジはノイズと区別がつかないことがある。このため、ノイズを短いスジとして検出する誤検出が発生しやすい。このように長さが異なるスジを検出する方法について、図7以降を参照して説明する。 By the way, the lengths of the streaks included in the scanned image 603a vary. In addition, noise is often superimposed on the scanned image 603a. The streaks that are darker (larger gradation difference) than the surrounding pixel values and are shorter than the surrounding pixel values tend to have a large influence of noise, although the continuity of the streak feature amount extracted after the ternation averaging is inconspicuous. On the other hand, thin and long streaks as thin as the surrounding pixel values (small gradation difference) tend to be less affected by noise because the continuity of the streak feature amount extracted after the ternation averaging is conspicuous. Further, even if a long streak can be detected, a short streak may be indistinguishable from noise. Therefore, erroneous detection in which noise is detected as a short streak is likely to occur. A method of detecting streaks having different lengths in this way will be described with reference to FIGS. 7 and later.

<スジに対する低解像度化処理>
次に、読取画像603aに含まれる短いスジと長いスジを検出するために、分類結果603dを低解像度化する処理について、図7と図8を参照して説明する。
図7は、変化量算出部611が、分類結果603dを副走査方向に低解像度化して3値化平均値を算出する様子を示す図である。
<Low resolution processing for streaks>
Next, in order to detect the short streaks and the long streaks included in the scanned image 603a, the process of lowering the resolution of the classification result 603d will be described with reference to FIGS. 7 and 8.
FIG. 7 is a diagram showing how the change amount calculation unit 611 calculates the ternary average value by lowering the resolution of the classification result 603d in the sub-scanning direction.

ここでは、変化量算出部611により、副走査方向に複数の画素の画素値を、主走査方向に延びる所定のライン数毎に平均化する処理が行われる。例えば、分類結果603dの副走査方向は、Xラインで構成されているものとする。 Here, the change amount calculation unit 611 performs a process of averaging the pixel values of a plurality of pixels in the sub-scanning direction for each predetermined number of lines extending in the main scanning direction. For example, it is assumed that the sub-scanning direction of the classification result 603d is composed of X lines.

図7の左側には、短いスジの3値化平均値を算出する例が示される。図7の左上に示すように、品質判断部613が短いスジを検出可能とするために、変化量算出部611は、平均化単位を10ラインごと(斜線で示す範囲)として分類結果603dを分割したスジ検出領域ごとに3値化画素の値を平均化する。この結果、図7の左下に示すように、分類結果603dの副走査方向の長さをX/10ラインに圧縮した3値化平均画像が生成される。また、3値化平均画像の1ラインには、10ライン分の3値化画素(A)が平均化された「A平均」が格納される。分類結果603dの他のラインについても同様に低解像度化処理が行われる。本実施の形態では、3値化画素の値を副走査方向に平均化する処理を「低解像度化処理」と呼ぶ。 On the left side of FIG. 7, an example of calculating the ternary average value of short streaks is shown. As shown in the upper left of FIG. 7, in order to enable the quality judgment unit 613 to detect short streaks, the change amount calculation unit 611 divides the classification result 603d by setting the averaging unit for every 10 lines (the range indicated by the diagonal line). The values of the ternary pixels are averaged for each streak detection area. As a result, as shown in the lower left of FIG. 7, a ternary average image in which the length of the classification result 603d in the sub-scanning direction is compressed to the X / 10 line is generated. Further, in one line of the ternary average image, an "A average" obtained by averaging 10 lines of ternary pixels (A) is stored. Similarly, the resolution reduction processing is performed on the other lines of the classification result 603d. In the present embodiment, the process of averaging the values of the ternary pixels in the sub-scanning direction is called "low resolution processing".

図7の右側には、長いスジの3値化平均値を算出する例が示される。図7の右上に示すように、品質判断部613が長いスジを検出可能とするために、変化量算出部611は、平均化単位を30ラインごと(斜線で示す範囲)として分類結果603dを分割したスジ検出領域ごとに3値化画素の値を平均化する。この結果、図7の右下に示すように、分類結果603dの副走査方向の長さをX/30ラインに圧縮した3値化平均画像が生成される。また、3値化平均画像の1ラインには、30ライン分の3値化画素(A,B,C)が平均化された「A,B,C平均」が格納される。分類結果603dの他のラインについても同様に低解像度化処理が行われる。 On the right side of FIG. 7, an example of calculating the ternary average value of a long streak is shown. As shown in the upper right of FIG. 7, in order to enable the quality judgment unit 613 to detect long streaks, the change amount calculation unit 611 divides the classification result 603d by setting the averaging unit into 30 lines (the range indicated by the diagonal line). The values of the ternary pixels are averaged for each streak detection area. As a result, as shown in the lower right of FIG. 7, a ternary average image in which the length of the classification result 603d in the sub-scanning direction is compressed to the X / 30 line is generated. Further, in one line of the ternary average image, "A, B, C average" in which 30 lines of ternary pixels (A, B, C) are averaged is stored. Similarly, the resolution reduction processing is performed on the other lines of the classification result 603d.

図7に示した低解像度化処理で算出したスジ検出領域ごとの平均化結果を用いて、欠陥特徴量抽出部612がスジ特徴量を抽出する処理を行う。スジ特徴量が抽出される分類結果603dの例を説明する。 Using the averaging result for each streak detection region calculated by the resolution reduction process shown in FIG. 7, the defect feature amount extraction unit 612 performs a process of extracting the streak feature amount. An example of the classification result 603d from which the streak feature amount is extracted will be described.

図8は、分類結果603dに含まれる3値化画素と、分類結果603dに現れるノイズ80、短いスジ82及び長いスジ81の位置の例を示す図である。図8には、3値化平均前の分類結果603dの例が示される。 FIG. 8 is a diagram showing an example of the positions of the ternary pixels included in the classification result 603d, the noise 80 appearing in the classification result 603d, the short streaks 82, and the long streaks 81. FIG. 8 shows an example of the classification result 603d before the averaging.

分類結果603dの副走査方向の長さは60ラインである。分類結果603dの左側には、副走査方向の長さが60ライン分の長いスジ81が現れる。また、分類結果603dの右側上部には、副走査方向の長さが10ライン分のノイズ80が現れ、下部には、副走査方向の長さが20ライン分の短いスジ82が現れる。ノイズ80は、3値化値で表される“255”の画素が、短いスジ82に比べて何か所か途切れて現れる。 The length of the classification result 603d in the sub-scanning direction is 60 lines. On the left side of the classification result 603d, a long streak 81 having a length of 60 lines in the sub-scanning direction appears. Further, a noise 80 having a length of 10 lines in the sub-scanning direction appears in the upper right side of the classification result 603d, and a short streak 82 having a length of 20 lines in the sub-scanning direction appears in the lower part. In the noise 80, the pixels of "255" represented by the ternary value appear at some intervals as compared with the short streaks 82.

本実施の形態では、平均化単位として示される、2種類のスジ検出領域85,86が設けられる。スジ検出領域85は、分類結果603dの副走査方向の長さを第1のサイズ(例えば、30ライン)として大きさが規定される。また、スジ検出領域86は、分類結果603dの副走査方向の長さを、第1のサイズより短い第2のサイズ(例えば、10ライン)として大きさが規定される。本実施の形態では、第1のサイズは、第2のサイズの3倍以上が設定される。ただし、第1のサイズの副走査方向の長さは、第2のサイズの副走査方向の長さの2倍以上としてもよい。本実施の形態では、第1及び第2のサイズのいずれも副走査方向の長さで規定される。以下に、図9と図10を参照してスジ検出領域85,86ごとに3値化値を平均化してスジ特徴量を抽出する処理の例を説明する。 In this embodiment, two types of streak detection regions 85 and 86, which are shown as averaging units, are provided. The size of the streak detection region 85 is defined with the length of the classification result 603d in the sub-scanning direction as the first size (for example, 30 lines). The size of the streak detection region 86 is defined by setting the length of the classification result 603d in the sub-scanning direction as a second size (for example, 10 lines) shorter than the first size. In the present embodiment, the first size is set to be three times or more the second size. However, the length of the first size in the sub-scanning direction may be twice or more the length of the second size in the sub-scanning direction. In this embodiment, both the first and second sizes are defined by the length in the sub-scanning direction. Hereinafter, an example of a process of averaging the ternary values for each of the streak detection regions 85 and 86 and extracting the streak feature amount will be described with reference to FIGS. 9 and 10.

<長いスジのスジ特徴量抽出>
図9は、欠陥特徴量抽出部612が、長いスジ81の3値化平均値から長いスジ81のスジ特徴量を抽出する様子を示す図である。
<Extraction of long streak streak features>
FIG. 9 is a diagram showing how the defect feature amount extraction unit 612 extracts the streak feature amount of the long streak 81 from the ternary average value of the long streak 81.

上述した図7に示したように、欠陥特徴量抽出部612が、分類結果603dから長いスジ81の特徴量を抽出する際には、30ラインを平均化単位とした低解像度化処理を行って3値化平均値を求める。図9の上部には、低解像度化処理が行われた分類結果603d(3値化平均画像90)の例が示される。30ラインを平均化単位としたため、欠陥特徴量抽出部612が低解像度化処理を行うと、分類結果603dの副走査方向の長さが2ライン分(=60/30)に圧縮された3値化平均画像90が生成される。3値化平均画像90は、一時的にRAM603に保存される。そして、欠陥特徴量抽出部612は、3値化平均画像90の主走査方向に8画素分、副走査方向に1画素分の検査領域(1)91を対象として、スジ特徴量を算出する。 As shown in FIG. 7 described above, when the defect feature amount extraction unit 612 extracts the feature amount of the long streaks 81 from the classification result 603d, it performs a resolution reduction process with 30 lines as the averaging unit. Find the ternary average value. An example of the classification result 603d (trivalent average image 90) subjected to the low resolution processing is shown in the upper part of FIG. 9. Since 30 lines are used as the averaging unit, when the defect feature amount extraction unit 612 performs the resolution reduction processing, the length of the classification result 603d in the sub-scanning direction is compressed to 2 lines (= 60/30). The average image 90 is generated. The ternary average image 90 is temporarily stored in the RAM 603. Then, the defect feature amount extraction unit 612 calculates the streak feature amount for the inspection area (1) 91 for 8 pixels in the main scanning direction and 1 pixel in the sub-scanning direction of the ternary average image 90.

図9の中央部に示す3値化平均値のグラフは、欠陥特徴量抽出部612が、上述した図6の上段にあるグラフ(1)と同様の処理で、検査領域(1)91の3値化平均値に対応して描いたものである。そして、図9の下部に示すスジ特徴量のグラフは、欠陥特徴量抽出部612が、上述した図6の下段にあるグラフ(3)と同様の処理で、図9の中央部に示す3値化平均値のグラフに示す各値から抽出したスジ特徴量を描いたものである。 In the graph of the ternary average value shown in the central portion of FIG. 9, the defect feature amount extraction unit 612 performs the same processing as the graph (1) in the upper part of FIG. It is drawn corresponding to the valued average value. Then, in the graph of the streak feature amount shown in the lower part of FIG. 9, the defect feature amount extraction unit 612 performs the same processing as the graph (3) in the lower part of FIG. The streak features extracted from each value shown in the graph of the average value are drawn.

スジ特徴量のグラフでは、スジ特徴量が“100”の位置に破線で示す欠陥検出閾値th1(第1の欠陥検出閾値の一例)が設定されている。欠陥検出閾値th1は、予めパラメータ603eに設定される値である。そして、品質判断部613は、図9の下部に示すスジ特徴量のグラフより、スジ特徴量が、欠陥検出閾値th1を超える、主走査位置が“2”〜“4”の位置に、長いスジ81を検出するので、分類結果603dの元となる読取画像603aを異常と判断できる。品質判断部613は、長いスジ81を検出した主走査位置及び副走査位置をスジ検出結果631に含めることができる。このように分類結果603dに対して低解像度化処理が行われたことにより、ノイズ80の影響が低減されるので、品質判断部613は、ノイズ80を長いスジ81と誤検知しなくなる。 In the graph of the streak feature amount, the defect detection threshold value th1 (an example of the first defect detection threshold value) shown by a broken line is set at the position where the streak feature amount is “100”. The defect detection threshold value th1 is a value set in advance in the parameter 603e. Then, from the graph of the streak feature amount shown in the lower part of FIG. 9, the quality determination unit 613 has a long streak at a position where the streak feature amount exceeds the defect detection threshold th1 and the main scanning position is “2” to “4”. Since 81 is detected, it can be determined that the scanned image 603a, which is the source of the classification result 603d, is abnormal. The quality determination unit 613 can include the main scanning position and the sub-scanning position where the long streaks 81 are detected in the streak detection result 631. By performing the low resolution processing on the classification result 603d in this way, the influence of the noise 80 is reduced, so that the quality determination unit 613 does not erroneously detect the noise 80 as a long streak 81.

<ノイズと短いスジのスジ特徴量抽出>
図10は、欠陥特徴量抽出部612が、短いスジ82の3値化平均値からノイズ80と短いスジ82のスジ特徴量を抽出する様子を示す図である。
<Extraction of noise and streak features of short streaks>
FIG. 10 is a diagram showing how the defect feature amount extraction unit 612 extracts the noise 80 and the streak feature amount of the short streak 82 from the ternary average value of the short streak 82.

短いスジ82は3値化平均化後のスジ特徴量が目立たないため、図9に示した30ライン平均による低解像度化処理で使用したスジ特徴量に対する欠陥検出閾値th1の設定を維持したままでは、品質判断部613がノイズ80を短いスジ82と誤検知してしまう。そこで、品質判断部613は、短いスジ82だけを検出するために低解像度化処理された3値化平均値から抽出されるスジ特徴量に対して、欠陥検出閾値th2(第2の欠陥検出閾値の一例)を“194”に設定変更することで、ノイズ80の誤検知を回避する。つまり、欠陥検出閾値th2は、欠陥検出閾値th1よりも高い値とする。 Since the streak feature amount after ternation averaging is not conspicuous in the short streak 82, the defect detection threshold th1 for the streak feature amount used in the low resolution processing by the 30-line averaging shown in FIG. 9 is maintained. , The quality determination unit 613 erroneously detects the noise 80 as a short streak 82. Therefore, the quality determination unit 613 sets the defect detection threshold value th2 (second defect detection threshold value) with respect to the streak feature amount extracted from the ternary average value that has been subjected to the low resolution processing in order to detect only the short streaks 82. By changing the setting of (one example) to "194", false detection of noise 80 is avoided. That is, the defect detection threshold value th2 is set to a value higher than the defect detection threshold value th1.

(ノイズあり、短いスジなしの場合)
上述した図7に示したように、欠陥特徴量抽出部612が、分類結果603dからノイズ80の特徴量を抽出する際には、10ラインを平均化単位とした低解像度化処理を行って3値化平均値を求める。図10の上部には、低解像度化処理が行われた分類結果603d(3値化平均画像95)の例が示される。10ラインを平均化単位としたため、欠陥特徴量抽出部612が低解像度化処理を行うと、分類結果603dの副走査方向の長さが6ライン分(=60/10)に圧縮された3値化平均画像95が生成される。3値化平均画像95は、一時的にRAM603に保存される。そして、欠陥特徴量抽出部612は、3値化平均画像95の上側にある主走査方向に8画素分、副走査方向に1画素分の検査領域(2)96を対象として、スジ特徴量を算出する。
(With noise and no short streaks)
As shown in FIG. 7 described above, when the defect feature amount extraction unit 612 extracts the feature amount of the noise 80 from the classification result 603d, it performs a resolution reduction process with 10 lines as the averaging unit 3 Find the valued average value. An example of the classification result 603d (trivalent average image 95) subjected to the low resolution processing is shown in the upper part of FIG. 10. Since 10 lines are used as the averaging unit, when the defect feature amount extraction unit 612 performs the resolution reduction processing, the length of the classification result 603d in the sub-scanning direction is compressed to 6 lines (= 60/10). The average image 95 is generated. The ternary average image 95 is temporarily stored in the RAM 603. Then, the defect feature amount extraction unit 612 targets the inspection area (2) 96 for 8 pixels in the main scanning direction and 1 pixel in the sub-scanning direction on the upper side of the ternary average image 95, and sets the streak feature amount. calculate.

図10の左側中央部に示す3値化平均値のグラフは、欠陥特徴量抽出部612が、上述した図6の上段にあるグラフ(1)と同様の処理で、検査領域(2)96の3値化平均値に対応して描いたものである。そして、図10の左側下部に示すスジ特徴量のグラフは、欠陥特徴量抽出部612が、上述した図6の下段にあるグラフ(3)と同様の処理で、図10の左側中央部に示す3値化平均値のグラフに示す各値から抽出したスジ特徴量を描いたものである。 In the graph of the ternary average value shown in the central portion on the left side of FIG. 10, the defect feature amount extraction unit 612 performs the same processing as the graph (1) in the upper part of FIG. It is drawn corresponding to the ternary average value. The graph of the streak feature amount shown in the lower left side of FIG. 10 is shown in the center part of the left side of FIG. 10 by the defect feature amount extraction unit 612 in the same process as the graph (3) in the lower part of FIG. The streak features extracted from each value shown in the graph of the ternary average value are drawn.

図10の左側下部に示すスジ特徴量のグラフでは、スジ特徴量が“194”の位置に欠陥検出閾値th2が設定されている。欠陥検出閾値th2は、予めパラメータ603eに設定される値である。そして、品質判断部613は、図10の左側下部に示すスジ特徴量のグラフより、スジ特徴量が、欠陥検出閾値th2を超えないので、品質判断部613は、主走査位置が“6”,“7”の位置に発生したノイズ80を短いスジ82と誤検出しない。なお、スジ特徴量として検出されるノイズ80は、品質判断部613による読取画像603aの品質判断に影響を与えない。 In the graph of the streak feature amount shown in the lower left side of FIG. 10, the defect detection threshold value th2 is set at the position where the streak feature amount is “194”. The defect detection threshold value th2 is a value set in advance in the parameter 603e. Then, from the graph of the streak feature amount shown in the lower left side of FIG. 10, the quality judgment unit 613 shows that the streak feature amount does not exceed the defect detection threshold th2. The noise 80 generated at the position of "7" is not erroneously detected as a short streak 82. The noise 80 detected as the streak feature amount does not affect the quality judgment of the read image 603a by the quality judgment unit 613.

(ノイズなし、短いスジありの場合)
上述したように、欠陥特徴量抽出部612は、3値化平均画像95の下側にある主走査方向に8画素分、副走査方向に1画素分の検査領域(3)97を対象として、スジ特徴量を算出する。
(No noise, with short streaks)
As described above, the defect feature amount extraction unit 612 targets the inspection area (3) 97 for 8 pixels in the main scanning direction and 1 pixel in the sub-scanning direction under the ternary average image 95. Calculate the streak feature amount.

図10の右側中央部に示す3値化平均値のグラフは、欠陥特徴量抽出部612が、上述した図6の上段にあるグラフ(1)と同様の処理で、検査領域(3)97に対応して描いたものである。そして、図10の右側下部に示すスジ特徴量のグラフは、欠陥特徴量抽出部612が、上述した図6の下段にあるグラフ(3)と同様の処理で、図10の右側中央部に示す3値化平均値のグラフに示す各値からスジ特徴量を抽出して描いたものである。 The graph of the ternary average value shown in the center on the right side of FIG. 10 is obtained by the defect feature amount extraction unit 612 in the inspection area (3) 97 by the same processing as the graph (1) in the upper part of FIG. 6 described above. It was drawn correspondingly. Then, the graph of the streak feature amount shown in the lower right side of FIG. 10 is shown in the center part of the right side of FIG. 10 by the defect feature amount extraction unit 612 in the same process as the graph (3) in the lower part of FIG. The streak features are extracted from each value shown in the graph of the ternary average value and drawn.

図10の右側下部に示すスジ特徴量のグラフでは、スジ特徴量が“194”の位置に欠陥検出閾値th2が設定されている。そして、品質判断部613は、図10の右側下部に示すスジ特徴量のグラフより、スジ特徴量が欠陥検出閾値th2を超える主走査位置が“7”の位置で短いスジ82を検出するので、分類結果603dの元となる読取画像603aを異常と判断できる。そして、品質判断部613は、短いスジ82を検出した主走査位置及び副走査位置をスジ検出結果631に含めることができる。 In the graph of the streak feature amount shown in the lower right side of FIG. 10, the defect detection threshold th2 is set at the position where the streak feature amount is “194”. Then, the quality determination unit 613 detects the short streak 82 at the position where the main scanning position where the streak feature amount exceeds the defect detection threshold th2 is “7” from the graph of the streak feature amount shown in the lower right side of FIG. The scanned image 603a, which is the source of the classification result 603d, can be determined to be abnormal. Then, the quality determination unit 613 can include the main scanning position and the sub-scanning position where the short streaks 82 are detected in the streak detection result 631.

次に、検査処理装置5で行われる処理の例について、図11を参照して説明する。
図11は、第1の実施の形態に係る検査処理装置5で行われる処理の例を示すフローチャートである。
Next, an example of the processing performed by the inspection processing apparatus 5 will be described with reference to FIG.
FIG. 11 is a flowchart showing an example of processing performed by the inspection processing apparatus 5 according to the first embodiment.

始めに、変化量算出部611は、RAM603から読み出して入力する読取画像603a(例えば、図5)を第1画素数(例えば、3画素)だけ画像シフトする(S1)。そして、変化量算出部611は、ステップS1より得たシフト画像と、ステップS1の処理を行っていない読取画像603aとに基づいて差分画像603c1(例えば、図4)を生成する(S2)。 First, the change amount calculation unit 611 shifts the read image 603a (for example, FIG. 5) read from the RAM 603 and inputs the image by the number of first pixels (for example, 3 pixels) (S1). Then, the change amount calculation unit 611 generates a difference image 603c1 (for example, FIG. 4) based on the shift image obtained in step S1 and the read image 603a that has not been processed in step S1 (S2).

次に、変化量算出部611は、パラメータ603eから読み出した第1分類閾値及び第2分類閾値に基づいて、差分画像603c1の3値化処理を行い、各画素に3値化した値を含む分類結果603d(例えば、図8)を生成する(S3)。 Next, the change amount calculation unit 611 performs ternation processing of the difference image 603c1 based on the first classification threshold value and the second classification threshold value read from the parameter 603e, and classifies each pixel including the ternary value. The result 603d (eg, FIG. 8) is generated (S3).

次に、欠陥特徴量抽出部612は、分類結果603dに基づいて、スジ特徴量(例えば、図9と図10の下段)を抽出する(S4)。この際、図9と図10に示したように、欠陥特徴量抽出部612は、分類結果603dを10ライン及び30ラインで低解像度化処理して生成した3値化平均画像から特定する検査領域を対象として、検査領域ごとにスジ特徴量を抽出する。 Next, the defect feature amount extraction unit 612 extracts the streak feature amount (for example, the lower part of FIGS. 9 and 10) based on the classification result 603d (S4). At this time, as shown in FIGS. 9 and 10, the defect feature amount extraction unit 612 identifies the inspection area specified from the quantified average image generated by low-resolution processing of the classification result 603d with 10 lines and 30 lines. The streak feature amount is extracted for each inspection area.

次に、品質判断部613は、抽出されたスジ特徴量を、パラメータ603eから読み出した欠陥検出閾値th1又はth2と比較して、スジを検出し(S5)、読取画像603aの品質を判断し、スジ検出結果631を記憶部63に書き込む。その後、検査処理装置5は、本処理を終了する。 Next, the quality determination unit 613 compares the extracted streak feature amount with the defect detection threshold value th1 or th2 read from the parameter 603e, detects the streak (S5), and determines the quality of the read image 603a. The streak detection result 631 is written in the storage unit 63. After that, the inspection processing device 5 ends the main processing.

以上説明した第1の実施の形態に係る検査処理装置5では、読取画像603aを数画素分シフトして得たシフト画像と、読取画像603aとの差分をとって差分画像603c1を得た後、差分画像603c1を3値化して得た分類結果603dの3値化平均値を求める。この際、検査処理装置5は、検出対象とするスジの長さに合わせて、異なるライン数で分類結果603dの副走査方向に低解像度化処理を行って算出した3値化平均値を格納した3値化平均画像の検査領域からスジ特徴量を抽出する。その後、検査処理装置5は、抽出したスジ特徴量と、検出対象とするスジの長さに合わせてパラメータ603eから取得した欠陥検出閾値とを比較して、読取画像603aにおけるスジの有無を検出する。この検査処理装置5は、副走査方向に長さが異なるスジが読取画像603aに含まれていても、それぞれのスジを確実に検出することが可能である。また、検査処理装置5は、読取画像603a内でスジが発生した領域が平坦であってもスジを検出することができ、スジの検出精度が向上する。 In the inspection processing apparatus 5 according to the first embodiment described above, the difference image 603c1 is obtained by taking the difference between the shift image obtained by shifting the read image 603a by several pixels and the read image 603a, and then obtaining the difference image 603c1. The ternary average value of the classification result 603d obtained by ternating the difference image 603c1 is obtained. At this time, the inspection processing device 5 stores the ternary average value calculated by performing the low resolution processing in the sub-scanning direction of the classification result 603d with different numbers of lines according to the length of the streaks to be detected. The streak feature amount is extracted from the inspection area of the ternary average image. After that, the inspection processing device 5 compares the extracted streak feature amount with the defect detection threshold value acquired from the parameter 603e according to the length of the streak to be detected, and detects the presence or absence of the streak in the read image 603a. .. The inspection processing device 5 can reliably detect each streak even if the scanned image 603a contains streaks having different lengths in the sub-scanning direction. Further, the inspection processing device 5 can detect the streaks even if the region where the streaks are generated in the scanned image 603a is flat, and the streak detection accuracy is improved.

また、図8に示したように、長いスジ81に対応するスジ検出領域85は、30ライン分の3値化値を平均化するため、ノイズの影響は少なくなるので、欠陥検出閾値th1を低くしてもよい。また、欠陥検出閾値th1を低くしても、品質判断部613は、薄くて長いスジ81を確実に検出することが可能となる。一方で、短いスジ82に対応するスジ検出領域86は、10ライン分の3値化値を平均化するため、ノイズ80の影響が大きくなる。しかし、短いスジ82は、濃く現れやすいので、欠陥検出閾値th2を欠陥検出閾値th1より高くすることで、ノイズ80を短いスジ82と誤検出しない。また、品質判断部613は、スジ特徴量が欠陥検出閾値th2よりも大きい短いスジ82を確実に検出することが可能となる。 Further, as shown in FIG. 8, the streak detection region 85 corresponding to the long streak 81 averages the ternary values for 30 lines, so that the influence of noise is reduced, so that the defect detection threshold th1 is lowered. You may. Further, even if the defect detection threshold value th1 is lowered, the quality determination unit 613 can reliably detect the thin and long streaks 81. On the other hand, since the streak detection region 86 corresponding to the short streak 82 averages the ternary values for 10 lines, the influence of the noise 80 becomes large. However, since the short streaks 82 tend to appear dark, the noise 80 is not erroneously detected as the short streaks 82 by setting the defect detection threshold value th2 to be higher than the defect detection threshold value th1. Further, the quality determination unit 613 can reliably detect a short streak 82 whose streak feature amount is larger than the defect detection threshold value th2.

なお、幅の広いスジは、スジによる影響(画素値の変化)がなだらかである。このため、注目画素に対して比較画素として抽出する画素の位置が近過ぎると、比較画素との差分が小さくなってスジを検出できない。一方で、注目画素に対して比較画素が遠すぎると、狭い平坦領域に生じたスジを検出できない。 It should be noted that the wide streaks have a gentle effect (change in pixel value) due to the streaks. Therefore, if the positions of the pixels to be extracted as the comparison pixels are too close to the pixels of interest, the difference from the comparison pixels becomes small and the streaks cannot be detected. On the other hand, if the comparison pixel is too far from the pixel of interest, the streaks generated in the narrow flat region cannot be detected.

そこで、変化量算出部611が差分画像603c1を得るために算出する第1画素数は、異なる複数の値(例えば、3画素、5画素、7画素、15画素)としてよい。そして、変化量算出部611は、異なる複数の値ごとに算出した差分値を注目画素の位置に格納した複数の差分画像603c1を生成してもよい。変化量算出部611が注目画素に対してシフトする比較画素のシフト数をパラメータ603eに、複数設定し、1つの注目画素に対して、異なるシフト数でシフトした比較画素との差分を求めることにより、スジの有無を並列で解析してもよい。このような処理により、欠陥特徴量抽出部612は、複数の差分画像603c1からそれぞれスジ特徴量を抽出し、品質判断部613は、抽出されたスジ特徴量からスジを検出してもよい。これにより、スジの太さによらず、読取画像603aに現れたスジを検出することができる。 Therefore, the number of first pixels calculated by the change amount calculation unit 611 in order to obtain the difference image 603c1 may be a plurality of different values (for example, 3 pixels, 5 pixels, 7 pixels, 15 pixels). Then, the change amount calculation unit 611 may generate a plurality of difference images 603c1 in which the difference values calculated for each of a plurality of different values are stored at the positions of the pixels of interest. By setting a plurality of shifts of the comparison pixel shifted by the change amount calculation unit 611 with respect to the attention pixel in the parameter 603e and obtaining the difference between the shift amount of one attention pixel and the comparison pixel shifted by a different shift number. , The presence or absence of streaks may be analyzed in parallel. By such a process, the defect feature amount extraction unit 612 may extract the streak feature amount from each of the plurality of difference images 603c1, and the quality determination unit 613 may detect the streak feature amount from the extracted streak feature amount. Thereby, the streaks appearing in the scanned image 603a can be detected regardless of the thickness of the streaks.

[第1の実施の形態の変形例]
ところで、欠陥特徴量抽出部612が、平均化領域のサイズを変更した際、低解像度化処理において、隣接するスジ検出領域(図7を参照)をまたぐスジが発生することがある。隣接するスジ検出領域をスジがまたぐと、特に短いスジがスジ検出領域で分断されるため、ノイズとして扱われる。そして、品質判断部613が短いスジを検出できない誤検出が発生してしまう。上述した実施の形態では、10ライン又は30ラインごとで規定される隣接するスジ検出領域が、副走査方向で重ならないようにして3値化平均値が算出されたが、本変形例に係る欠陥特徴量抽出部612は、隣接するスジ検出領域の一部を重ねる処理を行う。
[Modified example of the first embodiment]
By the way, when the defect feature amount extraction unit 612 changes the size of the averaging region, streaks straddling the adjacent streak detection region (see FIG. 7) may occur in the resolution reduction processing. When a streak straddles an adjacent streak detection area, a particularly short streak is divided by the streak detection area and is treated as noise. Then, an erroneous detection occurs in which the quality determination unit 613 cannot detect a short streak. In the above-described embodiment, the ternary average value is calculated so that the adjacent streak detection regions defined for every 10 lines or 30 lines do not overlap in the sub-scanning direction. The feature amount extraction unit 612 performs a process of overlapping a part of the adjacent streak detection regions.

品質判断部613が、読取画像603aに含まれる短いスジと長いスジを検出できるようにするために、欠陥特徴量抽出部612が、分類結果603dを低解像度化して3値化平均画像を生成する処理について、図12を参照して説明する。
図12は、複数のスジ検出領域の一部が重なる例を示す図である。
In order to enable the quality determination unit 613 to detect short streaks and long streaks contained in the scanned image 603a, the defect feature amount extraction unit 612 lowers the resolution of the classification result 603d and generates a ternary average image. The processing will be described with reference to FIG.
FIG. 12 is a diagram showing an example in which a part of a plurality of streak detection regions overlaps.

ここでも欠陥特徴量抽出部612により、副走査方向に複数の画素の画素値を、主走査方向に延びる所定のライン数毎に平均化する処理が行われる。例えば、分類結果603dの副走査方向は、Xラインで構成されているとする。そして、欠陥特徴量抽出部612は、第1のスジ検出領域の一部を、他の第1のスジ検出領域で重ねながら、第1のスジ検出領域及び他の第1のスジ検出領域ごとに第1特徴量を抽出し、かつ、第2のスジ検出領域の一部を、他の第2のスジ検出領域で重ねながら、第2のスジ検出領域及び他の第2のスジ検出領域ごとに第2特徴量を抽出する。 Here, too, the defect feature amount extraction unit 612 performs a process of averaging the pixel values of the plurality of pixels in the sub-scanning direction for each predetermined number of lines extending in the main scanning direction. For example, it is assumed that the sub-scanning direction of the classification result 603d is composed of X lines. Then, the defect feature amount extraction unit 612 superimposes a part of the first streak detection region on the other first streak detection region, and for each of the first streak detection region and the other first streak detection region. While extracting the first feature amount and superimposing a part of the second streak detection area on the other second streak detection area, each of the second streak detection area and the other second streak detection area. The second feature amount is extracted.

例えば、図12の左側には、短いスジの3値化平均値を算出する例が示される。図12の左上に示すように、品質判断部613が短いスジを検出可能とするため、欠陥特徴量抽出部612は、領域Aから平均化単位を10ラインごととして(斜線で示す範囲)、分類結果603dを分割したスジ検出領域101ごとに3値化画素の値を平均化する。同様に、欠陥特徴量抽出部612は、領域Bから平均化単位を10ラインごととして(斜線で示す範囲)、分類結果603dを分割したスジ検出領域102ごとに3値化画素の値を平均化する。図12に示すように、スジ検出領域101,102は、領域Bの5ラインが重なる。そして、図12の左下に示すように、分類結果603dの副走査方向は、X/10ラインに圧縮される。3値化平均画像の1ラインには、10ライン分の3値化画素(A)が平均化された「A,B平均」が格納され、次の1ラインには、「B,C平均」が格納される。分類結果603dの他のラインについても同様に低解像度化処理が行われる。 For example, on the left side of FIG. 12, an example of calculating the ternary average value of short streaks is shown. As shown in the upper left of FIG. 12, in order to enable the quality judgment unit 613 to detect short streaks, the defect feature amount extraction unit 612 classifies the averaging unit from the area A in units of 10 lines (the range indicated by the diagonal line). As a result, the values of the quantified pixels are averaged for each of the streak detection regions 101 divided by 603d. Similarly, the defect feature amount extraction unit 612 averages the values of the ternary pixels for each of the streak detection areas 102 in which the classification result 603d is divided, with the averaging unit set every 10 lines from the area B (range indicated by diagonal lines). To do. As shown in FIG. 12, the streak detection areas 101 and 102 overlap the five lines of the area B. Then, as shown in the lower left of FIG. 12, the sub-scanning direction of the classification result 603d is compressed to the X / 10 line. "A, B average" obtained by averaging 10 lines of ternary pixels (A) is stored in one line of the ternary average image, and "B, C average" is stored in the next one line. Is stored. Similarly, the resolution reduction processing is performed on the other lines of the classification result 603d.

図12の右側には、長いスジの3値化平均値を算出する例が示される。図12の右上に示すように、品質判断部613が長いスジを検出可能とするため、欠陥特徴量抽出部612は、平均化単位を30ラインごととして(斜線で示す範囲)、分類結果603dを分割したスジ検出領域103ごとに3値化画素の値を平均化する。同様に、欠陥特徴量抽出部612は、領域Cから平均化単位を30ラインごととして(斜線で示す範囲)、分類結果603dを分割したスジ検出領域104ごとに3値化画素の値を平均化する。図12に示すように、スジ検出領域103,104は、領域C〜Fの範囲で20ラインが重なる。そして、図12の右下に示すように、分類結果603dの副走査方向は、X/30ラインに圧縮される。3値化平均画像の1ラインには、30ライン分の3値化画素(A〜F)が平均化された「A〜F平均」が格納され、次の1ラインには、30ライン分の3値化画素(C〜H)が平均化された「C〜H平均」が格納される。分類結果603dの他のラインについても同様に低解像度化処理が行われる。 On the right side of FIG. 12, an example of calculating the ternary average value of a long streak is shown. As shown in the upper right of FIG. 12, in order to enable the quality judgment unit 613 to detect long streaks, the defect feature amount extraction unit 612 sets the averaging unit to every 30 lines (range indicated by diagonal lines) and sets the classification result 603d. The values of the ternary pixels are averaged for each of the divided streak detection areas 103. Similarly, the defect feature amount extraction unit 612 averages the values of the ternary pixels for each of the streak detection regions 104 in which the classification result 603d is divided, with the averaging unit set every 30 lines from the region C (range indicated by diagonal lines). To do. As shown in FIG. 12, 20 lines overlap in the streak detection areas 103 and 104 in the range of areas C to F. Then, as shown in the lower right of FIG. 12, the sub-scanning direction of the classification result 603d is compressed to the X / 30 line. One line of the ternary average image stores "A to F average" in which 30 lines of ternary pixels (A to F) are averaged, and the next one line stores 30 lines. The "C to H average" obtained by averaging the ternary pixels (C to H) is stored. Similarly, the resolution reduction processing is performed on the other lines of the classification result 603d.

このように欠陥特徴量抽出部612が、スジ検出領域ごとに平均化した3値化平均値を用いて、図9と図10に示した処理でスジ特徴量を抽出する。その後、品質判断部613は、欠陥検出閾値と、スジ特徴量とを比較して、短いスジ又は長いスジをノイズから分離して検出できる。このため、品質判断部613は、隣接する複数のスジ検出領域をまたぐようなスジであっても、欠陥特徴量抽出部612によって、複数のスジ検出領域の一部が重なるようにして画素値を平均化する処理が行われるので、品質判断部613が1つあるいは検出しやすいスジ検出領域範囲でスジを検出することが可能となる。 In this way, the defect feature amount extraction unit 612 extracts the streak feature amount by the processes shown in FIGS. 9 and 10 using the quantified average value averaged for each streak detection region. After that, the quality determination unit 613 can compare the defect detection threshold value with the streak feature amount and detect short streaks or long streaks separated from the noise. Therefore, the quality determination unit 613 determines the pixel value by the defect feature amount extraction unit 612 so that a part of the plurality of streak detection areas overlaps even if the streaks straddle a plurality of adjacent streak detection areas. Since the averaging process is performed, the quality determination unit 613 can detect one streak or a streak detection region range that is easy to detect.

[第2の実施の形態]
<平坦画像の領域以外の領域に現れるスジの検出>
上述した実施の形態では、読取画像603aの中で事前に判明している平坦な画像の領域(「平坦領域」と呼ぶ)に現れるスジを検出する処理の例を説明した。平坦領域であれば、分類閾値は検出対象とするスジの濃さ(画素値の階調差)に応じて変動させればよい。そこで、変化量算出部611は、読取画像603aから平坦領域のみを抽出して差分画像603c1を生成した後、欠陥特徴量抽出部612がスジ特徴量を抽出し、品質判断部613が、抽出された領域だけを対象としてスジを検出すればよい。
[Second Embodiment]
<Detection of streaks appearing in areas other than the flat image area>
In the above-described embodiment, an example of a process for detecting a streak appearing in a previously known flat image region (referred to as a “flat region”) in the scanned image 603a has been described. If it is a flat region, the classification threshold value may be changed according to the density of the streaks to be detected (gradation difference of pixel values). Therefore, the change amount calculation unit 611 extracts only the flat region from the read image 603a to generate the difference image 603c1, the defect feature amount extraction unit 612 extracts the streak feature amount, and the quality determination unit 613 is extracted. It is sufficient to detect the streaks only in the area.

しかし、実際の印刷物には、平坦領域だけでなく、平坦でない画像の領域(「非平坦領域」と呼ぶ)が現れる。例えば、画素値の変動量が小さいグラデーションがあるような非平坦領域に乗ったスジは目立ってしまう。そこで、第2の実施の形態では、検査処理装置5Aが、非平坦領域に現れるスジを検出する処理について説明する。 However, in an actual printed matter, not only a flat region but also a non-flat image region (referred to as "non-flat region") appears. For example, a streak on a non-flat region where there is a gradation in which the amount of fluctuation of the pixel value is small becomes conspicuous. Therefore, in the second embodiment, the process of detecting the streaks appearing in the non-flat region by the inspection processing device 5A will be described.

図13は、画像検査装置3の制御系の構成例を示すブロック図である。本実施の形態に係る画像検査装置3が備える検査処理装置5Aでは、用紙Shに画像を形成するために使用されるRIP画像が画像形成装置2から検査装置3Aに送られると、RIP画像から印刷物の非平坦領域における画素値の変動量を抽出し、抽出した変動量に基づいて、3値化する閾値を変動させる。 FIG. 13 is a block diagram showing a configuration example of the control system of the image inspection device 3. In the inspection processing device 5A included in the image inspection device 3 according to the present embodiment, when the RIP image used for forming an image on the paper Sh is sent from the image forming device 2 to the inspection device 3A, the printed matter is printed from the RIP image. The fluctuation amount of the pixel value in the non-flat region of is extracted, and the threshold value for ternation is changed based on the extracted fluctuation amount.

検査処理装置5Aの制御部60は、上述した第1の実施の形態に係る変化量算出部611、欠陥特徴量抽出部612及び品質判断部613に加えて、画像変換部615及び位置合わせ部616を備える。本実施の形態においても、CPU601がROM602から読み出したプログラムを実行することで、画像変換部615及び位置合わせ部616の各機能が実現される。 The control unit 60 of the inspection processing device 5A has an image conversion unit 615 and an alignment unit 616 in addition to the change amount calculation unit 611, the defect feature amount extraction unit 612, and the quality judgment unit 613 according to the first embodiment described above. To be equipped. Also in this embodiment, the functions of the image conversion unit 615 and the alignment unit 616 are realized by executing the program read from the ROM 602 by the CPU 601.

RAM603に保存される出力対象画像603bは、事前に画像形成装置2の制御部50でラスタライズ処理(RIP処理)が施されたビットマップ形式の画像である。この出力対象画像603bは、画像形成装置2が用紙Shに形成する画像の元となる。なお、オペレーターにより事前に正しいと判断された画像であって、読取部45によって予め読取られた画像が出力対象画像603bとして用いられてもよい。 The output target image 603b stored in the RAM 603 is a bitmap format image that has been previously subjected to rasterization processing (RIP processing) by the control unit 50 of the image forming apparatus 2. The output target image 603b is the source of the image formed on the paper Sh by the image forming apparatus 2. An image determined in advance by the operator to be correct and read in advance by the reading unit 45 may be used as the output target image 603b.

出力対象画像603bは、画像形成装置2で用紙Shに画像形成するために用いられるのでCMYKのカラーモードが設定されている。そこで、画像変換部615は、出力対象画像603bのカラーモードを、読取画像603aのカラーモードに合わせる画像変換を行う。ここで、読取画像603aのカラーモードは、RGBである。このため、画像変換部615は、出力対象画像603bのカラーモードをCMYKからRGBに変換する。以下の説明では、出力対象画像603bを、カラーモードがRGBに変換済みであるものとして説明する。 Since the output target image 603b is used by the image forming apparatus 2 to form an image on the paper Sh, the CMYK color mode is set. Therefore, the image conversion unit 615 performs image conversion that matches the color mode of the output target image 603b with the color mode of the scanned image 603a. Here, the color mode of the scanned image 603a is RGB. Therefore, the image conversion unit 615 converts the color mode of the output target image 603b from CMYK to RGB. In the following description, the output target image 603b will be described assuming that the color mode has been converted to RGB.

位置合わせ部616は、出力対象画像603bと、画像が形成された用紙Shから読み取られた読取画像603aとの印字位置を合わせる(「位置合わせ」と呼ぶ)。この時、位置合わせ部616は、RAM603から読み出した読取画像603aを、RAM603に予め保存されている出力対象画像603bの位置に合わせる。 The alignment unit 616 aligns the print position of the output target image 603b with the scanned image 603a read from the paper Sh on which the image is formed (referred to as "alignment"). At this time, the alignment unit 616 aligns the read image 603a read from the RAM 603 with the position of the output target image 603b stored in advance in the RAM 603.

そして、変化量算出部611は、位置合わせ部616が位置合わせした読取画像603aと出力対象画像603bとの差分をとって差分画像603c2を生成する。差分画像603c2は、第1の実施の形態で説明した、読取画像603aのシフト画像と、シフト前の読取画像603aとの差分をとった差分画像603c1と共にRAM603に保存される。 Then, the change amount calculation unit 611 generates the difference image 603c2 by taking the difference between the read image 603a aligned by the alignment unit 616 and the output target image 603b. The difference image 603c2 is stored in the RAM 603 together with the difference image 603c1 obtained by taking the difference between the shift image of the read image 603a and the read image 603a before the shift described in the first embodiment.

また、変化量算出部611は、差分画像603c2に基づいて、分類結果603dを作るために参照する閾値画像603fを生成する。この際、変化量算出部611は、位置合わせ部616により位置合わせされた読取画像603aの画素値の変動に合わせて分類閾値を変動させる。閾値画像603fは、後述する図14に示す第1分類閾値A、第2分類閾値Bで規定される2種類の画像であり、RAM603に保存される。変化量算出部611は、生成した閾値画像603fに基づいて、差分画像603c1を3値化して、分類結果603dを得る。 Further, the change amount calculation unit 611 generates a threshold image 603f to be referred to for creating the classification result 603d based on the difference image 603c2. At this time, the change amount calculation unit 611 changes the classification threshold value according to the change in the pixel value of the read image 603a aligned by the alignment unit 616. The threshold image 603f is two types of images defined by the first classification threshold A and the second classification threshold B shown in FIG. 14, which will be described later, and is stored in the RAM 603. The change amount calculation unit 611 digitizes the difference image 603c1 based on the generated threshold image 603f, and obtains the classification result 603d.

図14は、読取画像603aの平坦領域と非平坦領域における画素の画素値と差分値、及び分類閾値の例を示すグラフである。このグラフの横軸は主走査位置を表し、縦軸は、3種類の値(画素値、差分値及び分類閾値)を表す。また、平坦領域及び非平坦領域は、図14の上側にある差分値のグラフで規定される。 FIG. 14 is a graph showing an example of pixel values, difference values, and classification thresholds of pixels in the flat region and the non-flat region of the scanned image 603a. The horizontal axis of this graph represents the main scanning position, and the vertical axis represents three types of values (pixel value, difference value, and classification threshold value). Further, the flat region and the non-flat region are defined by the graph of the difference value on the upper side of FIG.

図14の下側にあるグラフは、RIP処理が施された出力対象画像603bの画素値の変動を表す。また、図14の上側にあるグラフは、図14の下側にあるグラフにおいて、図5と同様に、注目画素と、注目画素から水平方向(検出対象とするスジと直交方向)に3画素シフトした比較画素との差分をとって得た差分画像603c2の差分値の変動を表す。図中では、第1分類閾値A、第2分類閾値Bを、それぞれ「閾値A」、「閾値B」と記載する。 The graph on the lower side of FIG. 14 shows the fluctuation of the pixel value of the output target image 603b subjected to the RIP processing. Further, in the graph on the upper side of FIG. 14, in the graph on the lower side of FIG. 14, the pixel of interest and the pixel of interest are shifted by 3 pixels in the horizontal direction (direction orthogonal to the streak to be detected) in the same manner as in FIG. It represents the variation of the difference value of the difference image 603c2 obtained by taking the difference from the comparison pixel. In the figure, the first classification threshold value A and the second classification threshold value B are described as “threshold value A” and “threshold value B”, respectively.

出力対象画像603bの画素値は、折れ線L1のグラフで表される。折れ線L1のグラフより、主走査位置の“1”から“7”までの間が平坦領域であるので、画素値と差分値は共に変化していないことが示される。一方で、主走査位置の“7”から“33”までの間は非平坦領域であるので、画素値と差分値が変化する。例えば、非平坦領域における画素値は、主走査位置の“11”から“21”にかけて緩やかに高くなって一定値を保った後、“23”から“33”にかけて緩やかに低くなって元の値“128”に戻る。 The pixel value of the output target image 603b is represented by a graph of a polygonal line L1. From the graph of the polygonal line L1, it is shown that the pixel value and the difference value do not change because the flat region is between “1” and “7” of the main scanning position. On the other hand, since the area from "7" to "33" of the main scanning position is a non-flat region, the pixel value and the difference value change. For example, the pixel value in the non-flat region gradually increases from "11" to "21" of the main scanning position and keeps a constant value, and then gradually decreases from "23" to "33" to the original value. Return to "128".

例えば、差分値は、折れ線L10のグラフで表される。折れ線L10のグラフに示すように、非平坦領域における差分値は、主走査位置の“7”から“9”にかけて緩やかに低くなり、“9”から“17”にかけて一定のマイナス値をとり、“17”から“23”にかけて緩やかに高くなる。そして、主走査位置の“23”から“30”にかけて一定のプラス値をとり、“30”から“33”にかけて緩やかに低くなって元の値“0”に戻る。 For example, the difference value is represented by a graph of a polygonal line L10. As shown in the graph of the polygonal line L10, the difference value in the non-flat region gradually decreases from "7" to "9" at the main scanning position, takes a constant negative value from "9" to "17", and becomes " It gradually increases from 17 "to" 23 ". Then, it takes a constant positive value from "23" to "30" of the main scanning position, gradually decreases from "30" to "33", and returns to the original value "0".

ここで、差分値に対して所定値(例えば、“8”)をプラスした値を、第1分類閾値Aと呼び、差分値に対して所定値(例えば、“8”)をマイナスした値を、第2分類閾値Bと呼ぶ。第1分類閾値Aは、折れ線L11のグラフで表され、第2分類閾値Bは、折れ線L12のグラフで表される。 Here, a value obtained by adding a predetermined value (for example, "8") to the difference value is called a first classification threshold value A, and a value obtained by subtracting a predetermined value (for example, "8") from the difference value is called. , Called the second classification threshold B. The first classification threshold value A is represented by the graph of the polygonal line L11, and the second classification threshold value B is represented by the graph of the polygonal line L12.

以下の説明で、第1分類閾値A及び第2分類閾値Bを区別しない場合は、「分類閾値」と総称する。分類閾値は、パラメータ603eに記憶されている。分類閾値は、いずれも変化量算出部611が、読取画像603aの主走査位置で特定される画素を3値化するために参照される。 In the following description, when the first classification threshold value A and the second classification threshold value B are not distinguished, they are collectively referred to as “classification threshold value”. The classification threshold is stored in parameter 603e. The classification thresholds are all referred to by the change amount calculation unit 611 for ternating the pixels specified by the main scanning position of the scanned image 603a.

図15は、第2の実施の形態に係る検査処理装置5Aで行われる処理の例を示すフローチャートである。本処理において、ステップS11,S12の処理は、図11のステップS1,S2の処理と同様である。このため、ステップS21以降の処理について説明した後、ステップS13以降の処理を説明する。 FIG. 15 is a flowchart showing an example of processing performed by the inspection processing device 5A according to the second embodiment. In this process, the processes of steps S11 and S12 are the same as the processes of steps S1 and S2 of FIG. Therefore, after explaining the processing after step S21, the processing after step S13 will be described.

始めに、画像変換部615は、RAM603から読み出した出力対象画像603bのカラーモードを、CMYKからRGBに変換する(S21)。この処理により、画像変換部615は、画像検査装置3が画像形成装置2から受信した出力対象画像603b(RIP画像)のカラーモードを、読取画像603aのカラーモードに合わせる。 First, the image conversion unit 615 converts the color mode of the output target image 603b read from the RAM 603 from CMYK to RGB (S21). By this process, the image conversion unit 615 matches the color mode of the output target image 603b (RIP image) received from the image forming device 2 by the image inspection device 3 with the color mode of the scanned image 603a.

次に、位置合わせ部616は、RGBに変換された出力対象画像603bを、読取画像603aに対して位置が合うように位置合わせ処理を行う(S22)。次に、変化量算出部611は、出力対象画像603bを第1画素数だけ画像シフトする(S23)。本実施の形態では、水平方向に3画素分だけ出力対象画像603bの画像シフトが行われる。 Next, the alignment unit 616 performs alignment processing on the output target image 603b converted to RGB so that the position is aligned with the scanned image 603a (S22). Next, the change amount calculation unit 611 shifts the output target image 603b by the number of first pixels (S23). In the present embodiment, the image of the output target image 603b is shifted in the horizontal direction by three pixels.

次に、変化量算出部611は、ステップS23より得たシフト画像と、ステップS23の処理を行っていない出力対象画像603bとに基づいて差分画像603c2を生成する(S24)。 Next, the change amount calculation unit 611 generates a difference image 603c2 based on the shift image obtained in step S23 and the output target image 603b that has not been processed in step S23 (S24).

次に、変化量算出部611は、差分画像603c2に含まれる各画素の画素値ごとに所定値をプラスした値を第1分類閾値Aとし、所定値をマイナスした値を第2分類閾値Bとした閾値画像603fを生成する(S25)。閾値画像603fは、RAM603に一時保存される。 Next, the change amount calculation unit 611 sets a value obtained by adding a predetermined value for each pixel value of each pixel included in the difference image 603c2 as the first classification threshold value A, and sets a value obtained by subtracting the predetermined value as the second classification threshold value B. The threshold image 603f is generated (S25). The threshold image 603f is temporarily stored in the RAM 603.

ステップS12、S25の後、変化量算出部611は、RAM603から読み出した閾値画像603fに基づいて、差分画像603c1の3値化処理を行い、分類結果603dを生成する(S13)。次に、欠陥特徴量抽出部612は、分類結果603dを副走査方向に10ライン又は30ラインで分割したスジ検出領域ごとに3値化平均値を算出した後、スジ特徴量(図9と図10の下段を参照)を抽出する(S14)。 After steps S12 and S25, the change amount calculation unit 611 performs the quantification process of the difference image 603c1 based on the threshold image 603f read from the RAM 603, and generates the classification result 603d (S13). Next, the defect feature amount extraction unit 612 calculates the quantified average value for each streak detection region obtained by dividing the classification result 603d by 10 lines or 30 lines in the sub-scanning direction, and then the streak feature amount (FIGS. 9 and 9). (See the lower part of 10) is extracted (S14).

そして、品質判断部613は、スジ特徴量を、パラメータ603eから読み出した欠陥検出閾値と比較して、スジを検出する(S15)。品質判断部613は、スジ検出結果631を記憶部63に書き込む。その後、検査処理装置5Aは、本処理を終了する。 Then, the quality determination unit 613 compares the streak feature amount with the defect detection threshold value read from the parameter 603e, and detects the streak (S15). The quality determination unit 613 writes the streak detection result 631 in the storage unit 63. After that, the inspection processing device 5A ends the main processing.

以上説明した第2の実施の形態に係る検査処理装置5Aでは、差分値に対して分類閾値で規定される閾値画像603fを生成する。そして、閾値画像603fに基づいて差分画像603c1の3値化処理が行われる。このため、読取画像603aの非平坦領域に発生したスジについても、3値化処理により画素値が3値化されてスジ特徴量が抽出されるので、スジの検出精度を向上することができる。 The inspection processing device 5A according to the second embodiment described above generates a threshold image 603f defined by a classification threshold value with respect to the difference value. Then, the ternation process of the difference image 603c1 is performed based on the threshold image 603f. Therefore, even for the streaks generated in the non-flat region of the scanned image 603a, the pixel values are quantified by the ternary processing and the streak feature amount is extracted, so that the streak detection accuracy can be improved.

[変形例]
上述した各実施の形態では、画像検査装置3に検査処理装置5,5Aを組み合わせた構成としたが、検査処理装置5,5Aの機能を、例えば、PC6に組み込み、検査処理装置5,5Aを画像検査装置3から分離してもよい。また、画像形成装置2が、検査処理装置5,5Aの機能を有し、画像形成装置2が単体で画像検査を行ってもよい。また、検査処理装置5,5Aの機能を有するサーバーを設けて画像形成システムを構成することにより、画像検査装置3が用紙Shから読取った読取画像603a及び出力対象画像603bをサーバーが蓄積してもよい。そして、サーバーが画像検査装置3と通信することで、画像検査装置3から受信した読取画像603aのスジ検出を行い、スジ検出結果を画像検査装置3やPC6に送信してもよい。
[Modification example]
In each of the above-described embodiments, the image inspection device 3 is combined with the inspection processing devices 5 and 5A, but the functions of the inspection processing devices 5 and 5A are incorporated into, for example, the PC 6 to incorporate the inspection processing devices 5 and 5A. It may be separated from the image inspection device 3. Further, the image forming apparatus 2 may have the functions of the inspection processing devices 5 and 5A, and the image forming apparatus 2 may perform an image inspection by itself. Further, by providing a server having the functions of the inspection processing devices 5 and 5A to configure the image forming system, even if the server accumulates the scanned image 603a and the output target image 603b read from the paper Sh by the image inspection device 3. Good. Then, the server may communicate with the image inspection device 3 to detect the streaks of the read image 603a received from the image inspection device 3 and transmit the streak detection result to the image inspection device 3 or the PC 6.

なお、本発明は上述した実施の形態に限られるものではなく、特許請求の範囲に記載した本発明の要旨を逸脱しない限りその他種々の応用例、変形例を取り得ることは勿論である。
例えば、上述した実施の形態は本発明を分かりやすく説明するために装置及びシステムの構成を詳細かつ具体的に説明したものであり、必ずしも説明した全ての構成を備えるものに限定されない。また、ここで説明した実施の形態の構成の一部を他の実施の形態の構成に置き換えることは可能であり、さらにはある実施の形態の構成に他の実施の形態の構成を加えることも可能である。また、各実施の形態の構成の一部について、他の構成の追加、削除、置換をすることも可能である。
また、制御線や情報線は説明上必要と考えられるものを示しており、製品上必ずしも全ての制御線や情報線を示しているとは限らない。実際には殆ど全ての構成が相互に接続されていると考えてもよい。
It should be noted that the present invention is not limited to the above-described embodiment, and it goes without saying that various other application examples and modifications can be taken as long as the gist of the present invention described in the claims is not deviated.
For example, the above-described embodiment describes in detail and concretely the configurations of the apparatus and the system in order to explain the present invention in an easy-to-understand manner, and is not necessarily limited to those including all the described configurations. Further, it is possible to replace a part of the configuration of the embodiment described here with the configuration of another embodiment, and further, it is possible to add the configuration of another embodiment to the configuration of one embodiment. It is possible. It is also possible to add, delete, or replace a part of the configuration of each embodiment with another configuration.
In addition, the control lines and information lines indicate those that are considered necessary for explanation, and do not necessarily indicate all the control lines and information lines in the product. In practice, it can be considered that almost all configurations are interconnected.

1…画像検査システム、2…画像形成装置、3…画像検査装置、5…検査処理装置、30…画像形成部、45…読取部、60…制御部、603a…読取画像、603b…出力対象画像、603c1,603c2…差分画像、603d…分類結果、603e…パラメータ、603f…閾値画像、611…変化量算出部、612…欠陥特徴量抽出部、613…品質判断部613…画像変換部、616…位置合わせ部、631…スジ検出結果 1 ... Image inspection system, 2 ... Image forming device, 3 ... Image inspection device, 5 ... Inspection processing device, 30 ... Image forming unit, 45 ... Reading unit, 60 ... Control unit, 603a ... Scanned image, 603b ... Output target image , 603c1, 603c2 ... Difference image, 603d ... Classification result, 603e ... Parameter, 603f ... Threshold image, 611 ... Change amount calculation unit, 612 ... Defect feature amount extraction unit, 613 ... Quality judgment unit 613 ... Image conversion unit, 616 ... Alignment part, 631 ... Streak detection result

Claims (8)

画像が形成された記録材から読み取られた読取画像に含まれる複数の画素のうち、注目画素の画素値に対する、前記注目画素を基準として第1の方向に第1画素数だけ離れた比較画素の画素値の差分値を算出し、前記差分値を分類閾値で複数の分類値に分類した分類結果を前記画素値の変化量として算出する変化量算出部と、
前記分類結果の前記第1の方向に交差する第2の方向の長さを第1のサイズとした第1の欠陥検出領域ごとに、前記記録材に形成された前記画像に発生するスジ状欠陥の第1特徴量を前記分類結果から抽出し、かつ、前記第2の方向の長さを前記第1のサイズよりも短い第2のサイズとした第2の欠陥検出領域ごとに、前記スジ状欠陥の第2特徴量を前記分類結果から抽出する特徴量抽出部と、
前記第1特徴量を第1の欠陥検出閾値と比較し、かつ、前記第2特徴量を、前記第1の欠陥検出閾値よりも高い第2の欠陥検出閾値と比較して、前記第2の方向に異なる長さの前記スジ状欠陥を検出し、前記記録材に形成された前記画像の品質を判断する品質判断部と、を備える
画像検査装置。
Of the plurality of pixels included in the scanned image read from the recording material on which the image is formed, the comparative pixels that are separated by the first pixel number in the first direction with respect to the pixel value of the pixel of interest with respect to the pixel value of interest. A change amount calculation unit that calculates the difference value of the pixel value and classifies the difference value into a plurality of classification values by the classification threshold as the change amount of the pixel value.
A streak-like defect generated in the image formed on the recording material for each first defect detection region having the length of the second direction intersecting the first direction of the classification result as the first size. The first feature amount of the above is extracted from the classification result, and the length in the second direction is set to the second size shorter than the first size. A feature amount extraction unit that extracts the second feature amount of the defect from the classification result, and a feature amount extraction unit.
The second feature amount is compared with the first defect detection threshold value, and the second feature amount is compared with the second defect detection threshold value higher than the first defect detection threshold value. An image inspection apparatus including a quality determination unit that detects the streak-like defects having different lengths in directions and determines the quality of the image formed on the recording material.
前記特徴量抽出部は、前記第2の方向に前記分類値を平均化した第1の平均値から前記第1の欠陥検出領域ごとに前記第1特徴量を抽出し、かつ、前記第2の方向に前記分類値を平均化した第2の平均値から前記第2の欠陥検出領域ごとに前記第2特徴量を抽出する
請求項1に記載の画像検査装置。
The feature amount extraction unit extracts the first feature amount for each of the first defect detection regions from the first average value obtained by averaging the classification values in the second direction, and the second feature amount extraction unit. The image inspection apparatus according to claim 1, wherein the second feature amount is extracted for each of the second defect detection regions from the second average value obtained by averaging the classification values in the direction.
前記品質判断部は、前記第1の欠陥検出閾値を超える前記第1特徴量が存在する前記第1の方向で特定される位置、又は、前記第2の欠陥検出閾値を超える前記第2特徴量が存在する前記第1の方向で特定される位置に、前記スジ状欠陥があると判断する
請求項2に記載の画像検査装置。
The quality determination unit is at a position specified in the first direction in which the first feature amount that exceeds the first defect detection threshold exists, or the second feature amount that exceeds the second defect detection threshold. The image inspection apparatus according to claim 2, wherein it is determined that there is a streak-like defect at a position specified in the first direction in which the image is present.
画像形成装置が記録材に形成する画像の元となる出力対象画像のカラーモードを、前記読取画像のカラーモードに合わせて画像変換する画像変換部と、
前記画像変換部により画像変換された前記出力対象画像と、前記読取画像との位置を合わせる位置合わせ部を備え、
前記変化量算出部は、前記位置合わせ部により位置合わせされた前記読取画像の画素値の変動に合わせて前記分類閾値を変動させる
請求項3に記載の画像検査装置。
An image conversion unit that converts the color mode of the output target image, which is the source of the image formed by the image forming apparatus on the recording material, according to the color mode of the scanned image.
A positioning unit for aligning the position of the output target image converted by the image conversion unit with the read image is provided.
The image inspection apparatus according to claim 3, wherein the change amount calculation unit changes the classification threshold value according to a change in the pixel value of the read image aligned by the alignment unit.
前記特徴量抽出部は、前記第1の欠陥検出領域の一部を、他の前記第1の欠陥検出領域で重ねながら、前記第1の欠陥検出領域及び他の前記第1の欠陥検出領域ごとに前記第1特徴量を抽出し、かつ、前記第2の欠陥検出領域の一部を、他の前記第2の欠陥検出領域で重ねながら、前記第2の欠陥検出領域及び他の前記第2の欠陥検出領域ごとに前記第2特徴量を抽出する
請求項1〜4のいずれか一項に記載の画像検査装置。
The feature amount extraction unit superimposes a part of the first defect detection region on the other first defect detection region, and for each of the first defect detection region and the other first defect detection region. While extracting the first feature amount and superimposing a part of the second defect detection region on the other second defect detection region, the second defect detection region and the other second defect detection region. The image inspection apparatus according to any one of claims 1 to 4, wherein the second feature amount is extracted for each defect detection region.
前記第1のサイズは、前記第2のサイズの3倍以上である
請求項1〜5のいずれか一項に記載の画像検査装置。
The image inspection apparatus according to any one of claims 1 to 5, wherein the first size is three times or more the second size.
前記記録材から前記画像を読み取って前記読取画像を生成する読取部を備える
請求項1〜6のいずれか一項に記載の画像検査装置。
The image inspection apparatus according to any one of claims 1 to 6, further comprising a reading unit that reads the image from the recording material and generates the read image.
記録材に画像を形成する画像形成装置と、前記記録材に形成された前記画像を検査する画像検査装置と、を備え、
前記画像検査装置は、
前記記録材から読み取られた読取画像に含まれる複数の画素のうち、注目画素の画素値に対する、前記注目画素を基準として第1の方向に第1画素数だけ離れた比較画素の画素値の差分値を算出し、前記差分値を分類閾値で複数の分類値に分類した分類結果を前記画素値の変化量として算出する変化量算出部と、
前記分類結果の前記第1の方向に交差する第2の方向の長さを第1のサイズとした第1の欠陥検出領域ごとに、前記記録材に形成された前記画像に発生するスジ状欠陥の第1特徴量を前記分類結果から抽出し、かつ、前記第2の方向の長さを前記第1のサイズよりも短い第2のサイズとした第2の欠陥検出領域ごとに、前記スジ状欠陥の第2特徴量を前記分類結果から抽出する特徴量抽出部と、
前記第1特徴量を第1の欠陥検出閾値と比較し、かつ、前記第2特徴量を、前記第1の欠陥検出閾値よりも高い第2の欠陥検出閾値と比較して、前記第2の方向に異なる長さの前記スジ状欠陥を検出し、前記記録材に形成された前記画像の品質を判断する品質判断部と、を備える
画像検査システム。
An image forming apparatus for forming an image on a recording material and an image inspection apparatus for inspecting the image formed on the recording material are provided.
The image inspection device is
Of the plurality of pixels included in the scanned image read from the recording material, the difference between the pixel values of the pixels of interest and the pixel values of the comparison pixels separated by the number of first pixels in the first direction with respect to the pixels of interest. A change amount calculation unit that calculates a value and classifies the difference value into a plurality of classification values by a classification threshold as a change amount of the pixel value.
A streak-like defect generated in the image formed on the recording material for each first defect detection region having the length of the second direction intersecting the first direction of the classification result as the first size. The first feature amount of the above is extracted from the classification result, and the length in the second direction is set to the second size shorter than the first size. A feature amount extraction unit that extracts the second feature amount of the defect from the classification result, and a feature amount extraction unit.
The second feature amount is compared with the first defect detection threshold value, and the second feature amount is compared with the second defect detection threshold value higher than the first defect detection threshold value. An image inspection system including a quality determination unit that detects the streak-like defects having different lengths in directions and determines the quality of the image formed on the recording material.
JP2019196052A 2019-10-29 2019-10-29 Image inspection equipment and image inspection system Active JP7367462B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019196052A JP7367462B2 (en) 2019-10-29 2019-10-29 Image inspection equipment and image inspection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019196052A JP7367462B2 (en) 2019-10-29 2019-10-29 Image inspection equipment and image inspection system

Publications (2)

Publication Number Publication Date
JP2021071301A true JP2021071301A (en) 2021-05-06
JP7367462B2 JP7367462B2 (en) 2023-10-24

Family

ID=75712849

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019196052A Active JP7367462B2 (en) 2019-10-29 2019-10-29 Image inspection equipment and image inspection system

Country Status (1)

Country Link
JP (1) JP7367462B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1153557A (en) * 1997-08-07 1999-02-26 Dainippon Printing Co Ltd Method and device for preparing binary image, and method and device for checking stripe-shaped defect
US6366358B1 (en) * 1996-10-09 2002-04-02 Dai Nippon Printing Co., Ltd. Method and apparatus for detecting stripe defects of printed matter
JP2008134196A (en) * 2006-11-29 2008-06-12 Sharp Corp Linear defect detector, semiconductor substrate manufacturing device, linear defect detection method, semiconductor substrate manufacturing method, program for causing computer to function as the detector or the manufacturing device, and storage medium for storing the program therein
JP2017173000A (en) * 2016-03-18 2017-09-28 株式会社リコー Inspection device, inspection method, and program
JP2017181094A (en) * 2016-03-28 2017-10-05 富士フイルム株式会社 Stripe detection method and device, printer and program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6366358B1 (en) * 1996-10-09 2002-04-02 Dai Nippon Printing Co., Ltd. Method and apparatus for detecting stripe defects of printed matter
JPH1153557A (en) * 1997-08-07 1999-02-26 Dainippon Printing Co Ltd Method and device for preparing binary image, and method and device for checking stripe-shaped defect
JP2008134196A (en) * 2006-11-29 2008-06-12 Sharp Corp Linear defect detector, semiconductor substrate manufacturing device, linear defect detection method, semiconductor substrate manufacturing method, program for causing computer to function as the detector or the manufacturing device, and storage medium for storing the program therein
JP2017173000A (en) * 2016-03-18 2017-09-28 株式会社リコー Inspection device, inspection method, and program
JP2017181094A (en) * 2016-03-28 2017-10-05 富士フイルム株式会社 Stripe detection method and device, printer and program

Also Published As

Publication number Publication date
JP7367462B2 (en) 2023-10-24

Similar Documents

Publication Publication Date Title
US9536297B2 (en) Apparatus, system, and method of inspecting image, and recording medium storing image inspection control program
JP7363035B2 (en) Image inspection equipment, programs, image processing equipment, and image forming equipment
US10326916B2 (en) Inspection apparatus, inspection method and storage medium
JP6357786B2 (en) Image inspection apparatus, image inspection system, and image inspection method
US9146516B2 (en) Image forming apparatus that performs inspection of printed matter, method of controlling the same, and storage medium
JP7230444B2 (en) IMAGE INSPECTION APPARATUS, IMAGE INSPECTION METHOD AND IMAGE INSPECTION PROGRAM
JP6229480B2 (en) Image inspection apparatus, image forming system, and image inspection program
JP6705305B2 (en) Inspection device, inspection method and program
JP6635335B2 (en) Image inspection device and image forming system
JP2016035418A (en) Image processing device, output object inspection method, and program
US20210073966A1 (en) Image inspection device, image forming device, image inspection method and recording medium
JP6337541B2 (en) Image inspection apparatus, image forming system, and image inspection method
JP2016177669A (en) Image inspection device, image inspection system and image inspection method
JP6665544B2 (en) Inspection device, inspection system, inspection method and program
JP7367462B2 (en) Image inspection equipment and image inspection system
JP7367460B2 (en) Image inspection equipment and image inspection system
JP7367461B2 (en) Image inspection equipment and image inspection system
JP7443719B2 (en) Image inspection equipment and image inspection system
JP6277803B2 (en) Image inspection apparatus, image forming system, and image inspection program
US10761446B2 (en) Image forming apparatus and computer-readable recording medium storing program
JP6070310B2 (en) Image inspection apparatus, image inspection system, and image inspection method
JP6287379B2 (en) Image inspection apparatus, image inspection system, and image inspection method
JP2021111117A (en) Image inspection device and image formation device and program
JP2021096535A (en) Image inspection device and image inspection system
JP6477076B2 (en) Image inspection apparatus, image forming system, image inspection method, and image inspection program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220920

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230523

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230530

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230731

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230925

R150 Certificate of patent or registration of utility model

Ref document number: 7367462

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150