JP6675831B2 - Print inspection method, print inspection apparatus using the same, and print inspection apparatus main body - Google Patents

Print inspection method, print inspection apparatus using the same, and print inspection apparatus main body Download PDF

Info

Publication number
JP6675831B2
JP6675831B2 JP2015067422A JP2015067422A JP6675831B2 JP 6675831 B2 JP6675831 B2 JP 6675831B2 JP 2015067422 A JP2015067422 A JP 2015067422A JP 2015067422 A JP2015067422 A JP 2015067422A JP 6675831 B2 JP6675831 B2 JP 6675831B2
Authority
JP
Japan
Prior art keywords
image
character
print
unit
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.)
Active
Application number
JP2015067422A
Other languages
Japanese (ja)
Other versions
JP2016186766A (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.)
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 JP2015067422A priority Critical patent/JP6675831B2/en
Priority to PCT/JP2016/054634 priority patent/WO2016158057A1/en
Priority to CN201680015365.9A priority patent/CN107408289B/en
Publication of JP2016186766A publication Critical patent/JP2016186766A/en
Application granted granted Critical
Publication of JP6675831B2 publication Critical patent/JP6675831B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J2203/00Embodiments of or processes related to the control of the printing process
    • B41J2203/01Inspecting a printed medium or a medium to be printed using a sensing device
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J3/00Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed
    • B41J3/407Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed for marking on special material

Description

本発明は、印字検査方法及びその装置に係わり、特に食品や薬品の包装容器にインクジェットプリンタ等で印字された製造年月日、製造番号等の文字や記号(以下、記号も文字に含め、単に「文字」という)を、カメラで読み取り印字の良否を判別するのに好適な印字文字の検査方法及びその装置に関する。   The present invention relates to a printing inspection method and an apparatus therefor, and in particular, the date and time of manufacture, characters and symbols such as a serial number printed on packaging containers for food and medicine by an inkjet printer or the like (hereinafter, the symbols are also included in the characters, The present invention relates to a method and an apparatus for inspecting a printed character suitable for determining whether or not a printed character is good by reading a "character" with a camera.

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

この印字検査装置の背景技術として、特開2003−168119号公報(特許文献1)がある。特許文献1には、「複数のドットパターンが配列されている認識対象に対し、撮像して得られたドット画像を膨張するステップと、膨張処理後の画像をドットパターンの配列方向に向けて投影するステップとを、認識対象の配列を構成するドットパターンの数に対応する数の投影像が得られるまで繰り返すことで、複数のドットパターンから各文字間の境界を求めることができるようになる。そして、最終的に得られた投影像に基づき、画像上のドットパターンを切り出し、切り出された各ドットパターンをそれぞれ登録されたモデルパターンと照合し、各照合結果を統合して文字列の適否を判別することができる」と記載されている。   Japanese Patent Application Laid-Open No. 2003-168119 (Patent Document 1) discloses a background art of the print inspection apparatus. Japanese Patent Application Laid-Open No. H11-163873 describes "a step of expanding a dot image obtained by imaging a recognition target in which a plurality of dot patterns are arranged, and a step of projecting the expanded image in an arrangement direction of the dot pattern. This step is repeated until the number of projected images corresponding to the number of dot patterns constituting the recognition target array is obtained, so that boundaries between characters can be obtained from a plurality of dot patterns. Then, based on the finally obtained projection image, a dot pattern on the image is cut out, and each cut out dot pattern is compared with the registered model pattern, and each matching result is integrated to determine whether the character string is appropriate. Can be determined. "

特開2003−168119号公報JP 2003-168119 A

前記特許文献1には、複数のドットパターンが配列されている認識対象に対して、撮像して得られたドット画像を膨張させるステップを、1文字内の隣接ドットが結合するまで行うことで、その時点でドット間が分離している箇所を文字間の境界として認識し、検査対象となる文字を切り出すことができる方法が記載されている。この特許文献1の印字検査方法は、1文字として認識されるべきドット間の距離に比べ、異なる文字に属すると認識されるべきドット間の距離(印字文字間の距離)が明らかに大きい場合には、有効な方法である。しかし、その距離が近い場合には、1文字として認識されるべきドット間が結合するまで膨張処理を行うと、文字間まで結合してしまい、1文字ごとの文字の切り出しができなくなってしまう。そこで、本発明は、印字文字間の距離が、1文字内の隣接ドット間の距離とほぼ同等、あるいは1文字内の隣接ドット間の距離より短い場合においても、複数のドットパターンが配列されている認識対象から1文字ごとの切り出しを行って、文字の照合検査を行うことが可能な印字検査方法及び装置を提供することを目的とする。   In Patent Document 1, for a recognition target in which a plurality of dot patterns are arranged, a step of expanding a dot image obtained by imaging is performed until adjacent dots in one character are combined. A method is described in which a portion where dots are separated at that time is recognized as a boundary between characters, and a character to be inspected can be cut out. The print inspection method disclosed in Japanese Patent Application Laid-Open No. H11-157572 discloses a method in which the distance between dots to be recognized as belonging to different characters (the distance between printed characters) is significantly larger than the distance between dots to be recognized as one character. Is an effective method. However, when the distance is short, if the expansion processing is performed until the dots to be recognized as one character are combined, the characters are also combined and the character cannot be cut out for each character. Therefore, the present invention provides a plurality of dot patterns arranged even when the distance between printed characters is substantially equal to the distance between adjacent dots in one character or shorter than the distance between adjacent dots in one character. It is an object of the present invention to provide a print inspection method and apparatus capable of performing a character collation inspection by extracting each character from a recognition target.

上記課題を解決するために、例えば特許請求の範囲に記載の構成を採用する。本願は上記課題を解決する手段を複数含んでいるが、その一例を挙げるならば、ドットパターンからなる印字文字が配列された認識対象を撮像して得られた画像から、各印字文字を切り出して、印字文字の品質を判定する印字検査方法であって、認識対象の撮像を印字物への1文字分のドットパターンの印字が行われるごとに行う撮像工程と、撮像工程で撮像した画像から検査対象となる文字の印字画像を抽出する画像抽出処理工程と、画像抽出処理工程で得られた判定対象文字の印字画像とあらかじめ基準文字パターンとして登録された文字パターンとの一致の度合いを算出する数値計算工程と、数値計算工程で得られた数値が、あらかじめ設定された判定対象文字の印字品質の合否を判定するための閾値とを比較して、印字品質の合否を判定する判定工程とを有する構成とする。   In order to solve the above problem, for example, a configuration described in the claims is adopted. The present application includes a plurality of means for solving the above-described problems, but to give an example, cut out each print character from an image obtained by imaging a recognition target in which print characters formed of a dot pattern are arranged. A print inspection method for determining the quality of a printed character, wherein an image of a recognition target is imaged every time a dot pattern of one character is printed on a printed matter, and an inspection is performed from an image captured in the image pickup process. An image extraction process for extracting a print image of a target character, and a numerical value for calculating the degree of coincidence between the print image of the determination target character obtained in the image extraction process and a character pattern registered in advance as a reference character pattern The numerical value obtained in the calculation step and the numerical value calculation step is compared with a predetermined threshold value for determining whether the print quality of the character to be determined is acceptable or not. A structure having a determination step of constant to.

本発明によれば、文字間の距離が、1文字内の隣接ドット間の距離とほぼ同等、あるいは1文字内の隣接ドット間の距離より短い場合においても、印字文字列の中から各検査対象文字を切り出して、印字文字の照合検査を行うことが可能な印字検査方法及び装置を提供することができる。   According to the present invention, even when the distance between characters is substantially equal to the distance between adjacent dots in one character or shorter than the distance between adjacent dots in one character, each test object It is possible to provide a print inspection method and apparatus capable of cutting out characters and performing collation inspection of printed characters.

実施例1における印字検査装置の設置例を示す図である。FIG. 2 is a diagram illustrating an example of installation of a print inspection device according to the first embodiment. 実施例1における印字検査装置のブロック図である。FIG. 2 is a block diagram of a print inspection device according to the first embodiment. 実施例1における印字検査装置の印字検査方法を説明する図である。FIG. 3 is a diagram illustrating a print inspection method of the print inspection device according to the first embodiment. 従来の印字検査方法を示す図である。FIG. 9 is a diagram showing a conventional print inspection method. 実施例1における印字検査装置の画像取込みタイミングを説明する図である。FIG. 3 is a diagram for explaining an image capture timing of the print inspection apparatus according to the first embodiment. 実施例2における印字検査装置の印字検査方法を説明する図である。FIG. 9 is a diagram illustrating a print inspection method of the print inspection device according to the second embodiment. 実施例3における印字検査装置のブロック図である。FIG. 13 is a block diagram of a print inspection device according to a third embodiment.

以下、本発明の実施例を図面を用いて説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、本実施例で用いる印字検査装置の設置例である。図1において、印字検査装置は、インクジェットプリンタ21等の印字装置によって食品や薬品の包装容器に印字を行った印字物6に対してカメラ3の印字文字の読み取りに十分な光量の光を照射する照明装置4、光を照射された印字物6の検査対象となる文字列を含む画像を読取る撮像手段であるカメラ3、読取った画像を表示したり、検査の条件設定や、検査結果の表示を行うモニタ2、カメラ3で読取った画像から印字画像を抽出する等の加工を行い、検査対象文字の合否判定を行なう印字検査処理部や、照明の光量やタイミング等のコントロールを行う照明コントロール部を搭載している印字検査装置本体1、印字検査装置本体1内の印字検査処理部に画像処理等の各種指示を与える外部装置、等からなる。   FIG. 1 is an installation example of a print inspection device used in the present embodiment. In FIG. 1, a print inspection device irradiates a print 6 such as an ink jet printer 21 with a printing device 6 or the like on a food or medicine packaging container with light having an amount of light sufficient for reading printed characters by a camera 3. A lighting device 4; a camera 3 which is an image pickup means for reading an image including a character string to be inspected on the printed matter 6 irradiated with light; displaying the read image, setting inspection conditions, and displaying an inspection result; The monitor 2 performs a process such as extracting a printed image from an image read by the camera 3, and performs a print inspection processing unit that performs pass / fail judgment of a character to be inspected, and an illumination control unit that controls the amount and timing of illumination. It comprises a print inspection apparatus main body 1 mounted thereon, an external device for giving various instructions such as image processing to a print inspection processing section in the print inspection apparatus main body 1, and the like.

ペットボトル入り飲料や缶詰などの製造工場では、出荷前の製品のボトルや缶の表面に、専用のインクジェットプリンタ21のプリントヘッド22より液滴9を吐出させて、消費期限や製造番号などを印字している。インクジェットプリンタ21により印字が行われた出荷前製品は、コンベア5等により搬送され、カメラ3が検査対象文字を確認できる位置まで搬送されると、LED照明等の照明装置4による光の照射を行い、カメラ3で検査対象文字を含む画像を読取り、印字検査装置本体1に印字画像が送られる。   In a manufacturing plant for beverages and canned beverages in PET bottles, the droplets 9 are ejected from the print head 22 of the dedicated ink jet printer 21 on the surface of the bottle or can of the product before shipment, and the expiration date and the serial number are printed. doing. The pre-shipment product printed by the inkjet printer 21 is conveyed by the conveyor 5 or the like, and when conveyed to a position where the camera 3 can confirm the characters to be inspected, the illumination device 4 such as an LED illumination irradiates light. Then, the image including the characters to be inspected is read by the camera 3, and the printed image is sent to the print inspection apparatus main body 1.

印字検査装置本体1には、あらかじめ認識対象の文字について、印字状態が良好なドットパターンを基準文字パターンとして登録されている。印字検査装置本体1では、まず読取った画像から個々の文字を切り出す処理を行い、切り出された各文字の印字画像と、それぞれ対応する基準文字パターンとを照合することによって、各判定対象文字の印字状態の適否を判別する。ここで印刷状態が不良と判断されると、出荷の対象から除外されることとなる。   In the printing inspection apparatus main body 1, a dot pattern having a good printing state is registered as a reference character pattern for a character to be recognized in advance. The print inspection apparatus main body 1 first performs a process of cutting out individual characters from the read image, and compares the print image of each cut out character with the corresponding reference character pattern, thereby printing each character to be determined. Determine the suitability of the state. Here, if the printing state is determined to be defective, it is excluded from shipping targets.

図2に本実施例における印字検査装置のブロック図の一例を示す。図2において、印字検査装置本体1内の印字検査処理部11では、1文字印字毎の撮像タイミング算出部111、画像の差分取出し処理部112、画像改善処理部113、数値計算部114、文字品質判定部115といった印字検査に関わる各種の処理を行っている。なお、この印字検査処理部11は、CPUによるソフトウェア処理で行なうが、専用のハードウェアで行なっても良い。   FIG. 2 shows an example of a block diagram of a print inspection apparatus according to the present embodiment. In FIG. 2, a print inspection processing unit 11 in the print inspection apparatus main body 1 includes an imaging timing calculation unit 111 for each character printing, an image difference extraction processing unit 112, an image improvement processing unit 113, a numerical calculation unit 114, a character quality Various processes related to print inspection such as the determination unit 115 are performed. The print inspection processing unit 11 is performed by software processing by the CPU, but may be performed by dedicated hardware.

まず、インクジェットプリンタ21から、液滴の吐出タイミングの信号を印字検査装置本体1内の印字検査処理部11で受け取ると、印字検査処理部11内の1文字印字毎の撮像タイミング算出部111で印字画像の入力タイミングを算出し、印字検査処理部11からの指示により画像入力信号発生部16からカメラ3へ画像取り込みタイミングを知らせるとともに、印字検査処理部11のからの指示により、照明コントロール部18は、照明装置4の光量をコントロールし、かつ、カメラ3の画像読取りタイミングに合せて照明装置4の発光タイミングをコントロールする。   First, when the signal of the ejection timing of the droplets is received from the inkjet printer 21 by the print inspection processing unit 11 in the print inspection apparatus main body 1, the imaging timing calculation unit 111 for each character print in the print inspection processing unit 11 prints. The image input timing is calculated, the image input signal generation unit 16 notifies the camera 3 of the image capture timing according to an instruction from the print inspection processing unit 11, and the illumination control unit 18 The light amount of the illumination device 4 is controlled, and the light emission timing of the illumination device 4 is controlled in accordance with the image reading timing of the camera 3.

カメラ3によって読取られた画像は、印字検査装置本体1内の画像入力部14に入力され、一旦、画像記憶部15に蓄積される。印字検査処理部11内の画像の差分取出し処理部112では、画像記憶部15に蓄積された撮像画像から、本実施例における各々の検査対象文字を取り出す切り出し処理を行い、切り出された文字画像のノイズ除去等の画像改善を画像改善処理部113で行う。なお、差分取出し処理部112と画像改善処理部113をまとめて、判定対象となる文字の印字画像として抽出する画像抽出処理部としてもよい。   The image read by the camera 3 is input to the image input unit 14 in the print inspection apparatus main body 1 and is temporarily stored in the image storage unit 15. The image difference extraction processing unit 112 in the print inspection processing unit 11 performs a cutout process of extracting each inspection target character in the present embodiment from the captured image stored in the image storage unit 15, and performs processing for extracting the extracted character image. Image improvement such as noise removal is performed by the image improvement processing unit 113. Note that the difference extraction processing unit 112 and the image improvement processing unit 113 may be combined into an image extraction processing unit that extracts a print image of a character to be determined.

ROM12には印字文字列の認識処理や印字品質の合否判定のためのプログラムが格納されている。また、RAM13には、検査対象となる文字列の各構成文字の基準文字パターンや、外部装置7から入力された設定データなどが格納されている。そして、印字検査処理部11内の画像処理部113での画像改善処理の後、印字検査処理部11内の数値計算部114では、印字画像と基準文字パターンとの一致の度合いをROM12に格納されたプログラムに従って計算を実施する。そして、印字検査処理部11内の文字品質判定部115で、RAM13に格納された条件に基づいて、読み取られた印字画像とRAM13に格納されている基準文字パターンとの比較・判定処理を、ROM12に格納されているプログラムに従って行う。   The ROM 12 stores a program for a process of recognizing a print character string and determining whether print quality is acceptable or not. Further, the RAM 13 stores a reference character pattern of each constituent character of the character string to be inspected, setting data input from the external device 7, and the like. After the image improvement processing in the image processing unit 113 in the print inspection processing unit 11, the numerical calculation unit 114 in the print inspection processing unit 11 stores the degree of coincidence between the print image and the reference character pattern in the ROM 12. Perform the calculations according to the program. Then, based on the conditions stored in the RAM 13, the character quality determination unit 115 in the print inspection processing unit 11 performs a comparison / determination process between the read print image and the reference character pattern stored in the RAM 13, by the ROM 12. In accordance with the program stored in.

以上の一連の処理において、印字画像、検査条件、検査結果等は、入出力部17からモニタ2に表示される。   In the above series of processing, the print image, the inspection condition, the inspection result, and the like are displayed on the monitor 2 from the input / output unit 17.

図3は本実施例に関わる印字検査方法の一例を示したものである。本実施例では、ABCの3文字を印字して、この3文字に対しての印字品質の合否を判定する場合について説明する。図3の上段の、図3(1)で示す横方向の文字列は、文字間の距離が1文字内のドット間距離よりも大きい場合であり、図3の下段の、図3(2)で示す横方向の文字列は、文字AとBの文字間距離が1文字内のドット間距離とほぼ同等の場合を示している。いずれの場合においても、まず、文字Aを印字後で、かつ文字Bが印字される前に1枚目の画像を読み取る。得られた画像が図3(A)である。次に、文字Bを印字後で、かつ文字Cが印字される前に2枚目の画像を読み取る。得られた画像が図3(B)である。最後に、文字Cが印字された後、3枚目の画像を読み取る。得られた画像は図3(C)である。このように、1文字印字毎に画像を読取り、文字数分の画像を取り込む。   FIG. 3 shows an example of a print inspection method according to the present embodiment. In the present embodiment, a case will be described in which three characters of ABC are printed, and whether or not the print quality of these three characters is acceptable. The horizontal character string shown in FIG. 3A in the upper part of FIG. 3 is a case where the distance between characters is larger than the distance between dots in one character, and FIG. 3B in the lower part of FIG. The horizontal character string shown by indicates the case where the distance between the characters A and B is substantially equal to the distance between the dots in one character. In any case, the first image is read after the character A is printed and before the character B is printed. FIG. 3A shows the obtained image. Next, the second image is read after the character B is printed and before the character C is printed. FIG. 3B shows the obtained image. Finally, after the character C is printed, the third image is read. The obtained image is shown in FIG. As described above, the image is read every time one character is printed, and the images corresponding to the number of characters are captured.

次に、これらの画像に画像処理を実施することで1文字ごとに判定対象文字の印字画像を切り出す。まず、検査対象文字Aの印字画像は、画像(A)を選択する。次に、検査対象文字Bの印字画像については、読取り画像(B)と読取り画像(A)の差分をとることで、画像(A)と画像(B)に共通する画像である文字Aの部分は削除され、文字Bの部分が残るので、これを検査対象文字Bの印字画像とする。検査対象文字Cについても同様に、読取り画像(C)と読取り画像(B)の差分をとることで、画像(B)と画像(C)に共通する画像である文字ABの部分は削除され、文字Cの部分が残るので、これを判定対象文字Cの印字画像とする。これらの処理により、図3(D)に示すように、1文字ごとに判定対象文字の印字画像を切り出すことができる。   Next, by performing image processing on these images, a print image of the character to be determined is cut out for each character. First, an image (A) is selected as the print image of the inspection target character A. Next, with respect to the print image of the inspection target character B, the difference between the read image (B) and the read image (A) is obtained to obtain a portion of the character A which is an image common to the image (A) and the image (B). Is deleted, and the portion of the character B remains. This is set as a print image of the inspection target character B. Similarly, by taking the difference between the read image (C) and the read image (B) for the inspection target character C, the character AB portion, which is an image common to the image (B) and the image (C), is deleted. Since the portion of the character C remains, this is set as a print image of the character C to be determined. Through these processes, as shown in FIG. 3D, a print image of the determination target character can be cut out for each character.

そして、この切り出した印字画像とあらかじめ印字検査装置内のRAM13に保存されている基準文字パターンの画像と比較し、数値計算部114により一致の度合いを算出する。この数値計算部114で得られた数値を、文字品質判定部115により、RAM13に保存されている、検査対象文字の印字品質の合否を判定する閾値とを比較して、印字品質の合否を判定する。   Then, the cut print image is compared with the reference character pattern image stored in the RAM 13 in the print inspection apparatus in advance, and the degree of coincidence is calculated by the numerical value calculation unit 114. The numerical value obtained by the numerical value calculation unit 114 is compared with a threshold value stored in the RAM 13 by the character quality determination unit 115 for determining whether the print quality of the inspection target character is acceptable or not, thereby determining whether the print quality is acceptable. I do.

ここで、図4により、印字文字の切り出し方法の従来例について述べる。図3と同様、図4の上段の、図4(1)で示す横方向の文字列は、文字間の距離が1文字内の隣接ドット間距離よりも大きい場合であり、図4の下段の、図4(2)で示す横方向の文字列は、文字AとBの文字間距離が1文字内の隣接ドット間距離とほぼ同等の場合を示している。まず、文字「ABC」を印字後、この文字列の印字画像を読取る。読み取った画像が図4(A)である。次に、印字文字の切り出しを行うにあたり、文字間の位置を明確にするための画像処理として膨張処理を実施する。膨張処理後に文字列と直角方向に投影した投影分布が区切れる箇所を文字間の位置と判断するため、1文字内の隣接ドットの投影分布が切れないように各ドットを膨張させる画像処理を実施する。この膨張処理を行った後の画像が図4(B)になる。図4(B)の画像処理の後に、投影分布が切れる箇所を文字間の位置として文字切り出しを行うのであるが、図4(C)に示すように、1文字内の隣接ドット間距離より文字間の距離が大きい図4の上段の図4(1)の場合は、A、B、Cの3文字に分割することができるが、文字AとBの文字間距離が1文字内の隣接ドット間距離とほぼ同じ図4の下段の図4(2)では、文字Cは切り出すことができるが、文字Aと文字Bの間は区切り位置が分からず、文字ABがひとつの文字と判断され、文字AとBをそれぞれに分割することができない。   Here, a conventional example of a print character cutting method will be described with reference to FIG. Similar to FIG. 3, the horizontal character string shown in FIG. 4A in the upper part of FIG. 4 is a case where the distance between characters is larger than the distance between adjacent dots in one character. The character string in the horizontal direction shown in FIG. 4B shows a case where the distance between the characters A and B is substantially equal to the distance between adjacent dots in one character. First, after printing the character "ABC", a print image of this character string is read. FIG. 4A shows the read image. Next, when cutting out print characters, an expansion process is performed as image processing for clarifying the position between characters. Image processing is performed to expand each dot so that the projected distribution of adjacent dots in one character is not cut off, since a point where the projection distribution projected in the direction perpendicular to the character string after the expansion processing is separated is determined as a position between characters. I do. FIG. 4B shows an image after the dilation processing is performed. After the image processing of FIG. 4B, the character is cut out with the position where the projection distribution is cut off as the position between the characters. As shown in FIG. 4C, the character is extracted from the distance between adjacent dots in one character. In the case of FIG. 4 (1) in the upper part of FIG. 4 where the distance between the characters is large, the character can be divided into three characters A, B, and C. In FIG. 4 (2) in the lower part of FIG. 4 which is almost the same as the inter-distance, the character C can be cut out, but the separation position between the characters A and B is not known, and the character AB is determined to be one character. Characters A and B cannot be split separately.

このように、従来例では、印字された状態により文字切り出しを実施できない場合があるが、本実施例によれば、図3に示すように、図3(1)のような文字間距離が十分にある場合だけでなく、図3(2)のように文字間距離が近い場合においても、1文字ごとの文字の切り出しを行って、印字品質の合否判定が可能な印字検査装置を提供することができる。   As described above, in the conventional example, character cutout may not be performed depending on a printed state. However, according to the present embodiment, as shown in FIG. 3, the inter-character distance as shown in FIG. The present invention provides a print inspection apparatus capable of performing character cutout for each character and determining whether the print quality is acceptable or not, not only in the case where the distance is between the characters but also when the distance between the characters is short as shown in FIG. Can be.

本実施例では1文字印字毎に画像を読取る必要があるので、文字読み取りタイミングを正しく把握する必要がある。そこで、本実施例における、文字読み取りタイミングの設定の仕方について図5を用いて説明する。   In the present embodiment, since it is necessary to read an image each time one character is printed, it is necessary to correctly grasp the character reading timing. Thus, how to set the character reading timing in the present embodiment will be described with reference to FIG.

図5において、(A)に装置構成の概略図を示す。インクジェットプリンタ21のプリントヘッド部22に設けたノズルから液滴9が吐出されて印字物6に着弾して文字が形成されるが、液滴9がノズルを出てから着弾するまでのディレイ時間は、プリントヘッド部22と印字物6間のギャップ10によって変動する。そこで、このギャップ10をインクジェットプリンタ21に入力して、着弾までのディレイ時間を記憶させる。なお、本実施例では、着弾までのディレイ時間の記憶をインクジェットプリンタの記憶部に対して行ったが、印字検査装置あるいは、別に記憶装置を用意する等でも可能である。   In FIG. 5, (A) shows a schematic diagram of the device configuration. The droplets 9 are ejected from the nozzles provided in the print head unit 22 of the ink jet printer 21 and land on the printed matter 6 to form characters. The delay time from when the droplets 9 exit the nozzles to when they land is determined by the delay time. And the gap 10 between the print head unit 22 and the printed matter 6. Then, the gap 10 is input to the ink jet printer 21 to store the delay time until landing. In the present embodiment, the delay time until landing is stored in the storage unit of the ink jet printer. However, a print inspection device or a separate storage device may be prepared.

印字開始のタイミングは、コンベア5等の搬送装置に設置されたセンサ8の検知信号によって行う。本実施例で用いたインクジェットプリンタ21は、常にヘッド部のノズルから一定周期で液滴を吐出し、印字物6に着弾させない液滴はインクジェットプリンタ21のヘッド内にある回収部で液滴を回収し、印字物6に着弾させたい液滴は、回収部に回収されない方向に偏向させて印字物6に着弾させる、いわゆるコンティニュアスタイプを使用した。このコンティニュアスタイプのインクジェットプリンタ21では、ドットクロック信号に合わせて一定周期の液滴吐出を行っている。   The timing of starting printing is determined by a detection signal of a sensor 8 installed in a conveyor such as the conveyor 5. The ink jet printer 21 used in the present embodiment always discharges droplets from the nozzles of the head unit at a constant cycle, and collects the liquid droplets that do not land on the printed matter 6 in the collecting unit in the head of the ink jet printer 21. A so-called continuous type, in which the droplets to be landed on the printed matter 6 are deflected in a direction not collected by the collecting unit and landed on the printed matter 6, was used. In the continuous type ink jet printer 21, droplets are discharged at a constant cycle in accordance with a dot clock signal.

図5(B)にタイミングチャートを示す。図5(B)に示すように、インクジェットプリンタ21はセンサ8からの検知信号を受け取ると、印字文字列の印字条件等を設定するソフト処理を所定時間行った後、印字を開始する。ソフト処理終了時間を印字ドットのカウント開始タイミングとして、ドットクロック信号をカウントし、1文字分のドット数をカウントするごとに撮像タイミングを知らせるトリガ信号を、インクジェットプリンタ21から印字検査装置に送信する。ここで、トリガ信号は、例えば、ドットクロック信号の立ち上がりのタイミングで発生させる。実際に画像読み取りを開始するタイミングは、トリガ信号送信から、初めに設定したギャップ10から算出される着弾までのディレイ時間後である。このトリガ信号は、文字列を構成する文字数分送信され、それぞれ、トリガ信号送信から前記ディレイ時間を加味した時間後に、印字検査装置がカメラ3による画像取込みを実施する。以上のように画像読取りタイミングを設定することにより、1文字ごとに画像を取り込むことができる。   FIG. 5B shows a timing chart. As shown in FIG. 5B, upon receiving the detection signal from the sensor 8, the inkjet printer 21 performs a software process for setting a printing condition of a printing character string and the like for a predetermined time, and then starts printing. The dot clock signal is counted using the software processing end time as the print dot count start timing, and a trigger signal indicating the imaging timing is transmitted from the inkjet printer 21 to the print inspection device every time the number of dots for one character is counted. Here, the trigger signal is generated, for example, at the rising timing of the dot clock signal. The timing of actually starting the image reading is after a delay time from the transmission of the trigger signal to the landing calculated from the gap 10 initially set. The trigger signal is transmitted for the number of characters constituting the character string, and the print inspection apparatus performs image capture by the camera 3 after a time that takes into account the delay time from the transmission of the trigger signal. By setting the image reading timing as described above, an image can be captured for each character.

なお、カメラによる画像取込みが、1文字分を撮像可能であれば、検査対象文字が印字される直前と直後の撮像画像との差分をとる必要はなく、画像抽出処理部は撮像部で撮像した画像から検査対象となる文字の印字画像を抽出するだけで良い。   If the image capture by the camera can capture one character, there is no need to take the difference between the captured image immediately before and after the character to be inspected is printed, and the image extraction processing unit captures the image with the imaging unit. It is only necessary to extract the print image of the character to be inspected from the image.

以上のように、本実施例は、ドットパターンからなる印字文字が配列された認識対象を撮像して得られた画像から、各印字文字を切り出して、印字文字の品質を判定する印字検査方法であって、認識対象の撮像を印字物への1文字分のドットパターンの印字が行われるごとに行う撮像工程と、前記撮像工程で撮像した画像から検査対象となる文字の印字画像を抽出する画像抽出処理工程と、画像抽出処理工程で得られた判定対象文字の印字画像とあらかじめ基準文字パターンとして登録された文字パターンとの一致の度合いを算出する数値計算工程と、数値計算工程で得られた数値が、あらかじめ設定された判定対象文字の印字品質の合否を判定するための閾値とを比較して、印字品質の合否を判定する判定工程とを有する構成とする。   As described above, the present embodiment is a print inspection method that cuts out each print character from an image obtained by imaging a recognition target in which print characters formed of a dot pattern are arranged and determines the quality of the print character. An image pickup step of picking up an image of a recognition target every time a dot pattern of one character is printed on a printed matter, and an image for extracting a print image of a character to be inspected from the image picked up in the image pickup step An extraction processing step, a numerical calculation step of calculating the degree of coincidence between the printed image of the character to be determined obtained in the image extraction processing step and a character pattern registered in advance as a reference character pattern, and a numerical calculation step obtained by the numerical calculation step. A determination step of comparing the numerical value with a preset threshold value for determining whether the print quality of the character to be determined is acceptable or not, and determining whether the print quality is acceptable or not;

また、画像抽出処理工程は、撮像工程で撮像した画像に対し、印字品質を判定する必要のある文字について該当文字が印字される直前の撮像画像と、該当文字が印字された直後の撮像画像との差分をとって得られた画像を、検査対象となる文字の印字画像として抽出する構成とする。   Further, the image extraction processing step includes, for the image captured in the imaging step, a captured image immediately before the relevant character is printed for a character whose print quality needs to be determined, and a captured image immediately after the relevant character is printed. An image obtained by taking the difference between the two is extracted as a print image of a character to be inspected.

また、ドットパターンからなる印字文字が配列された認識対象を撮像して得られた画像から、各印字文字を切り出して、印字品質を判定する印字検査装置本体であって、1文字印字毎の撮像タイミングを算出する撮像タイミング算出部と、撮像タイミング算出部で算出された撮像タイミングを基に外部の撮像手段に画像取り込みタイミングを発生する画像入力信号発生部と、撮像手段で撮像した画像を取り込む画像入力部と、画像入力部で取り込んだ画像を記憶する画像記憶部と、画像記憶部で記憶された撮像画像から検査対象となる文字の印字画像を抽出する画像抽出処理部と、画像抽出処理部で得られた判定対象文字のドットパターンとあらかじめ基準文字として登録されたドットパターンとの一致の度合いを算出する数値計算部と、数値計算部で得られた数値が、あらかじめ設定された対象文字の印字品質の合否を判定するための閾値とを比較して、印字品質の合否を判定する文字品質判定部とを有する構成とする。   Further, a print inspection apparatus main body that cuts out each print character from an image obtained by imaging a recognition target in which print characters formed of a dot pattern are arranged, and determines print quality. An imaging timing calculation unit for calculating timing, an image input signal generation unit for generating an image capture timing in an external imaging unit based on the imaging timing calculated by the imaging timing calculation unit, and an image for capturing an image captured by the imaging unit An input unit, an image storage unit that stores an image captured by the image input unit, an image extraction processing unit that extracts a print image of a character to be inspected from a captured image stored in the image storage unit, and an image extraction processing unit A numerical calculation unit for calculating the degree of coincidence between the dot pattern of the character to be determined obtained in step 2 and the dot pattern registered as a reference character in advance, Values obtained by the calculation unit compares the threshold value for determining the acceptability of the print quality of the pre-set target characters, a configuration and a determining character quality determination unit acceptability of print quality.

また、画像抽出処理部は、画像記憶部で記憶された撮像画像に対し、印字品質を判定する必要のある文字について該当文字が印字される直前の撮像画像と、該当文字が印字された直後の撮像画像との差分をとって得られた画像を、判定対象となる文字の印字画像として抽出する構成とする。   Further, the image extraction processing unit, for the captured image stored in the image storage unit, the captured image immediately before the relevant character is printed for the character for which the print quality needs to be determined, and the image immediately after the relevant character is printed An image obtained by taking a difference from a captured image is extracted as a print image of a character to be determined.

また、ドットパターンからなる印字文字が配列された認識対象を撮像して得られた画像から、各印字文字を切り出して、印字品質を判定する印字検査装置本体であって、外部の撮像手段で撮像した画像を取り込む画像入力部と、画像入力部で取り込んだ画像を記憶する画像記憶部と、画像記憶部で記憶された撮像画像に対し、信号処理を行い印字品質の合否を判定する印字検査処理部と、外部の撮像手段に画像取り込みタイミングを発生する画像入力信号発生部と、を有し、画像入力信号発生部は、印字物への1文字分のドットパターンの印字が行われる毎に画像取り込みタイミングを発生するように構成する。   In addition, a print inspection apparatus main body that cuts out each print character from an image obtained by imaging a recognition target in which print characters formed of a dot pattern are arranged and determines print quality, and which is imaged by an external imaging unit. Image input unit that captures the captured image, an image storage unit that stores the image captured by the image input unit, and print inspection processing that performs signal processing on the captured image stored in the image storage unit to determine whether print quality is acceptable. And an image input signal generating section for generating an image capture timing in an external image pickup means. The image input signal generating section outputs an image every time a dot pattern for one character is printed on a printed material. It is configured to generate a capture timing.

よって、本実施例によれば、印字画像の判定対象文字の文字間距離が十分にある場合だけでなく、文字間距離が近い場合においても、1文字ごとの文字の切り出しを行なうことができ、印字品質の合否判定が可能な印字検査装置を提供することができる。   Therefore, according to the present embodiment, not only when the inter-character distance of the character to be determined in the print image is sufficient, but also when the inter-character distance is short, it is possible to cut out each character. It is possible to provide a print inspection device capable of determining whether print quality is acceptable.

本実施例は、印字文字を検査する容器等の印字検査装置側に汚れ等がある場合でも印字画像の判定対象文字の切り出し行うのに有効な印字検査装置の例について説明する。   The present embodiment describes an example of a print inspection apparatus that is effective for cutting out a determination target character of a print image even when the print inspection apparatus such as a container for inspecting print characters has dirt.

図6は、本実施例における印字検査装置の印字検査方法を説明する図である。図6は、図3(2)と同様、印字文字がABCの3文字で、文字AとBの文字間距離が1文字内のドット間距離とほぼ同等の場合を示している。図6において、まず、文字を印字する前に、文字列が印字される範囲の撮像を行う。得られた画像が図6(A)である。図6(A)に示すように、文字列印字予定の範囲に汚れ等があれば、画像にその汚れが取り込まれる。次に、文字Aを印字後で、かつ文字Bが印字される前に2枚目の画像を読み取る。得られた画像が図6(B)である。同様にして、文字Bを印字後で、かつ文字Cが印字される前に3枚目の画像を読み取る。得られた画像が図6(C)である。最後に、文字Cが印字された後、4枚目の画像を読み取る。得られた画像は図6(D)である。このように、印字前の画像と、1文字印字毎の画像を読取り、文字数プラス1枚分の画像を取り込む。これらの画像から、画像処理により、照合検査を行う文字を1文字ごとに取り出していく。まず、文字Aについては画像(B)と画像(A)の差分をとることで、画像(A)と画像(B)に共通する画像である汚れの箇所が削除され、文字Aのみを検査対象文字Aの画像として取り出すことができる。文字Bについては画像(C)と画像(B)の差分をとることで、画像(B)と画像(C)に共通する画像である汚れの箇所と文字Aが削除され、文字Bのみを検査対象文字Bの画像として取り出すことができる。また、文字Cについても画像(D)と画像(C)の差分をとることで、画像(C)と画像(D)に共通する画像である汚れの箇所と文字A、Bが削除され、文字Cのみを検査対象文字Cの画像として取り出すことができる。これらの処理により、図6(E)に示すように、1文字ごとに判定対象文字の印字画像を切り出すことができる。   FIG. 6 is a diagram illustrating a print inspection method of the print inspection apparatus according to the present embodiment. FIG. 6 shows a case where, as in FIG. 3 (2), the print characters are three characters of ABC, and the distance between characters A and B is substantially equal to the distance between dots in one character. In FIG. 6, first, before printing a character, an image of a range where a character string is printed is taken. FIG. 6A shows the obtained image. As shown in FIG. 6A, if there is dirt or the like in the range in which the character string is to be printed, the dirt is captured in the image. Next, the second image is read after the character A is printed and before the character B is printed. FIG. 6B shows the obtained image. Similarly, the third image is read after the character B is printed and before the character C is printed. FIG. 6C shows the obtained image. Finally, after the character C is printed, the fourth image is read. FIG. 6D shows the obtained image. As described above, the image before printing and the image for each character printing are read, and the number of characters plus one image is captured. From these images, characters to be subjected to collation inspection are extracted for each character by image processing. First, with respect to the character A, the difference between the image (B) and the image (A) is obtained, thereby removing a dirt portion which is an image common to the image (A) and the image (B). It can be taken out as an image of character A. For the character B, by taking the difference between the image (C) and the image (B), the dirt portion and the character A, which are images common to the image (B) and the image (C), are deleted, and only the character B is inspected. It can be extracted as an image of the target character B. In addition, by taking the difference between the image (D) and the image (C) for the character C, the dirt portion and the characters A and B, which are images common to the image (C) and the image (D), are deleted, and Only C can be extracted as an image of the inspection target character C. Through these processes, as shown in FIG. 6E, a print image of the determination target character can be cut out for each character.

以上のように、本実施例は、撮像工程において、初めの1文字の印字が行われる前に、認識対象となる文字列が印字される範囲を含む領域を撮像し、この撮像画像を背景画像として、その後の各文字印字後に撮像して得られた画像と背景画像との差分をとる構成とする。   As described above, in the present embodiment, in the imaging step, before printing of the first character, an area including the range in which the character string to be recognized is printed is captured, and this captured image is used as the background image. Then, the difference between the image obtained by imaging after each subsequent character printing and the background image is obtained.

これにより、本実施例によれば、印字前の画像を読取ることによって、検査する容器等の印字検査装置側に汚れ等があった場合においても、全ての検査文字について、汚れ部分を除いた文字部分のみを検査対象として照合検査を行うことができる。   Thus, according to the present embodiment, even if there is dirt on the side of the print inspection device such as a container to be inspected by reading an image before printing, all the inspection characters have characters other than the dirt portion removed. The collation inspection can be performed only on the part to be inspected.

本実施例では、装置の小型化、装置のセッティングの容易性に有効な印字検査装置の例について説明する。   In the present embodiment, an example of a print inspection apparatus that is effective for reducing the size of the apparatus and facilitating the setting of the apparatus will be described.

図7は、本実施例における印字検査装置のブロック図である。図7において、印字検査装置本体1内には、印字に関わる部位と印字検査に関わる部位を有している。   FIG. 7 is a block diagram of the print inspection apparatus according to the present embodiment. In FIG. 7, the print inspection apparatus main body 1 has a part related to printing and a part related to print inspection.

印字検査処理部11では、印字装置としての印字データ処理部116、印字タイミング算出部117といった印字に関わる各種の処理を行うとともに、印字検査装置としての1文字印字毎の撮像タイミング算出部111、画像の差分取出し処理部112、画像改善処理部113、数値計算部114、文字品質判定部115といった印字検査に関わる各種の処理を行っている。   The print inspection processing unit 11 performs various processes related to printing, such as a print data processing unit 116 and a print timing calculation unit 117 as a printing device, and also performs an imaging timing calculation unit 111 for each character printing as a print inspection device, Of the print inspection, such as a difference extraction processing unit 112, an image improvement processing unit 113, a numerical calculation unit 114, and a character quality determination unit 115.

また、モニタ2では、印字装置で行われる一連の処理における印字条件・内容の設定確認等に必要な情報や、印字検査装置で行われる一連の処理における印字画像、検査条件、検査結果等の検査に必要な情報が表示される。   In the monitor 2, information necessary for confirming the setting of printing conditions and contents in a series of processes performed by the printing device, and inspection of print images, inspection conditions, inspection results, and the like in the series of processes performed by the print inspection device are performed. Required information is displayed.

そして、カメラ3とプリントヘッド22は位置調整可能に一体に形成され1つの筐体内に納められた装置として印字検査装置本体1に接続されている。したがって、一度カメラ3とプリントヘッド22との位置関係をセットすれば、その後は常に一定の位置関係を保つことができる。   The camera 3 and the print head 22 are integrally formed so as to be position-adjustable, and are connected to the print inspection apparatus main body 1 as a device housed in one housing. Therefore, once the positional relationship between the camera 3 and the print head 22 is set, a constant positional relationship can be maintained thereafter.

まず、印字検査処理部11内の印字データ処理部116で、印字部で印字する文字列の内容や印字条件等が設定される。センサ8からの検知信号を受け取ると、印字検査処理部11内の印字タイミング算出部117で算出されたディレイ時間に従った所定時間経過後に、インク供給部23から供給されたインクが、プリントヘッド22から液滴として吐出され、消費期限や製造番号などが印字物に印字される。   First, the print data processing unit 116 in the print inspection processing unit 11 sets the contents of a character string to be printed by the printing unit, printing conditions, and the like. When receiving the detection signal from the sensor 8, the ink supplied from the ink supply unit 23 is supplied to the print head 22 after a predetermined time according to the delay time calculated by the print timing calculation unit 117 in the print inspection processing unit 11. Are discharged as droplets, and the expiration date, the production number, and the like are printed on the printed matter.

また、印字検査処理部11内では、1文字印字毎の撮像タイミング算出部111があり、ここで、印字画像の入力タイミングを算出し、印字検査処理部11からの指示により画像入力信号発生部16からカメラ3へ画像取り込みタイミングを知らせるとともに、印字検査処理部11からの指示により、照明コントロール部18は、照明装置4の光量をコントロールし、かつ、カメラ3の画像読取りタイミングに合せて照明装置4の発光タイミングをコントロールする。この後の動作は、図2の説明と同様である。   Further, in the print inspection processing unit 11, there is an imaging timing calculation unit 111 for each character printing. Here, the input timing of the print image is calculated, and the image input signal generation unit 16 is operated in accordance with an instruction from the print inspection processing unit 11. In addition to notifying the camera 3 of the image capturing timing, the illumination control unit 18 controls the amount of light of the illumination device 4 according to an instruction from the print inspection processing unit 11 and adjusts the illumination device 4 in accordance with the image reading timing of the camera 3. Control the light emission timing. The subsequent operation is the same as that described with reference to FIG.

以上のように、本実施例は、印字検査装置本体と印字装置とを1つの筐体内に一体に形成して、印字検査装置本体と印字装置とで使用するモニタを共有化させる印字検査装置本体とする。   As described above, in the present embodiment, the print inspection apparatus main body and the printing apparatus are integrally formed in one housing, and the monitor used by the print inspection apparatus main body and the printing apparatus are shared. And

また、上記の印字検査装置本体と、画像入力信号発生部からの画像取り込みタイミングをもとに、認識対象の撮像を1文字分の印字が行われるごとに行う撮像手段と印字装置の液滴を吐出するプリントヘッド部を1つの筐体内に一体に形成した装置とを有する印字検査装置とする。   In addition, based on the above-described print inspection apparatus main body and an image capturing timing from the image input signal generation unit, an image pickup unit that performs imaging of a recognition target every time printing of one character is performed, and a droplet of the printing apparatus. A print inspection device including a device in which a print head unit for discharging is integrally formed in one housing.

よって、本実施例によれば、印字装置と印字検査装置を1つの筐体内に一体に形成して、印字装置と印字検査装置のモニタ及び印字検査処理部11を共有化させているので、小型化が容易であり、また、プリントヘッド22とカメラ3を1つの筐体内に一体に形成しているので、一度筐体にセットすれば、常にプリントヘッド22とカメラ3の位置関係を一定に保つことができ、ディレイ時間の設定が容易となる。   Therefore, according to the present embodiment, the printing device and the print inspection device are integrally formed in one housing, and the monitor of the printing device and the print inspection device and the print inspection processing unit 11 are shared, so that the size is small. Since the print head 22 and the camera 3 are integrally formed in a single housing, once set in the housing, the positional relationship between the print head 22 and the camera 3 is always kept constant. The delay time can be easily set.

なお、本発明は、上記した実施例に限定されるものではなく、様々な変形が含まれる。例えば、上記の実施例では、1文字印字するごとに撮像して画像を読取ることにしたが、1文字に限定するものではなく、賞味期限、製造ロットといった定型的な文字に関しては、定型的な文字の印字前後で撮像を実施して、これを検査対象としてもよい。   Note that the present invention is not limited to the above-described embodiments, and includes various modifications. For example, in the above-described embodiment, an image is taken and an image is read each time one character is printed. However, the present invention is not limited to one character. Imaging may be performed before and after the printing of characters, and this may be set as an inspection target.

また、画像読み取りタイミングの設定方法は、本実施例で用いた、インクジェットのヘッドと印字物とのギャップの入力、センサ信号、インクジェットプリンタのドットクロックによって行ったが、1文字分のドットパターンの終了タイミングと、液滴吐出開始から印字物への着弾までのディレイ時間を認識できる方法であれば、本実施例と同等の構成とみなすことができる。   The image reading timing was set by the input of the gap between the ink jet head and the print, the sensor signal, and the dot clock of the ink jet printer used in this embodiment. Any method capable of recognizing the timing and the delay time from the start of droplet discharge to landing on a printed matter can be regarded as a configuration equivalent to the present embodiment.

また、上記した実施例は本発明を分かりやすく説明するために詳細に説明したものであり、必ずしも説明した全ての構成を備えるものに限定されるものではない。また、ある実施例の構成の一部を他の実施例の構成に置き換えることが可能であり、また、ある実施例の構成に他の実施例の構成を加えることも可能である。また、各実施例の構成の一部について、他の構成の追加・削除・置換をすることが可能である。   Further, the above-described embodiments have been described in detail for easy understanding of the present invention, and are not necessarily limited to those having all the configurations described above. Further, a part of the configuration of one embodiment can be replaced with the configuration of another embodiment, and the configuration of one embodiment can be added to the configuration of another embodiment. Further, for a part of the configuration of each embodiment, it is possible to add / delete / replace another configuration.

1:印字検査装置本体、2:モニタ、3:カメラ、4:照明装置、5:コンベア、6:印字物、7:外部装置、8:センサ、9:液滴、10:ヘッドと印字物間のギャップ、11:印字検査処理部、12:ROM、13:RAM、14:画像入力部、15:画像記憶部、16:画像入力信号発生部、17:入出力部、18:照明コントロール部、21:インクジェットプリンタ(IJP)、22:プリントヘッド、23:インク供給部、111:1文字印字毎の撮像タイミング算出部、112:画像の差分取出し処理部、113:画像改善処理部、114:数値計算部、115:文字品質判定部、116:印字データ処理部、117:印字タイミング算出部 1: Print inspection apparatus main body, 2: Monitor, 3: Camera, 4: Illumination device, 5: Conveyor, 6: Printed matter, 7: External device, 8: Sensor, 9: Droplet, 10: Between head and printed matter , 11: print inspection processing section, 12: ROM, 13: RAM, 14: image input section, 15: image storage section, 16: image input signal generation section, 17: input / output section, 18: illumination control section, 21: inkjet printer (IJP), 22: print head, 23: ink supply unit, 111: imaging timing calculation unit for each character printing, 112: image difference extraction processing unit, 113: image improvement processing unit, 114: numerical value Calculation unit, 115: character quality determination unit, 116: print data processing unit, 117: print timing calculation unit

Claims (10)

ドットパターンからなる印字文字が配列された認識対象を撮像して得られた画像から、各印字文字を切り出して、印字文字の品質を判定する印字検査方法であって、
認識対象の撮像を印字物への1文字分のドットパターンの印字が行われるごとに行う撮像工程と、
前記撮像工程で撮像した画像から検査対象となる文字の印字画像を抽出する画像抽出処理工程と、
前記画像抽出処理工程で得られた判定対象文字の印字画像とあらかじめ基準文字パターンとして登録された文字パターンとの一致の度合いを算出する数値計算工程と、
前記数値計算工程で得られた数値が、あらかじめ設定された判定対象文字の印字品質の合否を判定するための閾値とを比較して、印字品質の合否を判定する判定工程を有し、
前記画像抽出処理工程は、前記撮像工程で撮像した画像に対し、印字品質を判定する必要のある文字について該当文字が印字される直前の撮像画像と、該当文字が印字された直後の撮像画像との差分をとって得られた画像を、検査対象となる文字の印字画像として抽出することを特徴とする印字検査方法。
A print inspection method for cutting out each print character from an image obtained by imaging a recognition target in which print characters composed of dot patterns are arranged and determining the quality of the print character,
An imaging step of imaging a recognition target every time a dot pattern for one character is printed on a printed matter;
An image extraction processing step of extracting a print image of a character to be inspected from the image captured in the imaging step,
Numerical calculation step of calculating the degree of coincidence between the print image of the determination target character obtained in the image extraction processing step and a character pattern registered in advance as a reference character pattern,
The numerical value obtained in the numerical calculation step is compared with a threshold value for determining the pass / fail of the print quality of the character to be determined in advance , having a determination step of determining pass / fail of the print quality ,
The image extraction processing step includes, for the image captured in the imaging step, a captured image immediately before the relevant character is printed for a character whose print quality needs to be determined, and a captured image immediately after the relevant character is printed. A print inspection method for extracting an image obtained by taking a difference between the two as a print image of a character to be inspected.
請求項1に記載の印字検査方法であって、
前記撮像工程において、初めの1文字の印字が行われる前に、認識対象となる文字列が印字される範囲を含む領域を撮像し、この撮像画像を背景画像として、その後の各文字印字後に撮像して得られた画像と前記背景画像との差分をとることを特徴とする印字検査方法。
The print inspection method according to claim 1, wherein
In the imaging step, before the first character is printed, an area including a range in which a character string to be recognized is printed is captured, and the captured image is used as a background image, and then captured after each character is printed. And a difference between the image obtained as a result and the background image .
ドットパターンからなる印字文字が配列された認識対象を撮像して得られた画像から、各印字文字を切り出して、印字品質を判定する印字検査装置本体であって、A print inspection apparatus main body that cuts out each print character from an image obtained by imaging a recognition target in which print characters composed of dot patterns are arranged and determines print quality,
1文字印字毎の撮像タイミングを算出する撮像タイミング算出部と、An imaging timing calculation unit that calculates an imaging timing for each character printing;
該撮像タイミング算出部で算出された撮像タイミングを基に外部の撮像手段に画像取り込みタイミングを発生する画像入力信号発生部と、An image input signal generation unit that generates an image capture timing in an external imaging unit based on the imaging timing calculated by the imaging timing calculation unit;
撮像手段で撮像した画像を取り込む画像入力部と、An image input unit that captures an image captured by the imaging unit;
前記画像入力部で取り込んだ画像を記憶する画像記憶部と、An image storage unit that stores an image captured by the image input unit,
前記画像記憶部で記憶された撮像画像から検査対象となる文字の印字画像を抽出する画像抽出処理部と、An image extraction processing unit that extracts a print image of a character to be inspected from the captured image stored in the image storage unit,
前記画像抽出処理部で得られた判定対象文字のドットパターンとあらかじめ基準文字として登録されたドットパターンとの一致の度合いを算出する数値計算部と、A numerical calculation unit that calculates the degree of coincidence between the dot pattern of the determination target character obtained by the image extraction processing unit and the dot pattern registered as a reference character in advance,
前記数値計算部で得られた数値が、あらかじめ設定された対象文字の印字品質の合否を判定するための閾値とを比較して、印字品質の合否を判定する文字品質判定部を有し、The numerical value obtained by the numerical calculation unit is compared with a preset threshold for determining the pass or fail of the print quality of the target character, having a character quality determination unit to determine the pass or fail of the print quality,
前記画像抽出処理部は、前記画像記憶部で記憶された撮像画像に対し、印字品質を判定する必要のある文字について該当文字が印字される直前の撮像画像と、該当文字が印字された直後の撮像画像との差分をとって得られた画像を、判定対象となる文字の印字画像として抽出することを特徴とする印字検査装置本体。The image extraction processing unit, for the captured image stored in the image storage unit, a captured image immediately before the corresponding character is printed for a character whose print quality needs to be determined, and immediately after the corresponding character is printed A print inspection apparatus main body, wherein an image obtained by taking a difference from a captured image is extracted as a print image of a character to be determined.
請求項3に記載の印字検査装置本体と、A print inspection apparatus main body according to claim 3,
前記画像入力信号発生部からの画像取り込みタイミングをもとに前記認識対象の撮像を1文字分の印字が行われるごとに行う撮像手段と、An imaging unit that performs imaging of the recognition target each time printing of one character is performed based on an image capture timing from the image input signal generation unit;
を有することを特徴とする印字検査装置。A print inspection device comprising:
請求項4に記載の印字検査装置であって、
さらに、前記撮像画像、検査条件、検査結果を表示するモニタを有することを特徴とする印字検査装置。
A print-inspection equipment according to claim 4,
Furthermore, the captured image, inspection conditions, print-inspection equipment characterized by have a monitor for displaying the test results.
請求項4または5に記載の印字検査装置であって、
前記印字検査装置本体には、外部の照明装置の光量及び発光タイミングを制御する照明コントロール部を有し、
さらに、該照明コントロール部により制御される照明装置を有することを特徴とする印字検査装置。
The print inspection device according to claim 4 or 5 ,
The print inspection device main body has an illumination control unit that controls the light amount and the light emission timing of an external illumination device,
Furthermore, a printing inspection device having an illumination device controlled by the illumination control unit.
請求項4から6のいずれか1項に記載の印字検査装置であって、
前記印字検査装置本体には、外部のモニタに信号を出力し、また検査条件を入力するための入出力部を有することを特徴とする印字検査装置。
The print inspection device according to any one of claims 4 to 6 , wherein
A print inspection apparatus, wherein the print inspection apparatus body has an input / output unit for outputting a signal to an external monitor and inputting an inspection condition .
請求項に記載の印字検査装置本体であって、
前記印字検査装置本体と印字装置とを1つの筐体内に一体に形成して、前記印字検査装置本体と前記印字装置とで使用するモニタを共有化させることを特徴とする印字検査装置本体
The print inspection apparatus main body according to claim 3 , wherein
The printing inspection apparatus to form the body with a printing device integrated into one casing, the printing inspection apparatus main body, characterized in that to share the monitor to be used in said printing inspection apparatus main body and the printing apparatus.
請求項に記載の印字検査装置本体と、
前記画像入力信号発生部からの画像取り込みタイミングをもとに前記認識対象の撮像を1文字分の印字が行われるごとに行う撮像手段と前記印字装置の液滴を吐出するプリントヘッド部を1つの筐体内に一体に形成した装置と、
を有することを特徴とする印字検査装置。
A print inspection device main body according to claim 8 ,
An image pickup means for picking up the image of the recognition target every time one character is printed based on an image fetch timing from the image input signal generating unit, and a print head unit for ejecting droplets of the printing apparatus are provided as one unit. A device integrally formed in the housing;
A print inspection device comprising:
ドットパターンからなる印字文字が配列された認識対象を撮像して得られた画像から、各印字文字を切り出して、印字品質を判定する印字検査装置本体であって、
外部の撮像手段で撮像した画像を取り込む画像入力部と、
前記画像入力部で取り込んだ画像を記憶する画像記憶部と、
前記画像記憶部で記憶された撮像画像に対し、信号処理を行い印字品質の合否を判定する印字検査処理部と、
外部の撮像手段に画像取り込みタイミングを発生する画像入力信号発生部を有し、
前記画像入力信号発生部は、印字物への1文字分のドットパターンの印字が行われる毎に前記画像取り込みタイミングを発生し、
前記印字検査処理部は、前記画像記憶部で記憶された撮像画像に対し、印字品質を判定する必要のある文字について該当文字が印字される直前の撮像画像と、該当文字が印字された直後の撮像画像との差分をとって得られた画像を、判定対象となる文字の印字画像として抽出することを特徴とする印字検査装置本体。
A print inspection apparatus main body that cuts out each print character from an image obtained by imaging a recognition target in which print characters composed of dot patterns are arranged and determines print quality ,
An image input unit that captures an image captured by an external imaging unit;
An image storage unit that stores an image captured by the image input unit,
A print inspection processing unit that performs signal processing on the captured image stored in the image storage unit to determine whether print quality is acceptable,
Having an image input signal generation unit that generates an image capture timing in an external imaging unit,
The image input signal generation unit generates the image capture timing each time a dot pattern for one character is printed on a printed matter,
The print inspection processing unit, with respect to the captured image stored in the image storage unit, a captured image immediately before the corresponding character is printed for a character whose print quality needs to be determined, and immediately after the corresponding character is printed A print inspection apparatus main body , wherein an image obtained by taking a difference from a captured image is extracted as a print image of a character to be determined .
JP2015067422A 2015-03-27 2015-03-27 Print inspection method, print inspection apparatus using the same, and print inspection apparatus main body Active JP6675831B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2015067422A JP6675831B2 (en) 2015-03-27 2015-03-27 Print inspection method, print inspection apparatus using the same, and print inspection apparatus main body
PCT/JP2016/054634 WO2016158057A1 (en) 2015-03-27 2016-02-18 Print inspection method, print inspection device using same, and print inspection device body
CN201680015365.9A CN107408289B (en) 2015-03-27 2016-02-18 Printing inspection method, printing inspection apparatus using the same, and printing inspection apparatus main body

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015067422A JP6675831B2 (en) 2015-03-27 2015-03-27 Print inspection method, print inspection apparatus using the same, and print inspection apparatus main body

Publications (2)

Publication Number Publication Date
JP2016186766A JP2016186766A (en) 2016-10-27
JP6675831B2 true JP6675831B2 (en) 2020-04-08

Family

ID=57004977

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015067422A Active JP6675831B2 (en) 2015-03-27 2015-03-27 Print inspection method, print inspection apparatus using the same, and print inspection apparatus main body

Country Status (3)

Country Link
JP (1) JP6675831B2 (en)
CN (1) CN107408289B (en)
WO (1) WO2016158057A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6962228B2 (en) * 2018-02-14 2021-11-05 セイコーエプソン株式会社 Image quality inspection camera system, printing device and light source adjustment method
JP7092563B2 (en) * 2018-06-08 2022-06-28 マクセルフロンティア株式会社 Printing inspection machine
JP7057433B6 (en) * 2018-10-01 2022-05-16 株式会社日立産機システム Print inspection device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06227098A (en) * 1993-02-05 1994-08-16 Matsushita Electric Ind Co Ltd Dot pattern inspecting device
JP2972734B1 (en) * 1998-07-29 1999-11-08 日本電気フィールドサービス株式会社 Printer with print correction printhead
JP2000207493A (en) * 1999-01-20 2000-07-28 Ricoh Co Ltd Blurred character recognizing method and character recognizing device
CN1310181C (en) * 2004-09-15 2007-04-11 北京中星微电子有限公司 Optical character identifying treating method for mobile terminal with camera
JP2007163259A (en) * 2005-12-13 2007-06-28 Dainippon Screen Mfg Co Ltd Difference comparison inspection method and difference comparison inspection device
CN102307676B (en) * 2009-02-04 2014-10-29 世联株式会社 Method for inspecting jetting state of inkjet head and apparatus for inspecting jetting state of inkjet head
JP5942361B2 (en) * 2011-08-29 2016-06-29 富士ゼロックス株式会社 Image processing apparatus and image processing program

Also Published As

Publication number Publication date
CN107408289A (en) 2017-11-28
WO2016158057A1 (en) 2016-10-06
CN107408289B (en) 2020-12-25
JP2016186766A (en) 2016-10-27

Similar Documents

Publication Publication Date Title
JP6576316B2 (en) Image inspection apparatus and method, program, and inkjet printing system
JP6675831B2 (en) Print inspection method, print inspection apparatus using the same, and print inspection apparatus main body
JP6245754B2 (en) Inkjet marking apparatus and method
JP2023126337A (en) Information processing device, information processing method, information processing program, learning device, learning method and learned model
US20160167413A1 (en) Image forming apparatus, image forming method and non-transitory computer readable medium
JP2011101964A (en) Apparatus for inspecting ink jetting failure of line-type inkjet head
KR20190004746A (en) Data processing apparatus, tablet printing apparatus, data processing method, and tablet printing method
JP5699051B2 (en) Image inspection apparatus, image recording apparatus, and image inspection method
JP6926523B2 (en) Droplet ejection device, image forming device and nozzle position identification method
WO2018056428A1 (en) Printing inspection device and printing inspection method
JP7057433B6 (en) Print inspection device
JP7109320B2 (en) PRINTING APPARATUS AND METHOD OF DELAYING THE SAME
JP2014226797A (en) Device for evaluating flying state stability of ink droplet
CN106583271A (en) Method for removing defective packing box with first line of ink-jet printed characters lacked
CN113320291A (en) Data processing method, device, equipment and medium for printing color uniform image
JP2004333276A (en) Fluid measuring apparatus
KR102521701B1 (en) Ink-Jet System and Printing Method of Ink-Jet System
JP2022170002A (en) Area determination method, tablet inspection method, and tablet inspection apparatus
JP6285766B2 (en) Recording apparatus and recording method
JP5347838B2 (en) Liquid discharge defect detection device
JP2024021600A (en) Tablet printing device and tablet printing method
JP2015087889A (en) Printing inspection method
JP6391745B1 (en) Printing character cutting method and printing inspection device
JP6285767B2 (en) Recording apparatus and inspection method
JP2003168119A (en) Image processing method and device thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180308

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190514

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20190711

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20191023

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200121

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20200129

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200311

R150 Certificate of patent or registration of utility model

Ref document number: 6675831

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150