JP2015087889A - Printing inspection method - Google Patents

Printing inspection method Download PDF

Info

Publication number
JP2015087889A
JP2015087889A JP2013224867A JP2013224867A JP2015087889A JP 2015087889 A JP2015087889 A JP 2015087889A JP 2013224867 A JP2013224867 A JP 2013224867A JP 2013224867 A JP2013224867 A JP 2013224867A JP 2015087889 A JP2015087889 A JP 2015087889A
Authority
JP
Japan
Prior art keywords
character
dot
relative position
inspection method
determining
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
JP2013224867A
Other languages
Japanese (ja)
Other versions
JP6082686B2 (en
Inventor
佐藤 隆
Takashi Sato
隆 佐藤
弥生 中口
Yayoi Nakaguchi
弥生 中口
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.)
Hitachi Industrial Equipment Systems Co Ltd
Original Assignee
Hitachi Industrial Equipment Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Industrial Equipment Systems Co Ltd filed Critical Hitachi Industrial Equipment Systems Co Ltd
Priority to JP2013224867A priority Critical patent/JP6082686B2/en
Publication of JP2015087889A publication Critical patent/JP2015087889A/en
Application granted granted Critical
Publication of JP6082686B2 publication Critical patent/JP6082686B2/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 method capable of determining adequacy of printing with consideration of visibility.SOLUTION: A printing inspection method for determining quality of a printing character formed of a dot pattern comprises: an imaging step for imaging a character to be determined by a camera; an extracting step for extracting part of an image in which there is only the character to be determined from the image; a selecting step for selecting the dot pattern having high degree of matching as a reading candidate character after comparing the dot pattern of the character to be determined and a dot pattern which was registered in advance; a calculating step for selecting a specific dot among the dot pattern of the character to be determined and digitizing a relative position of the specific dot and an adjacent dot for calculating; and a determining step for comparing the value obtained in the calculating step and a preset threshold for determining as a character to be printed, and when the value obtained in the calculating step is in a range of the threshold, determining that the character is the character to be printed, and when the value is out of the range of the threshold, determining that the character is not the character to be printed.

Description

本発明は、印字検査方法に関する。   The present invention relates to a print inspection method.

食品や薬品の包装容器には、製造年月日や賞味期限、製造ロットなどの表示が法律上義務づけられており、それを実現するのがインクジェットプリンタ等の印字機である。印字機は、搬送ライン(包装ラインを含む)に設置され、次々に搬送されてくる包装容器への印字を行う。印字機による印字が正しく行われているかは、包装容器の印字を読み取る印字検査装置によってなされる。   Food and medicine packaging containers are legally required to display the date of manufacture, expiration date, production lot, etc., and this is achieved by a printing machine such as an ink jet printer. The printing machine is installed on a conveyance line (including a packaging line), and performs printing on packaging containers that are successively conveyed. Whether or not the printing by the printing machine is correctly performed is performed by a printing inspection device that reads the printing on the packaging container.

この印字検査装置の背景技術として、特開平7−181139号公報(特許文献1)がある。この公報には、「基準登録パターンと印字撮像した被検パターンとの差分パターンを求め、これを塊状成分抽出用フィルタに通して文字欠け部a、文字はみ出し部bを持つ残存パターンを得る。この残存パターンと登録パターンとのアンドをアンド回路でとることで文字欠け部aを抽出する。残存パターンと被検パターンとのアンドをアンド回路でとることで文字はみ出し部bを抽出する。更にa及びbの面積を求めると共に設定可変な重み比重W1、W2を乗算して総和Sを求める。これは加算回路で行う。ここでS=W1S1+W2S2である。W1とW2とを適宜設定することでSの値が種々変化し、文字欠け、文字はみ出しの比重に応じたSを得る。そして、この総和Sにより、印字品質の良否を視覚の判断に近い状態で判定できる」と記載されている。   As a background art of this print inspection apparatus, there is JP-A-7-181139 (Patent Document 1). In this publication, “a difference pattern between a reference registered pattern and a test pattern printed and imaged is obtained, and this is passed through a block extraction filter to obtain a remaining pattern having a character missing portion a and a character protruding portion b. The character missing portion a is extracted by taking an AND of the remaining pattern and the registered pattern by an AND circuit, and the character protruding portion b is extracted by taking an AND of the remaining pattern and the test pattern by the AND circuit. In addition to obtaining the area of b, the sum S is obtained by multiplying the weight ratio weights W1 and W2 which can be set, which is performed by an adder circuit, where S = W1S1 + W2S2. The value changes variously, and S is obtained according to the specific gravity of the missing character and the protruding character, and this sum S can determine whether the print quality is good or not in a state close to visual judgment. To have.

特開平7-181139号公報JP-A-7-181139

前記特許文献1には、基準文字と検査文字との差を検出して、印字品質の良否を判断する装置が記載されている。しかし、特許文献1の印字検査装置は、差の程度が同じであっても差の部分の位置がどこにあるかによって、正しい文字と見える場合と異なる文字と見える場合がある文字に対して、良否の判断を見分けることが難しい。   Japanese Patent Application Laid-Open No. 2004-133867 describes an apparatus that detects the quality of print quality by detecting a difference between a reference character and an inspection character. However, the print inspecting device of Patent Document 1 is acceptable for a character that may appear different from a correct character depending on where the difference is located, even if the degree of difference is the same. It is difficult to tell the judgment.

そこで、本発明は、検査を行う文字パターンと基準として登録された文字パターンとの差が小さくて一致の度合いが高い場合においても、視認性を考慮した印字合否判定が可能な印字検査方法を提供することを目的とする。   Therefore, the present invention provides a print inspection method capable of determining pass / fail of print in consideration of visibility even when a difference between a character pattern to be inspected and a character pattern registered as a reference is small and the degree of matching is high. The purpose is to do.

上記課題を解決するために、例えば特許請求の範囲に記載の構成を採用する。
本願は上記課題を解決する手段を複数含んでいるが、その一例を挙げるならば、ドットパターンからなる印字文字の品質を判定する印字検査方法であって、判定対象の文字をカメラで撮影する撮影工程と、前記撮影工程で撮影した画像から判定対象文字のみの画像を抽出する切出し工程と、前記切出し工程で得られた前記判定対象文字のドットパターンの中から特定ドットを選択して、前記特定ドットと隣接ドットとの相対位置を数値化して算出する計算工程と、前記計算工程で得られた数値とあらかじめ設定された印字対象文字と判定するための閾値とを比較して、前記計算工程で得られた数値が前記閾値の範囲内であれば印字対象文字と判定し、前記閾値の範囲外であれば非印字対象文字であると判定する判定工程と、を有することを特徴とする。
In order to solve the above problems, for example, the configuration described in the claims is adopted.
The present application includes a plurality of means for solving the above-described problems. For example, a print inspection method for determining the quality of a printed character composed of a dot pattern, in which a character to be determined is photographed with a camera. Selecting a specific dot from a dot pattern of the determination target character obtained in the cutting step, a cutting step of extracting an image of only the determination target character from the image captured in the shooting step, and the specifying Comparing the numerical value obtained by calculating the relative position of the dot and the adjacent dot with the numerical value obtained in the calculating step and a threshold value for determining a preset character to be printed, A determination step of determining that the character is a print target character if the obtained numerical value is within the threshold range, and determining that the character is a non-print target character if the numerical value is out of the threshold range. To.

本発明によれば、視認性を考慮した印字合否判定が可能な印字検査方法を提供することができる。   According to the present invention, it is possible to provide a print inspection method capable of determining pass / fail of print in consideration of visibility.

本発明の印字検査装置による判定方法の例1である。2 is an example 1 of a determination method by the print inspection apparatus of the present invention. 本発明の印字検査装置の構成図の例である。It is an example of the block diagram of the printing inspection apparatus of this invention. 本発明の印字検査装置のブロック図の例である。It is an example of the block diagram of the printing inspection apparatus of this invention. 基準文字と印字文字の一致の度合いが同じでも異なる文字と判断される例である。This is an example in which the reference character and the printed character are determined to be different even if the degree of matching is the same. 本発明の印字検査装置による判定方法の例2である。It is Example 2 of the determination method by the printing inspection apparatus of this invention. 本発明の例2による判定結果を示した表である。It is the table | surface which showed the determination result by Example 2 of this invention.

以下、実施例を図面を用いて説明する。   Hereinafter, examples will be described with reference to the drawings.

本実施例では、本発明になる印字検査装置の一例を説明する。
図2は、本実施例で用いる印字検査装置の構成図の例である。
印字検査装置は、検査する印字物6がカメラ3で読取れるように光を照射する照明装置4、光を照射された印字物6の文字を含む画像を読取るカメラ3、読取った画像を表示したり、検査の条件設定や、検査結果の表示を行うモニタ2、印字検査装置本体1内の処理部に画像処理の各種指示を与える外部装置7、カメラ3で読取った画像から文字を抽出して画像の加工を行い、文字の合否判定を行なう処理部や、照明の光量やタイミング等のコントロールを行う照明コントロール部を搭載している印字検査装置本体1からなる。
In this embodiment, an example of a print inspection apparatus according to the present invention will be described.
FIG. 2 is an example of a configuration diagram of the print inspection apparatus used in the present embodiment.
The print inspection apparatus displays an illumination device 4 that emits light so that the printed matter 6 to be inspected can be read by the camera 3, a camera 3 that reads an image including characters of the printed matter 6 irradiated with light, and a read image. Or the monitor 2 for setting the inspection conditions and displaying the inspection results, the external device 7 for giving various instructions for image processing to the processing section in the main body 1 of the printing inspection apparatus, and extracting characters from the image read by the camera 3 The printing inspection apparatus main body 1 is equipped with a processing unit that processes an image and determines pass / fail of characters, and an illumination control unit that controls the amount and timing of illumination.

ペットボトル入り飲料や缶詰などの製造工場では、出荷前の製品のボトルや缶の表面に、専用のインクジェットプリンタ等により消費期限や製造番号などを印字している。インクジェットプリンタ等により印字が行われた出荷前製品は、コンベア5等により搬送され、カメラ3によって印字文字が確認できる位置まで搬送されると、LED照明等の照明装置4による光の照射を行い、カメラ3で印字文字を認識できるようになる。カメラ3は検査する文字を含む画像を読取り、印字検査装置にデータが送られる。   In a manufacturing factory for beverages and canned beverages in plastic bottles, the expiration date, production number, etc. are printed on the surface of the bottles and cans of products before shipment by a dedicated ink jet printer or the like. The pre-shipment product printed by an inkjet printer or the like is transported by the conveyor 5 or the like, and is transported to a position where the printed characters can be confirmed by the camera 3. The camera 3 can recognize the printed characters. The camera 3 reads an image including characters to be inspected, and the data is sent to the print inspecting device.

