JPH07121721A - Printed character inspecting method - Google Patents

Printed character inspecting method

Info

Publication number
JPH07121721A
JPH07121721A JP5286037A JP28603793A JPH07121721A JP H07121721 A JPH07121721 A JP H07121721A JP 5286037 A JP5286037 A JP 5286037A JP 28603793 A JP28603793 A JP 28603793A JP H07121721 A JPH07121721 A JP H07121721A
Authority
JP
Japan
Prior art keywords
printed
islands
image
characters
image processing
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.)
Granted
Application number
JP5286037A
Other languages
Japanese (ja)
Other versions
JP3001079B2 (en
Inventor
Minoru Maeda
稔 前田
Akitaka Fujiyama
晶敬 藤山
Zenzo Yamaguchi
善三 山口
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.)
Nippon Steel Corp
Original Assignee
Nippon Steel Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Steel Corp filed Critical Nippon Steel Corp
Priority to JP5286037A priority Critical patent/JP3001079B2/en
Publication of JPH07121721A publication Critical patent/JPH07121721A/en
Application granted granted Critical
Publication of JP3001079B2 publication Critical patent/JP3001079B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To provide the printed character inspecting method for properly inspecting the quality of a printed character even when the position of the printed character is deviated by the rotation of a target. CONSTITUTION:This method is provided with an image processing process for calculating the number of islands and an area value at an image processing part 16 based on binarized image information outputted by an image information output part 14 and for calculating the central coordinate position of a circumscribed rectangle including all the islands and an image deciding process for deciding the quality of the printed character at an image deciding part 22 by comparing the number of islands, area value and central coordinate position calculated by the image processing part 16 with the correspondent data of a standard product stored in a storage part 24.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、対象物を撮像して得ら
れた画像情報に基づき、その対象物に印刷された文字の
品質を検査する印刷文字検査方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printed character inspection method for inspecting the quality of characters printed on an object based on image information obtained by imaging the object.

【0002】[0002]

【従来の技術】印刷文字検査方法は、たとえば工場にお
いてペットボトルのキャップに印刷された商品名等の文
字の品質を検査する場合等に使用される。従来の印刷文
字検査方法では、搬送される対象物が撮像位置に到達し
たことをセンサで検知し、センサからの検知信号に基づ
きストロボを発光させ、CCDカメラで対象物を撮像す
る。そして、CCDカメラから出力された画像信号を画
像処理装置で処理した後、予め設定した適正な画像と比
較することにより、商品名等の文字が正しく印刷されて
いるか否かを判定している。
2. Description of the Related Art A printed character inspection method is used, for example, when inspecting the quality of characters such as a product name printed on a cap of a PET bottle in a factory. In a conventional printed character inspection method, a sensor detects that a conveyed object has reached an imaging position, a strobe is caused to emit light based on a detection signal from the sensor, and an image of the object is captured by a CCD camera. Then, after the image signal output from the CCD camera is processed by the image processing device, it is determined whether or not the characters such as the product name are correctly printed by comparing the image signal with an appropriate preset image.

【0003】[0003]

【発明が解決しようとする課題】ところで、ペットボト
ルのキャップ等の円筒状の対象物を搬送する場合には、
搬送中に対象物が搬送台上で回転してしまい、この状態
で対象物が撮像されることがある。かかる場合、従来の
印刷文字検査方法では、各印刷文字が正常であっても、
印刷文字の位置が予め設定した適正な画像に対してずれ
ているということだけで不良と判定し、したがって対象
物に印刷された文字の品質が正常であるか否かを適正に
検査することができないという問題があった。
By the way, when a cylindrical object such as a cap of a PET bottle is conveyed,
The object may rotate on the carrier during transportation, and the object may be imaged in this state. In such a case, in the conventional print character inspection method, even if each print character is normal,
It can be judged as defective simply because the position of the printed character is deviated from the proper image set in advance, and therefore it is possible to properly inspect whether the quality of the character printed on the object is normal or not. There was a problem that I could not.

【0004】本発明は上記事情に基づいてなされたもの
であり、対象物が回転して印刷文字の位置がずれた場合
でも印刷文字の品質を適正に検査することができる印刷
文字検査方法を提供することを目的とするものである。
The present invention has been made in view of the above circumstances, and provides a printed character inspection method capable of properly inspecting the quality of printed characters even when the object is rotated and the position of the printed characters is displaced. The purpose is to do.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
に本発明の印刷文字検査方法は、文字が印刷された対象
物についての二値化された画像情報を出力する画像情報
出力工程と、前記二値化された画像情報に基づいて、連
結した領域についての数及び面積を算出するとともに、
前記連結した領域の全てを包含する外接四角形の中心座
標位置を算出する画像処理工程と、前記画像処理工程で
算出された連結した領域についての数及び面積と、前記
連結した領域の全てを包含する外接四角形の中心座標位
置とを、文字が適正に印刷された標準品についての対応
するデータと比較することにより印刷文字の品質の良否
を判定する画像判定工程とを具備することを特徴とする
ものである。
In order to achieve the above object, a printed character inspection method of the present invention comprises an image information output step of outputting binarized image information of an object on which characters are printed, Based on the binarized image information, while calculating the number and area of the connected regions,
An image processing step of calculating a center coordinate position of a circumscribing quadrangle including all of the connected areas, the number and area of the connected areas calculated in the image processing step, and all of the connected areas are included. An image determination step of determining the quality of the printed character by comparing the center coordinate position of the circumscribed quadrangle with corresponding data on a standard product on which the character is properly printed. Is.

【0006】[0006]

【作用】本発明の印刷文字検査方法は、画像処理工程で
算出された連結した領域についての数及び面積と、連結
した領域の全てを包含する外接四角形の中心座標位置と
を、文字が適正に印刷された標準品についての対応する
データと比較することにより、対象物が回転して印刷文
字が所定の位置からずれている場合でも印刷文字の品質
を適正に検査することができる。尚、本発明において、
文字とは記号や図形を含むものである。
According to the printed character inspection method of the present invention, the number of connected regions and the area calculated in the image processing step, and the center coordinate position of the circumscribing quadrangle including all of the connected regions are properly determined. By comparing with the corresponding data on the printed standard product, the quality of the printed characters can be properly inspected even when the object is rotated and the printed characters are displaced from the predetermined position. In the present invention,
Characters include symbols and figures.

