JP2021065301A - Visual inspection device, visual inspection method, and tablet printing device - Google Patents

Visual inspection device, visual inspection method, and tablet printing device Download PDF

Info

Publication number
JP2021065301A
JP2021065301A JP2019191157A JP2019191157A JP2021065301A JP 2021065301 A JP2021065301 A JP 2021065301A JP 2019191157 A JP2019191157 A JP 2019191157A JP 2019191157 A JP2019191157 A JP 2019191157A JP 2021065301 A JP2021065301 A JP 2021065301A
Authority
JP
Japan
Prior art keywords
light source
subject
imaging
tablet
image data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2019191157A
Other languages
Japanese (ja)
Other versions
JP6999138B2 (en
Inventor
大輔 松岡
Daisuke Matsuoka
大輔 松岡
菅原 稔
Minoru Sugawara
稔 菅原
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.)
MATSUOKA KIKAI KOSAKUSHO KK
Minori Sekkei Jimusho Co Ltd
Original Assignee
MATSUOKA KIKAI KOSAKUSHO KK
Minori Sekkei Jimusho 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 MATSUOKA KIKAI KOSAKUSHO KK, Minori Sekkei Jimusho Co Ltd filed Critical MATSUOKA KIKAI KOSAKUSHO KK
Priority to JP2019191157A priority Critical patent/JP6999138B2/en
Publication of JP2021065301A publication Critical patent/JP2021065301A/en
Application granted granted Critical
Publication of JP6999138B2 publication Critical patent/JP6999138B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

To provide a visual inspection device, a visual inspection method, and a tablet printing device capable of suppressing reflection of a reflected light source when inspecting a surface defect.SOLUTION: In a tablet printing device P, surface A of a tablet supplied from a tablet supply device is printed by a surface A printing device 7 provided in the vicinity of a first conveyance drum 2, and propriety of the printing state is inspected by a surface A visual inspection device 6. The surface A visual inspection device is composed of a surface A imaging device 61 and a surface A illumination device 62. On the basis of positional relationships between the surface A imaging device and the tablet, control is executed for the turning on and off of a first surface A light source 62a and a second surface A light source 62b that constitute the surface A illumination device.SELECTED DRAWING: Figure 1

Description

本発明は、外観検査装置、外観検査方法、及び錠剤印刷装置に関する。詳しくは、被検体の表面欠陥を検査する際に、反射した光源の映り込みを抑制することができる外観検査装置、外観検査方法、及び錠剤印刷装置に係るものである。 The present invention relates to a visual inspection device, a visual inspection method, and a tablet printing device. More specifically, the present invention relates to an appearance inspection apparatus, an appearance inspection method, and a tablet printing apparatus capable of suppressing reflection of a reflected light source when inspecting a surface defect of a subject.

医薬品である製剤やカプセル剤(以下、総称して本明細書においては「錠剤」と定義する。)の表面には、製品識別や誤飲防止のため、品番や品名、成分含有量等の文字や記号などからなる各種コードが表示されている。このような錠剤表面への表示は、刻印成形、転写方式、或いはインクジェット方式等の印刷処理によって行われている。 On the surface of pharmaceutical products and capsules (hereinafter collectively referred to as "tablets" in the present specification), characters such as product numbers, product names, and ingredient contents are used to identify products and prevent accidental ingestion. Various codes consisting of and symbols are displayed. Such labeling on the tablet surface is performed by a printing process such as engraving, a transfer method, or an inkjet method.

このうち、インクジェット方式による印刷処理は、非接触状態で錠剤表面に印刷が可能なことから、錠剤表面に付着した粉末の影響を受けにくく、また、衛生面の点でも優れており、近年、種々の装置が提案されている。 Of these, the inkjet printing process can print on the tablet surface in a non-contact state, so it is not easily affected by the powder adhering to the tablet surface, and is also excellent in terms of hygiene. Equipment has been proposed.

例えば特許文献1に開示の印刷装置は、印刷前の錠剤を撮影する検出用撮像装置と、印刷後の錠剤を撮影する検査用撮像装置とを備えている。特許文献1の装置は、検出用撮像装置により検出される錠剤の位置、姿勢、表裏等に基づいて、ライン上に搬送されてきた錠剤に各種コードの印刷を行う。また、検査用撮像装置は、各錠剤への印刷状態や錠剤の表面上の異物の有無等を検査するために用いられる。 For example, the printing apparatus disclosed in Patent Document 1 includes a detection imaging device for photographing a tablet before printing and an inspection imaging device for photographing a tablet after printing. The apparatus of Patent Document 1 prints various codes on the tablets conveyed on the line based on the position, posture, front and back sides, etc. of the tablets detected by the detection imaging apparatus. Further, the image pickup device for inspection is used for inspecting the printing state on each tablet and the presence or absence of foreign matter on the surface of the tablet.

特開2013―121432号公報Japanese Unexamined Patent Publication No. 2013-121432

前記した特許文献1に開示の印刷装置において用いられる検出用撮像装置、及び検査用撮像装置においては、印刷対象となる錠剤である被検体に対して光を照射するための照明装置を備えている。この照明装置としては、一般的には指向性に優れ、所定の広がり角を有するLED照明装置(以下、単に「LED」という。)が採用される。そして、被検体の表面に対して斜め方向からLEDにより照射し、被検体からの散乱光を前記した各撮像装置により撮像される。 The detection imaging device and the inspection imaging device used in the printing device disclosed in Patent Document 1 are provided with a lighting device for irradiating a subject, which is a tablet to be printed, with light. .. As this lighting device, an LED lighting device having excellent directivity and a predetermined spread angle (hereinafter, simply referred to as "LED") is generally adopted. Then, the surface of the subject is irradiated with the LED from an oblique direction, and the scattered light from the subject is imaged by each of the above-mentioned imaging devices.

このとき、被検体表面からの反射光が撮像装置に映り込むことがある。そして、反射光が映り込んだ領域に表面欠陥が存在するとき、表面欠陥から反射して発生する散乱光は、照明装置の映り込み領域からの光と重なる。そのため、係る領域においては、被検体の表面に表面欠陥が存在しても、撮像装置によって検出することができない。 At this time, the reflected light from the surface of the subject may be reflected on the image pickup apparatus. Then, when a surface defect exists in the region where the reflected light is reflected, the scattered light generated by being reflected from the surface defect overlaps with the light from the reflection region of the illuminating device. Therefore, even if a surface defect is present on the surface of the subject in such a region, it cannot be detected by the imaging device.

一方、このような被検体の表面欠陥を検出する他の方法として、拡散板を用いたり複数の点光源によって被検体の表面を照明し、表面欠陥から発生する散乱光を複数の点光源の光軸からずらした位置で検出することにより、光源の映り込みの影響を抑制して表面欠陥を検出する方法がある。しかしながら、印刷装置の空間スペース等の問題もあり、複数の点光源を設置することは困難であり、また、各点光源を制御する必要があるため、必ずしも実用的な方法であるとはいえない。 On the other hand, as another method for detecting such surface defects of the subject, the surface of the subject is illuminated with a diffuser plate or a plurality of point light sources, and the scattered light generated from the surface defects is the light of the plurality of point light sources. There is a method of detecting surface defects by suppressing the influence of reflection of a light source by detecting at a position deviated from the axis. However, it is not always a practical method because it is difficult to install a plurality of point light sources due to problems such as the space of the printing apparatus and it is necessary to control each point light source. ..

本発明は、以上の点に鑑みて創案されたものであって、被検体の表面欠陥を検査する際に、反射した光源の映り込みを抑制することができる外観検査装置、外観検査方法、及び錠剤印刷装置を提供することを目的とするものである。 The present invention has been devised in view of the above points, and is an appearance inspection device, an appearance inspection method, and an appearance inspection method capable of suppressing reflection of a reflected light source when inspecting a surface defect of a subject. It is an object of the present invention to provide a tablet printing apparatus.

前記の目的を達成するために、本発明の外観検査装置は、上流から下流に向かう搬送経路に沿って搬送される被検体の搬送経路上における位置を検出する位置検出装置と、被検体の外観を搬送経路上における所定の撮像領域内で撮像して画像データを取得する撮像装置と、前記撮像装置の下流側から被検体に対して照明光を照射する第1の光源、前記撮像装置の上流側から被検体に対して照明光を照射する第2の光源からなる照明装置と、前記位置検出装置により検出された前記撮像装置による撮像タイミングにある被検体の位置と前記撮像装置の位置関係に応じて前記照明装置の照明パターンを制御する照明制御装置とを備える。 In order to achieve the above object, the visual inspection device of the present invention includes a position detecting device for detecting the position of a subject transported along a transport path from upstream to downstream on the transport path, and an appearance of the subject. An imaging device that acquires image data by imaging within a predetermined imaging region on the transport path, a first light source that irradiates a subject with illumination light from the downstream side of the imaging device, and an upstream of the imaging device. The positional relationship between the position of the subject and the image pickup device at the imaging timing by the image pickup device detected by the position detection device and the lighting device including the second light source that irradiates the subject with the illumination light from the side. A lighting control device for controlling the lighting pattern of the lighting device is provided accordingly.

ここで、上流から下流に向かう搬送経路に沿って搬送される被検体の搬送経路上における位置を検出する位置検出装置を備えることにより、外観検査の対象となる被検体の搬送経路上における絶対位置を把握し、後述する撮像装置により適切なタイミングで被検体を撮像することができる。 Here, by providing a position detection device that detects the position of the subject transported along the transport path from the upstream to the downstream on the transport path, the absolute position of the subject to be visually inspected on the transport path is provided. The subject can be imaged at an appropriate timing by the imaging device described later.

また、被検体の外観を搬送経路上における所定の撮像領域内で撮像して画像データを取得する撮像装置を備えることにより、撮像領域として被検体の外観全体を撮像可能な領域を規定し、該撮像領域内において被検体の外観を撮像して画像データを取得し、係る画像データに基づいて被検体の外観上の異常の有無を判定することができる。 Further, by providing an imaging device that acquires image data by imaging the appearance of the subject within a predetermined imaging region on the transport path, a region in which the entire appearance of the subject can be imaged is defined as an imaging region. The appearance of the subject can be imaged in the imaging region to acquire image data, and the presence or absence of an abnormality in the appearance of the subject can be determined based on the image data.

また、搬送経路に沿って搬送される被検体に対して照明光を照射する照明装置を備えることにより、被検体に対して照明光を照射した際の反射光を得ることができる。撮像装置は、係る反射光を取り込んで被検体の画像データを取得することができる。 Further, by providing an illumination device that irradiates the subject transported along the transport path with the illumination light, it is possible to obtain the reflected light when the subject is irradiated with the illumination light. The imaging device can capture the reflected light and acquire image data of the subject.

また、照明装置は、撮像装置の下流側から被検体に対して照明光を照射する第1の光源、撮像装置の上流側から被検体に対して照明光を照射する第2の光源から構成されていることにより、2方向からの照射光により、撮像領域において被検体が撮像装置に対してどのような位置にあったとしても、撮像に際して必要となる十分な光量を確保し、適切な反射光を得ることができる。 The lighting device is composed of a first light source that irradiates the subject with illumination light from the downstream side of the imaging device, and a second light source that irradiates the subject with illumination light from the upstream side of the imaging device. As a result, the irradiation light from two directions secures a sufficient amount of light required for imaging regardless of the position of the subject with respect to the imaging device in the imaging region, and is appropriate reflected light. Can be obtained.

また、位置検出装置により検出された撮像装置による撮像タイミングにある被検体の位置と撮像装置の位置関係に応じて照明装置の照明パターンを制御する照明制御装置を備えることにより、被検体と撮像装置の位置関係によって適切な光量を確保することができる。従って、撮像領域内において、撮像装置に対する被検体の位置に関係なく、常に鮮明な画像データを取得することができる。 Further, by providing a lighting control device that controls the illumination pattern of the lighting device according to the position of the subject at the imaging timing by the imaging device detected by the position detection device and the positional relationship of the imaging device, the subject and the imaging device are provided. An appropriate amount of light can be secured depending on the positional relationship of. Therefore, in the imaging region, clear image data can always be acquired regardless of the position of the subject with respect to the imaging device.

また、撮像装置は、搬送経路に略直交する直線状視野により撮像して部分画像データを取得可能なラインスキャンカメラである場合には、分解能が高いため、搬送方向に沿って常に移動する被検体に対しても高解像度の部分画像データを取得することができる。従って、被検体の外観に存在するわずかな異常であっても検出することができる。 Further, when the imaging device is a line scan camera capable of acquiring partial image data by imaging with a linear field of view substantially orthogonal to the transport path, the subject has high resolution and therefore always moves along the transport direction. It is also possible to acquire high-resolution partial image data. Therefore, even a slight abnormality present in the appearance of the subject can be detected.

また、位置検出装置により検出された撮像装置により撮像される被検体の位置と直線状視野の位置関係に応じて照明装置の照明パターンを制御する場合には、ラインスキャンカメラの直線状視野により撮像される被検体からの反射光の入射角度を考慮して、照明制御装置の照明パターンを制御することがきる。 Further, when controlling the illumination pattern of the lighting device according to the positional relationship between the position of the subject imaged by the imaging device detected by the position detection device and the linear field of view, the image is captured by the linear field of view of the line scan camera. It is possible to control the illumination pattern of the illumination control device in consideration of the incident angle of the reflected light from the subject.

また、照明制御装置は、位置検出装置により検出された撮像装置により撮像される被検体の搬送位置と直線状視野の位置関係に応じて、第1の光源が点灯するときに第2の光源を消灯し、第1の光源が消灯するときに第2の光源を点灯する場合には、撮像対象となる被検体の位置と直線状視野の位置関係に応じて、撮像装置へ入射する反射光が適度なものとなるように照明装置の点灯、或いは消灯を制御することができる。また、一方の光源を点灯する際には他方の光源を消灯するため、照明装置の電気消費量も低減することができる。 Further, the lighting control device sets the second light source when the first light source is turned on according to the positional relationship between the transport position of the subject imaged by the image pickup device detected by the position detection device and the linear visual field. When the light is turned off and the second light source is turned on when the first light source is turned off, the reflected light incident on the image pickup apparatus is emitted according to the positional relationship between the position of the subject to be imaged and the linear visual field. It is possible to control the lighting or extinguishing of the lighting device so as to be appropriate. Further, when one light source is turned on, the other light source is turned off, so that the electricity consumption of the lighting device can be reduced.

また、被検体の外観は、搬送方向を長手方向とした場合に、被検体の長手方向を二分する略中心線を境として搬送方向の下流を指向する先端を含む一側、搬送方向の上流を指向する後端を含む他側が定義され、照明制御装置は、撮像装置により被検体の先端を含む一側の第1の領域の部分画像データを取得する際には、第1の光源を点灯して第2の光源を消灯する場合には、第1の光源から照射される照明光により、被検体の先端部分を照射することができるため、照明光が届きにくい先端部分に対して十分な反射光を確保することができる。 In addition, when the transport direction is the longitudinal direction, the appearance of the subject is one side including the tip that points downstream in the transport direction with the substantially center line that divides the longitudinal direction of the subject into two, and the upstream in the transport direction. The other side including the rear end to be directed is defined, and the lighting control device turns on the first light source when acquiring the partial image data of the first region on one side including the tip of the subject by the imaging device. When the second light source is turned off, the tip portion of the subject can be illuminated by the illumination light emitted from the first light source, so that the tip portion is sufficiently reflected by the tip portion where the illumination light is difficult to reach. Light can be secured.

このとき、第1の光源とともに第2の光源を点灯すると、第2の光源から照射されて被検体で反射した反射光は、第1の光源からの照射光と干渉し合うことで光量が強くなりすぎて部分画像データが不鮮明なものとなる。一方、第1の光源を消灯して第2の光源を点灯すると、第2の光源から照射される照射光は被検体の先端付近に十分な光量を照射することができず、部分画像データが不鮮明なものとなる。 At this time, when the second light source is turned on together with the first light source, the reflected light emitted from the second light source and reflected by the subject interferes with the irradiation light from the first light source, so that the amount of light is strong. The partial image data becomes unclear because it becomes too large. On the other hand, when the first light source is turned off and the second light source is turned on, the irradiation light emitted from the second light source cannot irradiate a sufficient amount of light near the tip of the subject, and the partial image data is displayed. It becomes unclear.

また、被検体の第1の領域を除く一側の第2の領域の部分画像データを取得する際には、第1の光源を消灯して第2の光源を点灯する場合には、第2の光源から照射され被検体で反射した反射光は、撮像装置と被検体の位置関係により、適度な光量となって撮像装置に入射するため、鮮明な部分画像データを取得することができる。 Further, when acquiring the partial image data of the second region on one side excluding the first region of the subject, when the first light source is turned off and the second light source is turned on, the second light source is turned on. The reflected light emitted from the light source of the above and reflected by the subject is incident on the imaging device in an appropriate amount depending on the positional relationship between the imaging device and the subject, so that clear partial image data can be acquired.

即ち、例えば被検体としての錠剤は、通常、中心線を境に第2の領域から第1の領域にかけて緩傾斜する略楕円形、又は略円筒形に成型されている。このとき、第2の光源から照射されて第2の領域に係る緩傾斜部分で反射した反射光は搬送方向に向けて反射するため、撮像装置の直線状視野に入射する光量が適度に調整されることで、鮮明な部分画像データを取得することができる。 That is, for example, a tablet as a subject is usually molded into a substantially elliptical shape or a substantially cylindrical shape that gently inclines from a second region to a first region with a center line as a boundary. At this time, since the reflected light emitted from the second light source and reflected in the gently inclined portion related to the second region is reflected in the transport direction, the amount of light incident on the linear field of view of the image pickup apparatus is appropriately adjusted. By doing so, clear partial image data can be acquired.

一方、第2の領域を撮像する際に、第1の光源を点灯すると、第1の光源から照射されて第2の領域に係る緩傾斜部分で反射した反射光の大半は、撮像装置に入射し光量が強くなり過ぎることにより、被検体の第2の領域の一部が白くぼやけた部分画像データとなる。 On the other hand, when the first light source is turned on when the second region is imaged, most of the reflected light emitted from the first light source and reflected in the gently inclined portion related to the second region is incident on the image pickup apparatus. When the amount of light becomes too strong, a part of the second region of the subject becomes white and blurred partial image data.

また、撮像装置により被検体の後端を除く他側の第3の領域の部分画像データを取得する際には、第1の光源から照射され被検体で反射した反射光は、撮像装置と被検体の位置関係により、適度な光量となって撮像装置に入射するため、鮮明な部分画像データを取得することができる。 Further, when the image pickup device acquires the partial image data of the third region on the other side excluding the rear end of the subject, the reflected light emitted from the first light source and reflected by the subject is the image pickup device and the subject. Depending on the positional relationship of the sample, the amount of light becomes an appropriate amount and is incident on the imaging device, so that clear partial image data can be acquired.

即ち、前記の通り被検体としての錠剤は、中心線を境にして第3の領域から第4の領域にかけて緩傾斜する略楕円形、又は略円筒形に成型されている。このとき、第1の光源から照射されて第3の領域に係る緩傾斜部分で反射した反射光は搬送方向とは反対方向に向けて反射するため、撮像装置の直線状視野に入射する光量が適度に調整されることで、鮮明な部分画像データを取得することができる。 That is, as described above, the tablet as a subject is molded into a substantially elliptical shape or a substantially cylindrical shape that is gently inclined from the third region to the fourth region with the center line as a boundary. At this time, the reflected light emitted from the first light source and reflected in the gently inclined portion related to the third region is reflected in the direction opposite to the transport direction, so that the amount of light incident on the linear field of view of the image pickup apparatus is large. By adjusting appropriately, clear partial image data can be acquired.

一方、第3の領域を撮像する際に、第2の光源を点灯すると、第2の光源から照射されて第3の領域に係る緩傾斜部分で反射した反射光の大半は、撮像装置に入射し光量が強くなり過ぎることにより、被検体の第3の領域の一部が白くぼやけた部分画像データとなる。 On the other hand, when the second light source is turned on when the third region is imaged, most of the reflected light emitted from the second light source and reflected in the gently inclined portion related to the third region is incident on the image pickup apparatus. When the amount of light becomes too strong, a part of the third region of the subject becomes white and blurred partial image data.

また、撮像装置により被検体の後端を含み第3の領域を除く第4の領域の部分画像データを取得する際には、第1の光源を消灯して第2の光源を点灯する場合には、第2の光源から照射される照明光により、被検体の後端部分を照射することができるため、照明光が届きにくい後端部分に対して十分な反射光を確保することができる。 Further, when acquiring partial image data of a fourth region including the rear end of the subject and excluding the third region by the imaging device, when the first light source is turned off and the second light source is turned on. Is able to irradiate the rear end portion of the subject with the illumination light emitted from the second light source, so that sufficient reflected light can be secured for the rear end portion where the illumination light is difficult to reach.

このとき、第2の光源とともに第1の光源を点灯すると、第1の光源から照射されて被検体で反射した反射光は、第2の光源からの照射光と干渉し合うことで光量が強くなりすぎて部分画像データが不鮮明なものとなる。一方、第2の光源を消灯して第1の光源を点灯すると、第1の光源から照射される照射光は被検体の先端付近に十分な光量を照射することができず、部分画像データが不鮮明なものとなる。 At this time, when the first light source is turned on together with the second light source, the reflected light emitted from the first light source and reflected by the subject interferes with the irradiation light from the second light source, so that the amount of light is strong. The partial image data becomes unclear because it becomes too large. On the other hand, when the second light source is turned off and the first light source is turned on, the irradiation light emitted from the first light source cannot irradiate a sufficient amount of light near the tip of the subject, and the partial image data is displayed. It becomes unclear.

また、撮像装置は、撮像領域において搬送方向の上流から下流に向けてN個の被検体に関する部分画像データを取得する場合には、撮像領域をN個の分解能に分解したうえで、撮像装置の直線状視野により、所定のタイミングで被検体の部分画像データを取得することができるとともに、部分画像データの取得と同期して照明装置の照明制御を行うことができる。 Further, when the imaging device acquires partial image data relating to N subjects from upstream to downstream in the transport direction in the imaging region, the imaging device decomposes the imaging region into N resolutions and then determines the imaging device. With the linear visual field, the partial image data of the subject can be acquired at a predetermined timing, and the illumination control of the lighting device can be performed in synchronization with the acquisition of the partial image data.

即ち、撮像領域の分解能が規定されると、係る分解能に基づいて撮像装置による部分画像データの取得タイミングが決まる。さらに、部分画像データの取得タイミングに基づいて、照明装置による点灯、及び消灯の制御を確実に切り換えることができる。 That is, once the resolution of the imaging region is defined, the timing of acquiring partial image data by the imaging device is determined based on the resolution. Further, the lighting and extinguishing control by the lighting device can be reliably switched based on the acquisition timing of the partial image data.

前記の目的を達成するために本発明の外観検査方法は、上流から下流に向けて搬送経路に沿って被検体を搬送する工程と、搬送経路上の被検体の位置を検出する工程と、撮像装置により被検体の外観を所定の撮像領域内において撮像し、画像データを取得する工程と、該画像データを取得する工程において、前記撮像装置の下流側から被検体に対して照明光を照射する第1の光源、前記撮像装置の上流側から被検体に対して照明光を照射する第2の光源からなる照明装置の照明パターンを制御する工程とを備える。 In order to achieve the above object, the visual inspection method of the present invention includes a step of transporting a subject along a transport path from upstream to downstream, a step of detecting the position of the subject on the transport path, and imaging. In the step of capturing the appearance of the subject in a predetermined imaging region by the apparatus and acquiring the image data and the step of acquiring the image data, the subject is irradiated with illumination light from the downstream side of the imaging apparatus. The present invention includes a step of controlling an illumination pattern of an illumination device including a first light source and a second light source that irradiates a subject with illumination light from the upstream side of the image pickup apparatus.

ここで、上流から下流に向けて搬送経路に沿って被検体を搬送する工程を備えることにより、被検体に対して行われる複数の作業や検査工程を、その搬送経路上において行うことで、被検体に対する作業、或いは検査業務を効率化することができる。 Here, by providing a step of transporting the subject along the transport path from the upstream to the downstream, a plurality of operations and inspection steps performed on the subject can be performed on the transport path. It is possible to streamline the work on the sample or the inspection work.

また、搬送経路上の被検体の位置を検出する工程を備えることにより、外観検査の対象となる被検体の搬送経路上における絶対位置を把握し、後述する撮像装置による撮像工程において、より適切なタイミングで被検体を撮像することができる。 Further, by providing a step of detecting the position of the subject on the transport path, the absolute position of the subject to be visually inspected on the transport path can be grasped, which is more appropriate in the imaging step by the imaging device described later. The subject can be imaged at the timing.

また、撮像装置により被検体の外観を所定の撮像領域内において撮像し、画像データを取得する工程を備えることにより、撮像領域として被検体の外観全体を撮像可能な領域を規定し、該撮像領域内において被検体の外観を撮像して画像データを取得し、係る画像データに基づいて被検体の外観上の異常の有無を判定することができる。 Further, by providing a step of capturing the appearance of the subject in a predetermined imaging region with an imaging device and acquiring image data, a region in which the entire appearance of the subject can be imaged is defined as an imaging region, and the imaging region is defined. The appearance of the subject can be imaged and image data can be acquired, and the presence or absence of an abnormality in the appearance of the subject can be determined based on the image data.

また、画像データを取得する工程において、照明装置の照明パターンを制御する工程を備えることにより、被検体と撮像装置の位置関係に応じて、もっとも鮮明な画像データが得られるように、照明装置の照明パターンを制御することができる。 Further, in the process of acquiring image data, by providing a step of controlling the lighting pattern of the lighting device, the lighting device can obtain the clearest image data according to the positional relationship between the subject and the imaging device. The lighting pattern can be controlled.

また、照明パターンを制御する工程は、撮像装置の下流側から被検体に対して照明光を照射する第1の光源、撮像装置の上流側から被検体に対して照明光を照射する第2の光源からなる照明装置の照明パターンを制御する場合には、2方向からの照射光により、撮像領域において被検体が撮像装置に対してどのような位置にあったとしても、撮像に際して必要となる十分な光量を確保し、適切な反射光を得ることができる。 Further, in the step of controlling the illumination pattern, the first light source for irradiating the subject with illumination light from the downstream side of the imaging device, and the second light source for irradiating the subject with illumination light from the upstream side of the imaging device. When controlling the illumination pattern of a lighting device consisting of a light source, the irradiation light from two directions is sufficient for imaging regardless of the position of the subject with respect to the imaging device in the imaging region. It is possible to secure an appropriate amount of light and obtain an appropriate reflected light.

前記の目的を達成するために、本発明の錠剤印刷装置は、錠剤を貯留可能な錠剤供給部と、外周面に多数の錠剤保持部を有し、該錠剤保持部に前記錠剤供給部から供給された錠剤が移される搬送ドラムと、前記搬送ドラムの外周面近傍に配され、前記搬送ドラムの回転により搬送経路に沿って搬送されている前記錠剤保持部内の錠剤の露出面に印刷する印刷装置と、該印刷装置より下流側の外周面近傍に配され、前記搬送ドラムの回転により搬送されている前記錠剤保持部内の印刷済みの錠剤の外観を検査する外観検査装置と、を備える錠剤印刷装置において、前記外観検査装置は、上流から下流に向かう搬送経路に沿って搬送される錠剤の搬送経路上における位置を検出する位置検出装置と、前記錠剤保持部内の印刷済みの錠剤の外観を所定の撮像領域内で撮像して画像データを取得する撮像装置と、前記撮像装置の下流側から錠剤に対して照明光を照射する第1の光源、前記撮像装置の上流側から錠剤に対して照明光を照射する第2の光源からなる照明装置と、前記位置検出装置により検出された前記撮像装置による撮像タイミングにある錠剤の位置と前記撮像装置の位置関係に応じて前記照明装置の照明パターンを制御する照明制御装置とを備える。 In order to achieve the above object, the tablet printing apparatus of the present invention has a tablet supply unit capable of storing tablets and a large number of tablet holding units on the outer peripheral surface, and supplies the tablet holding unit from the tablet supply unit. A printing device that prints on the exposed surface of the tablet in the tablet holding portion, which is arranged near the outer peripheral surface of the transport drum to which the transferred tablets are transferred and is transported along the transport path by the rotation of the transport drum. A tablet printing device including the tablet printing device, which is arranged near the outer peripheral surface on the downstream side of the printing device and inspects the appearance of the printed tablet in the tablet holding portion which is transported by the rotation of the transport drum. In the visual inspection device, the position detection device for detecting the position of the tablet transported along the transport path from the upstream to the downstream on the transport path and the appearance of the printed tablet in the tablet holding portion are predetermined. An imaging device that acquires image data by imaging in the imaging region, a first light source that irradiates the tablet with illumination light from the downstream side of the imaging device, and an illumination light that illuminates the tablet from the upstream side of the imaging device. The illumination pattern of the illumination device is controlled according to the positional relationship between the tablet position and the image pickup device at the imaging timing by the image pickup device detected by the position detection device and the illumination device including the second light source that irradiates the tablet. It is equipped with a lighting control device.

ここで、錠剤印刷装置は、錠剤を貯留可能な錠剤供給部と、外周面に多数の錠剤保持部を有し、錠剤保持部に錠剤供給部から供給された錠剤が移される搬送ドラムと、搬送ドラムの外周面近傍に配され、搬送ドラムの回転により搬送経路に沿って搬送されている錠剤保持部内の錠剤の露出面に印刷する印刷装置と、印刷装置より下流側の外周面近傍に配され、搬送ドラムの回転により搬送されている錠剤保持部内の印刷済みの錠剤の外観を検査する外観検査装置を備えることにより、錠剤供給部から供給され、搬送ドラムで搬送された錠剤に対して、所定の文字や記号等を印刷することができるとともに、外観検査装置により錠剤の印刷状態を含む外観の異常を検査することができる。 Here, the tablet printing apparatus has a tablet supply unit capable of storing tablets, and a transfer drum having a large number of tablet holding units on the outer peripheral surface and transferring the tablets supplied from the tablet supply unit to the tablet holding unit. A printing device that is arranged near the outer peripheral surface of the drum and prints on the exposed surface of the tablet in the tablet holding portion that is transported along the transport path by the rotation of the transport drum, and is arranged near the outer peripheral surface on the downstream side of the printing device. By providing an appearance inspection device for inspecting the appearance of the printed tablet in the tablet holding portion transported by the rotation of the transport drum, the tablets supplied from the tablet supply unit and transported by the transport drum are predetermined. In addition to being able to print the characters and symbols of, the appearance inspection device can inspect for abnormalities in appearance including the printed state of tablets.

また、上流から下流に向かう搬送経路に沿って搬送される錠剤の搬送経路上における位置を検出する位置検出装置を備えることにより、外観検査の対象となる錠剤の搬送経路上における絶対位置を把握し、後述する撮像装置により適切なタイミングで錠剤を撮像することができる。 In addition, by providing a position detection device that detects the position of the tablet transported along the transport path from the upstream to the downstream on the transport path, the absolute position of the tablet to be visually inspected on the transport path can be grasped. , The tablet can be imaged at an appropriate timing by the imaging device described later.

また、錠剤の外観を所定の撮像領域内で撮像して画像データを取得する撮像装置を備えることにより、撮像領域として錠剤の外観全体を撮像可能な領域を規定し、該撮像領域内において錠剤の外観を撮像して画像データを取得し、係る画像データに基づいて錠剤の外観上の異常の有無を判定することができる。 Further, by providing an imaging device that captures the appearance of the tablet within a predetermined imaging region and acquires image data, a region in which the entire appearance of the tablet can be imaged is defined as an imaging region, and the tablet is within the imaging region. The appearance can be imaged to acquire image data, and the presence or absence of abnormalities in the appearance of the tablet can be determined based on the image data.

また、搬送経路に沿って錠剤に対して照明光を照射する照明装置を備えることにより、錠剤に対して照明光を照射した際の反射光を得ることができる。撮像装置は、係る反射光を取り込んで錠剤の画像データを取得することができる。 Further, by providing an illumination device that irradiates the tablet with illumination light along the transport path, it is possible to obtain the reflected light when the tablet is irradiated with the illumination light. The imaging device can capture the reflected light and acquire image data of the tablet.

また、照明装置は、撮像装置の下流側から錠剤に対して照明光を照射する第1の光源、撮像装置の上流側から錠剤に対して照明光を照射する第2の光源から構成されていることにより、2方向からの照射光により、撮像領域において錠剤が撮像装置に対してどのような位置にあったとしても、撮像に際して必要となる十分な光量を確保するとともに、適切な反射光を得ることができる。 Further, the illumination device is composed of a first light source that irradiates the tablet with illumination light from the downstream side of the image pickup device and a second light source that irradiates the tablet with illumination light from the upstream side of the image pickup device. As a result, the irradiation light from two directions secures a sufficient amount of light required for imaging regardless of the position of the tablet with respect to the imaging device in the imaging region, and obtains appropriate reflected light. be able to.

また、位置検出装置により検出された撮像装置による撮像タイミングにある錠剤の位置と撮像装置の位置関係に応じて照明装置の照明パターンを制御する照明制御装置を備えることにより、錠剤と撮像装置の位置関係によって適切な光量を確保することができる。従って、撮像領域内において、撮像装置に対する錠剤の位置に関係なく、常に鮮明な画像データを取得することができる。 Further, by providing an illumination control device that controls the illumination pattern of the illumination device according to the positional relationship between the tablet position at the imaging timing by the image pickup device detected by the position detection device and the image pickup device, the positions of the tablet and the image pickup device are provided. An appropriate amount of light can be secured depending on the relationship. Therefore, in the imaging region, clear image data can always be acquired regardless of the position of the tablet with respect to the imaging device.

本発明に係る外観検査装置、外観検査方法、及び錠剤印刷装置は、被検体の表面欠陥を検査する際に、反射した光源の映り込みを抑制することができるものとなっている。 The visual inspection apparatus, visual inspection method, and tablet printing apparatus according to the present invention can suppress reflection of a reflected light source when inspecting a surface defect of a subject.

本発明の実施形態に係る錠剤印刷装置の全体概略図である。It is an overall schematic view of the tablet printing apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る外観検査装置の全体概略図である。It is an overall schematic view of the appearance inspection apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る外観検査装置のブロック図である。It is a block diagram of the appearance inspection apparatus which concerns on embodiment of this invention. 錠剤の撮像領域を説明する図である。It is a figure explaining the imaging region of a tablet. 外観検査を行っている状況を示す模式図である。It is a schematic diagram which shows the situation which a visual inspection is performed. 照明装置のタイムチャートである。It is a time chart of a lighting device. 撮像装置により撮像された錠剤の画像データである。It is the image data of the tablet imaged by the image pickup apparatus.

以下、本発明の実施の形態について、図面を参酌しながら説明し、本発明の理解に供する。なお、各図において説明の便宜上、錠剤印刷装置を設置面に設置した状態において、錠剤印刷装置の設置面から上方に向かう方向を上方向、上方向の反対方向を下方向、上方向および下方向により表される軸方向を鉛直方向、鉛直方向と垂直な軸方向を水平方向、錠剤印刷装置を構成する各ドラムの回転方向を搬送方向とそれぞれ定義する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings for the purpose of understanding the present invention. For convenience of explanation in each figure, when the tablet printing device is installed on the installation surface, the direction upward from the installation surface of the tablet printing device is upward, and the opposite direction of the upward direction is downward, upward, and downward. The axial direction represented by is defined as the vertical direction, the axial direction perpendicular to the vertical direction is defined as the horizontal direction, and the rotation direction of each drum constituting the tablet printing apparatus is defined as the transport direction.

また、以下の実施形態では、本発明の外観検査装置を錠剤印刷装置に適用する例について説明するが、必ずしも係る実施形態に限定されるものではなく、外観検査装置は電子部品や食品等のあらゆる外観を検査する場合にも適用することができるものとする。なお、本発明の実施形態において定義する錠剤とは、長径が略1.00cm〜3.00cm、短径が略0.50cm〜1.00cm程度の断面略楕円形状からなるダブレット錠剤であるがこれに限定されるものではない。例えばキャップとボディから構成されてなり断面略楕円形状からなるカプセル錠や、平面視略円形の製剤等であってもよい。 Further, in the following embodiments, an example in which the visual inspection apparatus of the present invention is applied to a tablet printing apparatus will be described, but the present invention is not necessarily limited to the embodiment, and the visual inspection apparatus is any electronic component, food, or the like. It shall also be applicable when inspecting the appearance. The tablet defined in the embodiment of the present invention is a doublet tablet having a major axis of approximately 1.00 cm to 3.00 cm and a minor axis of approximately 0.50 cm to 1.00 cm and having a substantially elliptical cross section. It is not limited to. For example, it may be a capsule tablet composed of a cap and a body and having a substantially elliptical cross section, a formulation having a substantially circular shape in a plan view, or the like.

まず、本発明の実施形態に係る外観検査装置が適用される錠剤印刷装置Pの構成について図1に基づいて説明する。錠剤印刷装置Pは、被検体としての医薬品等の錠剤に関して、錠剤の表裏を判別して表裏の一方又は両方の面に印刷をし、錠剤が良品であるか不良品であるかの選別をするための装置であり、図1に示すように上方から下方にかけて、供給ドラム1、第1の搬送ドラム2、第2の搬送ドラム3、及び取出ドラム4を備えている。 First, the configuration of the tablet printing device P to which the visual inspection device according to the embodiment of the present invention is applied will be described with reference to FIG. The tablet printing device P determines the front and back sides of the tablet and prints on one or both sides of the front and back sides of the tablet such as a pharmaceutical product as a subject, and selects whether the tablet is a good product or a defective product. As shown in FIG. 1, a supply drum 1, a first transfer drum 2, a second transfer drum 3, and an extraction drum 4 are provided.

供給ドラム1のさらに上方には、印刷対象となる錠剤を貯留するホッパー51と、該ホッパー51に貯留されている錠剤を供給ドラム1に供給するためのシュート52からなる錠剤供給装置5を備えている。 Above the supply drum 1, a tablet supply device 5 including a hopper 51 for storing tablets to be printed and a chute 52 for supplying the tablets stored in the hopper 51 to the supply drum 1 is provided. There is.

取出ドラム4の下方には、後述するA面外観検査装置6、及びB面外観検査装置8による印刷状態や異物有無の検査結果に基づいて、良品と判断された錠剤を後工程に送るためのベルトコンベア101、及び不良品と判断された錠剤を回収するための回収装置102からなる錠剤排出装置10が設置されている。 Below the take-out drum 4, a tablet judged to be non-defective based on the printing state and the inspection result of the presence or absence of foreign matter by the A-side visual inspection device 6 and the B-side visual inspection device 8 described later is sent to a subsequent process. A tablet discharging device 10 including a belt conveyor 101 and a collecting device 102 for collecting tablets determined to be defective is installed.

ここで、必ずしも、供給ドラム1を備えている必要はない。ホッパー51に貯留されている錠剤は、シュート52により直接第1の搬送ドラム2に供給されるようにしてもよい。 Here, it is not always necessary to include the supply drum 1. The tablets stored in the hopper 51 may be directly supplied to the first transport drum 2 by the chute 52.

また、必ずしも、取出ドラム4を備えている必要はない。例えば、第2の搬送ドラム3に取出ドラム4と同様の機能を持たせることにより、第2の搬送ドラム3からベルトコンベア101、及び回収装置102に錠剤を搬送するようにしてもよい。 Further, it is not always necessary to include the take-out drum 4. For example, by giving the second transfer drum 3 the same function as the take-out drum 4, the tablets may be transferred from the second transfer drum 3 to the belt conveyor 101 and the collection device 102.

前記した各ドラムは、外周面に錠剤を吸着するための多数の孔(図示省略)が形成されており、各ドラムは隣接するものは互いに同期しながら逆回転して、各ドラム間で錠剤の受け渡しを行うことで、錠剤を後工程へと搬送することができる。 Each of the above-mentioned drums has a large number of holes (not shown) formed on the outer peripheral surface for adsorbing the tablets, and the adjacent drums rotate in the opposite direction in synchronization with each other, and the tablets are formed between the drums. By delivering the tablets, the tablets can be transported to a subsequent process.

各ドラムにおける錠剤の受け渡しにおいては、錠剤の表裏面(以下、表面を「A面」、裏面を「B面」とそれぞれ定義する。)が反転する。例えば第1の搬送ドラム2ではA面が露出していた場合には、第2の搬送ドラム3に受け渡されるとその反対面であるB面が露出し、続いて取出ドラム4に受け渡されると再度A面が露出することになる。 In the delivery of tablets in each drum, the front and back surfaces of the tablets (hereinafter, the front surface is defined as "A side" and the back surface is defined as "B side") are reversed. For example, if the A side of the first transport drum 2 is exposed, when it is delivered to the second transport drum 3, the B surface, which is the opposite surface, is exposed, and then it is delivered to the take-out drum 4. And the A side will be exposed again.

第1の搬送ドラム2の近傍には、搬送方向の上流側から順に、錠剤の露出面(ここではA面とする)に文字や記号などからなる各種コードを印刷するためのA面印刷装置7、A面の印刷状態や異物の有無を検査するためのA面外観検査装置6を有している。 In the vicinity of the first transport drum 2, the A-side printing device 7 for printing various codes consisting of letters, symbols, etc. on the exposed surface of the tablet (here, the A-side) in order from the upstream side in the transport direction. The A-side visual inspection device 6 for inspecting the printed state of the A-side and the presence or absence of foreign matter is provided.

A面外観検査装置6は、図2に示すように、A面を撮像する検査カメラであるA面撮像装置61、撮像対象である錠剤のA面に対して光を照射するためのA面照明装置62を有している。A面照明装置62はLEDを光源として、A面撮像装置61を挟んで対称な位置であり、下流側から所定の角度(例えば略45度)で錠剤に対して照明光を照射する第1のA面光源62a、上流側から所定の角度(例えば略45度)で錠剤に対して照明光を照射する第2のA面光源62bから構成されている。 As shown in FIG. 2, the A-side visual inspection device 6 includes an A-side imaging device 61, which is an inspection camera that images the A-side, and an A-side illumination for irradiating the A-side of the tablet to be imaged with light. It has a device 62. The A-plane illumination device 62 is a first unit that uses an LED as a light source and is at a symmetrical position with the A-plane imaging device 61 in between, and irradiates the tablet with illumination light at a predetermined angle (for example, approximately 45 degrees) from the downstream side. It is composed of an A-plane light source 62a and a second A-plane light source 62b that irradiates the tablet with illumination light at a predetermined angle (for example, about 45 degrees) from the upstream side.

A面撮像装置61は、搬送方向に対して略直交する幅方向に延びた帯状(直線状)の視野(以下、「直線状視野」という。)により、撮像ポイントにおいて1ライン分の画像を、予め規定された撮像領域分だけ連続的に撮像するラインセンサカメラである。 The A-side imaging device 61 captures an image for one line at an imaging point by means of a strip-shaped (straight-line) field of view (hereinafter, referred to as “linear field of view”) extending in a width direction substantially orthogonal to the transport direction. This is a line sensor camera that continuously captures images for a predetermined imaging area.

ここで、必ずしも、A面撮像装置61はラインセンサカメラである必要はない。例えば撮像素子が縦横の面状に並べられ、2次元の所定の撮像領域に係る画像を得ることが可能なエリアカメラを使用してもよい。但し、高速で回転する第1の搬送ドラム2上の錠剤を一定の高解像度で撮像するという観点では、A面撮像装置61はラインセンサカメラであることが好ましい。 Here, the A-side imaging device 61 does not necessarily have to be a line sensor camera. For example, an area camera in which the image pickup elements are arranged in a vertical and horizontal planes and can obtain an image relating to a predetermined two-dimensional imaging region may be used. However, from the viewpoint of imaging the tablets on the first transport drum 2 rotating at high speed with a constant high resolution, the A-side imaging device 61 is preferably a line sensor camera.

また、必ずしもA面照明装置62として、LEDである必要はない。ハロゲンランプ、蛍光ランプ等の公知の光源より適宜選択することができる。但し、電力量の消費が少なく一定の光量が得られるとともに、高速での点灯と消灯の切り換え制御に対応するためには制御性に優れるLEDを採用することが好ましい。 Further, the A-side lighting device 62 does not necessarily have to be an LED. It can be appropriately selected from known light sources such as halogen lamps and fluorescent lamps. However, it is preferable to use an LED having excellent controllability in order to obtain a constant amount of light with low power consumption and to support switching control between lighting and extinguishing at high speed.

また、必ずしも、第1のA面光源62aと第2のA面光源62bは、A面撮像装置61を挟んで、対称に配置されている必要はない。例えば第1のA面光源62aから照射される照射光の照射角度と、第2のA面光源62bの照射角度は異なるように、各光源の取り付け角度を調整してもよい。 Further, the first A-side light source 62a and the second A-side light source 62b do not necessarily have to be symmetrically arranged with the A-plane imaging device 61 interposed therebetween. For example, the mounting angle of each light source may be adjusted so that the irradiation angle of the irradiation light emitted from the first A-side light source 62a and the irradiation angle of the second A-side light source 62b are different.

なお、A面印刷装置7のさらに上流側には、例えば略中央に割線が形成された錠剤において、割線の方向を確認するための割線撮像装置(図示省略)を別途設けるようにしてもよい。割線撮像装置を設けることにより、割線の向きに応じてA面印刷装置7での印刷の向きを適宜変更することが可能となる。 A score line imaging device (not shown) for confirming the direction of the score line may be separately provided on the upstream side of the A-side printing device 7, for example, in a tablet having a score line formed substantially in the center. By providing the secant line imaging device, it is possible to appropriately change the printing direction of the A-side printing device 7 according to the direction of the secant line.

第2の搬送ドラム3の近傍には、第1の搬送ドラム2と同様に、搬送方向の上流側から順に、錠剤の露出面(ここではB面とする)に文字や記号などからなる各種コードを印刷するためのB面印刷装置9、B面の印刷状態や異物の有無を検査するためのB面外観検査装置8を有している。なお、B面外観検査装置8は、A面外観検査装置6と同様の構成であるため、詳細な図示は省略する。 In the vicinity of the second transport drum 3, as in the case of the first transport drum 2, various codes consisting of letters, symbols, etc. on the exposed surface of the tablet (here referred to as the B surface) in order from the upstream side in the transport direction. It has a B-side printing device 9 for printing, and a B-side visual inspection device 8 for inspecting the printing state of the B-side and the presence or absence of foreign matter. Since the B-side visual inspection device 8 has the same configuration as the A-side visual inspection device 6, detailed illustration is omitted.

B面外観検査装置8は、B面を撮像する検査カメラであるB面撮像装置81、撮像対象である錠剤のB面に対して光を照射するためのB面照明装置82を有している。B面照明装置82はLEDを光源として、B面撮像装置81を挟んで下流側から所定の角度(例えば略45度)で錠剤に対して照明光を照射する第1のB面光源82a、上流側から所定の角度(例えば略45度)で錠剤に対して照明光を照射する第2のB面光源82bから構成されている。 The B-side visual inspection device 8 includes a B-side imaging device 81, which is an inspection camera that images the B-side, and a B-side lighting device 82 for irradiating the B-side of the tablet to be imaged with light. .. The B-plane lighting device 82 uses an LED as a light source, and the first B-plane light source 82a, which irradiates the tablet with illumination light at a predetermined angle (for example, about 45 degrees) from the downstream side of the B-plane imaging device 81, upstream. It is composed of a second B-plane light source 82b that irradiates the tablet with illumination light at a predetermined angle (for example, about 45 degrees) from the side.

次に、本発明の実施形態に係る外観検査装置について説明する。前記した通り、外観検査装置としてのA面外観検査装置6とB面外観検査装置8は略同じ構成であるため、ここでは、A面外観検査装置6を例として説明する。 Next, the visual inspection apparatus according to the embodiment of the present invention will be described. As described above, since the A-side visual inspection device 6 and the B-side visual inspection device 8 as the visual inspection device have substantially the same configuration, the A-side visual inspection device 6 will be described here as an example.

A面外観検査装置6は、前記した通り、主にA面撮像装置61、第1のA面光源62aと第2のA面光源62bからなるA面照明装置62を備えるとともに、第1の搬送ドラム2上における錠剤の位置を検出するためのA面位置検出装置63(図示省略)から構成されている。 As described above, the A-side visual inspection device 6 mainly includes the A-side imaging device 61, the A-side lighting device 62 including the first A-side light source 62a and the second A-side light source 62b, and the first transport. It is composed of an A-side position detecting device 63 (not shown) for detecting the position of the tablet on the drum 2.

A面位置検出装置63は、本発明の実施形態においては、インクリメンタルエンコーダが使用される。インクリメンタルエンコーダは周知の構造であり、永久磁石同期電動機(図示しない)が回転するのに従って、回転した量(回転角)に比例した数のパルス信号を出力するものである。 In the embodiment of the present invention, the A-plane position detecting device 63 uses an incremental encoder. The incremental encoder has a well-known structure, and outputs a number of pulse signals proportional to the amount of rotation (rotation angle) as the permanent magnet synchronous motor (not shown) rotates.

ここで、必ずしも、A面位置検出装置63としてインクリメンタルエンコーダである必要はない。例えば、搬送経路上を搬送される錠剤の絶対位置を検出することが可能なアブソリュートエンコーダであってもよい。なお、本発明の実施形態においては、インクリメンタルエンコーダで検出した原点の信号を基準に絶対位置に変換することで、搬送経路上における各錠剤の絶対位置を検出するようにしている。 Here, the A-plane position detecting device 63 does not necessarily have to be an incremental encoder. For example, it may be an absolute encoder capable of detecting the absolute position of the tablet transported on the transport path. In the embodiment of the present invention, the absolute position of each tablet on the transport path is detected by converting the signal of the origin detected by the incremental encoder into an absolute position as a reference.

図3は、A面外観検査装置6を構成するブロック図である。A面撮像領域設定部64は、錠剤の長径に基づいて、例えば図4に示すように所定の撮像領域RSが一義的に設定されるとともに、該撮像領域RSの範囲において、A面撮像装置61により取り込む部分画像データのデータ数を任意に設定することが可能となる。 FIG. 3 is a block diagram constituting the A-side visual inspection device 6. In the A-side imaging region setting unit 64, a predetermined imaging region RS is uniquely set based on the major axis of the tablet, for example, as shown in FIG. 4, and the A-side imaging apparatus 61 is within the range of the imaging region RS. It is possible to arbitrarily set the number of partial image data to be captured.

A面位置検出装置63は、所定の間隔でパルス信号をA面撮像装置61、及びA面照明装置62に対して出力する。A面撮像装置61は、A面位置検出装置63から出力される所定間隔のパルス信号を受信すると撮像ポイントにて1ライン毎の撮像を行う。本発明の実施形態においては、予め規定された錠剤の長径に対応して1パルス毎に撮像を行い、撮像領域の始点から終点に至るまで計500個の部分画像データを取り込む。 The A-side position detecting device 63 outputs pulse signals to the A-side imaging device 61 and the A-side lighting device 62 at predetermined intervals. When the A-side imaging device 61 receives the pulse signals at predetermined intervals output from the A-side position detecting device 63, the A-plane imaging device 61 performs imaging for each line at the imaging point. In the embodiment of the present invention, imaging is performed for each pulse corresponding to the major axis of the tablet defined in advance, and a total of 500 partial image data are captured from the start point to the end point of the imaging region.

ここで、必ずしも、A面撮像装置61はA面位置検出装置63からのパルス信号に基づいて撮像を開始する必要はない。撮像する原点位置を予め決めておき、第1の搬送ドラム2の回転速度に応じて、一定の間隔で撮像を行うようにしてもよい。 Here, the A-side imaging device 61 does not necessarily have to start imaging based on the pulse signal from the A-plane position detecting device 63. The origin position for imaging may be determined in advance, and imaging may be performed at regular intervals according to the rotation speed of the first transport drum 2.

また、必ずしも、A面撮像装置61による撮像タイミング、及び撮像領域RSにおいて取り込むべき部分画像データ数としては、前記した範囲に限定されるものではない。錠剤の大きさや錠剤のA面、又はB面に印字される文字の大きさ等により、撮像タイミングや取り込むべき部分画像データ数は適宜変更することができる。 Further, the imaging timing by the A-side imaging device 61 and the number of partial image data to be captured in the imaging region RS are not necessarily limited to the above-mentioned ranges. The imaging timing and the number of partial image data to be captured can be appropriately changed depending on the size of the tablet, the size of the characters printed on the A side or the B side of the tablet, and the like.

A面画像処理部65は、A面撮像装置61で取得された撮像領域RS内における部分画像データに基づいて画像処理のうえ合成され1枚の画像データとされるとともに、該画像データはA面記憶装置66に記憶される。 The A-plane image processing unit 65 performs image processing based on the partial image data in the imaging region RS acquired by the A-plane imaging device 61 and synthesizes the image data into one image data, and the image data is the A-plane. It is stored in the storage device 66.

A面照明装置62は、A面位置検出装置63からのパルス信号に基づいて錠剤、及びA面撮像装置61の直線状視野との位置関係に応じて、第1のA面光源62a、及び第2のA面光源62bの点灯または消灯の照明制御を行う。 The A-side illumination device 62 has a first A-side light source 62a and a first A-side light source 62a according to the positional relationship between the tablet and the linear field of view of the A-side image pickup device 61 based on the pulse signal from the A-side position detection device 63. Lighting control for turning on or off the A-side light source 62b of No. 2 is performed.

ここで、必ずしも、A面照明装置62は、A面位置検出装置63からのパルス信号に基づいて点灯、又は消灯の制御を行う必要はない。照明制御を開始する原点位置を予め決めておき、第1の搬送ドラム2の回転速度に応じて照明制御を行ったり、或いはA面撮像装置61からの同期信号を受けて照明制御を行うようにしてもよい。 Here, it is not always necessary for the A-side lighting device 62 to control lighting or extinguishing based on the pulse signal from the A-side position detecting device 63. The origin position at which the illumination control is started is determined in advance, and the illumination control is performed according to the rotation speed of the first transport drum 2, or the illumination control is performed by receiving a synchronization signal from the A-side imaging device 61. You may.

図4に示すように、撮像対象となる錠剤Tは長径の略中心線Oを境にして搬送方向の下流側を指向する先端、搬送方向の上流側を指向する後端が規定される。前記した通り、A面撮像装置61は、撮像領域RSの始点から終点まで、A面位置検出装置63からのパルス信号として1パルス毎に部分画像データを取り込み、撮像領域RSの範囲で500個の部分画像データを取り込む。 As shown in FIG. 4, the tablet T to be imaged has a front end pointing to the downstream side in the transport direction and a rear end pointing to the upstream side in the transport direction with the major axis substantially center line O as a boundary. As described above, the A-plane imaging device 61 captures partial image data for each pulse as a pulse signal from the A-plane position detecting device 63 from the start point to the end point of the imaging region RS, and 500 pieces in the range of the imaging region RS. Import partial image data.

このとき、A面照明装置62は、撮像領域RSの始点から終点までA面位置検出装置63からのパルス信号として125パルスの間隔で下流から上流にかけて、第1の領域R1、第2の領域R2、第3の領域R3、第4の領域R4に分割され、各領域に応じて第1のA面光源62aと第2のA面光源62bの照明パターンが変更される。 At this time, the A-side illumination device 62 extends from the downstream to the upstream as a pulse signal from the A-side position detection device 63 from the start point to the end point of the imaging region RS at intervals of 125 pulses, and the first region R1 and the second region R2. , The third region R3 and the fourth region R4 are divided, and the illumination patterns of the first A-side light source 62a and the second A-side light source 62b are changed according to each region.

ここで、必ずしも、A面照明装置62の照明パターンは、A面位置検出装置63からのパルス信号が略125パルスの間隔で変更される必要はない。照明パターンは、外観検査の対象となる錠剤Tの大きさ等によりその変更パターンは適宜変更することができる。 Here, in the illumination pattern of the A-side illumination device 62, the pulse signal from the A-side position detection device 63 does not necessarily have to be changed at intervals of approximately 125 pulses. The lighting pattern can be appropriately changed depending on the size of the tablet T to be visually inspected and the like.

以下、図5の模式図、及び図6のタイムチャートに基づいて、A面照明装置62の点灯、及び消灯の制御について説明する。 Hereinafter, control of lighting and extinguishing of the A-side lighting device 62 will be described based on the schematic diagram of FIG. 5 and the time chart of FIG.

<略0〜125パルスの範囲>
図5(a)に示すように、A面位置検出装置63からのパルス信号として略0〜125パルスの第1の領域R1では、A面撮像装置61の直線状視野は、錠剤Tの先端部分を撮像する。このとき、錠剤TとA面照明装置62の位置関係から、下流側である第1のA面光源62aを点灯させ、上流側である第2のA面光源62bを消灯させることにより、錠剤Tの先端分が照射され、A面撮像装置61は十分な反射光を得ることができる。
<Abbreviated range of 0 to 125 pulses>
As shown in FIG. 5A, in the first region R1 of approximately 0 to 125 pulses as the pulse signal from the A-side position detecting device 63, the linear visual field of the A-side imaging device 61 is the tip portion of the tablet T. To image. At this time, due to the positional relationship between the tablet T and the A-side lighting device 62, the first A-side light source 62a on the downstream side is turned on and the second A-side light source 62b on the upstream side is turned off to turn off the tablet T. The tip of the image is irradiated, and the A-side imaging device 61 can obtain sufficient reflected light.

なお、例えば第1のA面光源62aを消灯し、第2のA面光源62bを点灯すると、第2のA面光源62bから照射される照射光は、錠剤Tの先端付近に届かず、錠剤Tの先端付近は光量不足となり鮮明な部分画像データを得られない。 For example, when the first A-side light source 62a is turned off and the second A-side light source 62b is turned on, the irradiation light emitted from the second A-side light source 62b does not reach the vicinity of the tip of the tablet T, and the tablet. Since the amount of light is insufficient near the tip of T, clear partial image data cannot be obtained.

一方、第1のA面光源62aと第2のA面光源62bを同時に点灯すると、両光源からの照射光が干渉し合うことで光量が強くなりすぎるため、この場合も錠剤Tの先端付近について鮮明な部分画像データが得られない可能性がある。 On the other hand, when the first A-plane light source 62a and the second A-plane light source 62b are turned on at the same time, the amount of light becomes too strong due to the interference of the irradiation lights from both light sources. Clear partial image data may not be obtained.

<略125〜250パルスの範囲>
図5(b)に示すように、A面位置検出装置63からのパルス信号として略125〜250パルスの第2の領域R2では、第1のA面光源62aを消灯し、第2のA面光源62bを点灯することにより第2のA面光源62bから照射され錠剤Tで反射する反射光は、A面撮像装置61と錠剤Tの位置関係により、適度な光量となってA面撮像装置61に入射するため、鮮明な部分画像データを取得することができる。
<Range of approximately 125-250 pulses>
As shown in FIG. 5B, in the second region R2 of approximately 125 to 250 pulses as the pulse signal from the A-plane position detecting device 63, the first A-plane light source 62a is turned off and the second A-plane is turned off. The reflected light emitted from the second A-side light source 62b by turning on the light source 62b and reflected by the tablet T becomes an appropriate amount of light depending on the positional relationship between the A-side imaging device 61 and the tablet T, and the A-side imaging device 61. Since it is incident on the light source, clear partial image data can be obtained.

即ち、第2のA面光源62bから照射されて第2の領域R2に係る緩傾斜部分で反射した反射光は、搬送方向に向けて反射するため、A面撮像装置61の直線状視野に入射する光量が適度に調整されることで、鮮明な部分画像データを取得することができる。 That is, the reflected light emitted from the second A-plane light source 62b and reflected in the gently inclined portion related to the second region R2 is reflected in the transport direction, so that it is incident on the linear field of view of the A-plane imaging device 61. Clear partial image data can be obtained by appropriately adjusting the amount of light to be emitted.

一方、第2の領域R2を撮像する際に、第1のA面光源62aを点灯すると、第1のA面光源62aから照射されて第2の領域R2に係る緩傾斜部分で反射した反射光の大半は、A面撮像装置61に入射し光量が強くなり過ぎることにより、錠剤Tの第2の領域R2の一部が白くぼやけた部分画像データとなる。 On the other hand, when the first A-side light source 62a is turned on when the second region R2 is imaged, the reflected light emitted from the first A-side light source 62a and reflected in the gently inclined portion related to the second region R2. Most of the data is incident on the A-side imaging device 61 and the amount of light becomes too strong, so that a part of the second region R2 of the tablet T becomes white and blurred partial image data.

<略250〜375パルスの範囲>
図5(c)に示すように、A面位置検出装置63からのパルス信号として略250〜375パルスの第3の領域R3では、第1のA面光源62aを点灯し、第2のA面光源62bを消灯することにより第1のA面光源62aから照射され錠剤Tで反射する反射光は、A面撮像装置61と錠剤Tの位置関係により、適度な光量となってA面撮像装置61に入射するため、鮮明な部分画像データを取得することができる。
<Range of approximately 250 to 375 pulses>
As shown in FIG. 5C, in the third region R3 of approximately 250 to 375 pulses as the pulse signal from the A-plane position detecting device 63, the first A-plane light source 62a is turned on and the second A-plane is turned on. By turning off the light source 62b, the reflected light emitted from the first A-side light source 62a and reflected by the tablet T becomes an appropriate amount of light depending on the positional relationship between the A-side image pickup device 61 and the tablet T, and the A-side image pickup device 61. Since it is incident on the light source, clear partial image data can be obtained.

即ち、第1のA面光源62aから照射されて第3の領域R3に係る緩傾斜部分で反射した反射光は、搬送方向に向けて反射するため、A面撮像装置61の直線状視野に入射する光量が適度に調整されることで、鮮明な部分画像データを取得することができる。 That is, the reflected light emitted from the first A-plane light source 62a and reflected in the gently inclined portion related to the third region R3 is reflected in the transport direction, so that it is incident on the linear field of view of the A-plane imaging device 61. Clear partial image data can be obtained by appropriately adjusting the amount of light to be emitted.

一方、第3の領域R3を撮像する際に、第2のA面光源62bを点灯すると、第2のA面光源62bから照射されて第3の領域R3に係る緩傾斜部分で反射した反射光の大半は、A面撮像装置61に入射し光量が強くなり過ぎることにより、錠剤Tの第3の領域R3の一部が白くぼやけた部分画像データとなる。 On the other hand, when the second A-side light source 62b is turned on when the third region R3 is imaged, the reflected light emitted from the second A-side light source 62b and reflected in the gently inclined portion related to the third region R3. Most of the data is incident on the A-side imaging device 61 and the amount of light becomes too strong, so that a part of the third region R3 of the tablet T becomes white and blurred partial image data.

<略375〜500パルスの範囲>
図5(d)に示すように、A面位置検出装置63からのパルス信号として略375〜500パルスの第4の領域R4では、A面撮像装置61の直線状視野は、錠剤Tの後端部分を撮像する。このとき、錠剤TとA面照明装置62の位置関係から、上流側である第2のA面光源62bを点灯させ、下流側である第1のA面光源62aを消灯させることにより、錠剤Tの先端分が照射され、A面撮像装置61は十分な反射光を得ることができる。
<Range of approximately 375 to 500 pulses>
As shown in FIG. 5D, in the fourth region R4 of approximately 375 to 500 pulses as the pulse signal from the A-side position detecting device 63, the linear visual field of the A-side imaging device 61 is the rear end of the tablet T. Image the part. At this time, due to the positional relationship between the tablet T and the A-side lighting device 62, the second A-side light source 62b on the upstream side is turned on and the first A-side light source 62a on the downstream side is turned off to turn off the tablet T. The tip of the image is irradiated, and the A-side imaging device 61 can obtain sufficient reflected light.

なお、例えば第2のA面光源62bを消灯し、第1のA面光源62aを点灯すると、第1のA面光源62aから照射される照射光は、錠剤Tの後端付近に届かず、錠剤Tの先端付近は光量不足となり鮮明な部分画像データを得られない。 For example, when the second A-side light source 62b is turned off and the first A-side light source 62a is turned on, the irradiation light emitted from the first A-side light source 62a does not reach the vicinity of the rear end of the tablet T. The amount of light in the vicinity of the tip of the tablet T is insufficient, and clear partial image data cannot be obtained.

一方、第1のA面光源62aと第2のA面光源62bを同時に点灯すると、両光源からの照射光が干渉し合うことで光量が強くなりすぎるため、この場合も錠剤Tの後端付近について鮮明な部分画像データが得られない可能性がある。 On the other hand, when the first A-plane light source 62a and the second A-plane light source 62b are turned on at the same time, the amount of light becomes too strong due to the interference of the irradiation lights from both light sources. There is a possibility that clear partial image data cannot be obtained.

図7は、A面撮像装置61により撮像した実際の画像データを示す。図7(a)はA面照明装置62の第1のA面光源62a、第2のA面光源62bを常時点灯した場合の画像データである。図7(a)によると、錠剤TのA面の先端に近い部分(第2の領域)、及び後端に近い部分(第3の領域)において三日月状の白くぼやけた部分が存在し、ハレーションを起こしていることが確認できる。 FIG. 7 shows actual image data captured by the A-side imaging device 61. FIG. 7A is image data when the first A-side light source 62a and the second A-side light source 62b of the A-side lighting device 62 are constantly lit. According to FIG. 7A, there are crescent-shaped white blurry portions in the portion of the tablet T near the tip of the A surface (second region) and the portion near the rear end (third region), and halation. Can be confirmed to be causing.

また、図7(b)は、第1のA面光源62aを常時消灯し、第2のA面光源62bは第1の領域R1で消灯、第2の領域R2で点灯、第3の領域R3で消灯、第4の領域R4で点灯した場合の画像データである。第2の領域R2においては、第2のA面光源62bのみ点灯することにより、ハレーションのない鮮明な画像データを得ることができる。さらに、第4の領域R4においては、第2のA面光源62bにより、搬送方向に向けて錠剤Tの後端照射することで、後端の輪郭がはっきりと確認できる程度に鮮明な画像データを得ることができる。 Further, in FIG. 7B, the first A-side light source 62a is always turned off, the second A-side light source 62b is turned off in the first region R1, is lit in the second region R2, and is lit in the third region R3. This is the image data when the light is turned off and the light is turned on in the fourth area R4. In the second region R2, by turning on only the second A-side light source 62b, clear image data without halation can be obtained. Further, in the fourth region R4, by irradiating the rear end of the tablet T in the transport direction with the second A-side light source 62b, image data clear enough to clearly confirm the contour of the rear end can be obtained. Obtainable.

また、図7(c)は、第1のA面光源62aを第1の領域R1で点灯、第2の領域R2で消灯、第3の領域R3で点灯、第4の領域R4で消灯し、第2のA面光源62bを常時点灯した場合の画像データである。 Further, in FIG. 7C, the first A-side light source 62a is turned on in the first area R1, turned off in the second area R2, turned on in the third area R3, turned off in the fourth area R4, and so on. This is image data when the second A-side light source 62b is constantly lit.

まず、第1の領域R1では第1のA面光源62aと第2のA面光源62bが何れも点灯されることにより、光量が強くなりすぎ、第1の領域R1の下流側に半円状の白っぽいラインが映り込み、白くぼやけた画像データとなる。また、第2の領域R2においては、第2のA面光源62bのみ点灯することにより、ハレーションのない鮮明な画像データを得ることができる。また、第3の領域R3では、第1のA面光源62aと第2のA面光源62bが同時に点灯されることにより、三日月状の白くぼやけた部分が存在し、ハレーションを起こしていることが確認できる。また、第4の領域R4では、第2のA面光源62bのみが点灯されており、後端の輪郭がはっきりと確認できる程度に鮮明な画像データを得ることができる。 First, in the first region R1, both the first A-side light source 62a and the second A-side light source 62b are turned on, so that the amount of light becomes too strong and a semicircle is formed on the downstream side of the first region R1. The whitish line of is reflected, and the image data becomes white and blurry. Further, in the second region R2, by turning on only the second A-side light source 62b, clear image data without halation can be obtained. Further, in the third region R3, the first A-side light source 62a and the second A-side light source 62b are turned on at the same time, so that a crescent-shaped white and blurred portion exists, causing halation. You can check. Further, in the fourth region R4, only the second A-side light source 62b is lit, and it is possible to obtain clear image data to the extent that the contour of the rear end can be clearly confirmed.

以上のように、第1のA面光源62a、及び第2のA面光源62bの点灯、消灯を交互に制御することにより、全領域においてハレーションが発生しない鮮明な画像データを得ることが確認できる。 As described above, it can be confirmed that by alternately controlling the lighting and extinguishing of the first A-side light source 62a and the second A-side light source 62b, clear image data in which halation does not occur in the entire region can be obtained. ..

以上、本発明に係る外観検査装置、外観検査方法、及び錠剤印刷装置は、被検体の表面欠陥を検査する際に、反射した光源の映り込みを抑制することができる。 As described above, the visual inspection apparatus, the visual inspection method, and the tablet printing apparatus according to the present invention can suppress the reflection of the reflected light source when inspecting the surface defects of the subject.

P 錠剤印刷装置
1 供給ドラム
2 第1の搬送ドラム
3 第2の搬送ドラム
4 取出ドラム
5 錠剤供給装置
51 ホッパー
52 シュート
6 A面外観検査装置
61 A面撮像装置
62 A面照明装置
62a 第1のA面光源
62b 第2のA面光源
63 A面位置検出装置
64 A面撮像領域設定部
65 A面画像処理部
66 A面記憶部装置
7 A面印刷装置
8 B面外観検査装置
81 B面撮像装置
82 B面照明装置
82a 第1のB面光源
82b 第2のB面光源
83 B面位置検出装置
9 B面印刷装置
10 錠剤排出装置
101 ベルトコンベア
102 回収装置
T 錠剤
RS 撮像領域
R1 第1の領域
R2 第2の領域
R3 第3の領域
R4 第4の領域
P Tablet printing device 1 Supply drum 2 1st transfer drum 3 2nd transfer drum 4 Extraction drum 5 Tablet supply device 51 Hopper 52 Shoot 6 A side visual inspection device 61 A side image pickup device 62 A side illumination device 62a 1st A-side light source 62b Second A-side light source 63 A-side position detection device 64 A-side imaging area setting unit 65 A-side image processing unit 66 A-side storage unit device 7 A-side printing device 8 B-side visual inspection device 81 B-side imaging Device 82 B-side illumination device 82a First B-side light source 82b Second B-side light source 83 B-side position detection device 9 B-side printing device 10 Tablet discharge device 101 Belt conveyor 102 Recovery device T Tablet RS Imaging area R1 First Area R2 2nd area R3 3rd area R4 4th area

Claims (9)

上流から下流に向かう搬送経路に沿って搬送される被検体の搬送経路上における位置を検出する位置検出装置と、
被検体の外観を搬送経路上における所定の撮像領域内で撮像して画像データを取得する撮像装置と、
前記撮像装置の下流側から被検体に対して照明光を照射する第1の光源、前記撮像装置の上流側から被検体に対して照明光を照射する第2の光源からなる照明装置と、
前記位置検出装置により検出された前記撮像装置による撮像タイミングにある被検体の位置と前記撮像装置の位置関係に応じて前記照明装置の照明パターンを制御する照明制御装置と、を備える
外観検査装置。
A position detection device that detects the position of the subject transported along the transport path from upstream to downstream on the transport path, and
An imaging device that acquires image data by imaging the appearance of the subject within a predetermined imaging area on the transport path, and
An illumination device including a first light source that irradiates the subject with illumination light from the downstream side of the imaging device, and a second light source that irradiates the subject with illumination light from the upstream side of the imaging device.
An appearance inspection device including a lighting control device that controls the lighting pattern of the lighting device according to the position of a subject at the imaging timing by the imaging device detected by the position detecting device and the positional relationship of the imaging device.
前記撮像装置は、搬送経路に略直交する直線状視野により撮像して部分画像データを取得可能なラインスキャンカメラであり、
前記位置検出装置により検出された前記撮像装置により撮像される被検体の位置と前記直線状視野の位置関係に応じて前記照明装置の照明パターンを制御する
請求項1に記載の外観検査装置。
The imaging device is a line scan camera capable of acquiring partial image data by imaging with a linear field of view substantially orthogonal to the transport path.
The visual inspection apparatus according to claim 1, wherein the illumination pattern of the illumination apparatus is controlled according to the positional relationship between the position of the subject imaged by the imaging apparatus detected by the position detection apparatus and the linear visual field.
前記照明制御装置は、前記第1の光源が点灯するときに前記第2の光源を消灯し、前記第1の光源が消灯するときに前記第2の光源を点灯する
請求項2に記載の外観検査装置。
The appearance according to claim 2, wherein the lighting control device turns off the second light source when the first light source is turned on, and turns on the second light source when the first light source is turned off. Inspection device.
被検体の外観は、搬送方向を長手方向とした場合に、被検体の長手方向を二分する略中心線を境として搬送方向の下流を指向する先端を含む一側、搬送方向の上流を指向する後端を含む他側が定義され、
前記照明制御装置は、前記撮像装置により被検体の先端を含む一側の所定の第1の領域の部分画像データを取得する際には、前記第1の光源を点灯して前記第2の光源を消灯し、
前記撮像装置により被検体の前記第1の領域を除く一側の所定の第2の領域の部分画像データを取得する際には、前記第1の光源を点灯して前記第2の光源を点灯し、
前記撮像装置により被検体の後端を除く他側の所定の第3の領域の部分画像データを取得する際には、前記第1の光源を点灯して前記第2の光源を消灯し、
前記撮像装置により被検体の後端を含み前記第3の領域を除く所定の第4の領域の部分画像データを取得する際には、前記第1の光源を消灯して前記第2の光源を点灯する
請求項2または請求項3に記載の外観検査装置。
When the transport direction is the longitudinal direction, the appearance of the subject points to one side including the tip that points downstream in the transport direction with the substantially center line that divides the longitudinal direction of the subject into two, and points upstream in the transport direction. The other side, including the trailing edge, is defined
When the illumination control device acquires partial image data of a predetermined first region on one side including the tip of the subject by the imaging device, the lighting control device turns on the first light source and turns on the second light source. Turns off,
When the image pickup apparatus acquires partial image data of a predetermined second region on one side of the subject excluding the first region, the first light source is turned on and the second light source is turned on. And
When the image pickup apparatus acquires partial image data of a predetermined third region on the other side excluding the rear end of the subject, the first light source is turned on and the second light source is turned off.
When the image pickup apparatus acquires partial image data of a predetermined fourth region including the rear end of the subject and excluding the third region, the first light source is turned off and the second light source is turned off. The visual inspection apparatus according to claim 2 or 3, which is lit.
前記撮像装置は、前記撮像領域において搬送方向の上流から下流に向けてN個(Nは自然数)の被検体に関する部分画像データを取得し、
前記第1の領域は、前記撮像装置による被検体の撮像を開始してから略N/4個未満の部分画像データを取得する範囲に対応し、
前記第2の領域は、前記撮像装置による被検体の撮像を開始してから略N/4個以上で、略N/2個未満の部分画像データを取得する範囲に対応し、
前記第3の領域は、前記撮像装置による被検体の撮像を開始してから略N/2個以上で、略3N/4個未満の部分画像データを取得する範囲に対応し、
前記第4の領域は、前記撮像装置による被検体の撮像を開始してから略3N/4個以上で、N個の部分画像データを取得するまでの範囲に対応する
請求項4に記載の外観検査装置。
The imaging device acquires partial image data of N subjects (N is a natural number) from upstream to downstream in the transport direction in the imaging region.
The first region corresponds to a range in which less than about N / 4 partial image data are acquired after the imaging of the subject by the imaging device is started.
The second region corresponds to a range in which partial image data of approximately N / 4 or more and less than approximately N / 2 is acquired after the start of imaging of the subject by the imaging device.
The third region corresponds to a range in which partial image data of approximately N / 2 or more and less than approximately 3N / 4 is acquired after the start of imaging of the subject by the imaging device.
The appearance according to claim 4, wherein the fourth region is approximately 3N / 4 or more from the start of imaging of the subject by the imaging device, and corresponds to the range from the acquisition of N partial image data. Inspection equipment.
上流から下流に向けて搬送経路に沿って被検体を搬送する工程と、
搬送経路上の被検体の位置を検出する工程と、
該被検体の位置を検出する工程で検出された被検体を撮像装置により所定の撮像領域内において撮像し、画像データを取得する工程と、
該画像データを取得する工程において、前記撮像装置の下流側から所定の角度で被検体に対して照明光を照射する第1の光源、前記撮像装置の上流側から所定の角度で被検体に対して照明光を照射する第2の光源からなる照明装置の照明パターンを制御する工程と、を備える
外観検査方法。
The process of transporting the subject along the transport path from upstream to downstream, and
The process of detecting the position of the subject on the transport path and
A step of capturing an image of a subject detected in the step of detecting the position of the subject in a predetermined imaging region with an imaging device and acquiring image data, and a step of acquiring image data.
In the step of acquiring the image data, the first light source that irradiates the subject with illumination light at a predetermined angle from the downstream side of the imaging device, and the subject at a predetermined angle from the upstream side of the imaging device. A visual inspection method comprising a step of controlling an illumination pattern of an illumination apparatus including a second light source for irradiating illumination light.
前記照明装置の照明パターンを制御する工程は、
前記第1の光源が点灯するときに前記第2の光源を消灯し、前記第1の光源が消灯するときに前記第2の光源を点灯する
請求項6に記載の外観検査方法。
The step of controlling the lighting pattern of the lighting device is
The visual inspection method according to claim 6, wherein the second light source is turned off when the first light source is turned on, and the second light source is turned on when the first light source is turned off.
被検体の外観は、搬送方向を長手方向とした場合に、被検体の長手方向を二分する略中心線を境として搬送方向の下流を指向する先端を含む一側、搬送方向の上流を指向する後端を含む他側が定義され、
前記照明装置の照明パターンを制御する工程は、前記撮像装置により被検体の先端を含む一側の所定の第1の領域の画像データを取得する際には、前記第1の光源を点灯して前記第2の光源を消灯し、
前記撮像装置により被検体の前記第1の領域を除く一側の所定の第2の領域の画像データを取得する際には、前記第1の光源を消灯して前記第2の光源を点灯し、
前記撮像装置により被検体の後端を除く他側の所定の第3の領域の画像データを取得する際には、前記第1の光源を点灯して前記第2の光源を消灯し、
前記撮像装置により被検体の後端を含み前記第3の領域を除く所定の第4の領域の画像データを取得する際には、前記第1の光源を消灯して前記第2の光源を点灯する
請求項6または請求項7に記載の外観検査方法。
When the transport direction is the longitudinal direction, the appearance of the subject points to one side including the tip that points downstream in the transport direction with the substantially center line that divides the longitudinal direction of the subject into two, and points upstream in the transport direction. The other side, including the trailing edge, is defined
In the step of controlling the illumination pattern of the illumination device, when the image pickup apparatus acquires image data of a predetermined first region on one side including the tip of the subject, the first light source is turned on. Turn off the second light source
When the image pickup device acquires image data of a predetermined second region on one side of the subject excluding the first region, the first light source is turned off and the second light source is turned on. ,
When acquiring image data of a predetermined third region on the other side excluding the rear end of the subject by the imaging device, the first light source is turned on and the second light source is turned off.
When the image pickup device acquires image data of a predetermined fourth region including the rear end of the subject and excluding the third region, the first light source is turned off and the second light source is turned on. The visual inspection method according to claim 6 or 7.
錠剤を貯留可能な錠剤供給部と、
外周面に多数の錠剤保持部を有し、該錠剤保持部に前記錠剤供給部から供給された錠剤が移される搬送ドラムと、
前記搬送ドラムの外周面近傍に配され、前記搬送ドラムの回転により搬送経路に沿って搬送されている前記錠剤保持部内の錠剤の露出面に印刷する印刷装置と、
前記印刷装置より下流側の外周面近傍に配され、前記搬送ドラムの回転により搬送されている前記錠剤保持部内の印刷済みの錠剤の外観を検査する外観検査装置と、を備える錠剤印刷装置において、
前記外観検査装置は、
上流から下流に向かう搬送経路に沿って搬送される錠剤の搬送経路上における位置を検出する位置検出装置と、
前記錠剤保持部内の印刷済みの錠剤の外観を搬送経路上における所定の撮像領域内で撮像して画像データを取得する撮像装置と、
前記撮像装置の下流側から錠剤に対して照明光を照射する第1の光源、前記撮像装置の上流側から錠剤に対して照明光を照射する第2の光源からなる照明装置と、
前記位置検出装置により検出された前記撮像装置による撮像タイミングにある錠剤の位置と前記撮像装置の位置関係に応じて前記照明装置の照明パターンを制御する照明制御装置と、を備える
錠剤印刷装置。
A tablet supply unit that can store tablets and
A transport drum having a large number of tablet holding portions on the outer peripheral surface and to which the tablets supplied from the tablet feeding portion are transferred to the tablet holding portions.
A printing device that is arranged near the outer peripheral surface of the transport drum and prints on the exposed surface of the tablet in the tablet holding portion that is transported along the transport path by the rotation of the transport drum.
In a tablet printing device including a visual inspection device arranged near the outer peripheral surface on the downstream side of the printing device and inspecting the appearance of a printed tablet in the tablet holding portion which is conveyed by rotation of the transport drum.
The visual inspection device is
A position detection device that detects the position of tablets transported along the transport path from upstream to downstream on the transport path, and
An imaging device that acquires image data by imaging the appearance of the printed tablet in the tablet holding portion within a predetermined imaging region on the transport path.
An illumination device including a first light source that irradiates the tablet with illumination light from the downstream side of the image pickup device, and a second light source that irradiates the tablet with illumination light from the upstream side of the image pickup device.
A tablet printing device including a tablet printing device that controls a lighting pattern of the lighting device according to a position of a tablet at an imaging timing by the imaging device detected by the position detecting device and a positional relationship of the imaging device.
JP2019191157A 2019-10-18 2019-10-18 Visual inspection equipment, visual inspection method, and tablet printing equipment Active JP6999138B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019191157A JP6999138B2 (en) 2019-10-18 2019-10-18 Visual inspection equipment, visual inspection method, and tablet printing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019191157A JP6999138B2 (en) 2019-10-18 2019-10-18 Visual inspection equipment, visual inspection method, and tablet printing equipment

Publications (2)

Publication Number Publication Date
JP2021065301A true JP2021065301A (en) 2021-04-30
JP6999138B2 JP6999138B2 (en) 2022-01-18

Family

ID=75636211

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019191157A Active JP6999138B2 (en) 2019-10-18 2019-10-18 Visual inspection equipment, visual inspection method, and tablet printing equipment

Country Status (1)

Country Link
JP (1) JP6999138B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004028604A (en) * 2002-06-21 2004-01-29 Ckd Corp Visual inspection device for troche and ptp packaging machine
JP2009536315A (en) * 2006-03-02 2009-10-08 フォス アナリティカル アーベー Apparatus and method for optical measurement of granular materials such as cereals
JP2011209085A (en) * 2010-03-30 2011-10-20 Ckd Corp Tablet inspection apparatus and ptp packaging machine
JP2017176681A (en) * 2016-03-31 2017-10-05 株式会社松岡機械工作所 Secant tablet printing method and secant tablet printing device
JP2018186962A (en) * 2017-04-28 2018-11-29 株式会社Screenホールディングス Image acquisition device, inspection device, tablet printing device, and image acquisition method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004028604A (en) * 2002-06-21 2004-01-29 Ckd Corp Visual inspection device for troche and ptp packaging machine
JP2009536315A (en) * 2006-03-02 2009-10-08 フォス アナリティカル アーベー Apparatus and method for optical measurement of granular materials such as cereals
JP2011209085A (en) * 2010-03-30 2011-10-20 Ckd Corp Tablet inspection apparatus and ptp packaging machine
JP2017176681A (en) * 2016-03-31 2017-10-05 株式会社松岡機械工作所 Secant tablet printing method and secant tablet printing device
JP2018186962A (en) * 2017-04-28 2018-11-29 株式会社Screenホールディングス Image acquisition device, inspection device, tablet printing device, and image acquisition method

Also Published As

Publication number Publication date
JP6999138B2 (en) 2022-01-18

Similar Documents

Publication Publication Date Title
US10113977B2 (en) Apparatus and method for acquiring a two-dimensional image of the surface of a three-dimensional object
KR102167067B1 (en) Apparatus and method for marking edible object
US20180315628A1 (en) Receiving system for components
JP4374051B2 (en) Article visual inspection apparatus and surface inspection apparatus
JP2011117817A (en) Article inspection device
JP6999138B2 (en) Visual inspection equipment, visual inspection method, and tablet printing equipment
JP5620807B2 (en) Three-dimensional shape measuring device, component transfer device, and three-dimensional shape measuring method
JP2005227257A (en) Inspection device for peripheral surface of cylindrical container
JP2008046054A (en) Fruit and vegetable inspection apparatus
JP2002086690A (en) Blanket inspecting device
JP2019517668A (en) Device and method for inspecting a container
JP7186325B2 (en) edible marking device
US20110043830A1 (en) Optical position detection
JP5468504B2 (en) Print quality inspection device
JP2007309780A (en) Device and method for inspecting quality of printed matter
JP2004045097A (en) Visual inspection apparatus
JP2008107348A (en) Machine for inspection of glass container
JP2017072411A (en) Packaging body inspection device and packaging body inspection method
JP2005024431A (en) Visual inspection apparatus
TW201018895A (en) Detection device and method of obtaining detection image
WO2022059583A1 (en) Breakline information acquisition device and method, and tablet printing device
JP2015059855A (en) Defect inspection method and defect inspection device
JP2001206309A (en) Method and apparatus for turning eggs
JP2005337882A (en) Container inspection device
JP2004108909A (en) Paint testing apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210304

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210914

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20211108

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211214

R150 Certificate of patent or registration of utility model

Ref document number: 6999138

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350