JP4946415B2 - Image inspection device - Google Patents

Image inspection device Download PDF

Info

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
Application number
JP2006338767A
Other languages
Japanese (ja)
Other versions
JP2008149539A (en
Inventor
賢治 表木
理夫 菊地
敬一 伊藤
公彦 佐々木
丈晴 永井
耕 田邊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2006338767A priority Critical patent/JP4946415B2/en
Publication of JP2008149539A publication Critical patent/JP2008149539A/en
Application granted granted Critical
Publication of JP4946415B2 publication Critical patent/JP4946415B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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に記載されているように、画像から黒でない色を除去する技術を用いて、画像形成装置が意図する検査を行うこともできる。
特開平11−78183号公報 特開2003−108921号公報 特開2003−196592号公報 特許第2882273号公報
By the way, an image representing characters such as items and amounts may be superimposed on a sheet on which images such as ruled lines, frames, and shading are printed in advance, such as a form. In such a case, the techniques described in Patent Documents 1 to 3 are used. Patent Documents 1 to 3 describe a technique for inspecting based on an image obtained by removing an image printed on a sheet in advance from a read image.
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 Patent Document 4, it is possible to perform an inspection intended by the image forming apparatus using a technique for removing a non-black color from an image.
JP-A-11-78183 JP 2003-108921 A JP 2003-196292 A Japanese Patent No. 2882273

しかしながら、上記のいずれの技術であっても、目的の画像のみを抽出する処理は複雑であるため、高い処理能力が要求される。また、特に、画像形成装置が形成する画像の色とシートに予め印刷された画像の色とが類似する場合、画像形成装置が形成する画像のみを正確に抽出したり、あるいは予め印刷された画像のみを正確に除去することは、極めて困難である。   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 image forming apparatus 1. As shown in FIG. 1, the image forming apparatus 1 includes an image forming unit 10, an infrared reading unit 20, a control unit 30, a storage unit 40, a UI (User Interface) unit 50, and a communication unit 60. I have.
The image forming unit 10 forms an image on a sheet based on the supplied image data. The infrared reading unit 20 emits light from an infrared light source, optically reads an image formed on the sheet, and generates image data. The control unit 30 includes a central processing unit (CPU) that controls the entire apparatus, a random access memory (RAM) that provides a work area for work, and a read only memory (ROM) that stores various control programs. Arithmetic processing is performed according to the described procedure. The storage unit 40 includes a storage device such as an HDD (Hard Disk Drive) and stores various data. The UI unit 50 includes a touch panel and various buttons, accepts an operation from the user, and notifies information by an image or sound. The communication unit 60 is an interface device for performing communication via a network, and receives image data from an external terminal such as a computer (not shown) via a network such as a LAN (Local Area Network).

続いて、図2を参照し、画像形成部10および赤外読取部20の構成を説明する。
画像形成部10は、複数のトレイ11と、複数の搬送ロール12と、画像形成ユニット13と、定着器14とを備える。
トレイ11は、所定のサイズのシートをそれぞれ収容している。トレイ11に収容されているシートには、予め画像が形成されている。すなわち、本実施形態におけるシートは、いわゆるプレプリント用紙である。なお、シートに予め形成されている画像のことを、以下においては「事前印刷画像」という。
Next, the configuration of the image forming unit 10 and the infrared reading unit 20 will be described with reference to FIG.
The image forming unit 10 includes a plurality of trays 11, a plurality of transport rolls 12, an image forming unit 13, and a fixing device 14.
The tray 11 accommodates sheets of a predetermined size. Images are formed in advance on the sheets accommodated in the tray 11. That is, the sheet in the present embodiment is so-called preprinted paper. Note that an image formed in advance on a sheet is hereinafter referred to as a “pre-printed image”.

ここで、事前印刷画像について説明する。図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 transport rollers 12 transports the sheet S on which the above-described preprinted image A is formed in accordance with image formation. The image forming unit 13 forms an image by electrophotography. That is, the image forming unit 13 includes a photosensitive drum, a charging unit, an exposure unit, a developing unit, a transfer unit, and the like, and forms an image on the sheet S with toner. Note that the image forming unit 13 forms an image with black toner. The photosensitive drum is a drum-like member that rotates around a shaft at a predetermined speed. The charging unit charges the surface of the photosensitive drum to a predetermined potential. The exposure unit irradiates the charged photosensitive drum with a beam to form an electrostatic latent image. The developing unit develops the image by attaching toner to the electrostatic latent image formed on the photosensitive drum. The fixing device 14 includes a roll member for heating and pressing the sheet, and fixes the image transferred to the sheet S. Under such a configuration, the image forming unit 10 forms an image using black toner based on the supplied image data. The image formed by the image forming unit 10 is hereinafter referred to as “original image”.

ここで、原稿画像について説明する。図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 infrared reading unit 20 will be described. As shown in FIG. 2, the infrared reading unit 20 is provided on the downstream side of the fixing device 14 of the image forming unit 10, and optically reads a sheet on which a document image is formed by the image forming unit 10. . FIG. 5 is a diagram illustrating a device configuration of the infrared reading unit 20. As shown in FIG. 5, the infrared reading unit 20 includes an infrared light source 21, an imaging lens 22, and an image sensor 23.

赤外光源21は、赤外波長域の光を照射する光源である。赤外光源21は、搬送されるシートに対して所定の位置で光を照射する。なお、赤外光源21が照射する光は、赤外波長域を成分として含んでいればよく、その他の成分を含んでいてもよい。結像レンズ22は、シートからの反射光をイメージセンサ23の位置で結像する。イメージセンサ23は、赤外波長域に感度を有する撮像素子を有する。イメージセンサ23は、結像された光を受光し、その受光量に応じた画像データを生成して出力する。赤外読取部20が生成する画像データは、階調数が「256」である画素データにより構成される。すなわち、赤外読取部20は、階調値が8ビット(256階調)で表される画素データの値の大小によってシートに形成された原稿画像の濃淡を表す。本実施形態においては、階調値が大きいほど明度が高く(明るく)、階調値が小さいほど明度が低い(暗い)とする。
なお、以下においては、赤外読取部20が生成する画像データを「読取画像データ」といい、他の画像データと区別する。また、読取画像データが表す読取画像の左上端を原点とし、原稿画像と同様の直交座標を定め、その画素データの座標を(x2,y2)と表記する。
The infrared light source 21 is a light source that emits light in the infrared wavelength region. The infrared light source 21 irradiates light at a predetermined position on the conveyed sheet. The light emitted from the infrared light source 21 only needs to include an infrared wavelength region as a component, and may include other components. The imaging lens 22 images the reflected light from the sheet at the position of the image sensor 23. The image sensor 23 has an image sensor having sensitivity in the infrared wavelength region. The image sensor 23 receives the imaged light, and generates and outputs image data corresponding to the amount of received light. The image data generated by the infrared reading unit 20 is composed of pixel data having a gradation number of “256”. That is, the infrared reading unit 20 represents the density of the original image formed on the sheet based on the magnitude of the pixel data value represented by 8 bits (256 gradations). In the present embodiment, the lightness is higher (brighter) as the gradation value is larger, and the lightness is lower (darker) as the gradation value is smaller.
In the following, the image data generated by the infrared reading unit 20 is referred to as “read image data” and is distinguished from other image data. In addition, with the upper left corner of the read image represented by the read image data as the origin, orthogonal coordinates similar to those of the original image are determined, and the coordinates of the pixel data are expressed as (x2, y2).

また、制御部30は、画像形成装置1の各部を制御するための演算処理に加えて、画像データに適用する種々の画像処理を実行する。制御部30が実行する画像処理の一部を図示すると、例えば図6のようになる。図6は、制御部30がROMに記憶された制御プログラムを実行することにより実現される機能を示す機能ブロック図である。なお、図中の矢印は、データの流れを概略的に示したものである。
制御部30は、原稿画像データと、この原稿画像データに基づいてシートに形成された画像を読み取って生成された読取画像データとを比較することにより画像の検査を行う機能を実現する。この機能は、減数処理部31と、照合部32とによって実現される。
Further, the control unit 30 executes various image processes applied to the image data in addition to the arithmetic process for controlling each unit of the image forming apparatus 1. A part of the image processing executed by the control unit 30 is illustrated in FIG. 6, for example. FIG. 6 is a functional block diagram illustrating functions realized by the control unit 30 executing a control program stored in the ROM. The arrows in the figure schematically show the flow of data.
The control unit 30 realizes an image inspection function by comparing original image data with read image data generated by reading an image formed on a sheet based on the original image data. This function is realized by the reduction processing unit 31 and the collation unit 32.

減数処理部31は、比較の対象となる読取画像データと原稿画像データとを取得し、これらの各々の画素データの階調数を所定の閾値に基づいて減ずる処理を行う。本実施形態においては、減数処理部31は、画素データの階調数を256階調から2階調に減ずる、いわゆる二値化処理を実行する。減数処理部31は、読取画像データおよび原稿画像データに二値化処理を行うと、画素データの階調値は「0」または「1」のいずれかになる。以下においては、画素データの階調値が「0」である画素を「黒画素」といい、画素データの階調値が「1」である画素を「白画素」という。照合部32は、減数処理部31において二値化処理が行われた読取画像データおよび原稿画像データを取得して、これらの画像データを比較して一致度を求める。この照合処理においては、照合部32は、例えば残差逐次検定法等を用いて、各画素データについて階調値が一致するか否かを判定する。照合部32は、各画素データについて判定を行った後、読取画像データと原稿画像データの一致の度合いを示すデータを生成して出力する。   The reduction processing unit 31 acquires read image data and document image data to be compared, and performs a process of reducing the number of gradations of each pixel data based on a predetermined threshold value. In the present embodiment, the reduction processing unit 31 performs a so-called binarization process in which the number of gradations of pixel data is reduced from 256 gradations to 2 gradations. When the reduction processing unit 31 performs binarization processing on the read image data and the document image data, the gradation value of the pixel data becomes either “0” or “1”. In the following, a pixel whose gradation value of pixel data is “0” is referred to as “black pixel”, and a pixel whose gradation value of pixel data is “1” is referred to as “white pixel”. The collation unit 32 acquires the read image data and the document image data that have been binarized by the reduction processing unit 31, and compares these image data to obtain the degree of coincidence. In this collation process, the collation unit 32 determines whether or not the tone values match for each pixel data using, for example, a residual sequential test method or the like. The collation unit 32 determines each pixel data, and then generates and outputs data indicating the degree of matching between the read image data and the document image data.

以上の構成のもと、画像形成装置1は、原稿画像データに基づいた画像をシートに形成する。また、画像形成装置1は、必要に応じて、画像形成部10によって画像が形成されたシートを、赤外読取部20を用いて検査する。画像形成装置1が検査を行うタイミングは、ユーザに指示されたときでもよいし、予め決められた周期であってもよい。もちろん、画像形成部10が画像を形成する毎に検査を行ってもよい。
図7は、画像形成装置1が画像を検査する動作の手順を示したフローチャートである。以下では、このフローチャートに沿って画像形成装置1の動作を説明する。
With the above configuration, the image forming apparatus 1 forms an image based on the document image data on a sheet. Further, the image forming apparatus 1 inspects the sheet on which the image is formed by the image forming unit 10 using the infrared reading unit 20 as necessary. The timing at which the image forming apparatus 1 performs the inspection may be when instructed by the user or may be a predetermined cycle. Of course, the inspection may be performed every time the image forming unit 10 forms an image.
FIG. 7 is a flowchart showing a procedure of an operation in which the image forming apparatus 1 inspects an image. Below, operation | movement of the image forming apparatus 1 is demonstrated along this flowchart.

まず、制御部30は、画像形成装置1に対して原稿画像Bを形成することが指示されると、この原稿画像Bを表す原稿画像データに減数処理、すなわち二値化処理を行う(ステップSA1)。そして、制御部30は、二値化後の原稿画像データを記憶部40に記憶させる。   First, when the image forming apparatus 1 is instructed to form the document image B, the control unit 30 performs a reduction process, that is, a binarization process on the document image data representing the document image B (step SA1). ). Then, the control unit 30 stores the binarized document image data in the storage unit 40.

次に、制御部30は、受信した原稿画像データを画像形成部10に供給して画像を形成するよう指示する。この指示に応じて、画像形成部10は、供給される原稿画像データに基づいて原稿画像Bを形成する。このとき、シートには、原稿画像Bと事前印刷画像Aとが重畳されて形成されている。赤外読取部20は、このような画像を検査対象として読み取る。そこで、以下では、この状態の画像のことを「検査画像」という。図8は、シートSに形成された検査画像Cを例示した図である。検査画像Cは、図3に示した事前印刷画像Aが形成されたシートSに、図4に示した原稿画像Bが重畳して形成された画像である。   Next, the control unit 30 supplies the received document image data to the image forming unit 10 and instructs to form an image. In response to this instruction, the image forming unit 10 forms the document image B based on the supplied document image data. At this time, the original image B and the pre-printed image A are superimposed on the sheet. The infrared reading unit 20 reads such an image as an inspection target. Therefore, hereinafter, the image in this state is referred to as “inspection image”. FIG. 8 is a diagram illustrating an inspection image C formed on the sheet S. The inspection image C is an image formed by superimposing the original image B shown in FIG. 4 on the sheet S on which the preprinted image A shown in FIG. 3 is formed.

続いて、制御部30は、赤外読取部20に検査画像Cを読み取ることで得られる読取画像データを生成させる(ステップSA2)。図9は、この読取画像データが表す読取画像Caを示した図である。図9より、読取画像データが表す読取画像Caは、検査画像Cから網掛画像A1を除去した画像となる。これは、赤外読取部20が、シートSからの赤外波長域の反射光に応じて、読取画像データを生成しているからである。   Subsequently, the control unit 30 causes the infrared reading unit 20 to generate read image data obtained by reading the inspection image C (step SA2). FIG. 9 is a diagram showing a read image Ca represented by the read image data. 9, the read image Ca represented by the read image data is an image obtained by removing the shaded image A1 from the inspection image C. This is because the infrared reading unit 20 generates read image data according to the reflected light in the infrared wavelength region from the sheet S.

一般に、トナーやインク等の色材においては、黒色の色材が赤外波長域の光を吸収する一方で、その他の色の色材は赤外波長域の光をほとんど反射する。また、シート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 infrared reading unit 20, the control unit 30 performs binarization processing on the read image data based on a predetermined threshold (step SA3). That is, the control unit 30 compares the gradation value of each pixel data of the read image data with a predetermined threshold value, converts the gradation value of pixel data whose gradation value is equal to or greater than the threshold value to “1”, and The gradation value of the pixel data whose value is less than the threshold value is converted to “0”. That is, the number of gradations of the read image data is reduced from “256” to “2”.

ここで、ステップ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 control unit 30 reads the document image data binarized in step SA1 from the storage unit 40, and performs collation processing for comparison with the binarized read image data (step SA4). In this collation process, the control unit 30 performs template pattern matching on a pixel basis using, for example, a residual successive test method. Then, the control unit 30 compares the gradation values of the pixel data at the corresponding positions with respect to these image data, and identifies them as pixels that do not match. Thereafter, the control unit 30 determines whether or not the non-matching pixels exceed a predetermined allowable amount based on the number and position of the non-matching pixels, and generates and outputs data indicating that ( Step SA5). If the control unit 30 determines that the mismatched pixels exceed the allowable amount based on the determination result indicated by the data, for example, the control unit 30 displays a message “printing failure” on the UI unit 50. Then, the user is notified. On the other hand, if the control unit 30 determines that the pixel that does not match is within the allowable amount, the control unit 30 generates and outputs data indicating that fact, and based on the determination result indicating, for example, “Normally printed. Is displayed on the UI unit 50 to notify the user.
Note that when the control unit 30 determines that the mismatched pixels exceed the allowable amount, the control unit 30 causes a character image such as “printing failure” to be superimposed on the corresponding sheet S and used by the user by mistake. This may be prevented.