印字検査装置には、あらかじめ認識対象の文字や記号(以下、記号も文字に含め、単に「文字」という。)について、印字状態が良好なドットパターンが基準パターンとして登録されている。印字検査装置では、まず読取った画像から個々の文字を切り出す処理を行った後、切り出された各文字のドットパターンを、それぞれ対応する基準パターンと照合することによって、各文字の印字状態の適否を判別する。ここで印刷状態が不良と判断されると、出荷の対象から除外されることとなる。   In the print inspection apparatus, a dot pattern with a good printing state is registered as a reference pattern in advance for characters and symbols to be recognized (hereinafter, the symbols are also included in the characters and simply referred to as “characters”). In the print inspection apparatus, first, after performing the process of cutting out individual characters from the read image, the dot pattern of each cut out character is compared with the corresponding reference pattern, thereby determining the suitability of the printing state of each character. Determine. If it is determined that the printing state is defective, it is excluded from shipping.

図3に本発明を適用した印字検査装置のブロック図の一例を示す。印字検査装置本体1内の処理部11からの指示により、照明コントロール部17は、カメラ3の読取りタイミングに合せて照明装置4の光量や発光タイミング等をコントロールする。カメラ3によって読取られた画像は、画像入力部14より印字検査装置本体1に入力され、一旦、画像記憶部15に蓄積される。処理部11では、画像記憶部15に蓄積された画像から、各々の文字切り出し処理、切出された文字の各々に対する文字認識処理を行なう。   FIG. 3 shows an example of a block diagram of a print inspection apparatus to which the present invention is applied. In accordance with an instruction from the processing unit 11 in the print inspection apparatus main body 1, the illumination control unit 17 controls the light amount and the light emission timing of the illumination device 4 in accordance with the reading timing of the camera 3. An image read by the camera 3 is input to the print inspection apparatus main body 1 from the image input unit 14 and temporarily stored in the image storage unit 15. The processing unit 11 performs each character segmentation process from the image stored in the image storage unit 15 and a character recognition process for each segmented character.

ROM12にはドット文字列の認識処理や良否判定処理のためのプログラムが格納されている。また、RAM13には、検査対象の文字列の各構成文字の基準パターンや、外部装置7から入力された設定データなどが格納されている。文字認識処理の後、処理部11では、RAM13に格納された条件に基づいて、読取られた文字のドットパターンとRAM13に格納されている基準パターンとの比較・判定処理を、ROM12に格納されているプログラムに従って行う。以上の一連の処理において、処理画像、検査条件、検査結果等は、入出力部16からモニタ2に表示される。   The ROM 12 stores a program for dot character string recognition processing and pass / fail judgment processing. The RAM 13 stores a reference pattern for each constituent character of the character string to be inspected, setting data input from the external device 7, and the like. After the character recognition process, the processing unit 11 stores the comparison / determination process between the dot pattern of the read character and the reference pattern stored in the RAM 13 based on the conditions stored in the RAM 13 in the ROM 12. Follow the program that you have. In the series of processes described above, the processed image, inspection conditions, inspection results, and the like are displayed on the monitor 2 from the input / output unit 16.

図4にドットパターンの一例を示す。図4(1)は「B」の基準パターンである。図4(2)は実際に「B」の文字として印字された一例であり、黒く塗り潰されたドットは、基準パターンにおける隣接ドット間の距離を1とすると、基準パターンの位置に比べ、マイナスのx方向に0.5の距離だけずれている。図4(3)も実際に「B」の文字として印字された一例である。黒く塗り潰されたドットは、基準パターンにおける隣接ドット間の距離を1とすると、基準パターンの位置に比べ、プラスのx方向に0.5の距離だけずれている。   FIG. 4 shows an example of a dot pattern. FIG. 4A shows a reference pattern “B”. FIG. 4 (2) is an example in which the character “B” is actually printed, and the dots filled in black are negative compared to the position of the reference pattern when the distance between adjacent dots in the reference pattern is 1. It is offset by a distance of 0.5 in the x direction. FIG. 4 (3) is also an example in which the character “B” is actually printed. The dots filled in black are shifted by a distance of 0.5 in the positive x direction compared to the position of the reference pattern, assuming that the distance between adjacent dots in the reference pattern is 1.

図4(2)と図4(3)はともに、1ドットが、基準パターンに対して、距離0.5ずれているのであるが、図4(2)は「B」と読めるが、図4(3)は「8」と判断される文字となる。この違いは、同じずれ量であっても、ずれを発生したドットとそのずれの方向が、判読できる文字に影響を与えているからである。   In both FIGS. 4 (2) and 4 (3), one dot is shifted from the reference pattern by a distance of 0.5, but FIG. 4 (2) can be read as “B”, but FIG. ) Is a character determined to be “8”. This difference is because even if the amount of deviation is the same, the dot where the deviation has occurred and the direction of the deviation affect the legible characters.

図1は本発明に関わる判定方法の一例を示したものである。図1(1)は文字「B」の基準パターンであり、図1(2)は文字「8」の基準パターンである。図1(3)、図1(4)は、文字「B」と設定して印字を行った検査文字の一例である。まず、図1(3)の印字良否の判定方法について説明する。   FIG. 1 shows an example of a determination method according to the present invention. FIG. 1A is a reference pattern of the character “B”, and FIG. 1B is a reference pattern of the character “8”. FIGS. 1 (3) and 1 (4) are examples of inspection characters printed with the letter “B” set. First, a method for determining the quality of printing in FIG. 1 (3) will be described.

印字検査装置本体1内には、全ての文字が基準パターンとしてRAM13に登録されている。カメラ3によって読取った画像から、処理部11により、図1(3)のドットパターンを検査文字として検出される。そして、ROM12に格納されたプログラムに従って処理部11内の比較手段により、その検出文字のドットパターンと登録されている基準パターンのドット位置を比較し、図1(3)と一致度の高い文字として、図1(1)の文字「B」と図1(2)の文字「8」が候補文字として選択される。   In the print inspection apparatus main body 1, all characters are registered in the RAM 13 as reference patterns. From the image read by the camera 3, the processing unit 11 detects the dot pattern of FIG. Then, according to the program stored in the ROM 12, the comparison unit in the processing unit 11 compares the dot pattern of the detected character with the dot position of the registered reference pattern to obtain a character having a high degree of coincidence with FIG. The character “B” in FIG. 1 (1) and the character “8” in FIG. 1 (2) are selected as candidate characters.

次に、図1(3)が、候補文字のどちらに読取ることができるかの判定を行なう。候補文字として文字「B」と文字「8」が選択された場合、両者の区別を行うためにポイントとなるドットは、y方向で中央部、x方向で左端に位置する黒く塗潰したドット(a)であり、このドットを相対位置判定ドットと呼ぶことにする。(以降、ドットを示す記号は、(a)と()でかこって示す。)
このドット(a)は、文字左端の縦線のドットパターンとして認識できる位置にある場合は検査文字を「B」と判断できるが、文字左端の縦線のドットパターンに対して右に位置するドットと認識される位置にある場合は検査文字を「8」と判断する。つまり、ドット(a)と周囲のドットとの位置関係で読取り文字が変わることになる。
Next, FIG. 1 (3) determines which of the candidate characters can be read. When the character “B” and the character “8” are selected as candidate characters, the dot serving as a point for distinguishing between the two is a black-filled dot (in the center in the y direction and the left end in the x direction ( a), and this dot is referred to as a relative position determination dot. (Hereafter, the symbols indicating dots are shown in parentheses (a) and ().)
If this dot (a) is in a position where it can be recognized as a vertical dot pattern at the left end of the character, the inspection character can be determined as “B”, but a dot positioned to the right of the vertical dot pattern at the left end of the character Is in the position recognized as “8”. That is, the read character changes depending on the positional relationship between the dot (a) and surrounding dots.

図1では、相対位置判定ドットの位置関係を確認するのに用いるドットを、位置比較用ドットとしてハッチングをしたドットで示している。RAM13には、候補文字に対して、相対位置判定ドットと位置比較用ドットの位置が格納されている。文字「8」と文字「B」では、図1に示すドット(b)、ドット(c)、ドット(d)の3ドットが相対位置判定ドットに該当する。   In FIG. 1, the dots used for confirming the positional relationship of the relative position determination dots are indicated by hatched dots as position comparison dots. The RAM 13 stores the positions of relative position determination dots and position comparison dots for candidate characters. In the character “8” and the character “B”, the three dots of dot (b), dot (c), and dot (d) shown in FIG. 1 correspond to relative position determination dots.

これらの位置比較用ドットと相対位置判定ドットとの位置関係を数値化し、その数値が、候補文字の許容数値内にあるものを読取り文字と判断する。その読取り文字と、実際に設定した文字が一致すれば、印字品質の判定は合格となって出荷され、異なれば不合格と判断されて出荷の対象から除外される。   The positional relationship between these position comparison dots and relative position determination dots is converted into a numerical value, and if the numerical value is within the allowable numerical value of the candidate character, it is determined as a read character. If the read character matches the actually set character, the print quality determination is accepted and shipped, and if the character is different, it is determined to be rejected and excluded from the shipment target.

次ぎに数値の求め方について説明する。位置ずれの方向はx方向とy方向があるが、図1に記載の判定フローの中で、ここではx方向について記述する。基準文字の隣接ドット間の距離を1とする。   Next, how to obtain numerical values will be described. There are x-direction and y-direction as misalignment directions. In the determination flow shown in FIG. 1, the x-direction is described here. The distance between adjacent dots of the reference character is 1.

各ドットの位置は、RAM13内に保存されており、相対位置判定ドットについて、各位置比較用ドットを基準にした相対位置を処理部11内の計算手段により計算する。得られた各相対位置について処理部11内の計算手段により総和を求めて、これを相対位置度とする。   The position of each dot is stored in the RAM 13, and the relative position with respect to the relative position determination dot is calculated by the calculation means in the processing unit 11 based on each position comparison dot. For each of the obtained relative positions, a sum is obtained by calculation means in the processing unit 11, and this is used as the relative position degree.

例えば、図1(1)の文字「B」の基準パターンでは、ドット(b)に対してドット(a)はx方向に関し同じ位置なので相対位置は0である。同様に、ドット(c)に対しても相対位置は0である。ドット(d)に対しては、x方向に関し、−1の位置にあるので、相対位置は−1である。これらの総和を求めると、0+0−1=−1となり、図1(1)の相対位置度は−1となる。   For example, in the reference pattern of the character “B” in FIG. 1A, the relative position is 0 because the dot (a) is the same position in the x direction with respect to the dot (b). Similarly, the relative position is 0 with respect to the dot (c). For the dot (d), the relative position is −1 because it is at the position −1 in the x direction. When these sums are obtained, 0 + 0-1 = −1, and the relative position degree in FIG.

本実施例では、文字「B」の許容範囲は、図1(1)の基準パターンに対して、相対位置判定ドットが±0.3のずれまで許容することとした。x方向ついて−0.3ずれた状態は図1(1−1)になる。これについて相対位置度を求めると、ドット(b)に対しての相対位置は−0.3、ドット(c)に対しては−0.3、ドット(d)に対しては−1.3であり、総和である相対位置度は、−1.9となる。   In the present embodiment, the allowable range of the letter “B” is set to allow the relative position determination dots to be shifted by ± 0.3 with respect to the reference pattern of FIG. A state shifted by -0.3 in the x direction is shown in FIG. When the relative position degree is obtained in this regard, the relative position with respect to the dot (b) is -0.3, the dot (c) is -0.3, and the dot (d) is -1.3. The relative position degree that is the sum is −1.9.

x方向について+0.3ずれた状態が図1(1−2)である。同様に相対位置度を求めると、ドット(b)に対しての相対位置は+0.3、ドット(c)に対しては+0.3、ドット(d)に対しては−0.7であり、相対位置度は、−0.1となる。よって、文字「B」の相対位置度許容範囲は、図1の表に示すように、−1.9〜−0.1である。   A state shifted by +0.3 in the x direction is shown in FIG. Similarly, when the relative position degree is obtained, the relative position with respect to the dot (b) is +0.3, the dot (c) is +0.3, and the dot (d) is −0.7. The relative positional degree is -0.1. Therefore, the relative position degree allowable range of the letter “B” is −1.9 to −0.1 as shown in the table of FIG.

同様に、文字「8」の許容範囲は、図1(2)の基準パターンに対して、相対位置判定ドットが±0.3のずれまで許容することとした。x方向について−0.3ずれた状態は図1(2−1)になる。これについて相対位置度を求めると、ドット(b)に対しての相対位置は+0.7、ドット(c)に対しても+0.7、ドット(d)に対しては−1.3であり、相対位置度は、+0.1となる。   Similarly, the allowable range of the character “8” is to allow the relative position determination dot to be shifted by ± 0.3 with respect to the reference pattern of FIG. A state shifted by -0.3 in the x direction is shown in FIG. When the relative position degree is calculated for this, the relative position with respect to the dot (b) is +0.7, the dot (c) is +0.7, and the dot (d) is -1.3. The relative positional degree is +0.1.

x方向について+0.3にずれた状態図が1(2−2)である。同様に相対位置度を求めると、ドット(b)に対しての相対位置は+1.3、ドット(c)に対しても+1.3、ドット(d)に対しては−0.7であり、相対位置度は、+1.9となる。よって、文字「8」の相対位置度許容範囲は、図1の表に示すように、+0.1〜+1.9である。   The state diagram shifted to +0.3 in the x direction is 1 (2-2). Similarly, when the relative position degree is obtained, the relative position with respect to the dot (b) is +1.3, the dot (c) is +1.3, and the dot (d) is −0.7. The relative position degree is +1.9. Therefore, the relative position degree allowable range of the character “8” is +0.1 to +1.9 as shown in the table of FIG.

これらの各基準パターンの相対位置度許容範囲が、RAM13に保存されている。例えば、図1(3)の「B」を印字した検査文字について相対位置度を測定する。ドット(b)に対しての相対位置は+0.2、ドット(c)に対しても+0.2、ドット(d)に対しては−0.8であり、相対位置度は、−0.4となる。   The relative position degree allowable range of each reference pattern is stored in the RAM 13. For example, the relative position degree is measured for the inspection character printed with “B” in FIG. The relative position with respect to the dot (b) is +0.2, the dot (c) is also +0.2, the dot (d) is −0.8, and the relative position degree is −0. 4

この数値に対して、RAM13に保存されている相対位置度許容範囲を比較し、候補文字のうち、文字「B」が選択される。選択された文字と設定文字を比較し、図1(3)の場合、同じ「B」と判断されたので、印字品質は合格となる。   The relative position degree allowable range stored in the RAM 13 is compared with this numerical value, and the character “B” is selected from the candidate characters. The selected character is compared with the set character, and in the case of FIG. 1 (3), since the same “B” is determined, the print quality is acceptable.

同様に、図1(4)の検査文字について相対位置度を測定すると、ドット(b)に対しての相対位置は+0.6、ドット(c)に対しても+0.6、ドット(d)に対しては−0.4であり、相対位置度は、+0.8となる。この数値は候補文字「8」に該当し、設定文字「8」と異なると判断され、印字品質は不合格となる。   Similarly, when the relative position degree is measured for the inspection character in FIG. 1 (4), the relative position with respect to the dot (b) is +0.6, the dot (c) is also +0.6, and the dot (d). Is -0.4, and the relative positional degree is +0.8. This numerical value corresponds to the candidate character “8” and is judged to be different from the set character “8”, and the print quality is rejected.

以上のように、文字判断のポイントとなるドットについて、そのドットの隣接ドットとの相対位置を求めて、その数値が許容範囲にあるかどうかで、合否を判断することにより、基準パターンと一致の度合いは同じでも、合格と判断できる文字と不合格と判断される文字を区別することができる。   As described above, for the dot that is the point of character judgment, the relative position of the dot with the adjacent dot is obtained, and whether or not the numerical value is within the allowable range is judged to be acceptable or not. Even if the degree is the same, it is possible to distinguish a character that can be determined to be acceptable from a character that is determined to be unacceptable.

よって、本発明によれば、検査を行う文字パターンと、基準として登録された文字パターンとの差が小さく一致の度合いが高い場合においても、視認性を考慮した印字合否判定が可能な印字検査装置を提供することができる。   Therefore, according to the present invention, even when the difference between the character pattern to be inspected and the character pattern registered as a reference is small and the degree of matching is high, the print inspection device can determine whether or not the print is acceptable in consideration of visibility. Can be provided.

本実施例では、相対位置度により判別する場合において、その判別の厳しさの程度を任意に設定可能とする装置の一例を示す。   In the present embodiment, an example of an apparatus that can arbitrarily set the degree of severity of discrimination when discriminating based on the relative position degree is shown.

図5は印字文字「V」の例である。図5(1)は文字「V」の基準パターンであり、図5(2)は文字「U」の基準パターンである。また、図5(3)、図5(4)、図5(5)は、文字「V」として設定して印字を行った検査文字の一例である。ここでは、y方向を例にして、一致度の高い文字として、文字「V」と文字「U」が候補文字となった場合を説明する。   FIG. 5 shows an example of the print character “V”. FIG. 5A is a reference pattern of the letter “V”, and FIG. 5B is a reference pattern of the letter “U”. 5 (3), FIG. 5 (4), and FIG. 5 (5) are examples of inspection characters that are set as the character “V” and printed. Here, the case where the character “V” and the character “U” are candidate characters as characters having a high degree of matching will be described by taking the y direction as an example.

ここで、厳密度を新しく設定する。厳密度は、本実施例では基準パターンからのずれ量を何分の一にするかを示し、厳密度が大きいほど、相対位置度の許容範囲が小さくなる。本実施例では、厳密度1の場合は、RAM13に、許容範囲を基準パターンからのずれ量±0.4以内と格納されている。この厳密度は外部装置7による設定が可能であり、外部装置7での厳密度設定時に、数値「2」を入力すると厳密度2に設定され処理部11内の計算手段により、厳密度1のずれ量を2で除算し、判定に用いるずれ量を±0.2以内としてRAM13に記憶される。   Here, the strictness is newly set. In this embodiment, the strictness indicates how much the deviation from the reference pattern is reduced. The higher the strictness, the smaller the allowable range of relative position. In this embodiment, when the strictness is 1, the allowable range is stored in the RAM 13 as the deviation from the reference pattern within ± 0.4. This strictness can be set by the external device 7. When the numerical value “2” is input when the strictness is set in the external device 7, the strictness is set to 2 and is set to 1 by the calculation means in the processing unit 11. The deviation amount is divided by 2, and the deviation amount used for determination is stored within the RAM 13 within ± 0.2.

文字「V」についてみると、図5(1)の基準パターンに対し、相対位置判定ドット(a)がy方向でプラス0.4ずれた場合が図5(1−1)、マイナス0.4ずれた場合が図5(1−2)であり、ずれ量が許容限度の位置にある場合に相当する。   Regarding the character “V”, the case where the relative position determination dot (a) is shifted by 0.4 in the y direction with respect to the reference pattern of FIG. The case of deviation is shown in FIG. 5 (1-2), which corresponds to the case where the amount of deviation is at the allowable limit.

これについて相対位置度を求めると、図5(1−1)では、ドット(b)に対しての相対位置は−0.6、ドット(c)に対しても−0.6、よって、相対位置度は、−1.2となる。   In this case, when the relative position degree is obtained, in FIG. 5A (1-1), the relative position with respect to the dot (b) is −0.6, and the relative position with respect to the dot (c) is −0.6. The position degree is -1.2.

図5(1−2)では、ドット(b)に対しての相対位置は−1.4、ドット(c)に対しても−1.4となり、相対位置度は、−2.8となる。よって、文字「V」の厳密度1の場合には、RAM13に相対位置度許容範囲が、図5の表の厳密度1に示すように、−2.8〜−1.2と記憶される。同様に、厳密度2に設定された場合は、ずれ量±0.2での相対位置度として、図5の表の厳密度2に示すように、RAM13に相対位置度許容範囲が、−2.4〜−1.6と記憶される。   In FIG. 5 (1-2), the relative position with respect to the dot (b) is −1.4, and the relative position with respect to the dot (c) is −1.4, and the relative position degree is −2.8. . Therefore, in the case of the strictness level 1 of the character “V”, the relative position degree allowable range is stored in the RAM 13 as −2.8 to −1.2 as shown in the strictness level 1 in the table of FIG. . Similarly, when the degree of strictness is set to 2, as the relative position degree at the deviation amount ± 0.2, as shown in the degree of strictness 2 in the table of FIG. .4 to -1.6 is stored.

同様に、文字「U」についてみると、図5(2)の基準パターンに対し、相対位置判定ドット(a)がy方向でプラス0.4ずれた場合が図5(2−1)、マイナス0.4ずれた場合が図5(4−2)であり、ずれ量が許容限度の位置にある場合に相当する。これについて相対位置度を求めると、図5(2−1)では、ドット(b)に対しての相対位置は+0.4、ドット(c)に対しても+0.4、よって、相対位置度は、+0.8となる。   Similarly, regarding the character “U”, when the relative position determination dot (a) is shifted by plus 0.4 in the y direction with respect to the reference pattern of FIG. The case where the deviation is 0.4 is shown in FIG. 5 (4-2), which corresponds to the case where the deviation is at the allowable limit. In this case, when the relative position degree is obtained, in FIG. 5 (2-1), the relative position with respect to the dot (b) is +0.4 and the dot (c) is also +0.4. Becomes +0.8.

図5(2−2)では、ドット(b)に対しての相対位置は−0.4、ドット(c)に対しても−0.4、よって、相対位置度は、−0.8となる。よって、RAM13に、文字「U」の相対位置度許容範囲として、図5の表の厳密度1に示すように、−0.8〜+0.8が記憶される。同様に、厳密度2に設定された場合は、RAM13に、図5の表の厳密度2に示すように、−0.4〜+0.4と記憶される。   In FIG. 5 (2-2), the relative position with respect to the dot (b) is −0.4, and the relative position with respect to the dot (c) is −0.4. Become. Therefore, −0.8 to +0.8 is stored in the RAM 13 as the relative position degree allowable range of the character “U” as shown in the strictness 1 in the table of FIG. Similarly, when the strictness is set to 2, as shown in the strictness 2 in the table of FIG.

次に、検査文字の相対位置度を求める。図5(3)の検査文字について、相対位置判定ドット(a)の相対位置度を求めると、ドット(b)に対しての相対位置は0、ドット(c)に対しても0となり、相対位置度は0となる。同様にして、図5(4)の検査文字についての相対位置度は−1.4、図5(5)の検査文字についての相対位置度は−2.6となる。   Next, the relative position degree of the inspection character is obtained. When the relative position degree of the relative position determination dot (a) is obtained for the inspection character in FIG. 5 (3), the relative position with respect to the dot (b) is 0, and the relative position determination dot (c) is also 0. The degree of position is 0. Similarly, the relative positional degree for the inspection character in FIG. 5 (4) is −1.4, and the relative positional degree for the inspection character in FIG. 5 (5) is −2.6.

得られた検査文字の相対位置度と、RAM13に記憶されている相対位置度許容範囲を、処理部11内の比較手段により比較することで、図5(3)、図5(4)、図5(5)の検査文字に対する判定結果は図6に示すようになる。   By comparing the relative position degree of the obtained inspection character and the relative position degree allowable range stored in the RAM 13 by the comparison means in the processing unit 11, FIG. 5 (3), FIG. 5 (4), FIG. The determination result for the inspection character 5 (5) is as shown in FIG.

厳密度1の場合は、文字「V」と読取れるのは、相対位置度−2.8〜−1.2なので、設定文字と同じ文字と読取って判定が合格となるのは、図5(4)、図5(5)である。厳密度2の場合は、文字「V」と読取れるのは、相対位置度−2.4〜−1.6なので、図5(3)、図5(4)、図5(5)のすべてが、判定で不合格となる。   In the case of the strictness 1, the character “V” can be read because the relative positional degree is −2.8 to −1.2. Therefore, the same character as the set character is read and the determination is passed. 4) and FIG. 5 (5). In the case of the strictness level 2, the character “V” can be read because the relative positional degree is −2.4 to −1.6. Therefore, all of FIGS. 5 (3), 5 (4), and 5 (5) are used. However, it is rejected by the judgment.