【0007】また、前記画像処理工程で算出された連結
した領域についての数を、文字が適正に印刷された標準
品についての対応するデータと比較し、両者が一致する
ときには正常と判定し、一致しないときには異常と判定
することにより、疵、打痕等の有無を検査することがで
きる。
Further, the number of connected regions calculated in the image processing step is compared with corresponding data of a standard product on which characters are properly printed, and when both match, it is determined to be normal, and the two match. If not, it can be inspected for the presence of flaws, dents, etc. by determining that it is abnormal.

【0008】さらに、前記画像処理工程で算出された連
結した領域の全てを包含する外接四角形の中心座標位置
を、文字が適正に印刷された標準品についての対応する
データと比較し、両者のずれが所定範囲内のときには正
常と判定し、所定範囲外のときには異常と判定すること
により、印刷文字の位置ずれを適正に検査することがで
きる。
Further, the center coordinate position of the circumscribing quadrangle including all of the connected areas calculated in the image processing step is compared with corresponding data of a standard product on which characters are properly printed, and the deviation between the two is detected. When is within the predetermined range, it is determined to be normal, and when it is outside the predetermined range, it is determined to be abnormal, and thus the positional deviation of the printed characters can be properly inspected.

【0009】加えて、前記画像処理工程で算出された連
結した領域についての面積を、文字が適正に印刷された
標準品についての対応するデータとそれぞれ比較し、両
者のずれが所定範囲外であるものが所定数以下のときに
は正常と判定し、所定数より多いときには異常と判定す
ることにより、印刷文字が所定の印刷濃度、すなわち所
定の太さのものであるか否かを検査することができる。
In addition, the area of the connected region calculated in the image processing step is compared with the corresponding data of the standard product on which the characters are properly printed, and the deviation between the two is outside the predetermined range. When the number of objects is less than or equal to the predetermined number, it is determined to be normal, and when the number of objects is greater than the predetermined number, it is determined to be abnormal, so that it is possible to inspect whether or not the print character has a predetermined print density, that is, a predetermined thickness. .

【0010】[0010]

【実施例】以下に、本発明の一実施例である印刷文字検
査方法について図面を参照して説明する。図1は本実施
例方法に用いられる印刷文字検査装置の概略構成図、図
2は本実施例である印刷文字検査方法を説明するための
フローチャート、図3は本実施例方法において二値化さ
れた画像情報に基づき印字の良否を判定するためのデー
タを算出する方法を説明するための図、図4はレベルス
ライスを説明するための図、図5は文字が適正に印刷さ
れた標準品を示す図、図6は文字が適正に印刷された標
準品の島の数を示す図、図7は対象物に疵、打痕等があ
る場合の島の数を示す図、図8は文字が適正に印刷され
た標準品の全ての島を包含する外接四角形の中心座標位
置を示す図、図9は文字がずれて印刷された場合の全て
の島を包含する外接四角形の中心座標位置を示す図、図
10は対象物が回転して文字がずれた場合の全ての島を
包含する外接四角形の中心座標位置を示す図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A print character inspection method according to an embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a schematic configuration diagram of a print character inspection apparatus used in the method of the present embodiment, FIG. 2 is a flow chart for explaining the print character inspection method of the present embodiment, and FIG. 3 is binarized in the method of the present embodiment. FIG. 4 is a diagram for explaining a method for calculating data for determining the quality of printing based on image information, FIG. 4 is a diagram for explaining level slices, and FIG. 5 is a standard product in which characters are properly printed. FIG. 6, FIG. 6 is a diagram showing the number of islands of a standard product on which characters are properly printed, FIG. 7 is a diagram showing the number of islands when a target object has a flaw, a dent, etc., and FIG. The figure which shows the center coordinate position of the circumscribed quadrangle which includes all the islands of the standard article printed properly, and FIG. 9 shows the center coordinate position of the circumscribed quadrangle which includes all the islands when the character is shifted and printed. Figure and Figure 10 include all islands when the object rotates and the characters are displaced. It is a diagram showing the center coordinates of the circumscribed rectangle that.

【0011】図1に示す印刷文字検査装置は、センサ2
と、ストロボ光源4と、ストロボ駆動部6と、CCDカ
メラ8と、対象物Xを搬送するコンベア等の搬送手段1
2と、画像情報出力部14と、画像処理部16と、画像
判定部22と、記憶部24と、表示部26とを備える。
The print character inspection apparatus shown in FIG.
A strobe light source 4, a strobe drive unit 6, a CCD camera 8, and a conveyer 1 such as a conveyer for conveying an object X.
2, an image information output unit 14, an image processing unit 16, an image determination unit 22, a storage unit 24, and a display unit 26.

【0012】センサ2は、搬送される対象物XがCCD
カメラ8に近づいて、撮像位置に到達したことを検知
し、検知信号を出力する。ストロボ光源4は、対象物X
に照射する閃光の光源であり、この照明下で対象物Xが
撮像される。また、ストロボ駆動部6は、センサ2から
の検知信号を取り込むタイミング(撮像タイミング)で
ストロボ光源4を発光させる。
In the sensor 2, the object X to be conveyed is a CCD.
It approaches the camera 8 and detects that it has reached the imaging position, and outputs a detection signal. The strobe light source 4 is the object X.
The object X is imaged under this illumination. Further, the strobe drive unit 6 causes the strobe light source 4 to emit light at a timing (imaging timing) at which the detection signal from the sensor 2 is received.

