JP7225858B2 - Inspection device, inspection method and inspection program - Google Patents
Inspection device, inspection method and inspection program Download PDFInfo
- Publication number
- JP7225858B2 JP7225858B2 JP2019017441A JP2019017441A JP7225858B2 JP 7225858 B2 JP7225858 B2 JP 7225858B2 JP 2019017441 A JP2019017441 A JP 2019017441A JP 2019017441 A JP2019017441 A JP 2019017441A JP 7225858 B2 JP7225858 B2 JP 7225858B2
- Authority
- JP
- Japan
- Prior art keywords
- pixel
- pixels
- interest
- noise
- region
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000007689 inspection Methods 0.000 title claims description 71
- 238000000034 method Methods 0.000 title claims description 66
- 230000002093 peripheral effect Effects 0.000 claims description 93
- 238000012545 processing Methods 0.000 claims description 87
- 238000005070 sampling Methods 0.000 claims description 72
- 238000001514 detection method Methods 0.000 claims description 60
- 230000008569 process Effects 0.000 description 55
- 238000010586 diagram Methods 0.000 description 16
- 230000004048 modification Effects 0.000 description 15
- 238000012986 modification Methods 0.000 description 15
- 238000006243 chemical reaction Methods 0.000 description 14
- 238000012805 post-processing Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 13
- 238000012935 Averaging Methods 0.000 description 11
- 238000004891 communication Methods 0.000 description 7
- 230000007246 mechanism Effects 0.000 description 6
- 238000007796 conventional method Methods 0.000 description 5
- 230000007547 defect Effects 0.000 description 5
- 230000007717 exclusion Effects 0.000 description 5
- 230000009467 reduction Effects 0.000 description 4
- 230000015572 biosynthetic process Effects 0.000 description 3
- 238000003708 edge detection Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000003672 processing method Methods 0.000 description 3
- 239000000428 dust Substances 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000009792 diffusion process Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 238000004080 punching Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
- Facsimile Image Signal Circuits (AREA)
- Image Analysis (AREA)
Description
この発明は、検査装置、検査方法および検査プログラムに関し、特に、記録媒体に形成された画像のノイズを検出する検査装置、その検査装置で実行される検査方法およびその検査方法をコンピューターに実行させる検査プログラムに関する。 The present invention relates to an inspection device, an inspection method, and an inspection program, and more particularly, to an inspection device for detecting noise in an image formed on a recording medium, an inspection method executed by the inspection device, and an inspection that causes a computer to execute the inspection method. Regarding the program.
MFP(Multi Function Peripheral)等の画像形成装置で用紙などの記録媒体に形成された画像を検査する装置が知られている。例えば、特開2009-43111号公報には、透過原稿に付着したごみ・傷に起因する画素欠損を画像データから検出する画像処理方法が記載されている。この画像処理法は、カラーの画像データからグレイスケールの画像データを生成する工程と、前記グレイスケールの画像データを複数のブロックに分割する工程と、前記ブロックの各々に対して、各ブロックの内の画素の前記グレイスケールの画像データの標準偏差を算出する工程と、前記ブロックの各々に対して、各ブロックの内の画素の前記グレイスケールの画像データの平均値を算出する工程と、前記ブロックの各々に対して、前記標準偏差と、前記標準偏差に応じて定める係数と、前記平均値を用いて閾値を算出する工程と、前記閾値と前記グレイスケールの画像データとを比較して画素欠損を検出する工程とを有することを特徴とする。 2. Description of the Related Art An apparatus for inspecting an image formed on a recording medium such as paper in an image forming apparatus such as an MFP (Multi Function Peripheral) is known. For example, Japanese Patent Application Laid-Open No. 2009-43111 describes an image processing method for detecting, from image data, pixel defects caused by dust or scratches adhering to a transparent original. This image processing method includes the steps of generating grayscale image data from color image data, dividing the grayscale image data into a plurality of blocks, and for each of the blocks, a block within each block. calculating a standard deviation of the grayscale image data of pixels in each of said blocks; calculating an average value of said grayscale image data of pixels within each block; calculating a threshold value using the standard deviation, a coefficient determined according to the standard deviation, and the average value; and detecting.
しかしながら、特開2009-43111号公報に記載の画像処理方法では、ブロックの内の画素のグレイスケールの画像データの平均値と標準偏差とからしきい値を決定しているため、検出精度を高くすると誤検出が多くなるといった問題がある。具体的には、ハーフトーンの均一な濃度部分にも画像形成装置で画像を形成するエンジンが原因となる濃度むらが存在する場合に、その濃度むらを画素欠陥として誤検出してしまう場合がある。 However, in the image processing method described in Japanese Patent Application Laid-Open No. 2009-43111, the threshold value is determined from the average value and standard deviation of the grayscale image data of the pixels in the block. There is a problem that false detection increases. Specifically, if density unevenness caused by an engine that forms an image in an image forming apparatus exists even in a halftone uniform density portion, the density unevenness may be erroneously detected as a pixel defect. .
この発明は上述した問題点を解決するためになされたもので、この発明の目的の一つは、検出精度を高めることが可能な検査装置を提供することである。 SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems, and one of the objects of the present invention is to provide an inspection apparatus capable of improving detection accuracy.
この発明の他の目的は、検出精度を高めることが可能な検査方法を提供することである。 Another object of the present invention is to provide an inspection method capable of improving detection accuracy.
この発明のさらに他の目的は、検出精度を高めることが可能な検査プログラムを提供することである。 Still another object of the present invention is to provide an inspection program capable of improving detection accuracy.
上述した目的を達成するために、この発明のある局面によれば、検査装置は、複数の画素が二次元に配列された処理対象データを構成する複数の画素それぞれを注目画素として処理することにより、処理対象データからノイズを検出するノイズ検出手段を備え、ノイズ検出手段は、注目画素と所定の相対位置で定まる周辺領域に含まれる複数の画素の画素値に基づいて周辺領域の特徴を示す特徴量を決定する特徴量決定手段と、特徴量に基づいて注目画素に対するしきい値を決定するしきい値決定手段と、決定されたしきい値と注目画素の画素値とを比較する比較手段と、注目画素の画素値が注目画素に対して決定されたしきい値で定まる範囲外となる場合に注目画素を候補画素に決定する候補決定手段と、
所定数以上が連続する候補画素の集合からなる領域をノイズが現れるノイズ領域に決定するノイズ領域決定手段と、を含む。
In order to achieve the above object, according to one aspect of the present invention, an inspection apparatus processes each of a plurality of pixels constituting processing target data in which a plurality of pixels are arranged two-dimensionally as a pixel of interest. and noise detection means for detecting noise from the data to be processed, wherein the noise detection means indicates the characteristics of the surrounding area based on the pixel values of a plurality of pixels included in the surrounding area determined by a predetermined relative position to the pixel of interest. feature amount determining means for determining a quantity; threshold value determining means for determining a threshold value for a pixel of interest based on the feature amount; and comparing means for comparing the determined threshold value with the pixel value of the pixel of interest. candidate determination means for determining the target pixel as a candidate pixel when the pixel value of the target pixel is out of the range determined by the threshold value determined for the target pixel;
a noise region determining means for determining, as a noise region in which noise appears, a region consisting of a set of candidate pixels in which a predetermined number or more are consecutive .
この局面に従えば、注目画素と所定の相対位置で定まる周辺領域の特徴量が決定され、特徴量に基づいて注目画素に対するしきい値が決定され、しきい値と注目画素の画素値とが比較される。このため、注目画素の画素値を用いることなくしきい値が決定されるので、しきい値が適切な値に決定される。その結果、検出精度を高めることが可能な検出装置を提供することができる。 According to this aspect, the feature amount of the target pixel and the surrounding area determined by the predetermined relative position is determined, the threshold value for the target pixel is determined based on the feature amount, and the threshold value and the pixel value of the target pixel are determined. be compared. Therefore, the threshold value is determined without using the pixel value of the pixel of interest, so that the threshold value is determined to be an appropriate value. As a result, it is possible to provide a detection device capable of improving detection accuracy.
好ましくは、周辺領域に含まれる複数のブロック毎にブロックの特徴を示すサブ特徴量を決定するサブ特徴量決定手段と、複数のブロック毎に決定されたサブ特徴量に基づいて、複数のブロックのうちから1以上の候補ブロックを決定する候補ブロック決定手段と、をさらに備え、特徴量決定手段は、1以上の候補ブロックそれぞれに含まれる複数の画素の画素値に基づいて、周辺領域の特徴量を決定する。 Preferably, sub-feature determining means for determining a sub-feature representing a block feature for each of a plurality of blocks included in the peripheral region; candidate block determining means for determining one or more candidate blocks from among them, wherein the feature amount determining means determines the feature amount of the surrounding area based on pixel values of a plurality of pixels included in each of the one or more candidate blocks. to decide.
この局面に従えば、周辺領域に含まれる複数のブロック毎に決定されたサブ特徴量に基づいて、複数のブロックのうちから1以上の候補ブロックが決定され、1以上の候補ブロックそれぞれに含まれる複数の画素の画素値に基づいて、周辺領域の特徴量が決定される。このため、周辺領域に含まれる複数の画素のうち、画素値が他の画素と異なる画素を除外して特徴量が決定されるので、しきい値の精度を向上させることができる。 According to this aspect, one or more candidate blocks are determined from among the plurality of blocks based on sub-feature amounts determined for each of the plurality of blocks included in the peripheral region, and are included in each of the one or more candidate blocks. A feature amount of the peripheral area is determined based on the pixel values of the plurality of pixels. Therefore, the feature amount is determined by excluding pixels whose pixel values are different from those of other pixels among the plurality of pixels included in the peripheral region, so that the accuracy of the threshold value can be improved.
好ましくは、それぞれが注目画素と所定の相対位置で定まる複数のサンプリング領域ごとに、サンプリング領域に含まれる複数の画素の画素値に基づいてサンプリング領域の特徴を示すサンプリング特徴量を決定するサンプリング特徴量決定手段と、複数のサンプリング領域ごとに決定されたサンプリング特徴量に基づいて、複数のサンプリング領域のうち1以上を周辺領域に決定する周辺領域決定手段と、をさらに備える。 Preferably, for each of a plurality of sampling regions each determined by a predetermined relative position to the pixel of interest, a sampling feature quantity for determining a sampling feature quantity representing a feature of the sampling region based on pixel values of a plurality of pixels included in the sampling region. The apparatus further comprises determining means, and peripheral area determining means for determining one or more of the plurality of sampling areas as the peripheral area based on the sampling feature amount determined for each of the plurality of sampling areas.
この局面に従えば、注目画素と所定の相対位置で定まる複数のサンプリング領域のサンプリング特徴量に基づいて、複数のサンプリング領域のうち1以上が周辺領域に決定される。このため、複数のサンプリング領域のうちから文字等を含むサンプリング領域を除外することができるので、しきい値の精度を向上させることができる。 According to this aspect, one or more of the plurality of sampling regions are determined as the peripheral region based on the sampling feature amounts of the plurality of sampling regions determined by the pixel of interest and the predetermined relative position. For this reason, the sampling areas containing characters or the like can be excluded from among the plurality of sampling areas, so that the precision of the threshold value can be improved.
好ましくは、サンプリング特徴量は、複数の画素の画素値の標準偏差、または、標準偏差および平均値である。 Preferably, the sampling feature amount is the standard deviation or the standard deviation and average value of pixel values of a plurality of pixels.
この局面に従えば、注目画素が周辺領域に含まれる複数の画素と比較して特異な値か否かを判断することができる。 According to this aspect, it is possible to determine whether or not the pixel of interest has a unique value in comparison with a plurality of pixels included in the surrounding area.
好ましくは、画像形成装置が画像を形成した記録媒体を読み取り、画像データを出力する読取手段と、画像データから処理対象データを生成する処理対象データ生成手段と、をさらに備える。 Preferably, the image forming apparatus further comprises reading means for reading a recording medium on which an image is formed and outputting image data, and processing target data generating means for generating processing target data from the image data.
この局面に従えば、画像形成装置による画像形成における不良を検出することができる。 According to this aspect, a defect in image formation by the image forming apparatus can be detected.
好ましくは、画像形成装置が記録媒体に形成した画像の元になる元データを取得する元データ取得手段と、元データ中で所定の特徴が表された特徴領域を決定する特徴領域決定手段と、をさらに備え、特徴量決定手段は、周辺領域のうち特徴領域以外の領域に含まれる複数の画素に基づいて周辺領域の特徴量を決定する。 Preferably, an original data obtaining means for obtaining original data that is the basis of an image formed on a recording medium by the image forming apparatus; a characteristic area determining means for determining a characteristic area in which a predetermined characteristic is expressed in the original data; wherein the feature quantity determination means determines the feature quantity of the peripheral region based on a plurality of pixels included in a region other than the feature region in the peripheral region.
この局面に従えば、周辺領域のうち元データ中で所定の特徴が表された特徴領域以外の領域に含まれる複数の画素に基づいて周辺領域の特徴量が決定される。このため、元データに含まれる特徴領域が周辺領域から除外されるので、しきい値の精度を向上させることができる。 According to this aspect, the feature amount of the peripheral region is determined based on the plurality of pixels included in the peripheral region other than the feature region in which the predetermined feature is expressed in the original data. Therefore, since the feature area included in the original data is excluded from the peripheral area, it is possible to improve the accuracy of the threshold value.
好ましくは、処理対象データ生成手段は、読取手段が出力する画像データの解像度を変更することにより処理対象データを生成する。 Preferably, the processing target data generating means generates the processing target data by changing the resolution of the image data output by the reading means.
この局面に従えば、画像データの解像度を変更することにより処理対象データが生成されるので、画像データに含まれる高周波のノイズを除去することができる。 According to this aspect, the processing target data is generated by changing the resolution of the image data, so high-frequency noise contained in the image data can be removed.
この発明の他の局面によれば、検査装置は、複数の画素が二次元に配列された処理対象データを構成する複数の画素それぞれを注目画素として処理することにより、処理対象データからノイズを検出するノイズ検出手段と、画像形成装置が画像を形成した記録媒体を読み取り、画像データを出力する読取手段と、画像データから処理対象データを生成する処理対象データ生成手段と、を備え、処理対象データ生成手段は、読取手段が出力する画像データの解像度を変更することにより処理対象データを生成し、ノイズ検出手段は、注目画素と所定の相対位置で定まる周辺領域に含まれる複数の画素の画素値に基づいて周辺領域の特徴を示す特徴量を決定する特徴量決定手段と、特徴量に基づいて注目画素に対するしきい値を決定するしきい値決定手段と、決定されたしきい値と注目画素の画素値とを比較する比較手段と、を含み、ノイズ検出手段は、注目画素の画素値が注目画素に対して決定されたしきい値で定まる範囲外となる場合に注目画素をノイズが現れるノイズ領域に決定する。 According to another aspect of the present invention, the inspection apparatus detects noise from the data to be processed by processing each of a plurality of pixels constituting the data to be processed in which a plurality of pixels are arranged two-dimensionally as a pixel of interest. a noise detection means for reading a recording medium on which an image is formed by an image forming apparatus, and a reading means for outputting image data; and a processing target data generating means for generating processing target data from the image data; The generating means generates data to be processed by changing the resolution of the image data output by the reading means, and the noise detecting means detects pixel values of a plurality of pixels included in a peripheral area determined by a predetermined relative position to the target pixel. feature amount determination means for determining a feature amount indicating a feature of a peripheral region based on the threshold value determination means for determining a threshold value for a target pixel based on the feature amount; and the determined threshold value and the target pixel and a comparison means for comparing the pixel value of the target pixel with the pixel value of the target pixel, and the noise detection means determines that noise appears in the target pixel when the pixel value of the target pixel is outside the range determined by the threshold value determined for the target pixel. Decide on the noise region.
この局面に従えば、注目画素と同じサイズのノイズ領域を検出することができる。 According to this aspect, a noise region having the same size as the pixel of interest can be detected.
好ましくは、処理対象データ生成手段は、読取手段が出力する画像データに含まれる複数の画素の画素値に代えて当該画素を含む所定範囲の複数の画素の画素値の平均値を設定したデータを処理対象データとして生成する。 Preferably, the processing target data generating means generates data obtained by setting an average value of pixel values of a plurality of pixels in a predetermined range including the pixel in place of the pixel values of the plurality of pixels included in the image data output by the reading means. Generate as data to be processed.
この局面に従えば、画像データに含まれる複数の画素の画素値がその画素を含む所定範囲の複数の画素の画素値の平均値に設定したデータが処理対象データとして生成される。このため、画像データに含まれる高周波の変動成分を除去することができる。 According to this aspect, data in which the pixel values of the plurality of pixels included in the image data are set to the average value of the pixel values of the plurality of pixels in the predetermined range including the pixel is generated as the processing target data. Therefore, it is possible to remove high-frequency fluctuation components included in the image data.
好ましくは、ノイズ検出手段は、注目画素の画素値が注目画素に対して決定されたしきい値で定まる範囲外となる場合に注目画素を候補画素に決定する候補決定手段と、所定数以上が連続する候補画素の集合からなる領域をノイズが現れるノイズ領域に決定するノイズ領域決定手段と、をさらに含む。 Preferably, the noise detection means includes candidate determination means for determining the pixel of interest as a candidate pixel when the pixel value of the pixel of interest is outside the range determined by the threshold value determined for the pixel of interest; A noise area determining means for determining an area consisting of a set of consecutive candidate pixels as a noise area in which noise appears.
この局面に従えば、注目画素よりサイズの大きなノイズ領域を検出することができる。 According to this aspect, it is possible to detect a noise region that is larger in size than the pixel of interest.
好ましくは、周辺領域は、注目画素を除く注目画素の周辺の領域である。 Preferably, the peripheral area is an area around the pixel of interest excluding the pixel of interest.
この局面に従えば、注目画素の画素値がしきい値を決定するための母数とならないので、しきい値の精度を高めることができる。 According to this aspect, the pixel value of the pixel of interest does not serve as a parameter for determining the threshold value, so the accuracy of the threshold value can be improved.
好ましくは、周辺領域は、注目画素から第1距離の距離以上離れた領域である。 Preferably, the peripheral area is an area that is at least the first distance away from the pixel of interest.
この局面に従えば、注目画素のサイズより大きなサイズのノイズを検出することができる。 According to this aspect, it is possible to detect noise having a size larger than the size of the pixel of interest.
好ましくは、周辺領域は、注目画素から第2距離の以下の領域である。 Preferably, the peripheral area is an area below the second distance from the pixel of interest.
好ましくは、周辺領域は、注目画素から所定の方向に第2距離以下の領域である。 Preferably, the peripheral area is an area within a second distance in a predetermined direction from the pixel of interest.
この局面に従えば、所定の方向に直行するすじのノイズを検出することができる。 According to this aspect, it is possible to detect streak noise that is orthogonal to a predetermined direction.
好ましくは、周辺領域は、注目画素から第1方向に第2距離以下の第1領域と、注目画素から第1方向と交わる第2方向に第2距離以下の第2領域と、を含む。 Preferably, the peripheral area includes a first area at a second distance or less in a first direction from the pixel of interest, and a second area at a second distance or less in a second direction intersecting the first direction from the pixel of interest.
この局面に従えば、第1方向平行なすじのノイズおよび第2方向に平行なすじのノイズを検出することができる。 According to this aspect, noise of stripes parallel to the first direction and noise of stripes parallel to the second direction can be detected.
この発明のさらに他の局面によれば、検査方法は、検査装置で実行される検査方法であって、複数の画素が二次元に配列された処理対象データを構成する複数の画素それぞれを注目画素として処理することにより、処理対象データからノイズを検出するノイズ検出ステップを含み、ノイズ検出ステップは、注目画素と所定の相対位置で定まる周辺領域に含まれる複数の画素の画素値に基づいて周辺領域の特徴を示す特徴量を決定する特徴量決定ステップと、特徴量に基づいて注目画素に対するしきい値を決定するしきい値決定ステップと、決定されたしきい値と注目画素の画素値とを比較する比較ステップと、比較ステップにおける比較結果に基づいて処理対象データからノイズを検出するステップと、を含む。 According to still another aspect of the present invention, an inspection method is an inspection method executed by an inspection apparatus, wherein each of a plurality of pixels constituting processing target data in which a plurality of pixels are two-dimensionally arranged is a pixel of interest. The noise detection step includes a noise detection step of detecting noise from the data to be processed by processing as, the noise detection step detects the surrounding area based on the pixel values of a plurality of pixels included in the surrounding area determined by the pixel of interest and a predetermined relative position a feature amount determination step of determining a feature amount indicating the feature of a pixel of interest; a threshold determination step of determining a threshold for a pixel of interest based on the feature amount; It includes a comparison step of comparing, and a step of detecting noise from the processing target data based on the comparison result in the comparison step .
この局面に従えば、検出精度を高めることが可能な検査方法を提供することができる。 According to this aspect, it is possible to provide an inspection method capable of improving detection accuracy.
この発明のさらに他の局面によれば、検査プログラムは、複数の画素が二次元に配列された処理対象データを構成する複数の画素それぞれを注目画素として処理することにより、処理対象データからノイズを検出するノイズ検出ステップを、コンピューターに実行させ、ノイズ検出ステップは、注目画素と所定の相対位置で定まる周辺領域に含まれる複数の画素の画素値に基づいて周辺領域の特徴を示す特徴量を決定する特徴量決定ステップと、特徴量に基づいて注目画素に対するしきい値を決定するしきい値決定ステップと、決定されたしきい値と注目画素の画素値とを比較する比較ステップと、注目画素の画素値が注目画素に対して決定されたしきい値で定まる範囲外となる場合に注目画素を候補画素に決定する候補決定ステップと、
所定数以上が連続する候補画素の集合からなる領域をノイズが現れるノイズ領域に決定するノイズ領域決定ステップと、を含む。
According to still another aspect of the present invention, the inspection program removes noise from the data to be processed by processing each of the plurality of pixels constituting the data to be processed in which the plurality of pixels are arranged two-dimensionally as a pixel of interest. A noise detection step is executed by a computer, and the noise detection step determines a feature amount indicating the characteristics of the surrounding area based on the pixel values of a plurality of pixels included in the surrounding area determined by the pixel of interest and a predetermined relative position. a threshold value determination step of determining a threshold value for a pixel of interest based on the feature value; a comparison step of comparing the determined threshold value with the pixel value of the pixel of interest; a candidate determination step of determining the pixel of interest as a candidate pixel when the pixel value of is out of the range determined by the threshold value determined for the pixel of interest;
and a noise region determination step of determining a region formed by a set of candidate pixels in which a predetermined number or more of consecutive pixels is a noise region in which noise appears.
この局面に従えば、検出精度を高めることが可能な検査プログラムを提供することができる。 According to this aspect, it is possible to provide an inspection program capable of improving detection accuracy.
以下、本発明の実施の形態における画像形成装置について図面を参照して説明する。以下の説明では同一の部品には同一の符号を付してある。それらの名称および機能も同じである。したがってそれらについての詳細な説明は繰返さない。 An image forming apparatus according to embodiments of the present invention will be described below with reference to the drawings. In the following description, the same parts are given the same reference numerals. Their names and functions are also the same. A detailed description thereof will therefore not be repeated.
図1は、本発明の実施の形態の1つにおける画像形成システムの外観を示す斜視図である。図1を参照して、画像形成システムは、複合機であるMFP100と、検査装置200と、後処理装置300と、を含む。MFP100は、画像形成装置として機能し、画像データに基づいて記録媒体に画像を形成する。MFP100は、画像を形成する対象となる記録媒体として、複数種類の記録媒体のいずれにも画像を形成することが可能である。記録媒体は、紙などの用紙の他、OHP(Overhead projector)シート、布等を含む。また、以下の説明では、特に言及しない限り、記録媒体を用紙とする場合を例に説明する。
FIG. 1 is a perspective view showing the appearance of an image forming system according to one embodiment of the present invention. Referring to FIG. 1, the image forming system includes an
検査装置200は、MFP100から画像が形成された用紙が供給され、用紙に形成された画像に、ゴミ、汚れ、画像形成時の不良が原因で発生する部分をノイズとして検出する。検査装置200は、光電変換素子である第1スキャナ206および第2スキャナ207を備えている。第1スキャナ206および第2スキャナ207は、MFP100から供給される用紙の搬送経路を挟んで配置される。したがって、検査装置200は、MFP100から供給される用紙の表裏にそれぞれ形成された画像を同時に読み取ることが可能である。
The
後処理装置300は、検査装置200から用紙が供給される。後処理装置300は、複数の排紙トレイを有し、複数の用紙を並べ替えて複数の排紙トレイのいずれかに排紙するソート機能を有する。また、後処理装置300は、検査装置200により用紙に形成された画像からノイズが検出された用紙を、ノイズが検出されない用紙とは別の排紙トレイに排紙する。具体的には、検査装置200からエラー信号が入力される場合、そのエラー信号に対応する用紙を、予め定められた排紙トレイに排紙する。なお、後処理装置300は、パンチ機構およびステープル機構を備えてもよい。パンチ機構は、複数の用紙をまとめた束にパンチ穴をあける機構である。ステープル機構は、複数の用紙をまとめた束にステープル針を打ち込む機構である。
図2は、検査装置のハードウェア構成の概要の一例を示すブロック図である。図2を参照して、検査装置200は、検査装置200の全体を制御するための中央演算処理装置(CPU)201と、CPU201が実行するためのプログラムを記憶するROM(Read Only Memory)202と、CPU201の作業領域として使用されるRAM(Random Access Memory)203と、データを不揮発的に記憶するEPROM(Erasable Programmable ROM)204と、CPU201をMFP100および後処理装置300に接続する通信部205と、第1スキャナ206と、第2スキャナ207と、シリアルインターフェース210と、を含む。
FIG. 2 is a block diagram showing an example of an overview of the hardware configuration of the inspection device. Referring to FIG. 2,
シリアルインターフェース210は、外部の装置とシリアル通信するためのインターフェースである。ここでは、シリアル通信は、USB(Universal Serial Bus)規格である。シリアルインターフェース210は、USB規格で通信可能な外部装置が接続可能である。CPU201は、シリアルインターフェース210を介して外部装置にアクセス可能である。外部装置は、USBメモリ211、CDドライブ等の記憶装置を含む。ここでは、外部装置をUSBメモリ211とする場合を例に説明する。USBメモリ211は、EPROMなどの半導体メモリと、シリアル通信回路と、を備えている。CPU201は、シリアルインターフェース210に装着されたUSBメモリ211に記録されたプログラムをRAM203にロードして実行する。
A
第1スキャナ206および第2スキャナ207それぞれは、光電変換素子であり、受光する光を電気信号としての画像データに変換して出力する。本実施の形態においては、第1スキャナ206および第2スキャナ207を、CCD(Charge Coupled Devices)としている。なお、光電変換素子は、CCDに限定されることなく、CMOSセンサー等の他の素子を用いてもよい。第1スキャナ206は、MFP100から供給される用紙の表面に形成された画像を光学的に読み取り、電子データである画像データをCPU201に出力する。第2スキャナ207は、MFP100から供給される用紙の裏面に形成された画像を光学的に読み取り、電子データである画像データをCPU201に出力する。CPU201は、第1スキャナ206が出力する画像データに基づいて、用紙の表面に形成された画像からノイズを検出するとともに、第2スキャナ207が出力する画像データに基づいて、用紙の表面に形成された画像からノイズを検出する。
Each of the
なお、CPU201が実行するプログラムを記憶する媒体としては、USBメモリ211に限られず、光ディスク(CD-ROM(Compact Disk ROM)、MO(Magnetic Optical Disc)/MD(Mini Disc)/DVD(Digital Versatile Disc))、光カード、マスクROM、であってもよい。ここでいうプログラムは、CPU201により直接実行可能なプログラムだけでなく、ソースプログラム、圧縮処理されたプログラム、暗号化されたプログラム等を含む。
The medium for storing the program executed by the
また、通信部205またはシリアルインターフェース210を介して、検査装置200をインターネットに接続するようにしてもよい。この場合、CPU201は、インターネットに接続されたコンピューターからプログラムをダウンロードしてEPROM204に記憶することが可能である。また、インターネットに接続されたコンピューターによりプログラムがEPROM204に書込みされる場合がある。CPU201は、EPROM204に記憶されたプログラムをRAM203にロードして実行する。
Also, the
図3は、検査装置が備えるCPUが有する機能の一例を示すブロック図である。図3に示す機能は、検査装置200が備えるCPU201が、ROM202、EPROM204またはUSBメモリ211に記憶された検査プログラムを実行することにより、CPU201で実現される機能である。図3を参照して、CPU201は、読取制御部51と、処理対象データ生成部53と、ノイズ検出部55と、元データ取得部57と、特徴領域決定部59と、を含む。
FIG. 3 is a block diagram showing an example of functions of a CPU provided in the inspection apparatus. The functions shown in FIG. 3 are realized by the
読取制御部51は、第1スキャナ206および第2スキャナ207を制御する。読取制御部51は、MFP100が用紙の表面に画像を形成する場合、第1スキャナ206を制御して用紙の表面に形成された画像を読み取らせ、第1スキャナ206が出力する画像データを、処理対象データ生成部53に出力する。この場合、読取制御部51は、第2スキャナ207を駆動しない。読取制御部51は、MFP100が用紙の表面および裏面に画像を形成する場合、第1スキャナ206を制御して用紙の表面に形成された画像を読み取らせるとともに、第2スキャナ207を制御して用紙の裏面に形成された画像を読み取らせる。読取制御部51は、第1スキャナ206が出力する画像データと第2スキャナ207が出力する画像データとを処理対象データ生成部53に出力する。画像データは、2次元に画素が配列されたデータである。画素は、画素値を含む。画像データは、カラーであってもよいし、モノクロであってもよい。カラーの画像データは、赤(R),青(G),緑(G)それぞれの色の明度を示すデータである。モノクロの画像データは、明度を示すデータである。
The
第1スキャナ206が出力する画像データと、第2スキャナ207が出力する画像データとは、読取対象となる画像が異なるのみで、CPU201が実行する処理は同じである。このため、以下の説明では、特に言及しない限り、第1スキャナ206が出力する画像データを処理対象データ生成部53に出力する場合を例に説明する。
The image data output by the
処理対象データ生成部53は、読取制御部51から出力される画像データから処理対象データを生成する。処理対象データは、ノイズ検出部55が処理の対象とするデータである。読取制御部51からカラーの画像データが入力される場合、R,G,Bそれぞれの画像データそれぞれに対応する処理対象データを生成する。読取制御部51からモノクロの画像データが入力される場合、モノクロの画像データそれぞれに対応する処理対象データを生成する。R,G,Bそれぞれの画像データと、モノクロの画像データとは、色が異なるのみで画像データに対して実行される処理は同じなので、以下の説明では、読取制御部51からモノクロの画像データが入力される場合を例に説明する。
The processing target
MFP100は、用紙に画像を形成する際に、その画像の元になった元データに階調再現処理を実行した後に用紙に画像を形成する。階調再現処理は、例えば、誤差拡散処理およびスクリーン処理を含む。したがって、MFP100により用紙に形成された画像は高周波の変動成分を含む。処理対象データ生成部53は、画像データから高周波の変動成分を除去することにより処理対象データを生成する。処理対象データ生成部53は、解像度変換部61と、平均化部63と、を含む。解像度変換部61は、画像データの解像度を変換する。具体的には、解像度変換部61は、解像度を小さくするために画像データを縮小処理する。縮小処理することにより高周波の変動成分を除去することができるとともに、画素数が小さくなるので後段の処理の負荷を低減することができる。
When forming an image on a sheet of paper, the
平均化部63は、画像データを平均化処理する。平均化処理は、画像データに含まれる複数の画素それぞれの画素値を、その画素とその画素の周辺の複数の画素それぞれの画素値の平均値に設定する処理である。画素の周辺の画素は、画素に隣接する画素をいう。ここでは、3×3の矩形のフィルターを用いて、9つの画素の中心の画素の画素値を9つの画素の画素値の平均値に設定する。平均化処理を実行することにより、解像度変換部61により除去できなかった高周波成分を除去することができる。処理対象データ生成部53は、画像データに解像度変換処理および平均化処理を実行したデータを処理対象データとしてノイズ検出部55に出力する。なお、本実施の形態においては、解像度変換処理と平均化処理とを実行するようにしたが、画像データから高周波の変動成分を除去できれば、いずれか一方を実行するようにしてもよい。
The averaging
元データ取得部57は、通信部205を制御して、MFP100から元データを取得する。元データは、MFP100が用紙に形成した画像の元になるデータである。元データ取得部57は、MFP100から取得された元データを特徴領域決定部59に出力する。
Original
特徴領域決定部59は、元データに含まれる特徴領域を決定する。特徴領域は、元データで表される画像に含まれる所定の特徴を有する領域である。ここでは、所定の特徴は、エッジと背景である。特徴領域決定部59は、元データ中で特徴領域の位置を示す位置情報をノイズ検出部55に出力する。特徴領域決定部59は、エッジ検出部65と、背景検出部67と、を含む。
Characteristic
エッジ検出部65は、元データからエッジを構成する画素を検出し、エッジを構成する複数の画素を含む領域を特徴領域に決定する。エッジを構成する複数の画素の検出方法は、例えば、隣接する複数の画素の明度の差が所定値以上の複数の画素のうち明度が低い画素をエッジ画素に決定する。エッジを構成する画素を検出するためのフィルターを用いるようにしてもよい。
The
背景検出部67は、元データから背景を構成する画素を検出し、背景を構成する複数の画素を含む領域を特徴領域に決定する。ここでの背景は、用紙のうちで画像が形成されなかった領域である。背景を構成する複数の画素の検出方法は、例えば、明度が所定のしきい値以上の画素を、背景を構成する画素に決定する。なお、背景を構成する画素を検出するためのフィルターを用いるようにしてもよい。
The
ノイズ検出部55は、処理対象データ生成部53により生成された処理対象データを処理し、ノイズ領域を構成する画素を検出することにより、画像データ中のノイズを検出する。ノイズ検出部55は、注目画素選択部71と、特徴量決定部73と、しきい値決定部75と、比較部77と、候補画素決定部79と、ノイズ領域決定部81と、を含む。
The
注目画素選択部71は、処理対象データに含まれる複数の画素のうちから1つを順に注目画素に選択する。注目画素選択部71は、注目画素に対して比較部77による比較が終了すると、処理対象データに含まれる複数の画素のうち注目画素に選択していない1以上の画素のうちから1つを新たな注目画素に選択する。注目画素選択部71は、注目画素を選択するごとに、その注目画素を識別するための画素識別情報を特徴量決定部73および比較部77に出力する。
The pixel-of-
特徴量決定部73は、注目画素に対する相対位置が定められた周辺領域の特徴量を決定する。周辺領域は、注目画素を除く注目画素の周辺の領域である。好ましくは、周辺領域は、注目画素から第1距離以上離れた領域である。また、周辺領域は、注目画素から第2距離の以下領域である。第2距離は第1距離より大きい。
The feature
図4は、周辺領域の一例を示す図である。図4を参照して、周辺領域511は、1辺がM画素からなる矩形の外枠と、1辺がN画素からなる矩形の内枠とで囲まれた領域である。周辺領域511は、注目画素501に対して相対位置が定められる。具体的には、周辺領域511の外枠の中心と内枠の中心に注目画素が位置するように、周辺領域511と注目画素501との相対位置が定められる。
FIG. 4 is a diagram showing an example of the peripheral area. Referring to FIG. 4, the
周辺領域511の第1距離はM/√2であり、第2距離はN/2である。なお、単位は、画素のサイズである。Nは、画像データに存在するノイズが表れるノイズ領域のサイズにより定まる。注目画素がノイズ領域の端部に位置する場合にノイズ領域が周辺領域の内枠の内に納まるようにNの値を定めるのが好ましい。ノイズ領域は、ノイズ検出部55の検出対象である。例えば、実験によってノイズ領域のサイズが予め定まる場合、そのサイズの2倍のサイズからNが定まる。また、Mにより周辺領域511に含まれる画素の数が定まる。画素数が少ないと後述する特徴量の精度が低下し、画素数が多いと特徴量を算出するための負荷が増大する。このため、精度と負荷のバランスを考慮して定めるのが好ましい。
The first distance of the
なお、処理対象データに含まれる複数の画素のサイズは、処理対象データ生成部53によって画像データが解像度変換されて処理対象データが生成される場合には、解像度変換における縮小率によって定まる。また、本実施の形態においては、注目画素に対して1種類の周辺領域を定めるが、内枠のサイズの異なる複数種類の周辺領域を定めてもよい。この場合には、サイズの異なる複数種類のノイズ領域を検出することができる。
Note that the size of a plurality of pixels included in the processing target data is determined by the reduction ratio in the resolution conversion when the processing target data is generated by resolution-converting the image data by the processing target
図5は、周辺領域に含まれる複数のブロックの一例を示す図である。図5を参照して、周辺領域511は、A~Pの16個のブロックを含む。16個のブロックのサイズおよび形状は同じである。なお、ここでは、複数のブロックのサイズおよび形状を同じにしたが、複数のブロックのサイズおよび形状は、同じでなくてもよい。
FIG. 5 is a diagram showing an example of a plurality of blocks included in the peripheral area. Referring to FIG. 5, the
図3に戻って、特徴量決定部73は、サブ特徴量決定部85と、候補ブロック決定部87と、除外部89と、を含む。
Returning to FIG. 3 , the feature
除外部89は、複数のブロックのうち特徴領域の少なくとも一部を含むブロックを除外する。特徴領域は、特徴領域決定部59により決定された領域であり、背景を構成する領域と、エッジを構成する領域である。元データにおいて背景を構成する領域は、本来は用紙にトナーが付着しない領域であり、用紙にすじまたは斑点が発生しない領域である。斑点は、用紙にトナーなどが付着した部分で発生し、円形であることが多い。エッジを構成する領域は明度の変化が大きく、文字などが表された領域である。
The excluding
サブ特徴量決定部85は、複数のブロックのうち除外部89により除外されなかった残りの複数のブロックごとにサブ特徴量を決定する。サブ特徴量は、ブロックに含まれる複数の画素の画素値の平均および標準偏差である。除外部89により除外された複数のブロックのサブ特徴量を算出しないので、サブ特徴量が背景または文字の影響を受けないようにできるとともに、処理の負荷を低減することができる。
The sub-feature
候補ブロック決定部87は、複数のブロックのうち除外部89により除外されなかった残りの複数のブロックのうちから1以上の候補ブロックを決定する。候補ブロック決定部87は、サブ特徴量が所定の条件を満たすブロックを候補ブロックに決定する。所定の条件は、予め定められた条件である。本例においては、所定の条件を、標準偏差が第1しきい値以下としている。なお、所定の条件を、標準偏差が第1しきい値以下かつ平均値が第2しきい値以下としてもよいし、平均値が第2しきい値以下としてもよい。
The candidate
特徴量決定部73は、1以上の候補ブロックにそれぞれの複数の画素の画素値を母数として、周辺領域の特徴量を決定する。特徴量は、画素値の平均と標準偏差である。特徴量決定部73は、決定された特徴量を、しきい値決定部75に出力する。
The feature
しきい値決定部75は、注目画素に対応する周辺領域の特徴量に基づいて注目画素に対するしきい値を決定する。しきい値は、上限値と下限値とを含む。しきい値決定部75は、平均値に標準偏差に係数を乗算した値を加算した値を上限値に決定し、平均値から標準偏差に係数を乗算した値を減算した値を下限値に決定する。しきい値決定部75は、しきい値を比較部77に出力する。本例においては、係数を3としている。なお、検出精度を向上される場合には、係数をより小さな値にすればよい。
The
比較部77は、注目画素の画素値をしきい値と比較する。比較部77は、比較が終了することに応じて、注目画素選択部71に選択指示を出力する。候補画素決定部79は、比較部77による比較の結果、注目画素の画素値がしきい値で定まる範囲から外れる場合に注目画素を候補画素に決定する。候補画素決定部79は、比較部77による比較の結果、注目画素の画素値がしきい値で定まる範囲内の場合は注目画素を候補画素に決定しない。候補画素決定部79は、注目画素を候補画素に決定する場合、その候補画素を識別するための候補画素識別情報をノイズ領域決定部81に出力する。
A
注目画素選択部71は、比較部77から選択指示が入力されることに応じて新たな注目画素を選択する。このため、注目画素選択部71が処理対象データに含まれる複数の画素のすべてを選択すると、比較部77によって処理対象データに含まれる複数の画素の画素値がしきい値と比較される。
The pixel-of-
ノイズ領域決定部81は、候補画素決定部79により処理対象データに含まれるすべての複数の画素について候補画素か否かが判断された後に、ノイズ領域を決定する。ノイズ領域は、連続する複数の候補画素を所定数以上含む領域である。所定数は、ノイズ領域のサイズに基づいて予め定められている。例えばノイズ領域を円形と仮定して、その直径以上の円形の領域に含まれる画素の数とすればよい。ノイズ領域決定部81は、ノイズ領域を1つでも検出する場合、エラー信号を後処理装置300に出力する。
The noise
図6は、画素値の一例を示す図である。図6を参照して、斑点を構成する画素とその周辺の画素の画素値を示している。斑点を構成する画素は、読取対象となった用紙にトナー等が付着することが原因で画像データに含まれるノイズ領域を構成する。実線が、斑点を構成する画素に対して図5に示した周辺領域511が定まる場合に、算出されるしきい値が示される。しきい値は、周辺領域511に含まれる複数の画素の画素値の平均値AV1と標準偏差から、平均値AV1に標準偏差の3倍を加算した上限値TH1と、平均値AV1から標準偏差の3倍を減算した下限値TL1として示される。なお、しきい値は注目画素ごとに定まるため、斑点を構成する画素以外の画素のしきい値は、斑点を構成する画素に対して定まるしきい値と異なるが近似する値となる。このため、図では、斑点を構成する画素以外の画素のしきい値は斑点を構成する画素のしきい値と同じ値として示される。
FIG. 6 is a diagram showing an example of pixel values. Referring to FIG. 6, the pixel values of the pixels forming the spots and their surrounding pixels are shown. The pixels that form the spots form a noise area that is included in the image data due to the adhesion of toner or the like to the paper that is the object of reading. A solid line indicates the threshold value calculated when the
点線が従来の方法により定まるしきい値を示している。具体的には、斑点を構成する画素を中心に縦15画素で横15画素の矩形の領域が定まる場合に、算出されるしきい値が示される。しきい値は、矩形の領域に含まれる複数の画素の画素値の平均値AV2と標準偏差から、平均値AV2に標準偏差の3倍を加算した上限値TH2と、平均値AV2から標準偏差の3倍を減算した下限値TL2として示される。 A dotted line indicates the threshold determined by the conventional method. Specifically, when a rectangular area of 15 pixels vertically and 15 pixels horizontally is determined centering on the pixel forming the spot, the calculated threshold value is indicated. The threshold value is obtained from the average value AV2 and the standard deviation of the pixel values of a plurality of pixels included in the rectangular area, the upper limit value TH2 obtained by adding three times the standard deviation to the average value AV2, and the standard deviation from the average value AV2. It is shown as the lower limit TL2 with three times subtracted.
従来の方法によるしきい値は、斑点を構成する画素の画素値がしきい値を算出する母数に含まれるのに対して、本実施の形態における検査装置200は、斑点を構成する画素の画素値がしきい値を算出する母数に含まれない。具体的には、本実施の形態においては、斑点を構成する画素の画素値を除外して平均値が算出される。このため、注目画素の周辺部分の平均値が従来よりも真の値に近くなる。また、本実施の形態においては画素値のばらつきの範囲は従来のそれよりも小さくなる。換言すれば、上限値TH1と下限値TL1との差は上限値TH2と下限値TL2との差よりも小さな値となる。したがって、本実施の形態におけるしきい値は、従来のしきい値よりも精度が向上している。 In the threshold value of the conventional method, the pixel values of the pixels forming the spot are included in the parameters for calculating the threshold value. The pixel value is not included in the parameters for calculating the threshold. Specifically, in the present embodiment, the average value is calculated by excluding the pixel values of the pixels forming the spots. Therefore, the average value of the peripheral portion of the pixel of interest becomes closer to the true value than in the conventional case. Also, in this embodiment, the range of variation in pixel values is smaller than in the conventional case. In other words, the difference between the upper limit TH1 and the lower limit TL1 is smaller than the difference between the upper limit TH2 and the lower limit TL2. Therefore, the threshold in this embodiment is more accurate than the conventional threshold.
従来の方法によれば、斑点を構成する画素の画素値が上限値TH2より大きく、画素P1、画素P2、画素P3、画素P4、画素P5、画素P6それぞれを含む所定のサイズの部分で、画素値が下限値TL2よりも小さい。このため、画素P1、画素P2、画素P3、画素P4、画素P5、画素P6それぞれを含む部分がノイズとして検出される。 According to the conventional method, the pixel value of the pixel constituting the spot is larger than the upper limit value TH2, and the pixel The value is smaller than the lower limit value TL2. Therefore, a portion including pixels P1, P2, P3, P4, P5, and P6 is detected as noise.
これに対して、本実施の形態における検査装置200によれば、斑点を構成する画素の画素値が上限値TH1より大きく画素P1、画素P2、画素P3、画素P4、画素P5、画素P6それぞれを含む所定のサイズの部分で画素値が下限値TL1以上である。このため、画素P1、画素P2、画素P3、画素P4、画素P5、画素P6それぞれを含む周辺の部分がノイズとして検出されない。
On the other hand, according to the
また、本実施の形態における検査装置200によれば、上限値TH1が従来の方法における上限値TH2よりも小さいので、斑点として検出される領域のサイズが従来の方法により斑点として検出されるサイズよりも大きくなる。
Further, according to the
図7は、検出処理の流れの一例を示すフローチャートである。検出処理は、検査装置200が備えるCPU201が、ROM202、EPROM204またはUSBメモリ211に記憶された検査プログラムを実行することにより、CPU201により実行される処理である。図7を参照して、CPU201は、画像が読み取られたか否かを判断する。画像が読み取られるまで待機状態となり(ステップS01でNO)、画像が読み取られたならば(ステップS01でYES)、処理をステップS02に進める。MFP100から画像が形成された用紙が供給され、その用紙に形成された画像を第1スキャナ206が読み取ったか否かを判断する。
FIG. 7 is a flowchart showing an example of the flow of detection processing. The detection process is a process executed by
ステップS02においては、第1スキャナ206が出力する画像データを処理対象として、解像度変換処理が実行される。第1スキャナ206が出力する画像データの解像度が変換され、処理はステップS03に進む。ここでは、画像データに含まれる高周波成分を除去するために解像度を低下させる縮小処理が実行される。
In step S02, the image data output by the
次のステップS03においては、平均化処理が実行され、処理はステップS04に進む。ステップS02において解像度が変換された画像データを処理対象とする。平均化処理は、画像データに含まれる複数の画素それぞれの画素値を、その画素および周辺の画素の画素値の平均値に変換する処理である。これにより、画像データに含まれる高周波成分のうち解像度変換処理により除去しきれなかった成分が除去される。なお、解像度変換処理により高周波成分が十分に除去される場合は、平均化処理を省略することができる。 In the next step S03, an averaging process is executed, and the process proceeds to step S04. The image data whose resolution has been converted in step S02 is to be processed. Averaging processing is processing for converting the pixel value of each of a plurality of pixels included in image data into the average value of the pixel values of that pixel and its surrounding pixels. As a result, high-frequency components included in the image data that could not be removed by the resolution conversion process are removed. Note that the averaging process can be omitted if the high frequency components are sufficiently removed by the resolution conversion process.
ステップS04においては、MFP100から元データが取得され、処理はステップS05に進む。元データは、ステップS01において読み取られた画像の元になったデータであり、MFP100がその画像を用紙に形成する元にしたデータである。ステップS05においては、元データからエッジが検出され、処理はステップS06に進む。隣接する画素の明度の差が所定のしきい値以上の画素がエッジとして検出される。ステップS06においては、元データから背景が検出され、処理はステップS07に進む。画素の画素値が所定のしきい値以上の画素が背景として検出される。
In step S04, original data is acquired from
ステップS07においては、ステップS05においてエッジとして検出された複数の画素を含む領域、およびステップS06において背景として検出された複数の画素を含む領域が特徴領域に決定され、処理はステップS08に進む。 In step S07, the region containing the pixels detected as the edge in step S05 and the region containing the pixels detected as the background in step S06 are determined as feature regions, and the process proceeds to step S08.
ステップS08においては、ステップS03において平均化処理が実行された画像データを処理対象データとして、ノイズ検出処理が実行される。ノイズ検出処理の詳細は後述するが、画像データ中に含まれるノイズ領域を検出する処理である。次のステップS09においては、ノイズ検出処理の結果により処理が分岐する。ノイズ領域が検出されたならば処理はステップS10に進み、ノイズ領域が検出されなければ処理はステップS11に進む。 In step S08, noise detection processing is performed using the image data on which the averaging processing has been performed in step S03 as processing target data. Details of the noise detection process will be described later, but this is a process of detecting a noise area included in image data. In the next step S09, the process branches depending on the result of the noise detection process. If the noise area is detected, the process proceeds to step S10, and if the noise area is not detected, the process proceeds to step S11.
ステップS10においては、後処理装置300を制御して、退避トレイに用紙を排紙させ、処理はステップS01に戻る。後処理装置300にエラー信号が出力されることにより、後処理装置300が用紙を退避トレイに排紙する。ステップS11においては、後処理装置300を制御して、通常搬送経路に用紙を排出させ、処理はステップS01に戻る。後処理装置300にエラー信号が出力されないことにより、後処理装置300が用紙を通常の搬送経路に用紙を排出する。
In step S10,
図8は、ノイズ検出処理の流れの一例を示すフローチャートである。ノイズ検出処理は、図7のステップS08において実行される処理であり、ノイズ検出処理が実行される前の段階で特徴領域が決定されている。また、ノイズ検出処理においては、処理対象データが処理の対象とされる。図8を参照して、処理対象データに含まれる複数の画素のうち1つが注目画素に選択され(ステップS21)、処理はステップS22に進む。ステップS22においては、周辺領域の複数のブロックが特定され、処理はステップS23に進む。注目画素に対応する周辺領域が決定され、周辺領域において予め定められたブロックA~Pが特定される。 FIG. 8 is a flowchart showing an example of the flow of noise detection processing. The noise detection process is a process executed in step S08 of FIG. 7, and the characteristic region is determined before the noise detection process is executed. Also, in the noise detection process, the data to be processed is the target of the process. Referring to FIG. 8, one of a plurality of pixels included in the data to be processed is selected as a pixel of interest (step S21), and the process proceeds to step S22. In step S22, a plurality of blocks in the peripheral area are specified, and the process proceeds to step S23. A peripheral area corresponding to the pixel of interest is determined, and predetermined blocks A to P are specified in the peripheral area.
次のステップS23においては、ステップS22において特定された複数のブロックのうちから特徴領域を含むブロックが処理対象から排除され、処理はステップS24に進む。これにより、エッジおよび背景の影響を除去したしきい値が決定される。 In the next step S23, blocks including characteristic regions are excluded from the processing targets from among the plurality of blocks specified in step S22, and the process proceeds to step S24. This determines a threshold that removes the effects of edges and background.
ステップS24においては、複数のブロックごとにサブ特徴量が決定され、処理はステップS25に進む。本実施の形態においては、サブ特徴量を標準偏差としている。複数のブロックごとに、そのブロックに含まれる複数の画素の画素値の標準偏差が算出される。ステップS25においては、サブ特徴量が所定の条件を満たすブロックが候補ブロックに決定され、処理はステップS26に進む。所定の条件は、標準偏差が第1しきい値以下としている。なお、所定の条件を、標準偏差が第1しきい値以下および平均値が第2しきい値以下の条件、または平均値が第2しきい値以下の条件としてもよい。 In step S24, sub-feature amounts are determined for each of a plurality of blocks, and the process proceeds to step S25. In this embodiment, the sub-feature amount is the standard deviation. The standard deviation of the pixel values of the pixels included in each block is calculated for each block. In step S25, a block whose sub-feature amount satisfies a predetermined condition is determined as a candidate block, and the process proceeds to step S26. The predetermined condition is that the standard deviation is equal to or less than the first threshold. The predetermined condition may be the condition that the standard deviation is equal to or less than the first threshold and the average value is equal to or less than the second threshold, or the condition that the average value is equal to or less than the second threshold.
ステップS26においては、周辺領域の特徴量が決定され、処理はステップS27に進む。ステップS25において候補領域に決定された1以上のブロックにそれぞれ含まれる複数の画素の平均値AV1および標準偏差が、周辺領域の特徴量として算出される。ステップS27においては、特徴量に基づいて、注目画素に対するしきい値が決定される。ここでは、しきい値として、平均値AV1に標準偏差の3倍を加算した上限値TH1と、平均値AV1から標準偏差の3倍を減算した下限値TL1が決定される。 In step S26, the feature amount of the peripheral area is determined, and the process proceeds to step S27. The average value AV1 and standard deviation of a plurality of pixels included in one or more blocks determined as the candidate area in step S25 are calculated as feature amounts of the peripheral area. In step S27, a threshold for the pixel of interest is determined based on the feature amount. Here, as the threshold values, an upper limit value TH1 obtained by adding three times the standard deviation to the average value AV1 and a lower limit value TL1 obtained by subtracting three times the standard deviation from the average value AV1 are determined.
ステップS28においては、注目画素の画素値がしきい値の範囲外か否かが判断される。注目画素の画素値が上限値TH1より大きい場合、または、下限値TL1より小さい場合にしきい値の範囲外と判断される。注目画素の画素値がしきい値の範囲外ならば処理はステップS29に進むが、そうでなければ処理はステップS30に進む。ステップS29においては、注目画素が候補画素に決定され、処理はステップS30に進む。 In step S28, it is determined whether or not the pixel value of the pixel of interest is outside the threshold range. If the pixel value of the pixel of interest is larger than the upper limit TH1 or smaller than the lower limit TL1, it is determined to be out of the threshold range. If the pixel value of the pixel of interest is outside the threshold range, the process proceeds to step S29; otherwise, the process proceeds to step S30. In step S29, the pixel of interest is determined as a candidate pixel, and the process proceeds to step S30.
ステップS30においては、注目画素に選択されていない未選択の画素が処理対象データに存在するか否かが判断される。未選択の画素が存在するならば処理はステップS21に戻るが、存在しなければ処理はステップS31に進む。 In step S30, it is determined whether or not there is an unselected pixel that has not been selected as the pixel of interest in the data to be processed. If there is an unselected pixel, the process returns to step S21, but if not, the process proceeds to step S31.
ステップS31においては、所定数以上が連続する候補画素の集合を抽出する。所定数は、処理対象データに含まれるノイズ領域のサイズにより定まる。換言すれば、画像データ中で検出の対象となる領域のサイズにより定まる。解像度変換処理による縮小率が解っているので、処理対象データのサイズが定まり、画像データ中の検出対象となる領域のサイズから処理対象データに含まれるノイズ領域のサイズが定まる。所定数は、一方向に連続する複数の画素の長さが、処理対象データに含まれるノイズ領域の直径の最小値となるように定められる。 In step S31, a set of candidate pixels in which a predetermined number or more of consecutive pixels are extracted. The predetermined number is determined by the size of the noise region included in the processing target data. In other words, it is determined by the size of the area to be detected in the image data. Since the reduction ratio of the resolution conversion process is known, the size of the data to be processed is determined, and the size of the noise area included in the data to be processed is determined from the size of the area to be detected in the image data. The predetermined number is determined so that the length of a plurality of pixels continuous in one direction is the minimum value of the diameter of the noise region included in the processing target data.
ステップS32においては、ステップS31において所定数以上が連続する候補画素の集合が抽出されたか否かを判断する。候補画素の集合が抽出されたならば処理はステップS33に進むが、そうでなければ処理は検出処理に戻る。ステップS33においては、候補画素が集合する領域をノイズ領域に決定し、処理は検出処理に戻る。 In step S32, it is determined whether or not a set of candidate pixels in which a predetermined number or more of consecutive pixels have been extracted in step S31. If the set of candidate pixels has been extracted, the process proceeds to step S33; otherwise, the process returns to the detection process. In step S33, the area where the candidate pixels gather is determined as the noise area, and the process returns to the detection process.
<第1の変形例>
第1の変形例における検査装置200は、サブ特徴量を算出する際に、ブロックを削除するのではなく、画素値を削除する。具体的には、第1の変形例におけるサブ特徴量決定部85は、サブ特徴量を算出する母数となる画素値を、ブロックに含まれる複数の画素のうち特徴領域に含まれる画素の以外画素の画素値とする。また、特徴量決定部73は、特徴量を算出する母数となる画素値を、候補ブロックに含まれる複数の画素のうち特徴領域に含まれる画素の以外画素の画素値とする。これにより、ブロックに背景またはエッジが含まれる場合であっても、背景またはエッジに含まれる画素の画素値がサブ特徴量および特徴領域の算出の母数とならない。このため、ブロックのサブ特徴量および周辺領域の特徴量が、背景またはエッジの影響を受けないようにできる。
<First modification>
The
<第2の変形例>
第2の変形例における検査装置200は、注目画素に対する周辺領域を複数のサンプリング領域のうちから選択される1以上とする。
<Second modification>
The
図9は、サンプリング領域の一例を示す図である。図9(A)は、第1サンプリング領域521を示す。第1サンプリング領域521は、注目画素501に対して相対位置が定められる。具体的には、第1サンプリング領域521は、図5に示した周辺領域のブロックA,B,C,F,Hを含む。図9(B)は、第2サンプリング領域522を示す。第2サンプリング領域522は、注目画素501に対して相対位置が定められる。具体的には、第2サンプリング領域522は、図5に示した周辺領域のブロックC,D,E,G,Iを含む。図9(C)は、第3サンプリング領域523を示す。第3サンプリング領域523は、注目画素501に対して相対位置が定められる。具体的には、第3サンプリング領域523は、図5に示した周辺領域のブロックH,J,L,M,Nを含む。図9(D)は、第4サンプリング領域524を示す。第4サンプリング領域524は、注目画素501に対して相対位置が定められる。具体的には、第4サンプリング領域524は、図5に示した周辺領域のブロックI,K,N,O,Pを含む。
FIG. 9 is a diagram showing an example of sampling regions. FIG. 9A shows the
図10は、第2の変形例における検査装置が備えるCPUが有する機能の一例を示すブロック図である。図10に示す機能が図3に示した機能と異なる点は、サンプリング特徴量決定部91および周辺領域決定部92が追加された点である。その他の機能は、図3に示した機能と同じなので、ここでは説明は繰り返さない。
FIG. 10 is a block diagram showing an example of functions of a CPU included in an inspection apparatus according to the second modification. The function shown in FIG. 10 is different from the function shown in FIG. 3 in that a sampling feature
サンプリング特徴量決定部91は、第1サンプリング領域521~第4サンプリング領域524それぞれのサンプリング特徴量を決定する。サンプリング特徴量は、サンプリング領域に含まれる複数の画素の画素値の標準偏差である。
The sampling feature
周辺領域決定部92は、第1サンプリング領域521~第4サンプリング領域524のうちから、サンプリング特徴量が所定の条件を満たすサンプリング領域を周辺領域に決定する。所定の条件は、標準偏差が第1しきい値以下の条件である。なお、所定の条件は、平均値が第1しきい値以下で、かつ、平均値が第2しきい値以下の条件、または、平均値が第2しきい値以下の条件でもよい。
The peripheral
例えば、第1サンプリング領域521のみが所定の条件を満たし、他の第2サンプリング領域522~第4サンプリング領域524が所定の条件を満たさない場合、第1サンプリング領域521が周辺領域に決定される。また、第1サンプリング領域521~第4サンプリング領域524のすべてが所定の条件を満たす場合、第1サンプリング領域521~第4サンプリング領域524のすべてが周辺領域に決定される。この場合、図5に示した周辺領域511と同じになる。
For example, if only the
第2の変形例における検査装置200が備えるCPU201において、図7に示した検出処理が実行される。ただし、ステップS08におけるノイズ検出処理が異なる。
The detection process shown in FIG. 7 is executed in the
図11は、第2の変形例におけるノイズ検出処理の流れの一例を示すフローチャートである。図11を参照して、図8に示したノイズ検出処理と異なる点は、ステップS21とステップS22との間に、ステップS41~ステップS43が追加された点である。その他の処理は図8に示した処理と同じなのでここでは説明は繰り返さない。 FIG. 11 is a flowchart showing an example of the flow of noise detection processing in the second modified example. 11, the difference from the noise detection process shown in FIG. 8 is that steps S41 to S43 are added between steps S21 and S22. Since other processing is the same as the processing shown in FIG. 8, the description will not be repeated here.
ステップS41においては、注目画素に対して複数のサンプリング領域が特定される。そして、複数のサンプリング領域ごとにサンプリング特徴量が決定される(ステップS42)。そして、サンプリング特徴量が第1条件を満たす1以上のサンプリング領域が周辺領域に決定される(ステップS43)。 In step S41, a plurality of sampling regions are specified for the pixel of interest. Then, a sampling feature amount is determined for each of the plurality of sampling regions (step S42). Then, one or more sampling regions whose sampling feature amount satisfies the first condition are determined as peripheral regions (step S43).
第2の変形例における検査装置200は、第1サンプリング領域521~第4サンプリング領域524のうちから周辺領域を決定するので、注目画素の周辺に、文字や背景などが存在する場合に、その文字や背景を含むサンプリング領域が周辺領域に決定されない。このため、しきい値から文字や背景の影響を除外することができる。
Since the
<第3の変形例>
図12は、第3の変形例における周辺領域の一例を示す図である。図12を参照して、第3の変形例における周辺領域531は、注目画素501から第1距離以上離れた領域で、かつ、注目画素501から第2距離の以下の領域である。第1距離は画素N/2個分のサイズであり、第2距離は画素M/2個分の距離である。第3の変形例における検査装置200においては、直径が第1距離以下のノイズ領域を検出する精度を高めることができる。第3の変形例における周辺領域は、第1の距離が異なる複数を用いるようにしてもよい。また、図4に示した周辺領域と、図12に示した周辺領域とを用いるようにしてもよい。
<Third Modification>
FIG. 12 is a diagram showing an example of the peripheral area in the third modified example. Referring to FIG. 12, a
<第4の変形例>
図13は、第4の変形例における周辺領域の一例を示す図である。図13を参照して、第4の変形例における周辺領域541は、注目画素501からY軸方向に第1距離以上離れた領域で、かつ、注目画素501からY軸方向に第2距離の以下の領域である。第1距離は画素N/2個分のサイズであり、第2距離は画素M/2個分の距離である。これにより、X軸に平行なすじのノイズ領域を検出することができる。
<Fourth Modification>
FIG. 13 is a diagram showing an example of the peripheral area in the fourth modified example. Referring to FIG. 13 ,
なお、第4の変形例における周辺領域541は、注目画素501からX軸方向に第1距離以上離れた領域で、かつ、注目画素501からX軸方向に第2距離の以下の領域としてもよい。これにより、Y軸に平行なすじのノイズ領域を検出することができる。
Note that the
第4の変形例における周辺領域は、第1の距離が異なる複数を用いるようにしてもよい。また、図4に示した周辺領域、図12に示した周辺領域および図13に示した周辺領域の1以上を組み合わせてノイズを検出するようにしてもよい。 A plurality of peripheral regions having different first distances may be used in the fourth modification. Further, noise may be detected by combining one or more of the peripheral areas shown in FIG. 4, the peripheral areas shown in FIG. 12, and the peripheral areas shown in FIG.
<第5の変形例>
本実施の形態における検査装置200は、画像形成装置として機能するMFP100に内蔵されてもよい。この場合、MFP100で画像が形成された用紙を、MFP100が備える原稿読取部に搬送する搬送経路を設け、原稿読取部で用紙に形成された画像を読み取らせるようにしてもよい。
<Fifth Modification>
また、検査装置200は、原稿を読み取る機能を備えていればよく、例えば、スキャナ装置であってもよい。
Moreover, the
以上説明したように本実施の形態における検査装置200は、処理対象データを構成する複数の画素それぞれを注目画素として処理する。具体的には、検査装置200は、注目画素と所定の相対位置で定まる周辺領域に含まれる複数の画素の画素値に基づいて特徴量を決定し、特徴量に基づいて注目画素に対するしきい値を決定し、しきい値と注目画素の画素値とを比較する。このため、注目画素が周辺領域の画素と異なる値の画素であるかを検出することができ、検出精度を高めることができる。
As described above, the
また、検査装置は、周辺領域に含まれる複数のブロック毎にブロックの特徴を示すサブ特徴量を決定し、複数のブロック毎に決定されたサブ特徴量に基づいて、複数のブロックのうちから1以上の候補ブロックを決定し、1以上の候補ブロックそれぞれに含まれる複数の画素の画素値に基づいて、周辺領域の特徴量を決定する。このため、周辺領域に含まれる複数の画素のうち、画素値が他の画素と異なる画素を除外して特徴量が決定されるので、しきい値の精度を向上させることができる。 In addition, the inspection apparatus determines a sub-feature amount indicating a block feature for each of a plurality of blocks included in the peripheral area, and based on the sub-feature amount determined for each of the plurality of blocks, selects one of the plurality of blocks. The above candidate blocks are determined, and the feature amount of the surrounding area is determined based on the pixel values of a plurality of pixels included in each of the one or more candidate blocks. Therefore, the feature amount is determined by excluding pixels whose pixel values are different from those of other pixels among the plurality of pixels included in the peripheral region, so that the accuracy of the threshold value can be improved.
また、特徴量は、複数の画素の画素値の標準偏差、または、標準偏差および平均値である。このため、注目画素が周辺領域に含まれる複数の画素と比較して特異な値か否かを判断することができる。 Also, the feature amount is the standard deviation or the standard deviation and average value of the pixel values of a plurality of pixels. Therefore, it is possible to determine whether or not the pixel of interest has a peculiar value in comparison with a plurality of pixels included in the surrounding area.
また、検査装置200は、画像形成装置として機能するMFP100が画像を形成した用紙を読み取り、画像データを出力する第1スキャナ206を備え、画像データから処理対象データを生成する。このため、MFP100による画像形成における不良を検出することができる。
The
また、検査装置200は、MFP100が用紙に形成した画像の元になる元データを取得し、元データの特徴領域を決定し、周辺領域のうち特徴領域以外の領域に含まれる複数の画素に基づいて周辺領域の特徴量を決定する。このため、元データに含まれる特徴領域が周辺領域から除外されるので、しきい値の精度を向上させることができる。
Also,
また、検査装置200は、第1スキャナ206が出力する画像データの解像度を変更することにより処理対象データを生成するので、画像データに含まれる高周波のノイズを除去することができる。
In addition, since the
また、検査装置200は、注目画素がしきい値で定まる範囲外となる場合に注目画素をノイズが現れるノイズ領域に決定する。このため、注目画素と同じサイズのノイズ領域を検出することができる。
Also, when the pixel of interest is outside the range determined by the threshold value, the
また、検査装置200は、注目画素がしきい値で定まる範囲外となる場合に注目画素を候補画素に決定し、所定数以上が連続する候補画素の集合からなる領域をノイズが現れるノイズ領域に決定する。このため、注目画素よりサイズの大きなノイズ領域を検出することができる。
In addition, the
また、検査装置200は、第1スキャナ206が出力する画像データに含まれる複数の画素の画素値を当該画素を含む所定範囲の複数の画素の画素値の平均値に設定したデータを処理対象データとして生成する。このため、画像データに含まれる高周波のノイズを除去することができる。
In addition, the
第2の変形例における検査装置200は、それぞれが注目画素と所定の相対位置に配置された複数のサンプリング領域ごとに、サンプリング領域に含まれる複数の画素の画素値に基づいてサンプリング特徴量を決定し、複数のサンプリング領域ごとに決定されたサンプリング特徴量に基づいて、複数のサンプリング領域のうち1以上を周辺領域に決定する。このため、複数のサンプリング領域のうちから文字等を含むサンプリング領域を除外することができるので、しきい値の精度を向上させることができる。
The
今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。 It should be considered that the embodiments disclosed this time are illustrative in all respects and not restrictive. The scope of the present invention is indicated by the scope of the claims rather than the above description, and is intended to include all modifications within the meaning and range of equivalents of the scope of the claims.
<付記>
(1)好ましくは、前記特徴領域決定手段は、前記元データからエッジを構成するエッジ画素を含む領域を前記特徴領域に決定する。この局面に従えば、しきい値が元データに存在するエッジの影響を受けないようにできる。
(2)好ましくは、前記特徴領域決定手段は、前記元データから背景を構成する背景画素を含む領域を前記特徴領域に決定する。この局面に従えば、しきい値が元データに存在する背景の影響を受けないようにできる。
(3)好ましくは、前記第1距離は、前記処理対象データ中に存在する検出対象のサイズに基づき決定される。この局面に従えば、検出対象であるノイズを正確に検出することができる。
<Appendix>
(1) Preferably, the characteristic region determining means determines, as the characteristic region, a region including edge pixels forming an edge from the original data. According to this aspect, the threshold value can be made unaffected by edges present in the original data.
(2) Preferably, the characteristic region determining means determines, from the original data, a region including background pixels forming a background as the characteristic region. According to this aspect, the threshold can be made immune to the background present in the original data.
(3) Preferably, the first distance is determined based on the size of a detection target present in the processing target data. According to this aspect, the noise to be detected can be accurately detected.
100 MFP、200 検査装置、300 後処理装置、201 CPU、202 ROM、203 RAM、204 EPROM、205 通信部、206 第1スキャナ、207 第2スキャナ、210 シリアルインターフェース、211 USBメモリ、51 読取制御部、53 処理対象データ生成部、55 ノイズ検出部、57 元データ取得部、59 特徴領域決定部、61 解像度変換部、63 平均化部、65 エッジ検出部、67 背景検出部、71 注目画素選択部、73 特徴量決定部、75 しきい値決定部、77 比較部、79 候補画素決定部、81 ノイズ領域決定部、85 サブ特徴量決定部、87 候補ブロック決定部、89 除外部、91 サンプリング特徴量決定部、92 周辺領域決定部、501 注目画素、511 周辺領域、521~524 第1~第4サンプリング領域、531 周辺領域、541 周辺領域。
100 MFP, 200 inspection device, 300 post-processing device, 201 CPU, 202 ROM, 203 RAM, 204 EPROM, 205 communication unit, 206 first scanner, 207 second scanner, 210 serial interface, 211 USB memory, 51 reading control unit , 53 processing target data generation unit, 55 noise detection unit, 57 original data acquisition unit, 59 characteristic region determination unit, 61 resolution conversion unit, 63 averaging unit, 65 edge detection unit, 67 background detection unit, 71 target pixel selection unit , 73 feature amount determination unit, 75 threshold value determination unit, 77 comparison unit, 79 candidate pixel determination unit, 81 noise region determination unit, 85 sub-feature amount determination unit, 87 candidate block determination unit, 89 exclusion unit, 91 sampling feature
Claims (17)
前記ノイズ検出手段は、前記注目画素と所定の相対位置で定まる周辺領域に含まれる複数の前記画素の画素値に基づいて前記周辺領域の特徴を示す特徴量を決定する特徴量決定手段と、
前記特徴量に基づいて前記注目画素に対するしきい値を決定するしきい値決定手段と、
決定された前記しきい値と前記注目画素の画素値とを比較する比較手段と、
前記注目画素の画素値が前記注目画素に対して決定された前記しきい値で定まる範囲外となる場合に前記注目画素を候補画素に決定する候補決定手段と、
所定数以上が連続する前記候補画素の集合からなる領域をノイズが現れるノイズ領域に決定するノイズ領域決定手段と、を含む、検査装置。 noise detection means for detecting noise from the data to be processed by processing each of the plurality of pixels constituting the data to be processed in which the plurality of pixels are arranged two-dimensionally as a pixel of interest;
The noise detection means includes a feature amount determination means for determining a feature amount indicating a feature of the surrounding area based on pixel values of a plurality of the pixels included in the surrounding area determined by a predetermined relative position to the target pixel;
threshold determination means for determining a threshold for the pixel of interest based on the feature quantity;
comparison means for comparing the determined threshold value with the pixel value of the pixel of interest;
candidate determination means for determining the target pixel as a candidate pixel when the pixel value of the target pixel is outside the range determined by the threshold value determined for the target pixel;
an inspection apparatus comprising : a noise region determination unit that determines a region formed by a set of said candidate pixels in which a predetermined number or more of consecutive pixels is a noise region in which noise appears.
複数の前記ブロック毎に決定された前記サブ特徴量に基づいて、複数の前記ブロックのうちから1以上の候補ブロックを決定する候補ブロック決定手段と、をさらに備え、
前記特徴量決定手段は、1以上の前記候補ブロックそれぞれに含まれる複数の前記画素の画素値に基づいて、前記周辺領域の特徴量を決定する、請求項1に記載の検査装置。 sub-feature determining means for determining a sub-feature representing a feature of each of a plurality of blocks included in the peripheral area;
further comprising candidate block determination means for determining one or more candidate blocks from among the plurality of blocks based on the sub-feature amounts determined for each of the plurality of blocks;
2. The inspection apparatus according to claim 1, wherein said feature quantity determination means determines the feature quantity of said peripheral region based on pixel values of said plurality of pixels included in each of said one or more candidate blocks.
複数の前記サンプリング領域ごとに決定された前記サンプリング特徴量に基づいて、複数の前記サンプリング領域のうち1以上を前記周辺領域に決定する周辺領域決定手段と、をさらに備えた請求項1または2に記載の検査装置。 Sampling feature for determining a sampling feature value indicating a feature of the sampling region based on pixel values of the plurality of pixels included in the sampling region for each of a plurality of sampling regions each determined by a predetermined relative position to the target pixel. a quantity determining means;
3. The apparatus according to claim 1, further comprising peripheral area determining means for determining one or more of said plurality of sampling areas as said peripheral area based on said sampling feature amount determined for each of said plurality of sampling areas. Inspection equipment as described.
前記画像データから前記処理対象データを生成する処理対象データ生成手段と、をさらに備えた、請求項1~4のいずれかに記載の検査装置。 reading means for reading a recording medium on which an image is formed by the image forming apparatus and outputting image data;
5. The inspection apparatus according to any one of claims 1 to 4, further comprising processing target data generating means for generating said processing target data from said image data.
前記元データ中で所定の特徴が表された特徴領域を決定する特徴領域決定手段と、をさらに備え、
前記特徴量決定手段は、前記周辺領域のうち前記特徴領域以外の領域に含まれる複数の前記画素に基づいて前記周辺領域の前記特徴量を決定する、請求項5に記載の検査装置。 an original data acquisition unit for acquiring original data that is the basis of the image formed on the recording medium by the image forming apparatus;
further comprising feature area determining means for determining a feature area in which a predetermined feature is expressed in the original data,
6. The inspection apparatus according to claim 5, wherein said feature quantity determining means determines said feature quantity of said peripheral region based on said plurality of pixels included in a region other than said feature region in said peripheral region.
画像形成装置が画像を形成した記録媒体を読み取り、画像データを出力する読取手段と、
前記画像データから前記処理対象データを生成する処理対象データ生成手段と、を備え、
前記処理対象データ生成手段は、前記読取手段が出力する前記画像データの解像度を変更することにより前記処理対象データを生成し、
前記ノイズ検出手段は、前記注目画素と所定の相対位置で定まる周辺領域に含まれる複数の前記画素の画素値に基づいて前記周辺領域の特徴を示す特徴量を決定する特徴量決定手段と、
前記特徴量に基づいて前記注目画素に対するしきい値を決定するしきい値決定手段と、
決定された前記しきい値と前記注目画素の画素値とを比較する比較手段と、を含み、
前記ノイズ検出手段は、前記注目画素の画素値が前記注目画素に対して決定された前記しきい値で定まる範囲外となる場合に前記注目画素をノイズが現れるノイズ領域に決定する、検査装置。 noise detection means for detecting noise from the data to be processed by processing each of the plurality of pixels constituting the data to be processed in which a plurality of pixels are arranged two-dimensionally as a pixel of interest;
reading means for reading a recording medium on which an image is formed by the image forming apparatus and outputting image data;
a processing target data generation means for generating the processing target data from the image data;
The processing target data generating means generates the processing target data by changing the resolution of the image data output by the reading means,
The noise detection means includes a feature amount determination means for determining a feature amount indicating a feature of the surrounding area based on pixel values of a plurality of the pixels included in the surrounding area determined by a predetermined relative position to the target pixel;
threshold determination means for determining a threshold for the pixel of interest based on the feature quantity;
a comparing means for comparing the determined threshold value with the pixel value of the pixel of interest;
The noise detection means determines the pixel of interest to be a noise region in which noise appears when the pixel value of the pixel of interest is outside the range determined by the threshold value determined for the pixel of interest.
所定数以上が連続する前記候補画素の集合からなる領域をノイズが現れるノイズ領域に決定するノイズ領域決定手段と、をさらに含む請求項8に記載の検査装置。 The noise detection means determines the target pixel as a candidate pixel when the pixel value of the target pixel is out of the range determined by the threshold value determined for the target pixel;
9. The inspection apparatus according to claim 8 , further comprising noise region determining means for determining, as a noise region in which noise appears, a region formed by a set of said candidate pixels in which a predetermined number or more are consecutive.
複数の画素が二次元に配列された処理対象データを構成する複数の前記画素それぞれを注目画素として処理することにより、前記処理対象データからノイズを検出するノイズ検出ステップを含み、
前記ノイズ検出ステップは、前記注目画素と所定の相対位置で定まる周辺領域に含まれる複数の前記画素の画素値に基づいて前記周辺領域の特徴を示す特徴量を決定する特徴量決定ステップと、
前記特徴量に基づいて前記注目画素に対するしきい値を決定するしきい値決定ステップと、
決定された前記しきい値と前記注目画素の画素値とを比較する比較ステップと、
前記注目画素の画素値が前記注目画素に対して決定された前記しきい値で定まる範囲外となる場合に前記注目画素を候補画素に決定する候補決定ステップと、
所定数以上が連続する前記候補画素の集合からなる領域をノイズが現れるノイズ領域に決定するノイズ領域決定ステップと、を含む、検査方法。 An inspection method performed by an inspection device,
A noise detection step of detecting noise from the data to be processed by processing each of the plurality of pixels constituting the data to be processed in which a plurality of pixels are arranged two-dimensionally as a pixel of interest,
The noise detection step includes a feature amount determination step of determining a feature amount indicating a feature of the surrounding area based on pixel values of a plurality of the pixels included in the surrounding area determined by a predetermined relative position to the target pixel;
a threshold determination step of determining a threshold for the pixel of interest based on the feature quantity;
a comparing step of comparing the determined threshold value with the pixel value of the pixel of interest;
a candidate determination step of determining the target pixel as a candidate pixel when the pixel value of the target pixel is outside the range determined by the threshold value determined for the target pixel;
and a noise region determination step of determining a region formed by a set of said candidate pixels in which a predetermined number or more of said pixels are continuous as a noise region in which noise appears.
前記ノイズ検出ステップは、前記注目画素と所定の相対位置で定まる周辺領域に含まれる複数の前記画素の画素値に基づいて前記周辺領域の特徴を示す特徴量を決定する特徴量決定ステップと、
前記特徴量に基づいて前記注目画素に対するしきい値を決定するしきい値決定ステップと、
決定された前記しきい値と前記注目画素の画素値とを比較する比較ステップと、
前記注目画素の画素値が前記注目画素に対して決定された前記しきい値で定まる範囲外となる場合に前記注目画素を候補画素に決定する候補決定ステップと、
所定数以上が連続する前記候補画素の集合からなる領域をノイズが現れるノイズ領域に決定するノイズ領域決定ステップと、を含む、検査プログラム。 causing a computer to execute a noise detection step of detecting noise from the data to be processed by processing each of the plurality of pixels constituting the data to be processed in which the plurality of pixels are arranged two-dimensionally as a pixel of interest;
The noise detection step includes a feature amount determination step of determining a feature amount indicating a feature of the surrounding area based on pixel values of a plurality of the pixels included in the surrounding area determined by a predetermined relative position to the target pixel;
a threshold determination step of determining a threshold for the pixel of interest based on the feature quantity;
a comparing step of comparing the determined threshold value with the pixel value of the pixel of interest;
a candidate determination step of determining the target pixel as a candidate pixel when the pixel value of the target pixel is outside the range determined by the threshold value determined for the target pixel;
and a noise region determination step of determining a region formed by a set of said candidate pixels in which a predetermined number or more of consecutive pixels are a noise region in which noise appears.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2019017441A JP7225858B2 (en) | 2019-02-01 | 2019-02-01 | Inspection device, inspection method and inspection program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2019017441A JP7225858B2 (en) | 2019-02-01 | 2019-02-01 | Inspection device, inspection method and inspection program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2020127096A JP2020127096A (en) | 2020-08-20 |
| JP7225858B2 true JP7225858B2 (en) | 2023-02-21 |
Family
ID=72084313
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2019017441A Active JP7225858B2 (en) | 2019-02-01 | 2019-02-01 | Inspection device, inspection method and inspection program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7225858B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2022138685A1 (en) * | 2020-12-24 | 2022-06-30 | 京セラドキュメントソリューションズ株式会社 | Image processing method and image processing device |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008175558A (en) | 2007-01-16 | 2008-07-31 | Nec Corp | Device and method for visual inspection |
| JP2009182735A (en) | 2008-01-30 | 2009-08-13 | Kyocera Corp | Noise processing method, image processing apparatus, and information code reading apparatus |
| JP2018017673A (en) | 2016-07-29 | 2018-02-01 | 富士フイルム株式会社 | Printed matter inspection apparatus, printed matter inspection method and program |
-
2019
- 2019-02-01 JP JP2019017441A patent/JP7225858B2/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008175558A (en) | 2007-01-16 | 2008-07-31 | Nec Corp | Device and method for visual inspection |
| JP2009182735A (en) | 2008-01-30 | 2009-08-13 | Kyocera Corp | Noise processing method, image processing apparatus, and information code reading apparatus |
| JP2018017673A (en) | 2016-07-29 | 2018-02-01 | 富士フイルム株式会社 | Printed matter inspection apparatus, printed matter inspection method and program |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2020127096A (en) | 2020-08-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7130469B2 (en) | Image processing apparatus, image processing method, program, recording medium, and image forming apparatus having the same | |
| US7206461B2 (en) | Digital image acquisition and processing system | |
| US7369712B2 (en) | Automated statistical self-calibrating detection and removal of blemishes in digital images based on multiple occurrences of dust in images | |
| US7315658B2 (en) | Digital camera | |
| US7310450B2 (en) | Method of detecting and correcting dust in digital images based on aura and shadow region analysis | |
| US20040027618A1 (en) | Image defect detecting method | |
| JP5229328B2 (en) | Character area extraction device, imaging device having character area extraction function, and character area extraction program | |
| US9232109B2 (en) | Image processing apparatus and image processing method specifying a type of original based on whether a high frequency component is included in an acquired spatial frequency feature including a feature of fiber of an original | |
| JP2004318696A (en) | Image processing method, image processor, and image processing program | |
| JP5032895B2 (en) | A method for binarizing a digital gray value image. | |
| JP4931227B2 (en) | Image processing apparatus and image processing program | |
| JP2002084421A (en) | Signal processing method, signal processing device, and image reading device | |
| US7800661B2 (en) | Programmable pattern matching device | |
| JP7225858B2 (en) | Inspection device, inspection method and inspection program | |
| US20230056998A1 (en) | Apparatus and method | |
| US8330997B2 (en) | Image processing apparatus, image forming apparatus and image processing method | |
| JP5929282B2 (en) | Image processing apparatus and image processing program | |
| CN114937031A (en) | Defect detection method and apparatus | |
| JPH10294862A (en) | Image processing device | |
| JP4244046B2 (en) | Image processing method and image processing apparatus | |
| JP5121998B2 (en) | Image processing apparatus and image processing program | |
| CN100353381C (en) | Image inspecting apparatus, image inspecting method, control program and computer-readable storage medium | |
| JP2004318425A (en) | Image processing method, image processor, and program | |
| JP7672826B2 (en) | Image processing device, image processing method, and program | |
| JP4513006B2 (en) | Emulsion scratch determination method and emulsion scratch determination system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20210915 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20220523 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20220531 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20220713 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20221025 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20221219 |
|
| 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: 20230110 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20230123 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7225858 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |