WO2017134869A1 - 固形製剤用テンプレート作成方法、固形製剤用テンプレート作成プログラムを記録したコンピュータが読み取り可能な記録媒体、固形製剤印刷検査方法、及び固形製剤印刷検査装置 - Google Patents

固形製剤用テンプレート作成方法、固形製剤用テンプレート作成プログラムを記録したコンピュータが読み取り可能な記録媒体、固形製剤印刷検査方法、及び固形製剤印刷検査装置 Download PDF

Info

Publication number
WO2017134869A1
WO2017134869A1 PCT/JP2016/081384 JP2016081384W WO2017134869A1 WO 2017134869 A1 WO2017134869 A1 WO 2017134869A1 JP 2016081384 W JP2016081384 W JP 2016081384W WO 2017134869 A1 WO2017134869 A1 WO 2017134869A1
Authority
WO
WIPO (PCT)
Prior art keywords
solid preparation
template
inspection
printing
print
Prior art date
Application number
PCT/JP2016/081384
Other languages
English (en)
French (fr)
Inventor
蜂谷 栄一
米田 睦仁
今井 聖
Original Assignee
フロイント産業株式会社
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 フロイント産業株式会社 filed Critical フロイント産業株式会社
Publication of WO2017134869A1 publication Critical patent/WO2017134869A1/ja

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61JCONTAINERS SPECIALLY ADAPTED FOR MEDICAL OR PHARMACEUTICAL PURPOSES; DEVICES OR METHODS SPECIALLY ADAPTED FOR BRINGING PHARMACEUTICAL PRODUCTS INTO PARTICULAR PHYSICAL OR ADMINISTERING FORMS; DEVICES FOR ADMINISTERING FOOD OR MEDICINES ORALLY; BABY COMFORTERS; DEVICES FOR RECEIVING SPITTLE
    • A61J3/00Devices or methods specially adapted for bringing pharmaceutical products into particular physical or administering forms
    • A61J3/06Devices or methods specially adapted for bringing pharmaceutical products into particular physical or administering forms into the form of pills, lozenges or dragees
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61JCONTAINERS SPECIALLY ADAPTED FOR MEDICAL OR PHARMACEUTICAL PURPOSES; DEVICES OR METHODS SPECIALLY ADAPTED FOR BRINGING PHARMACEUTICAL PRODUCTS INTO PARTICULAR PHYSICAL OR ADMINISTERING FORMS; DEVICES FOR ADMINISTERING FOOD OR MEDICINES ORALLY; BABY COMFORTERS; DEVICES FOR RECEIVING SPITTLE
    • A61J3/00Devices or methods specially adapted for bringing pharmaceutical products into particular physical or administering forms
    • A61J3/07Devices or methods specially adapted for bringing pharmaceutical products into particular physical or administering forms into the form of capsules or similar small containers for oral use
    • 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
    • B41J29/00Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
    • B41J29/38Drives, motors, controls or automatic cut-off devices for the entire printing mechanism
    • B41J29/393Devices for controlling or analysing the entire machine ; Controlling or analysing mechanical parameters involving printing of test patterns
    • 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
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/85Investigating moving fluids or granular solids
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis

Definitions

  • Patent Document 1 characters and the like printed on the surface of a tablet are imaged, and the captured image data and a prestored template are superimposed, and each pixel of both is white and white or black and black.
  • a configuration is described in which inspection is performed by a template matching method that counts the number of pixels that match or do not match.
  • Patent Document 1 Japanese Patent Laid-Open No. 9-187915
  • This invention solves the said problem and makes it a subject to save the effort which creates a template required for the test
  • the present invention is a template preparation method for a solid preparation for carrying out a solid preparation inspection step for inspecting characters or the like printed on the surface of the solid preparation by a printing means, Create a print inspection template that creates a print inspection template based on the print data that the printing means intends to use for the solid preparation to be inspected before printing characters or the like on the solid preparation to be inspected by the printing means
  • the present invention provides a template preparation method for a solid preparation characterized by comprising a step.
  • the print inspection template creation step and / or the position recognition template creation step may include a rotation calculation step for rotating the print data.
  • the dead zone may be provided by a thickening process for creating thick data for the print data and / or a thinning process for creating thin data for the print data.
  • the present invention provides a computer in which a solid preparation template creation program for performing a solid preparation inspection process for inspecting characters or the like printed on the surface of a solid preparation by printing means is recorded on a computer. Can be printed on the solid preparation to be inspected based on the print data scheduled to be used by the printing means before printing characters or the like on the solid preparation to be inspected by the printing means.
  • the present invention provides a computer-readable recording medium having a solid preparation template creation program recorded thereon, which includes a print inspection template creation step for creating a test template.
  • a process may be included.
  • the dead zone may be provided by a thickening process for creating thick data for the print data and / or a thinning process for creating thin data for the print data.
  • the present invention provides a printing process for printing characters and the like on the surface of a solid preparation, a template preparation process for solid preparation for creating a template for solid preparation, characters printed in the printing process, etc.
  • a solid preparation printing inspection method comprising a solid preparation inspection step for inspecting the quality of the solid preparation, wherein the solid preparation template creation step includes the step of printing the characters before printing on the solid preparation to be inspected in the printing step.
  • a solid preparation printing inspection method characterized by inspecting the quality of printed characters and the like based on a captured image of the preparation.
  • the solid preparation inspection template creation step is performed based on the print data that the printing means intends to use with respect to the solid preparation to be inspected before printing characters or the like on the solid preparation to be inspected by the printing means.
  • a position recognition template creation step for creating a recognition template may be included.
  • the print inspection template creation step and / or the position recognition template creation step may include a rotation calculation step for rotating the print data.
  • the present invention provides a printing unit that prints characters and the like on the surface of a solid formulation, a template preparation unit for solid formulation that creates a template for solid formulation, and a solid that inspects the quality of printed characters and the like.
  • a solid preparation printing inspection apparatus comprising a preparation inspection means, wherein the solid preparation template creation means creates a print inspection template based on print data that the printing means intends to use for a solid preparation to be examined
  • a solid preparation printing means wherein the solid preparation inspection means inspects the quality of printed characters and the like based on the print inspection template and an image of the solid preparation to be inspected.
  • An inspection apparatus is provided.
  • the solid preparation template creation means may include position recognition template creation means for creating a position recognition template based on print data that the printing means intends to use for the solid preparation to be inspected.
  • Example 1 of this invention It is a figure explaining the structure of the solid formulation printing inspection apparatus in Example 1 of this invention. It is a figure explaining the printing test
  • FIG. 1 is a diagram illustrating a configuration of a solid preparation printing inspection apparatus according to Embodiment 1 of the present invention.
  • the solid preparation printing inspection apparatus 100 prints characters and the like on both surfaces of the solid preparation T that is sequentially conveyed by the conveying means 50 and also performs a quality inspection of the printed characters and the like.
  • the solid preparation in the present invention refers to drugs such as tablets and capsules, and does not include granules or liquids.
  • the conveying means 50 includes a first surface side conveying belt 51, a second surface side conveying belt 52, a rotating drum 53, a rotating drum 54, a driving roller 55, a non-defective product storage box 56, and the like.
  • the first surface side conveying belt 51 is placed one by one with the first surface of the solid preparation T facing up, and conveys it in the X direction.
  • the solid preparation T transported by the first surface-side transport belt 51 is printed with characters and the like on the first surface, and the printed characters and the like are inspected.
  • the solid preparation T transported in the ⁇ X direction by the second-surface-side transport belt 52 is transported with the second surface facing upward, characters and the like are printed on the second surface, and the printed characters and the like are inspected. . Finally, the solid preparation T determined as a non-defective product as a result of the printing inspection is stored in the non-defective product storage box 56.
  • the solid preparation T transported by the first surface-side transport belt 51 is first transported to a position where the first surface prior recognition imaging device 61 can capture an image, and an image of the first surface of the solid preparation T is captured.
  • the first surface prior recognition imaging device 61 is configured by a CMOS image sensor, and the CMOS image sensor images the first surface of the solid preparation T.
  • a sensor not shown
  • stroboscopic light is emitted and an image is captured so as not to blur using the electronic shutter of the CMOS image sensor.
  • the image captured by the first surface prior recognition imaging device 61 is sent to an image processing device (not shown) for processing.
  • the image processing apparatus is configured to include a computer, and image processing by the template matching method is executed by a program, and the position of the solid preparation T and, if necessary, the rotation angle are recognized.
  • the solid preparation inspection means of the image processing apparatus executes the solid preparation inspection process by a program.
  • the solid preparation inspection means includes a position recognition means and a print inspection means, and executes a position recognition process and a print inspection process, respectively.
  • a position recognition process is performed to recognize the position and rotation angle and scale change of a printed character, etc., and then the captured image is rotated, translated, and moved according to the recognized posture and scale change of the character and the like.
  • the position and rotation angle of the solid preparation T have already been measured by the imaging device 61 for the first surface prior recognition, the position and rotation angle may be slightly shifted during transportation. Therefore, it is possible to determine the accuracy of inspection by providing a position recognition process after printing.
  • the second surface prior recognition imaging device 62 When the solid preparation T is horizontally transported in the ⁇ X direction, first, the second surface prior recognition imaging device 62 is transported to a position where it can be imaged, and an image of the upper surface (second surface) is taken and the solid preparation T The position is recognized.
  • the imaging device 62 for second surface prior recognition is composed of a CMOS image sensor, and images the second surface of the solid preparation T with this CMOS image sensor.
  • a sensor not shown
  • stroboscopic light is emitted and an image is captured so as not to blur using the electronic shutter of the CMOS image sensor.
  • the image captured by the second surface prior recognition imaging device 62 is sent to the image processing device (not shown).
  • the image processing apparatus includes a computer, and image processing by a template matching method is executed by a program to recognize the position of the solid preparation T and, if necessary, the rotation angle.
  • the solid preparation T when the solid preparation T is a tablet, depending on the type, a groove called a secant may be provided linearly on the second surface.
  • the rotation angle of the dividing line that is, the rotation angle of the solid preparation T is also imaged by the second surface prior recognition imaging device 62 so that characters or the like are not printed on the dividing line. Is recognized by the image processing apparatus.
  • the rotation angle is also recognized when the solid preparation T is an irregular tablet. At this time, you may make it test
  • the solid preparation T is conveyed to a place where the printing means 72 can print.
  • the printing means 72 is an inkjet printer, and the upper surface (depending on the position of the solid preparation T, which is imaged by the second surface prior recognition imaging device 62 and recognized by the image processing device, and rotation angle data as necessary). Characters etc. are printed on the second side).
  • the printing unit 72 stores a plurality of print data rotated in advance to a plurality of rotation angles.
  • the solid preparation inspection means of the image processing apparatus executes the solid preparation inspection process by a program.
  • the solid preparation inspection means includes a position recognition means and a print inspection means, and executes a position recognition process and a print inspection process, respectively.
  • a position recognition process is performed to recognize the position and rotation angle and scale change of a printed character, etc., and then the captured image is rotated, translated, and moved according to the recognized posture and scale change of the character and the like.
  • Perform the print inspection process after converting the magnification.
  • the print inspection template and the solid preparation T in the captured image are overlapped to count the number of mismatched pixels, and if the counted number of pixels is less than the threshold, the solid preparation T is determined to be a non-defective product. . If it is equal to or greater than the threshold value, it is determined as a defective product and discharged by a discharge means (not shown).
  • the captured image is rotated, translated, and scaled.
  • the present invention is not limited to this, and the position recognition template is rotated. , Translation and magnification conversion may be performed.
  • Example 1 since the solid preparation T is conveyed by the belt, the solid preparation T may jump, and in addition to the position and rotation angle recognition in the prior recognition, the position recognition process also rotates. Although it is necessary to recognize the change in the corners and the scale, when the transport method in which the solid preparation T does not jump is used, it is not necessarily limited to this. For example, in the case where the solid preparation T can be firmly fixed by carrying with one drum, the recognition of the rotation angle and the change in scale may be omitted.
  • the image processing apparatus stores a print inspection template for performing a print inspection of characters and the like.
  • the print inspection template is a template for inspecting bleeding and lack of characters or the like by a template matching method.
  • the image processing apparatus includes a print inspection template creation unit, and performs a print inspection template creation process described later before performing a print inspection in the print inspection process.
  • a position recognition template preparation process is implemented.
  • the print inspection template creation process and the position recognition template creation process are collectively referred to as a solid preparation template creation process. Therefore, the image processing apparatus has a solid preparation template creation means, and the solid preparation template creation means includes a print inspection template creation means and a position recognition template creation means.
  • the solid preparation T determined to be a non-defective product by the print inspection in the image processing apparatus is transported to the ⁇ X direction end by the second surface side transport belt 52 and is stored in the non-defective product storage box 56 there.
  • Example 1 an imaging device for prior recognition, a printing unit, and an imaging device for print inspection are provided on both sides of the solid preparation T, and the configuration is configured to perform prior recognition of the position, printing, and print inspection.
  • a pre-recognition imaging device, a printing unit, and a print inspection imaging device may be provided only on the first surface or the second surface, and a configuration for performing prior recognition of a position, printing, and print inspection may be used.
  • a configuration in which an imaging device for prior recognition, a printing unit, and an imaging device for print inspection are provided on the side surface to perform prior recognition of the position, printing, and print inspection It is good.
  • Example 1 although the prior recognition was implemented and the position and rotation angle of the solid formulation T were recognized in the 1st surface side and the 2nd surface side, it is not necessarily limited to this.
  • the position of the solid preparation T when the position of the solid preparation T is firmly fixed, it may be configured to perform printing and print inspection by providing only a printing unit and an imaging device for print inspection without providing prior recognition. .
  • the strobe light is irradiated and the CMOS image.
  • the image is captured so that the image does not blur using the electronic shutter of the sensor, the present invention is not necessarily limited thereto, and an appropriate means for imaging without blurring can be used. For example, only flash light irradiation or only an electronic shutter may be used.
  • first side printing unit 71 and the second side printing unit 72 are printed using an ink jet printer, the printing is not necessarily limited to this, and printing can be performed by an appropriate unit. For example, you may make it print by a tampo printing means or a screen printing means.
  • FIG. 2 is a diagram for explaining a print inspection template creation process in the first embodiment of the present invention.
  • FIG. 3 is a diagram for explaining an example of print data according to the first embodiment of the present invention.
  • FIG. 4 is a diagram for explaining an example of rotation data according to the first embodiment of the present invention.
  • FIG. 5 is a diagram for explaining a dead zone data creation process in the first embodiment of the present invention.
  • FIG. 6 is a diagram illustrating an example of thick line data according to the first embodiment of the present invention.
  • FIG. 7 is a diagram for explaining an example of thinning data according to the first embodiment of the present invention.
  • FIG. 8 is a diagram illustrating an example of a print inspection template according to the first embodiment of the present invention.
  • an intermediate color other than black and white may occur at a part of the edge portion of the character or the like as shown in FIG. This is because an edge such as a character exists at an intermediate position between adjacent pixels in the imaging apparatus.
  • the print inspection template created based on the print data does not include an intermediate color as in the first embodiment of the present invention. For this reason, there is no ambiguous part and the inspection accuracy can be improved.
  • a plurality of pieces of rotation data are created, but the present invention is not necessarily limited to this. For example, if it is not necessary to define an orientation with no secant, it is not necessary to create rotation data. Further, when inputting print data at all rotation angles used by the first side printing means 71, it is not necessary to create rotation data by the image processing apparatus, and the input print data at a plurality of rotation angles is used as rotation data. Can be used.
  • the print data is rotated to generate an intermediate color
  • this intermediate color is eliminated by a technique such as the Floyd-Steinberg method. It is more advantageous in inspection accuracy to use a printed inspection template having no intermediate color.
  • the solid preparation T is rotated and imaged to create a rotation template, it is necessary to rotate the image many times and image it, which is very laborious.
  • the “print data scheduled to be used” may be one print data at an arbitrary rotation angle among the plurality of rotation angle print data held by the second surface printing unit 72. In other words, the print data may not be the print data at the rotation angle scheduled to be printed on one solid preparation T. If the print data is at any rotation angle, a print inspection template having the rotation angle required by the image processing apparatus can be created. it can.
  • the second embodiment of the present invention is different from the first embodiment in that a position recognition template creation step based on print data is added. That is, in the second embodiment, before printing characters or the like on the solid preparation to be inspected by the printing means, the position where the printing means creates a position recognition template based on the print data scheduled to be used for the solid preparation to be inspected. It includes a recognition template creation process.
  • the position recognition template creation step is executed by executing a program by the position recognition template creation means of the solid preparation template creation means of the image processing apparatus.
  • the position recognition template for the second surface it is not always necessary to create a plurality of rotation data. For example, if it is not necessary to define an orientation with no secant, it is not necessary to create rotation data. Further, when inputting print data at all rotation angles used by the second surface printing means 72, it is not necessary to create rotation data by the image processing apparatus, and the input print data at a plurality of rotation angles is used as rotation data. Can be used.

Abstract

【課題】固形製剤表面に印刷された文字等の検査に必要なテンプレートを作成する手間を省くことを課題とする。 【解決手段】印刷手段により固形製剤表面に印刷された文字等を検査する固形製剤検査工程を実施するための固形製剤用テンプレート作成方法であって、前記印刷手段により文字等を検査対象の前記固形製剤に印刷する前に、前記検査対象の固形製剤に対して前記印刷手段が使用予定の印刷データに基づいて印刷検査テンプレートを作成する印刷検査テンプレート作成工程を備えたことを特徴とする固形製剤用テンプレート作成方法とした。

Description

固形製剤用テンプレート作成方法、固形製剤用テンプレート作成プログラムを記録したコンピュータが読み取り可能な記録媒体、固形製剤印刷検査方法、及び固形製剤印刷検査装置
 本発明は、固形製剤表面に印刷された文字等の検査における教示の手間を省いた固形製剤用テンプレート作成方法、固形製剤用テンプレート作成プログラムを記録したコンピュータが読み取り可能な記録媒体、固形製剤印刷検査方法、及び固形製剤印刷検査装置に関するものである。
 錠剤やカプセル剤等の固形製剤には、薬の種類や製造者を明示する文字やマーク等(本明細書においては、「文字等」と定義する。)が印刷される。この文字等は、印刷時ににじみや欠けが生じることがあり全数検査されている。
 特許文献1には、錠剤表面に印刷された文字等を撮像し、撮像画像データと予め記憶したテンプレートとを重ね合わせて、両者の各画素が白と白、又は、黒と黒というように一致しているか、又は一致していない画素の数をカウントするテンプレートマッチング法で検査する構成が記載されている。
 特許文献1:特開平9-187915号公報 
 しかしながら、テンプレートマッチング法で検査するには、予め、標準的なサンプルとなるテンプレートを教示データとして作成することが必要である。この場合、テンプレートを作成するために、多くの画像を撮像して標準的なサンプルを選び出すという教示作業にたいへん手間がかかるという問題があった。
本発明は、上記問題点を解決して、固形製剤表面に印刷された文字等の検査に必要なテンプレートを作成する手間を省くことを課題とする。
 上記課題を解決するために本発明は、印刷手段により固形製剤表面に印刷された文字等を検査する固形製剤検査工程を実施するための固形製剤用テンプレート作成方法であって、
 前記印刷手段により文字等を検査対象の前記固形製剤に印刷する前に、前記検査対象の固形製剤に対して前記印刷手段が使用予定の印刷データに基づいて印刷検査テンプレートを作成する印刷検査テンプレート作成工程を備えたことを特徴とする固形製剤用テンプレート作成方法を提供するものである。
この構成により、固形製剤表面に印刷された文字等の検査に必要なテンプレートを作成する手間を省くことができる。
前記印刷手段により文字等を検査対象の前記固形製剤に印刷する前に、前記検査対象の固形製剤に対して前記印刷手段が使用予定の印刷データに基づいて位置認識テンプレートを作成する位置認識テンプレート作成工程を含むようにしてもよい。
この構成により、文字等の位置を認識する場合にも必要なテンプレート作成の手間を省くことができる。
前記印刷検査テンプレート作成工程、及び/又は前記位置認識テンプレート作成工程は、前記印刷データを回転させる回転演算工程を含むようにしてもよい。
この構成により、固形製剤に印刷された文字等が回転していても検査することができるテンプレートを作成する手間を省くことができる。
前記印刷検査テンプレート作成工程は、前記印刷検査テンプレートにおける文字等のエッジ部に不感帯を設けるようにしてもよい。
この構成により、印刷された文字等に存在するにじみや欠けが許容範囲である場合に、良品として扱うことができるテンプレートを作成することができる。
前記不感帯は、前記印刷データの太線化データを作成する太線化工程、及び/又は前記印刷データの細線化データを作成する細線化工程により設けるようにしてもよい。
この構成により、効率的に不感帯を設けることができる。
また、上記課題を解決するために本発明は、コンピュータに、印刷手段により固形製剤表面に印刷された文字等を検査する固形製剤検査工程を実施するための固形製剤用テンプレート作成プログラムを記録したコンピュータが読み取り可能な記録媒体であって、前記印刷手段により文字等を検査対象の固形製剤に印刷する前に、前記検査対象の固形製剤に対して前記印刷手段が使用予定の印刷データに基づいて印刷検査用テンプレートを作成する印刷検査テンプレート作成工程を備えたことを特徴とする固形製剤用テンプレート作成プログラムを記録したコンピュータが読み取り可能な記録媒体を提供するものである。
この構成により、固形製剤表面に印刷された文字等の検査に必要なテンプレートを作成する手間を省くことができる。
前記印刷手段により文字等を検査対象の前記固形製剤に印刷する前に、前記検査対象の固形製剤に対して前記印刷手段が使用予定の印刷データに基づいて位置認識テンプレートを作成する位置認識テンプレート作成工程を含むようにしてもよい。
この構成により、文字等の位置を認識する場合に必要なテンプレートを作成する手間を省くことができる。
前記印刷検査テンプレート作成工程、及び/又は前記位置認識テンプレート作成工程は、前記印刷データを回転させる回転演算工程を含むようにしてもよい。
この構成により、固形製剤に印刷された文字等が回転していても検査することができるテンプレートを作成する手間を省くことができる。
前記印刷検査テンプレート作成工程は、前記印刷検査テンプレートにおける文字等のエッジ部に不感帯を設けるようにしてもよい。
この構成により、印刷された文字等に存在するにじみや欠けが許容範囲である場合に、良品として扱うことができるテンプレートを作成することができる。
前記不感帯は、前記印刷データの太線化データを作成する太線化工程、及び/又は前記印刷データの細線化データを作成する細線化工程により設けるようにしてもよい。
さらに、上記課題を解決するために本発明は、固形製剤表面に文字等を印刷する印刷工程と、固形製剤用テンプレートを作成する固形製剤用テンプレート作成工程と、前記印刷工程で印刷された文字等の良否を検査する固形製剤検査工程とを備えた固形製剤印刷検査方法であって、前記固形製剤テンプレート作成工程は、前記印刷工程で文字等を検査対象の固形製剤に印刷する前に、前記検査対象の固形製剤に対して前記印刷工程が使用予定の印刷データに基づいて印刷検査テンプレートを作成する印刷検査テンプレート作成工程を備え、前記固形製剤検査工程は、前記印刷検査テンプレートと前記検査対象の固形製剤の撮像画像とに基づいて、印刷された文字等の良否を検査することを特徴とする固形製剤印刷検査方法を提供するものである。
この構成により、固形製剤表面に印刷された文字等の検査に必要なテンプレートを作成する手間を省くことができる。
前記固形製剤用検査テンプレート作成工程は、前記印刷手段により文字等を検査対象の固形製剤に印刷する前に、前記検査対象の固形製剤に対して前記印刷手段が使用予定の印刷データに基づいて位置認識テンプレートを作成する位置認識テンプレート作成工程を含むようにしてもよい。
この構成により、文字等の位置を認識する場合に必要なテンプレートを作成する手間を省くことができる。
前記印刷検査テンプレート作成工程、及び/又は前記位置認識テンプレート作成工程は、前記印刷データを回転させる回転演算工程を含むようにしてもよい。
この構成により、固形製剤に印刷された文字等が回転していても検査することができるテンプレートを作成する手間を省くことができる。
さらに、上記課題を解決するために本発明は、固形製剤表面に文字等を印刷する印刷手段と、固形製剤用テンプレートを作成する固形製剤用テンプレート作成手段と、印刷文字等の良否を検査する固形製剤検査手段とを備えた固形製剤印刷検査装置であって、前記固形製剤用テンプレート作成手段は、検査対象の固形製剤に対して前記印刷手段が使用予定の印刷データに基づいて印刷検査テンプレートを作成する印刷検査テンプレート作成手段を備え、前記固形製剤検査手段は、前記印刷検査テンプレートと前記検査対象の固形製剤の撮像画像とに基づいて印刷文字等の良否を検査することを特徴とする固形製剤印刷検査装置を提供するものである。
この構成により、固形製剤表面に印刷された文字等の検査に必要なテンプレートを作成する手間を省くことができる。
前記固形製剤用テンプレート作成手段は、前記検査対象の固形製剤に対して前記印刷手段が使用予定の印刷データに基づいて、位置認識テンプレートを作成する位置認識テンプレート作成手段を含むようにしてもよい。
この構成により、文字等の位置を認識する場合に必要なテンプレートを作成する手間を省くことができる。
前記印刷検査テンプレート作成手段、及び/又は前記位置認識テンプレート作成手段は、前記印刷データを回転させる回転演算部を含むようにしてもよい。
この構成により、固形製剤に印刷された文字等が回転していても検査できるテンプレートを作成する手間を省くことができる。
本発明の実施例1における固形製剤印刷検査装置の構成を説明する図である。 本発明の実施例1における印刷検査テンプレート作成工程を説明する図である。 本発明の実施例1における印刷データの例を説明する図である。 本発明の実施例1における回転データの例を説明する図である。 本発明の実施例1における不感帯データ作成工程を説明する図である。 本発明の実施例1における太線化データの例を説明する図である。 本発明の実施例1における細線化データの例を説明する図である。 本発明の実施例1における印刷検査テンプレートの例を説明する図である。 本発明の実施例2における位置認識テンプレート作成工程を説明する図である。 本発明の実施例2における位置認識テンプレートの例を説明する図である。 撮像による回転テンプレート作成時の問題点を説明する図である。
以下、図1を参照しながら、本発明の実施例1ついて説明する。図1は、本発明の実施例1における固形製剤印刷検査装置の構成を説明する図である。
固形製剤印刷検査装置100は、図1に示すように、搬送手段50により順次搬送される固形製剤Tの両面に文字等の印刷をするとともに、印刷した文字等の良否検査を行うものである。ここで、本発明における固形製剤とは、錠剤やカプセル剤などの薬剤をいい、顆粒剤や液剤は含まない。
固形製剤印刷検査装置100を詳しく説明する。搬送手段50は、第1面側搬送ベルト51、第2面側搬送ベルト52、回転ドラム53、回転ドラム54、駆動ローラ55、良品収納箱56等からなっている。第1面側搬送ベルト51は、固形製剤Tの第1面を上にして1個ずつ載せてX方向に搬送する。第1面側搬送ベルト51で搬送される固形製剤Tはその第1面に文字等を印刷され、印刷された文字等を検査される。回転ドラム53は、第1面側搬送ベルト51のX方向端部に搬送された固形製剤Tの上面(第1面)を順次真空吸引して、その下面(第2面)が表になるように第2面側搬送ベルト52に設けた貫通孔を介して保持するとともに、反時計方向に回転することによりZ方向(上方)へと固形製剤Tを搬送する。回転ドラム54も真空吸引によって固形製剤Tを保持してさらに反時計方向に回転して固形製剤TをZ方向(上方)へ搬送し、次に、第2面側搬送ベルト52によって固形製剤Tを-X方向へ搬送する。第2面側搬送ベルト52によって-X方向へ搬送される固形製剤Tは、第2面を上に向けて搬送され、第2面に文字等を印刷され、印刷された文字等を検査される。最後に、印刷検査の結果、良品と判断された固形製剤Tが良品収納箱56に収納される。
第1面側搬送ベルト51で搬送される固形製剤Tは、まず、第1面事前認識用撮像装置61が撮像可能な位置に搬送され、固形製剤Tの第1面の画像が撮像される。固形製剤印刷検査装置100においては、第1面事前認識用撮像装置61はCMOSイメージセンサで構成され、このCMOSイメージセンサで固形製剤Tの第1面を撮像する。撮像の際、図示しないセンサーによって固形製剤Tが所定の位置に搬送されたことを検知し、ストロボ光を照射するとともにCMOSイメージセンサの電子シャッタを使って、画像がぶれないように撮像する。第1面事前認識用撮像装置61で撮像された画像は、図示しない画像処理装置に送られて処理される。画像処理装置は、コンピュータを含んで構成され、プログラムによりテンプレートマッチング法による画像処理が実行され、固形製剤Tの位置と、必要に応じて回転角が認識される。
固形製剤Tが錠剤である場合、種類によっては、表面に割線と呼ばれる溝が直線状に設けられていることがある。この割線は、錠剤を半分に割るときに割れやすくするためのものである。この割線が設けられた錠剤においては、割線上に文字等の印刷が行われないように割線の回転角、すなわち固形製剤Tの回転角が第1面事前認識用撮像装置61で撮像された画像に基づいて画像処理装置で認識される。また、固形製剤Tが異形錠である場合も回転角が認識される。このとき必要に応じて、固形製剤Tの割れや欠け等の表面状態を検査するようにしてもよい。
画像処理装置に含まれるコンピュータで実行される画像処理のプログラムは、CDやDVD等の記録媒体に記録して持ち運んだり、別の記録媒体にコピーしたりすることができる。
次に、固形製剤Tは、印刷手段71が印刷可能な場所へと搬送される。印刷手段71は、インクジェットプリンタからなり、画像処理装置が認識した固形製剤Tの位置と、必要に応じて回転角のデータとに応じて、その第1面に文字等を印刷する。回転角に応じて印刷する必要のある場合は、印刷手段71は、予め複数の回転角に回転させた複数の印刷データを記憶している。
次に、固形製剤Tは、第1面印刷検査用撮像装置11が撮像可能な位置に搬送され、固形製剤Tの第1面が撮像される。第1面印刷検査用撮像装置11はCMOSイメージセンサで構成され、このCMOSイメージセンサ
で固形製剤Tの第1面を撮像する。撮像の際、図示しないセンサーによって固形製剤Tが所定の位置に搬送されたことを検知し、ストロボ光を照射するとともにCMOSイメージセンサの電子シャッタを使って、画像がぶれないように撮像する。撮像された画像は、図示しない画像処理装置に送られて固形製剤検査工程が実施される。画像処理装置は、コンピュータで構成された固形製剤検査手段を備えており、プログラムによりテンプレートマッチング法による画像処理が実行される。
画像処理装置の固形製剤検査手段は、固形製剤検査工程をプログラムにより実行する。また、固形製剤検査手段は、位置認識手段と印刷検査手段を含み、それぞれ位置認識工程と印刷検査工程を実行する。最初に、位置認識工程を実施して印刷文字等の位置及び回転角や縮尺変化を認識し、次に認識された文字等の姿勢や縮尺変化に応じて、撮像した画像を回転、平行移動及び倍率変換して印刷検査工程を実施する。第1面事前認識用撮像装置61で既に固形製剤Tの位置と回転角を計測しているが、搬送中に位置及び回転角が微妙にずれることがあり、その場合そのまま印刷検査を行えば良品が不良品と判断される恐れもあるため、印刷後に位置認識工程も設けた方が、検査精度をより高められる。位置認識工程では第1面印刷検査用撮像装置11の画像のみを使用して認識しても構わないが、第1面事前認識用撮像装置61のデータからおおよその位置及び回転角を把握しておき、位置認識工程での負担を軽減させても良い。印刷検査工程では、印刷検査テンプレートと撮像画像中の固形製剤Tとを重ね合わせて一致しない不一致画素数をカウントし、カウントした画素数が閾値未満であれば、当該固形製剤Tを良品と判断する。閾値以上であれば、不良品と判断し、図示しない排出手段により排出する。
なお、位置認識テンプレートと撮像画像との位置合わせの際に、実施例1においては、撮像した画像を回転、平行移動及び倍率変換するようにしたが、必ずしもこれに限定されず、画像処理装置が記憶している印刷検査テンプレートを回転、平行移動及び倍率変換するようにしてもよい。
印刷検査工程においては、位置認識工程で認識した回転角に最も近い回転角を有する回転テンプレートを選択して撮像画像中の固形製剤Tに重ね合わせ、不一致画素数のカウントを行って文字等の印刷検査を行う。その際、印刷された文字等の検査において、印刷手段71の種類や状態によって、にじみや欠け等を厳しすぎないようにある程度のにじみや欠けを許容する場合がある。このため印刷検査テンプレートにおける文字等のエッジ部に不感帯を設けて、その不感帯の領域においては、上記不一致画素数のカウントを行わないようにしている。
なお、実施例1においては、固形製剤Tをベルト搬送しているため固形製剤Tが躍る可能性があり、事前認識での位置及び回転角認識に加えて、位置認識工程でも回転角や縮尺変化の認識を必要としているが、固形製剤Tが躍ることがない搬送方法を用いた場合は、必ずしもこれに限定されない。例えば、1ドラムで搬送を行って固形製剤Tをしっかりと固定できる場合は、回転角や縮尺変化の認識を省略してもよい。
実施例1において、文字等の印刷検査を行うために、画像処理装置に印刷検査テンプレートを記憶している。印刷検査テンプレートは、文字等のにじみや欠けをテンプレートマッチング法で検査するためのテンプレートである。画像処理装置は、印刷検査テンプレート作成手段を備え、印刷検査工程における印刷検査を行う前に、後述する印刷検査テンプレート作成工程を実施する。また、位置認識工程をテンプレートマッチング法で行う場合は、位置認識テンプレート作成工程を実施する。この印刷検査テンプレート作成工程と位置認識テンプレート作成工程とをあわせて固形製剤用テンプレート作成工程という。したがって、画像処理装置は、固形製剤テンプレート作成手段を有し、固形製剤テンプレート作成手段は、印刷検査テンプレート作成手段と位置認識テンプレート作成手段とを含んでいる。
第1面印刷検査用撮像装置11が撮像した画像による印刷検査で良品と判断された固形製剤Tは、第1面側搬送ベルト51によりX方向端部まで搬送され、そこで、回転ドラム53による真空吸引により、第2面側搬送ベルト52に設けた貫通孔を介して、固形製剤Tの第1面が保持される。そして、上述したように回転ドラム53及び回転ドラム54が反時計方向に回転することにより、固形製剤TはZ方向に搬送された後、第2面を上にして第2面側搬送ベルト52で-X方向に水平搬送される。
固形製剤Tが-X方向に水平搬送されると、まず、第2面事前認識用撮像装置62が撮像可能な位置に搬送され、その上面(第2面)の画像が撮像され固形製剤Tの位置が認識される。第2面事前認識用撮像装置62はCMOSイメージセンサで構成され、このCMOSイメージセンサで固形製剤Tの第2面を撮像する。撮像の際、図示しないセンサーによって固形製剤Tが所定の位置に搬送されたことを検知し、ストロボ光を照射するとともにCMOSイメージセンサの電子シャッタを使って、画像がぶれないように撮像する。第2面事前認識用撮像装置62で撮像された画像は、上述の図示しない画像処理装置に送られる。画像処理装置はコンピュータを含んでおり、プログラムによりテンプレートマッチング法による画像処理が実行され、固形製剤Tの位置、必要に応じて回転角が認識される。
上述したように、固形製剤Tが錠剤である場合、種類によっては、第2面にも割線と呼ばれる溝が直線状に設けられていることがある。この割線が設けられた錠剤においては、割線上に文字等の印刷が行われないように割線の回転角、すなわち固形製剤Tの回転角も第2面事前認識用撮像装置62によって撮像された画像により画像処理装置で認識される。また、固形製剤Tが異形錠である場合も回転角が認識される。このとき必要に応じて、固形製剤Tの割れや欠け等の表面状態を検査するようにしてもよい。
次に、固形製剤Tは、印刷手段72が印刷可能な場所へと搬送される。印刷手段72は、インクジェットプリンタからなり、第2面事前認識用撮像装置62が撮像し画像処理装置が認識した固形製剤Tの位置と、必要に応じて回転角のデータとに応じてその上面(第2面)に文字等を印刷する。回転角に応じて印刷する必要がある場合、印刷手段72は、予め複数の回転角に回転させた複数の印刷データを記憶している。
次に、固形製剤Tは、第2面印刷検査用撮像装置12が撮像可能な位置に搬送され、その第2面が撮像される。第2面印刷検査用撮像装置12はCMOSイメージセンサで構成され、このCMOSイメージセンサで固形製剤Tの第2面を撮像する。撮像の際、図示しないセンサーによって固形製剤Tが所定の位置に搬送されたことを検知し、ストロボ光を照射するとともにCMOSイメージセンサの電子シャッタを使って、画像がぶれないように撮像する。撮像された画像は、上述の図示しない画像処理装置に送られて、固形製剤検査工程が実施される。画像処理装置は、コンピュータで構成された固形製剤検査手段を備えており、プログラムによりテンプレートマッチング法による画像処理を実行する。
画像処理装置の固形製剤検査手段は、固形製剤検査工程をプログラムにより実行する。また、固形製剤検査手段は、位置認識手段と印刷検査手段を含み、それぞれ位置認識工程と印刷検査工程を実行する。最初に、位置認識工程を実施して印刷文字等の位置及び回転角や縮尺変化を認識し、次に認識された文字等の姿勢や縮尺変化に応じて、撮像した画像を回転、平行移動及び倍率変換して印刷検査工程を実施する。印刷検査工程では、印刷検査テンプレートと撮像画像中の固形製剤Tとを重ね合わせて一致しない不一致画素数をカウントし、カウントした画素数が閾値未満であれば、当該固形製剤Tを良品と判断する。閾値以上であれば、不良品と判断し、図示しない排出手段により排出する。
なお、位置認識テンプレートと撮像画像との位置合わせの際に、実施例1においては、撮像画像を回転、平行移動及び倍率変換するようにしたが、必ずしもこれに限定されず、位置認識テンプレートを回転、平行移動及び倍率変換するようにしてもよい。
印刷検査工程においては、位置認識工程で認識した回転角に最も近い回転角を有する回転テンプレートを選択して撮像画像中の固形製剤Tに重ね合わせ、不一致画素数のカウントを行って文字等の印刷検査を行う。その際、印刷された文字等の検査において、印刷手段71の種類や状態によって、にじみや欠け等を厳しすぎないようにある程度のにじみや欠けを許容する場合がある。このためテンプレートのエッジ部に不感帯を設けて、その不感帯の領域においては、上記不一致画素数のカウントを行わないようにしている。
なお、上述したように実施例1においては、固形製剤Tをベルト搬送しているため固形製剤Tが躍る可能性があり、事前認識での位置及び回転角認識に加えて、位置認識工程でも回転角や縮尺変化の認識を必要としているが、固形製剤Tが躍ることがない搬送方法を用いた場合は、必ずしもこれに限定されない。例えば、1ドラムで搬送を行って固形製剤Tをしっかりと固定できる場合は、回転角や縮尺変化の認識を省略してもよい。
画像処理装置には、文字等の印刷検査を行うために、印刷検査テンプレートを記憶している。印刷検査テンプレートは、文字等のにじみや欠けをテンプレートマッチング法で検査するためのテンプレートである。画像処理装置は、印刷検査テンプレート作成手段を備え、印刷検査工程における印刷検査を行う前に、後述する印刷検査テンプレート作成工程を実施する。また、位置認識工程をテンプレートマッチング法で行う場合は、位置認識テンプレート作成工程を実施する。この印刷検査テンプレート作成工程と位置認識テンプレート作成工程とをあわせて固形製剤用テンプレート作成工程という。したがって、画像処理装置は、固形製剤テンプレート作成手段を有し、固形製剤テンプレート作成手段は、印刷検査テンプレート作成手段と位置認識テンプレート作成手段とを含んでいる。
画像処理装置における印刷検査で良品と判断された固形製剤Tは、第2面側搬送ベルト52により、-X方向端部まで搬送され、そこで、良品収納箱56に収納される。
なお、実施例1においては、固形製剤Tの両面において、事前認識用撮像装置、印刷手段、及び印刷検査用撮像装置を設けて、位置等の事前認識、印刷、及び印刷検査を行う構成としたが、必ずしもこれに限定されるものではない。例えば、第1面又は第2面のみに事前認識用撮像装置、印刷手段、及び印刷検査用撮像装置を設けて、位置等の事前認識、印刷、及び印刷検査を行う構成としてもよいし、固形製剤Tの第1面、第2面に加えて、側面においても事前認識用撮像装置、印刷手段、及び印刷検査用撮像装置を設けて、位置等の事前認識、印刷、及び印刷検査を行う構成としてもよい。
また、実施例1においては、第1面側及び第2面側において、事前認識を実施して固形製剤Tの位置や回転角を認識するようにしたが、必ずしもこれに限定されない。例えば、固形製剤Tの位置がしっかりと固定される場合は、事前認識を設けずに、印刷手段及び印刷検査用撮像装置のみを設けて、印刷と印刷検査とを行うように構成してもよい。
また、第1面事前認識用撮像装置61、第2面事前認識用撮像装置62、第1面印刷検査用撮像装置11、及び第2面印刷検査装置12において、ストロボ光を照射するとともにCMOSイメージセンサの電子シャッタを使って画像がぶれないように撮像するようにしたが、必ずしもこれに限定されず、ぶれずに撮像するための適切な手段を用いることができる。例えば、ストロボ光の照射のみでもよいし、電子シャッタのみを使ってもよい。
さらに、第1面印刷手段71、第2面印刷手段72は、インクジェットプリンタを用いて印刷するようにしたが、必ずしもこれに限定されず、適切な
手段により印刷するようにすることができる。例えば、タンポ印刷手段やスクリーン印刷手段により印刷するようにしてもよい。
(印刷検査テンプレート作成工程) 次に、図2~図8を参照しながら、第1面及び第2面の印刷検査工程で用いられる印刷検査テンプレート作成工程について説明する。図2は、本発明の実施例1における印刷検査テンプレート作成工程を説明する図である。図3は、本発明の実施例1における印刷データの例を説明する図である。図4は、本発明の実施例1における回転データの例を説明する図である。図5は、本発明の実施例1における不感帯データ作成工程を説明する図である。図6は、本発明の実施例1における太線化データの例を説明する図である。図7は、本発明の実施例1における細線化データの例を説明する図である。図8は、本発明の実施例1における印刷検査テンプレートの例を説明する図である。
まず、第1面用の印刷検査テンプレートを作成する印刷検査テンプレート作成工程について説明する。第1面印刷手段71により文字等を検査対象の固形製剤Tに印刷する前に、この検査対象の固形製剤Tに対して第1面印刷手段71が使用予定の印刷データに基づいて、画像処理装置が自動的に印刷検査テンプレートを作成する。ここで、第1面印刷手段71は、固形製剤Tが回転している場合に備えて複数の回転角用の印刷データを保有している場合がある。その場合の「使用予定の印刷データ」とは、第1面印刷手段71が保有している複数の回転角の印刷データのうちの、任意の回転角における一の印刷データで足りる。つまり、一の固形製剤Tに印刷予定の回転角における印刷データでなくてもよく、任意の回転角における印刷データであれば、画像処理装置で必要な回転角の印刷検査テンプレートを作成することができる。
ここで、従来のように、文字等を撮像して印刷検査テンプレートを作成すると、図11に示すように文字等のエッジ部の一部には白黒以外の中間色が発生する場合がある。これは、撮像装置における隣り合う画素の中間位置に文字等のエッジが存在するためである。しかし、印刷データそのものには白黒のみでこのような中間色は含まれないため、本発明における実施例1のように、印刷データに基づいて作成した印刷検査テンプレートには中間色は含まれない。このため、あいまいな部分がなく検査精度を向上させることができる。
最初に、図2(1)において、印刷データを入力する。印刷データは、BMPデータに変換した画像データとして入力する。入力した印刷データの例を図3に示す。図3に示すように、固形製剤Tに印刷される文字等は、文字に加えてマーク等の図柄が含まれる場合がある。
次に、図2(2)において、画像処理装置の回転演算部で回転演算工程を実施して、入力した印刷データを複数の回転角に回転させた複数の回転データを作成する。この回転角は、印刷される文字等の大きさや精度等により選択可能であるが、実施例1においては、1度単位の回転角で回転データを作成する。この回転データの例を図4に示す。図4の回転データは、右方向に90度回転させたときのデータである。
なお、実施例1においては、複数の回転データを作成するようにしたが、必ずしもこれに限定されない。例えば、割線がない等向きを規定しなくても良い場合は、回転データを作成しなくてもよい。また、第1面印刷手段71が使用する全ての回転角における印刷データを入力する場合は、画像処理装置で回転データを作成する必要はなく、入力した複数の回転角における印刷データを回転データとして用いることができる。
実施例1における印刷検査テンプレートは、上述したように、印刷データを画像処理で回転させて回転データを作成しているが、従来は、撮像手段が撮像した画像を画像処理で回転して作成するか、回転させた固形製剤Tを撮像して作成していた。この場合、撮像画像の細部において、図11に示すように、文字等のエッジ部に黒い画素201の他に中間色の画素202が現れる場合がある。これは、撮像装置における隣り合う画素の中間位置に文字等のエッジが存在するためである。このような場合、印刷文字等の検査にあいまいな部分が存在することになり、検査精度が低下する要因となる。これに対して印刷データは、中間色を含まない。また印刷データを回転させて中間色が生じるようなケースでは、Floyd-Steinberg法などの手法でこの中間色を排除している。中間色のない印刷検査テンプレートを使う方が、検査精度において有利である。また、固形製剤Tを回転させ撮像して回転テンプレートを作成する場合は、何回も回転させて撮像する必要があるが、これはたいへんな手間がかかることであった。
本発明の実施例1における印刷検査テンプレートは、第1面印刷手段71又は第2面印刷手段    72が使用予定の印刷データに基づいて作成しているので、上述のようなあいまいな部分は存在しないし、画像処理で作成しているので多数の回転及び撮像も不要となり、印刷検査テンプレートの手間が省けることになる。
回転データを作成した後、図2(3)において、不感帯データを作成する。不感帯データは、文字等のエッジ部分において、許容されるにじみや欠けが不良として検出されることを避けるために検査対象としない部分を不感帯として作成する。
図5を参照しながら、不感帯作成工程を説明する。まず、図5(1)により、太線化工程を実施して、回転データを太線化した太線化データを作成するとともに、図5(2)により、細線化工程を実施して、回転データを細線化した細線化データを作成する。太線化データの例を図6に、細線化データの例を図7に示す。次に、図5(3)により、太線化データと細線化データとの差分を求めて差分データを作成する。作成した差分データの例を図8に示す。差分データで得られた部分は不感帯として印刷検査される。つまり、テンプレートマッチング法で一致画素数又は不一致画素数をカウントして印刷検査する際に、不感帯における画素数はカウントしない。これにより、許容されるにじみや欠けが必要以上に厳しく検査されることが避けられる。例えば、図8における白色の部分が、不感帯でこの部分の一致画素数や不一致画素数はカウントしない。この差分データは、印刷検査テンプレートとして、回転角毎に記憶される。
実施例1においては、上述したように、回転データを太線化及び細線化してその差分を求めることにより不感帯を作成した。この結果、不感帯は文字等のエッジ部の内部及び外部に作成される。これに対して、外部のみ、又は内部のみに不感帯を設けることも可能である。例えば、エッジ部の外部のみに不感帯を設ける場合は、細線化を行わず、太線化のみ行い、太線化データと元の回転データとの差分データを作成すればよい。また、エッジ部の内部のみに不感帯を設ける場合は、太線化を行わず、細線化のみ行い、細線化データと元の回転データとの差分データを作成すればよい。つまり、太線化及び細線化を行う場合だけでなく、太線化又は細線化を行う場合もある。
次に、第2面用の印刷検査テンプレートを作成する。第2面用の印刷検査テンプレート作成工程は、第2面印刷手段72が使用予定の印刷データを入力する点が異なるのみで他の工程は上述の第1面用の印刷検査テンプレート作成工程と同じである。つまり、第2面印刷手段72により文字等を検査対象の固形製剤Tに印刷する前に、この検査対象の固形製剤Tに対して第2面印刷手段72が使用予定の印刷データに基づいて、画像処理装置が自動的に印刷検査テンプレートを作成する。ここで、第2面印刷手段72は、固形製剤Tが回転している場合に備えて複数の回転角用の印刷データを有している場合がある。その場合の「使用予定の印刷データ」とは、第2面印刷手段72が保有している複数の回転角の印刷データのうちの、任意の回転角における一の印刷データで足りる。つまり、一の固形製剤Tに印刷予定の回転角における印刷データでなくてもよく、任意の回転角における印刷データであれば、画像処理装置で必要な回転角の印刷検査テンプレートを作成することができる。
また、第2面用の印刷検査テンプレート作成工程においても、必ずしも複数の回転データを作成しなくてもよい。例えば、割線がない等向きを規定しなくても良い場合は、回転データを作成しなくてもよい。また、第2面印刷手段72が使用する全ての回転角における印刷データを入力する場合は、画像処理装置で回転データを作成する必要はなく、入力した複数の回転角における印刷データを回転データとして用いることができる。
このように、実施例1においては、印刷手段により文字等を検査対象の固形製剤に印刷する前に、検査対象の固形製剤に対して印刷手段が使用予定の印刷データに基づいて印刷検査テンプレートを作成する印刷検査テンプレート作成工程を備えたことにより、固形製剤表面に印刷された文字等の検査に必要なテンプレートを作成する手間を省くことができる。
(位置認識テンプレート作成工程) 本発明の実施例2は、実施例1に対して、印刷データに基づいた位置認識テンプレート作成工程を加えた点で異なっている。つまり、実施例2は、印刷手段により文字等を検査対象の固形製剤に印刷する前に、検査対象の固形製剤に対して印刷手段が使用予定の印刷データに基づいて位置認識テンプレートを作成する位置認識テンプレート作成工程を含んでいる。位置認識テンプレート作成工程は、画像処理装置の固形製剤用テンプレート作成手段の位置認識テンプレート作成手段により、プログラムを実行して実施される。
実施例2における第1面用及び第2面用の位置認識テンプレート作成工程について、図9及び図10を参照しながら説明する。図9は、本発明の実施例2における位置認識テンプレート作成工程を説明する図である。図10は、本発明の実施例2における位置認識テンプレートの例を説明する図である。
第1面用の位置認識テンプレートを作成する位置認識テンプレート作成工程について説明する。第1面印刷手段71により文字等を検査対象の固形製剤Tに印刷する前に、この検査対象の固形製剤Tに対して第1面印刷手段71が使用予定の印刷データに基づいて、画像処理装置が位置認識テンプレートを作成する。ここで、第1面印刷手段71は、固形製剤Tが回転している場合に備えて複数の回転角の印刷データを保有している場合がある。その場合の「使用予定の印刷データ」とは、第1面印刷手段71が有している複数の回転角の印刷データのうちの、任意の回転角における一の印刷データで足りる。つまり、一の固形製剤Tに印刷予定の回転角における印刷データでなくてもよく、任意の回転角における印刷データであれば、画像処理装置で必要な回転角の位置認識テンプレートを作成することができる。
具体的には、図9(1)により、印刷データを入力する。印刷データは、BMPデータに変換した画像データとして入力する。入力した印刷データの例を図3に示す。これは、実施例1における印刷データの例と同じである。図3に示すように、固形製剤Tに印刷される文字等は、文字に加えてマーク等の図柄が含まれる場合がある。
次に、図9(2)において、画像処理装置の回転演算部で回転演算工程を実施して、入力した印刷データを複数の回転角に回転させた複数の回転データを作成する。この回転角は、印刷される文字等の大きさや精度等により選択可能であるが、実施例2においては、5度単位の回転角で回転データを作成する。この回転データの例を図4に示す。図4の回転データは、実施例1における回転データと同じであり、右方向に90度回転させたときのデータである。
なお、実施例2においては、複数の回転データを作成するようにしたが、必ずしもこれに限定されない。例えば、割線がない等向きを規定しなくても良い場合は、回転データを作成しなくてもよい。また、第1面印刷手段71が使用する全ての回転角における印刷データを入力する場合は、画像処理装置で回
転データを作成する必要はなく、入力した複数の回転角における印刷データを回転データとして用いることができる。
実施例2における位置認識テンプレートは、上述したように、入力した印刷データを画像処理で回転させて回転データを作成しているが、従来は、撮像手段が撮像した画像を画像処理で回転して作成するか、回転させた固形製剤Tを撮像して作成していた。この場合、撮像画像の細部において、図11に示すように、文字等のエッジ部に黒い画素201の他に中間色の画素202が現れる場合がある。これは、撮像装置における隣り合う画素の中間位置に文字等のエッジが存在するためである。このような場合、印刷文字等の検査にあいまいな部分が存在することになり、検査精度が低下する要因となる。これに対して印刷データは、中間色を含まない。また印刷データを回転させて中間色が生じるようなケースでは、Floyd-Steinberg法などの手法でこの中間色を排除している。中間色のない印刷検査テンプレートを使う方が、検査精度において有利である。また、固形製剤Tを回転させ撮像して回転テンプレートを作成する場合は、何回も回転させて撮像する必要があり、これはたいへん手間がかかることであった。
本発明の実施例2における第1面用の位置認識テンプレートは、第1面印刷手段が使用予定の印刷データに基づいて作成しているので、上述のようなあいまいな部分は存在しないし、画像処理で作成しているので多数の回転及び撮像も不要となり、印刷検査テンプレートの手間が省けることになる。
なお、実施例2においては、5度単位の回転データを作成するようにしているが、必ずしもこれに限定されず、文字等の大きさや必要とされる認識精度により、適宜設定された角度毎の回転データを作成すればよい。例えば、10度単位でもよいし、4度以下の角度単位で回転データを作成するようにしてもよい。
次に、図9(3)において、各回転データについて、そのエッジデータを作成する。エッジデータは、微分や境界検出等の公知の方法により作成することができる。作成したエッジデータは、位置認識テンプレートとして回転角毎に記憶される。位置認識テンプレートの例を図10に示す。位置認識工程では、この位置認識テンプレートと撮像画像における固形製剤Tとを少しずつずらしながら重ね合わせて一致する画素数をカウントし、一致度の最も高い座標の位置と回転角を認識する。
第2面用の位置認識テンプレート作成を行う第2面用の位置認識テンプレート作成工程は、第2面印刷手段72が使用予定の印刷データを入力する点が異なるのみで、他の工程は上述した第1面用の位置認識テンプレート作成工程と同じである。そして、第2面用の位置認識テンプレート作成工程においても、一の固形製剤Tに印刷予定の回転角における印刷データでなくてもよく、任意の回転角における印刷データであれば、画像処理装置で必要な回転角の印刷検査テンプレートを作成することができる。
また、第2面用の位置認識テンプレート作成においても、必ずしも複数の回転データを作成しなくてもよい。例えば、割線がない等向きを規定しなくても良い場合は、回転データを作成しなくてもよい。また、第2面印刷手段72が使用する全ての回転角における印刷データを入力する場合は、画像処理装置で回転データを作成する必要はなく、入力した複数の回転角における印刷データを回転データとして用いることができる。
このように、実施例2においては、印刷手段により文字等を検査対象の固形製剤Tに印刷する前に、検査対象の固形製剤に対して印刷手段が使用予定の印刷データに基づいて位置認識テンプレートを作成する位置認識テンプレート作成工程を備えたことにより、固形製剤表面に印刷された文字等の検査に必要なテンプレートを作成する手間を省くことができる。
本発明における固形製剤用テンプレート作成方法、固形製剤用テンプレート作成プログラムを記録したコンピュータが読み取り可能な記録媒体、固形製剤印刷検査方法、及び固形製剤印刷検査装置は、固形製剤の印刷検査の分野に幅広く適用することができる。
11:第1面印刷検査用撮像装置  12:第2面印刷検査装置50:搬送手段  51:第1面側搬送ベルト  52:第2面側搬送ベルト53:回転ドラム  54:回転ドラム  55:駆動ローラ  56:良品収納箱61:第1面事前認識用撮像装置  62:第2面事前認識用撮像装置71:第1面印刷手段  72:第2面印刷手段100:固形製剤印刷検査装置  T:固形製剤201:黒い画素  202:中間色の画素 

Claims (16)

  1.  印刷手段により固形製剤表面に印刷された文字等を検査する固形製剤検査工程を実施するための固形製剤用テンプレート作成方法であって、
     前記印刷手段により文字等を検査対象の前記固形製剤に印刷する前に、前記検査対象の固形製剤に対して前記印刷手段が使用予定の印刷データに基づいて印刷検査テンプレートを作成する印刷検査テンプレート作成工程を備えたことを特徴とする固形製剤用テンプレート作成方法。
  2.  前記印刷手段により文字等を検査対象の前記固形製剤に印刷する前に、前記検査対象の固形製剤に対して前記印刷手段が使用予定の印刷データに基づいて位置認識テンプレートを作成する位置認識テンプレート作成工程を含むことを特徴とする請求項1に記載の固形製剤用テンプレート作成方法。
  3.  前記印刷検査テンプレート作成工程、及び/又は前記位置認識テンプレート作成工程は、前記印刷データを回転させる回転演算工程を含むことを特徴とする請求項2に記載の固形製剤用テンプレート作成方法。
  4.  前記印刷検査テンプレート作成工程は、前記印刷検査テンプレートにおける文字等のエッジ部に不感帯を設けることを特徴とする請求項1~3のいずれかに記載の固形製剤用テンプレート作成方法。
  5.  前記不感帯は、前記印刷データの太線化画像を作成する太線化工程、及び/又は前記印刷データの細線化画像を作成する細線化工程により設けることを特徴とする請求項4に記載の固形製剤用テンプレート作成方法。
  6.  コンピュータに、印刷手段により固形製剤表面に印刷された文字等を検査する固形製剤検査工程を実施するための固形製剤用テンプレート作成プログラムを記録したコンピュータが読み取り可能な記録媒体であって、
    前記印刷手段により文字等を検査対象の固形製剤に印刷する前に、前記検査対象の固形製剤に対して前記印刷手段が使用予定の印刷データに基づいて印刷検査用テンプレートを作成する印刷検査テンプレート作成工程を備えたことを特徴とする固形製剤用テンプレート作成プログラムを記録したコンピュータが読み取り可能な記録媒体。
  7.  前記印刷手段により文字等を検査対象の前記固形製剤に印刷する前に、前記検査対象の固形製剤に対して前記印刷手段が使用予定の印刷データに基づいて位置認識テンプレートを作成する位置認識テンプレート作成工程を含むことを特徴とする請求項6に記載の固形製剤用テンプレート作成プログラムを記録したコンピュータが読み取り可能な記録媒体。
  8.  前記印刷検査テンプレート作成工程、及び/又は前記位置認識テンプレート作成工程は、前記印刷データを回転させる回転演算工程を含むことを特徴とする請求項7に記載の固形製剤用テンプレート作成プログラムを記録したコンピュータが読み取り可能な記録媒体。
  9.  前記印刷検査テンプレート作成工程は、前記印刷検査テンプレートにおける文字等のエッジ部に不感帯を設けることを特徴とする請求項6~8のいずれかに記載の固形製剤用テンプレート作成プログラムを記録したコンピュータが読み取り可能な記録媒体。
  10.  前記不感帯は、前記印刷データの太線化画像を作成する太線化工程、及び/又は前記印刷データの細線化画像を作成する細線化工程により設けることを特徴とする請求項9に記載の固形製剤用テンプレート作成プログラムを記録したコンピュータが読み取り可能な記録媒体。
  11. 固形製剤表面に文字等を印刷する印刷工程と、固形製剤用テンプレートを作成する固形製剤用テンプレート作成工程と、前記印刷工程で印刷された文字等の良否を検査する固形製剤検査工程とを備えた固形製剤印刷検査方法であって、
    前記固形製剤テンプレート作成工程は、前記印刷工程で文字等を検査対象の固形製剤に印刷する前に、前記検査対象の固形製剤に対して前記印刷工程が使用予定の印刷データに基づいて印刷検査テンプレートを作成する印刷検査テンプレート作成工程を備え、
    前記固形製剤検査工程は、前記印刷検査テンプレートと前記検査対象の固形製剤の撮像画像とに基づいて、印刷された文字等の良否を検査することを特徴とする固形製剤印刷検査方法。
  12. 前記固形製剤用検査テンプレート作成工程は、前記印刷手段により文字等を検査対象の固形製剤に印刷する前に、前記検査対象の固形製剤に対して前記印刷手段が使用予定の印刷データに基づいて位置認識テンプレートを作成する位置認識テンプレート作成工程を含むことを特徴とする請求項11に記載の固形製剤印刷検査方法。
  13.  前記印刷検査テンプレート作成工程、及び/又は前記位置認識テンプレート作成工程は、前記印刷データを回転させる回転演算工程を含むことを特徴とする請求項12に記載の固形製剤印刷検査方法。
  14. 固形製剤表面に文字等を印刷する印刷手段と、固形製剤用テンプレートを作成する固形製剤用テンプレート作成手段と、印刷文字等の良否を検査する固形製剤検査手段とを備えた固形製剤印刷検査装置であって、
    前記固形製剤用テンプレート作成手段は、検査対象の固形製剤に対して前記印刷手段が使用予定の印刷データに基づいて印刷検査テンプレートを作成する印刷検査テンプレート作成手段を備え、
    前記固形製剤検査手段は、前記印刷検査テンプレートと前記検査対象の固形製剤の撮像画像とに基づいて印刷文字等の良否を検査することを特徴とする固形製剤印刷検査装置。
  15.  前記固形製剤用テンプレート作成手段は、前記検査対象の固形製剤に対して前記印刷手段が使用予定の印刷データに基づいて、位置認識テンプレートを作成する位置認識テンプレート作成手段を含むことを特徴とする請求項14に記載の固形製剤印刷検査装置。
  16.  前記印刷検査テンプレート作成手段、及び/又は前記位置認識テンプレート作成手段は、前記印刷データを回転させる回転演算部を含むことを特徴とする請求項15に記載の固形製剤印刷検査装置。
     
PCT/JP2016/081384 2016-02-02 2016-10-24 固形製剤用テンプレート作成方法、固形製剤用テンプレート作成プログラムを記録したコンピュータが読み取り可能な記録媒体、固形製剤印刷検査方法、及び固形製剤印刷検査装置 WO2017134869A1 (ja)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2016017653A JP2017138693A (ja) 2016-02-02 2016-02-02 固形製剤用テンプレート作成方法、固形製剤用テンプレート作成プログラムを記録したコンピュータが読み取り可能な記録媒体、固形製剤印刷検査方法、及び固形製剤印刷検査装置
JP2016-017653 2016-02-02

Publications (1)

Publication Number Publication Date
WO2017134869A1 true WO2017134869A1 (ja) 2017-08-10

Family

ID=59499689

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2016/081384 WO2017134869A1 (ja) 2016-02-02 2016-10-24 固形製剤用テンプレート作成方法、固形製剤用テンプレート作成プログラムを記録したコンピュータが読み取り可能な記録媒体、固形製剤印刷検査方法、及び固形製剤印刷検査装置

Country Status (3)

Country Link
JP (1) JP2017138693A (ja)
TW (1) TW201804980A (ja)
WO (1) WO2017134869A1 (ja)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7125510B2 (ja) * 2018-11-21 2022-08-24 富士フイルム富山化学株式会社 薬剤識別装置、薬剤識別方法及び薬剤識別プログラム
JP7300155B2 (ja) * 2019-06-19 2023-06-29 フロイント産業株式会社 固形製剤外観検査における教示装置、及び固形製剤外観検査における教示方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06258226A (ja) * 1993-03-08 1994-09-16 Fujisawa Pharmaceut Co Ltd 錠剤の外観検査方法
JP2010139407A (ja) * 2008-12-12 2010-06-24 Toyota Motor Corp 表面欠陥の検査方法
JP2011141622A (ja) * 2010-01-05 2011-07-21 Canon Inc 検出装置およびその方法
JP2015166897A (ja) * 2014-03-03 2015-09-24 株式会社リコー 画像検査装置、画像検査システム及び画像検査プログラム
WO2015152225A1 (ja) * 2014-03-31 2015-10-08 株式会社湯山製作所 薬剤撮影装置
JP2015202369A (ja) * 2014-04-16 2015-11-16 株式会社松岡機械工作所 錠剤の表裏判定方法、錠剤の表裏判定装置、錠剤の割線検出装置、錠剤印刷装置及び表裏両面に印刷する錠剤の良否判定方法

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4411023B2 (ja) * 2003-07-02 2010-02-10 株式会社川島製作所 包装用印刷検査システム
EP3023187B1 (en) * 2013-07-16 2020-02-12 Qualicaps Co., Ltd. Apparatus and method for marking edible object

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06258226A (ja) * 1993-03-08 1994-09-16 Fujisawa Pharmaceut Co Ltd 錠剤の外観検査方法
JP2010139407A (ja) * 2008-12-12 2010-06-24 Toyota Motor Corp 表面欠陥の検査方法
JP2011141622A (ja) * 2010-01-05 2011-07-21 Canon Inc 検出装置およびその方法
JP2015166897A (ja) * 2014-03-03 2015-09-24 株式会社リコー 画像検査装置、画像検査システム及び画像検査プログラム
WO2015152225A1 (ja) * 2014-03-31 2015-10-08 株式会社湯山製作所 薬剤撮影装置
JP2015202369A (ja) * 2014-04-16 2015-11-16 株式会社松岡機械工作所 錠剤の表裏判定方法、錠剤の表裏判定装置、錠剤の割線検出装置、錠剤印刷装置及び表裏両面に印刷する錠剤の良否判定方法

Also Published As

Publication number Publication date
JP2017138693A (ja) 2017-08-10
TW201804980A (zh) 2018-02-16

Similar Documents

Publication Publication Date Title
WO2017212704A1 (ja) 固形製剤印刷機及び固形製剤印刷方法
JP3669698B2 (ja) 印刷物の検査方法及び検査装置
JPH01194079A (ja) 印字検査方法、印字検査装置および印刷物自動振分けシステム
JP6696323B2 (ja) パターン検査装置およびパターン検査方法
JP2012026908A (ja) 欠陥検査方法及び欠陥検査装置
JP2008003876A (ja) 検査精度検証システム
JP4241361B2 (ja) キャップ天面の検査方法
WO2017134869A1 (ja) 固形製剤用テンプレート作成方法、固形製剤用テンプレート作成プログラムを記録したコンピュータが読み取り可能な記録媒体、固形製剤印刷検査方法、及び固形製剤印刷検査装置
JP2020087473A (ja) 画像検査のための高速画像歪み補正
JP4093426B2 (ja) 検査装置、検査方法
JP2004251855A (ja) 缶外面の検査方法
JP2001175854A (ja) 画像による良否検査装置
JP5710101B2 (ja) 印刷物検査装置、及び印刷物検査方法
JP7402498B2 (ja) ラベル検査方法及びラベル検査システム
JPH06258226A (ja) 錠剤の外観検査方法
JP2561193B2 (ja) 印刷パターン検査装置
JP2021047592A (ja) 印刷物の欠陥検査装置、欠陥検査方法及びプログラム、並びに印刷システム
JP4613090B2 (ja) 検査装置
JP2021009088A (ja) 印刷検査装置、及び印刷検査方法
JP7290825B2 (ja) ラベル検査装置
JP7405915B2 (ja) 製品を分析する方法及び装置、訓練方法、システム、コンピュータプログラム、並びにコンピュータ読み取り可能記憶媒体
JP2991520B2 (ja) 印刷物の印刷かすれ検査装置
JP7012802B2 (ja) 錠剤に対する印刷及び検査を行う錠剤印刷及び検査装置ならびに方法
JP2018072191A (ja) 積層体の検査装置,方法およびプログラム
JP2010121941A (ja) 印刷位置ずれ検査装置および方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16889352

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16889352

Country of ref document: EP

Kind code of ref document: A1