JP3147344B2 - Printed character inspection apparatus and printed character inspection method - Google Patents

Printed character inspection apparatus and printed character inspection method

Info

Publication number
JP3147344B2
JP3147344B2 JP20823393A JP20823393A JP3147344B2 JP 3147344 B2 JP3147344 B2 JP 3147344B2 JP 20823393 A JP20823393 A JP 20823393A JP 20823393 A JP20823393 A JP 20823393A JP 3147344 B2 JP3147344 B2 JP 3147344B2
Authority
JP
Japan
Prior art keywords
character
area
range
cut
printed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP20823393A
Other languages
Japanese (ja)
Other versions
JPH0746451A (en
Inventor
稔 前田
晶敬 藤山
優 蟹澤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP20823393A priority Critical patent/JP3147344B2/en
Publication of JPH0746451A publication Critical patent/JPH0746451A/en
Application granted granted Critical
Publication of JP3147344B2 publication Critical patent/JP3147344B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)
  • Image Processing (AREA)
  • Closed-Circuit Television Systems (AREA)

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 apparatus for inspecting the quality of characters printed on an object, based on image information obtained by imaging the object conveyed at high speed.
And a printed character inspection method .

【0002】[0002]

【従来の技術】印刷文字検査装置は、たとえば工場にお
いてビール缶の底に印刷された製造年月日等の文字の品
質を検査する場合等に使用される。従来の印刷文字検査
装置では、搬送される対象物が撮像位置に到達したこと
をセンサで検知し、センサからの検知信号を取り込むタ
イミングでストロボを発光させ、CCDカメラで対象物
を撮像する。そして、CCDカメラから出力された画像
信号を画像処理装置で処理した後、予め設定した適正な
画像と比較することにより、製造年月日等の文字が正し
く印刷されているか否かを判定している。
2. Description of the Related Art A printed character inspection apparatus is used, for example, in a factory for inspecting the quality of characters such as the date of manufacture printed on the bottom of a beer can. In a conventional printed character inspection apparatus, a sensor detects that a transported object has reached an imaging position, emits a strobe light at a timing at which a detection signal from the sensor is captured, and captures an image of the object using a CCD camera. After the image signal output from the CCD camera is processed by the image processing device, the image signal is compared with a preset appropriate image to determine whether characters such as the date of manufacture are correctly printed. I have.

【0003】[0003]

【発明が解決しようとする課題】ところで、特に対象物
を高速で搬送している場合には、対象物をセンサで検知
してからストロボを発光させるまでの間に、対象物は所
定の撮像位置からかなり離れた所に搬送されてしまい、
CCDカメラの撮像視野内において印刷文字の位置がず
れる。かかる場合、従来の印刷文字検査装置では、各印
刷文字が正常であっても、印刷文字の位置がずれている
ということだけで不良と判定されてしまい、したがって
対象物に印刷された文字の品質が正常であるか否かを適
正に検査することができないという問題があった。
In particular, when the object is conveyed at a high speed, the object is moved to a predetermined image pickup position between the time when the object is detected by the sensor and the time when the strobe light is emitted. Is transported far away from
The position of the printed character is shifted within the field of view of the CCD camera. In such a case, in the conventional printed character inspection apparatus, even if each printed character is normal, it is determined to be defective simply because the position of the printed character is shifted, and therefore, the quality of the character printed on the target object is deteriorated. There was a problem that it was not possible to properly inspect whether or not the device was normal.

【0004】本発明は上記事情に基づいてなされたもの
であり、印刷文字の位置がずれた場合でも印刷文字の品
質を適正に検査することができる印刷文字検査装置を提
供することを目的とするものである。
The present invention has been made based on the above circumstances, and has as its object to provide a printed character inspection apparatus capable of properly inspecting the quality of a printed character even when the position of the printed character is shifted. Things.

【0005】[0005]

【課題を解決するための手段】上記の目的を達成するた
めの本発明に係る印刷文字検査装置は、予め適正に印刷
された文字に基づく基準となる複数の切り出し範囲の大
きさ、該基準となる複数の切り出し範囲内に含まれる印
刷文字の面積Si(i=1,2,3,・・・)、該複数の面積
値Siの合計値Sに対する各面積値Siの割合νi(=
Si/S)とを記憶する基準データ記憶手段と、実際に
印刷された文字の画像情報に基づいて切り出した各実領
域の座標を決定する座標決定手段と、該決定された座標
に対して、前記基準データ記憶手段に記憶されている基
準となる切り出し範囲の大きさと同じ大きさの範囲を実
切り出し範囲として決定する切り出し範囲決定手段と、
該切り出し範囲決定手段で決定された実切り出し範囲内
の文字面積Si’を算出する文字面積算出手段と、該文
字面積算出手段で算出された複数の実切り出し範囲内の
文字面積の合計S’を算出する面積合計値算出手段とを
備え、該面積合計値算出手段で算出された合計値S’
と、前記割合νiとに基づいて切り出し範囲毎の文字面
積許容範囲を設定し、該文字面積許容範囲と前記文字面
積Si’とを比較することによって印刷文字の品質の良
否を判断することを特徴とするものである。
According to the present invention, there is provided a printed character inspecting apparatus for achieving the above object, comprising: , The area of the print character included in the plurality of cutout ranges (i = 1, 2, 3,...), And the ratio νi of each area value Si to the total value S of the plurality of area values Si (=
Si / S), coordinate determining means for determining the coordinates of each real area cut out based on image information of characters actually printed, and A cutout range determining unit that determines a range having the same size as the size of the cutout range serving as a reference stored in the reference data storage unit as an actual cutout range,
The character area calculating means for calculating the character area Si 'within the actual clipping range determined by the clipping range determining means, and the sum S' of the character areas within the plurality of actual clipping ranges calculated by the character area calculating means And a total value S ′ calculated by the area total value calculating means.
And setting the character area allowable range for each cut-out range based on the ratio νi and comparing the character area allowable range with the character area Si ′ to determine whether the quality of the printed character is good or bad. It is assumed that.

【0006】また、本発明に係る印刷文字検査装置は、
標準データが記憶された記憶手段と、印刷文字列の外接
四角形を設定する文字列外接四角形設定手段と、該印刷
文字列の外接四角形内の文字毎の外接四角形を設定する
文字外接四角形設定手段と、前記各外接四角形の位置を
算出する位置算出手段と、該算出された位置に前記記憶
手段に記憶されている基準となる切り出し範囲の大きさ
と同じ大きさの範囲を実際の切り出し範囲として決定す
る切り出し範囲決定手段と、前記各切り出し範囲内の文
字の面積を算出する面積算出手段と、前記記憶手段に記
憶されている基準となる文字列の面積に対する前記記憶
手段に記憶されている基準となる各文字の面積割合を算
出する面積割合算出手段と、印刷文字の面積値が許容範
囲内に入っているかどうかで文字の良否を判定する文字
判定手段とを有し、前記許容範囲は、前記面積割合算出
手段で算出された割合に応じて変化することを特徴とす
るものである。
[0006] A printed character inspection apparatus according to the present invention comprises:
Storage means for storing standard data, character string circumscribed rectangle setting means for setting a circumscribed rectangle of a print character string, and character circumscribed rectangle setting means for setting a circumscribed rectangle for each character in the circumscribed rectangle of the print character string A position calculating means for calculating the position of each of the circumscribed rectangles, and a range having the same size as a reference cutout range stored in the storage means at the calculated position is determined as an actual cutout range. A cut-out range determining unit, an area calculating unit that calculates an area of a character in each of the cut-out ranges, and a reference stored in the storage unit with respect to an area of a reference character string stored in the storage unit. An area ratio calculating unit that calculates an area ratio of each character; and a character determining unit that determines whether a character is good or not based on whether an area value of a printed character is within an allowable range. The allowable range is characterized in that changes in accordance with the ratio calculated by the area ratio calculating means.

【0007】また、本発明に係る印刷文字検査方法は、
予め適正に印刷された文字に基づく基準となる複数の切
り出し範囲の大きさ、該基準となる複数の切り出し範囲
内に含まれる印刷文字の面積Si(i=1,2,3,・・
・)、該複数の面積値Siの合計値Sに対する各面積値
Siの割合νi(=Si/S)を記憶し、実際に印刷さ
れた文字の画像情報に基づいて切り出した各実領域の座
標を決定し、該決定された座標に対して、前記記憶した
基準となる切り出し範囲の大きさと同じ大きさの範囲を
実切り出し範囲として決定し、その決定された実切り出
し範囲内の文字面積Si’を算出し、その算出された複
数の実切り出し範囲内の文字面積の合計S’を算出し、
該算出された合計値S’と、前記割合νiとに基づいて
切り出し範囲毎の文字面積許容範囲を設定し、該文字面
積許容範囲と前記文字面積Si’とを比較することによ
って印刷文字の品質の良否を判断することを特徴とする
ものである。
[0007] Further, the printed character inspection method according to the present invention comprises:
The size of a plurality of cutout ranges serving as references based on characters that have been properly printed in advance, and the areas Si (i = 1, 2, 3,...) Of the print characters included in the plurality of cutout ranges serving as the reference
.), The ratio νi (= Si / S) of each area value Si to the total value S of the plurality of area values Si is stored, and the coordinates of each real area cut out based on image information of characters actually printed Is determined for the determined coordinates, a range having the same size as the size of the stored reference cutout range is determined as the actual cutout range, and the character area Si ′ within the determined actual cutout range is determined. Is calculated, and a total S ′ of the calculated character areas within the plurality of actual cutout ranges is calculated,
Based on the calculated total value S ′ and the ratio νi, a character area allowable range for each cut-out range is set, and the character area allowable range is compared with the character area Si ′ to obtain a print character quality. Is judged to be good or bad.

【0008】また、本発明に係る印刷文字検査方法は、
基準となる文字列の面積及び基準となる各文字の面積の
データを含む標準データを記憶し、印刷文字列の外接四
角形を設定し、該印刷文字列の外接四角形内の文字毎の
外接四角形を設定し、前記各外接四角形の位置を算出
し、該算出された位置を中心として、前記記憶した基準
となる切り出し範囲の大きさと同じ大きさの範囲を実際
の切り出し範囲として決定し、その決定した各切り出し
範囲内の文字の面積を算出し、前記記憶した基準となる
文字列の面積に対する前記記憶した基準となる各文字の
面積割合を算出し、印刷文字の面積値が許容範囲内に入
っているかどうかで文字の良否を判定し、前記許容範囲
は、前記算出された割合に応じて変化することを特徴と
するものである。
[0008] Further, the printed character inspection method according to the present invention comprises:
The standard data including the area of the reference character string and the data of the area of each character serving as the reference are stored, the circumscribed rectangle of the print character string is set, and the circumscribed rectangle of each character in the circumscribed rectangle of the print character string is set. Setting, calculating the position of each of the circumscribed rectangles, and, with the calculated position as the center, determining a range having the same size as the stored reference cutout range as an actual cutout range, and determining the determined range. Calculate the area of the character within each cut-out range, calculate the area ratio of each stored character as a reference to the area of the stored reference character string, and set the area value of the printed character within the allowable range. Whether the character is good or bad is determined based on whether the character is present or not, and the allowable range changes according to the calculated ratio.

【0009】[0009]

【作用】本発明は前記の構成によって、実際の切り出し
範囲は、予め定めた基準となる切り出し範囲だけでな
く、実際に印刷された文字をも考慮して決定される。ま
た、各実際の切り出し範囲毎にその範囲内に含まれる
字面積を算出し、算出されたうちの任意の複数の面積の
合計が合計面積許容範囲に入っている場合に、すなわち
全体的な印字濃度が許容範囲に入っている場合に、各実
切り出し範囲の文字面積と基準となる文字面積とを比較
することにより、印刷文字の品質の良否を判定する。
刷文字が所定の位置からずれている場合でも、実際の切
り出し範囲をそのずれた分だけずらすことにより、その
印刷文字の品質を適正に判定することができる。尚、本
発明において、文字とは記号や図形を含むものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention depending on the configuration of the actual cut-out range, not only the cut-out range of the predetermined reference, Ru is determined in consideration of the actual printed character. Ma
Also, for each actual cut-out range, the statements included within that range
Character area, and calculate the
If the sum falls within the total area tolerance, ie
If the overall print density is within the acceptable range,
By comparing the character area the character area and the reference of the cut-out area, it determines the quality of the quality of the printed characters. Even if the print character is shifted from the predetermined position, the quality of the print character can be properly determined by shifting the actual cutout range by the shift amount. In the present invention, characters include symbols and figures.

【0010】[0010]

【0011】[0011]

【0012】[0012]

【0013】[0013]

【実施例】以下に本発明の一実施例について図面を参照
して説明する。図1は本発明の一実施例である印刷文字
検査装置の概略構成図、図2はその印刷文字検査装置に
おける画像処理装置の主要部の概略ブロック図、図3は
その印刷文字検査装置における撮像時の制御を説明する
ためのタイミング図、図4はその印刷文字検査装置にお
いて二値画像情報に対する特徴量を説明するための図、
図5はその印刷文字検査装置において印刷文字を検査す
る動作を説明するためのフローチャート、図6乃至図8
はその印刷文字検査装置において印刷文字の実際の切り
出し範囲の設定方法を説明するための図である。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a schematic configuration diagram of a printed character inspection device according to an embodiment of the present invention, FIG. 2 is a schematic block diagram of a main part of an image processing device in the printed character inspection device, and FIG. FIG. 4 is a timing chart for explaining the control at the time, FIG. 4 is a view for explaining a feature amount for binary image information in the printed character inspection apparatus,
FIG. 5 is a flowchart for explaining an operation of inspecting a print character in the print character inspection apparatus, and FIGS.
FIG. 4 is a diagram for explaining a method of setting an actual cut-out range of a print character in the print character inspection apparatus.

【0014】図1に示す印刷文字検査装置は、センサ2
と、ストロボ光源4と、ストロボ駆動部6と、CCDカ
メラ8と、対象物Xを搬送するコンベア等の搬送手段1
2と、画像処理装置20とを備えるものである。本実施
例では、対象物Xがビール缶であって、そのビール缶を
高速で搬送し(約1000個/分)、ビール缶の底の凹
部にインクジェットプリンタで印刷された製造年月日等
の文字が正確に印字されているか否かを検査する場合に
ついて考える。
The printed character inspection apparatus shown in FIG.
, A strobe light source 4, a strobe drive unit 6, a CCD camera 8, and a conveying means 1 such as a conveyor for conveying the object X.
2 and an image processing device 20. In the present embodiment, the object X is a beer can, the beer can is transported at a high speed (about 1000 / min), and the manufacturing date and the like printed by an ink jet printer in the concave portion at the bottom of the beer can. Consider the case of checking whether characters are printed correctly.

【0015】センサ2は、搬送される対象物XがCCD
カメラ8に近づいて、撮像位置に到達したことを検知
し、検知信号を出力するものである。ストロボ光源4
は、対象物Xに照射する閃光の光源であり、この照明下
で対象物Xが撮像される。また、ストロボ駆動部6は、
センサ2からの検知信号を取り込むタイミング(撮像タ
イミング)でストロボ光源4を発光させる。ここで、ス
トロボ光源4の発光期間は約1/10000秒である。
The object 2 to be conveyed is a CCD
It detects that it has approached the camera 8 and has reached the imaging position, and outputs a detection signal. Strobe light source 4
Is a flash light source that irradiates the object X, and the object X is imaged under this illumination. Also, the strobe drive unit 6
The strobe light source 4 emits light at a timing (imaging timing) at which a detection signal from the sensor 2 is taken. Here, the light emission period of the strobe light source 4 is about 1/10000 second.

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

【0017】また、本実施例で使用するCCDカメラ8
は、フレーム蓄積型のものである。すなわち、撮像素子
において感光部の画素のうち、たとえば、まず奇数ライ
ンの画素に蓄積された電荷を転送部に順次転送し、奇数
フィールドの電気信号を得る。この間、偶数ラインの画
素では、そのまま光電変換が続けられる。次に、偶数ラ
インの画素に蓄積された電荷を転送部に順次転送し、偶
数フィールドの電気信号を得る。その後、再び奇数ライ
ンの画素に蓄積された電荷を転送し、続いて偶数ライン
の画素に蓄積された電荷を転送するという動作を繰り返
す。特に、NTSC規格のCCDカメラ8では、一つの
画素の電荷蓄積期間は1/30秒であり、奇数ラインの
画素と偶数ラインの画素とでは電荷蓄積期間が、図3に
示すように、1/60秒ずれている。また、奇数(偶
数)ラインの画素の電荷蓄積期間の前半には、前回の奇
数(偶数)ラインの画素の電荷蓄積期間で蓄積した電荷
を転送する電荷転送期間が含まれている。この電荷転送
期間は約1/1600秒である。したがって、奇数ライ
ンの画素と偶数ラインの画素との電荷転送期間も1/6
0秒ずれており、奇数(偶数)ラインの画素が電荷を転
送していれば、偶数(奇数)ラインの画素は必ず電荷を
蓄積している。たとえば、図3に示すように、奇数ライ
ンの画素の電荷蓄積期間で蓄積された電荷は奇数ライ
ンの画素の電荷蓄積期間の前半で取り出され、偶数ラ
インの画素の電荷蓄積期間は偶数ラインの画素の電荷
蓄積期間の前半で取り出される。
Further, the CCD camera 8 used in this embodiment
Is of the frame accumulation type. That is, in the image sensor, for example, among the pixels of the photosensitive section, first, the charges accumulated in the pixels of the odd-numbered lines are sequentially transferred to the transfer section to obtain the electric signals of the odd-numbered fields. During this time, photoelectric conversion is continued as it is in the pixels on the even-numbered lines. Next, the charges accumulated in the pixels of the even-numbered lines are sequentially transferred to the transfer unit, and electric signals of the even-numbered fields are obtained. Thereafter, the operation of transferring the charges accumulated in the pixels of the odd-numbered lines again and subsequently transferring the charges accumulated in the pixels of the even-numbered lines is repeated. In particular, in the CCD camera 8 of the NTSC standard, the charge accumulation period of one pixel is 1/30 second, and the charge accumulation period of a pixel on an odd line and a pixel on an even line is 1/30 as shown in FIG. 60 seconds off. Further, the first half of the charge accumulation period of the pixels of the odd (even) line includes a charge transfer period for transferring the charges accumulated in the charge accumulation period of the pixel of the previous odd (even) line. This charge transfer period is about 1/1600 second. Therefore, the charge transfer period between the odd line pixels and the even line pixels is also 1/6.
The time is shifted by 0 seconds, and if the pixels of the odd (even) line are transferring the electric charge, the pixels of the even (odd) line always accumulate the electric charge. For example, as shown in FIG. 3, the charge accumulated in the charge accumulation period of the pixels in the odd lines is taken out in the first half of the charge accumulation period of the pixels in the odd lines, and the charge accumulation period of the pixels in the even lines is changed to the pixels in the even lines. In the first half of the charge accumulation period.

【0018】画像処理装置20は、CCDカメラ8から
の画像信号を処理するものであり、図2に示すように、
CCDカメラ8から出力された画像信号をディジタル信
号に変換して出力するA/D変換器29と、その画像信
号を一時記憶する画像メモリ30と、画像メモリ30に
記憶した信号から奇数フィールドの画像信号又は偶数フ
ィールドの画像信号を出力する出力フィールド決定部2
2と、画像処理部32と、画像判定部34と、画像処理
用メモリ36と、画像判定用メモリ38とを備えるもの
である。また、出力フィールド決定部22は、タイミン
グ信号発生部24と、フィールド判定部26と、フィー
ルド選択部28とを備えるものである。
The image processing device 20 processes an image signal from the CCD camera 8, and as shown in FIG.
An A / D converter 29 for converting an image signal output from the CCD camera 8 into a digital signal and outputting the digital signal; an image memory 30 for temporarily storing the image signal; and an image of an odd field based on the signal stored in the image memory 30 Output field determining unit 2 for outputting a signal or an image signal of an even field
2, an image processing unit 32, an image determining unit 34, an image processing memory 36, and an image determining memory 38. The output field determination unit 22 includes a timing signal generation unit 24, a field determination unit 26, and a field selection unit 28.

【0019】タイミング信号発生部24は、画像処理装
置20の各部とCCDカメラ8の動作を制御するための
タイミング信号を発生するものである。図3に示すよう
に、CCDカメラ8では、タイミング信号発生部24か
らのハイ(ロー)レベルの信号を取り込むタイミング
が、奇数(偶数)ラインの画素において今まで蓄積した
電荷を転送し、新たに電荷の蓄積を開始するタイミング
となる。また、タイミング信号発生部24からハイ(ロ
ー)レベルの信号を受けている1/60秒の期間が、C
CDカメラ8から奇数(偶数)フィールドの画像信号を
出力するカメラ出力期間となる。
The timing signal generating section 24 generates a timing signal for controlling the operation of each section of the image processing device 20 and the CCD camera 8. As shown in FIG. 3, in the CCD camera 8, the timing at which a high (low) level signal from the timing signal generation unit 24 is fetched is such that the charges accumulated so far in the pixels of the odd (even) lines are transferred and newly added. This is the timing to start accumulating charges. Also, the period of 1/60 seconds during which a high (low) level signal is received from the timing signal generator 24 is represented by C
This is the camera output period in which the odd (even) field image signal is output from the CD camera 8.

【0020】フィールド判定部26は、センサ2からの
検知信号を受けたときに、タイミング信号発生部24か
らのタイミング信号がハイレベルであるかローレベルで
あるかを判定し、その判定信号を出力するものである。
CCDカメラ8はタイミング信号発生部24からのタイ
ミング信号により画像処理装置20と同期がとられてい
るので、フィールド判定部26からの判定信号により、
その検知信号に対応する奇数フィールドの画像信号と偶
数フィールドの画像信号は、それぞれ奇数ラインの画素
及び偶数ラインの画素の電荷蓄積期間の前半で撮像され
たものか、或いは後半で撮像されたものであるかがわか
る。すなわち、センサ2から検知信号が送られたときに
タイミング信号発生部24からのタイミング信号がハイ
レベルであれば、この検知信号に対応する奇数フィール
ドの画像信号は奇数ラインの画素の電荷蓄積期間の前半
で撮像されたものと判定され、偶数フィールドの画像信
号は偶数ラインの画素の電荷蓄積期間の後半で撮像され
たものと判定される。また、タイミング信号がローレベ
ルであれば、奇数フィールドの画像信号は奇数ラインの
画素の電荷蓄積期間の後半で撮像されたものと判定さ
れ、偶数フィールドの画像信号は偶数ラインの画素の電
荷蓄積期間の前半で撮像されたものと判定される。
When receiving the detection signal from the sensor 2, the field determination unit 26 determines whether the timing signal from the timing signal generation unit 24 is at a high level or a low level, and outputs the determination signal. Is what you do.
Since the CCD camera 8 is synchronized with the image processing device 20 by the timing signal from the timing signal generator 24,
The image signal of the odd field and the image signal of the even field corresponding to the detection signal are those that were captured in the first half of the charge accumulation period of the pixels of the odd line and the pixels of the even line, respectively, or those that were captured in the second half. You know if there is. That is, if the timing signal from the timing signal generator 24 is at a high level when the detection signal is sent from the sensor 2, the image signal of the odd field corresponding to this detection signal is generated during the charge accumulation period of the pixel of the odd line. It is determined that the image was captured in the first half, and that the image signal of the even field was captured in the second half of the charge accumulation period of the pixels in the even line. If the timing signal is at a low level, it is determined that the image signal of the odd field is captured in the latter half of the charge accumulation period of the pixel of the odd line, and the image signal of the even field is determined as the image signal of the pixel of the even line. Is determined to have been taken in the first half of the process.

【0021】フィールド選択部28は、フィールド判定
部24からの判定信号に基づいて、ある検知信号に対応
する奇数フィールドの画像信号と偶数フィールドの画像
信号のうち、電荷蓄積期間の後半で撮像された方のフィ
ールドを選択するものである。本実施例では電荷転送期
間が電荷蓄積期間の前半に含まれているため、電荷蓄積
期間の後半で撮像された方のフィールドの画像信号は、
撮像タイミングが電荷転送期間と重なることはないの
で、フィールド選択部28によって適正な画像信号を選
択することができる。
The field selecting section 28 picks up an image of the odd field image signal and the even field image signal corresponding to a certain detection signal in the latter half of the charge accumulation period based on the judgment signal from the field judgment section 24. The other field is selected. In the present embodiment, since the charge transfer period is included in the first half of the charge accumulation period, the image signal of the field captured in the second half of the charge accumulation period is
Since the imaging timing does not overlap with the charge transfer period, an appropriate image signal can be selected by the field selection unit 28.

【0022】画像処理用メモリ36は、印刷される文字
について予め定めた複数の部分に区分するための基準と
なる切り出し範囲を特定する情報を記憶するものであ
る。すなわち、基準となる切り出し範囲とは、対象物X
に印刷される複数の文字をいくつかの部分に分けるため
の四角形の範囲をいう。切り出し範囲を特定する情報と
しては、各切り出し範囲の中心位置、いくつかの切り出
し範囲を一まとめにしたときのその中心位置、いくつか
の切り出し範囲の間の相対的な位置等がある。印刷文字
の良・不良の判定は、各切り出し範囲を単位として行わ
れる。
The image processing memory 36 stores information for specifying a cut-out range serving as a reference for dividing a character to be printed into a plurality of predetermined portions. That is, the cutout range serving as a reference is the object X
A range of a rectangle for dividing a plurality of characters to be printed into several parts. The information for specifying the cutout range includes the center position of each cutout range, the center position when several cutout ranges are put together, the relative position between some cutout ranges, and the like. The judgment of good or bad of the printed character is made for each cutout range as a unit.

【0023】画像処理部32は、フィールド選択部28
で選択された適正な画像信号について、所定の画像処理
を施すものである。具体的には、画像情報を二値化して
連結した領域の数を算出しそれらの領域にラベルを付
け、ラベル付けられた領域(以下、島又はラベルとも称
する。)についての面積及び外接四角形を算出し、実際
の切り出し範囲を決定し、そして各実際の切り出し範囲
に含まれる全ての印刷文字の面積及びその外接四角形を
示す特徴量データを算出する。算出された特徴量データ
は画像判定部34に出力される。
The image processing section 32 includes a field selecting section 28
The predetermined image processing is performed on the appropriate image signal selected in. Specifically, image information is binarized to calculate the number of connected regions, label those regions, and determine the area and circumscribed rectangle of the labeled region (hereinafter also referred to as an island or a label). Then, the actual cutout range is determined, and the feature amount data indicating the area of all the print characters included in each actual cutout range and the circumscribed rectangle is calculated. The calculated feature amount data is output to the image determination unit 34.

【0024】本実施例では、特徴量データとして、面積
値、並びに外接四角形を特定するX・Y座標及びその外
接四角形の中心位置を用いている。たとえば、図4
(a)に示すような三つの島A1 ,A2 ,A3 がある二
値画像情報に対しては、島A1 についての面積値とは、
その島A1 に含まれる画素数の総和をいう。また、島A
1の外接四角形を特定するためのX・Y座標とは、図4
(b)に示すように、島A1 に外接する四角形の頂点の
X・Y座標、すなわちX座標の最大値XEN及び最小値X
S 、Y座標の最大値YEN及び最小値YS のことである。
そして、その外接四角形の中心位置は、座標(XN ,
N )=((XEN+XS )/2,(YEN+YS)/2)に
より与えられる。
In this embodiment, as the feature data, the area value, the X and Y coordinates for specifying the circumscribed rectangle, and the center position of the circumscribed rectangle are used. For example, FIG.
For binary image information having three islands A 1 , A 2 , and A 3 as shown in (a), the area value for island A 1 is:
It refers to the total number of pixels included in the island A 1. Island A
X and Y coordinates for specifying the circumscribed rectangle 1 are shown in FIG.
As shown in (b), X · Y coordinates of the vertices of the rectangle circumscribing the island A 1, that is, the maximum value X EN and the minimum value X of the X coordinate
S , the maximum value Y EN and the minimum value Y S of the Y coordinate.
Then, the center position of the circumscribed rectangle is represented by coordinates (X N, Y
N ) = ((X EN + X S ) / 2, (Y EN + Y S ) / 2).

【0025】画像判定用メモリ38は、予め適正に印刷
された文字に基づいて前記基準となる切り出し範囲内に
含まれる全ての印刷文字の面積及び外接四角形を示す基
準特徴量データを記憶する。画像判定部34は、画像処
理部32から出力された各実際の切り出し範囲に含まれ
る印刷文字についての特徴量データを、画像判定用メモ
リ38に記憶された基準特徴量データと比較し、印刷文
字の良・不良の判定を行い、判定結果を出力する。
The image determination memory 38 stores reference feature amount data indicating the areas and circumscribed rectangles of all print characters included in the cut-out range serving as the reference based on characters that have been properly printed in advance. The image determination unit 34 compares the feature amount data of the print characters included in each actual cut-out range output from the image processing unit 32 with the reference feature amount data stored in the image determination memory 38, and Is determined, and the result of the determination is output.

【0026】次に、本実施例の印刷文字検査装置の動作
について説明する。まず、ビール缶がCCDカメラ8に
近づき、センサ2がビール缶を検知すると、センサ2は
検知信号をストロボ駆動部6及びフィールド判定部26
に出力する。いま、ストロボ駆動部6が検知信号を、た
とえば図3に示すタイミングAで取り込んだとする。こ
のとき、ビール缶は奇数ラインの画素では電荷蓄積期間
の後半で撮像され、偶数ラインの画素では電荷蓄積期
間の前半で撮像される。そして、各ラインの画素から
電荷が転送された後、奇数フィールドの画像信号と偶数
フィールドの画像信号がそれぞれ、カメラ出力期間、
カメラ出力期間内にCCDカメラ8から出力される。
一方、フィールド判定部26は、センサ2からの検知信
号を受けたときに、タイミング信号発生部24からのタ
イミング信号に基づいて、奇数フィールドの画像信号が
奇数ラインの画素の電荷蓄積期間の後半に撮像された
ものと判定する。フィールド選択部28では、フィール
ド判定部26からの判定信号に基づいて、偶数フィール
ドの画像信号を捨て、奇数フィールドの画像信号のみが
取り出される。
Next, the operation of the printed character inspection apparatus of this embodiment will be described. First, when the beer can approaches the CCD camera 8 and the sensor 2 detects the beer can, the sensor 2 outputs a detection signal to the strobe drive unit 6 and the field determination unit 26.
Output to Now, it is assumed that the strobe drive unit 6 captures a detection signal at, for example, a timing A shown in FIG. At this time, the image of the beer can is captured in the second half of the charge accumulation period in the pixels of the odd-numbered lines, and is captured in the first half of the charge accumulation period in the pixels of the even-numbered lines. Then, after the charges are transferred from the pixels of each line, the image signal of the odd field and the image signal of the even field are respectively output during the camera output period,
Output from the CCD camera 8 during the camera output period.
On the other hand, when receiving the detection signal from the sensor 2, the field determination unit 26 sets the image signal of the odd field in the second half of the charge accumulation period of the pixel of the odd line based on the timing signal from the timing signal generation unit 24. It is determined that an image has been taken. The field selection unit 28 discards the image signal of the even field based on the determination signal from the field determination unit 26 and extracts only the image signal of the odd field.

【0027】また、ストロボ駆動部6が検知信号を、た
とえば図3に示すタイミングBで取り込んだとする。こ
のとき、ビール缶は偶数ラインの画素では電荷蓄積期間
の後半で撮像され、奇数ラインの画素では電荷蓄積期
間の前半で撮像される。そして、各ラインの画素から
電荷が転送された後、偶数フィールドの画像信号と奇数
フィールドの画像信号がそれぞれ、カメラ出力期間、
カメラ出力期間内にCCDカメラ8から出力される。
一方、フィールド判定部26は、センサ2からの検知信
号を受けたときに、タイミング信号発生部24からのタ
イミング信号に基づいて、偶数フィールドの画像信号が
偶数ラインの画素の電荷蓄積期間の後半に撮像された
ものと判定する。フィールド選択部28では、フィール
ド判定部26からの判定信号に基づいて、奇数フィール
ドの画像信号を捨て、偶数フィールドの画像信号のみが
取り出される。
It is also assumed that the strobe drive unit 6 captures a detection signal at, for example, a timing B shown in FIG. At this time, the image of the beer can is captured in the second half of the charge accumulation period in the pixels of the even-numbered lines, and is captured in the first half of the charge accumulation period in the pixels of the odd-numbered lines. Then, after the charges are transferred from the pixels of each line, the image signal of the even field and the image signal of the odd field are respectively output to the camera output period,
Output from the CCD camera 8 during the camera output period.
On the other hand, when receiving the detection signal from the sensor 2, the field determination unit 26 determines, based on the timing signal from the timing signal generation unit 24, the image signal of the even field in the second half of the charge accumulation period of the pixel of the even line. It is determined that an image has been taken. The field selection unit 28 discards the image signal of the odd field based on the determination signal from the field determination unit 26 and extracts only the image signal of the even field.

【0028】次に、このようにしてフィールド選択部2
8で選択された適正な画像信号に基づき、ビール缶に印
刷された文字の品質を検査する。本実施例では、図6に
示すように、ビール缶の底に文字が二段構成で印刷され
ている場合を考えることにする。上段にはビールの製造
会社名が印刷され、下段には製造年月日が印刷されてい
る。通常、製造会社名はビール缶の側面にも記載されて
いるので、製造会社名の各文字については正確な品質の
検査は要求されない。したがって、本実施例の場合、製
造年月日を示す文字の品質を特に厳密に検査する。この
ため、本実施例では、製造会社名が印刷された上段部に
ついては全体を一つの基準となる切り出し範囲として設
定し、製造会社名については全体で印刷された文字の品
質の判定を行う。また、製造年月日が印刷された下段部
については一つの文字毎に基準となる切り出し範囲を設
定し、各文字毎に印刷された文字の品質の判定を行う。
この上段部に印刷された文字の基準となる切り出し範囲
を特定する情報と下段部に印刷された文字の基準となる
切り出し範囲を特定する情報とは、予め適正に印刷され
た文字に基づいて計測され画像処理用メモリ36に記憶
されている。
Next, the field selection unit 2
The quality of the characters printed on the beer cans is inspected based on the appropriate image signal selected in step 8. In the present embodiment, as shown in FIG. 6, a case is considered in which characters are printed in a two-stage configuration on the bottom of a beer can. In the upper row, the name of the beer maker is printed, and in the lower row, the date of manufacture is printed. Usually, the name of the manufacturer is also printed on the side of the beer can, so that accurate quality inspection is not required for each letter of the manufacturer. Therefore, in the case of the present embodiment, the quality of the character indicating the date of manufacture is particularly strictly inspected. For this reason, in the present embodiment, the entire upper part on which the name of the manufacturer is printed is set as a cut-out range serving as one reference, and the quality of the characters printed as a whole is determined for the manufacturer. In addition, for the lower part where the date of manufacture is printed, a cut-out range is set as a reference for each character, and the quality of the printed character is determined for each character.
The information that specifies the cut-out range that serves as a reference for the characters printed on the upper part and the information that specifies the cut-out range that serves as the reference for the characters that are printed on the lower part are measured based on characters that have been properly printed in advance. And stored in the image processing memory 36.

【0029】フィールド選択部28で選択された画像信
号が画像処理部32に送られると、画像処理部32は、
その画像信号を二値化した後、その二値した画像情報に
ついて連結した領域の数を算出し各領域にラベルを付け
る。そして、ラベル付けられた各島について、面積値
と、外接四角形を特定するX・Y座標及びその外接四角
形の中心位置を求める。
When the image signal selected by the field selection unit 28 is sent to the image processing unit 32, the image processing unit 32
After binarizing the image signal, the number of regions connected to the binarized image information is calculated, and each region is labeled. Then, for each of the labeled islands, the area value, the XY coordinates specifying the circumscribed rectangle, and the center position of the circumscribed rectangle are obtained.

【0030】次に、画像処理部32は、図5のフローチ
ャートにしたがって印刷文字の実際の切り出し範囲の決
定を行う。まず、図6(a)に示すように、印刷された
文字全体についてその上下端及び左右端の位置を求める
(step 1)。これは、各島についての外接四角形を特定
するX・Y座標のうち、X座標の最大値及び最小値、Y
座標の最大値及び最小値を見つけることにより求めるこ
とができる。そして、印刷文字全体についての外接四角
形の中心位置P0 を算出する(step 2)。
Next, the image processing unit 32 determines the actual cut-out range of the print character according to the flowchart of FIG. First, as shown in FIG. 6A, the positions of the upper and lower ends and the left and right ends of the entire printed character are obtained (step 1). This means that, of the X and Y coordinates that specify the circumscribed rectangle for each island, the maximum and minimum values of the X coordinate, Y
It can be obtained by finding the maximum and minimum values of the coordinates. Then, to calculate the center position P 0 of the circumscribed rectangle of the entire printed characters (step 2).

【0031】この印刷文字全体についての外接四角形の
中心位置P0 を通りX座標軸に平行な直線を境界とし
て、印刷文字全体を上段部と下段部に分ける(step
3)。そして、上記と同様にして、上段部に含まれる印
刷文字について上下端及び左右端の位置を求め(step
4)、図6(b)に示すように、その外接四角形の中心
位置P1 を算出する(step 5)。また、下段部に含まれ
る印刷文字についても上下端及び左右端の位置を求め
(step 6)、図7に示すように、その外接四角形の中心
位置P2 を算出する(step 7)。
The whole print character is divided into an upper part and a lower part with a straight line passing through the center position P 0 of the circumscribed rectangle of the entire print character and parallel to the X coordinate axis as a boundary (step).
3). Then, in the same manner as described above, the positions of the upper and lower ends and the left and right ends of the print characters included in the upper part are obtained (step
4), as shown in FIG. 6 (b), calculates the center position P 1 of the circumscribed quadrangle (step 5). Also, determine the position of the upper and lower ends and left and right ends for printing characters in the lower portion (step 6), as shown in FIG. 7, and calculates the center position P 2 of the circumscribed quadrangle (step 7).

【0032】このように算出された中心位置P1 ,P2
と、画像処理用メモリ36に記憶された基準となる切り
出し範囲を特定する情報に基づいて、実際の切り出し範
囲を決定する。すなわち、上段部に含まれる印刷文字に
ついては、図8に示すように、その中心位置P1 を基準
として実際の切り出し範囲R0'を定める(step 8)。そ
して、外接四角形の中心位置が切り出し範囲R0'内に含
まれる島について、それらの島の特徴量データから、合
計面積値S0'、外接四角形を特定するX・Y座標を求め
る(step 9)。また、下段部の印刷文字については、図
8に示すように、その外接四角形の中心位置P2 を基準
として、製造年月日の六つの各文字に対する実際の切り
出し範囲R1',R2',・・・ ,R6'を定める(step10)。
そして、各実際の切り出し範囲Ri ' (i=1,2,・・
・ ,6)について、外接四角形の中心位置が切り出し範
囲Ri ' 内に含まれる島について、それらの島の特徴量
データから、合計面積値Si ' 、外接四角形を特定する
X・Y座標を求める(step11)。たとえば、図7に示す
ように、下段部に含まれる印刷文字「D」を切り出した
とき、実際の切り出し範囲R6'内に単一のラベルしか含
まれていない場合には、合計面積値S6'はそのラベルの
面積値となる。また、実際の切り出し範囲R6'内に複数
のラベルが含まれている場合には、合計面積値S6'は各
ラベルの面積値の和となる。
The center positions P 1 and P 2 thus calculated
Then, the actual clipping range is determined based on the information that specifies the reference clipping range stored in the image processing memory 36. That is, for the print characters included in the upper part, as shown in FIG. 8, the actual cut-out range R 0 ′ is determined based on the center position P 1 (step 8). Then, for the islands in which the center position of the circumscribed rectangle is included in the cut-out range R 0 ′, the total area value S 0 ′ and the XY coordinates specifying the circumscribed rectangle are obtained from the feature data of those islands (step 9). ). Further, as shown in FIG. 8, the actual cut-out ranges R 1 ′, R 2 ′ for the six characters of the date of manufacture are determined for the print characters in the lower part, based on the center position P 2 of the circumscribed rectangle, as shown in FIG. ,..., R 6 ′ are determined (step 10).
Then, each actual cut-out range R i ′ (i = 1, 2,...)
For, 6), for the islands in which the center position of the circumscribed rectangle is within the cut-out range R i ′, the total area value S i ′ and the XY coordinates specifying the circumscribed rectangle are determined from the feature amount data of those islands. Ask (step 11). For example, as shown in FIG. 7, when the print character “D” included in the lower part is cut out and only a single label is included in the actual cutout range R 6 ′, the total area value S 6 'is the area value of the label. When a plurality of labels are included in the actual cut-out range R 6 ′, the total area value S 6 ′ is the sum of the area values of the labels.

【0033】こうして得られた各実際の切り出し範囲R
n ' (n=0,1,2,・・・ ,6)に含まれる印刷文字
の特徴量データは画像判定部34に出力され、画像判定
部34は以下に示す手順にしたがって印刷文字の品質を
検査する(step12)。尚、以下では、添字iは1から6
までの値をとり、添字nは0から6までの値をとるもの
とする。
Each actual cut-out range R thus obtained
The feature amount data of the print character included in n ′ (n = 0, 1, 2,..., 6) is output to the image determination unit 34, and the image determination unit 34 determines the quality of the print character according to the following procedure. Is inspected (step 12). In the following, the subscript i is 1 to 6
, And the subscript n takes a value from 0 to 6.

【0034】ところで、インクジエットプリンタで印刷
された文字について良・不良を判定する場合には、イン
クの温度や搬送手段12の速度等によって、ビール缶に
印刷される文字が全体的に太くなったり、細くなったり
することがある。このため、各ビール缶毎の印字文字の
濃度に応じた適正な判定を行う必要がある。このことを
考慮し、本実施例では、画像判定用メモリ38に、予め
基準データとして、基準サンプルを用いて計測された各
基準となる切り出し範囲Rn に含まれる印刷文字の基準
特徴量データ(面積値Sn(0)、外接四角形を特定するX
・Y座標)、基準となる切り出し範囲R0 に含まれる印
刷文字の面積値S0 についての許容範囲の上限値S0
MAX 及び下限値S0 MIN 、全面積値S(0) =S0(0)+S
1(0)+・・・+S6(0)に対する各面積値Si(0)の割合(比
率データ)γi =Si(0)/S(0) 、そして基準となる切
り出し範囲Ri に含まれる印刷文字の面積値Si につい
ての許容範囲を設定するための判定パラメータ
i MAX ,pi MIN を記憶させている。
When the quality of a character printed by an ink-jet printer is determined to be good or bad, the character printed on the beer can becomes thicker depending on the temperature of the ink, the speed of the conveying means 12, and the like. , May be thin. For this reason, it is necessary to make an appropriate determination according to the density of the printed characters for each beer can. Considering this fact, in the present embodiment, the image determining memory 38, as previously reference data, the reference feature amount data of printed characters included in the clipping range R n to be each reference which is measured using a reference sample ( Area value Sn (0) , X specifying the circumscribed rectangle
· Y coordinates), the upper limit value S 0 of the allowable range for the area value S 0 of printing characters in the cutout range R 0 as a reference
MAX and lower limit value S 0 MIN , total area value S (0) = S 0 (0) + S
1 (0) +... + S 6 (0) to the ratio of each area value S i (0) (ratio data) γ i = S i (0) / S (0) , and a reference cutout range R i The determination parameters p i MAX and p i MIN for setting the permissible range for the area value S i of the print character included in.