【0013】CCDカメラ8は、撮像レンズにより撮像
素子上に対象物Xの光学像を二次元の画像として結像さ
せ、撮像素子上で光電変換を行なって光学像に対応した
電荷を所定の期間(電荷蓄積期間)蓄積した後、この蓄
積した電荷を一次元の電気信号として出力する。光学像
は絶えず撮像素子上に結像しているが、電荷の転送中
は、対象物Xの光学像に対応した電荷は有効に蓄積され
ない。そして、電荷の転送後、再び光学像に対応した電
荷が蓄積される。撮像素子から得られた一次元の電気信
号は、画像信号として画像情報出力部14に出力され
る。
The CCD camera 8 forms an optical image of the object X as a two-dimensional image on the image pickup element by the image pickup lens, performs photoelectric conversion on the image pickup element, and charges corresponding to the optical image for a predetermined period. (Charge accumulation period) After the accumulation, the accumulated charges are output as a one-dimensional electric signal. Although the optical image is constantly formed on the image sensor, the charges corresponding to the optical image of the object X are not effectively accumulated during the transfer of the charges. Then, after the transfer of the charges, the charges corresponding to the optical image are accumulated again. The one-dimensional electric signal obtained from the image sensor is output to the image information output unit 14 as an image signal.

【0014】画像情報出力部14は、A/D変換部14
2と、画像フィルタ144と、レベルスライス部146
とを備える。A/D変換部142は、CCDカメラ8か
ら出力された画像信号をディジタル信号に変換して出力
する。画像フィルタ144は、そのディジタル信号に混
在したノイズを除去する。レベルスライス部146は、
画像フィルタ144によりノイズ除去された画像信号の
指定された範囲の輝度(濃度)レベルを0にすると共
に、画像信号を二値化する。
The image information output unit 14 is an A / D conversion unit 14
2, the image filter 144, and the level slice unit 146
With. The A / D converter 142 converts the image signal output from the CCD camera 8 into a digital signal and outputs the digital signal. The image filter 144 removes noise mixed in the digital signal. The level slice unit 146 is
The luminance (density) level in the designated range of the image signal from which noise has been removed by the image filter 144 is set to 0, and the image signal is binarized.

【0015】画像処理部16は、画像情報出力部14に
より出力された二値化された画像信号に基づいて粒度計
測を行う。具体的には、画像信号が同じ値をとる連結し
た領域(以下、島とも称する。)へのラベル付け、ラベ
ルが付けられた島の数の算出、各島の面積値の算出、お
よび各島の外接四角形を特定するX・Y座標の算出を行
う。たとえば、図3に示すような三つの島A1 ,A2
3 を二値化された画像信号で表した場合、島A1 に含
まれる画素数の総和が島A1 についての面積値となる。
また、島A1 に外接する四角形の頂点のX・Y座標、す
なわちX座標の最大値XM1及び最小値XS1とY座標の最
大値YM1及び最小値YS1とが島A1 の外接四角形を特定
するためのX・Y座標となる。また、たとえば、印字文
字が「ン」の場合は、一文字であっても二つの島により
構成されているので島の数は2となる。
The image processing unit 16 measures the grain size based on the binarized image signal output from the image information output unit 14. Specifically, the connected regions (hereinafter also referred to as islands) in which the image signals have the same value are labeled, the number of labeled islands is calculated, the area value of each island is calculated, and each island is calculated. The X and Y coordinates that specify the circumscribed quadrangle are calculated. For example, three islands A 1 , A 2 ,
When representing the A 3 in binarized image signal, the total number of pixels included in the island A 1 is the area value for the island A 1.
In addition, the X and Y coordinates of the vertices of the quadrangle circumscribing the island A 1 , that is, the maximum value X M1 and the minimum value X S1 of the X coordinate and the maximum value Y M1 and the minimum value Y S1 of the Y coordinate are the circumscribed points of the island A 1 . It becomes the X and Y coordinates for specifying the quadrangle. Further, for example, when the print character is "n", the number of islands is 2 because one character is composed of two islands.

【0016】また、画像処理部16は、このように算出
された各島の外接四角形を特定するX・Y座標に基づ
き、全ての島を包含する外接四角形の中心座標位置を算
出すると共に、算出された島の面積値に基づき、島を面
積値の大きい順に並び替える。図3に示す場合において
は、島A3 に外接する四角形の頂点におけるX座標の最
大値XM3及びY座標の最大値YM3と、島A2 に外接する
四角形の頂点におけるX座標の最小値XS2及びY座標の
最小値YS2とにより特定される四角形が、全ての島を包
含する外接四角形となる。そして、その中心座標位置P
は、座標(XN ,YN )=((XM3+XS2)/2,(Y
M3+YS2)/2)により与えられる。また、島は、
2 ,A3 ,A1 の順に並び替えられる。
Further, the image processing unit 16 calculates the center coordinate position of the circumscribing quadrangle including all the islands based on the XY coordinates which specify the circumscribing quadrangle of each island thus calculated, and The islands are sorted in descending order of area value based on the area value of the islands. In the case shown in FIG. 3, the maximum value X M3 and the maximum value Y M3 of the Y coordinate of the X-coordinate at the vertex of the rectangle circumscribing the island A 3, the minimum value of the X-coordinate at the vertex of the rectangle that circumscribes the island A 2 The quadrangle specified by X S2 and the Y coordinate minimum value Y S2 is a circumscribed quadrangle including all islands. Then, the center coordinate position P
Is the coordinates (X N , Y N ) = ((X M3 + X S2 ) / 2, (Y
Given by M3 + Y S2 ) / 2). Also, the island
They are rearranged in the order of A 2 , A 3 , and A 1 .

