JPH08323963A - Method and device for forming threshold value image in printed matter-inspection device - Google Patents

Method and device for forming threshold value image in printed matter-inspection device

Info

Publication number
JPH08323963A
JPH08323963A JP7137730A JP13773095A JPH08323963A JP H08323963 A JPH08323963 A JP H08323963A JP 7137730 A JP7137730 A JP 7137730A JP 13773095 A JP13773095 A JP 13773095A JP H08323963 A JPH08323963 A JP H08323963A
Authority
JP
Japan
Prior art keywords
image
threshold
value
printed matter
inspection
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
JP7137730A
Other languages
Japanese (ja)
Inventor
Masashi Nishida
真史 西田
Hiroshi Sato
博 佐藤
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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon 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 Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP7137730A priority Critical patent/JPH08323963A/en
Publication of JPH08323963A publication Critical patent/JPH08323963A/en
Pending legal-status Critical Current

Links

Landscapes

  • Inking, Control Or Cleaning Of Printing Machines (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

PURPOSE: To realize a threshold value image forming method by which the stabilized inspection can be carried out by using a reference image or a prior reference image, and finding a corresponding threshold value of a central pixel for respective pixels from proximity pixels in the given rectangular range with the pixel to be inspected as its center. CONSTITUTION: A pattern of a traveling printed-matter 4 is input into a signal transmitting section 20 by utilizing the output of a rotary encorder 6 provided with a high-luminance and high-frequency fluorescent light 12 and synchronized with the movement of a three-plate type color line-sensor camera 11 and the printed matter 4, and then output of the pattern is transmitted to a processing section 30 through an optical fiber 8. The input signal is shading corrected in the processing section 30, and the corrected signal is stored as monochromatic data in a reference memory and inspection image memory, and its position is corrected and the print defect inspection is carried out by a defect adjustment section. Also for the image of defect sensing threshold value formed by a learning section, the inspection is carried out by finding a corresponding threshold value of central pixel for respective pixels out of the proximity pixels in the given rectangular range in which the pixel to be inspected is included as its center. Thus the inspection performance of a profile portion of print pattern, can be retained and the stabilized inspection can be carried out.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、走行中の印刷物表面状
態を光学的に監視して、取込んだ検査画像を基準画像と
比較し検査するための閾値画像を作成するための方法及
び装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and apparatus for optically monitoring the surface condition of a printed material during running, and comparing the captured inspection image with a reference image to create a threshold image for inspection. Regarding

【0002】[0002]

【従来の技術】従来、印刷物検査は、種々の方法で人手
によって行われていた。例えば、印刷機や印刷物の種類
によっては、印刷後の印刷物を適宜抜き取り、目視によ
り検査を行っていた。又、一定速度で連続的に走行する
印刷物では、印刷速度に同期したストロボ照明を行い、
走行する印刷中の印刷物を静止画像として判断しようと
する試みが行われていた。
2. Description of the Related Art Conventionally, printed matter inspection has been performed manually by various methods. For example, depending on the printing machine and the type of printed matter, the printed matter after printing has been appropriately extracted and visually inspected. For printed matter that runs continuously at a constant speed, strobe lighting synchronized with the printing speed is used.
Attempts have been made to determine a running printed matter as a still image.

【0003】一方、近年、印刷物の検査をオンラインで
ラインセンサを利用して行うというシステムが開発され
ている。即ち、連続して走行する印刷された紙面を光セ
ンサで走査し、画像データとして取込み、予め取込んで
いる基準データと比較して紙面の不良の有無を検査する
ものである。
On the other hand, in recent years, a system for inspecting a printed matter online by using a line sensor has been developed. That is, the printed paper surface that continuously runs is scanned by an optical sensor, is captured as image data, and is compared with reference data that has been captured in advance to inspect whether the paper surface is defective.

【0004】このとき、閾値画像の作成にあたり、画素
の輝度値参照を縦方向と横方向に独立して行い、それぞ
れ対象画素の閾値を算出するようにしていた。
At this time, in creating the threshold image, the brightness value of the pixel is referred to in the vertical direction and in the horizontal direction independently, and the threshold value of each target pixel is calculated.

【0005】[0005]

【発明が解決しようとする課題】上に述べたように、従
来は縦・横のウィンドウを用いて斜めの成分を考慮して
閾値を算出するものはなかった。このため、取込み画像
の位置ずれ誤差及び画像歪みや輝度値の変化等により、
検査性能が劣り、安定した検査を行うことができないと
いう問題があった。
As described above, conventionally, there has been no method for calculating a threshold value by considering diagonal components by using vertical and horizontal windows. Therefore, due to the positional deviation error of the captured image, image distortion, change in luminance value, etc.,
There is a problem that the inspection performance is poor and stable inspection cannot be performed.

【0006】本発明は、前記従来の問題を解決するべく
なされたもので、印刷絵柄の輪郭部分の検査性能を最大
限保ったまま、安定した検査を可能とする印刷物検査装
置における閾値画像作成方法及び装置を提供することを
目的とする。
The present invention has been made to solve the above-mentioned conventional problems, and a threshold image forming method in a printed matter inspection apparatus that enables stable inspection while maintaining the inspection performance of the contour portion of the printed pattern to the maximum. And to provide a device.

【0007】[0007]

【課題を解決するための手段】本発明は、走行中の印刷
物表面状態を光学的に監視して、取込んだ検査画像を基
準画像と比較し検査する印刷物検査装置における閾値画
像作成方法において、基準画像若しくはそれ以前の基準
となる画像を用いて、検査対象となる画素を中心とする
所定の矩形範囲内の近傍画素より、前記画素毎に、該中
心画素の適応閾値を求めることにより、前記目的を達成
したものである。
SUMMARY OF THE INVENTION The present invention provides a threshold image creating method in a printed matter inspection apparatus for optically monitoring the surface state of a printed matter during traveling and comparing the captured inspection image with a reference image to inspect. Using a reference image or a reference image before that, by determining an adaptive threshold value of the central pixel for each pixel from neighboring pixels within a predetermined rectangular area centered on the pixel to be inspected, It has achieved its purpose.

【0008】本発明は又、前記矩形範囲の大きさを、前
記取込んだ検査画像における上下左右の位置ずれ、及
び、伸縮の大きさを見込んだ値より決定されるようにし
て、同様に前記目的を達成したものである。
According to the present invention, the size of the rectangular range is determined by a value that allows for the vertical and horizontal positional displacement in the captured inspection image and the size of expansion and contraction. It has achieved its purpose.

【0009】本発明は又、前記閾値を、前記矩形範囲内
に含まれる画素の輝度値の最大値から最小値を引いた値
を用いて算出されるようにしたことにより、同様に前記
目的を達成したものである。
According to the present invention, the threshold value is calculated by using a value obtained by subtracting the minimum value from the maximum value of the brightness values of the pixels included in the rectangular range. It has been achieved.

【0010】本発明は又、前記閾値を、前記矩形範囲内
に含まれる各画素の輝度値から該矩形範囲の中心画素の
輝度値を引いた値の絶対値のうち、最大のものとして算
出されるようにしたことにより、同様に前記目的を達成
したものである。
According to the present invention, the threshold value is calculated as the maximum absolute value of the values obtained by subtracting the brightness value of the central pixel of the rectangular range from the brightness value of each pixel included in the rectangular range. By doing so, the above-mentioned object is achieved in the same manner.

【0011】本発明は又、前記閾値に対して、更に、所
定の定数αを乗算すると共に、所定の定数βを加算した
値を最終的な閾値として、閾値画像を作成することによ
り、同様に前記目的を達成したものである。
According to the present invention, the threshold value is further multiplied by a predetermined constant α, and a value obtained by adding the predetermined constant β is used as a final threshold value to create a threshold image. The above object is achieved.

【0012】本発明は更に、走行中の印刷物表面状態を
光学的に監視して、取込んだ検査画像を基準画像と比較
し検査する印刷物検査装置における閾値画像作成装置に
おいて、基準画像若しくはそれ以前の基準となる画像を
用いて、検査対象となる画素を中心とする所定の矩形範
囲内の近傍画素より、前記画素毎に、該中心画素の適応
閾値を求める閾値画像生成手段を備えたことにより、同
様に前記目的を達成したものである。
The present invention further provides a threshold image creating device in a printed matter inspection device for optically inspecting a surface state of a printed matter during running and comparing the taken inspection image with a reference image to obtain a reference image or before. By using the image serving as the reference, the threshold image generation unit that obtains the adaptive threshold value of the central pixel for each pixel from the neighboring pixels within a predetermined rectangular range centered on the pixel to be inspected Similarly, the above-mentioned object is achieved.

【0013】[0013]

【作用】本発明によれば、印刷物検査装置において、走
行中の印刷物表面状態を光学的に監視して、取込んだ検
査画像を基準画像若しくはそれ以前の基準となる画像と
比較して、検査する際に、縦・横のウィンドウを用い
て、閾値画像を作成するようにしている。
According to the present invention, in the printed matter inspection device, the surface state of the printed matter during traveling is optically monitored, and the captured inspection image is compared with the reference image or the reference image before the inspection, and the inspection is performed. In doing so, a threshold image is created using vertical and horizontal windows.

【0014】即ち、基準画像若しくはそれ以前の基準と
なる画像を用いて、検査対象となる画素を中心とする所
定の矩形範囲内の近傍画素より、前記画素毎に該中心画
素の適応閾値を求めている。原反の走行により、縦方向
は比較的歪みが大きくなるため、例えば横より縦方向を
大きく取った矩形範囲を用いていることにより、印刷絵
柄の輪郭部分の検査性能を最大限保ったまま、安定した
検査を行うことができる。
That is, using the reference image or the reference image before that, the adaptive threshold value of the central pixel is calculated for each pixel from the neighboring pixels within a predetermined rectangular area centered on the pixel to be inspected. ing. Since the vertical direction causes a relatively large distortion due to the running of the original fabric, for example, by using a rectangular range in which the vertical direction is larger than the horizontal direction, while maintaining the maximum inspection performance of the contour portion of the printed pattern, A stable inspection can be performed.

【0015】又、前記矩形範囲の大きさを、取込んだ検
査画像における上下左右の位置ずれ、及び伸縮の大きさ
を見込んだ値より決定するようにした場合には、検査画
像の位置ずれや歪みにもきちんと対応することができ、
正確な検査が可能となる。
Further, when the size of the rectangular range is determined based on the vertical and horizontal positional deviation in the captured inspection image and the value considering the size of expansion and contraction, the positional deviation of the inspection image and It can handle distortion properly,
Accurate inspection is possible.

【0016】又、前記閾値を、前記矩形範囲内に含まれ
る画素の輝度値の最大値から最小値を引いた値を用いて
算出するようにした場合には、基準画像と、その基準画
像を作成するためのいわゆる学習画像が異なるとき、基
準画像を次々と更新して、閾値画像を得るのに用いると
良い効果が得られる。
When the threshold value is calculated using a value obtained by subtracting the minimum value from the maximum value of the brightness values of the pixels included in the rectangular range, the reference image and the reference image are calculated. When the so-called learning images for creating are different, it is possible to obtain a good effect by updating the reference image one after another and using it to obtain the threshold image.

【0017】又、前記閾値を、前記矩形範囲内に含まれ
る各画素の輝度値から該矩形範囲の中心画素の輝度値を
引いた値の絶対値のうち最大のものとして算出した場合
には、基準画像と学習画像が等しいとき、エッジが前記
矩形範囲内の各画素の位置にずれる可能性がある場合に
効果がある。
When the threshold value is calculated as the maximum absolute value of the values obtained by subtracting the brightness value of the central pixel of the rectangular range from the brightness value of each pixel included in the rectangular range, This is effective when the reference image and the learning image are equal and the edge may be displaced to the position of each pixel in the rectangular range.

【0018】又、前記閾値に対して更に所定の定数αを
乗算すると共に、所定の定数βを加算した値を最終的な
閾値として閾値画像を作成するようにした場合には、全
体的な光量変動やノイズレベルを考慮した閾値画像を得
ることができる。
Further, when the threshold value is further multiplied by a predetermined constant α and a threshold image is created with the value obtained by adding the predetermined constant β as the final threshold value, It is possible to obtain a threshold image in consideration of fluctuation and noise level.

【0019】[0019]

【実施例】以下図面を参照して本発明の実施例を詳細に
説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0020】本実施例による印刷物検査装置の全体構成
を図1に示す。
The overall structure of the printed matter inspection apparatus according to this embodiment is shown in FIG.

【0021】図1に示すように、本実施例の印刷物検査
装置は、ガイドローラ2によりガイドされつつ走行する
印刷物4に印刷された絵柄を画像データとして入力する
入力部10と、入力された画像データをA/D変換し、
光ファイバ8を用いて処理部30へ伝送する信号伝送部
20と、印刷欠陥の判定を行う処理部30と、印刷不良
画像を画面に表示し、且つ本装置の操作を行う操作部4
0とから構成される。
As shown in FIG. 1, the printed matter inspection apparatus of the present embodiment has an input unit 10 for inputting a pattern printed on a printed matter 4 which is guided by guide rollers 2 and printed as image data, and an input image. A / D conversion of data,
A signal transmission unit 20 that transmits to the processing unit 30 using the optical fiber 8, a processing unit 30 that determines a printing defect, an operation unit 4 that displays a defective printing image on the screen, and operates the apparatus.
It consists of 0 and.

【0022】入力部10は、画像入力用の3板式カラー
ラインセンサカメラ(以後単にカメラという)11と、
光源装置としての高輝度高周波蛍光灯12とからなる。
The input unit 10 includes a three-plate color line sensor camera (hereinafter simply referred to as camera) 11 for image input,
A high-intensity high-frequency fluorescent lamp 12 as a light source device.

【0023】又、カメラ11の同期入力タイミングは信
号伝送部20によって作成される。即ち、信号伝送部2
0は、印刷物4の移動に同期したロータリエンコーダ6
からの出力を変換して、カメラ11へ出力する。
The synchronization input timing of the camera 11 is created by the signal transmission section 20. That is, the signal transmission unit 2
0 is a rotary encoder 6 synchronized with the movement of the printed matter 4.
Is converted and output to the camera 11.

【0024】なお、光源に使用される高輝度高周波蛍光
灯12の周波数は、例えば30KHzであり、カメラ1
1の入力画像にとってはほとんど連続点灯と見做すこと
ができる。
The high-intensity high-frequency fluorescent lamp 12 used as the light source has a frequency of, for example, 30 KHz.
It can be considered that the input image of 1 is almost continuous lighting.

【0025】信号伝送部20の構成を図2に示す。The structure of the signal transmission unit 20 is shown in FIG.

【0026】カメラ11より信号伝送部20へ向けて出
力されたアナログ信号(画像データ)に対するノイズの
影響を極力少なくするためには、R、G、B各々のアナ
ログ信号の伝送経路をなるべく短くすることが望ましい
ので、信号伝送部20はカメラ11の付近に設置され
る。
In order to minimize the influence of noise on the analog signal (image data) output from the camera 11 to the signal transmission section 20, the transmission paths of the R, G and B analog signals are made as short as possible. It is desirable that the signal transmission unit 20 is installed near the camera 11.

【0027】信号伝送部20へ入力されたアナログ信号
は、速度補正部21により原反(印刷物)速度変動によ
る画像の影響を取り除かれ、A/D変換部22によりデ
ジタル信号に変換された後、電気−光変換部23におい
て光信号に変換され、耐ノイズ性の高い光ファイバ8を
通じて処理部30へ伝送される。
The analog signal input to the signal transmission unit 20 is removed by the speed correction unit 21 from the influence of the image due to the fluctuation of the original (printed material) speed, and is converted into a digital signal by the A / D conversion unit 22. It is converted into an optical signal in the electro-optical conversion unit 23 and transmitted to the processing unit 30 through the optical fiber 8 having high noise resistance.

【0028】又、前に述べたように同期入力のタイミン
グは、印刷機に設置されたロータリエンコーダ6より得
られる。ロータリエンコーダ6の信号は、絵柄の頭出し
のために、シフター24及びタイミングコントローラ2
5によりカメラ用に信号をコントロールし、カメラ11
へ出力する。
Further, as described above, the timing of the synchronization input is obtained from the rotary encoder 6 installed in the printing press. The signal from the rotary encoder 6 is used to shift the position of the shifter 24 and the timing controller 2 to find the beginning of the pattern.
5 controls the signal for the camera, and the camera 11
Output to.

【0029】処理部30の構成を図3に示す。The structure of the processing unit 30 is shown in FIG.

【0030】信号伝送部20より受けた画像データの信
号を、まず前処理部31で、後の処理に必要な信号形態
に変換する。
The image data signal received from the signal transmission unit 20 is first converted by the preprocessing unit 31 into a signal form required for the subsequent processing.

【0031】前処理部31は、光ファイバ8より入力さ
れた光信号を電気信号に変換し、カメラ11の各画像毎
のばらつき、光源の照明むらを補正するシェーディング
補正を行い、カラーデータRGBにそれぞれ係数を乗じ
て加算し、モノクロデータに変換する。
The pre-processing unit 31 converts the optical signal input from the optical fiber 8 into an electric signal, performs shading correction to correct the variation of each image of the camera 11 and uneven illumination of the light source, and converts it into color data RGB. Each is multiplied by a coefficient, added, and converted into monochrome data.

【0032】前処理部31でシェーディング補正された
カラーデータは後の表示のためにフルカラーメモリ32
に蓄えられる。
The color data shading-corrected by the preprocessing unit 31 is stored in the full-color memory 32 for later display.
Is stored in

【0033】又、前処理部31で変換されたモノクロデ
ータ(輝度データ)は基準画メモリ34もしくは検査画
メモリ33に蓄えられ、これを用いて印刷不良の検査が
行われる。
Further, the monochrome data (luminance data) converted by the preprocessing unit 31 is stored in the reference image memory 34 or the inspection image memory 33, and the defective printing is inspected by using this.

【0034】学習部36では、欠陥検出用のための閾値
画像の作成と、位置補正のためのデータの選択が行われ
る。即ち、学習部36は、閾値画像作成装置の機能を備
えている。又、位置補正部35では、学習部36よりの
データに基づいて、後で述べるような方法で基準画像検
査画の位置ずれ補正を行い、最後に欠陥判定部37にお
いて基準画と検査画を比較して欠陥部分を判定する。
The learning section 36 creates a threshold image for defect detection and selects data for position correction. That is, the learning unit 36 has the function of the threshold image creating device. Further, the position correction unit 35 corrects the position deviation of the reference image inspection image by the method described later based on the data from the learning unit 36, and finally, the defect determination unit 37 compares the reference image with the inspection image. Then, the defective portion is determined.

【0035】操作部40は本装置の操作を行い、又欠陥
発生時には、欠陥を含む検査画をモニタ41に表示する
と共に、ブザーで印刷欠陥のあったことを警告したり、
ディテクタにより欠陥のある印刷物を除去したり、除去
が不可能の場合には欠陥のあった部分にラベリングを施
し、欠陥個所が分かるようにする等の処理を行う。
The operation unit 40 operates this apparatus, and when a defect occurs, displays an inspection image including the defect on the monitor 41 and warns that there is a printing defect with a buzzer.
A defective printed matter is removed by a detector, and if the defective printed matter cannot be removed, labeling is performed on the defective portion so that the defective portion can be recognized.

【0036】以下、閾値画像作成処理について詳しく説
明する。
The threshold image creating process will be described in detail below.

【0037】図4〜図8に、検査画像と基準画像を比較
し異なった部分を欠陥候補画像として生成する欠陥判定
処理の過程を示す。
FIG. 4 to FIG. 8 show a process of the defect determination processing for comparing the inspection image and the reference image and generating different portions as defect candidate images.

【0038】図4は、検査画像100を表わしている。
検査画像100は印刷絵柄110と欠陥部位120を含
んでおり、欠陥部位120を通るある線130上の画素
の輝度値の並びは図4下方のグラフ140のように表わ
せる。
FIG. 4 shows the inspection image 100.
The inspection image 100 includes a print pattern 110 and a defective portion 120, and the arrangement of the luminance values of pixels on a certain line 130 passing through the defective portion 120 can be represented as a graph 140 in the lower part of FIG.

【0039】図5は、基準画像200を表わしている。
基準画像200は、印刷絵柄210のみを含んでおり、
検査画像100と同じ位置の線220上の画素の輝度値
の並びは、図5下方のグラフ230のようになる。検査
画像100が基準画像200に対して位置ずれを起こし
ている場合には、位置ずれ補正を行った後に検査画像1
00と基準画像200の各画素毎に輝度値の差の絶対値
を求め、図6に示すような差分画像300を作成する。
FIG. 5 shows a reference image 200.
The reference image 200 includes only the print pattern 210,
The arrangement of the brightness values of the pixels on the line 220 at the same position as the inspection image 100 is as shown by the graph 230 in the lower part of FIG. If the inspection image 100 is displaced with respect to the reference image 200, the inspection image 1 is corrected after the displacement is corrected.
00 and the reference image 200, the absolute value of the difference between the brightness values is obtained for each pixel, and a difference image 300 as shown in FIG. 6 is created.

【0040】図6に示すように、差分画像300中には
印刷絵柄110、210の輪郭部分310が位置ずれ誤
差として残る。又、欠陥部位120は基準画像200中
には含まれていないため、差分画像300中に欠陥部位
320としてそのまま残される。この差分画像300に
おいて検査画像100中の線130と同じ位置の線33
0上の画素の輝度値の並びは、図6下方のグラフ340
で表わされる。
As shown in FIG. 6, the contour portion 310 of the print patterns 110 and 210 remains in the difference image 300 as a positional deviation error. Further, since the defect part 120 is not included in the reference image 200, it is left as it is as the defect part 320 in the difference image 300. In the difference image 300, the line 33 at the same position as the line 130 in the inspection image 100
The arrangement of the luminance values of the pixels on 0 is the graph 340 in the lower part of FIG.
Is represented by

【0041】ここで、印刷絵柄110、210の輪郭部
分310は、欠陥ではないので、この部分を誤って欠陥
と判定しないようにするために、図7に示す閾値画像4
00を用意する。この閾値画像400は基準画像20
0、あるいはそれ以前に入力された、基準となる画像か
ら作成される。
Since the contour portion 310 of the printed patterns 110 and 210 is not a defect, the threshold image 4 shown in FIG.
00 is prepared. This threshold image 400 is the reference image 20.
It is created from a reference image input at 0 or before.

【0042】閾値画像400における各画素の値は印刷
絵柄の輪郭部分に発生する位置ずれ誤差及び画像中に含
まれるノイズ成分を越えるものでなくてはならない。
又、検査画像100は印刷原反の伸縮や画像取込みタイ
ミングのずれにより、基準画像200に比べて歪みを含
んでいるので、位置ずれ補正を行ったとしても絵柄の輪
郭の位置が基準画像のそれに比べてずれてしまう。従っ
て、閾値画像400中の絵柄輪郭部分410は差分画像
300中の輪郭部分310よりも太くする必要がある。
The value of each pixel in the threshold image 400 must exceed the positional deviation error occurring in the contour portion of the print pattern and the noise component contained in the image.
Further, the inspection image 100 includes distortion as compared with the reference image 200 due to expansion and contraction of the printing original fabric and a shift in the image capture timing. Therefore, even if the position shift correction is performed, the position of the outline of the pattern is equal to that of the reference image. It will be shifted compared to. Therefore, the picture outline portion 410 in the threshold image 400 needs to be thicker than the outline portion 310 in the difference image 300.

【0043】この点閾値画像400において、検査画像
100中の線130と同じ位置の線420上の画素の輝
度値の並びは図7下方のグラフ430で表わされる。
In the point threshold image 400, the arrangement of the luminance values of the pixels on the line 420 at the same position as the line 130 in the inspection image 100 is represented by the graph 430 in the lower part of FIG.

【0044】差分画像300の各画素値が閾値画像40
0の同じ位置に存在する各画素の値よりも大きい場合に
は、そのまま差分画像300の画素値を残し、そうでな
い場合には、画素の値を0とする。
Each pixel value of the difference image 300 is the threshold image 40.
If it is larger than the value of each pixel existing at the same position of 0, the pixel value of the difference image 300 is left as it is, otherwise, the value of the pixel is set to 0.

【0045】このようにして作成されたのが、図8に示
す欠陥候補画像500である。欠陥候補画像500に
は、欠陥部位510が残される。この欠陥候補画像50
0において、検査画像100中の線130と同じ位置の
線520上の画素の輝度値の並びはグラフ530で表わ
される。
The defect candidate image 500 shown in FIG. 8 is created in this way. The defect part 510 is left in the defect candidate image 500. This defect candidate image 50
At 0, the arrangement of the luminance values of the pixels on the line 520 at the same position as the line 130 in the inspection image 100 is represented by the graph 530.

【0046】欠陥候補画像500の作成後、後段の処理
において欠陥部位510の大きさや輝度値が計測され、
最終的な欠陥判定が行われる。
After the defect candidate image 500 is created, the size and the brightness value of the defect portion 510 are measured in the subsequent processing,
A final defect determination is made.

【0047】以下閾値画像400の作成方法を説明す
る。
A method of creating the threshold image 400 will be described below.

【0048】図9は、基準画像あるいはそれ以前に入力
された基準となる画像の各画素hに対して割り当てられ
た、画素hを中心とした3×5のウィンドウを表わして
いる。
FIG. 9 shows a 3 × 5 window centered on the pixel h, which is assigned to each pixel h of the reference image or the reference image input before that.

【0049】ここで、中心画素hとその近傍の14画素
a〜oの輝度値から中心画素の閾値を次の(1)式によ
り算出する。
Here, the threshold value of the central pixel h is calculated from the luminance values of the central pixel h and the 14 pixels a to o in the vicinity thereof by the following equation (1).

【0050】 tij=Max{a,b,c,d,e,f,g,h,i,j,k,l, m,n,o}−Min{a,b,c,d,e,f,g,h, i,j,k,l,m,n,o} …(1)Tij = Max {a, b, c, d, e, f, g, h, i, j, k, l, m, n, o} -Min {a, b, c, d, e, f, g, h, i, j, k, l, m, n, o} (1)

【0051】但し、上記関数Max{ }は、列挙した変
数のうちの最大値をとり、又関数Min{ }は、列挙し
た変数のうちの最小値をとることを示している。
However, the function Max {} indicates that the maximum value of the listed variables is taken, and the function Min {} indicates that the minimum value of the listed variables is taken.

【0052】又、(1)式の代わりに次の(2)式を用
いてtijを算出してもよい。
Further, tij may be calculated using the following equation (2) instead of equation (1).

【0053】 tij=Max{|a−h|,|b−h|,|c−h|,|d−h|, |e−h|,|f−h|,|g−h|,|i−h|,|j−h|, |k−h|,|m−h|,|n−h|,|o−h|} …(2)Tij = Max {| a-h |, | b-h |, | c-h |, | d-h |, | e-h |, | f-h |, | g-h |, | i−h |, | j−h |, | k−h |, | m−h |, | n−h |, | o−h |} (2)

【0054】それで得られた閾値tijに対し、所定の定
数α、βを用いて次の(3)式により最終的な閾値Tij
を求める。
With respect to the threshold value Tij thus obtained, the final threshold value Tij is calculated by the following equation (3) using predetermined constants α and β.
Ask for.

【0055】 Tij=α・tij+β …(3)Tij = α · tij + β (3)

【0056】ここで、定数αは全体的な明度変化が出な
いようにするためのもので、紙継ぎ後一時的に大きな値
とされる。又、定数βは、全体のノイズレベルをオフセ
ットを入れて隠すためのもので、最低閾値あるいはチュ
ーニング閾値等と呼ばれる。
Here, the constant α is used to prevent the overall brightness from changing, and is set to a temporarily large value after paper splicing. The constant β is used to hide the entire noise level with an offset, and is called the minimum threshold or tuning threshold.

【0057】このように全体的な光量変動やノイズレベ
ルを考慮して各画素に対する閾値が得られる。
In this way, the threshold value for each pixel can be obtained in consideration of the overall light amount fluctuation and noise level.

【0058】又、図10〜図12に具体例を示す。Specific examples are shown in FIGS.

【0059】図10に示す基準画像600中の全画素に
対して上に述べた方法による演算を行う。例えば、図1
0に示す画素610を中心としたウィンドウが図11の
ようであったとすると、このウィンドウ中での輝度値の
最大値は172であり、最小値は21である。ここで、
数値が大きい程、明度が大である。
All pixels in the reference image 600 shown in FIG. 10 are calculated by the above-described method. For example, FIG.
If the window centering on the pixel 610 shown in 0 is as shown in FIG. 11, the maximum value of the brightness value in this window is 172 and the minimum value is 21. here,
The higher the value, the higher the brightness.

【0060】これを(1)式に当て嵌めると、tij=1
72−21=151となる。又、(3)式における定数
をα=1.2、β=10とすると、図12に示す閾値画
像における画素710の最終的な閾値TijはTij=1.
2×151+10=191となる。
Applying this to the equation (1), tij = 1
72-21 = 151. When the constants in the equation (3) are α = 1.2 and β = 10, the final threshold Tij of the pixel 710 in the threshold image shown in FIG. 12 is Tij = 1.
It becomes 2 × 151 + 10 = 191.

【0061】なお、本実施例においては、近傍画素の矩
形範囲を横方向±1、縦方向±2としたが、これは縦方
向の方が原反の伸縮や画像取込みタイミングのずれによ
って画像の歪みが大きいためである。本実施例の装置で
は、7×7の範囲から自由にこの矩形範囲を選択できる
ように設定されている。
In the present embodiment, the rectangular range of the neighboring pixels is ± 1 in the horizontal direction and ± 2 in the vertical direction. However, in the vertical direction, the image is expanded or contracted in the vertical direction or the image acquisition timing is shifted. This is because the distortion is large. The apparatus of this embodiment is set so that this rectangular range can be freely selected from the 7 × 7 range.

【0062】印刷機の特性や原反の種類によってこの矩
形範囲の大きさを変えることで検出性能を最大限維持し
たままで検査の安定化を図ることができる。
By changing the size of this rectangular range depending on the characteristics of the printing machine and the type of the original, it is possible to stabilize the inspection while maintaining the maximum detection performance.

【0063】[0063]

【発明の効果】以上説明したとおり、本発明によれば、
位置ずれ誤差及び画像歪みの大きさに応じた矩形範囲を
設定し、この矩形範囲の中心画素の輝度値が変化する可
能性のある最大値を閾値するように算出されるので、印
刷絵柄の輪郭部分の検査性能を最大限保ったまま、安定
した検査が可能となる。
As described above, according to the present invention,
A rectangular range is set according to the amount of misalignment error and image distortion, and the maximum value that can change the brightness value of the central pixel of this rectangular range is calculated as a threshold value. Stable inspection is possible while maintaining the maximum inspection performance of the part.

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

【図1】本実施例による印刷物検査装置の概略を示す全
体構成図
FIG. 1 is an overall configuration diagram showing an outline of a printed matter inspection apparatus according to an embodiment.

【図2】信号伝送部の構成を示すブロック線図FIG. 2 is a block diagram showing a configuration of a signal transmission unit.

【図3】処理部の構成を示すブロック線図FIG. 3 is a block diagram showing a configuration of a processing unit.

【図4】検査画像を示す説明図FIG. 4 is an explanatory diagram showing an inspection image.

【図5】基準画像を示す説明図FIG. 5 is an explanatory diagram showing a reference image.

【図6】差分画像を示す説明図FIG. 6 is an explanatory diagram showing a difference image.

【図7】閾値画像を示す説明図FIG. 7 is an explanatory diagram showing a threshold image.

【図8】欠陥候補画像を示す説明図FIG. 8 is an explanatory view showing a defect candidate image.

【図9】ウィンドウを示す説明図FIG. 9 is an explanatory diagram showing a window.

【図10】基準画像から閾値画像を作成する様子を示す
説明図
FIG. 10 is an explanatory diagram showing how a threshold image is created from a reference image.

【図11】ウィンドウの具体例を示す説明図FIG. 11 is an explanatory diagram showing a specific example of a window.

【図12】閾値画像の具体例を示す説明図FIG. 12 is an explanatory diagram showing a specific example of a threshold image.

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

10…入力部 20…信号伝送部 30…処理部 36…学習部(閾値画像作成装置) 40…操作部 100…検査画像 200,600…基準画像 400,700…閾値画像 DESCRIPTION OF SYMBOLS 10 ... Input part 20 ... Signal transmission part 30 ... Processing part 36 ... Learning part (threshold image creation device) 40 ... Operation part 100 ... Inspection image 200,600 ... Reference image 400,700 ... Threshold image

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】走行中の印刷物表面状態を光学的に監視し
て、取込んだ検査画像を基準画像と比較し検査する印刷
物検査装置における閾値画像作成方法において、 基準画像若しくはそれ以前の基準となる画像を用いて、
検査対象となる画素を中心とする所定の矩形範囲内の近
傍画素より、前記画素毎に、該中心画素の適応閾値を求
めることを特徴とする印刷物検査装置における閾値画像
作成方法。
1. A threshold image creating method in a printed matter inspection device for optically inspecting a surface state of a printed matter during traveling and comparing the taken inspection image with a reference image, wherein a reference image or a reference before that is used. Using the image
A threshold image creating method in a printed matter inspection apparatus, wherein an adaptive threshold value of the central pixel is obtained for each of the pixels from neighboring pixels within a predetermined rectangular range centered on the pixel to be inspected.
【請求項2】請求項1において、前記矩形範囲の大きさ
が、前記取込んだ検査画像における上下左右の位置ず
れ、及び、伸縮の大きさを見込んだ値より決定されるよ
うにしたことを特徴とする印刷物検査装置における閾値
画像作成方法。
2. The size of the rectangular range according to claim 1, wherein the size of the rectangular range is determined by a value that allows for the vertical and horizontal positional deviation in the captured inspection image and the size of expansion and contraction. A method for creating a threshold image in a characteristic printed matter inspection apparatus.
【請求項3】請求項1又は請求項2において、前記閾値
が、前記矩形範囲内に含まれる画素の輝度値の最大値か
ら最小値を引いた値を用いて算出されるようにしたこと
を特徴とする印刷物検査装置における閾値画像作成方
法。
3. The method according to claim 1 or 2, wherein the threshold value is calculated by using a value obtained by subtracting a minimum value from a maximum value of luminance values of pixels included in the rectangular range. A method for creating a threshold image in a characteristic printed matter inspection apparatus.
【請求項4】請求項1又は請求項2において、前記閾値
が、前記矩形範囲内に含まれる各画素の輝度値から該矩
形範囲の中心画素の輝度値を引いた値の絶対値のうち、
最大のものとして算出されるようにしたことを特徴とす
る印刷物検査装置における閾値画像作成方法。
4. The absolute value of the threshold value according to claim 1, wherein the threshold value is a value obtained by subtracting a brightness value of a central pixel of the rectangular range from a brightness value of each pixel included in the rectangular range.
A threshold image creating method in a printed matter inspection apparatus, which is calculated as the maximum value.
【請求項5】請求項3又は請求項4において、前記閾値
に対して、更に、所定の定数αを乗算すると共に、所定
の定数βを加算した値を最終的な閾値として、閾値画像
を作成することを特徴とする印刷物検査装置における閾
値画像作成方法。
5. The threshold image according to claim 3 or 4, wherein the threshold value is further multiplied by a predetermined constant α, and a value obtained by adding a predetermined constant β is used as a final threshold value to create a threshold image. A method for creating a threshold image in a printed matter inspection apparatus, comprising:
【請求項6】走行中の印刷物表面状態を光学的に監視し
て、取込んだ検査画像を基準画像と比較し検査する印刷
物検査装置における閾値画像作成装置において、 基準画像若しくはそれ以前の基準となる画像を用いて、
検査対象となる画素を中心とする所定の矩形範囲内の近
傍画素より、前記画素毎に、該中心画素の適応閾値を求
める閾値画像生成手段を備えたことを特徴とする印刷物
検査装置における閾値画像作成装置。
6. A threshold image creating apparatus in a printed matter inspection apparatus for optically inspecting a surface state of a printed matter during running, comparing the taken inspection image with a reference image, and comparing the reference image with a reference image before the reference image. Using the image
A threshold image in a printed matter inspection apparatus, which is provided with a threshold image generating unit that obtains an adaptive threshold value of the central pixel for each pixel from neighboring pixels within a predetermined rectangular range centered on the pixel to be inspected. Creation device.
JP7137730A 1995-06-05 1995-06-05 Method and device for forming threshold value image in printed matter-inspection device Pending JPH08323963A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7137730A JPH08323963A (en) 1995-06-05 1995-06-05 Method and device for forming threshold value image in printed matter-inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7137730A JPH08323963A (en) 1995-06-05 1995-06-05 Method and device for forming threshold value image in printed matter-inspection device

Publications (1)

Publication Number Publication Date
JPH08323963A true JPH08323963A (en) 1996-12-10

Family

ID=15205499

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7137730A Pending JPH08323963A (en) 1995-06-05 1995-06-05 Method and device for forming threshold value image in printed matter-inspection device

Country Status (1)

Country Link
JP (1) JPH08323963A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007309703A (en) * 2006-05-16 2007-11-29 Mega Trade:Kk Inspection method of pixel
JP2017126294A (en) * 2016-01-15 2017-07-20 株式会社リコー Inspection device, inspection system, filter processing method, and program
JP2020118474A (en) * 2019-01-21 2020-08-06 コニカミノルタ株式会社 Image inspection device, program, image processing device and image forming device
JP2020153759A (en) * 2019-03-19 2020-09-24 株式会社リコー Evaluation device, genuine feeling evaluation method, and program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007309703A (en) * 2006-05-16 2007-11-29 Mega Trade:Kk Inspection method of pixel
JP2017126294A (en) * 2016-01-15 2017-07-20 株式会社リコー Inspection device, inspection system, filter processing method, and program
JP2020118474A (en) * 2019-01-21 2020-08-06 コニカミノルタ株式会社 Image inspection device, program, image processing device and image forming device
JP2020153759A (en) * 2019-03-19 2020-09-24 株式会社リコー Evaluation device, genuine feeling evaluation method, and program

Similar Documents

Publication Publication Date Title
CN110838149B (en) Camera light source automatic configuration method and system
JPS586943B2 (en) Device for displaying overcorrection in electronic color correction
JPH0746436A (en) Film scanner
JP2009229197A (en) Linear defect detecting method and device
JP2010078485A (en) Method for inspecting printed matter
JPH08323963A (en) Method and device for forming threshold value image in printed matter-inspection device
JP3204876B2 (en) Print inspection equipment
JP3433331B2 (en) Image inspection method and apparatus
JPH0629707B2 (en) Optical cutting line measuring device
JP2516606B2 (en) Print quality inspection device
JPH11257937A (en) Defect inspecting method
JP4549838B2 (en) Glossiness measuring method and apparatus
JP2002303588A (en) Pattern defect inspection device
JPH0617778B2 (en) Pattern defect detection method and apparatus
JP2010085388A (en) Method and apparatus for inspecting printed matter
JP2010210572A (en) Method and device for inspecting printed matter
JP3863931B2 (en) Learning image creation method in printed matter inspection apparatus
JPH06213720A (en) Uneven color inspecting equipment
JPH08281920A (en) Image display method of printed matter inspection apparatus
JPH06236162A (en) Test method for defect of color liquid crystal panel and device for test
JPH06288934A (en) Method for detecting edge defect of hot-rolled sheet steel
JPH06246906A (en) Inspecting device for printed matter
EP2355534B1 (en) A method for automated video scaling and alignment testing
JPH0976470A (en) Printed matter inspecting device
JP3400859B2 (en) Defect pattern detection method and device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040615

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040622

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040818

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050301

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050628