【0035】画像判定部34は、最初に、各実際の切り
出し範囲毎の特徴量データのうち面積値データについて
判定を行う。まず、上段部の実際の切り出し範囲R0'に
含まれる印刷文字の面積値S0'が S0 MAX ≦S0'≦S0 MIN ・・・・・ (1) の条件を満たすかどうかを判定する。このように、絶対
的に設定した上限値S0 MAX 及び下限値S0 MIN を用い
ることにより、面積値S0'が(1)式を満たす場合に
は、印字濃度が所定の許容範囲内にあると判定される。
このように、ある程度の数の文字についての面積値に基
づいて印刷濃度を判定することにより、一の文字のみに
ついての面積値に基づいて印刷濃度を判定する場合に比
べてより確実な印刷濃度の判定が可能となる。
The image determination section 34 first determines the area value data among the characteristic amount data for each actual cut-out range. First, it is determined whether or not the area value S 0 ′ of the print character included in the actual cut-out range R 0 ′ in the upper part satisfies the condition of S 0 MAX ≦ S 0 ′ ≦ S 0 MIN (1) judge. As described above, by using the absolutely set upper limit value S 0 MAX and lower limit value S 0 MIN , when the area value S 0 ′ satisfies the expression (1), the print density falls within a predetermined allowable range. It is determined that there is.
As described above, by determining the print density based on the area value of a certain number of characters, a more reliable print density can be obtained as compared with the case where the print density is determined based on the area value of only one character. Judgment becomes possible.

【0036】次に、下段部の各実際の切り出し範囲
i ' 含まれる印刷文字の面積値Si 'について判定す
る。この判定を行う場合には、まず、各実際の切り出し
範囲Rn' に含まれる印刷文字の面積値Sn ' から全面
積値S' =S0'+S1'+・・・ +S6'を計算した後、画像
判定用メモリ38に記憶された比率データγi を用いて
各実際の切り出し範囲Ri ' に含まれる印刷文字につい
ての基準面積値SiKiK=S' ×γiを計算する。この
基準面積値SiKが、今回計測された面積値Si ' に対す
る判定基準となる。このように、補正した基準面積値S
iKを用いることにより、印字濃度に応じた適正な判定を
行うことが可能となる。そして、これらの基準面積値S
iKに判定パラメータpi MAX ,pi MIN を掛けて、各実
際の切り出し範囲Ri 'に含まれる印刷文字の面積値S
i ' についての許容範囲の上限値SiK MAXiK MAX =SiK×pi MAX と下限値Sik MINiK MIN =SiK×pi MIN を計算する。そして、画像判定部34は、面積値Si '
が SiK MIN ≦Si ' ≦SiK MAX (i=1,2,・・・ ,6) ・・・・・ (2) の条件を満たすかどうかを判定する。(2)式の条件を
すべてみたす場合には、製造年月日の文字は消費者が読
み取れる程度に良好に印刷されていると判定される。こ
のように、製造年月日を表す文字については、文字毎に
判定することにより、製造年月日を表す文字について厳
密な検査を行うことができる。
Next, the area value S i ′ of the printed character included in each actual cut-out range R i ′ in the lower part is determined. When making this determination, first, the total area value S ′ = S 0 ′ + S 1 ′ +... + S 6 ′ is calculated from the area value S n ′ of the print character included in each actual cut-out range R n ′. After the calculation, the reference area value S iK S iK = S ′ × γ i for the print characters included in each actual cut-out range R i ′ is calculated using the ratio data γ i stored in the image determination memory 38. I do. This reference area value S iK becomes a criterion for the area value S i ′ measured this time. Thus, the corrected reference area value S
By using iK , it is possible to make an appropriate determination according to the print density. Then, these reference area values S
iK is multiplied by the determination parameters p i MAX and p i MIN to obtain the area value S of the print character included in each actual cut-out range R i ′.
Calculate the upper limit value S iK MAX S iK MAX = S iK × p i MAX and the lower limit value S ik MIN S iK MIN = S iK × p i MIN of the allowable range for i ′. Then, the image determination unit 34 calculates the area value S i
Is determined to satisfy the following condition: S iK MIN ≦ S i ′ ≦ S iK MAX (i = 1, 2,..., 6) (2) If all of the conditions of the expression (2) are satisfied, it is determined that the characters of the date of manufacture are printed well enough to be readable by the consumer. As described above, the character representing the manufacturing date can be strictly examined by determining the character for the manufacturing date for each character.

【0037】次に、画像判定部34は、各実際の切り出
し領域Rn ' に含まれる印刷文字の外接四角形を特定す
るX・Y座標について判定を行う。たとえば、下段部の
文字「D」について判定を行う場合には、図7に示すよ
うに、その外接四角形のX方向の外径FX ' とY方向の
外径FY ' を、画像判定用メモリ38に記憶された外接
四角形を特定するX・Y座標についての情報から得られ
る基準データFX ,FY と比較する。これにより、その
印刷文字が所定の形状を有するかどうか、或いは、文字
に欠けやはみだしがないかどうかを判定することができ
る。
Next, the image determining unit 34 determines the X and Y coordinates for specifying the circumscribed rectangle of the print character included in each actual cut-out area R n '. For example, when the determination is made for the letter “D” in the lower part, as shown in FIG. 7, the outer diameter F X ′ in the X direction and the outer diameter F Y ′ in the Y direction of the circumscribed rectangle are used for image determination. A comparison is made with reference data F X and F Y obtained from information about the X and Y coordinates specifying the circumscribed rectangle stored in the memory 38. This makes it possible to determine whether or not the print character has a predetermined shape, or whether or not the character is missing or protruding.

【0038】こうして、画像判定部34は、各実際の切
り出し領域Rn ' に含まれる印刷文字について各特徴量
データを判定し、その結果がすべて良である場合に、ビ
ール缶に印刷された文字の品質が良であると判定する。
In this way, the image determination unit 34 determines each feature amount data for the print characters included in each actual cut-out region R n ′, and when all the results are good, the character printed on the beer can Is determined to be of good quality.

【0039】本実施例の印刷文字検査装置では、画像処
理部が画像処理を行う際に、実際に印刷された文字全体
についての外接四角形の中心位置を算出し、この中心位
置に基づいて所定の印刷文字の実際の切り出し範囲を定
めることにより、実際に印刷された文字の位置が所定の
位置からずれている場合でも、印刷文字の実際の切り出
し範囲をそのずれに応じて補正して決定することができ
るので、印刷文字の位置ずれに対応することができ、し
たがって高速で搬送されるビール缶に印刷された文字に
ついても、その品質を正確に検査することができる。
In the printed character inspection apparatus according to the present embodiment, when the image processing unit performs image processing, the center position of the circumscribed rectangle for the entire actually printed character is calculated, and a predetermined position is determined based on the center position. Determining the actual cut-out range of printed characters by correcting the actual cut-out range of printed characters according to the deviation even if the position of the actually printed character is deviated from the predetermined position by determining the actual cut-out range of the printed character Therefore, it is possible to cope with misalignment of printed characters, and therefore, it is possible to accurately inspect the quality of characters printed on a beer can conveyed at high speed.

【0040】尚、本発明は、上記の実施例に限定される
ものではなく、その要旨の範囲内において種々の変形が
可能である。上記の実施例では、上段部の製造会社名を
表示する文字については、一の切り出し範囲を設定する
場合について説明したが、製造会社名を表示する文字に
ついても、各文字毎に一の切り出し範囲を設定するよう
にしてもよい。
It should be noted that the present invention is not limited to the above embodiment, and various modifications can be made within the scope of the invention. In the above embodiment, the case where one cut-out range is set for the characters indicating the manufacturer name in the upper part is described. However, for the character indicating the manufacturer name, one cut-out range is set for each character. May be set.

【0041】また、上記の実施例では、面積値データに
ついて判定を行う際に、一つの面積値データについては
予め設定した上限値及び下限値を用いて判定し、その他
の面積値データについては比率データを用いて判定する
場合について説明したが、たとえば、すべての面積値デ
ータを、予め設定した上限値及び下限値を用いて判定し
てもよい。
Further, in the above embodiment, when making a decision on the area value data, one area value data is decided by using a preset upper limit value and lower limit value, and the other area value data is determined by a ratio. The case where determination is made using data has been described. For example, all area value data may be determined using preset upper and lower limits.

【0042】更に、上記の実施例では、面積値データ
と、外接四角形データの双方を用いて印刷文字の品質を
判定する場合について説明したが、これはいずれか一方
のデータのみで印刷文字の品質を判定してもよい。
Further, in the above-described embodiment, the case where the quality of the print character is determined using both the area value data and the circumscribed rectangle data has been described. May be determined.

【0043】[0043]

【発明の効果】以上説明したように本発明によれば、前
記の構成としたことにより、実際の切り出し範囲は、予
め定めた基準となる切り出し範囲だけでなく、実際に印
刷された文字をも考慮して決定され、各実際の切り出し
範囲毎にその範囲内に含まれる文字面積を算出し、算出
されたうちの任意の複数の面積の合計が合計面積許容範
囲に入っている場合に、すなわち全体的な印字濃度が許
容範囲に入っている場合に、各実切り出し範囲の文字面
積と基準となる文字面積とを比較することにより、印刷
文字の品質の良否を判定するので、印刷文字が所定の位
置からずれている場合でも、実際の切り出し範囲をその
ずれた分だけずらすことにより、その印刷文字の品質を
適正に判定することができ、したがって特に高速で搬送
される対象物に印刷された文字の品質を判定するのに好
適な印刷文字検査装置を提供することができる。
As described above, according to the present invention, with the above-described configuration, the actual cutout range is not limited to the cutout range serving as a predetermined reference, but also to the characters actually printed. Determined in consideration of each actual cutout range , calculate the character area included in that range, and calculate
The sum of any of the multiple areas
Box, that is, the overall print density is
Character range of each actual cutout range
The quality of the printed character is determined by comparing the product with the reference character area. Therefore, even if the printed character is deviated from a predetermined position, the actual cutout range is deviated by the deviation. Accordingly, it is possible to appropriately determine the quality of the printed character, and therefore, it is possible to provide a printed character inspection apparatus which is particularly suitable for determining the quality of a character printed on an object conveyed at high speed.

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

【図1】本発明の一実施例である印刷文字検査装置の概
略構成図である。
FIG. 1 is a schematic configuration diagram of a printed character inspection apparatus according to an embodiment of the present invention.

【図2】本実施例の印刷文字検査装置における画像処理
装置の主要部の概略ブロック図である。
FIG. 2 is a schematic block diagram of a main part of an image processing apparatus in the printed character inspection apparatus according to the embodiment.

【図3】本実施例の印刷文字検査装置における撮像時の
制御を説明するためのタイミング図である。
FIG. 3 is a timing chart for explaining control at the time of imaging in the printed character inspection apparatus of the present embodiment.

【図4】本実施例の印刷文字検査装置において二値画像
情報に対する特徴量データを説明するための図である。
FIG. 4 is a diagram for explaining feature amount data for binary image information in the printed character inspection apparatus of the present embodiment.

【図5】本実施例の印刷文字検査装置において印刷文字
を検査する動作を説明するための図である。
FIG. 5 is a diagram illustrating an operation of inspecting a print character in the print character inspection apparatus according to the present embodiment.

【図6】本実施例の印刷文字検査装置における実際の切
り出し範囲の設定方法を説明するための図である。
FIG. 6 is a diagram for explaining a method of setting an actual cut-out range in the printed character inspection apparatus according to the present embodiment.

【図7】本実施例の印刷文字検査装置における実際の切
り出し範囲の設定方法を説明するための図である。
FIG. 7 is a diagram for explaining a method of setting an actual cutout range in the printed character inspection apparatus according to the present embodiment.

【図8】本実施例の印刷文字検査装置における実際の切
り出し範囲の設定方法を説明するための図である。
FIG. 8 is a diagram for explaining a method of setting an actual cut-out range in the printed character inspection apparatus of the present embodiment.

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