このように、厳密度を設定できるようにすることで、目的や用途に応じて、印字品質の判定の度合いを任意に変えることができる。   As described above, by setting the strictness, the degree of determination of the print quality can be arbitrarily changed according to the purpose and application.

なお、本発明は、上記した実施例に限定されるものではなく、様々な変形が含まれる。例えば、上記の実施例では、印字されたドットについて基準パターンとの位置関係を比較するようにしたが、印字パターンを所定のエリアに分割して、ポイントとなるエリアと所定の隣接エリアに関して印字の有無を評価するなど、種々の方法が可能である。   Note that the present invention is not limited to the above-described embodiments, and includes various modifications. For example, in the above embodiment, the positional relationship between the printed dots and the reference pattern is compared. However, the print pattern is divided into predetermined areas, and printing is performed with respect to a point area and a predetermined adjacent area. Various methods, such as evaluating the presence or absence, are possible.

また、相対位置度や厳密度は、本実施例の定義に限定されるものではなく、基準パターンとの位置ずれを量のみでなく、視認性を考慮した位置関係で示し、その許容位置ずれ量を任意に設定できる方法であれば、本実施例と同等の構成とみなすことができる。   In addition, the relative positional degree and the strictness are not limited to the definition of the present embodiment, and the positional deviation from the reference pattern is indicated not only by the amount but also by the positional relation considering the visibility, and the allowable positional deviation amount. If the method can arbitrarily set the value, it can be regarded as a configuration equivalent to the present embodiment.

1 印字検査装置本体
2 モニタ
3 カメラ
4 照明装置
5 コンベア
6 印字物
7 外部装置
11 処理部
12 ROM
13 RAM
14 画像入力部
15 画像記憶部
16 入出力部
17 照明コントロール部
DESCRIPTION OF SYMBOLS 1 Print inspection apparatus main body 2 Monitor 3 Camera 4 Illumination apparatus 5 Conveyor 6 Printed material 7 External apparatus 11 Processing part 12 ROM
13 RAM
14 Image input unit 15 Image storage unit 16 Input / output unit 17 Lighting control unit

Claims (4)

ドットパターンからなる印字文字の品質を判定する印字検査方法であって、
判定対象の文字をカメラで撮影する撮影工程と、
前記撮影工程で撮影した画像から判定対象文字のみの画像を抽出する切出し工程と、
前記判定対象文字のドットパターンとあらかじめ登録されたドットパターンとを比較して一致の度合いが高いドットパターンを読取り候補文字として選定する選定工程と、
前記切出し工程で得られた前記判定対象文字のドットパターンの中から特定ドットを選択して、前記特定ドットと隣接ドットとの相対位置を数値化して算出する計算工程と、
前記計算工程で得られた数値とあらかじめ設定された印字対象文字と判定するための閾値とを比較して、前記計算工程で得られた数値が前記閾値の範囲内であれば印字対象文字と判定し、前記閾値の範囲外であれば非印字対象文字であると判定する判定工程と、を有することを特徴とする印字検査方法。
A print inspection method for determining the quality of a printed character comprising a dot pattern,
A shooting process for shooting characters to be judged with a camera;
A cutout step of extracting an image of only the determination target character from the image taken in the photographing step;
A selection step of comparing the dot pattern of the determination target character with a dot pattern registered in advance and selecting a dot pattern having a high degree of matching as a reading candidate character;
A calculation step of selecting a specific dot from the dot pattern of the determination target character obtained in the cutting step, and calculating the relative position of the specific dot and the adjacent dot by quantification;
The numerical value obtained in the calculation step is compared with a preset threshold value for determining the character to be printed, and if the numerical value obtained in the calculation step is within the threshold value, it is determined as the character to be printed. And a determination step of determining that the character is a non-printing target character if it is outside the range of the threshold value.
請求項1に記載の印字検査方法であって、
前記閾値の数値範囲幅を設定する閾値設定工程を有することを特徴とする印字検査方法。
The print inspection method according to claim 1,
A printing inspection method comprising a threshold value setting step for setting a numerical range width of the threshold value.
請求項1に記載の印字検査方法であって、
前記閾値設定工程で、外部より入力された数値に応じた閾値の数値範囲幅を設定することを特徴とする印字検査方法。
The print inspection method according to claim 1,
In the threshold value setting step, a numerical value range width of a threshold value corresponding to a numerical value input from the outside is set.
請求項1乃至3のいずれか1項に記載の印字検査方法であって、
各工程において得られた情報を表示装置に表示する工程を有することを特徴とする印字検査方法。
The print inspection method according to any one of claims 1 to 3,
A printing inspection method comprising a step of displaying information obtained in each step on a display device.
JP2013224867A 2013-10-30 2013-10-30 Printing inspection method Active JP6082686B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013224867A JP6082686B2 (en) 2013-10-30 2013-10-30 Printing inspection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013224867A JP6082686B2 (en) 2013-10-30 2013-10-30 Printing inspection method

Publications (2)

Publication Number Publication Date
JP2015087889A true JP2015087889A (en) 2015-05-07
JP6082686B2 JP6082686B2 (en) 2017-02-15

Family

ID=53050634

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013224867A Active JP6082686B2 (en) 2013-10-30 2013-10-30 Printing inspection method

Country Status (1)

Country Link
JP (1) JP6082686B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021225108A1 (en) 2020-05-08 2021-11-11 株式会社エヌテック Print inspection device, print inspection method, and program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07181139A (en) * 1993-12-24 1995-07-21 Hitachi Eng Co Ltd Printing inspector, and image pattern filter
JP2008089379A (en) * 2006-09-29 2008-04-17 Hitachi Information & Control Solutions Ltd Printing inspection device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07181139A (en) * 1993-12-24 1995-07-21 Hitachi Eng Co Ltd Printing inspector, and image pattern filter
JP2008089379A (en) * 2006-09-29 2008-04-17 Hitachi Information & Control Solutions Ltd Printing inspection device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021225108A1 (en) 2020-05-08 2021-11-11 株式会社エヌテック Print inspection device, print inspection method, and program
KR20230011925A (en) 2020-05-08 2023-01-25 가부시키가이샤 엔테크 Factor inspection device, factor inspection method and program

Also Published As

Publication number Publication date
JP6082686B2 (en) 2017-02-15

Similar Documents

Publication Publication Date Title
EP3040903B1 (en) System and method for detecting barcode printing errors
US9607237B2 (en) Image processing apparatus and image processing method
US20210150695A1 (en) Inspection device
KR102106349B1 (en) Printed circuit board inspecting apparatus, method for detecting anomalry of solder paste and computer readable recording medium
US9544447B2 (en) Inspecting device, method for changing threshold, and computer-readable storage medium
WO2017164338A1 (en) Flaw detection apparatus and flaw detection method using flaw detection apparatus
CN102105888A (en) Method and device for checking print products, computer program and computer program product
CN103439348A (en) Remote controller key defect detection method based on difference image method
JP2008003876A (en) Inspection accuracy verification system
US20180082115A1 (en) Methods of detecting moire artifacts
JP6082686B2 (en) Printing inspection method
WO2016158057A1 (en) Print inspection method, print inspection device using same, and print inspection device body
TW201702589A (en) Pattern inspection apparatus and pattern inspection method
JP5558081B2 (en) Image formation state inspection method, image formation state inspection device, and image formation state inspection program
JP2005031069A (en) X-ray inspection apparatus
CN107516309B (en) Visual inspection method for defects of printing panel
TWM619409U (en) Intelligent processing system
JP2021149305A (en) Image processing apparatus, image processing method, and program
WO2018056428A1 (en) Printing inspection device and printing inspection method
JPWO2020071188A1 (en) Print inspection device
JP4872930B2 (en) Character recognition device, fuel pump module assembling device equipped with such device, and character recognition method
JP2002216070A (en) Bar code checking device
JP5365753B1 (en) Forming apparatus and method of manufacturing pattern formed product
CN116997769A (en) Inspection device, inspection method, glass plate manufacturing method, and inspection program
TWI782539B (en) Intelligent processing method and system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160217

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160217

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20161222

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170123

R150 Certificate of patent or registration of utility model

Ref document number: 6082686

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150