【0017】記憶部24には、予め文字が適正に印刷さ
れた標準品についての島の数、各島の面積値及び全ての
島を包含する外接四角形の中心座標位置が記憶されてい
る。尚、島についての面積値は、面積の大きい順に記憶
される。画像判定部22は、画像処理部16において算
出された島の数、全ての島を包含する外接四角形の中心
座標位置、および面積の大きい順に並び替えられた各島
についての面積値を、記憶部24に記憶された文字が適
正に印刷された標準品についての島の数、全ての島を包
含する外接四角形の中心座標位置、および各島について
の面積値と、それぞれ比較することにより印刷文字の品
質の良否を判定する。表示部26は、画像判定部22で
判定した結果を表示する。
The storage unit 24 stores the number of islands, the area value of each island, and the center coordinate position of a circumscribing quadrangle that includes all the islands of a standard product in which characters are properly printed in advance. The area values for the islands are stored in descending order of area. The image determination unit 22 stores the number of islands calculated by the image processing unit 16, the center coordinate position of the circumscribing quadrangle including all the islands, and the area value of each island sorted in descending order of area. The number of islands for the standard product in which the characters stored in 24 are properly printed, the central coordinate position of the circumscribing rectangle that includes all the islands, and the area value for each island Determine the quality. The display unit 26 displays the result determined by the image determination unit 22.

【0018】次に、本実施例である印刷文字検査方法に
ついて説明する。本実施例では、ペットボトルのキャッ
プを高速で搬送し(約1700個/分)、そのキャップ
の表面に印刷された商品名が正確に印字されているか否
かを検査する場合について考える。尚、ペットボトルの
キャップとしては、適正に印字された場合に茶色の下地
の上に商品名が黒色で図5に示すように印字されるアル
ミ製のものを用いた。また、CCDカメラ8には、撮像
視野φ34mm、分解能0.07mm/picのものを
用いた。
Next, the printed character inspection method of this embodiment will be described. In this embodiment, a case will be considered in which a PET bottle cap is transported at high speed (about 1700 pieces / minute) and whether or not the product name printed on the surface of the cap is accurately printed. As the cap of the PET bottle, an aluminum cap was used in which the product name was printed in black on a brown substrate when properly printed, as shown in FIG. Further, as the CCD camera 8, one having an imaging visual field of 34 mm and a resolution of 0.07 mm / pic was used.

【0019】先ず、ペットボトルのキャップが撮像位置
に到達したことをセンサ2で検知し、センサ2からの検
知信号に基づきストロボ駆動部6によりストロボ光源4
を発光させ、CCDカメラ8でキャップを撮像すること
により、図2に示すフローチャートに従って処理が開始
される。CCDカメラ8は、この照明下で撮像した画像
情報を一次元の電気信号として画像情報出力部14に入
力する(step 1) 。
First, the sensor 2 detects that the cap of the PET bottle has reached the image pickup position, and the strobe light source 4 is driven by the strobe drive unit 6 based on the detection signal from the sensor 2.
Is emitted, and the CCD camera 8 captures an image of the cap, whereby the process is started according to the flowchart shown in FIG. The CCD camera 8 inputs the image information imaged under the illumination as a one-dimensional electric signal to the image information output unit 14 (step 1).

【0020】CCDカメラ8により入力された画像信号
は、A/D変換部142によりディジタルの画像信号に
変換された後(step 2)、画像フィルタ144によりノ
イズが除去されて(step 3) 、レベルスライス部146
に入力される。レベルスライス部146に入力された画
像信号のうち輝度レベルが0〜110及び160〜25
5のものは、図4に示すように、輝度レベルが0に変更
される(step 4) 。これは、印字部分及び疵、打痕等に
より下地色が剥がれた部分と下地色の部分とを区別する
ためであり、本実施例では、キャップとして下地色が茶
色のものを用いたので、茶色(輝度レベル111〜15
9)と茶色以外の色とを区別するため、輝度レベルが0
に変更される範囲を上記のように設定した。そして、レ
ベルスライス部146では、画像信号を、輝度レベルが
0のものと0以外のものとに二値化する。これにより、
画像信号は、印字部分及び疵、打痕等により下地色が剥
がれた部分と下地色の部分とに二値化された画像情報と
なる。
The image signal input from the CCD camera 8 is converted into a digital image signal by the A / D converter 142 (step 2), and then noise is removed by the image filter 144 (step 3) to obtain a level. Slice 146
Entered in. Of the image signals input to the level slice unit 146, the brightness levels are 0 to 110 and 160 to 25.
In the case of No. 5, as shown in FIG. 4, the brightness level is changed to 0 (step 4). This is for distinguishing the printed portion and the portion where the background color is peeled off due to scratches, dents, etc. from the portion of the background color. (Brightness levels 111-15
In order to distinguish 9) from colors other than brown, the brightness level is 0.
The range to be changed to is set as described above. Then, the level slice unit 146 binarizes the image signal into those having a luminance level of 0 and those having a luminance level other than 0. This allows
The image signal is image information binarized into a printed portion, a portion where the background color is peeled off due to a flaw, a dent, and the like, and a portion of the background color.

【0021】次に、画像情報出力部14により出力され
た二値化された画像情報に基づき、画像処理部16によ
り粒度計測を行う(step 5) 。先ず、島にラベルを付
け、島の数を算出する。本実施例では、図6に示すよう
に、文字が適正に印刷されている場合は、島の数は20
となるが、図7に示すように、キャップに疵、打痕が存
在する場合は、疵、打痕の数だけ島が増加することにな
る。次に、ラベルが付けられた各島の面積値を算出した
後、ラベルが付けられた各島の外接四角形を特定するX
・Y座標を算出する。
Next, on the basis of the binarized image information output by the image information output unit 14, the image processing unit 16 measures the granularity (step 5). First, label the islands and calculate the number of islands. In this embodiment, as shown in FIG. 6, when the characters are properly printed, the number of islands is 20.
However, as shown in FIG. 7, when the cap has flaws and dents, the number of islands increases by the number of flaws and dents. Next, after calculating the area value of each labeled island, X that identifies the circumscribed rectangle of each labeled island
-Calculate the Y coordinate.

【0022】次に、このように算出された各島の外接四
角形を特定するX・Y座標に基づき、全ての島を包含す
る外接四角形の中心座標位置を算出する(step 6) 。本
実施例では、図8に示すように、文字が適正に印刷され
ている場合は、全ての島を包含する外接四角形の中心座
標位置Pはキャップの略中央に位置するが、図9に示す
ように、文字が適正に印刷されていない場合は、キャッ
プの中央からずれた位置に全ての島を包含する外接四角
形の中心座標位置Pがくることになる。また、図10に
示すように、搬送中にキャップが回転してしまい、印刷
文字が所定の位置からずれている場合でも、文字が適正
に印刷されていれば、全ての島を包含する外接四角形の
中心座標位置Pはキャップの略中央に位置する。その
後、ラベルが付けられた各島を、その面積値に基づき、
面積の大きい順に並び替える(step7) 。
Next, the center coordinate position of the circumscribing quadrangle including all the islands is calculated based on the X and Y coordinates specifying the circumscribing quadrangle of each island thus calculated (step 6). In the present embodiment, as shown in FIG. 8, when the characters are properly printed, the center coordinate position P of the circumscribing quadrangle that includes all the islands is located substantially in the center of the cap, but as shown in FIG. As described above, when the characters are not properly printed, the center coordinate position P of the circumscribing quadrangle including all the islands comes to a position displaced from the center of the cap. Further, as shown in FIG. 10, even when the cap is rotated during transportation and the printed character is displaced from the predetermined position, if the character is properly printed, a circumscribed quadrangle including all islands can be obtained. The center coordinate position P of is located substantially in the center of the cap. Then, based on the area value of each labeled island,
Sort in descending order of area (step 7).

【0023】次に、画像判定部22により、画像処理部
16において算出された島の数、全ての島を包含する外
接四角形の中心座標位置、および面積の大きい順に並び
替えられた各島についての面積値を、記憶部24に記憶
された文字が適正に印刷された標準品についての島の
数、全ての島を包含する外接四角形の中心座標位置、お
よび各島についての面積値と、それぞれ比較することに
より印刷文字の品質の良否を判定する。
Next, regarding the number of islands calculated by the image processing unit 16 by the image determination unit 22, the center coordinate position of the circumscribing quadrangle encompassing all the islands, and the respective islands sorted in descending order of area. The area value is respectively compared with the number of islands of the standard product in which the characters stored in the storage unit 24 are properly printed, the center coordinate position of the circumscribing rectangle including all the islands, and the area value of each island. By doing so, the quality of the printed character is judged.

【0024】先ず、画像処理部16で算出された島の数
が記憶部24に記憶された文字が適正に印刷された標準
品についての島の数と一致するか否かを判定する(step
8)。画像処理部16で算出された島の数が記憶部24
に記憶された標準品についての島の数と一致しないと判
定した場合には、ペットボトルのキャップに疵、打痕等
があると考えられるので、表示部26に不良である旨を
表示する(step 12 )。
First, it is determined whether or not the number of islands calculated by the image processing unit 16 matches the number of islands of a standard product in which the characters stored in the storage unit 24 are properly printed (step).
8). The number of islands calculated by the image processing unit 16 is stored in the storage unit 24.
When it is determined that the number of islands does not match the number of islands for the standard product stored in (1), it is considered that the cap of the plastic bottle has a flaw, a dent, etc., and therefore, the display unit 26 displays that the defect is ( step 12).

【0025】画像処理部16で算出された島の数が記憶
部24に記憶された標準品についての島の数と一致する
と判定した場合には、画像処理部16で算出された全て
の島を包含する外接四角形の中心座標位置と記憶部24
に記憶された文字が適正に印刷された標準品についての
全ての島を包含する外接四角形の中心座標位置とのずれ
が許容範囲内にあるか否かを判定する(step 9)。画像
処理部16で算出された全ての島を包含する外接四角形
の中心座標位置と記憶部24に記憶された標準品につい
ての全ての島を包含する外接四角形の中心座標位置との
ずれが許容範囲内にないと判定した場合には、ペットボ
トルのキャップに商品名が容認できない程度にずれて印
刷されているので、表示部26に不良である旨を表示す
る(step12 )。尚、許容範囲は、印字のずれが使用の
際に問題になる程度であるか否かを基準として定めるの
が望ましい。
When it is determined that the number of islands calculated by the image processing unit 16 matches the number of islands of the standard product stored in the storage unit 24, all the islands calculated by the image processing unit 16 are calculated. Center coordinate position of circumscribing quadrangle to be included and storage unit
It is determined whether the deviation from the central coordinate position of the circumscribing quadrangle that includes all the islands of the standard product in which the character stored in (3) is properly printed is within the allowable range (step 9). A deviation between the center coordinate position of the circumscribing quadrangle including all the islands calculated by the image processing unit 16 and the center coordinate position of the circumscribing quadrangle including all the islands of the standard product stored in the storage unit 24 is within an allowable range. If it is determined that the product name is not within the range, the product name is printed on the cap of the plastic bottle with an unacceptable amount of deviation, so that the display unit 26 indicates that the product is defective (step 12). It should be noted that it is desirable to determine the allowable range based on whether or not the printing deviation is a problem during use.

【0026】画像処理部16で算出された全ての島を包
含する外接四角形の中心座標位置と記憶部24に記憶さ
れた標準品についての全ての島を包含する外接四角形の
中心座標位置とのずれが許容範囲内にあると判定した場
合には、画像処理部16で算出された面積の大きい順に
並び替えられた各島についての面積値を、記憶部24に
記憶された文字が適正に印刷された標準品についての各
島についての面積値と、面積の大きい順にそれぞれ比較
し、両者のずれが許容範囲外であるものが所定数以下で
あるか否かを判定する(step10)。両者のずれが許容範
囲外であるものが所定数より多いと判定した場合には、
ペットボトルのキャップに印刷された文字が全体的に太
かったり、細かったりしていると考えられるので、表示
部26に不良である旨を表示する(step 12 )。尚、許
容範囲及び所定数は、印字の濃淡が使用の際に問題にな
る程度であるか否かを基準として定めるのが望ましい。
Deviation between the center coordinate position of the circumscribing quadrangle including all the islands calculated by the image processing unit 16 and the center coordinate position of the circumscribing quadrangle including all the islands of the standard product stored in the storage unit 24. When it is determined that is within the allowable range, the characters stored in the storage unit 24 are appropriately printed as the area values of the islands sorted by the image processing unit 16 in descending order of area. The area value of each standard island is compared with the area with the largest area, and it is determined whether or not the deviation between the two is less than a predetermined number (step 10). If it is determined that the number of deviations between the two is outside the permissible range and there are more than a predetermined number,
Since it is considered that the characters printed on the cap of the PET bottle are thick or thin as a whole, the fact that the character is defective is displayed on the display unit 26 (step 12). It should be noted that the allowable range and the predetermined number are preferably determined on the basis of whether or not the lightness and darkness of the print is a problem during use.

