JP2015036937A - Printing inspection device and printing inspection method - Google Patents

Printing inspection device and printing inspection method Download PDF

Info

Publication number
JP2015036937A
JP2015036937A JP2013168965A JP2013168965A JP2015036937A JP 2015036937 A JP2015036937 A JP 2015036937A JP 2013168965 A JP2013168965 A JP 2013168965A JP 2013168965 A JP2013168965 A JP 2013168965A JP 2015036937 A JP2015036937 A JP 2015036937A
Authority
JP
Japan
Prior art keywords
character
characters
mask
score
print
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
JP2013168965A
Other languages
Japanese (ja)
Other versions
JP6197246B2 (en
Inventor
幸隆 問田
Yukitaka Toida
幸隆 問田
勇 森谷
Isamu Moriya
勇 森谷
敦夫 安彦
Atsuo Yasuhiko
敦夫 安彦
拓也 櫻井
Takuya Sakurai
拓也 櫻井
泰幸 依田
Yasuyuki Yoda
泰幸 依田
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.)
Suntory Beverage and Food Ltd
Original Assignee
Suntory Beverage and Food Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suntory Beverage and Food Ltd filed Critical Suntory Beverage and Food Ltd
Priority to JP2013168965A priority Critical patent/JP6197246B2/en
Publication of JP2015036937A publication Critical patent/JP2015036937A/en
Application granted granted Critical
Publication of JP6197246B2 publication Critical patent/JP6197246B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a printing inspection device and printing inspection method capable of automatically executing printing inspection accurate as high as visual inspection together with determination of the similarity to a standard character, when the quality of a printed character is determined.SOLUTION: The printing inspection device includes: an imaging unit for imaging a character in a printed part and outputting image data; a mask storage unit for storing a mask M corresponding to a standard character S of the character in the printed part and having a plurality of areas to which demerit points are set, the mask storage unit; a collation unit for collating the image data of the character in the printed part with the mask M corresponding to the character in the printed part, and calculating a score; and a character quality determination unit for determining the quality of the character on the basis of the score calculated by the collation unit.

Description

本発明は、飲料缶やペットボトル等の被検査物品における製造年月日や賞味期限等の印字状態の良否を判定する印字検査装置及び印字検査方法に関するものである。   The present invention relates to a print inspection apparatus and a print inspection method for determining the quality of a print state such as a manufacturing date and a shelf life in an inspected article such as a beverage can or a plastic bottle.

従来の印字検査装置及び印字検査方法としては、例えば以下の特許文献1に示すものが挙げられる。この文献には、検査対象となる文字列の文字に欠けやはみ出しがないかを抽出して解析することによって印字検査を行う旨が記載されている。   As a conventional print inspection apparatus and print inspection method, for example, the one shown in Patent Document 1 below can be cited. This document describes that a print inspection is performed by extracting and analyzing whether a character string to be inspected is missing or protruding.

特開平7−181139号公報(図1参照)JP-A-7-181139 (see FIG. 1)

上述の印字検査装置及び印字検査方法によれば、例えば、文字列を含む検査範囲にたまたま小さなインクのカスが付着していたり、あるいは文字列の文字のなかに、左右に傾いていたり、上下に伸びたり縮むなどして多少変形したものがあると(図6(b)〜(d)参照)、文字の欠けやはみ出しがあると判断され、たとえそれらの文字が目視によれば十分に判読可能で合格基準に達するものであったとしても、印字不良と判定されてしまう場合がある。
本発明の目的は、印字された文字の良否判断をする際に、標準文字に類似するかしないかの判断と合わせて、目視と同じ程度に正確な印字検査を自動で実施できる印字検査装置及び印字検査方法を提供することにある。
According to the above-described print inspection apparatus and print inspection method, for example, a small ink residue happens to adhere to the inspection range including the character string, or the character in the character string is inclined to the left or right, or up and down. If there is some deformation due to expansion or contraction (see Fig. 6 (b) to (d)), it is judged that characters are missing or protruding, and even if these characters are visually readable Even if it reaches the acceptance criteria, it may be determined that the printing is defective.
An object of the present invention is to provide a print inspection apparatus capable of automatically performing an accurate print inspection to the same extent as visually when determining whether a printed character is good or bad, and determining whether or not it is similar to a standard character. It is to provide a printing inspection method.

本発明の印字検査装置に係る第1特徴構成は、印字部分の文字を撮像して画像データを出力する撮像部と、前記印字部分の文字の標準文字に対応する、減点を設定した複数のエリアを有するマスクを記憶するマスク記憶部と、前記印字部分の文字の画像データと、該印字部分の文字に対応するマスクとを照合してスコアを算出する照合部と、前記照合部で算出されたスコアに基づいて文字の良否判定を行う文字良否判定部と、を備えることを特徴とする点にある。   A first characteristic configuration according to the print inspection apparatus of the present invention includes an image pickup unit that picks up characters of a print portion and outputs image data, and a plurality of areas set with deduction points corresponding to the standard characters of the characters of the print portion. Calculated by the collation unit, a mask storage unit that stores a mask, a collation unit that computes a score by collating image data of characters of the print portion and a mask corresponding to the characters of the print portion, and the collation unit And a character pass / fail determination unit that determines pass / fail of the character based on the score.

〔作用及び効果〕
本構成のごとく、複数のエリアを有するマスクを用いることによって、文字の形状に関与するエリア群のなかに画像データの文字の部分が存在しないエリアが検出されたり、文字の形状に関与しないエリア群のなかに画像データの文字の部分やインクのカス等が存在するエリアが検出されるごとに減点するように設定することができる。これにより印字された文字の形状が、対応する標準文字の形状に近ければ近いほど減点が少なくなり高いスコアが算出され、逆に印字された文字の汚れ度合や変形度合が大きければ大きいほど減点が大きくなり低いスコアが算出されるようになり、印字された文字の汚れ度合や変形度合を数値化して細かく評価することが可能となる。
従って、本構成によれば、仮に目視であれば十分に判読可能で合格基準に達している形状を有する文字のスコアを閾値として設定し、そのスコアよりも低い場合に印字不良と判定するなどの設定が可能となるため、標準文字に類似するかしないかの判断と合わせて、目視と同じ程度に正確な印字検査を自動で実施できるようになる。
[Action and effect]
As in this configuration, by using a mask having a plurality of areas, areas where the character portion of the image data does not exist in the area groups involved in the character shape are detected, or the area groups not involved in the character shape It is possible to set so that points are deducted every time an area in which image data character portions, ink residue, etc. are present is detected. As a result, the closer the shape of the printed character is to the shape of the corresponding standard character, the fewer points will be deducted and a higher score will be calculated, and conversely, the greater the degree of smearing and deformation of the printed character, the more points will be deducted. As the score increases and a low score is calculated, the degree of smearing and deformation of the printed characters can be digitized and evaluated finely.
Therefore, according to the present configuration, the score of a character having a shape that is sufficiently legible if visually observed and has reached the acceptance criteria is set as a threshold value, and if it is lower than the score, it is determined that the printing is defective, etc. Since the setting can be made, it is possible to automatically perform a print inspection as accurate as visual inspection together with the determination of whether or not it is similar to a standard character.

第2特徴構成は、前記減点を設定した複数のエリアが、対応する標準文字の特徴を示すエリアほど減点が高くなるようにランク分けされている点にある。   The second feature configuration is that the plurality of areas where the deduction points are set are ranked so that the deduction points are higher in the areas indicating the features of the corresponding standard characters.

〔作用及び効果〕
本構成によれば、印字された文字の形状が、対応する標準文字の形状に近ければ近いほどより高いスコアが算出され、逆に印字された文字の汚れ度合や変形度合が大きければ大きいほどより低いスコアが算出されるようになるため、より目視に近い正確な印字検査を実施することができるようになる。
[Action and effect]
According to this configuration, the closer the shape of the printed character is to the shape of the corresponding standard character, the higher the score is calculated, and vice versa. Since a low score is calculated, it is possible to perform an accurate print inspection that is closer to visual observation.

本発明の印字検査方法に係る第1特徴構成は、印字部分の文字を撮像して画像データを入手する撮像工程と、前記印字部分の文字の画像データと、前記印字部分の文字の標準文字に対応する、減点を設定した複数のエリアを有するマスクとを照合して、スコアを算出する照合工程と、前記照合工程で算出されたスコアに基づいて文字の良否判定を行う文字良否判定工程と、を包含する点にある。   The first characteristic configuration according to the printing inspection method of the present invention includes an imaging step of imaging a character of a printed part to obtain image data, image data of the character of the printed part, and standard characters of the character of the printed part. Matching a corresponding mask having a plurality of areas with deduction points, a matching step for calculating a score, and a character pass / fail determination step for determining pass / fail of a character based on the score calculated in the matching step; It is in the point of including.

〔作用及び効果〕
本構成のごとく、複数のエリアを有するマスクを用いることによって、文字の形状に関与するエリア群のなかに画像データの文字の部分が存在しないエリアが検出されたり、文字の形状に関与しないエリア群のなかに画像データの文字の部分やインクのカス等が存在するエリアが検出されるごとに減点するように設定することができる。これにより印字された文字の形状が、対応する標準文字の形状に近ければ近いほど減点が少なくなり高いスコアが算出され、逆に印字された文字の汚れ度合や変形度合が大きければ大きいほど減点が大きくなり低いスコアが算出されるようになり、印字された文字の汚れ度合や変形度合を数値化して細かく評価することが可能となる。
従って、本構成によれば、仮に目視であれば十分に判読可能で合格基準に達している形状を有する文字のスコアを閾値として設定し、そのスコアよりも低い場合に印字不良と判定するなどの設定が可能となるため、標準文字に類似するかしないかの判断と合わせて、目視と同じ程度に正確な印字検査を自動で実施できるようになる。
[Action and effect]
As in this configuration, by using a mask having a plurality of areas, areas where the character portion of the image data does not exist in the area groups involved in the character shape are detected, or the area groups not involved in the character shape It is possible to set so that points are deducted every time an area in which image data character portions, ink residue, etc. are present is detected. As a result, the closer the shape of the printed character is to the shape of the corresponding standard character, the fewer points will be deducted and a higher score will be calculated, and conversely, the greater the degree of smearing and deformation of the printed character, the more points will be deducted. As the score increases and a low score is calculated, the degree of smearing and deformation of the printed characters can be digitized and evaluated finely.
Therefore, according to the present configuration, the score of a character having a shape that is sufficiently legible if visually observed and has reached the acceptance criteria is set as a threshold value, and if it is lower than the score, it is determined that the printing is defective, etc. Since the setting can be made, it is possible to automatically perform a print inspection as accurate as visual inspection together with the determination of whether or not it is similar to a standard character.

第2特徴構成は、前記減点を設定した複数のエリアが、対応する標準文字の特徴を示すエリアほど減点が高くなるようにランク分けされている点にある。   The second feature configuration is that the plurality of areas where the deduction points are set are ranked so that the deduction points are higher in the areas indicating the features of the corresponding standard characters.

〔作用及び効果〕
本構成によれば、印字された文字の形状が、対応する標準文字の形状に近ければ近いほどより高いスコアが算出され、逆に印字された文字の汚れ度合や変形度合が大きければ大きいほどより低いスコアが算出されるようになるため、より目視に近い正確な印字検査を実施することができるようになる。
[Action and effect]
According to this configuration, the closer the shape of the printed character is to the shape of the corresponding standard character, the higher the score is calculated, and vice versa. Since a low score is calculated, it is possible to perform an accurate print inspection that is closer to visual observation.

本発明の印字検査装置及び印字検査方法において使用される、標準文字とその標準文字に対応するマスクの一例を示す図である。It is a figure which shows an example of the mask corresponding to a standard character and the standard character used in the printing inspection apparatus and printing inspection method of this invention. 本発明の印字検査方法における第1検査範囲設定工程を示す図である。It is a figure which shows the 1st test | inspection range setting process in the printing test | inspection method of this invention. 本発明の印字検査方法における位置補正工程を示す図である。It is a figure which shows the position correction process in the printing inspection method of this invention. 本発明の印字検査方法における第2検査範囲設定工程を示す図である。It is a figure which shows the 2nd test | inspection range setting process in the printing test | inspection method of this invention. 本発明の印字検査方法における照合工程を示す図である。It is a figure which shows the collation process in the printing inspection method of this invention. 撮像された文字(印字された文字)の未変形例(a)及び変形例(b)〜(d)を示す図である。It is a figure which shows the unmodified example (a) and the modified examples (b)-(d) of the imaged character (printed character).

以下、本発明の印字検査装置及び印字検査方法の実施形態を説明する。   Hereinafter, embodiments of the print inspection apparatus and the print inspection method of the present invention will be described.

〔実施形態〕
〔1〕印字検査装置
本発明に係る印字検査装置は、飲料缶やペットボトル等の被検査物品を連続して搬送する搬送手段と、被検査物品に印字された製造年月日や賞味期限等の印字の良否を判定する印字検査手段と、印字検査手段によって印字不良と判定された被検査物品を選択的に取り除く排出手段とを備えて構成される。
Embodiment
[1] Print inspection apparatus The print inspection apparatus according to the present invention includes a transport means for continuously transporting an inspected article such as a beverage can or a plastic bottle, a manufacturing date printed on the inspected article, an expiration date, etc. Printing inspection means for determining whether or not the printing is good, and discharging means for selectively removing an article to be inspected determined to be defective by the printing inspection means.

(搬送手段と排出手段)
本発明の印字検査装置における搬送手段及び排出手段については、従来の印字検査装置に通常用いられる公知のシステムや装置を使用して良い。例えば、搬送手段としては、公知のベルトコンベアシステムを使用して良い。また排出手段としては、エア吹き出し口からのエア噴射により排出するエアジェット排出装置や、アームによる払い出しによって排出する排出アーム装置等を使用することができる。
(Conveying means and discharging means)
As the conveying means and the discharging means in the print inspection apparatus of the present invention, a known system or apparatus that is usually used in conventional print inspection apparatuses may be used. For example, a known belt conveyor system may be used as the conveying means. As the discharge means, an air jet discharge device that discharges by air injection from an air outlet, a discharge arm device that discharges by discharge by an arm, or the like can be used.

(印字検査手段)
本発明の印字検査装置における印字検査手段は、
(1)印字される製造年月日や賞味期限等の文字列を予め入力して記憶させておく文字列記憶部、
(2)被検査物品の印字部分を撮像して画像データを出力する撮像部、
(3)撮像部から出力された画像データを記憶する画像データ記憶部、
(4)画像データにおいて文字列を含む第1検査範囲を設定する第1検査範囲設定部、
(5)第1検査範囲設定部の画像データを所定の閾値に基づいて2値化処理する第1データ変換部、
(6)2値化処理された第1検査範囲の文字列の右端、左端、上端、下端を捜査し、文字列の右端及び左端の中心であり、且つ文字列の上端及び下端の中心を画像の中心として位置補正を行う位置補正部、
(7)複数の標準文字のそれぞれを2値化処理して記憶可能な標準文字記憶部、
(8)文字列における各文字を含む第2検査範囲を、文字毎に設定する第2検査範囲設定部、
(9)第2検査範囲の画像データを所定の閾値に基づいて2値化処理する第2データ変換部、
(10)文字列記憶部に記憶されている文字列の各文字について、標準文字記憶部から対応する標準文字を読み出し、2値化処理された第2検査範囲毎に、対応する標準文字とのパターンマッチングを行う検査部、
(11)各標準文字に対応する、減点を設定した複数のエリアを有するマスクを記憶可能なマスク記憶部、
(12)パターンマッチングにより検査された第2検査範囲と、対応するマスクとを照合してスコアを算出する照合部、
(13)照合部で算出されたスコアに基づいて各文字の印字状態の良否判定を行う文字良否判定部、及び、
(14)文字列全体の印字状態の良否判定を行う総合良否判定部を備えて構成される。
(Printing inspection means)
The print inspection means in the print inspection apparatus of the present invention,
(1) a character string storage unit for inputting and storing a character string such as a production date and a shelf life to be printed in advance;
(2) an imaging unit that captures an image of a printed portion of the article to be inspected and outputs image data;
(3) an image data storage unit for storing image data output from the imaging unit;
(4) a first inspection range setting unit for setting a first inspection range including a character string in the image data;
(5) a first data conversion unit that binarizes the image data of the first inspection range setting unit based on a predetermined threshold;
(6) The right end, the left end, the upper end, and the lower end of the character string in the first inspection range subjected to the binarization process are searched, and the center of the upper end and the lower end of the character string is the image. A position correction unit that performs position correction as the center of
(7) a standard character storage unit capable of binarizing and storing each of a plurality of standard characters;
(8) a second inspection range setting unit that sets a second inspection range including each character in the character string for each character;
(9) a second data conversion unit that binarizes the image data of the second inspection range based on a predetermined threshold;
(10) For each character of the character string stored in the character string storage unit, the corresponding standard character is read from the standard character storage unit, and for each second inspection range binarized, Inspection unit for pattern matching,
(11) A mask storage unit capable of storing a mask having a plurality of areas set with deduction points corresponding to each standard character,
(12) A collation unit that calculates a score by collating the second inspection range inspected by pattern matching with a corresponding mask;
(13) A character pass / fail determination unit that determines pass / fail of the print state of each character based on the score calculated by the collation unit, and
(14) An overall quality determination unit that performs quality determination of the printing state of the entire character string is provided.

尚、標準文字記憶部に記憶させる標準文字としては、例えば、アラビア数字、ローマ数字、アルファベット、ギリシャ文字等が挙げられる。   Examples of standard characters stored in the standard character storage unit include Arabic numerals, Roman numerals, alphabets, and Greek letters.

(マスク)
図1では、マスクMを例示するものとして、標準文字のアラビア数字の「8」に対応するマスクMを示してある。
(mask)
In FIG. 1, as an example of the mask M, a mask M corresponding to the standard character “8” is shown.

マスクMには、複数のエリアが設定されている。各エリアには、所定の減点が設定されており、対応する標準文字Sの特徴を示すエリアほど減点が高くなるようにランク分けされている。   A plurality of areas are set in the mask M. Predetermined deduction points are set in each area, and ranks are assigned so that deduction points are higher in areas showing the characteristics of the corresponding standard character S.

図1に示す例では、マスクMに5×7=35箇所のエリアが設定されており、各エリアを、レベル1〜4エリアまでの4段階にランク分けしている。レベル数が大きいほど、数字「8」の特徴を示すより重要なエリアであり、より高い減点が設定される。例えば、図1において、マスクMの座標(x,y)=(3,4)で示されるエリアは、最高のレベル4エリアにランク付けされる。これは、仮に、標準文字「8」の座標(x,y)=(3,4)のエリアに配置される黒丸が欠けて無い場合、数字の「0」と見分けがつき難くなるため、最重要点エリアに位置付けられ、最も高い減点が設定される。   In the example shown in FIG. 1, 5 × 7 = 35 areas are set in the mask M, and each area is ranked in four stages from level 1 to area 4. The larger the number of levels, the more important the area showing the characteristic of the number “8”, and a higher deduction point is set. For example, in FIG. 1, the area indicated by the coordinates (x, y) = (3,4) of the mask M is ranked as the highest level 4 area. This is because if the black circle placed in the area of the coordinate (x, y) = (3,4) of the standard character “8” is not missing, it is difficult to distinguish it from the number “0”. Positioned in the important area, the highest deduction is set.

尚、マスクMは、ユーザーによって標準文字S毎に予め作成される。即ち、標準文字Sに応じて、そのエリアの数や、各エリアの減点などが設定される。そして、複数の標準文字Sのそれぞれに対応する複数のマスクMが、マスク記憶部に登録され記憶されている。   The mask M is created in advance for each standard character S by the user. That is, according to the standard character S, the number of areas, deduction points of each area, and the like are set. A plurality of masks M corresponding to each of the plurality of standard characters S are registered and stored in the mask storage unit.

〔2〕印字検査方法
次いで、図2〜5を参照しつつ、本発明の印字検査方法について説明する。
まず、被検査物品Pに印字される製造年月日や賞味期限等の文字列を予め入力して文字列記憶部に記憶させる。本実施形態における文字列を「204385/B」として例示する。
[2] Print Inspection Method Next, the print inspection method of the present invention will be described with reference to FIGS.
First, a character string such as the date of manufacture and the expiration date printed on the inspected article P is input in advance and stored in the character string storage unit. The character string in this embodiment is illustrated as “204385 / B”.

次に、CCD等のエリアセンサを内蔵したカメラ(撮像部の一例)を使用して、ベルトコンベア(搬送手段の一例)で搬送されてきた被検査物品Pの印字部分を撮像し、その画像データを画像データ記憶部に記憶させる(撮像工程)。   Next, using a camera (an example of an imaging unit) incorporating an area sensor such as a CCD, the printed portion of the article P to be inspected that has been conveyed by a belt conveyor (an example of a conveying means) is imaged, and the image data Is stored in the image data storage unit (imaging process).

図2に示すように、画像データ記憶部から画像データを読み出し、印字部分の文字列(「204385/B」)を含むように第1検査範囲W1を設定して、これを2値化処理する(第1検査範囲設定工程)。   As shown in FIG. 2, the image data is read from the image data storage unit, the first inspection range W1 is set so as to include the character string (“204385 / B”) of the print portion, and this is binarized. (First inspection range setting step).

図3に示すように、2値化処理された文字列の右端、左端、上端、下端を捜査し、文字列の右端及び左端の中心であり、且つ文字列の上端及び下端の中心を画像の中心Xとして位置補正を行う(位置補正工程)。   As shown in FIG. 3, the right end, left end, upper end, and lower end of the binarized character string are searched, the right end and left end centers of the character string, and the upper end and lower end centers of the character string Position correction is performed using the center X (position correction step).

次に、図4に示すように、文字列の文字毎に第2検査範囲W2を設定して、これら第2検査範囲W2のそれぞれを2値化処理する(第2検査範囲設定工程)。   Next, as shown in FIG. 4, a second inspection range W2 is set for each character of the character string, and each of these second inspection ranges W2 is binarized (second inspection range setting step).

次に、文字列記憶部に記憶されている文字列の各文字について、標準文字記憶部から対応する2値化処理された標準文字Sをそれぞれ読み出し、第2検査範囲W2毎に、対応する標準文字Sとのパターンマッチングを行う。このとき、第2検査範囲W2の各座標のデータ(図5参照)が、対応する標準文字Sの各座標のデータ(図1参照)と一致するか否かを検査する(検査工程)。   Next, for each character of the character string stored in the character string storage unit, the corresponding binarized standard character S is read from the standard character storage unit, and the corresponding standard is read for each second inspection range W2. Pattern matching with the letter S is performed. At this time, it is inspected whether or not the data of each coordinate in the second inspection range W2 (see FIG. 5) matches the data of each coordinate of the corresponding standard character S (see FIG. 1) (inspection process).

次に、文字列の各文字の標準文字Sに対応するマスクMのそれぞれを、マスク記憶部から呼び出す。そして、図5に示すように、パターンマッチングにより検査された第2検査範囲W2毎に、対応するマスクMと照合して、文字毎にスコアを算出する(照合工程)。   Next, each mask M corresponding to the standard character S of each character of the character string is called from the mask storage unit. Then, as shown in FIG. 5, for each second inspection range W2 inspected by pattern matching, the corresponding mask M is collated, and a score is calculated for each character (collation process).

スコアの算出は、以下の計算式(1)に従って行われる。
スコア=(N−Σ(|f1(x,y)−f2(x,y)|×M(x,y)))/N×100・・・式(1)
ここで、Nは総エリア数、f1は2値化処理された第2検査範囲W2内の文字、f2は対応する標準文字S、Mは設定された減点の値、(x,y)はエリアの座標を示し、f1及びf2には0又は1の値が入る。
The score is calculated according to the following calculation formula (1).
Score = (N−Σ (| f1 (x, y) −f2 (x, y) | × M (x, y))) / N × 100 (1)
Here, N is the total number of areas, f1 is the binarized character in the second inspection range W2, f2 is the corresponding standard character S, M is the set deduction point value, and (x, y) is the area The values of 0 and 1 are entered in f1 and f2.

スコアの算出方法の一例を以下に示す。
例えば、図1に示すマスクMの各エリアに以下のように減点を設定したとする。
レベル1エリア:1点減点
レベル2エリア:4点減点
レベル3エリア:16点減点
レベル4エリア:30点減点
これにより、上記式(1)におけるMの値は、例えば、M(2,1)=1、M(3,1)=4、M(1,1)=16、M(3,4)=30と設定される。また、Nの値はN=5×7=35となる。
An example of a score calculation method is shown below.
For example, assume that deduction points are set as follows in each area of the mask M shown in FIG.
Level 1 area: 1 point deduction Level 2 area: 4 points deduction Level 3 area: 16 points deduction Level 4 area: 30 points deduction As a result, the value of M in the above equation (1) is, for example, M (2, 1) = 1, M (3,1) = 4, M (1,1) = 16, and M (3,4) = 30. The value of N is N = 5 × 7 = 35.