2 センサ 4 ストロボ光源 6 ストロボ駆動部 8 CCDカメラ 12 搬送手段 20 画像処理装置 22 出力フィールド決定手段 24 タイミング信号発生部 26 フィールド判定部 28 フィールド選択部 29 A/D変換器 30 画像メモリ 32 画像処理部 34 画像判定部 36 画像処理用メモリ 38 画像判定用メモリ Reference Signs List 2 sensor 4 strobe light source 6 strobe drive unit 8 CCD camera 12 transport means 20 image processing device 22 output field determination means 24 timing signal generation unit 26 field determination unit 28 field selection unit 29 A / D converter 30 image memory 32 image processing unit 34 image determination unit 36 image processing memory 38 image determination memory

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平4−255076(JP,A) 特開 昭55−119782(JP,A) 特開 昭63−15375(JP,A) 特開 昭60−29876(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06T 1/00 G06T 7/00 - 7/60 H04N 5/225 - 5/247 H04N 7/18 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-4-255076 (JP, A) JP-A-51-119782 (JP, A) JP-A-63-15375 (JP, A) JP-A-60-1985 29876 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G06T 1/00 G06T 7 /00-7/60 H04N 5/225-5/247 H04N 7/18

Claims (8)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 予め適正に印刷された文字に基づく基準
となる複数の切り出し範囲の大きさ、該基準となる複数
の切り出し範囲内に含まれる印刷文字の面積Si(i=
1,2,3,・・・)、該複数の面積値Siの合計値Sに対す
る各面積値Siの割合νi(=Si/S)とを記憶する
基準データ記憶手段と、 実際に印刷された文字の画像情報に基づいて切り出した
各実領域の座標を決定する座標決定手段と、 該決定された座標に対して、前記基準データ記憶手段に
記憶されている基準となる切り出し範囲の大きさと同じ
大きさの範囲を実切り出し範囲として決定する切り出し
範囲決定手段と、 該切り出し範囲決定手段で決定された実切り出し範囲内
の文字面積Si’を算出する文字面積算出手段と、 該文字面積算出手段で算出された複数の実切り出し範囲
内の文字面積の合計S’を算出する面積合計値算出手段
とを備え、 該面積合計値算出手段で算出された合計値S’と、前記
割合νiとに基づいて切り出し範囲毎の文字面積許容範
囲を設定し、該文字面積許容範囲と前記文字面積Si’
とを比較することによって印刷文字の品質の良否を判断
することを特徴とする印刷文字検査装置。
1. The size of a plurality of cutout ranges serving as references based on characters that have been properly printed in advance, and the area Si (i =
1, 2, 3,...), Reference data storage means for storing the ratio νi (= Si / S) of each area value Si to the total value S of the plurality of area values Si, Coordinate determining means for determining the coordinates of each real area cut out based on the image information of the character; and, for the determined coordinates, the same as the size of a cutout range serving as a reference stored in the reference data storage means. A cut-out range determining unit that determines a range of sizes as an actual cut-out range; a character area calculating unit that calculates a character area Si ′ within the actual cut-out range determined by the cut-out range determining unit; An area total value calculating means for calculating a total S 'of the calculated character areas in the plurality of actual cut-out ranges, based on the total value S' calculated by the area total value calculating means and the ratio νi Cut out range Set the text area tolerance, the with the character area tolerance character area Si '
A print character inspection apparatus for determining whether the quality of the print character is good or not by comparing
【請求項2】 前記文字面積許容範囲は、前記合計値
S’と前記割合νiとを乗算した値を基に、最大値決定
パラメータPiMAXを乗算した値を前記文字面積許容範
囲の最大値、最小値決定パラメータPiMINを乗算した
値を前記文字面積許容範囲の最小値として決定すること
を特徴とする請求項1記載の印刷文字検査装置。
2. The character area allowable range is obtained by multiplying a maximum value determination parameter Pi MAX based on a value obtained by multiplying the total value S ′ by the ratio νi, the maximum value of the character area allowable range, minimum value determining parameter Pi MIN printing character inspection apparatus according to claim 1, wherein the determining the multiplication value as the minimum value of the character area tolerance.
【請求項3】 標準データが記憶された記憶手段と、 印刷文字列の外接四角形を設定する文字列外接四角形設
定手段と、 該印刷文字列の外接四角形内の文字毎の外接四角形を設
定する文字外接四角形設定手段と、 前記各外接四角形の位置を算出する位置算出手段と、 該算出された位置に前記記憶手段に記憶されている基準
となる切り出し範囲の大きさと同じ大きさの範囲を実際
の切り出し範囲として決定する切り出し範囲決定手段
と、 前記各切り出し範囲内の文字の面積を算出する面積算出
手段と、 前記記憶手段に記憶されている基準となる文字列の面積
に対する前記記憶手段に記憶されている基準となる各文
字の面積割合を算出する面積割合算出手段と、 印刷文字の面積値が許容範囲内に入っているかどうかで
文字の良否を判定する文字判定手段とを有し、 前記許容範囲は、前記面積割合算出手段で算出された割
合に応じて変化することを特徴とする印刷文字検査装
置。
3. A storage means for storing standard data; a character string circumscribed rectangle setting means for setting a circumscribed rectangle of a print character string; and a character for setting a circumscribed rectangle for each character in the circumscribed rectangle of the print character string. Circumscribed rectangle setting means, position calculating means for calculating the position of each of the circumscribed rectangles, an actual size of the range of the cut-out range serving as a reference stored in the storage means at the calculated position, A cut-out range determining unit that determines a cut-out range; an area calculating unit that calculates an area of a character in each of the cut-out ranges; and a storage unit that stores an area of a reference character string stored in the storage unit in the storage unit. Area ratio calculating means for calculating the area ratio of each character serving as a reference, and a sentence for judging the quality of the character based on whether the area value of the printed character is within an allowable range. And a judging means, wherein the allowable range, the print character inspection apparatus characterized by changes in accordance with the ratio calculated by the area ratio calculating means.
【請求項4】 前記位置算出手段は、前記各外接四角形
の中心座標、複数の外接四角形をまとめたときの中心座
標、或いは前記外接四角形間の相対的な位置に基づいて
各外接四角形の位置を算出することを特徴とする請求項
3記載の印刷文字検査装置。
4. The position calculating means calculates a center coordinate of each of the circumscribed rectangles, a center coordinate when a plurality of circumscribed rectangles are put together, or a position of each circumscribed rectangle based on a relative position between the circumscribed rectangles. The printed character inspection apparatus according to claim 3, wherein the calculated value is calculated.
【請求項5】 予め適正に印刷された文字に基づく基準
となる複数の切り出し範囲の大きさ、該基準となる複数
の切り出し範囲内に含まれる印刷文字の面積Si(i=
1,2,3,・・・)、該複数の面積値Siの合計値Sに対す
る各面積値Siの割合νi(=Si/S)を記憶し、 実際に印刷された文字の画像情報に基づいて切り出した
各実領域の座標を決定し、 該決定された座標に対して、前記記憶した基準となる切
り出し範囲の大きさと同じ大きさの範囲を実切り出し範
囲として決定し、 その決定された実切り出し範囲内の文字面積Si’を算
出し、 その算出された複数の実切り出し範囲内の文字面積の合
計S’を算出し、 該算出された合計値S’と、前記割合νiとに基づいて
切り出し範囲毎の文字面積許容範囲を設定し、該文字面
積許容範囲と前記文字面積Si’とを比較することによ
って印刷文字の品質の良否を判断することを特徴とする
印刷文字検査方法。
5. The size of a plurality of cutout ranges serving as a reference based on characters that have been properly printed in advance, and the area Si (i =
1, 2, 3,...), The ratio νi (= Si / S) of each area value Si to the total value S of the plurality of area values Si is stored, and based on image information of characters actually printed. Then, the coordinates of each of the real regions cut out are determined, and a range having the same size as the stored reference cut-out range is determined as the real cut-out range with respect to the determined coordinates. A character area Si ′ within the cutout range is calculated, a total S ′ of the calculated character areas within the plurality of actual cutout ranges is calculated, and based on the calculated total value S ′ and the ratio νi A print character inspection method, comprising setting a character area allowable range for each cut-out range, and comparing the character area allowable range with the character area Si ′ to determine quality of a print character.
【請求項6】 前記文字面積許容範囲は、前記合計値
S’と前記割合νiとを乗算した値を基に、最大値決定
パラメータPiMAXを乗算した値を前記文字面積許容範
囲の最大値、最小値決定パラメータPiMINを乗算した
値を前記文字面積許容範囲の最小値として決定すること
を特徴とする請求項5記載の印刷文字検査方法。
6. The character area allowable range is obtained by multiplying a maximum value determination parameter Pi MAX based on a value obtained by multiplying the total value S ′ by the ratio νi, the maximum value of the character area allowable range, 6. The printed character inspection method according to claim 5, wherein a value multiplied by a minimum value determination parameter Pi MIN is determined as a minimum value of the character area allowable range.
【請求項7】 基準となる文字列の面積及び基準となる
各文字の面積のデータを含む標準データを記憶し、 印刷文字列の外接四角形を設定し、 該印刷文字列の外接四角形内の文字毎の外接四角形を設
定し、 前記各外接四角形の位置を算出し、 該算出された位置を中心として、前記記憶した基準とな
る切り出し範囲の大きさと同じ大きさの範囲を実際の切
り出し範囲として決定し、 その決定した各切り出し範囲内の文字の面積を算出し、 前記記憶した基準となる文字列の面積に対する前記記憶
した基準となる各文字の面積割合を算出し、 印刷文字の面積値が許容範囲内に入っているかどうかで
文字の良否を判定し、 前記許容範囲は、前記算出された割合に応じて変化する
ことを特徴とする印刷文字検査方法。
7. A method for storing standard data including an area of a reference character string and an area of each character as a reference, setting a circumscribed rectangle of the print character string, and setting characters in the circumscribed rectangle of the print character string. A circumscribed rectangle is set for each, a position of each of the circumscribed rectangles is calculated, and a range having the same size as the stored reference cutout range is determined as an actual cutout range around the calculated position. Calculating the area of the character within each of the determined cutout ranges; calculating the area ratio of each of the stored reference characters with respect to the area of the stored reference character string; A printed character inspection method, wherein the quality of a character is determined based on whether the character is within the range, and the allowable range changes according to the calculated ratio.
【請求項8】 前記各外接四角形の位置は、前記各外接
四角形の中心座標、複数の外接四角形をまとめたときの
中心座標、或いは前記外接四角形間の相対的な位置に基
づいて算出することを特徴とする請求項7記載の印刷文
字検査方法。
8. The position of each of the circumscribed rectangles may be calculated based on center coordinates of each of the circumscribed rectangles, center coordinates when a plurality of circumscribed rectangles are put together, or relative positions between the circumscribed rectangles. The printed character inspection method according to claim 7, characterized in that:
JP20823393A 1993-07-30 1993-07-30 Printed character inspection apparatus and printed character inspection method Expired - Fee Related JP3147344B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20823393A JP3147344B2 (en) 1993-07-30 1993-07-30 Printed character inspection apparatus and printed character inspection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20823393A JP3147344B2 (en) 1993-07-30 1993-07-30 Printed character inspection apparatus and printed character inspection method

Publications (2)

Publication Number Publication Date
JPH0746451A JPH0746451A (en) 1995-02-14
JP3147344B2 true JP3147344B2 (en) 2001-03-19

Family

ID=16552862

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20823393A Expired - Fee Related JP3147344B2 (en) 1993-07-30 1993-07-30 Printed character inspection apparatus and printed character inspection method

Country Status (1)

Country Link
JP (1) JP3147344B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007173912A (en) * 2005-12-19 2007-07-05 Glory Ltd Print inspection apparatus

Also Published As

Publication number Publication date
JPH0746451A (en) 1995-02-14

Similar Documents

Publication Publication Date Title
EP1568985A2 (en) Apparatus for surface inspection and method and apparatus for inspecting substrate
JPH05188696A (en) Image forming device
JPH11224892A (en) Failure detector of tape carrier and method of detecting failure
JP3147344B2 (en) Printed character inspection apparatus and printed character inspection method
JP3320164B2 (en) Printing inspection equipment
JP2005181218A (en) Board inspecting device
JP3204876B2 (en) Print inspection equipment
JP3711755B2 (en) Image reading apparatus and image reading method
JP3923293B2 (en) Image processing method, image processing apparatus, and image forming apparatus
JP3001079B2 (en) Printed character inspection method and printed character inspection device
JP3589756B2 (en) Inspection set value input display method and device for defect inspection
JP2006245739A (en) Image reading apparatus and image reading method
JPH1188585A (en) Image processing unit
JPH0666731A (en) Image inspecting apparatus
JP4653339B2 (en) Image matching processing method
JP3761313B2 (en) Tablet appearance inspection method, tablet appearance inspection device and blister sheet packaging machine
JP4653340B2 (en) Can appearance inspection device using a three-plate CCD camera
JPH07260445A (en) Method and apparatus for inspecting lead frame automatically
JP2004008961A (en) Quality judging apparatus for agricultural products and quality judging method for agricultural products
US7480420B2 (en) Method for recognizing abnormal image
JP2876999B2 (en) Printing defect inspection equipment
JP2809297B2 (en) Moving object imaging apparatus and imaging method
JP2745763B2 (en) Wiring pattern inspection equipment
US7724940B2 (en) Method of accurately determining similarity between target image and reference image
JPH1074262A (en) Streak defect inspection method and device therefor

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: 20001211

LAPS Cancellation because of no payment of annual fees