【0027】画像処理部16で算出された面積の大きい
順に並び替えられた各島についての面積値を、記憶部2
4に記憶された標準品についての各島についての面積値
と、面積の大きい順にそれぞれ比較し、両者のずれが許
容範囲外であるものが所定数以下であると判定した場合
には、ペットボトルのキャップに疵、打痕等がなく、ま
た、商品名も適正に印刷されているので、表示部26に
正常である旨を表示し(step 11 )、このフローチャー
トは終了する。
The storage unit 2 stores the area values of the respective islands sorted by the image processing unit 16 in descending order of area.
The area values for each island for the standard product stored in 4 are compared in descending order of area, and if it is determined that the difference between the two is outside the allowable range, the number of PET bottles Since the cap has no flaws, dents, etc., and the product name is properly printed, the fact that it is normal is displayed on the display unit 26 (step 11), and this flow chart ends.

【0028】本実施例によれば、文字が印刷されたペッ
トボトルのキャップについての二値化された画像情報に
基づいて算出された島の数、各島の面積値及び全ての島
を包含する外接四角形の中心座標位置を、記憶部24に
記憶された文字が適正に印刷された標準品についての対
応するデータと比較することにより印刷文字の品質の良
否を判定するので、搬送中にペットボトルのキャップが
回転してそのキャップに印刷された文字が所定の位置か
らずれている場合でも、印刷文字の品質を適正に検査す
ることができる。
According to the present embodiment, the number of islands, the area value of each island, and all islands calculated based on the binarized image information of the cap of the PET bottle on which characters are printed are included. The quality of the printed characters is determined by comparing the center coordinate position of the circumscribed quadrangle with the corresponding data of the standard product in which the characters stored in the storage unit 24 are properly printed. Even if the cap is rotated and the character printed on the cap is displaced from the predetermined position, the quality of the printed character can be properly inspected.

【0029】また、画像処理部16で算出された島の数
を、記憶部24に記憶された文字が適正に印刷された標
準品についての対応するデータと比較し、両者が一致す
るときには正常と判定し、一致しないときには異状であ
ると判定するので、ペットボトルのキャップに疵、打痕
等があるか否かをも検査することができる。
Further, the number of islands calculated by the image processing unit 16 is compared with the corresponding data of the standard product in which the characters stored in the storage unit 24 are properly printed, and when they match, it is determined as normal. Since it is determined that the PET bottle cap is abnormal if it does not match, it is possible to inspect whether the cap of the PET bottle has a flaw, a dent, or the like.

【0030】さらに、画像処理部16で算出された全て
の島を包含する外接四角形の中心座標位置を、記憶部2
4に記憶された文字が適正に印刷された標準品について
の対応するデータと比較し、両者のずれが許容範囲内の
ときには正常と判定し、前記許容範囲外のときには異状
であると判定するので、印刷文字の位置ずれを適正に検
査することができる。
Further, the central coordinate position of the circumscribing quadrangle including all the islands calculated by the image processing unit 16 is stored in the storage unit 2.
The character stored in 4 is compared with the corresponding data for a properly printed standard product, and if the deviation between the two is within the allowable range, it is determined to be normal, and if it is outside the allowable range, it is determined to be abnormal. , It is possible to properly inspect the positional deviation of printed characters.

【0031】加えて、画像処理部16で算出された面積
の大きい順に並び替えらた各島についての面積値を、記
憶部24に記憶された文字が適正に印刷された標準品に
ついての対応するデータと、面積の大きい順にそれぞれ
比較し、両者のずれが許容範囲外であるものが所定数以
下のときには正常と判定し、前記所定数より多いときに
は異状であると判定するので、印刷文字が所定の印刷濃
度、すなわち所定の太さのものであるか否かをも検査す
ることができる。
In addition, the area value of each island sorted by the image processing unit 16 in descending order of the area corresponds to the standard product in which the characters stored in the storage unit 24 are properly printed. The data is compared with each other in descending order of area, and when the difference between the two is out of the allowable range is less than or equal to a predetermined number, it is determined to be normal, and when it is greater than the predetermined number, it is determined to be abnormal. It is also possible to inspect the print density of, that is, whether it has a predetermined thickness.

【0032】尚、本発明は、本実施例に限定されるもの
ではなく、その要旨の範囲内において種々の変形が可能
である。本実施例では、茶色の下地の上に黒色の文字が
印刷されている場合について説明したが、本発明はこれ
に限定されるものではなく、たとえば、青色の下地の上
に白色の文字が印刷されている場合でも、印刷文字を適
正に検査することができる。尚、この場合、レベルスラ
イス部146の輝度レベルを0にする範囲を変更する必
要がある。また、文字は記号、図形等を含むものであっ
てもよい。
The present invention is not limited to this embodiment, and various modifications can be made within the scope of the invention. In the present embodiment, the case where black characters are printed on a brown background has been described, but the present invention is not limited to this. For example, white characters are printed on a blue background. If so, the printed characters can be properly inspected. In this case, it is necessary to change the range in which the brightness level of the level slice unit 146 is 0. Further, the characters may include symbols, figures and the like.

【0033】また、本実施例では、ペットボトルのキャ
ップに印刷された文字を検査する場合について説明した
が、本発明はこれに限定されるものではなく、検査する
文字は、たとえばビール缶の底に印刷されたものやビー
ル瓶の王冠に印刷されたものであってもよい。
In this embodiment, the case of inspecting the character printed on the cap of the PET bottle has been described, but the present invention is not limited to this, and the character to be inspected is, for example, the bottom of a beer can. It may be printed on or on the crown of a beer bottle.