f1(x,y)及びf2(x,y)については、エリアに黒丸があれば1、何もない場合は0とする。図1の「8」の標準文字Sでいえば、f1(1,1)=0、f1(1,2)=1、f1(2,1)=1等となる。図5の「8」の第2検査範囲W2でいえば、f2(1,1)=0、f2(1,2)=1、f2(2,1)=1等となる。   f1 (x, y) and f2 (x, y) are set to 1 if there is a black circle in the area, and set to 0 if there is nothing. Speaking of the standard character S of “8” in FIG. 1, f1 (1,1) = 0, f1 (1,2) = 1, f1 (2,1) = 1, and the like. In the second inspection range W2 of “8” in FIG. 5, f2 (1,1) = 0, f2 (1,2) = 1, f2 (2,1) = 1, and the like.

検査工程において、図1の「8」の標準文字Sと、図5の「8」の第2検査範囲W2との場合のように、第2検査範囲W2の各座標のデータと、対応する標準文字Sの各座標のデータとがすべて一致する場合、減点対象となるエリアが存在しない。そのため、照合工程において、上記式(1)のΣ(|f1(x,y)−f2(x,y)|×M(x,y))=0となり、スコア=((35−0)/35)×100=100点となる。   In the inspection process, as in the case of the standard character S of “8” in FIG. 1 and the second inspection range W2 of “8” in FIG. 5, the data of each coordinate of the second inspection range W2 and the corresponding standard When all the data of each coordinate of the character S match, there is no area to be deducted. Therefore, in the collation process, Σ (| f1 (x, y) −f2 (x, y) | × M (x, y)) = 0 in the above formula (1), and score = ((35-0) / 35) × 100 = 100 points.

しかし、例えば、図5の「8」の第2検査範囲W2において、レベル1エリアのf2(2,1)の黒丸が欠けていた場合、上記式(1)のΣ(|f1(x,y)−f2(x,y)|×M(x,y))=|f1(2,1)−f2(2,1)|×M(2,1)=|1−0|×1=1となるため、スコア=(35−1)/35×100=97点となる。   However, for example, when the black circle of f2 (2, 1) in the level 1 area is missing in the second inspection range W2 of “8” in FIG. 5, Σ (| f1 (x, y) in the above equation (1) ) −f2 (x, y) | × M (x, y)) = | f1 (2,1) −f2 (2,1) | × M (2,1) = | 1−0 | × 1 = 1 Therefore, the score = (35-1) / 35 × 100 = 97 points.

また、図5の「8」の第2検査範囲W2において、レベル2エリアのf2(5,5)の黒丸と、レベル2エリアのf2(5,6)の黒丸とが欠けており、さらにレベル3エリアのf2(1,4)に黒丸がある場合、減点は大きく増加し、上記式(1)のΣ(|f1(x,y)−f2(x,y)|×M(x,y))=(|1−0|×4)+(|1−0|×4)+(|0−1|×16)=24となるため、スコア=(35−24)/35×100=31点となる。   Further, in the second inspection range W2 of “8” in FIG. 5, the black circle of f2 (5, 5) in the level 2 area and the black circle of f2 (5, 6) in the level 2 area are missing, and further the level When there is a black circle in f2 (1, 4) in the three areas, the deduction point increases greatly, and Σ (| f1 (x, y) −f2 (x, y) | × M (x, y) in the above equation (1) )) = (| 1-0 | × 4) + (| 1-0 | × 4) + (| 0-1 | × 16) = 24, so score = (35-24) / 35 × 100 = 31 points.

特に、図5の「8」の第2検査範囲W2において、レベル4エリアのf2(3,4)の黒丸が欠けていた場合、上記式(1)のΣ(|f1(x,y)−f2(x,y)|×M(x,y))=|1−0|×30=30となるため、スコア=(35−30)/35×100=14点となる。   In particular, in the second inspection range W2 of “8” in FIG. 5, when the black circle of f2 (3, 4) in the level 4 area is missing, Σ (| f1 (x, y) − in the above equation (1) Since f2 (x, y) | × M (x, y)) = | 1−0 | × 30 = 30, score = (35−30) / 35 × 100 = 14 points.

次に、照合部で算出されたスコアに基づいて各文字の印字状態の良否判定を行う(文字良否判定工程)。即ち、スコアが、所定の値以上であれば、印字状態を「良」と判定し、所定スコア未満であれば「否」と判定する。例えば、スコア80点以上を「良」とする場合、上述のスコアの例によれば、100点及び97点の文字は「良」と判定され、31点及び14点の文字は「否」と判定される。また特にこの場合、レベル4エリアの黒丸が一つ欠けていただけで「否」と判定されることになる。   Next, the pass / fail determination of the printing state of each character is performed based on the score calculated by the collating unit (character pass / fail determination step). That is, if the score is equal to or greater than a predetermined value, the printing state is determined as “good”, and if the score is less than the predetermined score, “no” is determined. For example, when the score of 80 points or more is “good”, according to the above score example, the characters of 100 points and 97 points are determined as “good”, and the characters of 31 points and 14 points are “not”. Determined. Particularly in this case, it is judged as “No” only by missing one black circle in the level 4 area.

最後に、文字列全体の印字状態の良否判定を行う(総合判定工程)。即ち、文字列の文字全ての印字状態が「良」であれば、文字列の印字状態は「良」であると判定され、文字列の文字の中に一つでも「否」と判定されたものがあれば、文字列の印字状態は「否」であると判定される。文字列の印字状態を「否」と判定された被検査物品Pについては、その後、排出手段により取り除かれる。   Finally, quality determination of the print state of the entire character string is performed (overall determination process). That is, if the print status of all characters in the character string is “good”, the print status of the character string is determined to be “good”, and even one of the characters in the character string is determined to be “no”. If there is something, it is determined that the print state of the character string is “NO”. The inspected article P for which the character string print state is determined as “No” is then removed by the discharging means.

上述の実施形態では、図5に示すように、撮像された文字(印字された文字)が標準文字Sからほとんど変形していない例(図6(a))を用いて説明したが、図6(b)〜(d)に示されるような変形文字についても同様の手順で印字検査が実施される。   In the above-described embodiment, as illustrated in FIG. 5, the imaged characters (printed characters) have been described using an example (FIG. 6A) in which the characters are not substantially deformed from the standard characters S. For the deformed characters as shown in (b) to (d), the print inspection is performed in the same procedure.

〔その他の実施形態〕
上述の実施形態では、減点を設定したエリアのみを有するマスクを示したが、これに限定されるものではなく、減点を設定したエリアだけでなく減点を設定していないエリアをも有するマスクを使用しても良い。即ち、減点を設定していないエリアとしては、そのエリアにたまたま小さなインクのカスが付着するなどしていたりしても、印字された文字の良否判断に影響を与えないようなエリアが選定される。これにより、より一層、標準文字に類似するかしないかの判断と合わせて、目視と同じ程度に正確な印字検査を自動で実施できるようになる。
[Other Embodiments]
In the above-described embodiment, the mask having only the area where the deduction point is set is shown. However, the present invention is not limited to this, and the mask having not only the area where the deduction point is set but also the area where the deduction point is not set is used. You may do it. In other words, an area where no deduction point is set is selected such that even if a small ink residue adheres to the area, it does not affect the quality of printed characters. . This makes it possible to automatically perform a print inspection as accurate as visual inspection, together with the determination of whether or not it is similar to a standard character.

本発明に係る印字検査装置及び印字検査方法は、飲料缶やペットボトル等における製造年月日や賞味期限等の印字状態の良否を判定する場合に利用することができる。   The printing inspection apparatus and the printing inspection method according to the present invention can be used when determining the quality of a printing state such as a manufacturing date and a shelf life date in a beverage can or a plastic bottle.

M マスク
P 被検査物品
S 標準文字
W1 第1検査範囲
W2 第2検査範囲
M Mask P Article to be inspected S Standard character W1 First inspection range W2 Second inspection range

Claims (4)

印字部分の文字を撮像して画像データを出力する撮像部と、
前記印字部分の文字の標準文字に対応する、減点を設定した複数のエリアを有するマスクを記憶するマスク記憶部と、
前記印字部分の文字の画像データと、該印字部分の文字に対応するマスクとを照合してスコアを算出する照合部と、
前記照合部で算出されたスコアに基づいて文字の良否判定を行う文字良否判定部と、を備えることを特徴とする印字検査装置。
An image pickup unit that picks up characters of a print portion and outputs image data;
A mask storage unit for storing a mask having a plurality of areas set with deduction points corresponding to the standard characters of the characters of the print portion;
A collation unit for calculating a score by collating image data of characters of the print portion with a mask corresponding to the characters of the print portion;
A character inspection unit for determining whether or not a character is good based on the score calculated by the collation unit.
前記減点を設定した複数のエリアが、対応する標準文字の特徴を示すエリアほど減点が高くなるようにランク分けされていることを特徴とする請求項1に記載の印字検査装置。   The print inspection apparatus according to claim 1, wherein the plurality of areas where the deduction points are set are ranked so that the demerit points are higher in the areas indicating the characteristics of the corresponding standard characters. 印字部分の文字を撮像して画像データを入手する撮像工程と、
前記印字部分の文字の画像データと、前記印字部分の文字の標準文字に対応する、減点を設定した複数のエリアを有するマスクとを照合して、スコアを算出する照合工程と、
前記照合工程で算出されたスコアに基づいて文字の良否判定を行う文字良否判定工程と、を包含することを特徴とする印字検査方法。
An imaging process for obtaining image data by imaging characters in the printed portion;
A collation step of collating the image data of the characters of the printed portion with a mask having a plurality of areas set with deduction points corresponding to the standard characters of the characters of the printed portion, and calculating a score;
And a character pass / fail determination step of determining pass / fail of the character based on the score calculated in the collation step.
前記減点を設定した複数のエリアが、対応する標準文字の特徴を示すエリアほど減点が高くなるようにランク分けされていることを特徴とする請求項3に記載の印字検査方法。   The print inspection method according to claim 3, wherein the plurality of areas set with the deduction points are ranked so that the deduction points are higher in the areas indicating the characteristics of the corresponding standard characters.
JP2013168965A 2013-08-15 2013-08-15 Print inspection device and print inspection method Active JP6197246B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013168965A JP6197246B2 (en) 2013-08-15 2013-08-15 Print inspection device and print inspection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013168965A JP6197246B2 (en) 2013-08-15 2013-08-15 Print inspection device and print inspection method

Publications (2)

Publication Number Publication Date
JP2015036937A true JP2015036937A (en) 2015-02-23
JP6197246B2 JP6197246B2 (en) 2017-09-20

Family

ID=52687386

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013168965A Active JP6197246B2 (en) 2013-08-15 2013-08-15 Print inspection device and print inspection method

Country Status (1)

Country Link
JP (1) JP6197246B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108696663A (en) * 2017-04-11 2018-10-23 柯尼卡美能达株式会社 The recording medium that check device and the computer for storing inspection program can be read
WO2021225108A1 (en) 2020-05-08 2021-11-11 株式会社エヌテック Print inspection device, print inspection method, and program

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6265179A (en) * 1985-09-18 1987-03-24 Hitachi Ltd Method and equipment for visual inspection
JPH07181139A (en) * 1993-12-24 1995-07-21 Hitachi Eng Co Ltd Printing inspector, and image pattern filter
JPH08138049A (en) * 1994-11-10 1996-05-31 Hitachi Eng Co Ltd Method and device for checking dot character
JPH08320931A (en) * 1995-05-25 1996-12-03 Taiyo Yuden Co Ltd Method and device for inspecting character
JPH09251513A (en) * 1996-03-15 1997-09-22 Purasumitsuku:Kk Picture recognizing method
JP2002024805A (en) * 2000-07-03 2002-01-25 Keyence Corp Character inspection

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6265179A (en) * 1985-09-18 1987-03-24 Hitachi Ltd Method and equipment for visual inspection
JPH07181139A (en) * 1993-12-24 1995-07-21 Hitachi Eng Co Ltd Printing inspector, and image pattern filter
JPH08138049A (en) * 1994-11-10 1996-05-31 Hitachi Eng Co Ltd Method and device for checking dot character
JPH08320931A (en) * 1995-05-25 1996-12-03 Taiyo Yuden Co Ltd Method and device for inspecting character
JPH09251513A (en) * 1996-03-15 1997-09-22 Purasumitsuku:Kk Picture recognizing method
JP2002024805A (en) * 2000-07-03 2002-01-25 Keyence Corp Character inspection

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108696663A (en) * 2017-04-11 2018-10-23 柯尼卡美能达株式会社 The recording medium that check device and the computer for storing inspection program can be read
JP2018179699A (en) * 2017-04-11 2018-11-15 コニカミノルタ株式会社 Inspection device and inspection program
US10726556B2 (en) 2017-04-11 2020-07-28 Konica Minolta, Inc. Inspection apparatus and inspection program
WO2021225108A1 (en) 2020-05-08 2021-11-11 株式会社エヌテック Print inspection device, print inspection method, and program

Also Published As

Publication number Publication date
JP6197246B2 (en) 2017-09-20

Similar Documents

Publication Publication Date Title
JP6286866B2 (en) Image processing apparatus and image processing method
US9189694B2 (en) Image processing device and image processing method
JP6584250B2 (en) Image classification method, classifier configuration method, and image classification apparatus
EP2736012B1 (en) Object identification system and program
JP2019016249A (en) Determining apparatus, determining method, and determining program
JP6197246B2 (en) Print inspection device and print inspection method
JP5331621B2 (en) Vehicle inspection device
JP6244260B2 (en) Defect analysis apparatus and defect analysis method
JP4672692B2 (en) Word recognition system and word recognition program
JP2002163637A (en) Device and method for examining image
WO2017085952A1 (en) Data acquisition device, printing device, authenticity determination device, method, and program
US20070043722A1 (en) Classification system
JP6783671B2 (en) Classification system, recognition support device, recognition support method, and recognition support program
EP3379489A1 (en) Printing device, method, and program
US20050186002A1 (en) Printing condition inspection method, a character string inspection method and an inspection apparatus using the methods
CN109784398B (en) Classifier based on feature scale and subclass splitting
JP4194020B2 (en) Character recognition method, program used for executing the method, and character recognition apparatus
JP5712415B2 (en) Form processing system and form processing method
Naganjaneyulu et al. A multi clue heuristic based algorithm for table detection
US20230073961A1 (en) Board management system
Chen et al. Fuzzy template matching for printing character inspection
JPS6223350B2 (en)
JPH06309437A (en) Pattern inspecting device
JP3751389B2 (en) Wiring pattern inspection method and apparatus
JP2007317033A (en) Method for collating character image, collating device, and program

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20150717

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20151217

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20161102

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20161213

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170213

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170725

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170804

R150 Certificate of patent or registration of utility model

Ref document number: 6197246

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313117

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250