JP4946415B2 - Image inspection device - Google Patents
Image inspection device Download PDFInfo
- Publication number
- JP4946415B2 JP4946415B2 JP2006338767A JP2006338767A JP4946415B2 JP 4946415 B2 JP4946415 B2 JP 4946415B2 JP 2006338767 A JP2006338767 A JP 2006338767A JP 2006338767 A JP2006338767 A JP 2006338767A JP 4946415 B2 JP4946415 B2 JP 4946415B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- image data
- data
- sheet
- pixel
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Description
本発明は、画像形成装置により形成された画像の良否を検査する技術に関する。 The present invention relates to a technique for inspecting the quality of an image formed by an image forming apparatus.
画像形成装置が画像を形成する際には、予期せぬ要因等によって本来の画像が形成されないことがある。そのため、画像形成装置には、画像が正常に形成されたか否かを検査する機能を有するものがある。このような画像形成装置は、シート(用紙)に画像を形成すると、その画像を光学的に読み取り、その画像の基となった画像データと比較してシート上の画像を検査する。 When an image forming apparatus forms an image, an original image may not be formed due to an unexpected factor or the like. Therefore, some image forming apparatuses have a function of inspecting whether or not an image is normally formed. When such an image forming apparatus forms an image on a sheet (paper), the image is optically read, and the image on the sheet is inspected by comparing with the image data on which the image is based.
ところで、例えば帳票のように、罫線、枠組み、網掛け等の画像が予め印刷されたシートに、項目や金額等の文字を表す画像が重畳して形成されることがある。このような場合には、特許文献1〜3に記載された技術が用いられる。特許文献1〜3には、読み取った画像から、事前にシートに印刷された画像を取り除いた画像に基づいて検査する技術が記載されている。
また、特に帳票等においては、画像形成装置は、黒を用いて文字等の画像を形成するのが一般的である。この場合、ユーザがその内容を視認しやすいように、シートに予め印刷された画像には黒色とは類似しない色が用いられることが比較的多い。よって、このような場合には、例えば特許文献4に記載されているように、画像から黒でない色を除去する技術を用いて、画像形成装置が意図する検査を行うこともできる。
Further, particularly in a form or the like, an image forming apparatus generally forms an image such as a character using black. In this case, in order to make it easy for the user to visually recognize the contents, a color that is not similar to black is often used for an image printed in advance on a sheet. Therefore, in such a case, for example, as described in
しかしながら、上記のいずれの技術であっても、目的の画像のみを抽出する処理は複雑であるため、高い処理能力が要求される。また、特に、画像形成装置が形成する画像の色とシートに予め印刷された画像の色とが類似する場合、画像形成装置が形成する画像のみを正確に抽出したり、あるいは予め印刷された画像のみを正確に除去することは、極めて困難である。 However, in any of the above-described techniques, the processing for extracting only the target image is complicated, and thus high processing capability is required. In particular, when the color of the image formed by the image forming apparatus is similar to the color of the image printed in advance on the sheet, only the image formed by the image forming apparatus is accurately extracted or the image printed in advance It is extremely difficult to accurately remove only.
本発明は上述の事情に鑑みてなされたものであり、従来よりも簡易的かつ迅速に不要な画像を除去することを目的とする。 The present invention has been made in view of the above-described circumstances, and an object of the present invention is to remove unnecessary images more easily and quickly than in the past.
上記課題を解決するため、本発明は、赤外波長域の光を吸収する画像として、第1の画像と、原稿画像データに基づく当該第1の画像よりも明度が低い第2の画像とが形成されたシートに赤外波長域の光を照射する照射手段と、前記シートに形成された画像の基となる前記原稿画像データを取得する取得手段と、前記照射手段によって照射された光のうち前記シートにおいて反射した赤外波長域の反射光を受光し、その受光量に応じた階調を有する読取画像データを所定の階調数で生成する生成手段と、前記生成手段によって生成された読取画像データを構成する画素データの階調値に応じて、当該画素データの各々について、前記第1の画像の明度と前記第2画像の明度との間の明度に対応する閾値を算出する算出手段と、前記読取画像データを構成する各画素データの階調値を、前記算出手段により当該画素データごとに算出された閾値とそれぞれ比較して、当該読取画像データの階調数を減ずる減数手段と、前記減数手段によって階調数が減じられた読取画像データと前記原稿画像データとの対応する位置の画素データの階調値を比較し、その比較結果を表すデータを出力する検査手段とを備えることを特徴とする画像検査装置を提供する。 To solve the above problem, this invention provides an image which absorbs light in the infrared wavelength region, a first image, the original image data in based rather the first second image brightness is lower than the image irradiating means for irradiating a light of infrared wavelength region on a sheet bets are formed, obtaining means for obtaining the original image data which is the basis of the image formed on the sheet, the light emitted by the irradiation unit Generation means for receiving reflected light in the infrared wavelength region reflected by the sheet and generating read image data having a gradation corresponding to the amount of received light with a predetermined number of gradations, and generated by the generation means A threshold value corresponding to the brightness between the brightness of the first image and the brightness of the second image is calculated for each of the pixel data according to the gradation value of the pixel data constituting the read image data. A calculating means; and the read image data The gradation value of each pixel data constituting the data, and comparing each with the threshold calculated for each corresponding pixel data by said calculation means, a subtrahend means reducing the number of gradations of the read image data, by the meiotic means And inspection means for comparing gradation values of pixel data at corresponding positions between the read image data with the reduced number of gradations and the document image data and outputting data representing the comparison result. An image inspection apparatus is provided.
本発明によれば、本構成を有しない場合と比較して、簡易的かつ迅速に不要な画像を除去することができる。 According to the present invention, unnecessary images can be easily and quickly removed as compared with the case where the present configuration is not provided.
以下、本発明の実施の形態について、図面を参照しながら説明する。
(1)第1実施形態
図1は、画像形成装置1の構成を示したブロック図である。図1に示すように、画像形成装置1は、画像形成部10と、赤外読取部20と、制御部30と、記憶部40と、UI(User Interface)部50と、通信部60とを備えている。
画像形成部10は、供給された画像データに基づいてシートに画像を形成する。赤外読取部20は、赤外光源により光を照射し、シートに形成された画像を光学的に読み取って画像データを生成する。制御部30は、装置全体を制御するCPU(Central Processing Unit)や作業用のワークエリアを提供するRAM(Random Access Memory)および各種制御プログラムを記憶するROM(Read Only Memory)を備え、制御プログラムに記述された手順に従って演算処理を行う。記憶部40は、HDD(Hard Disk Drive)等の記憶装置を備え、各種データを記憶する。UI部50は、タッチパネルや各種ボタンを備え、ユーザからの操作を受け付けるとともに、画像や音声により情報の通知を行う。通信部60は、ネットワークを介して通信を行うためのインターフェース装置であり、LAN(Local Area Network)等のネットワークを介して、図示せぬコンピュータ等の外部端末から画像データを受信する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
(1) First Embodiment FIG. 1 is a block diagram showing a configuration of an
The
続いて、図2を参照し、画像形成部10および赤外読取部20の構成を説明する。
画像形成部10は、複数のトレイ11と、複数の搬送ロール12と、画像形成ユニット13と、定着器14とを備える。
トレイ11は、所定のサイズのシートをそれぞれ収容している。トレイ11に収容されているシートには、予め画像が形成されている。すなわち、本実施形態におけるシートは、いわゆるプレプリント用紙である。なお、シートに予め形成されている画像のことを、以下においては「事前印刷画像」という。
Next, the configuration of the
The
The
ここで、事前印刷画像について説明する。図3は、事前印刷画像が形成されたシートを例示した図である。事前印刷画像は、インク等の色材を用いて、白色無地のシートSに形成されている。図3においては、事前印刷画像A1と事前印刷画像A2とを示している。事前印刷画像A1およびA2は、罫線や網掛画像により構成される。なお、網掛画像とは、網点等により表されるハーフトーン画像のことであり、図3においては、これをハッチングで示している。
また、事前印刷画像A1は、黒色以外の色材により形成されている。一方、事前印刷画像A2は、低明度のグレーの色材、すなわち黒色の色材をある程度含む色材により形成されている。事前印刷画像A2が低明度のグレーであるのは、これと重なって形成される文字等の画像の視認性(見やすさ)を妨げないためである。
なお、以下においては、必要に応じて、事前印刷画像A1およびA2を総称して「事前印刷画像A」という。
Here, the preprinted image will be described. FIG. 3 is a diagram illustrating a sheet on which a preprinted image is formed. The preprinted image is formed on a white plain sheet S using a color material such as ink. FIG. 3 shows the preprinted image A1 and the preprinted image A2. The preprinted images A1 and A2 are composed of ruled lines and shaded images. A halftone image is a halftone image represented by a halftone dot or the like, and in FIG. 3, this is indicated by hatching.
The preprinted image A1 is formed of a color material other than black. On the other hand, the pre-printed image A2 is formed of a low-lightness gray color material, that is, a color material containing black color material to some extent. The reason why the pre-printed image A2 is gray with low brightness is that it does not hinder the visibility (ease of viewing) of images such as characters that are formed overlapping the pre-printed image A2.
In the following description, the preprinted images A1 and A2 are collectively referred to as “preprinted image A” as necessary.
複数の搬送ロール12は、それぞれ、上述した事前印刷画像Aが形成されたシートSを、画像の形成に合わせて搬送する。画像形成ユニット13は、電子写真方式により画像を形成する。すなわち、画像形成ユニット13は、感光体ドラム、帯電部、露光部、現像部、転写部等を有し、トナーによりシートSに画像を形成する。なお、画像形成ユニット13は、黒色のトナーにより画像を形成する。感光体ドラムは、軸を中心にして所定の速度で周回するドラム状の部材である。帯電部は、感光体ドラム表面を所定の電位に帯電する。露光部は、帯電した感光体ドラムにビームを照射して静電潜像を形成する。現像部は、感光体ドラムに形成された静電潜像にトナーを付着させて画像を現像する。定着器14は、シートを加熱および加圧するためのロール部材を備えており、シートSに転写された画像を定着させる。このような構成のもと、画像形成部10は、供給された画像データに基づいて黒色のトナーを用いて画像を形成する。この、画像形成部10により形成される画像のことを、以下では「原稿画像」という。
Each of the plurality of
ここで、原稿画像について説明する。図4は、原稿画像の一例である原稿画像Bが形成されたシートSを示した図である。上述したように、原稿画像Bは、複数の文字や記号からなり、黒色のトナーにより形成されている。なお、シートSのうちの原稿画像Bが形成されていない領域は、シートSがそのまま露出しているため、白色である。なお、以下においては、シートSのうちの原稿画像Bが形成された領域のことを「画像領域」といい、原稿画像Bが形成されていない領域のことを「背景領域」という。 Here, the document image will be described. FIG. 4 is a diagram illustrating a sheet S on which a document image B, which is an example of a document image, is formed. As described above, the document image B includes a plurality of characters and symbols and is formed of black toner. An area of the sheet S where the original image B is not formed is white because the sheet S is exposed as it is. In the following, an area of the sheet S where the original image B is formed is referred to as an “image area”, and an area where the original image B is not formed is referred to as a “background area”.
原稿画像を表す原稿画像データは、階調数が「256」である画素データの集合によって構成されている。画素データは、階調値が「0」である場合に黒色、「255」である場合に白色を示し、その他の場合には中間調、すなわちグレーを示す。
なお、以下においては、原稿画像データが表す原稿画像の左上端を原点とし、図3に示したX軸およびY軸による直交座標を定め、その画素データの座標を(x1,y1)と表記する。
The document image data representing the document image is configured by a set of pixel data having a gradation number of “256”. The pixel data indicates black when the gradation value is “0”, white when it is “255”, and indicates halftone, that is, gray when the gradation value is “255”.
In the following description, the upper left corner of the document image represented by the document image data is set as the origin, the orthogonal coordinates based on the X axis and the Y axis shown in FIG. 3 are defined, and the coordinates of the pixel data are expressed as (x1, y1). .
次に、赤外読取部20の構成を説明する。図2に示したように、赤外読取部20は、画像形成部10の定着器14よりも下流側に設けられており、画像形成部10により原稿画像が形成されたシートを光学的に読み取る。図5は、赤外読取部20の装置構成を示した図である。図5に示したように、赤外読取部20は、赤外光源21と、結像レンズ22と、イメージセンサ23とを備える。
Next, the configuration of the
赤外光源21は、赤外波長域の光を照射する光源である。赤外光源21は、搬送されるシートに対して所定の位置で光を照射する。なお、赤外光源21が照射する光は、赤外波長域を成分として含んでいればよく、その他の成分を含んでいてもよい。結像レンズ22は、シートからの反射光をイメージセンサ23の位置で結像する。イメージセンサ23は、赤外波長域に感度を有する撮像素子を有する。イメージセンサ23は、結像された光を受光し、その受光量に応じた画像データを生成して出力する。赤外読取部20が生成する画像データは、階調数が「256」である画素データにより構成される。すなわち、赤外読取部20は、階調値が8ビット(256階調)で表される画素データの値の大小によってシートに形成された原稿画像の濃淡を表す。本実施形態においては、階調値が大きいほど明度が高く(明るく)、階調値が小さいほど明度が低い(暗い)とする。
なお、以下においては、赤外読取部20が生成する画像データを「読取画像データ」といい、他の画像データと区別する。また、読取画像データが表す読取画像の左上端を原点とし、原稿画像と同様の直交座標を定め、その画素データの座標を(x2,y2)と表記する。
The infrared
In the following, the image data generated by the
また、制御部30は、画像形成装置1の各部を制御するための演算処理に加えて、画像データに適用する種々の画像処理を実行する。制御部30が実行する画像処理の一部を図示すると、例えば図6のようになる。図6は、制御部30がROMに記憶された制御プログラムを実行することにより実現される機能を示す機能ブロック図である。なお、図中の矢印は、データの流れを概略的に示したものである。
制御部30は、原稿画像データと、この原稿画像データに基づいてシートに形成された画像を読み取って生成された読取画像データとを比較することにより画像の検査を行う機能を実現する。この機能は、減数処理部31と、照合部32とによって実現される。
Further, the
The
減数処理部31は、比較の対象となる読取画像データと原稿画像データとを取得し、これらの各々の画素データの階調数を所定の閾値に基づいて減ずる処理を行う。本実施形態においては、減数処理部31は、画素データの階調数を256階調から2階調に減ずる、いわゆる二値化処理を実行する。減数処理部31は、読取画像データおよび原稿画像データに二値化処理を行うと、画素データの階調値は「0」または「1」のいずれかになる。以下においては、画素データの階調値が「0」である画素を「黒画素」といい、画素データの階調値が「1」である画素を「白画素」という。照合部32は、減数処理部31において二値化処理が行われた読取画像データおよび原稿画像データを取得して、これらの画像データを比較して一致度を求める。この照合処理においては、照合部32は、例えば残差逐次検定法等を用いて、各画素データについて階調値が一致するか否かを判定する。照合部32は、各画素データについて判定を行った後、読取画像データと原稿画像データの一致の度合いを示すデータを生成して出力する。
The
以上の構成のもと、画像形成装置1は、原稿画像データに基づいた画像をシートに形成する。また、画像形成装置1は、必要に応じて、画像形成部10によって画像が形成されたシートを、赤外読取部20を用いて検査する。画像形成装置1が検査を行うタイミングは、ユーザに指示されたときでもよいし、予め決められた周期であってもよい。もちろん、画像形成部10が画像を形成する毎に検査を行ってもよい。
図7は、画像形成装置1が画像を検査する動作の手順を示したフローチャートである。以下では、このフローチャートに沿って画像形成装置1の動作を説明する。
With the above configuration, the
FIG. 7 is a flowchart showing a procedure of an operation in which the
まず、制御部30は、画像形成装置1に対して原稿画像Bを形成することが指示されると、この原稿画像Bを表す原稿画像データに減数処理、すなわち二値化処理を行う(ステップSA1)。そして、制御部30は、二値化後の原稿画像データを記憶部40に記憶させる。
First, when the
次に、制御部30は、受信した原稿画像データを画像形成部10に供給して画像を形成するよう指示する。この指示に応じて、画像形成部10は、供給される原稿画像データに基づいて原稿画像Bを形成する。このとき、シートには、原稿画像Bと事前印刷画像Aとが重畳されて形成されている。赤外読取部20は、このような画像を検査対象として読み取る。そこで、以下では、この状態の画像のことを「検査画像」という。図8は、シートSに形成された検査画像Cを例示した図である。検査画像Cは、図3に示した事前印刷画像Aが形成されたシートSに、図4に示した原稿画像Bが重畳して形成された画像である。
Next, the
続いて、制御部30は、赤外読取部20に検査画像Cを読み取ることで得られる読取画像データを生成させる(ステップSA2)。図9は、この読取画像データが表す読取画像Caを示した図である。図9より、読取画像データが表す読取画像Caは、検査画像Cから網掛画像A1を除去した画像となる。これは、赤外読取部20が、シートSからの赤外波長域の反射光に応じて、読取画像データを生成しているからである。
Subsequently, the
一般に、トナーやインク等の色材においては、黒色の色材が赤外波長域の光を吸収する一方で、その他の色の色材は赤外波長域の光をほとんど反射する。また、シートSの表面も白色であるため、赤外波長域の光をほとんど反射する。すなわち、赤外波長域の光を吸収するのは、実質的に黒色の色材で画像が形成されている領域のみとなる。本実施形態においては、原稿画像Bはいずれも黒色のトナーで形成されている一方、事前印刷画像Aについては、事前印刷画像A1が黒色以外の色材で形成されているのに対して、事前印刷画像A2が黒色の色材を含む色材で形成されている。それゆえ、読取画像Caは、検査画像Cから事前印刷画像A1を除いたような画像となる。 In general, in color materials such as toner and ink, black color materials absorb light in the infrared wavelength region, while color materials of other colors almost reflect light in the infrared wavelength region. Further, since the surface of the sheet S is also white, most of the light in the infrared wavelength region is reflected. In other words, light in the infrared wavelength region is absorbed only in a region where an image is formed with a substantially black color material. In the present embodiment, all of the document images B are formed with black toner, whereas the preprinted image A is preliminarily formed with a color material other than black. The print image A2 is formed of a color material including a black color material. Therefore, the read image Ca is an image obtained by removing the preprinted image A1 from the inspection image C.
続いて、制御部30は、赤外読取部20から読取画像データが供給されると、所定の閾値に基づいて、この読取画像データに二値化処理を行う(ステップSA3)。すなわち、制御部30は、読取画像データの各画素データの階調値を所定の閾値と比較し、階調値が閾値以上である画素データの階調値を「1」に変換し、階調値が閾値未満である画素データの階調値を「0」に変換する。つまり、読取画像データの階調数は、「256」から「2」へと減じられる。
Subsequently, when the read image data is supplied from the
ここで、ステップSA3で用いられる閾値の決定方法について説明する。上述したように、原稿画像Bの画像領域には黒色のトナーが用いられ、事前印刷画像A2には低明度のグレーのインク等が用いられる。よって、閾値は、事前印刷画像A2に用いられるグレーに対応する階調値と、原稿画像データの階調値とに基づいて設定されればよい。具体的には、閾値は、事前印刷画像A2に対応する画素データの階調値と原稿画像Bの画像領域に対応する画素データの階調値との中間の階調値に設定される。本実施形態では、この閾値は、読取画像データを構成する全ての画素データについて同一であるとする。 Here, the threshold value determination method used in step SA3 will be described. As described above, black toner is used for the image area of the original image B, and low-lightness gray ink or the like is used for the preprinted image A2. Therefore, the threshold value may be set based on the gradation value corresponding to gray used for the preprinted image A2 and the gradation value of the document image data. Specifically, the threshold value is set to an intermediate gradation value between the gradation value of the pixel data corresponding to the preprinted image A2 and the gradation value of the pixel data corresponding to the image area of the document image B. In this embodiment, it is assumed that this threshold value is the same for all pixel data constituting the read image data.
次に、制御部30は、ステップSA1で二値化を行った原稿画像データを記憶部40から読み出し、二値化後の読取画像データと比較する照合処理を行う(ステップSA4)。この照合処理において、制御部30は、例えば残差逐次検定法を用いて画素単位でのテンプレートパターンマッチングを行う。そして、制御部30は、これらの画像データについて、対応する位置の画素データの階調値どうしを比較し、これらが不一致である画素として特定する。その後、制御部30は、この不一致である画素の数や位置に基づいて、不一致である画素が所定の許容量を超えるか否かを判断し、その旨を示すデータを生成して出力する(ステップSA5)。そして、制御部30は、このデータが示す判断結果に基づいて、不一致である画素が許容量を超えていると判断すれば、例えば「印刷不良です。」というメッセージをUI部50に表示させるなどして、ユーザに報知する。一方、制御部30は、不一致である画素が許容量内であると判断すれば、その旨を示すデータを生成して出力し、その示す判断結果に基づいて、例えば「正常に印刷されています。」というメッセージをUI部50に表示させるなどしてユーザに通知する。
なお、制御部30は、不一致の画素が許容量を超えていると判断した場合に、対応するシートSに「印刷不良」等の文字の画像を重畳して形成させ、ユーザが誤って使用することを防止できるようにしてもよい。
Next, the
Note that when the
以上述べた第1実施形態によれば、画像形成装置1は、検査画像に赤外光源21の光を照射することにより、検査画像の黒色以外の色材で形成された事前印刷画像を除去した読取画像データを生成する。さらに、画像形成装置1は、この読取画像データに二値化を行い、読取画像に含まれる黒色以外の色材で形成された事前印刷画像を除去する。このようにすれば、画像形成装置1は、検査画像から事前印刷画像のみを取り除いた画像を表す読取画像データと、二値後の原稿画像データとを比較して検査することができる。すなわち、本実施形態の画像形成装置1によれば、赤外光源21を用い、二値化処理(減数処理)を行うという比較的簡易な方法を用いて、迅速に検査画像から事前印刷画像を除去した画像を生成し、精度よく検査を行うことができる。
According to the first embodiment described above, the
(2)第2実施形態
次に、本発明の第2実施形態について説明する。なお、本実施形態は、上述した第1実施形態とは動作が異なるものの、装置構成については同様である。そこで、本実施形態においては、その動作について説明する。
(2) Second Embodiment Next, a second embodiment of the present invention will be described. The present embodiment is the same as the apparatus configuration although the operation is different from that of the first embodiment described above. Therefore, in this embodiment, the operation will be described.
図10は、本実施形態において、画像形成装置1が検査画像を検査する動作の手順を示したフローチャートである。図10より、制御部30は、まず、二値化処理に用いる閾値を読取画像データを構成する各画素データについて算出する(ステップSB1)。この閾値は、画素データの座標毎に異なる値となるため、以下ではこれを「閾値Thx2,y2(px1,y1)」とする。
ここで、閾値Thx2,y2(px1,y1)の算出方法について説明する。制御部30は、読取画像データの座標(x2,y2)の画素データの閾値Thx2,y2(px1,y1)を算出するべく、原稿画像データの座標(x1,y1)の画素データの階調値を用いて、次式(1)に示す演算を行う。
(数1)
Thx2,y2(px1,y1)=(TH−TL)*px1,y1/255+TL・・・(1)
FIG. 10 is a flowchart showing a procedure of an operation in which the
Here, a method of calculating the threshold Th x2, y2 (p x1, y1 ) will be described. The
(Equation 1)
Th x2, y2 (p x1, y1) = (T H -T L) * p x1, y1 / 255 + T L ··· (1)
式(1)において、px1,y1は、原稿画像の座標(x1,y1)の画素を注目画素としたX軸方向に3個分とY軸方向に3個分の9個の画素群(以下、「近傍画素群」という)の階調値の平均値である。また、TLは、px1,y1=0のときの座標(x2,y2)の画素データの閾値であり、THはpx1,y1=255のときの座標(x2,y2)の画素データの閾値である。TLおよびTHは、あらかじめ決められた値である。 In Expression (1), p x1, y1 is a group of nine pixels (three pixels in the X-axis direction and three pixels in the Y-axis direction) with the pixel at the coordinates (x1, y1) of the document image as the target pixel. Hereinafter, it is an average value of gradation values of “neighboring pixel group”. Further, T L is a threshold of the pixel data of the coordinates when the p x1, y1 = 0 (x2 , y2), T H is p x1, y1 = 255 pixel data of the coordinates (x2, y2) of the time Is the threshold value. T L and T H are predetermined values.
図11は、式(1)によって表される階調値px1,y1と閾値Thx2,y2(px1,y1)との関係を図示したグラフである。図11より、閾値Thx2,y2(px1,y1)は、px1,y1の値に応じて増加する線形関数によって特定される。このように、原稿画像データを構成する画素データの階調値に応じて閾値が決められることにより、制御部30が読取画像データを二値化する際に、事前印刷画像をより精度良く除去することができるようになる。以下では、具体的に、原稿画像データの階調値の一例を用いて、画素データ毎に算出される閾値Thx2,y2(px1,y1)について説明する。
FIG. 11 is a graph illustrating the relationship between the gradation value p x1, y1 represented by the equation (1) and the threshold Th x2, y2 (p x1, y1 ). From FIG. 11, the threshold Th x2, y2 (p x1, y1 ) is specified by a linear function that increases in accordance with the value of p x1, y1 . As described above, the threshold value is determined according to the gradation value of the pixel data constituting the document image data, so that when the
図12は、ある原稿画像データの領域Wに注目し、この領域Wに位置する各画素データの階調値を示している。図12より、領域Wは「H」型の画像領域を含んでおり、この画像領域は画素データの階調値が「0」の黒画素によって構成されている。このような画像領域を含む領域Wについて、制御部30が式(1)に基づいて読取画像データの画素データ毎に閾値Thx2,y2(px1,y1)を算出すると、その閾値Thx2,y2(px1,y1)は図13のようになる。図13より、注目画素を含む近傍画素群に多くの黒画素が位置するほど、近傍画素群の階調値は小さくなり、注目画素に対応する閾値は小さくなる。近傍画素群の階調値が小さいということは、注目画素を含む近傍画素群には比較的濃度が高い画素が存在することを意味する。よって、読取画像データの注目した画素が画像領域に位置する場合には、閾値が比較的小さくても事前印刷画像と誤って除去されることはない。これに対して、注目した画素が背景領域に位置する場合には、閾値が小さいため、グレーの事前印刷画像の濃度がある程度は高くても除去される。
FIG. 12 shows the gradation value of each pixel data located in this area W by paying attention to the area W of a certain document image data. As shown in FIG. 12, the region W includes an “H” type image region, and this image region is composed of black pixels whose gradation value of pixel data is “0”. When the
一方、注目画素を含む近傍画素群に多くの白画素が位置するほど、近傍画素群の階調値は大きくなり、注目画素に対する閾値は大きくなる。近傍画素群の階調値が大きいということは、注目画素を含む近傍画素群には比較的濃度が低い画素が存在することを意味する。よって、読取画像データの注目画素が画像領域に位置する場合には、閾値が比較的大きいから事前印刷画像と誤って除去されることはない。これに対して、注目画素が背景領域に位置する場合には、ある程度の濃度以下の事前印刷画像が除去される。
なお、上述した式(1)では、原稿画像を構成する画素データの階調値px1,y1を変数とした線形関数(一次関数)で閾値Thx2,y2(px1,y1)を算出しているが、関数はこれに限らない。例えば、一次関数よりもさらに高次の式で表される曲線関数であってもよい。
On the other hand, the more white pixels are located in the neighboring pixel group including the target pixel, the larger the gradation value of the neighboring pixel group and the larger the threshold for the target pixel. A large tone value of the neighboring pixel group means that a pixel having a relatively low density exists in the neighboring pixel group including the target pixel. Therefore, when the target pixel of the read image data is located in the image area, the threshold value is relatively large, so that it is not mistakenly removed as a preprinted image. On the other hand, when the target pixel is located in the background area, a preprinted image having a certain density or less is removed.
In the above equation (1), the threshold value Th x2, y2 (p x1, y1 ) is calculated by a linear function (linear function) with the gradation values p x1, y1 of the pixel data constituting the document image as variables. However, the function is not limited to this. For example, it may be a curve function represented by a higher order expression than a linear function.
ここで図10の説明に戻る。閾値Thx2,y2(px1,y1)を算出したら、制御部30は、原稿画像データに二値化を行い(ステップSB2)、赤外読取部20に検査画像の読取画像データを生成させる(ステップSB3)。そして、制御部30は、ステップSB1で求めた閾値Thx2,y2(px1,y1)に基づいて、読取画像データに二値化を行う(ステップSB4)。そして、制御部30は、二値化後の読取画像データと、ステップSB2で二値化を行った原稿画像データとの照合処理を行い(ステップSB5)、不一致である画素が所定の許容量を超えるか否かを判断し、その旨を示すデータを生成して出力する(ステップSB6)。なお、ステップSB2、SB3、SB5およびSB6の動作は、上述した第1実施形態のステップSA1、SA2、SA3およびSA5の動作と同様である。
Returning to the description of FIG. After calculating the threshold Th x2, y2 (p x1, y1 ), the
以上述べた第2実施形態によれば、画像形成装置1は、原稿画像データを構成する画素データの階調値に応じて、読取画像データを構成する各画素データの閾値を求める。このことにより、読取画像データの注目した画素が画像領域であれば、事前印刷画像と誤って除去されることを回避できるし、注目した画素が背景領域であれば、ある程度は高濃度の事前印刷画像であっても、二値化により精度良く事前印刷画像が除去される。
According to the second embodiment described above, the
(3)変形例
なお、本発明は上述した実施形態にのみ限定されるものではなく、種々の態様にて実施することが可能である。具体的には、例えば以下のような変形が挙げられる。なお、これらの変形は、各々を適宜に組み合わせることも可能である。
(3) Modifications Note that the present invention is not limited to the above-described embodiment, and can be implemented in various modes. Specifically, the following modifications are mentioned, for example. These modifications can be combined as appropriate.
上述した実施形態においては、画像検査装置を一体に構成した画像形成装置1を例示して説明したが、例えば、画像検査装置に相当する構成のみを着脱自在なオプション装置として構成してもよい。すなわち、この画像検査装置は、上述した赤外読取部20と、制御部30とを備え、外部装置である画像形成装置から原稿画像データを取得するものである。
In the above-described embodiment, the
上述した第1実施形態では、読取画像データの二値化に用いる閾値を、ユーザが設定していたが、事前印刷画像に応じて画像形成装置1が設定してもよい。
例えば、ユーザが、トレイ11に、異なる事前印刷画像が形成されたシートを新たに収容した場合に、UI部50を操作して、画像形成装置1に閾値を更新する処理を行うように指示する。この指示に応じて、制御部30は、トレイ11に収容されたシートを、搬送ロール12に1枚だけ搬送させる。このとき、画像形成ユニット13および定着器14は、画像形成時の動作を行わず停止しており、シートの搬送のみが行われる。赤外読取部20は、シートが搬送ロール12上の所定の位置に搬送されると、事前印刷画像を読み取った画像を表す事前印刷画像データを生成する。この事前印刷画像データを構成する画素データの階調値は、上述した読取画像データと同様に、256階調の濃度を表す値となる。
以下においては、事前印刷画像データが表す画像の左上隅を原点とし、原稿画像と同様の直交座標を定め、その画素データの座標を(x3,y3)と表す。
そして、制御部30は、この事前印刷画像データに基づいて、読取画像データの閾値Thx2,y2(px3,y3)を算出するべく、次式(2)に示す演算を行う。
(数2)
Thx2,y2(px3,y3)≦px3,y3+α(x3,y3)・・・(2)
In the first embodiment described above, the user sets the threshold value used for binarization of the read image data. However, the
For example, when the user newly accommodates a sheet on which a different pre-printed image is formed in the
In the following, the upper left corner of the image represented by the preprinted image data is set as the origin, the orthogonal coordinates similar to the original image are defined, and the coordinates of the pixel data are represented as (x3, y3).
Then, the
(Equation 2)
Th x2, y2 (p x3, y3 ) ≦ p x3, y3 + α (x3, y3) (2)
式(2)は、読取画像データの座標アドレス(x2,y2)の画素データが取り得る閾値Thx2,y2(px3,y3)の範囲を指定するものであり、画素データの階調値px3,y3にオフセットα(x3,y3)を加えたものよりも小さくなるようにしている。このようにすれば、制御部30が読取画像データに二値化を行った際に、事前印刷画像のみをより確実に除去することができる。
ここで、画素データの階調値px3,y3にオフセットα(x3,y3)を加える理由について説明する。スキャナ等の画像読取手段においては、イメージセンサ等の各部材にゴミが付着して、これが光路上に存在する場合、面内で濃度が不均一となる面内ムラが発生することがある。したがって、赤外読取部20が生成する画素データの階調値px3,y3にも、本来の値とは異なってしまうことがある。このような場合に、単に閾値Thx2,y2(px3,y3)が、階調値px3,y3以下であればよいという条件では、事前印刷画像が除去されなかったり、原稿画像の画像が誤って除去されてしまう虞がある。よって、赤外読取部20が、階調値が既知である画像データに基づいてシートに画像を形成する。そして、制御部30が、当該画像を読み取って生成された画像データを構成する各画素データについて、階調値を本来の値に補正するための補正値を求める。そして、制御部30は、この補正値をオフセットα(x3,y3)として用いれば、事前印刷画像データを表す画像が面内ムラの影響を受けていても、所望の閾値Thx2,y2(px3,y3)を求めることができる。
Expression (2) specifies a range of threshold values Th x2, y2 (p x3, y3 ) that can be taken by the pixel data at the coordinate address (x2, y2) of the read image data, and the gradation value p of the pixel data It is made smaller than x3, y3 plus offset α (x3, y3) . In this way, when the
Here, the reason why the offset α (x3, y3) is added to the gradation value p x3, y3 of the pixel data will be described. In an image reading unit such as a scanner, if dust adheres to each member such as an image sensor and exists on the optical path, in-plane unevenness in which the density is nonuniform in the surface may occur. Therefore, the gradation values p x3 and y3 of the pixel data generated by the
上述した第1実施形態では、読取画像データに対応する閾値は、読取画像データを構成する全ての画素データについて同一としていたが、制御部30は、位置に応じて異なる閾値を用いて事前印刷画像を除去するようにしてもよい。例えば、読取画像データを複数の領域に分割し、想定し得る事前印刷画像に対応する画素データの階調値が比較的大きな領域の閾値を大きくし、階調値が小さな領域の閾値を小さくする、という具合に閾値を設定する。特に、検査画像において、原稿画像と事前印刷画像とが重畳するような領域付近では、より確実に事前印刷画像を除去されるべきであるから、対応する領域の閾値を小さくし、原稿画像データに含まれる階調値に近づけるようにしてもよい。
このようにすれば、検査画像に様々な明度のグレーが含まれている場合にも、制御部30は、読取画像から事前印刷画像のみを、さらに精度良く取り除くことができる。
In the first embodiment described above, the threshold value corresponding to the read image data is the same for all the pixel data constituting the read image data. However, the
In this way, the
上述した実施形態では、制御部30は、ステップSA4やステップSB5の照合処理において、各々の画像データ全体を比較する処理を行っていたが、画像データの一部を比較する照合処理を行ってもよい。例えば、事前印刷画像に文字が含まれる場合などには、事前印刷画像にも黒の画像が含まれることがある。この場合、二値化後の読取画像Cにも事前印刷画像を表す画像が残ってしまい、制御部30が照合処理を行ったとしても、それに応じた不一致の画素が現れてしまう。そこで、制御部30は、原稿画像の画像領域付近に対応する画素データのみについて照合処理を行うようにする。これは、仮に事前印刷画像に黒の画像が含まれたとしても、この事前印刷画像は、原稿画像の内容の視認性を妨げることがないよう、原稿画像の画像領域とは異なる領域に限定して用いられることが多いからである。
In the embodiment described above, the
上述した第1実施形態では、制御部30は、ステップSA1で原稿画像データに二値化を行っていたが、ステップSA4における照合処理までに行えばよいので、制御部30は、ステップSA2における読取画像データの生成後や、ステップSA3における二値化後に行ってもよい。また、上述した第2実施形態においても、制御部30は、ステップSB5における照合処理までに原稿画像データに二値化を行えばよい。
また、制御部30は、原稿画像データや読取画像データに二値化を行っていたが、4階調等の異なる階調数に減数してもよい。
In the first embodiment described above, the
The
1…画像形成装置、10…画像形成部、11…トレイ、12…搬送ロール、13…画像形成ユニット、14…定着器、20…赤外読取部、21…赤外光源、22…結像レンズ、23…イメージセンサ、30…制御部、31…減数処理部、32…照合部、40…記憶部、50…UI部、60…通信部。
DESCRIPTION OF
Claims (1)
前記シートに形成された画像の基となる前記原稿画像データを取得する取得手段と、
前記照射手段によって照射された光のうち前記シートにおいて反射した赤外波長域の反射光を受光し、その受光量に応じた階調を有する読取画像データを所定の階調数で生成する生成手段と、
前記生成手段によって生成された読取画像データを構成する画素データの階調値に応じて、当該画素データの各々について、前記第1の画像の明度と前記第2画像の明度との間の明度に対応する閾値を算出する算出手段と、
前記読取画像データを構成する各画素データの階調値を、前記算出手段により当該画素データごとに算出された閾値とそれぞれ比較して、当該読取画像データの階調数を減ずる減数手段と、
前記減数手段によって階調数が減じられた読取画像データと前記原稿画像データとの対応する位置の画素データの階調値を比較し、その比較結果を表すデータを出力する検査手段と
を備えることを特徴とする画像検査装置。 An image that absorbs light in the infrared wavelength region, a first image, the infrared wavelength region in the document image data on a sheet and the second image brightness is low is formed than said first image rather based Irradiating means for irradiating light of
Obtaining means for obtaining the original image data that is a basis of an image formed on the sheet;
Generation means for receiving reflected light in the infrared wavelength region reflected by the sheet from the light irradiated by the irradiation means, and generating read image data having a gradation corresponding to the amount of received light with a predetermined number of gradations When,
In accordance with the gradation value of the pixel data constituting the read image data generated by the generation unit, for each of the pixel data, the brightness between the brightness of the first image and the brightness of the second image is set. A calculating means for calculating a corresponding threshold value;
A reduction means for reducing the number of gradations of the read image data by comparing the gradation value of each pixel data constituting the read image data with a threshold value calculated for each of the pixel data by the calculation means ;
Inspection means for comparing gradation values of pixel data at corresponding positions between the read image data whose number of gradations has been reduced by the reduction means and the document image data, and outputting data representing the comparison result. An image inspection apparatus.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006338767A JP4946415B2 (en) | 2006-12-15 | 2006-12-15 | Image inspection device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006338767A JP4946415B2 (en) | 2006-12-15 | 2006-12-15 | Image inspection device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2008149539A JP2008149539A (en) | 2008-07-03 |
JP4946415B2 true JP4946415B2 (en) | 2012-06-06 |
Family
ID=39652264
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006338767A Expired - Fee Related JP4946415B2 (en) | 2006-12-15 | 2006-12-15 | Image inspection device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4946415B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5394869B2 (en) * | 2009-09-25 | 2014-01-22 | 大日本スクリーン製造株式会社 | Droplet coating apparatus and droplet coating method |
CN109447148A (en) * | 2018-10-24 | 2019-03-08 | 北京赢销通软件技术有限公司 | The method and device of images match during a kind of script execution |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005214694A (en) * | 2004-01-28 | 2005-08-11 | Fuji Photo Film Co Ltd | Printing inspection method, printing inspection system and material to be printed subjected to them |
JP2006076101A (en) * | 2004-09-09 | 2006-03-23 | Fuji Xerox Co Ltd | Printing result inspecting apparatus and its method |
JP2006231693A (en) * | 2005-02-24 | 2006-09-07 | Fuji Xerox Co Ltd | Method for setting control parameter of printer, method for setting control parameter of printing inspection apparatus, printing inspection method, printer, and printing inspection apparatus |
-
2006
- 2006-12-15 JP JP2006338767A patent/JP4946415B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2008149539A (en) | 2008-07-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4979357B2 (en) | Image forming apparatus and control method thereof | |
JP7456472B2 (en) | Image inspection equipment, image inspection method, and image inspection program | |
JP2012000876A (en) | Variable printing inspection device and variable printing inspection method | |
JP4779987B2 (en) | Image processing apparatus and image processing method | |
JP6613912B2 (en) | Inspection device, inspection system, filter processing method, and program | |
JP7230444B2 (en) | IMAGE INSPECTION APPARATUS, IMAGE INSPECTION METHOD AND IMAGE INSPECTION PROGRAM | |
JP4557959B2 (en) | Electrophotographic image forming apparatus using toner and electrophotographic image forming method using toner | |
JP2022023712A (en) | Information processing device, output method, and output program | |
JP6705305B2 (en) | Inspection device, inspection method and program | |
JP6635335B2 (en) | Image inspection device and image forming system | |
JP2016061603A (en) | Projection device and projection method | |
JP2016086271A (en) | Image formation device and printing inspection system | |
JP4946415B2 (en) | Image inspection device | |
JP2009290612A (en) | Image processing device, image processing method and image forming apparatus | |
JP2013235458A (en) | Inspection system, inspection device, inspection method, and program | |
JP2017032507A (en) | Inspection device and inspection method | |
JP6907621B2 (en) | Image processing equipment, image processing system, image processing method and program | |
JP4835470B2 (en) | Image inspection apparatus and image forming apparatus | |
JP2017132217A (en) | Image formation device, image formation method and computer program | |
JP2015053561A (en) | Printed matter inspection device, printed matter inspection method, and program | |
JP2007272111A (en) | Image forming apparatus and its control method | |
JP2004246110A (en) | Plate inspection apparatus, printing system, method for inspecting printed data on plate, and program | |
US20230401695A1 (en) | Inspection apparatus, method of controlling the same, and storage medium | |
JP2009042814A (en) | Image evaluation device and program | |
US20240013372A1 (en) | Inspection apparatus, inspection method, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20091124 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110620 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110628 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110826 |
|
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: 20120207 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20120220 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150316 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |