JPH10289311A - Check method and device for printed matter - Google Patents
Check method and device for printed matterInfo
- Publication number
- JPH10289311A JPH10289311A JP9097572A JP9757297A JPH10289311A JP H10289311 A JPH10289311 A JP H10289311A JP 9097572 A JP9097572 A JP 9097572A JP 9757297 A JP9757297 A JP 9757297A JP H10289311 A JPH10289311 A JP H10289311A
- Authority
- JP
- Japan
- Prior art keywords
- image
- pattern
- inspection
- information
- printed matter
- 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
Links
- 238000000034 method Methods 0.000 title claims description 28
- 238000006243 chemical reaction Methods 0.000 claims abstract description 7
- 238000007689 inspection Methods 0.000 claims description 61
- 238000001514 detection method Methods 0.000 claims description 4
- 230000008602 contraction Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 238000006073 displacement reaction Methods 0.000 description 3
- 230000005484 gravity Effects 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000003908 quality control method Methods 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- PXFBZOLANLWPMH-UHFFFAOYSA-N 16-Epiaffinine Natural products C1C(C2=CC=CC=C2N2)=C2C(=O)CC2C(=CC)CN(C)C1C2CO PXFBZOLANLWPMH-UHFFFAOYSA-N 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 239000003814 drug Substances 0.000 description 1
- 230000000873 masking effect Effects 0.000 description 1
- 239000005022 packaging material Substances 0.000 description 1
- 239000010893 paper waste Substances 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000001915 proofreading effect Effects 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Landscapes
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
Description
【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,
This is an inspection method in which even when the position of an inspection print is roughly input, when comparing and detecting differences, differences in the quality control of the prints that do not result in waste paper are not detected as differences. .
【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, with such an apparatus, it is not possible to position the sample and the inspection product in exactly the same way and input an image. 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 the operator selects one of the images so that the sample image matches the inspection print image. The position must be adjusted for each sheet.
【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 any of the images of the sample and the test print using these values, it is possible to compare both images for each pixel.
【0009】しかし、このような処理を行っても実際に
は絵柄のエッジ部で見本と検査印刷物の傾き補正後の画
像が完全には一致しない場合が多い。これは印刷用紙の
局所的な伸縮を用紙全体を均一な伸縮として扱ってアフ
ィン変換などの補正処理した際の歪み、あるいは印刷位
置が実際に位置ずれしている場合などが原因である。However, even if such processing is performed, in many cases, the sample and the image after the inclination correction of the test print are not completely coincident with each other at the edge of the picture. This is due to a distortion when the local expansion and contraction of the printing paper is treated as uniform expansion and contraction such as affine transformation, or a case where the printing position is actually shifted.
【0010】この様に本来、相違点として検出しなくて
も良い部分まで検出されてしまうことになる。それ故、
印刷物の品質管理上問題にならない局所的な相違点は検
出されないような対策をとる必要がある。As described above, even a portion which does not need to be detected as a difference is detected. Therefore,
It is necessary to take measures so that local differences that do not cause a problem in quality control of printed matter are not detected.
【0011】特に、ベタで塗りつぶし矩形等に、単色の
文字が印刷されている場合は、文字の位置が多少ズレて
も全く問題にならない。In particular, when a single color character is printed in a solid filled rectangle or the like, there is no problem at all even if the position of the character is slightly shifted.
【0012】多面付けされている絵柄の一方の面では見
当が完全に一致していても、他の面では各色の位置が数
百μmずれているといったケースも、色として違いが見
られなければ不良品とはならないのがほとんどである。
このような理由から絵柄のエッジ部で見本と検査印刷物
の傾き補正後の画像が完全には一致しない場合が多いの
である。In the case where the register is completely coincident on one side of the multi-faced pattern, the position of each color is shifted by several hundred μm on the other side. In most cases, it will not be defective.
For such a reason, the sample and the image after the inclination correction of the inspection printed matter often do not completely match at the edge of the picture.
【0013】ところが、本検査装置で最も検査したい細
かい文字部は多数のエッジ部から構成されているので、
検査基準を厳しく設定すると問題の無い部分も相違点と
して検出されてしまう。一方、それを防ごうとすると検
査基準を甘く設定するしか無いため、例えば見本では文
字「3」であったものが検査品では文字「8」という相
違が存在していても文字サイズが小さい場合には検出さ
れないという問題がある。However, since the fine character portion to be inspected most by this inspection device is composed of many edge portions,
If the inspection standard is set strictly, a portion having no problem will be detected as a difference. On the other hand, in order to prevent this, the inspection standard can only be set loosely. For example, if the character is “3” in the sample but the character is “8” in the inspection product, the character size is small. Has a problem that it is not detected.
【0014】[0014]
【発明が解決しようとしている課題】本発明はこのよう
な状況に鑑みて提案されたものであり、印刷物の絵柄を
画素毎に検出部(画像入力部)より取り込み、この検出
された画素毎の絵柄情報を、予め入力された対応する画
素毎の基準絵柄信号と比較して印刷物の汚れ、欠け、文
字違いなどを検出する検査方法において、単純に傾き、
伸縮補正処理後に画素単位の比較をしても精密な検査が
出来ない問題に対して、位置決めがラフであっても、用
紙に伸縮があっても、検査を可能にする印刷物の検査方
法、装置を提供するものである。SUMMARY OF THE INVENTION The present invention has been proposed in view of such a situation, and a picture of a printed matter is taken in from a detection unit (image input unit) for each pixel, and the detected pixel is detected for each pixel. In the inspection method of comparing the picture information with a pre-input reference picture signal of each corresponding pixel and detecting a stain, a chip, a character difference, or the like of a printed matter, a simple inclination,
Inspection method and apparatus for printed matter that enables inspection even if positioning is rough or paper is expanded or contracted for the problem that precise inspection cannot be performed even if pixel unit comparison is performed after expansion / contraction correction processing Is provided.
【0015】[0015]
【課題を解決するための手段】本発明は、印刷物の絵柄
を画素毎に検出部(画像入力部)より取り込み、この検
出された画素毎の絵柄情報を、予め入力された対応する
画素毎の基準絵柄情報と比較して印刷物の汚れ、欠け、
文字違いなどを検出する検査方法において、 (1)基準となる検査見本の絵柄を基準絵柄情報として
基準メモリに、検査印刷物の絵柄の画像情報を画像メモ
リに格納する工程。 (2)基準絵柄情報から位置合わせ用絵柄を最低2点選
択し位置座標を求め、検査印刷物の絵柄の画像情報から
該位置合わせ用絵柄の位置座標を求め、両者の位置座標
に基づいて座標変換する工程。 (3)検査見本、検査印刷物それぞれの絵柄のエッジ成
分を抽出する工程。 (4)該絵柄のエッジ成分を2値化画像に変換する工
程。 (5)該2値化画像をサイズ(W画素×H画素)からな
るブロックに分割する工程。 (6)各ブロック単位で検査印刷物の絵柄の画像情報を
1画素づつ位置をずらしながら検査見本の基準絵柄情報
と最も重なり合う位置を求める工程。 (7)最も重なり合う位置で、検査見本の基準絵柄情報
と検査印刷物の画像情報とを画素毎に比較し、両者の相
違点を検出し表示する工程。とを含む印刷物の検査方法
である。According to the present invention, a picture of a printed matter is fetched for each pixel from a detection section (image input section), and the detected picture information for each pixel is input to a corresponding pixel previously inputted. Dirt, chipping,
In the inspection method for detecting a character difference or the like, (1) a step of storing a pattern of a test sample serving as a reference in a reference memory as reference pattern information, and storing image information of a pattern of a test print in an image memory. (2) At least two patterns for positioning are selected from the reference pattern information to determine the position coordinates, the position coordinates of the pattern for positioning are determined from the image information of the pattern on the inspection print, and coordinate conversion is performed based on the position coordinates of both. Process. (3) A step of extracting the edge components of the picture of each of the test sample and the test print. (4) a step of converting the edge component of the picture into a binary image. (5) a step of dividing the binarized image into blocks each having a size (W pixels × H pixels). (6) A step of obtaining a position that most overlaps with the reference pattern information of the inspection sample while shifting the position of the image information of the pattern of the inspection printed matter by one pixel in each block unit. (7) A step of comparing the reference pattern information of the inspection sample and the image information of the inspection printed matter for each pixel at the position where the inspection is most overlapped, and detecting and displaying a difference between the two. And a printed matter inspection method.
【0016】また、(1)基準となる検査見本の絵柄を
基準絵柄情報として基準メモリに、検査印刷物の絵柄の
画像情報を画像メモリに格納する為の画像入力装置と、
(2)該基準絵柄情報と検査印刷物の絵柄の画像情報と
をそれぞれ格納する基準メモリ、画像メモリを有し、位
置合わせ用絵柄を最低2点選択し位置座標を求め座標変
換する座標変換手段と、それぞれの絵柄のエッジ成分を
抽出するエッジ抽出手段と、前記絵柄のエッジ成分を2
値化画像に変換する2値化画像変換手段と、2値化画像
をサイズ(W画素×H画素)からなるブロックに分割す
るブロック分割手段と、各ブロック単位で検査印刷物の
絵柄の画像情報を1画素づつ位置をずらしながら検査見
本の基準絵柄情報と最も重なり合う位置を求める最適位
置検出手段と、最も重なり合う位置で、検査見本の基準
絵柄情報と検査印刷物の画像情報とを画素毎に比較し、
両者の相違点を検出する相違点検出手段とを有する画像
処理装置と、(3)上記の処理を実行する命令を入力し
表示する、及び両者の相違点を表示、及び検査結果を表
示する画像表示装置とを、具備する印刷物の検査装置で
ある。(1) An image input device for storing a pattern of a test sample serving as a reference in a reference memory as reference pattern information, and storing image information of a pattern of a test print in an image memory.
(2) a coordinate conversion means which has a reference memory and an image memory for respectively storing the reference picture information and the picture information of the picture of the test print, selects at least two points of the picture for alignment, obtains the position coordinates, and performs coordinate transformation; Edge extracting means for extracting an edge component of each pattern;
A binarized image converting unit for converting into a binarized image; a block dividing unit for dividing the binarized image into blocks each having a size (W pixels × H pixels); An optimal position detecting means for obtaining a position where the reference pattern information of the test sample overlaps with the reference pattern information of the test sample while shifting the position by one pixel; and comparing the reference pattern information of the test sample with the image information of the test print at each position where the pattern overlaps most,
An image processing apparatus having a difference detecting means for detecting a difference between the two, and (3) an image for inputting and displaying an instruction for executing the above processing, displaying the difference between the two, and displaying an inspection result And a display device for inspecting printed matter.
【0017】[0017]
【発明の実施の形態】以下、本発明の具体的実施例を図
面に基づき説明する。図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 method of the present invention, and FIG. 2 shows a hardware configuration of the present embodiment. An image processing device (1) composed of a CPU unit, an image memory unit, an image input unit, an image display unit, etc., an image input device (2), a TV monitor for image display (3), a keyboard (4), a mouse (5) ) Is used. In the present embodiment, a case will be described in which main processing is performed by software using a flatbed scanner for the image input device (2).
【0018】見本と検査印刷物の相違点を検出する処理
は各画像の対応する画素同士を比較する方式で基本的に
は処理されている。しかし、図3(a)に示すようにフ
ラットベットスキャナに見本や検査印刷物を正確に水平
に置くのは困難で、図3(b)のように傾いて置かれる
場合を許容しなければ作業性が悪くなる。そのため、単
純に入力した画像の同一座標の画素同士を比較すると画
像の違う位置同士の比較となるため、全面にわたって相
違点として検出されてしまう。The process of detecting the difference between the sample and the test print is basically performed by a method of comparing corresponding pixels of each image. However, as shown in FIG. 3 (a), it is difficult to accurately place the sample or the test print horizontally on the 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.
【0019】また、傾きがゼロであっても用紙の伸縮で
完全に一致しない場合もある。そこで、検査印刷物の画
像を見本の画像と同じ角度、サイズに補正する処理を行
う。さて補正後の画像と見本画像であれば画素毎に比較
することで相違点のみが検出できるかというと、実際に
は印刷物の局所的な伸縮、印刷の微妙な位置ずれなどの
ため、単純な画素毎の比較では画像のエッジ部で相違点
が検出される。しかし、印刷物にこのような相違が実際
にあったとしても、それらが問題になることはないの
で、このような相違は検査装置で無視しなければならな
い。Further, even when the inclination is zero, there is a case where they do not completely match due to the expansion and contraction of the paper. Therefore, a process of correcting the image of the inspection print to the same angle and size as the sample image is performed. Now, if the corrected image and the sample image can be compared to each other to detect only the difference by pixel-by-pixel comparison, it is actually a simple expansion and contraction of the printed matter, a slight displacement of the printing, etc. In the comparison for each pixel, a difference is detected at an edge portion of the image. However, even if such differences do exist in the printed matter, they do not matter and must be ignored by the inspection device.
【0020】一般にこのように位置ずれなどによりエッ
ジ部に発生する相違点を無視する方法としてエッジ部を
マスクする方法や注目画素を中心とする領域中の最大値
を新しい値として変換する最大値フィルタと注目画素を
中心とする領域中の最小値を新しい値として変換する最
小値フィルタを利用してエッジ部の検査感度を甘くする
方法などがある。Generally, as a method for ignoring differences occurring in an edge portion due to a positional shift or the like, a method of masking an edge portion or a maximum value filter for converting a maximum value in an area centered on a pixel of interest as a new value. And a method of using a minimum value filter for converting a minimum value in a region centered on a pixel of interest as a new value to make the inspection sensitivity of an edge portion weaker.
【0021】しかし、本検査装置の重要な目的である文
字部に対してこのような処理を適用した場合、文字部は
エッジの占める割合が非常に大きいため、わずかな違い
を検出できる精密な検査が望めない。However, when such a process is applied to a character portion, which is an important object of the present inspection apparatus, the character portion has a very large edge occupation ratio, so that a precise inspection capable of detecting a slight difference is possible. Can not expect.
【0022】そこで、図1に示すような処理を行う。ま
ず、画像入力装置より見本画像、検査印刷物の画像を読
み取り見本画像を基準メモリに、検査印刷物の画像を画
像メモリに格納する(処理ステップS1) 。Therefore, a process as shown in FIG. 1 is performed. First, a sample image and an image of a test print are read from the image input device, and the sample image is stored in the reference memory, and the image of the test print is stored in the image memory (processing step S1).
【0023】見本画像の基準絵柄情報から位置合わせ用
絵柄を最低2点選択し、この位置合わせ用絵柄の重心位
置を求め、更に検査印刷物の絵柄の画像情報から該位置
合わせ用絵柄の重心位置を求め、両者の位置座標に基づ
いて検査印刷物の絵柄の画像情報アドレス、見本画像の
基準絵柄情報アドレスのいずれか一方を座標変換して両
者の画像が重なり合う処理をする(処理ステップS2)。
座標変換することにより、傾き補正、伸縮補正がなされ
る。At least two patterns for positioning are selected from the reference pattern information of the sample image, the center of gravity of the pattern for positioning is obtained, and the center of gravity of the pattern for positioning is determined from the image information of the pattern on the inspection print. Then, based on the position coordinates of both, the image information address of the picture of the test print and the reference picture information address of the sample image are coordinate-transformed, and a process is performed in which both images overlap (processing step S2).
By performing coordinate conversion, inclination correction and expansion / contraction correction are performed.
【0024】傾き、伸縮補正処理後の検査印刷物の絵柄
の画像情報、見本画像の基準絵柄情報それぞれに対して
ソベールフィルタなどの微分フィルタ処理を施し絵柄の
エッジ成分を抽出する(処理ステップS3)。A differential filter process such as a Sobel filter is applied to each of the image information of the pattern of the inspection print after the inclination and expansion / contraction correction processing and the reference pattern information of the sample image to extract an edge component of the pattern (processing step S3). .
【0025】そして、前記エッジ成分を2値化処理して
2値化画像に変換する(処理ステップS4)。Then, the edge component is binarized and converted into a binarized image (processing step S4).
【0026】次に局所的な位置ずれに対応するため図4
に示すように対象となる見本画像、及び傾き、伸縮補正
処理後の検査印刷物の画像を画素サイズ(W画素×H画
素)から成るブロックに分割する(処理ステップS5)。
ブロックを形成する画素サイズは、画像入力装置の解像
度及びどの位の大きさまで精度よく検査するかによって
任意に決定する。画像入力装置の解像度が360dpi
(14画素/mm)の時、10ポイント(3.5mm )の文字
まで検査する場合、14×3.5 =49である故50画素
×50画素の大きさでブロック分割すると良い。Next, in order to cope with a local displacement, FIG.
As shown in (5), the target sample image and the image of the test print after the inclination and expansion / contraction correction processing are divided into blocks each having a pixel size (W pixels × H pixels) (processing step S5).
The pixel size for forming a block is arbitrarily determined depending on the resolution of the image input device and how large the inspection should be. The resolution of the image input device is 360 dpi
In the case of (14 pixels / mm), when inspecting a character of up to 10 points (3.5 mm), it is preferable to divide the block into 50 pixels × 50 pixels because 14 × 3.5 = 49.
【0027】そして、各ブロック単位で検査印刷物のエ
ッジ2値化画像のブロックの位置をずらしながら見本エ
ッジ2 値画像と一番重なり合う位置を求める処理を行う
(処理ステップS6)。Then, while shifting the position of the block of the edge binarized image of the inspection print material for each block, a process of obtaining the position that overlaps the sample edge binary image is performed (processing step S6).
【0028】ここで図4の「A」という文字の絵柄があ
るブロックを例に取って説明する。実際にはこのブロッ
クと同様の処理を全ブロックに対して行う。図4にブロ
ックの周りに太線で示すようにブロックサイズより数画
素大きい領域を考える。大きさは(W+2)×(H+
2)〜(W+6)×(H+6)程度とする。Here, a block having a pattern of the character "A" in FIG. 4 will be described as an example. Actually, the same processing as this block is performed for all blocks. Consider an area around the block, which is several pixels larger than the block size, as indicated by a bold line in FIG. The size is (W + 2) × (H +
2) to (W + 6) × (H + 6).
【0029】1画素づつずらして最も重なり合う位置を
求める方法の概念の説明として、(W+2)×(H+
2)の場合で行う。図5(a)に示す検査印刷物のエッ
ジ2値化ブロック画像と、左、右、上、下それぞれに1
画素づつ大きい図5(c)に示す対応する位置の見本画
像のエッジ2値化ブロック画像を対応する画素同志を重
ねあわせることを考える。As an explanation of the concept of a method of obtaining the most overlapping position by shifting one pixel at a time, (W + 2) × (H +
Perform in the case of 2). An edge binarized block image of the inspection print shown in FIG. 5A and one each for the left, right, upper, and lower sides.
Assume that the corresponding pixel is superimposed on the edge binarized block image of the sample image at the corresponding position shown in FIG.
【0030】図5(a)のW×H画素のブロックで左上
を(0,0)、右下を(W,H)座標を考える。する
と、図5(c)の(W+2)×(H+2)のブロックで
は左上が(−1,−1)、右下が(W+1,H+1)と
表せる。ここで、図5(a)の左上(0,0)をずらし
て、図5(c)の左上(−1,−1)に重ね合わせると
図5(e)に示すようになり(W×H)の全画素につい
てXOR(排他的論理和)処理を行うと、図5(f)の
ようになり、処理後の1となった画素をカウントする。In the block of W × H pixels in FIG. 5A, the upper left corner is (0, 0), and the lower right corner is (W, H) coordinates. Then, in the block of (W + 2) × (H + 2) in FIG. 5C, the upper left can be expressed as (−1, −1) and the lower right can be expressed as (W + 1, H + 1). Here, when the upper left (0, 0) of FIG. 5A is shifted and superimposed on the upper left (-1, -1) of FIG. 5C, the result becomes as shown in FIG. When XOR (exclusive OR) processing is performed on all the pixels in H), the result is as shown in FIG. 5F, and the number of pixels that have become 1 after the processing is counted.
【0031】図5(f)で示されるXOR処理後の1と
なった画素は図5(a)と図5(c)の画素が一致しな
い状態を表示、0となった画素は一致した状態を表示す
ることになる。すなわち、1となった画素数をカウント
し、この数が少ないほど両者の絵柄が一致している度合
いが大きいことを示す。完全に一致していれば1となっ
た画素数は零となる。The pixel which becomes 1 after the XOR processing shown in FIG. 5 (f) indicates a state where the pixels of FIG. 5 (a) and FIG. 5 (c) do not match, and the pixel which becomes 0 shows a state where it matches. Will be displayed. That is, the number of pixels having become 1 is counted, and the smaller the number is, the higher the degree of coincidence between the two patterns is. If they completely match, the number of pixels that become 1 becomes zero.
【0032】次に、図5(a)の左上(0,0)を図5
(c)に対してX(横)方向に3画素分、Y(縦)方向
に3画素分、1画素づつ移動し重ね合わせる。すなわ
ち、図5(a)の左上(0,0)を図5(c)の(0,
−1)、(1,−1)、(−1, 0)、(0、0)、
(1,0)、(−1,1)、(0,1)、(1,1)に
順次移動し重ね合わせる。この9種類の位置について、
X0R処理をし、1となった画素数をカウントする。こ
こで、1となった画素数の最も少ない位置を最も見本画
像と検査印刷物の画像の重なりが良い位置と判断するこ
とができる。Next, the upper left (0, 0) of FIG.
With respect to (c), three pixels are moved in the X (horizontal) direction and three pixels are moved in the Y (vertical) direction, one pixel at a time. That is, the upper left (0, 0) of FIG.
-1), (1, -1), (-1, 0), (0, 0),
(1, 0), (-1, 1), (0, 1), and (1, 1) are sequentially moved and overlapped. For these nine positions,
XOR processing is performed, and the number of pixels that become 1 is counted. Here, the position where the number of pixels having become 1 is the smallest can be determined as the position where the overlap between the sample image and the image of the inspection printed matter is the best.
【0033】こうして、ブロック内で一番重なりの良い
位置を求めたら、その位置で見本画像と検査品画像を画
素毎に比較して両者の相違点を検出する処理を行う。こ
のような処理を行うことで位置合わせがうまくいかない
ことによるパターンエッジ部での相違点検出を最小限に
抑えることが可能となる。Once the position of the best overlap in the block is determined, the sample image and the inspection image are compared pixel by pixel at that position to detect the difference between the two. By performing such processing, it is possible to minimize the difference detection at the pattern edge portion due to poor alignment.
【0034】尚、ブロック内でパターンをずらしながら
最も重なりが良い位置を求める処理は相関係数を用いた
方法も可能であるが、演算量が大きくなる。一方、本方
式では最初にエッジ2値化画像に変換してXOR処理の
みで重なり状況を判断できるので高速処理が可能であ
る。また、位置ずれの影響はエッジ部で顕著なので、こ
の方式は適している。Incidentally, the processing for obtaining the position with the best overlap while shifting the pattern in the block may be a method using a correlation coefficient, but the calculation amount becomes large. On the other hand, according to the present method, an overlap state can be determined only by XOR processing after first converting to an edge binarized image, so that high-speed processing is possible. This method is suitable because the influence of the displacement is remarkable at the edge portion.
【0035】尚、ブロック毎に位置合わせを行った後に
見本と検査品を画素単位に比較して両者の相違点を見つ
ける処理に関しては通常一般に用いられている画像処理
方法で行う。Incidentally, the process of comparing the sample and the inspected product on a pixel-by-pixel basis after performing the position alignment for each block to find the difference between the two is performed by a generally used image processing method.
【0036】[0036]
【発明の効果】印刷物の絵柄を画素毎に検出部(画像入
力部)より取り込み、この検出された画素ごとの絵柄情
報を、予め入力された対応する画素ごとの基準絵柄信号
と比較して印刷物の汚れ、欠け、文字違いなどを検出す
る検査装置において、本発明を利用することにより、傾
き、伸縮補正処理後の画像をブロック分割し、ブロック
単位で位置をずらして、一番重なりの良い位置で画素毎
に見本画像と検査印刷物画像を比較できるので精密な検
査が可能になり、従来困難であった細かい文字の部分的
な欠けや汚れなどの検出が可能となる。According to the present invention, a picture of a printed matter is fetched for each pixel from a detecting section (image input section), and the detected picture information of each pixel is compared with a pre-input reference picture signal of each corresponding pixel to print the picture. By using the present invention, in an inspection device that detects dirt, chipping, character difference, and the like, the image after the inclination and expansion / contraction correction processing is divided into blocks, and the position is shifted in units of blocks, so that the position having the best overlap is obtained. Since the sample image and the inspection print image can be compared for each pixel, precise inspection becomes possible, and it becomes possible to detect partial chipping or dirt of fine characters, which has been difficult in the past.
【図1】本発明の検査方法を示すフローチャート。FIG. 1 is a flowchart showing an inspection method of the present invention.
【図2】本発明の実施例のハードウェア構成を示す図。FIG. 2 is a diagram showing a hardware configuration of an embodiment of the present invention.
【図3】(a)は、フラットベットスキャナに見本や検
査印刷物が正確に水平に置かれた状態を示す図。(b)
は、フラットベットスキャナに見本や検査印刷物が斜め
に置かれた状態を示す図。FIG. 3A is a diagram illustrating a state in which a sample or an inspection print is accurately and horizontally placed on a flatbed scanner. (B)
FIG. 3 is a diagram showing a state in which a sample or an inspection print is placed obliquely on a flatbed scanner.
【図4】ブロック分割する状態を説明する図。FIG. 4 is a diagram illustrating a state in which a block is divided.
【図5】(a)は、ブロックサイズ(W×H)で文字
「A」を構成している状態を示すブロック画像。(b)
は、(a)を2値化ブロック図。(c)は、ブロックサ
イズ( W+2)×(H+2)で文字「A」を構成してい
る状態を示すブロック画像。(d)は、(c)を2値化
ブロック図。(e)は、(a)と(c)を重ね合わせた
状態を示す図。(f)は、(a)と(c)を重ね合わせ
XOR処理後の2値化ブロック図。FIG. 5A is a block image showing a state in which a character “A” is composed of a block size (W × H). (B)
FIG. 3A is a binarized block diagram of FIG. (C) is a block image showing a state in which the character “A” is composed of a block size (W + 2) × (H + 2). (D) is a binarized block diagram of (c). (E) is a diagram showing a state in which (a) and (c) are superimposed. (F) is a binarization block diagram after (a) and (c) are overlapped and XOR-processed.
1…画像処理装置 2…画像入力装置 3…画像表示用TVモニタ 4…キーボード 5…マウス 10…見本の画像又は検査印刷物の画像 12…ブロックサイズ(W×H)で分割したブロック画
像 14…ブロックサイズより1廻り大きい(2〜6画素)
領域を示すブロック画像DESCRIPTION OF SYMBOLS 1 ... Image processing device 2 ... Image input device 3 ... Image display TV monitor 4 ... Keyboard 5 ... Mouse 10 ... Sample image or test print image 12 ... Block image divided by block size (WxH) 14 ... Block One size larger than the size (2 to 6 pixels)
Block image showing area
Claims (2)
部)より取り込み、この検出された画素毎の絵柄情報
を、予め入力された対応する画素毎の基準絵柄情報と比
較して印刷物の汚れ、欠け、文字違いなどを検出する検
査方法において、 (1)基準となる検査見本の絵柄を基準絵柄情報として
基準メモリに、検査印刷物の絵柄の画像情報を画像メモ
リに格納する工程。 (2)基準絵柄情報から位置合わせ用絵柄を最低2点選
択し位置座標を求め、検査印刷物の絵柄の画像情報から
該位置合わせ用絵柄の位置座標を求め、両者の位置座標
に基づいて座標変換する工程。 (3)検査見本、検査印刷物それぞれの絵柄のエッジ成
分を抽出する工程。 (4)該絵柄のエッジ成分を2値化画像に変換する工
程。 (5)該2値化画像をサイズ(W画素×H画素)からな
るブロックに分割する工程。 (6)各ブロック単位で検査印刷物の絵柄の画像情報を
1画素づつ位置をずらしながら検査見本の基準絵柄情報
と最も重なり合う位置を求める工程。 (7)最も重なり合う位置で、検査見本の基準絵柄情報
と検査印刷物の画像情報とを画素毎に比較し、両者の相
違点を検出し表示する工程。とを含むことを特徴とする
印刷物の検査方法。A picture pattern of a printed matter is fetched from a detection unit (image input unit) for each pixel, and the detected picture information of each pixel is compared with reference picture information of a corresponding pixel inputted in advance to print the picture. (1) a step of storing a pattern of a test sample serving as a reference in a reference memory as reference pattern information, and storing image information of a pattern of a test print in an image memory. (2) At least two patterns for positioning are selected from the reference pattern information to determine the position coordinates, the position coordinates of the pattern for positioning are determined from the image information of the pattern on the inspection print, and coordinate conversion is performed based on the position coordinates of both. Process. (3) A step of extracting the edge components of the picture of each of the test sample and the test print. (4) a step of converting the edge component of the picture into a binary image. (5) a step of dividing the binarized image into blocks each having a size (W pixels × H pixels). (6) A step of obtaining a position that most overlaps with the reference pattern information of the inspection sample while shifting the position of the image information of the pattern of the inspection printed matter by one pixel in each block unit. (7) A step of comparing the reference pattern information of the inspection sample and the image information of the inspection printed matter for each pixel at the position where the inspection is most overlapped, and detecting and displaying a difference between the two. And a method for inspecting printed matter.
柄情報として基準メモリに、検査印刷物の絵柄の画像情
報を画像メモリに格納する為の画像入力装置と、(2)
該基準絵柄情報と検査印刷物の絵柄の画像情報とをそれ
ぞれ格納する基準メモリ、画像メモリを有し、位置合わ
せ用絵柄を最低2点選択し位置座標を求め座標変換する
座標変換手段と、それぞれの絵柄のエッジ成分を抽出す
るエッジ抽出手段と、前記絵柄のエッジ成分を2値化画
像に変換する2値化画像変換手段と、2値化画像をサイ
ズ(W画素×H画素)からなるブロックに分割するブロ
ック分割手段と、各ブロック単位で検査印刷物の絵柄の
画像情報を1画素づつ位置をずらしながら検査見本の基
準絵柄情報と最も重なり合う位置を求める最適位置検出
手段と、最も重なり合う位置で、検査見本の基準絵柄情
報と検査印刷物の画像情報とを画素毎に比較し、両者の
相違点を検出する相違点検出手段とを有する画像処理装
置と、(3)上記の処理を実行する命令を入力し表示す
る、及び両者の相違点を表示、及び検査結果を表示する
画像表示装置とを、具備することを特徴とする印刷物の
検査装置。2. An image input device for storing a pattern of an inspection sample as a reference in a reference memory as reference pattern information, and storing image information of a pattern of an inspection print in an image memory.
A coordinate conversion unit that has a reference memory and an image memory for storing the reference pattern information and the image information of the pattern of the inspection print, respectively, selects at least two points of the positioning pattern, obtains position coordinates, and performs coordinate conversion; Edge extracting means for extracting an edge component of a picture, binarized image converting means for converting the edge component of the picture into a binarized image, and converting the binarized image into blocks each having a size (W pixels × H pixels). A block dividing means for dividing, an optimal position detecting means for finding a position which overlaps the reference pattern information of the test sample by shifting the position of the image information of the pattern of the test printed matter by one pixel for each block, and an inspection at the position where the pattern overlaps most. An image processing apparatus having a difference detecting means for comparing the reference pattern information of the sample with the image information of the test print for each pixel and detecting a difference between the two; Enter the command to execute processing for displaying, and displays the differences between them, and inspection and an image display device for displaying the results, the inspection apparatus of printed matter characterized by comprising.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9097572A JPH10289311A (en) | 1997-04-15 | 1997-04-15 | Check method and device for printed matter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9097572A JPH10289311A (en) | 1997-04-15 | 1997-04-15 | Check method and device for printed matter |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH10289311A true JPH10289311A (en) | 1998-10-27 |
Family
ID=14195963
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP9097572A Pending JPH10289311A (en) | 1997-04-15 | 1997-04-15 | Check method and device for printed matter |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH10289311A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9258446B2 (en) | 2013-10-16 | 2016-02-09 | Fuji Xerox Co., Ltd. | Image processing apparatus |
CN116482113A (en) * | 2023-04-24 | 2023-07-25 | 广东绿之彩科技股份有限公司 | Printed matter appearance defect detection process based on neural network |
CN116612476A (en) * | 2023-07-20 | 2023-08-18 | 合肥图迅电子科技有限公司 | Chip character detection method and device, computer equipment and storage medium |
-
1997
- 1997-04-15 JP JP9097572A patent/JPH10289311A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9258446B2 (en) | 2013-10-16 | 2016-02-09 | Fuji Xerox Co., Ltd. | Image processing apparatus |
CN116482113A (en) * | 2023-04-24 | 2023-07-25 | 广东绿之彩科技股份有限公司 | Printed matter appearance defect detection process based on neural network |
CN116482113B (en) * | 2023-04-24 | 2024-01-26 | 广东绿之彩科技股份有限公司 | Printed matter appearance defect detection process based on neural network |
CN116612476A (en) * | 2023-07-20 | 2023-08-18 | 合肥图迅电子科技有限公司 | Chip character detection method and device, computer equipment and storage medium |
CN116612476B (en) * | 2023-07-20 | 2023-09-22 | 合肥图迅电子科技有限公司 | Chip character detection method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR900007434B1 (en) | Pattern checker | |
US4758782A (en) | Method and apparatus for inspecting printed circuit board | |
JP5061543B2 (en) | Printed matter inspection device, printed matter inspection method | |
JPH10269359A (en) | Method and device for inspecting printed matter | |
JP7017207B2 (en) | Image inspection device and its image inspection method | |
JP2020087473A (en) | High-speed image distortion correction for image inspection | |
CN1898555B (en) | Substrate inspection device | |
JPH10289311A (en) | Check method and device for printed matter | |
JP2002008029A (en) | Image inspection device | |
JP3243541B2 (en) | Tablet appearance inspection method | |
JP7300155B2 (en) | Teaching device in solid preparation appearance inspection, and teaching method in solid preparation appearance inspection | |
JP2008145192A (en) | Inspection device and method, and inspection information registering method | |
JP2007024669A (en) | Inspection device and inspection method | |
JP2022184098A (en) | Image processing device, image processing method and program | |
JP4546607B2 (en) | Non-defective pattern registration method and pattern inspection method | |
JPH10269357A (en) | Method for inspecting printed matter | |
JP2009285997A (en) | Image defect detecting method, and image forming apparatus | |
JP7615763B2 (en) | Inspection device and inspection method | |
JP4130848B2 (en) | Pixel inspection method and pixel inspection apparatus | |
JPH07192134A (en) | Image processing method | |
JPH0894534A (en) | Pattern defect detecting deice | |
JPH09147056A (en) | Mark appearance inspection method and its equipment | |
JP2007017214A (en) | Inspection device and inspection method | |
JPH11328415A (en) | Printed matter inspecting device | |
JP2004045228A (en) | Method and apparatus for inspecting stain in print |