JPH10269357A - Method for inspecting printed matter - Google Patents

Method for inspecting printed matter

Info

Publication number
JPH10269357A
JPH10269357A JP9069714A JP6971497A JPH10269357A JP H10269357 A JPH10269357 A JP H10269357A JP 9069714 A JP9069714 A JP 9069714A JP 6971497 A JP6971497 A JP 6971497A JP H10269357 A JPH10269357 A JP H10269357A
Authority
JP
Japan
Prior art keywords
image
inspection
pattern
printed matter
alignment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP9069714A
Other languages
Japanese (ja)
Inventor
Hideki Nakakuki
秀樹 中久木
Seiki Takashi
誠喜 高司
Hidenori Kaneda
秀則 金田
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.)
Toppan Inc
Original Assignee
Toppan Printing Co Ltd
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 Toppan Printing Co Ltd filed Critical Toppan Printing Co Ltd
Priority to JP9069714A priority Critical patent/JPH10269357A/en
Publication of JPH10269357A publication Critical patent/JPH10269357A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)
  • Inking, Control Or Cleaning Of Printing Machines (AREA)

Abstract

PROBLEM TO BE SOLVED: To automatically inspect a printed matter without performing positioning (registering) manually even if the position of a printed matter to be inspected is roughly inputted. SOLUTION: A sample image that becomes a comparison reference is stored in reference image memory (S1), a positioning design is selected from the sample image and binatrized, an center of gravity position coordinate is calculated and the positioning design is stored in model image memory (S2 to S5). Next, a print image to be inspected is stored in check image memory, a positioning design that agrees to a model image is retrieved by using a correlation coefficient method, and a center of gravity position coordinate is calculated (S6 to S8). S2 to S9 are repeated, the center of gravity position coordinate of other positioning design is calculated, affine transformation is performed to the check image memory based on the center of gravity position coordinates of the two points, the sample image is compared with the print image to be inspected in a pixel unit and the different points between them are retrieved (S9 to S11).

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は印刷物の汚れ、欠
け、文字違いなどを検出する検査方法に関する。特に、
検査印刷物の位置がラフに入力されても、検査印刷物画
像の検査画像メモリのアドレスを補正した後、見本画像
の基準画像メモリのアドレス毎に画像情報を比較するこ
とで両者の相違点が検索できる印刷物の検査方法に関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an inspection method for detecting dirt, chipping, and incorrect characters in printed matter. Especially,
Even if the position of the test print is roughly input, the difference between the two can be searched by correcting the address of the test image memory of the test print image and comparing the image information for each address of the reference image memory of the sample image. The present invention relates to a method for inspecting printed matter.

【0002】[0002]

【従来の技術】印刷物を印刷する際には校正作業が行わ
れる。これは見本と刷り始めの印刷物を全面に渡って比
較しながらチェックしていく作業である。ここでは特に
文字部分に問題が無いかのチェックに重点が置かれる。
例えばパッケージ印刷分野では包装材に商品の説明文な
どが印刷されており、特に医薬品など汚れ、欠け、文字
違いなどが発生すると消費者が誤った使用をする恐れが
あり非常に危険だからである。
2. Description of the Related Art When printing a printed matter, a proofreading operation is performed. This is a task of checking the sample and the printed matter at the beginning of printing while comparing them over the entire surface. The emphasis here is on checking that there is no problem in the character part.
For example, in the field of package printing, a description of a product or the like is printed on a packaging material. In particular, if a medicine becomes dirty, chipped, or has a wrong character, a consumer may use the product incorrectly, which is extremely dangerous.

【0003】しかし、文字が細かいこと、多面付け印刷
されていて数が多いことなどから作業者にとって検査作
業は大変な負荷となっており、見逃しもまれに発生す
る。
[0003] However, the inspection work imposes a heavy load on the operator due to the small size of the characters, the large number of multi-faced prints, and the like, and oversight rarely occurs.

【0004】近年、印刷機上や巻き替え検品機上でカメ
ラと画像処理装置を備え、自動検査する装置が登場して
いるが、このような装置も高速な印刷速度に対して全数
検査を行うためには入力装置であるカメラ自体の解像度
が粗く、このような検査には適さない。
[0004] In recent years, an apparatus for automatically inspecting a printing machine or a rewind inspection machine equipped with a camera and an image processing apparatus has appeared, but such an apparatus also performs 100% inspection at a high printing speed. Therefore, the resolution of the camera itself, which is an input device, is low, which is not suitable for such an inspection.

【0005】そこで、フラットベットスキャナなどの高
解像度画像入力装置を用意して見本と検査対象の印刷物
を画像として入力し、画像処理することで両者の相違点
を検出する検査装置が出てきている。
[0005] In view of this, an inspection apparatus has been developed which prepares a high-resolution image input apparatus such as a flatbed scanner, inputs a sample and a printed material to be inspected as an image, and performs image processing to detect a difference between the two. .

【0006】しかし、この様な装置では見本と検査品の
位置を全く同様に位置決めして画像入力できない。そこ
で入力した見本の画像をTVモニタなどに表示し、画像
の中から位置合わせのために適当な絵柄を作業者が予め
選択し、見本画像と検査印刷物画像とが一致するように
見当を一枚毎に合わせなければならない。
However, in such an apparatus, it is impossible to input an image by locating the sample and the inspection product in exactly the same manner. Then, the input sample image is displayed on a TV monitor or the like, and an appropriate pattern is selected in advance by the operator for alignment from the image, and one register is registered so that the sample image matches the inspection print image. You have to adjust each time.

【0007】ここで、「位置合わせのために適当な絵
柄」とは用紙の地色と印刷色のコントラストがはっきり
して、周辺に似た形状の存在しない線画パターンであ
る。(以下、位置合わせ用絵柄と称する)
Here, the "pattern suitable for positioning" is a line drawing pattern in which the contrast between the ground color of the paper and the printing color is clear and there is no shape similar to the periphery. (Hereinafter, referred to as the alignment pattern)

【0008】見本、検査品それぞれの画像から対応する
位置座標を最低2点求めると、見本と検査品間の用紙の
伸縮や傾きが算出できる。これらの値を用いて見本、検
査品の何れかの画像をアフィン変換することで両者の画
像を画素毎に比較することが可能になる。
When at least two corresponding position coordinates are obtained from the images of the sample and the inspection product, the expansion and contraction and inclination of the paper between the sample and the inspection product can be calculated. By affine-transforming either the sample or the sample image using these values, it is possible to compare both images for each pixel.

【0009】検査印刷物の画像を入力し、入力毎に作業
者が位置合わせ用絵柄を選択し位置を合わせる方法で
は、検査する枚数が多い時には対応できない。
The method of inputting the image of the inspection printed matter, and selecting the alignment pattern and aligning the position each time the input is performed, cannot cope with a large number of inspected sheets.

【0010】特に、多面付け印刷されるパッケージ印刷
分野では同じ印刷物を何万〜何十万と一度に検査しなけ
ればならない。そこで、検査を自動化、無人化を図るた
めにオートドキュメントフィーダなどをフラットベット
スキャナに取り付けて多数の検査品を連続して画像入
力、検査処理するといったバッチ処理をする必要があ
る。このことを達成するには検査品の位置合わせがネッ
クとなっていた。
In particular, in the field of package printing in which multiple imposition printing is performed, the same printed matter must be inspected at once in tens of thousands to hundreds of thousands. Therefore, in order to automate the inspection and make the inspection unattended, it is necessary to perform a batch process in which an automatic document feeder or the like is attached to a flatbed scanner and a large number of inspection products are continuously image-inputted and inspected. To achieve this, the alignment of the inspection product has been a bottleneck.

【0011】[0011]

【発明が解決しようとしている課題】本発明はこのよう
な状況に鑑みて提案されたものであり、位置決めがラフ
であっても検査を可能とするために見本については位置
合わせ用絵柄を作業者が予め選択し、検査印刷物の画像
からは、これに対応する位置合わせ用画像を選び出し、
座標変換することで両者の画像位置を自動的に重ね合わ
せ、画像処理をする印刷物の検査方法を提供する
SUMMARY OF THE INVENTION The present invention has been proposed in view of such a situation. In order to enable inspection even if positioning is rough, a pattern for alignment is prepared by an operator. Is selected in advance, and from the image of the inspection printed material, a corresponding alignment image is selected, and
Provide a method of inspecting a printed material that performs image processing by automatically superimposing both image positions by performing coordinate transformation.

【0012】このことにより検査品画像を入力するたび
に見本で選択した位置合わせ用絵柄に相当する位置を検
査印刷物の画像上で指定し、位置合わせする作業を不要
とし、作業者の負荷軽減を図る。また、オートドキュメ
ントフィーダなどをフラットベットスキャナに取り付け
て多数の検査品を連続して画像入力、検査処理するとい
ったバッチ処理を可能とし、作業の効率化を図る。
[0012] Thus, each time an inspection product image is input, a position corresponding to the alignment pattern selected by the sample is designated on the image of the inspection printed material, and the operation of aligning is unnecessary, and the load on the operator is reduced. Aim. Further, it is possible to perform batch processing in which an automatic document feeder or the like is attached to the flatbed scanner and a large number of inspected products are continuously image-inputted and inspected, thereby improving work efficiency.

【0013】[0013]

【課題を解決するための手段】本発明は、印刷物の絵柄
を画像入力装置で読み取り、この読み取られた画素毎の
絵柄情報を、予め入力された対応する画素毎の基準絵柄
情報と比較して印刷物の汚れ、欠け、文字違いなどを検
出する検査方法において、 (1)画像入力装置から見本画像を読み取り、画像処理
装置のメモリユニットの基準画像メモリに記憶する工
程。 (2)画像表示装置に該見本画像を表示させ、位置合わ
せ用絵柄を含むパターン検査領域を選択する工程。 (3)パターン検査領域から位置合わせ用絵柄のみを含
む矩形領域を切り出し、該矩形領域の階調ヒストグラム
を作成した後、位置合わせ用絵柄を2値化する工程。 (4)2値化された位置合わせ用絵柄に対して、輪郭追
跡を行い外接矩形を求めると同時に重心位置を算出する
工程。 (5)該外接矩形に囲まれた位置合わせ用絵柄をモデル
画像として画像処理装置のメモリユニットのモデル画像
メモリに記憶する工程。 (6)画像入力装置から検査印刷物画像を読み取り、画
像処理装置のメモリユニットの検査画像メモリに記憶す
る工程。 (7)検査印刷物のパターン検査領域から、前記モデル
画像と一致する位置合わせ用絵柄を相関係数法を用いて
検索する工程。 (8)検査印刷物の位置合わせ用絵柄の階調ヒストグラ
ムを作成した後、2値化する工程。 (9)検査印刷物の位置合わせ用絵柄の重心位置座標を
算出する工程。 (10)(2)〜(9)工程を繰り返し、他の位置合わ
せ用絵柄の重心位置座標を算出する工程。 (11)上記2点の重心位置座標に基づいて検査画像メ
モリに対してアフィン変換を行う工程。 (12)アフィン変換で座標変換された検査印刷物画像
と見本画像を画素単位で比較して両者の相違点を検索す
る工程。 からなる印刷物の検査方法である。
According to the present invention, a picture of a printed matter is read by an image input device, and the read picture information of each pixel is compared with reference picture information of a corresponding pixel inputted in advance. (1) A step of reading a sample image from an image input device and storing the sample image in a reference image memory of a memory unit of the image processing device. (2) a step of displaying the sample image on an image display device and selecting a pattern inspection area including a pattern for alignment; (3) A step of cutting out a rectangular area including only the alignment pattern from the pattern inspection area, creating a gradation histogram of the rectangular area, and binarizing the alignment pattern. (4) a step of performing contour tracing on the binarized alignment pattern to obtain a circumscribed rectangle and calculating a barycentric position. (5) a step of storing, as a model image, the positioning picture surrounded by the circumscribed rectangle in a model image memory of a memory unit of the image processing apparatus. (6) A step of reading the inspection print image from the image input device and storing it in the inspection image memory of the memory unit of the image processing device. (7) a step of searching a pattern inspection area of the inspection printed matter for an alignment pattern that matches the model image by using a correlation coefficient method. (8) A step of creating a gradation histogram of a pattern for alignment of an inspection print and then binarizing the gradation histogram. (9) A step of calculating the coordinates of the center of gravity of the alignment pattern of the inspection print. (10) A step of repeating the steps (2) to (9) to calculate the barycentric position coordinates of another alignment pattern. (11) A step of performing affine transformation on the inspection image memory based on the coordinates of the center of gravity of the two points. (12) A step of comparing, on a pixel-by-pixel basis, the test print image image and the sample image, which have been coordinate-transformed by the affine transformation, to search for differences therebetween. This is a method for inspecting printed matter comprising:

【0014】[0014]

【発明の実施の形態】以下、本発明の具体的実施例を図
面に基づき説明する。図1は、本発明の検査処理方法の
処理フローを示し、図2は、ハードウエア構成を示す。
CPUユニット、画像メモリユニット、画像入力ユニッ
ト、画像表示ユニットなどから構成される画像処理装置
(1)と画像入力装置(2)、画像表示用TVモニタ
(3)、キーボード(4)、マウス(5)で構成される
ハードウエアを用いる。本実施例では画像入力装置
(2)にフラットベットスキャナを用いて、主な処理を
ソフトウエアで行う。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows a processing flow of the inspection processing method of the present invention, and FIG. 2 shows a hardware configuration.
An image processing device (1) and an image input device (2) including a CPU unit, an image memory unit, an image input unit, and an image display unit, a TV monitor for image display (3), a keyboard (4), a mouse (5) ) Is used. In this embodiment, the main processing is performed by software using a flatbed scanner as the image input device (2).