【0034】さらに、本実施例では、画像処理部16で
算出された島の数を、記憶部24に記憶された標準品に
ついての島の数と比較した後、画像処理部16で算出さ
れた全ての島を包含する外接四角形の中心座標位置を、
記憶部24に記憶された標準品についての全ての島を包
含する外接四角形の中心座標位置と比較する場合につい
て説明したが、本発明はこれに限定されるものではな
く、画像処理部16で算出された全ての島を包含する外
接四角形の中心座標位置を、記憶部24に記憶された標
準品についての全ての島を包含する外接四角形の中心座
標位置と比較した後、画像処理部16で算出された島の
数を、記憶部24に記憶された標準品についての島の数
と比較することにしてもよい。
Further, in this embodiment, the number of islands calculated by the image processing unit 16 is compared with the number of islands of the standard product stored in the storage unit 24, and then calculated by the image processing unit 16. The center coordinate position of the circumscribed quadrangle that includes all islands,
The case of comparison with the center coordinate position of the circumscribing quadrangle including all islands of the standard product stored in the storage unit 24 has been described, but the present invention is not limited to this, and the calculation is performed by the image processing unit 16. The center coordinate position of the circumscribed quadrangle including all the islands is compared with the center coordinate position of the circumscribed quadrangle including all the islands of the standard product stored in the storage unit 24, and then calculated by the image processing unit 16. The number of islands created may be compared with the number of islands of the standard product stored in the storage unit 24.

【0035】また、本実施例では、画像処理部16で算
出された面積の大きい順に並び替えられた各島について
の面積値を、記憶部24に記憶された標準品についての
各島についての面積値と、面積の大きい順にそれぞれ比
較する場合について説明したが、面積の小さい順にそれ
ぞれ比較することにしてもよい。
In this embodiment, the area value for each island calculated by the image processing unit 16 and sorted in descending order of area is calculated as the area value for each standard island stored in the storage unit 24. The case where the values and the areas are compared in the descending order has been described, but the values may be compared in the descending order.

【0036】[0036]

【発明の効果】以上説明したように本発明によれば、画
像処理工程で算出された連結した領域についての数を、
文字が適正に印刷された標準品についての対応するデー
タと比較することにより、疵、打痕等の有無を検査する
ことができ、また、前記画像処理工程で算出された連結
した領域の全てを包含する外接四角形の中心座標位置
を、文字が適正に印刷された標準品についての対応する
データと比較することにより印刷文字の位置ずれを適正
に検査することができ、さらに、前記画像処理工程で算
出された連結した領域についての面積を、文字が適正に
印刷された標準品についての対応するデータと比較する
ことにより印刷文字の印刷濃度を検査することができる
ので、対象物が回転して印刷文字が所定の位置からずれ
ている場合でも、印刷文字の品質を適正に検査すること
ができる印刷文字検査方法を提供することができる。
As described above, according to the present invention, the number of connected regions calculated in the image processing step is
By comparing with the corresponding data on the standard product on which the characters are properly printed, it is possible to inspect for the presence of scratches, dents, etc., and all of the connected areas calculated in the image processing step are checked. By comparing the center coordinate position of the circumscribing circumscribed rectangle with the corresponding data of the standard product on which the characters are properly printed, the positional deviation of the printed characters can be properly inspected. By comparing the calculated area of the connected area with the corresponding data of the standard article with the characters printed properly, the print density of the printed characters can be inspected, so that the object rotates and prints. It is possible to provide a printed character inspection method capable of properly inspecting the quality of a printed character even when the character is displaced from a predetermined position.

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

【図1】本実施例方法に用いられる印刷文字検査装置の
概略構成図である。
FIG. 1 is a schematic configuration diagram of a print character inspection device used in the method of the present embodiment.

【図2】本実施例である印刷文字検査方法を説明するた
めの図である。
FIG. 2 is a diagram for explaining a printed character inspection method according to the present embodiment.

【図3】本実施例方法において二値化された画像情報に
基づき印字の良否を判定するためのデータを算出する方
法を説明するための図である。
FIG. 3 is a diagram for explaining a method of calculating data for determining the quality of printing based on binarized image information in the method of the present embodiment.

【図4】レベルスライスを説明するための図である。FIG. 4 is a diagram for explaining level slices.

【図5】文字が適正に印刷された標準品を示す図であ
る。
FIG. 5 is a diagram showing a standard product in which characters are properly printed.

【図6】文字が適正に印刷された標準品の島の数を示す
図である。
FIG. 6 is a diagram showing the number of standard islands in which characters are properly printed.

【図7】対象物に疵、打痕等がある場合の島の数を示す
図である。
FIG. 7 is a diagram showing the number of islands when an object has a flaw, a dent, or the like.

【図8】文字が適正に印刷された標準品の全ての島を包
含する外接四角形の中心座標位置を示す図である。
FIG. 8 is a diagram showing center coordinate positions of a circumscribing rectangle that includes all islands of a standard product in which characters are properly printed.

【図9】文字がずれて印刷された場合の全ての島を包含
する外接四角形の中心座標位置を示す図である。
FIG. 9 is a diagram showing center coordinate positions of a circumscribing quadrangle including all islands when characters are printed with a shift.

【図10】対象物が回転して文字がずれた場合の全ての
島を包含する外接四角形の中心座標位置を示す図であ
る。
FIG. 10 is a diagram showing the center coordinate position of a circumscribing quadrangle including all islands when the object is rotated and the characters are displaced.

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