以上述べた第1実施形態によれば、画像形成装置1は、検査画像に赤外光源21の光を照射することにより、検査画像の黒色以外の色材で形成された事前印刷画像を除去した読取画像データを生成する。さらに、画像形成装置1は、この読取画像データに二値化を行い、読取画像に含まれる黒色以外の色材で形成された事前印刷画像を除去する。このようにすれば、画像形成装置1は、検査画像から事前印刷画像のみを取り除いた画像を表す読取画像データと、二値後の原稿画像データとを比較して検査することができる。すなわち、本実施形態の画像形成装置1によれば、赤外光源21を用い、二値化処理(減数処理)を行うという比較的簡易な方法を用いて、迅速に検査画像から事前印刷画像を除去した画像を生成し、精度よく検査を行うことができる。   According to the first embodiment described above, the image forming apparatus 1 removes the preprinted image formed of the color material other than black in the inspection image by irradiating the inspection image with the light of the infrared light source 21. Read image data is generated. Further, the image forming apparatus 1 binarizes the read image data, and removes a pre-printed image formed with a color material other than black included in the read image. In this way, the image forming apparatus 1 can inspect the read image data representing the image obtained by removing only the preprinted image from the inspection image and the original image data after the binary comparison. That is, according to the image forming apparatus 1 of the present embodiment, the pre-printed image can be quickly generated from the inspection image using a relatively simple method of performing the binarization process (decrease process) using the infrared light source 21. The removed image can be generated and inspected with high accuracy.