【0015】図3(A)は見本画像の全体を示す一例で
あり、図3(B)は検査印刷物画像の位置合わせ用絵柄
を含む一部分を示し、図3(C)は(B)の検査印刷物
画像が斜めに置かれた状態を示す。
FIG. 3A shows an example of the whole sample image, FIG. 3B shows a part of the inspection print image including a pattern for alignment, and FIG. 3C shows the inspection image of FIG. This shows a state where the printed image is placed obliquely.

【0016】見本と検査品の相違点を検出する処理は各
画像の対応する画素同士を比較する方式で基本的には処
理されている。しかし、図3(B)に示すようにフラッ
トベットスキャナに見本や検査品を正確に水平に置くの
は困難で、図3(C)のように傾いて置かれる場合を許
容しなければ作業性が悪くなる。そのため、単純に入力
した画像の同一座標の画素同士を比較すると画像の違う
位置同士の比較となるため、全面にわたって相違点とし
て検出されてしまう。
The process of detecting the difference between the sample and the inspection product is basically performed by a method of comparing corresponding pixels of each image. However, as shown in FIG. 3 (B), it is difficult to accurately place a sample or an inspection product horizontally on a flatbed scanner. Gets worse. For this reason, simply comparing pixels at the same coordinates in an input image results in comparisons between different positions in the image, and is detected as a difference over the entire surface.

【0017】そこで、どちらかの画像を回転させて、も
う一方の画像と同じ角度に傾ける画像処理を行う。同時
に用紙の伸縮も考慮してサイズの変換処理も行うことが
必要となり、そのためには、この傾きとサイズの伸縮が
見本と検査品の間にどの程度あるかを求める必要があ
る。このために以下のような処理を行う。
Therefore, image processing is performed in which one of the images is rotated and tilted at the same angle as the other image. At the same time, it is necessary to perform the size conversion process in consideration of the expansion and contraction of the paper, and for that purpose, it is necessary to determine the degree of the inclination and the expansion and contraction of the size between the sample and the inspection product. For this purpose, the following processing is performed.

【0018】画像入力装置(2)から見本画像(10)
を入力し、画像処理装置(1)のメモリユニットの基準
画像メモリに記憶させる。(処理ステップS1) この画像を画像表示ユニットを経由して画像表示用TV
モニタ(3)に表示する。ここで、作業者は位置合わせ
用絵柄として適当なものを選択する。(処理ステップS
2) 「位置合わせ用絵柄」とは用紙の地色と印刷色のコント
ラストがはっきりして、周辺に似た形状の存在しない線
画パターンである。この印刷物の例では、位置合わせ用
絵柄として「ラ」(12)を選択したものとして説明す
る。
Sample image (10) from image input device (2)
Is input and stored in the reference image memory of the memory unit of the image processing apparatus (1). (Processing step S1) This image is displayed on the image display TV via the image display unit.
Display on the monitor (3). Here, the operator selects an appropriate pattern for the positioning. (Processing step S
2) The "positioning pattern" is a line drawing pattern in which the contrast between the ground color and the printing color of the paper is clear and there is no shape similar to the periphery. In the example of this printed matter, description will be made assuming that “La” (12) is selected as the alignment pattern.

【0019】この「ラ」が位置合わせ用絵柄として適当
あるか否か確認する。すなわち、「ラ」の近辺に近似し
た絵柄が無いかを確認する為の処理フローを図4に示
す。
It is confirmed whether or not this "la" is suitable as a positioning pattern. That is, FIG. 4 shows a processing flow for confirming whether or not there is an approximate pattern near “la”.

【0020】作業者は、位置合わせ用絵柄を含む画像の
矩形領域を切り出す。切り出す処理は作業者がマウスで
指定した座標を中心とする予め決めたサイズの領域の階
調値ヒストグラムを作成し、判別分析法などを用いて画
像を2値化する。(処理ステップS3) そして作業者が位置合わせ用絵柄をマウスで指定し輪郭
追跡を行い、位置合わせ用絵柄に外接した矩形を求める
と同時に重心位置を算出しておく。(処理ステップS
4)
The operator cuts out a rectangular area of the image including the alignment pattern. In the cutout process, a tone value histogram of an area of a predetermined size centered on coordinates specified by the mouse by the operator is created, and the image is binarized using a discriminant analysis method or the like. (Processing step S3) Then, the operator designates a pattern for positioning with a mouse, performs contour tracing, obtains a rectangle circumscribing the pattern for positioning, and simultaneously calculates the position of the center of gravity. (Processing step S
4)