2 センサ 4 ストロボ光源 6 ストロボ駆動部 8 CCDカメラ 12 搬送手段 14 画像情報出力部 16 画像処理部 22 画像判定部 24 記憶部 26 表示部 142 A/D変換部 144 画像フィルタ 146 レベルスライス部 2 sensor 4 strobe light source 6 strobe drive unit 8 CCD camera 12 conveying means 14 image information output unit 16 image processing unit 22 image determination unit 24 storage unit 26 display unit 142 A / D conversion unit 144 image filter 146 level slice unit

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04N 1/40 7/18 B 4226−5C H04N 1/40 Z ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical indication H04N 1/40 7/18 B 4226-5C H04N 1/40 Z

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 文字が印刷された対象物についての二値
化された画像情報を出力する画像情報出力工程と、 前記二値化された画像情報に基づいて、連結した領域に
ついての数及び面積を算出するとともに、前記連結した
領域の全てを包含する外接四角形の中心座標位置を算出
する画像処理工程と、 前記画像処理工程で算出された連結した領域についての
数及び面積と、前記連結した領域の全てを包含する外接
四角形の中心座標位置とを、文字が適正に印刷された標
準品についての対応するデータと比較することにより印
刷文字の品質の良否を判定する画像判定工程と、 を具備することを特徴とする印刷文字検査方法。
1. An image information output step of outputting binarized image information of an object on which characters are printed, and the number and area of connected regions based on the binarized image information. And an image processing step of calculating a central coordinate position of a circumscribing quadrangle including all of the connected areas, the number and area of the connected areas calculated in the image processing step, and the connected area And a center coordinate position of a circumscribing quadrangle that includes all of the above, and an image determination step of determining the quality of the printed character by comparing with the corresponding data of the standard product on which the character is properly printed. A printed character inspection method characterized by the above.
JP5286037A 1993-10-20 1993-10-20 Printed character inspection method and printed character inspection device Expired - Fee Related JP3001079B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5286037A JP3001079B2 (en) 1993-10-20 1993-10-20 Printed character inspection method and printed character inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5286037A JP3001079B2 (en) 1993-10-20 1993-10-20 Printed character inspection method and printed character inspection device

Publications (2)

Publication Number Publication Date
JPH07121721A true JPH07121721A (en) 1995-05-12
JP3001079B2 JP3001079B2 (en) 2000-01-17

Family

ID=17699161

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5286037A Expired - Fee Related JP3001079B2 (en) 1993-10-20 1993-10-20 Printed character inspection method and printed character inspection device

Country Status (1)

Country Link
JP (1) JP3001079B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1445100A2 (en) 2003-02-07 2004-08-11 Baldwin-Japan Ltd. Printed paper inspecting method and apparatus
JP2006105807A (en) * 2004-10-06 2006-04-20 Central Glass Co Ltd Method for inspecting print defect and/or print contamination of transparent plate-like body
JP2007122594A (en) * 2005-10-31 2007-05-17 Denso Corp Image processor
JP2009020860A (en) * 2007-03-09 2009-01-29 Avago Technologies Ecbu Ip (Singapore) Pte Ltd System and method for identifying and labeling cluster pixels in frame of image data for optical navigation
JP2011059114A (en) * 2009-09-11 2011-03-24 Krones Ag Device and method for investigating vessel lid
CN111060527A (en) * 2019-12-30 2020-04-24 歌尔股份有限公司 Character defect detection method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1445100A2 (en) 2003-02-07 2004-08-11 Baldwin-Japan Ltd. Printed paper inspecting method and apparatus
US7570788B2 (en) 2003-02-07 2009-08-04 Baldwin-Japan Ltd. Printed paper inspecting method and apparatus
JP2006105807A (en) * 2004-10-06 2006-04-20 Central Glass Co Ltd Method for inspecting print defect and/or print contamination of transparent plate-like body
JP2007122594A (en) * 2005-10-31 2007-05-17 Denso Corp Image processor
JP2009020860A (en) * 2007-03-09 2009-01-29 Avago Technologies Ecbu Ip (Singapore) Pte Ltd System and method for identifying and labeling cluster pixels in frame of image data for optical navigation
JP4648958B2 (en) * 2007-03-09 2011-03-09 アバゴ・テクノロジーズ・イーシービーユー・アイピー(シンガポール)プライベート・リミテッド System and method for optical navigation for identifying and labeling cluster pixels in image frame data
JP2011059114A (en) * 2009-09-11 2011-03-24 Krones Ag Device and method for investigating vessel lid
CN111060527A (en) * 2019-12-30 2020-04-24 歌尔股份有限公司 Character defect detection method and device

Also Published As

Publication number Publication date
JP3001079B2 (en) 2000-01-17

Similar Documents

Publication Publication Date Title
EP0483966B1 (en) Method of and apparatus for inspecting a transparent or translucent article such as a bottle
US7329855B2 (en) Optical inspection of glass bottles using multiple cameras
US7330251B2 (en) Method and apparatus for producing reference image in glass bottle inspecting apparatus
JPH06100555B2 (en) Defect inspection method and device for transparent object
WO1994011843A1 (en) Inspection method using unique templates and histogram analysis
GB2297214A (en) Apparatus for detecting defects on the bottom of bottles by manipulating an image to remove knurls
JP3344995B2 (en) Tablet surface inspection device
JP3001079B2 (en) Printed character inspection method and printed character inspection device
JPH07332951A (en) Apparatus and method for inspecting image
JPH05164706A (en) Inspecting method for mixing-in of vessel of different kind
EP0870274A1 (en) Inspection system for exterior article surfaces
JPS627588B2 (en)
JPH06118026A (en) Method for inspecting vessel inner surface
JP2002303583A (en) Inspection method for container and inspection device for container
JP2876999B2 (en) Printing defect inspection equipment
JP2621690B2 (en) Printing defect inspection equipment
JPH09105723A (en) Inspection setting value input displaying method in defect inspection and device therefor
JPH11178894A (en) Method and device for inspecting appearance of tablet and blister sheet packer
JPH0721301A (en) Mold number reading device
JPH043820B2 (en)
JPH08263656A (en) Character quality inspection method
JP2004226212A (en) Method and device for detecting pinhole defect and contamination defect on transparent object
JP3461128B2 (en) Appearance inspection method and device for stamped tablets
JPH0552763A (en) Inspecting apparatus of appearance of semiconductor device
JP3097067B2 (en) Printing inspection device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19991014

LAPS Cancellation because of no payment of annual fees