(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)=(T−T)*px1,y1/255+T・・・(1)
FIG. 10 is a flowchart showing a procedure of an operation in which the image forming apparatus 1 inspects an inspection image in the present embodiment. From FIG. 10, the control unit 30 first calculates a threshold value used for the binarization processing for each pixel data constituting the read image data (step SB1). Since this threshold value is different for each coordinate of the pixel data, it is hereinafter referred to as “threshold value Th x2, y2 (p x1, y1 )”.
Here, a method of calculating the threshold Th x2, y2 (p x1, y1 ) will be described. The control unit 30 calculates the pixel data threshold at the coordinates (x1, y1) of the original image data in order to calculate the threshold value Th x2, y2 (p x1, y1 ) of the pixel data at the coordinates (x2, y2) of the read image data. The calculation shown in the following equation (1) is performed using the adjustment value.
(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個の画素群(以下、「近傍画素群」という)の階調値の平均値である。また、Tは、px1,y1=0のときの座標(x2,y2)の画素データの閾値であり、Tはpx1,y1=255のときの座標(x2,y2)の画素データの閾値である。TおよびTは、あらかじめ決められた値である。 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 control unit 30 binarizes the read image data, the preprinted image is more accurately removed. Will be able to. The threshold Th x2, y2 (p x1, y1 ) calculated for each pixel data will be specifically described below using an example of the gradation value of the document image data.

図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 control unit 30 calculates the threshold Th x2, y2 (p x1, y1 ) for each pixel data of the read image data based on the formula (1) for the region W including such an image region, the threshold Th x2, y2 (p x1, y1 ) is as shown in FIG. From FIG. 13, the more black pixels are located in the neighboring pixel group including the target pixel, the smaller the gradation value of the neighboring pixel group and the smaller the threshold corresponding to the target pixel. The small tone value of the neighboring pixel group means that there are pixels having a relatively high density in the neighboring pixel group including the target pixel. Therefore, when the pixel of interest of the read image data is located in the image area, it is not mistakenly removed from the preprinted image even if the threshold is relatively small. On the other hand, when the pixel of interest is located in the background area, the threshold value is small, so that the gray preprinted image is removed even if the density is high to some extent.

一方、注目画素を含む近傍画素群に多くの白画素が位置するほど、近傍画素群の階調値は大きくなり、注目画素に対する閾値は大きくなる。近傍画素群の階調値が大きいということは、注目画素を含む近傍画素群には比較的濃度が低い画素が存在することを意味する。よって、読取画像データの注目画素が画像領域に位置する場合には、閾値が比較的大きいから事前印刷画像と誤って除去されることはない。これに対して、注目画素が背景領域に位置する場合には、ある程度の濃度以下の事前印刷画像が除去される。
なお、上述した式(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 control unit 30 binarizes the document image data (step SB2), and causes the infrared reading unit 20 to generate read image data of the inspection image ( Step SB3). Then, the control unit 30 binarizes the read image data based on the threshold Th x2, y2 (p x1, y1 ) obtained in step SB1 (step SB4). Then, the control unit 30 performs a collation process between the read image data after binarization and the original image data binarized in step SB2 (step SB5), and the non-matching pixels have a predetermined allowable amount. It is determined whether or not it exceeds, and data indicating that is generated and output (step SB6). The operations in steps SB2, SB3, SB5, and SB6 are the same as the operations in steps SA1, SA2, SA3, and SA5 in the first embodiment described above.

以上述べた第2実施形態によれば、画像形成装置1は、原稿画像データを構成する画素データの階調値に応じて、読取画像データを構成する各画素データの閾値を求める。このことにより、読取画像データの注目した画素が画像領域であれば、事前印刷画像と誤って除去されることを回避できるし、注目した画素が背景領域であれば、ある程度は高濃度の事前印刷画像であっても、二値化により精度良く事前印刷画像が除去される。   According to the second embodiment described above, the image forming apparatus 1 obtains the threshold value of each pixel data constituting the read image data according to the gradation value of the pixel data constituting the document image data. As a result, if the pixel of interest in the read image data is an image region, it can be prevented from being mistakenly removed as a preprinted image. If the pixel of interest is a background region, high-density preprinting can be performed to some extent. Even in the case of an image, the preprinted image is accurately removed by binarization.

(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 image forming apparatus 1 in which the image inspection apparatus is integrally configured has been described as an example. However, for example, only a configuration corresponding to the image inspection apparatus may be configured as a detachable optional apparatus. That is, the image inspection apparatus includes the infrared reading unit 20 and the control unit 30 described above, and acquires document image data from an image forming apparatus that is an external device.

上述した第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 image forming apparatus 1 may set the threshold value according to the preprinted image.
For example, when the user newly accommodates a sheet on which a different pre-printed image is formed in the tray 11, the user operates the UI unit 50 to instruct the image forming apparatus 1 to perform processing for updating the threshold value. . In response to this instruction, the control unit 30 causes the transport roll 12 to transport only one sheet stored in the tray 11. At this time, the image forming unit 13 and the fixing device 14 are stopped without performing the operation at the time of image formation, and only the conveyance of the sheet is performed. When the sheet is conveyed to a predetermined position on the conveyance roll 12, the infrared reading unit 20 generates preprinted image data representing an image obtained by reading the preprinted image. The gradation value of the pixel data constituting the pre-printed image data is a value representing the density of 256 gradations, similar to the read image data described above.
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 control unit 30 performs the calculation shown in the following equation (2) to calculate the threshold Th x2, y2 (p x3, y3 ) of the read image data based on the preprinted image data.
(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 control unit 30 binarizes the read image data, it is possible to more reliably remove only the preprinted image.
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 infrared reading unit 20 may be different from the original values. In such a case, if the threshold value Th x2, y2 (p x3, y3 ) only needs to be equal to or smaller than the gradation value p x3, y3 , the preprinted image is not removed or the original image is There is a risk of being removed by mistake. Therefore, the infrared reading unit 20 forms an image on the sheet based on the image data whose gradation value is known. And the control part 30 calculates | requires the correction value for correct | amending a gradation value to an original value about each pixel data which comprises the image data produced | generated by reading the said image. Then, if this correction value is used as the offset α (x3, y3) , the control unit 30 can obtain a desired threshold Th x2, y2 (p ) even if the image representing the preprinted image data is affected by in-plane unevenness. x3, y3 ) can be obtained.

上述した第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 control unit 30 uses a different threshold value depending on the position to pre-print the image. May be removed. For example, the read image data is divided into a plurality of regions, and the threshold value of a region having a relatively large gradation value of pixel data corresponding to an assumed preprinted image is increased, and the threshold value of a region having a small gradation value is decreased. , And so on. In particular, in the inspection image, in the vicinity of an area where the original image and the preprinted image are superimposed, the preprinted image should be removed more reliably. Therefore, the threshold value of the corresponding area is reduced to reduce the original image data. You may make it approach the gradation value contained.
In this way, the control unit 30 can remove only the preprinted image from the read image with higher accuracy even when the inspection image includes gray of various brightness levels.

上述した実施形態では、制御部30は、ステップSA4やステップSB5の照合処理において、各々の画像データ全体を比較する処理を行っていたが、画像データの一部を比較する照合処理を行ってもよい。例えば、事前印刷画像に文字が含まれる場合などには、事前印刷画像にも黒の画像が含まれることがある。この場合、二値化後の読取画像Cにも事前印刷画像を表す画像が残ってしまい、制御部30が照合処理を行ったとしても、それに応じた不一致の画素が現れてしまう。そこで、制御部30は、原稿画像の画像領域付近に対応する画素データのみについて照合処理を行うようにする。これは、仮に事前印刷画像に黒の画像が含まれたとしても、この事前印刷画像は、原稿画像の内容の視認性を妨げることがないよう、原稿画像の画像領域とは異なる領域に限定して用いられることが多いからである。   In the embodiment described above, the control unit 30 performs the process of comparing the entire image data in the collation process in step SA4 and step SB5. However, the control unit 30 may perform the collation process of comparing a part of the image data. Good. For example, when characters are included in the preprinted image, a black image may be included in the preprinted image. In this case, an image representing the pre-printed image remains in the binarized read image C, and even if the control unit 30 performs the collation process, mismatched pixels appear accordingly. Therefore, the control unit 30 performs the collation process only on the pixel data corresponding to the vicinity of the image area of the document image. This is because even if a black image is included in the preprinted image, the preprinted image is limited to an area different from the image area of the original image so as not to hinder the visibility of the contents of the original image. This is because they are often used.

上述した第1実施形態では、制御部30は、ステップSA1で原稿画像データに二値化を行っていたが、ステップSA4における照合処理までに行えばよいので、制御部30は、ステップSA2における読取画像データの生成後や、ステップSA3における二値化後に行ってもよい。また、上述した第2実施形態においても、制御部30は、ステップSB5における照合処理までに原稿画像データに二値化を行えばよい。
また、制御部30は、原稿画像データや読取画像データに二値化を行っていたが、4階調等の異なる階調数に減数してもよい。
In the first embodiment described above, the control unit 30 binarizes the document image data in step SA1, but the control unit 30 only needs to perform the collation processing in step SA4, so the control unit 30 reads in step SA2. It may be performed after generation of image data or after binarization in step SA3. Also in the second embodiment described above, the control unit 30 may binarize the document image data before the collation process in step SB5.
The control unit 30 binarizes the document image data and the read image data. However, the control unit 30 may reduce the number of gradations such as four gradations.

画像形成装置の構成のハードウェア構成を示すブロック図である。2 is a block diagram illustrating a hardware configuration of the configuration of the image forming apparatus. FIG. 本発明の実施形態に係る画像形成装置の装置構成を説明する図である。1 is a diagram illustrating an apparatus configuration of an image forming apparatus according to an embodiment of the present invention. 事前印刷画像の一例を示す図である。It is a figure which shows an example of a preprinted image. 原稿画像の一例を示す図である。It is a figure which shows an example of a document image. 赤外読取部の構成を説明する図である。It is a figure explaining the structure of an infrared reading part. 制御部と記憶部により実現される機能を示す機能ブロック図である。It is a functional block diagram which shows the function implement | achieved by a control part and a memory | storage part. 第1実施形態に係る制御部が画像を検査する動作の手順を示すフローチャートである。It is a flowchart which shows the procedure of the operation | movement which the control part which concerns on 1st Embodiment test | inspects an image. 検査画像の一例を示す図である。It is a figure which shows an example of a test | inspection image. 検査画像を読み取った画像の一例を示す図である。It is a figure which shows an example of the image which read the test | inspection image. 同実施形態に係る制御部が画像を検査する動作の手順を示すフローチャートである。It is a flowchart which shows the procedure of the operation | movement which the control part which concerns on the embodiment test | inspects an image. 第2実施形態に係る原稿画像を構成する画素データの階調値と閾値との関係を示すグラフである。It is a graph which shows the relationship between the gradation value of the pixel data which comprise the original image based on 2nd Embodiment, and a threshold value. 同実施形態に係る原稿画像の領域Wを構成する画素データの階調値を示す図である。FIG. 6 is a diagram showing gradation values of pixel data constituting a region W of a document image according to the same embodiment. 同実施形態に係る領域Wを構成する画素データの閾値の一例を示す図である。It is a figure showing an example of a threshold of pixel data which constitutes field W concerning the embodiment.

符号の説明Explanation of symbols

1…画像形成装置、10…画像形成部、11…トレイ、12…搬送ロール、13…画像形成ユニット、14…定着器、20…赤外読取部、21…赤外光源、22…結像レンズ、23…イメージセンサ、30…制御部、31…減数処理部、32…照合部、40…記憶部、50…UI部、60…通信部。 DESCRIPTION OF SYMBOLS 1 ... Image forming apparatus, 10 ... Image forming part, 11 ... Tray, 12 ... Conveyance roll, 13 ... Image forming unit, 14 ... Fixing device, 20 ... Infrared reading part, 21 ... Infrared light source, 22 ... Imaging lens , 23 ... Image sensor, 30 ... Control unit, 31 ... Reduction processing unit, 32 ... Verification unit, 40 ... Storage unit, 50 ... UI unit, 60 ... Communication unit.

Claims (1)

赤外波長域の光を吸収する画像として、第1の画像と、原稿画像データに基づく当該第1の画像よりも明度が低い第2の画像が形成されたシートに赤外波長域の光を照射する照射手段と、
前記シートに形成された画像の基となる前記原稿画像データを取得する取得手段と、
前記照射手段によって照射された光のうち前記シートにおいて反射した赤外波長域の反射光を受光し、その受光量に応じた階調を有する読取画像データを所定の階調数で生成する生成手段と、
前記生成手段によって生成された読取画像データを構成する画素データの階調値に応じて、当該画素データの各々について、前記第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.
JP2006338767A 2006-12-15 2006-12-15 Image inspection device Expired - Fee Related JP4946415B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

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