【0021】また、この外接矩形に囲まれた位置合わせ
用絵柄をパターン検索のモデル画像(13)として記憶
しておく。そして、モデル画像を中心とした矩形で囲む
パターン検索領域(11)として記憶する。(処理ステ
ップS5)
The registration pattern surrounded by the circumscribed rectangle is stored as a model image (13) for pattern search. Then, it is stored as a pattern search area (11) surrounded by a rectangle centered on the model image. (Processing step S5)

【0022】パターン検索領域(11)の大きさは作業
者がどの程度ラフに用紙をセットすることを許容するか
によって予め決めておく。つまり、ラフに置くことを前
提とする場合はサイズを大きくし、見本と同じ位置に置
くようにするならパターン検索領域サイズを小さくす
る。ここで、パターン検索領域(11)内に作業者が選
択したパターンに近似した形状のパターンが存在すれば
警報メッセージを画面に表示する。近似したパターンが
あると位置合わせ用絵柄と区別出来なくなる可能性があ
ることを防止するため、別の位置合わせ用絵柄を選択す
る必要がある。
The size of the pattern search area (11) is determined in advance according to how rough the operator is allowed to set sheets. In other words, the size is increased when it is assumed to be placed roughly, and the size of the pattern search area is reduced when it is placed at the same position as the sample. Here, if a pattern having a shape similar to the pattern selected by the operator exists in the pattern search area (11), an alarm message is displayed on the screen. In order to prevent the possibility that the approximate pattern cannot be distinguished from the alignment pattern, it is necessary to select another alignment pattern.

【0023】近似した形状パターンが存在するかの判定
は後述の相関係数を用いたパターン検索処理と同様の方
法で可能である。
The determination as to whether or not an approximate shape pattern exists can be made in the same manner as in a pattern search process using a correlation coefficient described later.

【0024】次に、検査品の画像を入力し、画像処理装
置(1)のメモリユニットの検査画像メモリに記憶す
る。(処理ステップS6) ここで従来方法では見本と同様に画像を表示して作業者
が見本で指定した絵柄位置に相当する位置を指示し位置
合わせする必要があるが、本発明では以下の処理を行う
ことで、位置合わせ処理をする。
Next, the image of the inspection product is input and stored in the inspection image memory of the memory unit of the image processing apparatus (1). (Processing Step S6) Here, in the conventional method, it is necessary to display an image in the same manner as the sample and to designate and align a position corresponding to a picture position designated by the sample by the operator. By doing so, a positioning process is performed.

【0025】検査画像メモリの中から先に記憶している
パターン検索領域に相当する位置の画像内から先に登録
したモデル画像(13)の位置を検索する。検索は、検
査印刷物のパターン検索領域(21)の左上角を出発点
としてモデル画像(13)と検査印刷物画像の同サイズ
の画像領域間の相関係数を計算する。(処理ステップS
7) この実施例では、図5に示すようにモデル画像(13)
と同サイズの相関係数算出領域(23)との間で相関係
数を計算する。この位置の計算が終わったら相関係数算
出領域(23)を1画素分右シフトしてその位置での相
関係数を求める。
The position of the previously registered model image (13) is searched from the image at the position corresponding to the previously stored pattern search area from the inspection image memory. In the search, the correlation coefficient between the model image (13) and the image area of the same size of the test print image is calculated starting from the upper left corner of the pattern search area (21) of the test print. (Processing step S
7) In this embodiment, as shown in FIG.
And a correlation coefficient calculation area (23) having the same size. When the calculation of this position is completed, the correlation coefficient calculation area (23) is shifted rightward by one pixel to obtain a correlation coefficient at that position.

【0026】この様に、相関係数算出領域(23)の位
置を順次動かして、検査印刷物画像のパターン検索領域
(21)全部に渡ってモデル画像(13)との相関係数
を計算する。検査品画像のパターン検索領域(21)全
体の相関係数を求めたら、値が一番大きくなる位置を見
つける。その際に相関係数の最大値が予め決めた値より
小さい場合にはモデル画像の検索に失敗したと判定し、
検査品をフラットベットスキャナに再度セットして画像
入力指示するメッセージを表示する。
As described above, the position of the correlation coefficient calculation area (23) is sequentially moved, and the correlation coefficient with the model image (13) is calculated over the entire pattern search area (21) of the inspection print image. After obtaining the correlation coefficient of the entire pattern search area (21) of the inspection product image, the position where the value becomes the largest is found. At that time, if the maximum value of the correlation coefficient is smaller than a predetermined value, it is determined that the search for the model image has failed,
The inspection product is set on the flatbed scanner again, and a message for instructing image input is displayed.

【0027】モデル画像データをMi 、相関係数算出領
域の画像データをIi とするとパターン検索領域内の位
置(u,v)における両者の相関係数rは以下の式で求
められる。
Assuming that the model image data is Mi and the image data of the correlation coefficient calculation area is Ii, the correlation coefficient r at the position (u, v) in the pattern search area can be obtained by the following equation.

【0028】[0028]

【数1】 (Equation 1)

【0029】ここでNはモデルに含まれる画素数であ
る。相関係数が大きいほど、両パターンは類似している
といえる。
Here, N is the number of pixels included in the model. It can be said that both patterns are more similar as the correlation coefficient is larger.

【0030】相関係数の最大値が予め決めた値より大き
い場合には、その位置にモデル画像(13)と一致する
画像パターンが存在することになるので、重心座標を求
める。(処理ステップS8) この処理により、作業者が見本画像で指定した絵柄位置
に相当する絵柄位置を検査画像から自動的に選び出すこ
とが可能となる。
If the maximum value of the correlation coefficient is larger than a predetermined value, an image pattern matching the model image (13) exists at that position, and the barycentric coordinates are obtained. (Processing Step S8) By this processing, it becomes possible to automatically select a pattern position corresponding to the pattern position specified by the operator in the sample image from the inspection image.

【0031】このような処理を最低2点行うと、見本画
像と検査印刷物画像の同一絵柄位置の座標値が2点算出
できる。(処理ステップS9) 本実施例では他点として重ね合わせ用絵柄として「2」
を選択した。
When such processing is performed at least two points, two coordinate values of the same picture position of the sample image and the inspection print image can be calculated. (Processing step S9) In the present embodiment, "2" is used as the overlapping pattern as another point.
Was selected.

【0032】アフィン変換では座標(x,y) を x'=ax+by y'=cx+dy という変換式で座標(x',y') に変換できる。ここで、a,
b,c,d のパラメータは2点の(x,y) と(x',y') が与えら
れれば求めることができる。先述の見本と検査品の同一
絵柄位置の2点の座標値を用いてa,b,c,d が算出でき
る。この値を用いてアフィン変換することで、作業者が
用紙をフラットベットスキャナにセットしたときの用紙
の傾きや用紙の伸縮を補正した状態で以降の比較処理を
行うことが出来る。(処理ステップS10) 傾き、伸縮補正後に見本と検査品を画素単位に比較して
両者の相違点を見つける処理に関しては通常一般に用い
られている画像処理方法で対応する。(処理ステップS
11)
In the affine transformation, the coordinates (x, y) can be transformed into coordinates (x ', y') by a transformation formula of x '= ax + by y' = cx + dy. Where a,
The parameters of b, c, d can be obtained if two points (x, y) and (x ', y') are given. A, b, c, d can be calculated using the coordinate values of the two points at the same picture position of the sample and the inspection product. By performing affine transformation using this value, the subsequent comparison processing can be performed in a state where the inclination of the sheet and the expansion and contraction of the sheet when the operator sets the sheet on the flatbed scanner are corrected. (Processing Step S10) The process of comparing the sample and the inspected product in pixel units after correcting the inclination and expansion / contraction to find the difference between the two is performed by a generally used image processing method. (Processing step S
11)

【0033】[0033]

【発明の効果】本発明を利用することにより、作業者が
検査印刷物をフラットベットスキャナに置く際の位置決
めをラフに行っても、見本の位置合わせ用画像と一致す
ると検査印刷物の位置合わせ用画像を検索し、この位置
座標から両者を比較する画像処理で印刷物の汚れ、欠
け、文字違いなどを検出する検査方法が可能となる。
According to the present invention, even when the operator performs rough positioning of the test print on the flatbed scanner, if the operator matches the sample positioning image, the test print positioning image is obtained. , And an image processing for comparing the two based on the position coordinates makes it possible to perform an inspection method for detecting a stain, a chip, a character difference, or the like of a printed matter.

【0034】すなわち、人が両者を比較するために、絵
柄の位置合わせすることを不要とする検査方法であり、
検査工程を自動化、無人化することが可能となる。オー
トドキュメントフィーダなどをフラットベットスキャナ
に取り付けて多数の検査品を連続して画像入力、検査処
理するといったバッチ処理が可能となり、多面付け印刷
物の検査のように、検査品が何万〜何十万ある場合には
特に効果が大きい。
That is, this is an inspection method that does not require a person to align a picture in order to compare the two.
The inspection process can be automated and unmanned. Batch processing, such as attaching an automatic document feeder or the like to a flatbed scanner and continuously inputting and inspecting a large number of inspected products, is possible. The effect is particularly large in some cases.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の印刷物の検査方法の処理フローチャー
トである。
FIG. 1 is a processing flowchart of a printed matter inspection method of the present invention.

【図2】本発明の実施例のハードウェア構成を示す図で
ある。
FIG. 2 is a diagram illustrating a hardware configuration of an embodiment of the present invention.

【図3】(A)は、検査基準の見本画像である。(B)
は、検査印刷物の位置合わせ用絵柄を含む一部分の図で
ある。(C)は、(B)の検査印刷物が傾めに置かれた
状態を示す図である。
FIG. 3A is a sample image of an inspection standard. (B)
FIG. 4 is a partial view including a pattern for alignment of an inspection print. (C) is a figure which shows the state in which the inspection printed matter of (B) was inclined.

【図4】作業者が選択した画像からモデル画像として使
用する矩形領域を切り出す処理フローを示す図である。
FIG. 4 is a diagram showing a processing flow for cutting out a rectangular area used as a model image from an image selected by an operator.

【図5】検査印刷物画像のパターン検索領域の中からモ
デル画像との相関係数を順次モデル画像の位置をずらし
ながら計算する様子を示す図である。
FIG. 5 is a diagram illustrating a manner in which a correlation coefficient with a model image is calculated while sequentially shifting the position of the model image from a pattern search area of an inspection print image.

【符号の説明】[Explanation of symbols]

1…画像処理装置 2…画像入力装置 3…画像表示用TVモニタ 4…キーボード 5…マウス 10…検査基準となる見本画像 11…見本画像のパターン検索領域 12…見本画像の位置合わせ用絵柄 13…位置合わせ用絵柄を含む矩形画像(モデル画像) 14…他の見本画像のパターン検索領域 15…見本画像の位置合わせ用絵柄 20…検査印刷物の画像 21…検査印刷物画像のパターン検索領域 22…検査印刷物画像の位置合わせ用絵柄 23…相関係数算出領域 DESCRIPTION OF SYMBOLS 1 ... Image processing apparatus 2 ... Image input apparatus 3 ... Image display TV monitor 4 ... Keyboard 5 ... Mouse 10 ... Sample image used as an inspection reference 11 ... Sample image pattern search area 12 ... Sample image positioning pattern 13 ... A rectangular image (model image) including a pattern for positioning 14... A pattern search area of another sample image 15... A pattern for positioning of a sample image 20... An image of an inspection print 21. Image alignment pattern 23: Correlation coefficient calculation area

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】印刷物の絵柄を画像入力装置で読み取り、
この読み取られた画素毎の絵柄情報を、予め入力された
対応する画素毎の基準絵柄情報と比較して印刷物の汚
れ、欠け、文字違いなどを検出する検査方法において、 (1)画像入力装置から見本画像を読み取り、画像処理
装置のメモリユニットの基準画像メモリに記憶する工
程。 (2)画像表示装置に該見本画像を表示させ、位置合わ
せ用絵柄を含むパターン検査領域を選択する工程。 (3)パターン検査領域から位置合わせ用絵柄のみを含
む矩形領域を切り出し、該矩形領域の階調ヒストグラム
を作成した後、位置合わせ用絵柄を2値化する工程。 (4)2値化された位置合わせ用絵柄に対して、輪郭追
跡を行い外接矩形を求めると同時に重心位置を算出する
工程。 (5)該外接矩形に囲まれた位置合わせ用絵柄をモデル
画像として画像処理装置のメモリユニットのモデル画像
メモリに記憶する工程。 (6)画像入力装置から検査印刷物画像を読み取り、画
像処理装置のメモリユニットの検査画像メモリに記憶す
る工程。 (7)検査印刷物のパターン検査領域から、前記モデル
画像と一致する位置合わせ用絵柄を相関係数法を用いて
検索する工程。 (8)検査印刷物の位置合わせ用絵柄の階調ヒストグラ
ムを作成した後、2値化する工程。 (9)検査印刷物の位置合わせ用絵柄の重心位置座標を
算出する工程。 (10)(2)〜(9)工程を繰り返し、他の位置合わ
せ用絵柄の重心位置座標を算出する工程。 (11)上記2点の重心位置座標に基づいて検査画像メ
モリに対してアフィン変換を行う工程。 (12)アフィン変換で座標変換された検査印刷物画像
と見本画像を画素単位で比較して両者の相違点を検索す
る工程。 からなることを特徴とする印刷物の検査方法。
An image input device reads a picture of a printed matter,
In the inspection method for comparing the read picture information of each pixel with the reference picture information of the corresponding pixel which is input in advance to detect a stain, a chip, a character difference, or the like of a printed matter, Reading a sample image and storing the sample image in a reference image memory of a memory unit of the image processing apparatus. (2) a step of displaying the sample image on an image display device and selecting a pattern inspection area including a pattern for alignment; (3) A step of cutting out a rectangular area including only the alignment pattern from the pattern inspection area, creating a gradation histogram of the rectangular area, and binarizing the alignment pattern. (4) a step of performing contour tracing on the binarized alignment pattern to obtain a circumscribed rectangle and calculating a barycentric position. (5) a step of storing, as a model image, the positioning picture surrounded by the circumscribed rectangle in a model image memory of a memory unit of the image processing apparatus. (6) A step of reading the inspection print image from the image input device and storing it in the inspection image memory of the memory unit of the image processing device. (7) a step of searching a pattern inspection area of the inspection printed matter for an alignment pattern that matches the model image by using a correlation coefficient method. (8) A step of creating a gradation histogram of a pattern for alignment of an inspection print and then binarizing the gradation histogram. (9) A step of calculating the coordinates of the center of gravity of the alignment pattern of the inspection print. (10) A step of repeating the steps (2) to (9) to calculate the barycentric position coordinates of another alignment pattern. (11) A step of performing affine transformation on the inspection image memory based on the coordinates of the center of gravity of the two points. (12) A step of comparing, on a pixel-by-pixel basis, the test print image image and the sample image, which have been coordinate-transformed by the affine transformation, to search for differences therebetween. A method for inspecting printed matter, comprising:
JP9069714A 1997-03-24 1997-03-24 Method for inspecting printed matter Pending JPH10269357A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9069714A JPH10269357A (en) 1997-03-24 1997-03-24 Method for inspecting printed matter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9069714A JPH10269357A (en) 1997-03-24 1997-03-24 Method for inspecting printed matter

Publications (1)

Publication Number Publication Date
JPH10269357A true JPH10269357A (en) 1998-10-09

Family

ID=13410788

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9069714A Pending JPH10269357A (en) 1997-03-24 1997-03-24 Method for inspecting printed matter

Country Status (1)

Country Link
JP (1) JPH10269357A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010102639A (en) * 2008-10-27 2010-05-06 Ricoh Co Ltd Image processing system, image processing method and image processing program
JP2016166826A (en) * 2015-03-10 2016-09-15 大日本印刷株式会社 Inspection device, inspection method, and program for inspection device
CN107704854A (en) * 2017-09-21 2018-02-16 苏州轩明视测控科技有限公司 A kind of detection method of the print character defect based on optical flow field

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010102639A (en) * 2008-10-27 2010-05-06 Ricoh Co Ltd Image processing system, image processing method and image processing program
JP2016166826A (en) * 2015-03-10 2016-09-15 大日本印刷株式会社 Inspection device, inspection method, and program for inspection device
CN107704854A (en) * 2017-09-21 2018-02-16 苏州轩明视测控科技有限公司 A kind of detection method of the print character defect based on optical flow field

Similar Documents

Publication Publication Date Title
US20040076323A1 (en) Inspection data producing method and board inspection apparatus using the method
JPH07141463A (en) Detection of mechanically printed amount of money in binary-coded image
JP2010071951A (en) Visual inspection device and visual inspection method
JPH10269359A (en) Method and device for inspecting printed matter
CN110596118A (en) Print pattern detection method and print pattern detection device
JPH10269357A (en) Method for inspecting printed matter
TW466873B (en) Method to determine the occurrence of line-dropping in the scanned image of scanner
JPH1021412A (en) Edge detection method of parts picture, and parts form recognition device
JPH0953915A (en) Method for recognizing overlapping state
JP2002008029A (en) Image inspection device
JPH10289311A (en) Check method and device for printed matter
JPH04236343A (en) Detecting method of defect of glass edge
JP4013027B2 (en) Two-dimensional code reader
JPH0592646A (en) Method for inspecting printed matter
JPH1038543A (en) Shape inspection method
JP2003187187A (en) Model registration method and pattern recognition device using this method
US20230398776A1 (en) Inspection apparatus, inspection method, and storage medium
JP7300155B2 (en) Teaching device in solid preparation appearance inspection, and teaching method in solid preparation appearance inspection
JPH11328415A (en) Printed matter inspecting device
JP2004318488A (en) Product inspection method and product inspection device
JPH11237212A (en) Image recognizing method
JP3395922B2 (en) Inspection method and inspection device
JP2964594B2 (en) Mark inspection method
JPH09147056A (en) Method and device for checking appearance of mark
JP3473114B2 (en) Image processing method