JP2018173317A - Device and method for detecting attached document - Google Patents

Device and method for detecting attached document Download PDF

Info

Publication number
JP2018173317A
JP2018173317A JP2017070643A JP2017070643A JP2018173317A JP 2018173317 A JP2018173317 A JP 2018173317A JP 2017070643 A JP2017070643 A JP 2017070643A JP 2017070643 A JP2017070643 A JP 2017070643A JP 2018173317 A JP2018173317 A JP 2018173317A
Authority
JP
Japan
Prior art keywords
attached document
storage box
attached
light
wavelength
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
JP2017070643A
Other languages
Japanese (ja)
Other versions
JP6878093B2 (en
Inventor
健 川畑
Takeshi Kawabata
健 川畑
信幸 稲津
Nobuyuki Inazu
信幸 稲津
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.)
AY Pharmaceuticals Co Ltd
Original Assignee
AY Pharmaceuticals 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 AY Pharmaceuticals Co Ltd filed Critical AY Pharmaceuticals Co Ltd
Priority to JP2017070643A priority Critical patent/JP6878093B2/en
Publication of JP2018173317A publication Critical patent/JP2018173317A/en
Application granted granted Critical
Publication of JP6878093B2 publication Critical patent/JP6878093B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Auxiliary Devices For And Details Of Packaging Control (AREA)
  • Geophysics And Detection Of Objects (AREA)

Abstract

PROBLEM TO BE SOLVED: To accurately determine whether there is an attached document in a container box even if the container box and the attached document are similar in the color.SOLUTION: A detector 1 detects an attached document 11 put on a contained material 13 in a container box 9. The detector 1 includes: an ultraviolet ray irradiation source 2 for emitting an ultraviolet ray; a camera 3 for taking an image of a region including the part where an attached document 11 is attached, when an ultraviolet ray is irradiated; a processor 7 for determining whether there is the attached document 11 in the container box 9 on the basis of the taken image. The contained material 13 and the attached document 11 are similar in the color, and the attached document 11 includes a fluorescent agent and thus emits fluorescence when being irradiated with an ultraviolet ray and emits light with a wavelength in a specific range. The contained material 13, on the other hand, emits light with a wavelength out of the specific range when being irradiated with an ultraviolet ray. The processor 7 specifies the part of light which has a wavelength in the specific range on the basis of the taken image and determines the presence of the attached document 11.SELECTED DRAWING: Figure 1

Description

本発明は、収容物が収容された収容箱内において当該収容物上に載置された状態で添付される添付書類の検出装置及び検出方法に関する。   The present invention relates to a detection apparatus and a detection method for an attached document attached in a state of being placed on a storage box in a storage box in which the storage is stored.

従来から、医薬品などの収容物を収容箱に収容する際に、この収容物の上に、医薬品の説明などが記載された添付書類(添付文書)を別途添付することが行われている。そのような添付書類を添付しないと、医薬品とは認められず薬事法違反となる場合があるからである。そのため、従来から、収容物を収容箱に収容した状態において、収容箱に添付書類が適切に添付されているか否かを検出装置によって判定している。典型的には、この検出装置は、収容物を収容した収容箱を照明(例えば白色LED照明)で照射した状態においてカメラによって撮像し、この撮像画像に基づき添付書類の有無を判定している。   2. Description of the Related Art Conventionally, when a container such as a medicine is stored in a storage box, an attached document (attachment) on which the description of the medicine is described is separately attached on the container. If you do not attach such attachments, you will not be recognized as a drug and may violate the Pharmaceutical Affairs Law. Therefore, conventionally, the detection device determines whether or not an attached document is appropriately attached to the storage box in a state where the storage object is stored in the storage box. Typically, this detection apparatus captures an image with a camera in a state in which a storage box storing a storage object is irradiated with illumination (for example, white LED illumination), and determines the presence or absence of an attached document based on the captured image.

上記のような検出装置に関連する技術が、例えば特許文献1に開示されている。特許文献1には、包装不良の検査装置が開示されている。具体的には、この検査装置は、包装の検査対象部分に紫外線を照射し、当該検査対象部分からの散乱紫外線の撮像データに基づき包装不良を判定している。特に、この検査装置は、包装フィルムの折目やヒートシール部を検査対象部分として適用し、しわや折ズレを検査している。   For example, Patent Document 1 discloses a technique related to the above-described detection apparatus. Patent Document 1 discloses an inspection apparatus for defective packaging. Specifically, this inspection apparatus irradiates the inspection target portion of the package with ultraviolet rays, and determines a packaging defect based on imaging data of scattered ultraviolet rays from the inspection target portion. In particular, this inspection apparatus applies a fold or heat seal part of a packaging film as an inspection target part, and inspects for wrinkles and creases.

特許第45383361号公報Japanese Patent No. 45383361

ところで、上記のような添付書類の検出装置においては、例えば収容物の外包材と添付書類とが同系色である場合に、添付書類の有無を精度良く判定するのが困難であった。具体的には、アルミ蒸着外包装フィルムを外包材として適用した場合、或いは透明フィルムである酸化珪素蒸着フィルムや酸化アルミ蒸着フィルムを外包材として適用した場合、添付書類と外包材とがカメラによる撮像画像において区別しづらくなり、撮像画像から添付書類を直接検出するのが困難となる。
より具体的には、アルミ蒸着フィルムを外包装に使用した場合、その表面は金属色を呈し、収容物が立体的な形態であると、外包装表面は部分的に乱反射し、均質な撮像情報を得ることができない。なお、一般的に、アルミ蒸着フィルムは、その表面に印刷表示する場合、フィルム表面の全面もしくは部分的に白色インキ(酸化チタンを含有する場合が多い)で白色に印刷したうえで、製品名やその他のデザインを印刷する。この場合、添付書類と外包材とが白色で同系色となる。
また、透明な蒸着フィルムの場合も、アルミ蒸着フィルム同様に、その表面に光を照射すると部分的に乱反射したり、収容物が写りこんだりして、添付書類と区別しづらくなる。
By the way, in the attached document detection apparatus as described above, it is difficult to accurately determine the presence or absence of an attached document when, for example, the outer packaging material of the stored item and the attached document have similar colors. Specifically, when an aluminum vapor-deposited outer packaging film is applied as an outer packaging material, or when a transparent film such as a silicon oxide vapor-deposited film or an aluminum oxide vapor-deposited film is applied as an outer packaging material, the attached document and the outer packaging material are imaged by the camera. It becomes difficult to distinguish between images, and it is difficult to directly detect attached documents from captured images.
More specifically, when an aluminum vapor-deposited film is used for outer packaging, the surface exhibits a metallic color, and if the contents are in a three-dimensional form, the outer packaging surface is partially diffusely reflected, and uniform imaging information is obtained. Can't get. In general, when an aluminum vapor-deposited film is printed and displayed on the surface, the entire surface or part of the film surface is printed in white with white ink (which often contains titanium oxide). Print other designs. In this case, the attached document and the outer packaging material are white and have similar colors.
Also, in the case of a transparent vapor deposition film, similarly to the aluminum vapor deposition film, when the surface is irradiated with light, it is partially diffused or the contents are reflected, making it difficult to distinguish it from the attached document.

そのため、従来技術では、例えば、外包材における所定の特徴部分(一例では外包材の赤色印刷部分)を撮像画像から抽出し、この特徴部分の面積に基づき添付書類を検出していた。具体的には、外包材の特徴部分の面積が閾値未満である場合には、外包材の上に添付書類が載置されているので、添付書類が収容箱内に存在すると判定し(良品判定)、外包材の特徴部分の面積が閾値以上である場合には、外包材の上に添付書類が載置されていないので、添付書類が収容箱内に存在しないと判定していた(不良品判定)。しかしながら、この従来の検出方法では、外包材に対する添付書類の位置によって、撮像画像における外包材の特徴部分の面積が変化するため、添付書類の検出精度を適切に確保できなかった。   Therefore, in the prior art, for example, a predetermined characteristic portion (in one example, a red print portion of the outer packaging material) in the outer packaging material is extracted from the captured image, and an attached document is detected based on the area of the characteristic portion. Specifically, when the area of the characteristic part of the outer packaging material is less than the threshold value, it is determined that the attached document exists in the storage box because the attached document is placed on the outer packaging material (non-defective product determination ), If the area of the characteristic part of the outer packaging material is greater than or equal to the threshold value, the attached document is not placed on the outer packaging material, so it was determined that the attached document does not exist in the storage box (defective product) Judgment). However, in this conventional detection method, the area of the characteristic portion of the outer packaging material in the captured image varies depending on the position of the attached document with respect to the outer packaging material, and thus the detection accuracy of the attached document cannot be ensured appropriately.

なお、上記した「同系色」とは、外包材及び添付書類のそれぞれの撮像画像を処理した画像データの値が近いために、外包材と添付書類とを画像上で区別するのが困難となるような色を意味する。また、この「同系色」は、外包材及び添付書類の地(ベース)の色、つまり印字された文字などを除いた部分の色により規定される。   The above-mentioned “similar colors” are close to the values of the image data obtained by processing the captured images of the outer packaging material and the attached document, and thus it is difficult to distinguish the outer packaging material and the attached document on the image. Means the color. The “similar colors” are defined by the color of the base (base) of the outer packaging material and the attached document, that is, the color of the portion excluding the printed characters.

本発明は、上述した従来技術の問題点を解決するためになされたものであり、収容箱内に添付書類が存在するか否かを精度良く判定することができる添付書類の検出装置及び検出方法を提供することを目的とする。   The present invention has been made to solve the above-described problems of the prior art, and is capable of accurately determining whether or not an attached document is present in a storage box. The purpose is to provide.

上記の目的を達成するために、本発明は、収容物が収容された収容箱内において当該収容物上に載置された状態で添付される添付書類の検出装置であって、収容箱に向けて紫外線を照射する紫外線照射源と、紫外線照射源により紫外線が照射されたときに、収容箱において添付書類が添付される部分を含む範囲を撮像する撮像装置と、撮像装置による撮像画像に基づいて、添付書類が収容箱内に存在するか否かを判定する処理装置と、を有し、収容物は添付書類と同系色の外表面を有するか、或いは収容物は透明フィルムから成る外表面を有し、添付書類は、蛍光剤を含み、それにより、紫外線が照射されたときに蛍光発光して所定範囲内の波長を有する光を発する一方で、収容物は、紫外線が照射されたときに所定範囲内の波長を有する光を発せず、処理装置は、撮像画像に基づき所定範囲内の波長を有する光の部分を特定して、添付書類が収容箱内に存在するか否かを判定する、ことを特徴とする。   In order to achieve the above object, the present invention provides a detection device for an attached document attached to a storage box in which the storage object is stored, and is attached to the storage box. An ultraviolet irradiation source for irradiating ultraviolet rays, an imaging device for imaging a range including a portion to which an attached document is attached in the storage box when the ultraviolet irradiation is applied by the ultraviolet irradiation source, and an image captured by the imaging device A processing device for determining whether or not the attached document is present in the storage box, wherein the stored object has an outer surface similar in color to the attached document, or the stored object has an outer surface made of a transparent film. And the attachment includes a fluorescent agent, so that when ultraviolet light is irradiated, the fluorescent material emits light having a wavelength within a predetermined range, while the container is irradiated with ultraviolet light. Light having a wavelength within a predetermined range Not issued, the processing unit identifies a portion of the light having a wavelength within a predetermined range based on the captured image, it determines whether the attachment is present in the receiving box, characterized in that.

このように構成された本発明によれば、蛍光剤を含む添付書類に紫外線を照射したときの撮像画像に基づき、添付書類が収容箱内に存在するか否かを判定する。この場合、紫外線を照射したときに、蛍光剤を含む添付書類は比較的短い波長を有する光(典型的には可視光)を発する一方で、収容物はそのような波長とは異なる波長の光を発する。よって、紫外線を照射したときに添付書類と収容物とで反射光の波長(光のエネルギーに相当する)が異なるため、収容物が添付書類と同系色であったり透明フィルムであったりしても、撮像画像中の収容物と添付書類とを明確に区別することができる。したがって、本発明によれば、添付書類が収容箱内に存在するか否かを精度良く判定することができる。   According to the present invention configured as described above, it is determined whether or not the attached document exists in the storage box based on the captured image when the attached document including the fluorescent agent is irradiated with ultraviolet rays. In this case, the attachment containing the fluorescent agent emits light having a relatively short wavelength (typically visible light) when irradiated with ultraviolet light, while the container contains light having a wavelength different from such wavelength. To emit. Therefore, since the wavelength of the reflected light (corresponding to the energy of light) differs between the attached document and the stored item when irradiated with ultraviolet rays, the stored item may have the same color as the attached document or a transparent film. Therefore, it is possible to clearly distinguish the contents and attached documents in the captured image. Therefore, according to the present invention, it can be accurately determined whether or not the attached document exists in the storage box.

本発明において、好ましくは、処理装置は、撮像画像のデータを階調処理し、この後、所定範囲の波長に対応する範囲内の階調を第1の値に設定し、且つ、この範囲外の階調を第2の値に設定する2値化処理を行い、2値化処理が行われた撮像画像において第1の値を有する部分の面積が所定の閾値以上である場合に、添付書類が収容箱内に存在すると判定する。
このように構成された本発明によれば、2値化処理後の撮像画像において第1の値を有する部分、つまり所定範囲の波長に対応する範囲内の階調を有する部分の面積を用いることで、収容箱内の添付書類の有無をより精度良く判定することができると共に、添付書類が収容箱内の適切な位置に添付されている否かも精度良く判定することができる。
In the present invention, preferably, the processing device performs gradation processing on the data of the captured image, and then sets a gradation within a range corresponding to a predetermined range of wavelengths to a first value and out of this range. When the binarization process is performed to set the gradation of the second value to the second value and the area of the portion having the first value is equal to or greater than a predetermined threshold in the captured image subjected to the binarization process, the attached document Is determined to exist in the storage box.
According to the present invention configured as described above, the area of the portion having the first value in the captured image after binarization processing, that is, the portion having the gradation within the range corresponding to the wavelength in the predetermined range is used. Thus, the presence / absence of an attached document in the storage box can be determined with higher accuracy, and whether or not the attached document is attached to an appropriate position in the storage box can also be determined with high accuracy.

本発明において、好ましくは、収容物及び添付書類の一部分は、収容箱が有するフラップによって覆われており、処理装置は、撮像画像において、収容箱のフラップによって覆われていない添付書類の部分が含まれる領域を抽出し、この領域の画像に基づき、添付書類が収容箱内に存在するか否かを判定する。
このように構成された本発明によれば、撮像画像から抽出した、収容箱のフラップによって覆われていない添付書類の部分が含まれる領域を用いることで、収容箱内の添付書類の有無をより精度良く判定することができると共に、添付書類が収容箱内の適切な位置に添付されている否かも精度良く判定することができる。
In the present invention, preferably, a part of the contents and the attached document is covered by a flap included in the containing box, and the processing device includes a part of the attached document not covered by the flap of the containing box in the captured image. A region to be extracted is extracted, and based on the image of this region, it is determined whether or not the attached document exists in the container.
According to the present invention configured as described above, by using an area that is extracted from the captured image and includes a portion of the attached document that is not covered by the flap of the containing box, the presence or absence of the attached document in the containing box is further determined. In addition to being able to determine with high accuracy, it is also possible to accurately determine whether or not the attached document is attached to an appropriate position in the storage box.

本発明において、好ましくは、処理装置は、撮像画像において、収容箱のフラップによって覆われた添付書類の部分が含まれる領域を抽出し、この領域の画像に基づき、添付書類が収容箱のフラップ上にはみ出していないか否かを更に判定する。
このように構成された本発明によれば、撮像画像から抽出した、収容箱のフラップによって覆われた添付書類の部分が含まれる領域を用いることで、添付書類が収容箱のフラップ上にはみ出していないか否か、言い換えると添付書類がフラップによって適切に覆われているか否かを精度良く判定することができる。
In the present invention, preferably, the processing device extracts an area including a portion of the attached document covered by the flap of the storage box from the captured image, and the attached document is placed on the flap of the storage box based on the image of the area. It is further determined whether or not it has protruded.
According to the present invention configured as described above, by using the region including the portion of the attached document covered by the flap of the storage box extracted from the captured image, the attached document protrudes on the flap of the storage box. It is possible to accurately determine whether or not there is, in other words, whether or not the attached document is properly covered with the flap.

本発明において、好ましくは、撮像装置に取り付けられ、且つ、所定範囲に対応する範囲の波長を有する光のみを透過させて、この光を撮像装置に入射させるフィルタを更に有する。
このように構成された本発明によれば、光学フィルタによって、紫外線を照射したときの添付書類からの反射光(蛍光発光された光)を、撮像装置に効果的に入射させられるようになる。よって、収容箱内の添付書類の有無をより精度良く判定することができる。
In the present invention, it is preferable to further include a filter that is attached to the imaging device and transmits only light having a wavelength in a range corresponding to a predetermined range and makes this light incident on the imaging device.
According to the present invention configured as above, reflected light (fluorescent light) from the attached document when irradiated with ultraviolet rays can be effectively incident on the imaging device by the optical filter. Therefore, the presence or absence of the attached document in the storage box can be determined with higher accuracy.

本発明において、好ましくは、同系色は白色である。   In the present invention, preferably, the similar color is white.

本発明において、好ましくは、収容物は外包材を有し、この外包材は、紫外線に反応して蛍光発光する蛍光剤を実質的に含まない。   In the present invention, preferably, the container has an outer packaging material, and the outer packaging material does not substantially contain a fluorescent agent that emits fluorescence in response to ultraviolet rays.

別の観点では、本発明は、収容物が収容された収容箱内において当該収容物上に載置された状態で添付される添付書類の検出装置によって実行される検出方法であって、収容箱に向けて紫外線を照射する工程と、紫外線が照射されたときに、収容箱において添付書類が添付される部分を含む範囲を撮像する工程と、撮像により得られた撮像画像に基づいて、添付書類が収容箱内に存在するか否かを判定する工程と、を有し、収容物は添付書類と同系色の外表面を有するか、或いは収容物は透明フィルムから成る外表面を有し、添付書類は、蛍光剤を含み、それにより、紫外線が照射されたときに蛍光発光して所定範囲内の波長を有する光を発する一方で、収容物は、紫外線が照射されたときに所定範囲内の波長を有する光を発せず、判定する工程は、撮像画像に基づき所定範囲の波長を有する光の部分を特定して、添付書類が収容箱内に存在するか否かを判定する、ことを特徴とする。
このように構成された本発明によっても、収容物が添付書類と同系色であったり透明フィルムであったりしても、収容箱内に添付書類が存在するか否かを精度良く判定することができる。
In another aspect, the present invention is a detection method executed by a detection device for an attached document attached in a state of being placed on a storage box in a storage box in which the storage box is stored. A step of irradiating ultraviolet rays toward the substrate, a step of imaging a range including a portion to which the attached document is attached in the storage box when the ultraviolet rays are irradiated, and an attached document based on a captured image obtained by the imaging The container has an outer surface of a similar color to the attached document, or the container has an outer surface made of a transparent film and is attached. The document contains a fluorescent agent, so that when irradiated with ultraviolet light, it emits fluorescence and emits light having a wavelength within a predetermined range, while the containment is within the predetermined range when irradiated with ultraviolet light. Judge without emitting light with wavelength Degree is to identify the portion of light having a wavelength in a predetermined range based on the captured image, it determines whether the attachment is present in the receiving box, characterized in that.
Even according to the present invention configured as described above, it is possible to accurately determine whether there is an attached document in the containing box even if the contained item has a similar color to the attached document or a transparent film. it can.

本発明による添付書類の検出装置及び検出方法によれば、収容箱内に添付書類が存在するか否かを精度良く判定することができる。   According to the attached document detection apparatus and detection method of the present invention, it is possible to accurately determine whether or not an attached document exists in the storage box.

本発明の実施形態による添付書類の検出装置の概略構成図である。1 is a schematic configuration diagram of an attachment detection apparatus according to an embodiment of the present invention. 本発明の実施形態による検出装置が用いる検出エリアについての説明図である。It is explanatory drawing about the detection area which the detection apparatus by embodiment of this invention uses. 本発明の実施形態による検出エリアを用いた添付書類の検出方法についての説明図である。It is explanatory drawing about the detection method of the attached document using the detection area by embodiment of this invention. 本発明の実施形態による添付書類の検出処理を示すフローチャートである。It is a flowchart which shows the detection process of the attached document by embodiment of this invention. 本発明の実施形態による2値化処理後の撮像画像例である。It is an example of the captured image after the binarization process by embodiment of this invention.

以下、添付図面を参照して、本発明の実施形態による添付書類の検出装置及び検出方法について説明する。   Hereinafter, an attached document detection apparatus and detection method according to embodiments of the present invention will be described with reference to the accompanying drawings.

まず、図1を参照して、本発明の実施形態による添付書類の検出装置の構成について説明する。図1は、本発明の実施形態による添付書類の検出装置の概略構成図である。   First, with reference to FIG. 1, the configuration of an attachment detection apparatus according to an embodiment of the present invention will be described. FIG. 1 is a schematic configuration diagram of an attachment detection apparatus according to an embodiment of the present invention.

図1に示すように、検出装置1は、収容箱9内において収容物13上に載置された状態で添付される添付書類11を検出する装置である。収容箱9は、図示しないコンベアなどの搬送装置によって搬送され(図1中の白抜き矢印参照)、検出装置1は、そのように搬送された複数の収容箱9に対して、上方から添付書類11の検出を順次行っていく。例えば、収容箱9は、外部からの光が遮断された暗室(不図示)内に搬送され、検出装置1は、そのような暗室内で添付書類11の検出を行う。   As shown in FIG. 1, the detection device 1 is a device that detects an attached document 11 that is attached in a state of being placed on a storage item 13 in a storage box 9. The storage box 9 is transported by a transport device such as a conveyor (not shown) (see the white arrow in FIG. 1), and the detection device 1 attaches a plurality of storage boxes 9 so transported from above. 11 are sequentially detected. For example, the storage box 9 is conveyed into a dark room (not shown) where light from the outside is blocked, and the detection device 1 detects the attached document 11 in such a dark room.

収容箱9は、例えば段ボール箱であり、二組のフラップ9a、9bを有し、そのうちの一組のフラップ9aによって収容物13及び添付書類11を覆った状態で検出装置1による検出が行われる。収容物13は、外包材で覆われた医薬品などであり、添付書類11は、医薬品の説明などが印刷された、一般的な白色の紙の印刷物である。収容箱9内の収容物13において表面に現れている部分が外包材であるため、以下では、収容物13のことを適宜「外包材13」と表記する。
なお、添付書類(添付文書)11は、医薬品や医療機器などの警告や使用上の注意や品目仕様などを記載した使用者や医師や薬剤師向けの書面であり、薬事法により添付することが義務付けられている。
The storage box 9 is, for example, a cardboard box, and has two sets of flaps 9a and 9b. Detection is performed by the detection device 1 in a state in which the stored item 13 and the attached document 11 are covered by the pair of flaps 9a. . The container 13 is a medicine covered with an outer packaging material, and the attached document 11 is a general white paper printed matter on which a description of the medicine is printed. Since the portion appearing on the surface of the stored item 13 in the storage box 9 is an outer packaging material, the stored item 13 will be appropriately referred to as an “outer packaging material 13” below.
The attached document (attached document) 11 is a document for users, doctors, and pharmacists that describes warnings, precautions for use, item specifications, etc. of pharmaceuticals and medical devices, and is required to be attached under the Pharmaceutical Affairs Law. It has been.

外包材13は、白色にその表面が印刷されたアルミ蒸着外包装であり、添付書類11と同系色になっている。添付書類11は、紫外線に反応して蛍光発光する蛍光剤(蛍光増白剤)を含む一方で、外包材13は、そのような蛍光剤を実質的に含まない。具体的には、添付書類11は、蛍光剤が全体に渡って均質に分散している。なお、一般に流通している白色の紙には、上記のような蛍光剤が含まれていることが多い。   The outer packaging material 13 is an aluminum vapor deposition outer packaging whose surface is printed in white, and has the same color as the attached document 11. The attachment 11 includes a fluorescent agent (fluorescent whitening agent) that emits fluorescence in response to ultraviolet rays, while the outer packaging material 13 does not substantially include such a fluorescent agent. Specifically, in the attached document 11, the fluorescent agent is uniformly dispersed throughout. In general, white paper that is generally distributed contains the fluorescent agent as described above.

また、図1に示すように、検出装置1は、破線矢印Aに示すように紫外線を照射する紫外線照射源(紫外線照明)2と、撮像装置としてのカメラ3と、カメラ3の先端部に取り付けられるレンズフィルタ5と、紫外線照射源2及びカメラ3を制御すると共にカメラ3の撮像画像を処理する処理装置7と、を有する。   As shown in FIG. 1, the detection device 1 is attached to an ultraviolet irradiation source (ultraviolet illumination) 2 that irradiates ultraviolet rays, a camera 3 as an imaging device, and a tip of the camera 3 as indicated by a broken line arrow A. And a processing device 7 that controls the ultraviolet irradiation source 2 and the camera 3 and processes a captured image of the camera 3.

紫外線照射源2は、例えば365nmの波長を有する紫外線を収容箱9に向けて照射する。具体的には、紫外線照射源2は、収容箱9に対して斜め上方から紫外線を照射し、且つ収容箱9の上面のほぼ全体に渡って紫外線を照射する。このような紫外線照射源2からの紫外線が収容箱9内の添付書類11に照射されたときに、添付書類11内の蛍光剤が紫外線に反応して蛍光発光する。よって、紫外線照射源2からの紫外線は、添付書類11を蛍光発光させる励起エネルギーとなる。添付書類11は、紫外線が照射されたとき、比較的短い波長を有する可視光を反射する。具体的には、添付書類11は、青色光(例えば450nm付近の範囲内の波長)を発する。一方で、蛍光剤を実質的に含まない外包材13は、紫外線が照射されたときに、そのような青色光を発しない。   The ultraviolet irradiation source 2 irradiates, for example, ultraviolet rays having a wavelength of 365 nm toward the storage box 9. Specifically, the ultraviolet irradiation source 2 irradiates the storage box 9 with ultraviolet rays obliquely from above, and irradiates the entire upper surface of the storage box 9 with ultraviolet rays. When the ultraviolet rays from the ultraviolet irradiation source 2 are irradiated onto the attached document 11 in the storage box 9, the fluorescent agent in the attached document 11 reacts with the ultraviolet rays to emit fluorescence. Therefore, the ultraviolet rays from the ultraviolet irradiation source 2 become excitation energy that causes the attached document 11 to emit fluorescence. The attached document 11 reflects visible light having a relatively short wavelength when irradiated with ultraviolet rays. Specifically, the attached document 11 emits blue light (for example, a wavelength in the vicinity of 450 nm). On the other hand, the outer packaging material 13 substantially not containing a fluorescent agent does not emit such blue light when irradiated with ultraviolet rays.

カメラ3は、紫外線照射源2により紫外線が照射されたときに、収容箱9において添付書類11が添付される部分を少なくとも含む範囲を撮像する。この場合、カメラ3の先端部に取り付けられたレンズフィルタ5が、例えば300〜450nmの波長を有する光のみを透過させて、低UV領域の光及び所定波長以上の可視光を遮断し、カメラ3には、そのようなレンズフィルタ5を介した光が入射される。これにより、紫外線を照射したときの添付書類11からの反射光(蛍光発光された光、具体的には青色光)を選択的且つ効果的にカメラ3に入射できるようになる。   When the ultraviolet rays are irradiated from the ultraviolet irradiation source 2, the camera 3 captures an image of a range including at least a portion to which the attached document 11 is attached in the storage box 9. In this case, the lens filter 5 attached to the tip of the camera 3 transmits only light having a wavelength of, for example, 300 to 450 nm, blocks light in a low UV region and visible light having a predetermined wavelength or more, and the camera 3 The light that has passed through such a lens filter 5 enters. Thereby, the reflected light (fluorescent light, specifically blue light) from the attached document 11 when irradiated with ultraviolet rays can be selectively and effectively incident on the camera 3.

処理装置7は、プログラムを解釈実行するCPU、プログラムやデータを記憶するためのROMやRAMなどのメモリ、ユーザからの入力を受け付ける入力装置(操作装置)、及び表示装置などを有する。典型的には、処理装置7は、コンピュータにより構成される。   The processing device 7 includes a CPU that interprets and executes a program, a memory such as a ROM and a RAM for storing programs and data, an input device (operation device) that receives input from a user, a display device, and the like. Typically, the processing device 7 is configured by a computer.

本実施形態では、処理装置7は、紫外線照射源2を瞬間的にパルス発光させるように、紫外線照射源2にトリガー信号を供給し、また、そのように紫外線照射源2がパルス発光したときにカメラ3が撮像を行うように、カメラ3を制御する(例えばシャッター速度などを制御する)。更に、処理装置7は、カメラ3による撮像画像に基づいて、添付書類11が収容箱9内に存在するか否かを判定する。特に、本実施形態では、処理装置7は、カメラ3による撮像画像を処理することで、紫外線照射により添付書類11から発せられた青色光部分を特定して、添付書類11が収容箱9内に存在するか否かを判定する。   In this embodiment, the processing device 7 supplies a trigger signal to the ultraviolet irradiation source 2 so that the ultraviolet irradiation source 2 instantaneously emits a pulse, and when the ultraviolet irradiation source 2 emits a pulse as such. The camera 3 is controlled so that the camera 3 captures an image (for example, the shutter speed is controlled). Further, the processing device 7 determines whether or not the attached document 11 exists in the storage box 9 based on the image captured by the camera 3. In particular, in the present embodiment, the processing device 7 processes the image picked up by the camera 3 to identify the blue light portion emitted from the attachment 11 by the ultraviolet irradiation, and the attachment 11 is placed in the storage box 9. Determine if it exists.

上述したように、紫外線照射源2から紫外線を照射させたときに、蛍光剤を含む添付書類11から青色光が発せられ、一方で、蛍光剤を実質的に含まない外包材13からは青色光が発せられない。そのため、処理装置7は、紫外線を照射したときの撮像画像中の外包材13と添付書類11とを明確に区別して、収容箱9内の添付書類11の有無を精度良く判定できるようになる。   As described above, when ultraviolet light is irradiated from the ultraviolet irradiation source 2, blue light is emitted from the attached document 11 containing the fluorescent agent, while blue light is emitted from the outer packaging material 13 that does not substantially contain the fluorescent agent. Is not emitted. Therefore, the processing device 7 can clearly distinguish the outer packaging material 13 and the attached document 11 in the captured image when irradiated with ultraviolet rays, and can accurately determine the presence or absence of the attached document 11 in the storage box 9.

次に、図2を参照して、本発明の実施形態における検出装置1による検出エリアについて説明する。図2は、添付書類11及び収容物13(外包材13)を含む収容箱9を上方から見た平面図である。   Next, with reference to FIG. 2, the detection area by the detection apparatus 1 in the embodiment of the present invention will be described. FIG. 2 is a plan view of the storage box 9 including the attached document 11 and the stored item 13 (the outer packaging material 13) as viewed from above.

図2に示すように、本実施形態では、検出装置1のカメラ3が、収容箱9において添付書類11が添付される部分を含む、比較的広い範囲A0を撮像する。この撮像範囲A0は、添付書類11の全体を少なくとも含み、且つ、収容箱9の一組のフラップ9aのそれぞれを部分的に含む範囲である。そして、検出装置1の処理装置7は、このようなカメラ3の撮像範囲A0からエリアA1、A2及びA3内の画像を抽出して添付書類11の検出を行う。以下では、エリアA1、A2及びA3のそれぞれを「第1検出エリアA1」、「第2検出エリアA2」及び「第3検出エリアA3」と表記する。   As shown in FIG. 2, in the present embodiment, the camera 3 of the detection apparatus 1 images a relatively wide range A0 including a portion to which the attached document 11 is attached in the storage box 9. The imaging range A0 is a range including at least the entire attached document 11 and partially including each of the set of flaps 9a of the storage box 9. Then, the processing device 7 of the detection apparatus 1 detects the attached document 11 by extracting the images in the areas A1, A2, and A3 from the imaging range A0 of the camera 3 as described above. Hereinafter, the areas A1, A2, and A3 are referred to as “first detection area A1,” “second detection area A2,” and “third detection area A3,” respectively.

第1検出エリアA1は、符号9cで示すような一組のフラップ9aの間の範囲、具体的には一組のフラップ9aによって覆われていない添付書類11及び外包材13の部分を含む矩形範囲に設定される。この第1検出エリアA1は、添付書類11が収容箱9内に存在するか否かを判定するために用いられる。これに加えて、第1検出エリアA1は、添付書類11が収容箱9内の適切な位置に添付されているか否かを判定するためにも用いられる。   The first detection area A1 is a rectangular area including a portion between the set of flaps 9a as indicated by reference numeral 9c, specifically, a portion of the attachment 11 and the outer packaging material 13 that are not covered by the set of flaps 9a. Set to The first detection area A1 is used to determine whether or not the attached document 11 exists in the storage box 9. In addition to this, the first detection area A1 is also used to determine whether or not the attached document 11 is attached to an appropriate position in the storage box 9.

一方、第2及び第3検出エリアA2、A3は、それぞれ、フラップ9aによって覆われた添付書類11の部分を含む矩形範囲に設定される。この第2及び第3検出エリアA2、A3は、添付書類11が収容箱9のフラップ9a上にはみ出していないか否かを判定するために用いられる。言い換えると、第2及び第3検出エリアA2、A3は、添付書類11がフラップ9aによって適切に覆われているか否かを判定するために用いられる。   On the other hand, the second and third detection areas A2 and A3 are each set to a rectangular range including the portion of the attached document 11 covered with the flap 9a. The second and third detection areas A2 and A3 are used to determine whether or not the attached document 11 protrudes from the flap 9a of the storage box 9. In other words, the second and third detection areas A2 and A3 are used to determine whether or not the attached document 11 is appropriately covered by the flap 9a.

次に、図3を参照して、上記した第1乃至第3検出エリアA1〜A3を用いた添付書類11の検出方法について説明する。図3(a)〜(d)は、それぞれ、図2に示したものと同様の撮像範囲A0及び第1乃至第3検出エリアA1〜A3を示している。   Next, a method for detecting the attached document 11 using the first to third detection areas A1 to A3 will be described with reference to FIG. FIGS. 3A to 3D show an imaging range A0 and first to third detection areas A1 to A3 similar to those shown in FIG.

図3(a)は、添付書類11が収容箱9内に存在し、且つ添付書類11が収容箱9内の適切な位置に添付されている場合を示す図である。この場合、第1検出エリアA1の全体が添付書類11によって占められ、且つ第2及び第3検出エリアA2、A3には添付書類11が存在しない。よって、検出装置1の処理装置7は、カメラ3の撮像画像における第1乃至第3検出エリアA1〜A3内のデータに基づき、添付書類11が収容箱9内に存在し、且つ添付書類11が収容箱9内の適切な位置に添付されていることを適切に判定することができる。このとき、処理装置7は良品判定を下す。   FIG. 3A is a diagram illustrating a case where the attached document 11 exists in the storage box 9 and the attached document 11 is attached to an appropriate position in the storage box 9. In this case, the entire first detection area A1 is occupied by the attached document 11, and the attached document 11 does not exist in the second and third detection areas A2 and A3. Therefore, the processing device 7 of the detection device 1 includes the attached document 11 in the storage box 9 and the attached document 11 based on the data in the first to third detection areas A1 to A3 in the captured image of the camera 3. It is possible to appropriately determine that it is attached to an appropriate position in the storage box 9. At this time, the processing device 7 makes a non-defective product determination.

図3(b)は、添付書類11が収容箱9内に存在しない場合を示す図である。この場合、第1検出エリアA1の全体が外包材13によって占められている。よって、検出装置1の処理装置7は、カメラ3の撮像画像における第1検出エリアA1内のデータに基づき、添付書類11が収容箱9内に存在しないことを適切に判定することができる。このとき、処理装置7は不良品判定を下す。   FIG. 3B is a diagram illustrating a case where the attached document 11 does not exist in the storage box 9. In this case, the entire first detection area A1 is occupied by the outer packaging material 13. Therefore, the processing device 7 of the detection device 1 can appropriately determine that the attached document 11 does not exist in the storage box 9 based on the data in the first detection area A1 in the captured image of the camera 3. At this time, the processing device 7 makes a defective product determination.

図3(c)は、添付書類11が収容箱9内に存在するが、添付書類11が収容箱9内の適切な位置に添付されていない場合を示す図である。この場合、第1検出エリアA1の大部分が外包材13によって占められ、第1検出エリアA1の僅かな部分しか添付書類11が存在しない。よって、検出装置1の処理装置7は、カメラ3の撮像画像における第1検出エリアA1内のデータに基づき、添付書類11が収容箱9内の適切な位置に添付されていないことを適切に判定することができる。このとき、処理装置7は不良品判定を下す。   FIG. 3C is a diagram illustrating a case where the attached document 11 exists in the storage box 9 but the attached document 11 is not attached to an appropriate position in the storage box 9. In this case, most of the first detection area A1 is occupied by the outer packaging material 13, and the attached document 11 exists only in a small part of the first detection area A1. Therefore, the processing device 7 of the detection device 1 appropriately determines that the attachment 11 is not attached to an appropriate position in the storage box 9 based on the data in the first detection area A1 in the captured image of the camera 3. can do. At this time, the processing device 7 makes a defective product determination.

図3(d)は、添付書類11が収容箱9内に存在するが、添付書類11が収容箱9のフラップ9a上にはみ出している場合を示す図である。この場合、第1検出エリアA1の全体が添付書類11によって占められているが、第2検出エリアA2に添付書類11が存在する。よって、検出装置1の処理装置7は、カメラ3の撮像画像における第1検出エリアA1及び第2検出エリアA2内のデータに基づき、添付書類11が収容箱9内に存在するが、添付書類11が収容箱9のフラップ9a上にはみ出していることを適切に判定することができる。このとき、処理装置7は不良品判定を下す。   FIG. 3D is a diagram showing a case where the attached document 11 exists in the storage box 9 but the attached document 11 protrudes from the flap 9 a of the storage box 9. In this case, the entire first detection area A1 is occupied by the attached document 11, but the attached document 11 exists in the second detection area A2. Therefore, the processing device 7 of the detection device 1 has the attachment 11 in the storage box 9 based on the data in the first detection area A1 and the second detection area A2 in the captured image of the camera 3, but the attachment 11 Can be appropriately determined to protrude from the flap 9a of the storage box 9. At this time, the processing device 7 makes a defective product determination.

次に、図4を参照して、本発明の実施形態において検出装置1の処理装置7が行う具体的な処理について説明する。図4は、本発明の実施形態による添付書類11の検出処理を示すフローチャートである。このフローは、処理装置7によって繰り返し実行される。   Next, with reference to FIG. 4, the specific process which the processing apparatus 7 of the detection apparatus 1 performs in embodiment of this invention is demonstrated. FIG. 4 is a flowchart showing a process for detecting the attached document 11 according to the embodiment of the present invention. This flow is repeatedly executed by the processing device 7.

まず、ステップS1において、処理装置7は、紫外線照射源2から紫外線を照射させるよう制御する。具体的には、処理装置7は、検出対象となる収容箱9が所定位置に搬送されたときに、紫外線照射源2にトリガー信号を供給し、紫外線照射源2を瞬間的にパルス発光させる。   First, in step S <b> 1, the processing device 7 controls to irradiate ultraviolet rays from the ultraviolet irradiation source 2. Specifically, the processing device 7 supplies a trigger signal to the ultraviolet irradiation source 2 when the container 9 to be detected is transported to a predetermined position, and instantaneously causes the ultraviolet irradiation source 2 to emit light in pulses.

次いで、ステップS2において、処理装置7は、紫外線照射源2が紫外線を照射したときに、カメラ3が撮像を行うよう制御する。このとき、処理装置7は、例えばカメラ3のシャッター速度などを制御する。   Next, in step S <b> 2, the processing device 7 controls the camera 3 to perform imaging when the ultraviolet irradiation source 2 emits ultraviolet rays. At this time, the processing device 7 controls, for example, the shutter speed of the camera 3.

次いで、ステップS3において、処理装置7は、まず、カメラ3による撮像画像を階調処理し、この後、所定範囲内の階調を1に設定し、且つ所定範囲外の階調を0に設定する2値化処理を行う。具体的には、処理装置7は、階調処理として、撮像画像のデータをグレー処理方式にて濃淡を256階調に分割する。これにより、撮像画像のデータが0〜255の値を有するデータとなる。   Next, in step S3, the processing device 7 first performs gradation processing on the image captured by the camera 3, and then sets the gradation within the predetermined range to 1 and sets the gradation outside the predetermined range to 0. The binarization process is performed. Specifically, the processing device 7 divides the image data into 256 gradations using a gray processing method as gradation processing. Thereby, the data of the captured image becomes data having a value of 0 to 255.

この階調処理の後、処理装置7は、撮像画像の第1検出エリアA1内のデータについて、階調が例えば38〜75の範囲のデータを1(白)に設定し、階調が当該範囲外のデータを0(黒)に設定する2値化処理を行う。このような2値化処理に適用される階調の範囲には、紫外線照射による添付書類11の反射光(つまり蛍光発光された光、具体的には青色光)に対応する撮像画像の階調が含まれ、且つ、外包材13に対応する撮像画像の階調が含まれないような範囲が用いられる。特に、添付書類11が存在しない場合において、紫外線照射によって外包材13から散乱紫外線が生じた場合にも、2値化処理後の撮像画像のデータが0(黒)となるような階調の範囲を用いるのがよい。   After this gradation processing, the processing device 7 sets data in the range of 38 to 75, for example, to 1 (white) for the data in the first detection area A1 of the captured image, and the gradation is in the range. A binarization process for setting the outside data to 0 (black) is performed. The gradation range applied to such binarization processing includes the gradation of the captured image corresponding to the reflected light of the attached document 11 (that is, the fluorescent light, specifically blue light) by the ultraviolet irradiation. And a range in which the gradation of the captured image corresponding to the outer packaging material 13 is not included is used. In particular, when the attached document 11 does not exist, even when scattered ultraviolet rays are generated from the outer packaging material 13 by ultraviolet irradiation, the gradation range in which the data of the captured image after binarization processing is 0 (black) Should be used.

更に、処理装置7は、撮像画像の第2及び第3検出エリアA2、A3内のデータについて、階調が例えば36〜255の範囲のデータを1(白)に設定し、階調が当該範囲外のデータを0(黒)に設定する2値化処理を行う。このような2値化処理に適用される階調の範囲には、紫外線照射による添付書類11の反射光(つまり蛍光発光された光、具体的には青色光)に対応する撮像画像の階調が含まれ、且つ、収容箱9のフラップ9aに対応する撮像画像の階調が含まれないような範囲が用いられる。   Further, for the data in the second and third detection areas A2 and A3 of the captured image, the processing device 7 sets 1 (white) of data in a gradation range of 36 to 255, for example, and the gradation is in the range. A binarization process for setting the outside data to 0 (black) is performed. The gradation range applied to such binarization processing includes the gradation of the captured image corresponding to the reflected light of the attached document 11 (that is, the fluorescent light, specifically blue light) by the ultraviolet irradiation. And a range in which the gradation of the captured image corresponding to the flap 9a of the storage box 9 is not included is used.

次いで、ステップS4において、処理装置7は、第1検出エリアA1内において2値化処理により1に設定された部分の面積、つまり白色部分の面積が、第1閾値以上であるか否かを判定する。このステップS4では、処理装置7は、第1検出エリアA1内の白色部分の面積の大きさに基づき、添付書類11が収容箱9内に存在するか否か、及び添付書類11が収容箱9内の適切な位置に添付されているか否かを判定する。例えば、上記の第1閾値には17000が適用される。   Next, in step S4, the processing device 7 determines whether or not the area of the portion set to 1 by the binarization process in the first detection area A1, that is, the area of the white portion is equal to or greater than the first threshold value. To do. In this step S4, the processing device 7 determines whether or not the attached document 11 exists in the storage box 9 based on the size of the white portion in the first detection area A1, and the attached document 11 is stored in the storage box 9. It is determined whether or not it is attached at an appropriate position. For example, 17000 is applied to the first threshold.

ステップS4の判定の結果、第1検出エリアA1内の白色部分の面積が第1閾値以上である場合(ステップS4:Yes)、処理装置7は、添付書類11が収容箱9内に存在し、且つ添付書類11が収容箱9内の適切な位置に添付されていると判定する。そして、処理装置7はステップS5に進む。他方で、第1検出エリアA1内の白色部分の面積が第1閾値未満である場合(ステップS4:No)、処理装置7は、添付書類11が収容箱9内に存在しないか、或いは、添付書類11が収容箱9内に存在しても、添付書類11が収容箱9内の適切な位置に添付されていないと判定する。この場合、処理装置7は、ステップS7に進み、不良品判定を下す。   As a result of the determination in step S4, when the area of the white portion in the first detection area A1 is equal to or larger than the first threshold (step S4: Yes), the processing device 7 has the attached document 11 in the storage box 9, Further, it is determined that the attached document 11 is attached to an appropriate position in the storage box 9. Then, the processing device 7 proceeds to step S5. On the other hand, when the area of the white portion in the first detection area A1 is less than the first threshold value (step S4: No), the processing device 7 indicates that the attached document 11 is not present in the storage box 9 or is attached. Even if the document 11 exists in the storage box 9, it is determined that the attached document 11 is not attached to an appropriate position in the storage box 9. In this case, the processing device 7 proceeds to step S7 to make a defective product determination.

次いで、ステップS5において、処理装置7は、第2及び第3検出エリアA2、A3内において2値化処理により1に設定された部分の面積、つまり白色部分の面積が、第2閾値未満であるか否かを判定する。このステップS5では、処理装置7は、第2及び第3検出エリアA2、A3内の白色部分の面積の大きさに基づき、添付書類11が収容箱9のフラップ9a上にはみ出していないか否かを判定する。例えば、上記の第2閾値には1000が適用される。   Next, in step S5, the processing device 7 has the area of the portion set to 1 by the binarization processing in the second and third detection areas A2 and A3, that is, the area of the white portion is less than the second threshold value. It is determined whether or not. In this step S5, the processing device 7 determines whether or not the attached document 11 protrudes from the flap 9a of the storage box 9 based on the size of the area of the white portion in the second and third detection areas A2 and A3. Determine. For example, 1000 is applied to the second threshold.

ステップS5の判定の結果、第2検出エリアA2及び第3検出エリアA3内の白色部分の面積が両方とも第2閾値未満である場合(ステップS5:Yes)、処理装置7は、添付書類11が収容箱9のフラップ9a上にはみ出していないと判定する。この場合、処理装置7は、ステップS6に進み、良品判定を下す。他方で、第2検出エリアA2及び第3検出エリアA3内の白色部分の面積の少なくともいずれかが第2閾値以上である場合(ステップS5:No)、処理装置7は、添付書類11が収容箱9のフラップ9a上にはみ出していると判定する。この場合、処理装置7は、ステップS7に進み、不良品判定を下す。   As a result of the determination in step S5, when both the areas of the white portions in the second detection area A2 and the third detection area A3 are less than the second threshold (step S5: Yes), the processing device 7 indicates that the attached document 11 is It determines with not protruding on the flap 9a of the storage box 9. FIG. In this case, the processing device 7 proceeds to step S6 and makes a non-defective product determination. On the other hand, when at least one of the areas of the white portions in the second detection area A2 and the third detection area A3 is equal to or larger than the second threshold (step S5: No), the processing apparatus 7 has the attached document 11 as the storage box. Nine flaps 9a are determined to protrude. In this case, the processing device 7 proceeds to step S7 to make a defective product determination.

なお、図4に示したフローでは、ステップS4の判定とステップS5の判定とを別々に行っていたが、ステップS4の判定とステップS5の判定とを一緒に行ってもよい。つまり、第1検出エリアA1の白色部分の面積が第1閾値以上であるか否かの判定と、第2及び第3検出エリアA2、A3内の白色部分の面積が第2閾値未満であるか否かの判定とを、同時に行ってもよい。その場合、第1検出エリアA1の白色部分の面積が第1閾値以上で且つ第2及び第3検出エリアA2、A3内の白色部分の面積が第2閾値未満である場合に、処理装置7は良品判定を下す。他方で、第1検出エリアA1の白色部分の面積が第1閾値未満である場合、又は第2及び第3検出エリアA2、A3内の白色部分の面積が第2閾値以上である場合に、処理装置7は不良品判定を下す。   In the flow shown in FIG. 4, the determination in step S4 and the determination in step S5 are performed separately, but the determination in step S4 and the determination in step S5 may be performed together. That is, it is determined whether the area of the white portion of the first detection area A1 is equal to or greater than the first threshold value, and whether the area of the white portion in the second and third detection areas A2, A3 is less than the second threshold value. The determination of whether or not may be performed simultaneously. In that case, when the area of the white portion of the first detection area A1 is equal to or greater than the first threshold and the area of the white portion within the second and third detection areas A2 and A3 is less than the second threshold, the processing device 7 Make a good product judgment. On the other hand, when the area of the white portion of the first detection area A1 is less than the first threshold, or when the area of the white portion in the second and third detection areas A2 and A3 is greater than or equal to the second threshold. The device 7 makes a defective product determination.

次に、図5を参照して、上記した2値化処理を行った後の撮像画像の例について説明する。図5(a)〜(d)は、それぞれ、第1乃至第3検出エリアA1〜A3を含む範囲における2値化処理後の撮像画像を示している。なお、図5(a)〜(d)では、説明の便宜上、第1乃至第3検出エリアA1〜A3の範囲を白枠で表している。   Next, an example of a captured image after the above binarization process will be described with reference to FIG. FIGS. 5A to 5D show captured images after binarization processing in ranges including the first to third detection areas A1 to A3, respectively. In FIGS. 5A to 5D, the range of the first to third detection areas A1 to A3 is indicated by a white frame for convenience of explanation.

図5(a)に示す2値化処理後の撮像画像では、第1検出エリアA1の大部分が白色となっており、第2及び第3検出エリアA2、A3のほぼ全体が黒色となっている。この場合、処理装置7は、第1検出エリアA1内の白色部分の面積が第1閾値以上であるため、添付書類11が収容箱9内に存在し、且つ添付書類11が収容箱9内の適切な位置に添付されていると判定する。加えて、処理装置7は、第2検出エリアA2及び第3検出エリアA3内の白色部分の面積が両方とも第2閾値未満であるため、添付書類11が収容箱9のフラップ9a上にはみ出していないと判定する。よって、処理装置7は良品判定を下す。
なお、図5(a)に示す2値化処理後の撮像画像において、第1検出エリアA1内の黒色部分は添付書類11に印字された文字に相当する。
In the captured image after the binarization process shown in FIG. 5A, most of the first detection area A1 is white, and almost the entire second and third detection areas A2, A3 are black. Yes. In this case, since the processing unit 7 has the area of the white portion in the first detection area A1 equal to or greater than the first threshold value, the attached document 11 exists in the storage box 9 and the attached document 11 exists in the storage box 9. It is determined that it is attached at an appropriate position. In addition, since the processing device 7 has both white areas in the second detection area A2 and the third detection area A3 that are less than the second threshold value, the attached document 11 protrudes from the flap 9a of the storage box 9. Judge that there is no. Therefore, the processing device 7 makes a non-defective product determination.
In the captured image after the binarization process shown in FIG. 5A, the black portion in the first detection area A1 corresponds to the character printed on the attached document 11.

図5(b)に示す2値化処理後の撮像画像では、第1検出エリアA1の全体が黒色となっている。この場合、処理装置7は、第1検出エリアA1内の白色部分の面積が第1閾値未満であるため、添付書類11が収容箱9内に存在しないと判定する。よって、処理装置7は不良品判定を下す。   In the captured image after the binarization process shown in FIG. 5B, the entire first detection area A1 is black. In this case, the processing device 7 determines that the attached document 11 does not exist in the storage box 9 because the area of the white portion in the first detection area A1 is less than the first threshold value. Therefore, the processing device 7 makes a defective product determination.

図5(c)に示す2値化処理後の撮像画像では、第1検出エリアA1の大部分が黒色となっており、第1検出エリアA1の僅かな部分しか白色となっていない。この場合、処理装置7は、第1検出エリアA1内の白色部分の面積が第1閾値未満であるため、添付書類11が収容箱9内の適切な位置に添付されていないと判定する。よって、処理装置7は不良品判定を下す。   In the captured image after the binarization process shown in FIG. 5C, most of the first detection area A1 is black, and only a small part of the first detection area A1 is white. In this case, since the area of the white portion in the first detection area A1 is less than the first threshold, the processing device 7 determines that the attached document 11 is not attached to an appropriate position in the storage box 9. Therefore, the processing device 7 makes a defective product determination.

図5(d)に示す2値化処理後の撮像画像では、第1検出エリアA1の大部分が白色となっているが、第2検出エリアA2のほぼ全体が白色となっている。この場合、処理装置7は、第2検出エリアA2内の白色部分の面積が第2閾値以上であるため、添付書類11が収容箱9のフラップ9a上にはみ出していると判定する。よって、処理装置7は不良品判定を下す。   In the captured image after the binarization processing shown in FIG. 5D, most of the first detection area A1 is white, but almost the entire second detection area A2 is white. In this case, the processing device 7 determines that the attached document 11 protrudes from the flap 9a of the storage box 9 because the area of the white portion in the second detection area A2 is equal to or larger than the second threshold value. Therefore, the processing device 7 makes a defective product determination.

以上述べたように、本発明の実施形態による検出装置1では、蛍光剤を含む添付書類11に紫外線を照射したときの撮像画像に基づき、添付書類11が収容箱9内に存在するか否かを判定する。この場合、紫外線を照射したときに、蛍光剤を含む添付書類11は比較的短い波長を有する光(青色光)を発する一方で、外包材13はそのような波長とは異なる波長の光を発する。よって、紫外線を照射したときに添付書類11と外包材13とで反射光の波長(光のエネルギーに相当する)が異なるため、添付書類11と外包材13とが同系色であっても、撮像画像中の外包材13と添付書類11とを明確に区別することができる。したがって、本実施形態によれば、添付書類11が収容箱9内に存在するか否かを精度良く判定することができる。   As described above, in the detection device 1 according to the embodiment of the present invention, whether or not the attachment 11 exists in the storage box 9 based on the captured image when the attachment 11 including the fluorescent agent is irradiated with ultraviolet rays. Determine. In this case, when the ultraviolet ray is irradiated, the attached document 11 including the fluorescent agent emits light having a relatively short wavelength (blue light), while the outer packaging material 13 emits light having a wavelength different from such a wavelength. . Therefore, since the wavelength of reflected light (corresponding to the energy of light) is different between the attached document 11 and the outer packaging material 13 when the ultraviolet rays are irradiated, even if the attached document 11 and the outer packaging material 13 have similar colors, imaging is performed. The outer packaging material 13 and the attached document 11 in the image can be clearly distinguished. Therefore, according to the present embodiment, it can be accurately determined whether or not the attached document 11 exists in the storage box 9.

また、本発明の実施形態による検出装置1では、撮像画像のデータに対して、所定範囲内の階調を1に設定し且つ所定範囲外の階調を0に設定する2値化処理を行って、この2値化処理後の撮像画像において1に設定された部分の面積を用いる。これにより、当該面積の大きさに基づき、収容箱9内の添付書類11の有無をより精度良く判定することができると共に、添付書類11が収容箱9内の適切な位置に添付されている否かも精度良く判定することができる。   In addition, the detection apparatus 1 according to the embodiment of the present invention performs binarization processing for setting the gradation within the predetermined range to 1 and setting the gradation outside the predetermined range to 0 for the captured image data. Thus, the area of the portion set to 1 in the captured image after the binarization processing is used. Accordingly, the presence / absence of the attached document 11 in the storage box 9 can be determined more accurately based on the size of the area, and whether the attached document 11 is attached to an appropriate position in the storage box 9 or not. Moreover, it can be determined with high accuracy.

また、本発明の実施形態による検出装置1では、撮像画像において、収容箱9のフラップ9aによって覆われていない添付書類11の部分が含まれる第1検出エリアA1を用いる。これにより、収容箱9内の添付書類11の有無をより精度良く判定することができると共に、添付書類11が収容箱9内の適切な位置に添付されている否かも精度良く判定することができる。   Moreover, in the detection apparatus 1 by embodiment of this invention, 1st detection area A1 in which the part of the attached document 11 which is not covered with the flap 9a of the storage box 9 is contained in a captured image is used. Thereby, the presence or absence of the attached document 11 in the storage box 9 can be determined with higher accuracy, and whether or not the attached document 11 is attached to an appropriate position in the storage box 9 can also be determined with high accuracy. .

また、本発明の実施形態による検出装置1では、撮像画像において、収容箱9のフラップ9aによって覆われた添付書類11の部分が含まれる第2及び第3検出エリアA2、A3を用いる。これにより、添付書類11が収容箱9のフラップ9a上にはみ出していないか否かを精度良く判定することができる。   Moreover, in the detection apparatus 1 by embodiment of this invention, 2nd and 3rd detection area A2, A3 in which the part of the attached document 11 covered with the flap 9a of the storage box 9 is contained in a captured image is used. Thereby, it is possible to accurately determine whether or not the attached document 11 protrudes from the flap 9a of the storage box 9.

また、本発明の実施形態による検出装置1によれば、所定範囲の波長を有する光のみを透過させて、この光をカメラ3に入射させるレンズフィルタ5を用いるので、紫外線を照射したときの添付書類11からの反射光(蛍光発光された光、具体的には青色光)を、カメラ3に効果的に入射させられるようになる。よって、収容箱9内の添付書類11の有無をより精度良く判定することができる。   In addition, according to the detection device 1 according to the embodiment of the present invention, since the lens filter 5 that transmits only light having a wavelength in a predetermined range and makes this light incident on the camera 3 is used, it is attached when irradiated with ultraviolet rays. Reflected light (fluorescent light, specifically blue light) from the document 11 can be effectively incident on the camera 3. Therefore, the presence or absence of the attached document 11 in the storage box 9 can be determined with higher accuracy.

なお、上記した実施形態では、アルミ蒸着フィルム(アルミ蒸着外包装)を含み且つ添付書類11と同系色である外包材13を示したが、本発明は、そのような外包材13への適用に限定はされない。他の例では、本発明は、酸化珪素蒸着フィルムや酸化アルミ蒸着フィルムなどの透明フィルムを用いた外包材にも適用可能である。そのような外包材を用いた場合にも、本発明によれば、添付書類11が収容箱9内に存在するか否かを精度良く判定することができる。   In the above-described embodiment, the outer packaging material 13 including the aluminum vapor deposition film (aluminum vapor deposition outer packaging) and having the same color as the attached document 11 is shown. However, the present invention is applicable to such an outer packaging material 13. There is no limitation. In another example, the present invention can be applied to an outer packaging material using a transparent film such as a silicon oxide vapor deposition film or an aluminum oxide vapor deposition film. Even when such an outer packaging material is used, according to the present invention, it can be accurately determined whether or not the attached document 11 exists in the storage box 9.

1 検出装置
2 紫外線照射源
3 カメラ(撮像装置)
5 レンズフィルタ
7 処理装置
9 収容箱
11 添付書類
13 収容物(外包材)
DESCRIPTION OF SYMBOLS 1 Detection apparatus 2 Ultraviolet irradiation source 3 Camera (imaging apparatus)
5 Lens Filter 7 Processing Device 9 Storage Box 11 Attached Document 13 Contained Goods (Outer Packaging Material)

Claims (8)

収容物が収容された収容箱内において当該収容物上に載置された状態で添付される添付書類の検出装置であって、
前記収容箱に向けて紫外線を照射する紫外線照射源と、
前記紫外線照射源により紫外線が照射されたときに、前記収容箱において前記添付書類が添付される部分を含む範囲を撮像する撮像装置と、
前記撮像装置による撮像画像に基づいて、前記添付書類が前記収容箱内に存在するか否かを判定する処理装置と、を有し、
前記収容物は前記添付書類と同系色の外表面を有するか、或いは前記収容物は透明フィルムから成る外表面を有し、
前記添付書類は、蛍光剤を含み、それにより、紫外線が照射されたときに蛍光発光して所定範囲内の波長を有する光を発する一方で、前記収容物は、紫外線が照射されたときに前記所定範囲内の波長を有する光を発せず、
前記処理装置は、前記撮像画像に基づき前記所定範囲内の波長を有する光の部分を特定して、前記添付書類が前記収容箱内に存在するか否かを判定する、
ことを特徴とする検出装置。
A detection device for an attached document attached in a state of being placed on the storage in a storage box in which the storage is stored,
An ultraviolet irradiation source for irradiating ultraviolet rays toward the storage box;
An imaging device for imaging a range including a portion to which the attached document is attached in the storage box when the ultraviolet ray is irradiated by the ultraviolet irradiation source;
A processing device for determining whether the attached document is present in the storage box based on an image captured by the imaging device;
The container has an outer surface similar in color to the attached document, or the container has an outer surface made of a transparent film;
The attachment includes a fluorescent agent, whereby when the ultraviolet light is irradiated, the fluorescent light emits and emits light having a wavelength within a predetermined range, while the container contains the fluorescent material when the ultraviolet light is irradiated. Does not emit light having a wavelength within a predetermined range,
The processing device identifies a portion of light having a wavelength within the predetermined range based on the captured image, and determines whether the attachment is present in the storage box.
A detection device characterized by that.
前記処理装置は、
前記撮像画像のデータを階調処理し、この後、前記所定範囲の波長に対応する範囲内の階調を第1の値に設定し、且つ、この範囲外の階調を第2の値に設定する2値化処理を行い、
前記2値化処理が行われた前記撮像画像において前記第1の値を有する部分の面積が所定の閾値以上である場合に、前記添付書類が前記収容箱内に存在すると判定する、
請求項1に記載の検出装置。
The processor is
The captured image data is subjected to gradation processing, and thereafter, the gradation within the range corresponding to the wavelength in the predetermined range is set to the first value, and the gradation outside the range is set to the second value. Perform binarization processing to set,
When the area of the portion having the first value in the captured image subjected to the binarization process is equal to or larger than a predetermined threshold, it is determined that the attached document exists in the storage box.
The detection device according to claim 1.
前記収容物及び前記添付書類の一部分は、前記収容箱が有するフラップによって覆われており、
前記処理装置は、前記撮像画像において、前記収容箱のフラップによって覆われていない前記添付書類の部分が含まれる領域を抽出し、この領域の画像に基づき、前記添付書類が前記収容箱内に存在するか否かを判定する、
請求項1又は2に記載の検出装置。
A part of the container and the attached document is covered with a flap of the container box,
The processing apparatus extracts an area including a portion of the attached document that is not covered by a flap of the storage box in the captured image, and the attached document exists in the storage box based on the image of the area. Determine whether or not to
The detection device according to claim 1 or 2.
前記処理装置は、前記撮像画像において、前記収容箱のフラップによって覆われた前記添付書類の部分が含まれる領域を抽出し、この領域の画像に基づき、前記添付書類が前記収容箱のフラップ上にはみ出していないか否かを更に判定する、
請求項3に記載の検出装置。
The processing apparatus extracts an area including a portion of the attached document covered by the flap of the storage box in the captured image, and the attached document is placed on the flap of the storage box based on the image of the area. Determine further whether or not it protrudes,
The detection device according to claim 3.
前記撮像装置に取り付けられ、且つ、前記所定範囲に対応する範囲の波長を有する光のみを透過させて、この光を前記撮像装置に入射させるフィルタを更に有する、請求項1乃至4のいずれか一項に記載の検出装置。   5. The filter according to claim 1, further comprising a filter that is attached to the imaging device and transmits only light having a wavelength in a range corresponding to the predetermined range and causes the light to enter the imaging device. The detection device according to item. 前記同系色は白色である、請求項1乃至5のいずれか一項に記載の検出装置。   The detection apparatus according to claim 1, wherein the similar color is white. 前記収容物は外包材を有し、この外包材は、紫外線に反応して蛍光発光する蛍光剤を実質的に含まない、請求項1乃至6のいずれか一項に記載の検出装置。   The detection apparatus according to claim 1, wherein the container includes an outer packaging material, and the outer packaging material does not substantially include a fluorescent agent that emits fluorescence in response to ultraviolet light. 収容物が収容された収容箱内において当該収容物上に載置された状態で添付される添付書類の検出方法であって、
前記収容箱に向けて紫外線を照射する工程と、
前記紫外線が照射されたときに、前記収容箱において前記添付書類が添付される部分を含む範囲を撮像する工程と、
前記撮像により得られた撮像画像に基づいて、前記添付書類が前記収容箱内に存在するか否かを判定する工程と、を有し、
前記収容物は前記添付書類と同系色の外表面を有するか、或いは前記収容物は透明フィルムから成る外表面を有し、
前記添付書類は、蛍光剤を含み、それにより、紫外線が照射されたときに蛍光発光して所定範囲内の波長を有する光を発する一方で、前記収容物は、紫外線が照射されたときに前記所定範囲内の波長を有する光を発せず、
前記判定する工程は、前記撮像画像に基づき前記所定範囲の波長を有する光の部分を特定して、前記添付書類が前記収容箱内に存在するか否かを判定する、
ことを特徴とする検出方法。
A method for detecting an attached document attached in a state of being placed on the storage in a storage box in which the storage is stored,
Irradiating ultraviolet rays toward the storage box;
Imaging a range including a portion to which the attached document is attached in the storage box when the ultraviolet ray is irradiated;
Determining whether the attached document exists in the storage box based on a captured image obtained by the imaging, and
The container has an outer surface similar in color to the attached document, or the container has an outer surface made of a transparent film;
The attachment includes a fluorescent agent, whereby when the ultraviolet light is irradiated, the fluorescent light emits and emits light having a wavelength within a predetermined range, while the container contains the fluorescent material when the ultraviolet light is irradiated. Does not emit light having a wavelength within a predetermined range,
The determining step specifies a portion of light having the wavelength in the predetermined range based on the captured image, and determines whether or not the attached document exists in the storage box.
A detection method characterized by the above.
JP2017070643A 2017-03-31 2017-03-31 Attachment detection device and detection method Active JP6878093B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017070643A JP6878093B2 (en) 2017-03-31 2017-03-31 Attachment detection device and detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017070643A JP6878093B2 (en) 2017-03-31 2017-03-31 Attachment detection device and detection method

Publications (2)

Publication Number Publication Date
JP2018173317A true JP2018173317A (en) 2018-11-08
JP6878093B2 JP6878093B2 (en) 2021-05-26

Family

ID=64108616

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017070643A Active JP6878093B2 (en) 2017-03-31 2017-03-31 Attachment detection device and detection method

Country Status (1)

Country Link
JP (1) JP6878093B2 (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5456591A (en) * 1977-10-14 1979-05-07 Nikka Kk Method of detecting forgotten description document in medicines
JPH04295790A (en) * 1991-03-25 1992-10-20 Kyodo Printing Co Ltd Card mount inspection method and device
JPH07260944A (en) * 1994-03-25 1995-10-13 Hewtec:Kk Microwave inspection method and device therefor
JPH07287071A (en) * 1994-04-18 1995-10-31 Hewtec:Kk Method and apparatus for inspecting microwaves
JPH08240529A (en) * 1995-03-02 1996-09-17 Orc Mfg Co Ltd Apparatus and method for detecting minute foreign article in container containing liquid
JPH1038541A (en) * 1996-07-18 1998-02-13 Kao Corp Fluorescent material detecting device
JPH11108860A (en) * 1997-10-07 1999-04-23 Toyo Eng Corp Apparatus and method for detecting statement of virtue
JP2002062364A (en) * 2000-08-23 2002-02-28 Omron Corp Method and device for detecting object, and selecting/ carrying system for object
JP2002062363A (en) * 2000-08-15 2002-02-28 Omron Corp Method and device for detecting object, selecting/ carrying method for object, and selecting/carrying system for object
US20020080354A1 (en) * 1999-04-29 2002-06-27 Bruner Russell S. System and method for sensing white paper
JP2004233272A (en) * 2003-01-31 2004-08-19 Jasco Corp Egg shell inspection device
CN1523342A (en) * 2003-09-05 2004-08-25 蔡永权 Fluorescent false proof detection device and method thereof
JP2010185845A (en) * 2009-02-13 2010-08-26 Ime:Kk Adhesive inspection apparatus

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5456591A (en) * 1977-10-14 1979-05-07 Nikka Kk Method of detecting forgotten description document in medicines
JPH04295790A (en) * 1991-03-25 1992-10-20 Kyodo Printing Co Ltd Card mount inspection method and device
JPH07260944A (en) * 1994-03-25 1995-10-13 Hewtec:Kk Microwave inspection method and device therefor
JPH07287071A (en) * 1994-04-18 1995-10-31 Hewtec:Kk Method and apparatus for inspecting microwaves
JPH08240529A (en) * 1995-03-02 1996-09-17 Orc Mfg Co Ltd Apparatus and method for detecting minute foreign article in container containing liquid
JPH1038541A (en) * 1996-07-18 1998-02-13 Kao Corp Fluorescent material detecting device
JPH11108860A (en) * 1997-10-07 1999-04-23 Toyo Eng Corp Apparatus and method for detecting statement of virtue
US20020080354A1 (en) * 1999-04-29 2002-06-27 Bruner Russell S. System and method for sensing white paper
JP2002062363A (en) * 2000-08-15 2002-02-28 Omron Corp Method and device for detecting object, selecting/ carrying method for object, and selecting/carrying system for object
JP2002062364A (en) * 2000-08-23 2002-02-28 Omron Corp Method and device for detecting object, and selecting/ carrying system for object
JP2004233272A (en) * 2003-01-31 2004-08-19 Jasco Corp Egg shell inspection device
CN1523342A (en) * 2003-09-05 2004-08-25 蔡永权 Fluorescent false proof detection device and method thereof
JP2010185845A (en) * 2009-02-13 2010-08-26 Ime:Kk Adhesive inspection apparatus

Also Published As

Publication number Publication date
JP6878093B2 (en) 2021-05-26

Similar Documents

Publication Publication Date Title
US9084714B2 (en) Device for counting the number of medicines in medicine packaging envelope
JPH11173992A (en) Fold line inspection apparatus for transparent outer wrapping film
US20200151490A1 (en) Drug inspection assistance device, drug identification device, image processing device, image processing method, and program
JP6974594B2 (en) Drug determination device and drug determination method
KR20070009555A (en) Device and method for detecting contamination in a container
JP5917711B2 (en) Tablet inspection device, tablet inspection method, tablet inspection program
JP2013181843A (en) Medicine number counter
JP2003215047A (en) Visual inspection apparatus and ptp packaging machine equipped with the same
US7142707B2 (en) Automated inspection of packaging materials for package integrity
JP2005291939A (en) Apparatus and method for inspecting ptp sheet
JP6878093B2 (en) Attachment detection device and detection method
JP6420065B2 (en) Inspection device
JP7217035B2 (en) CONTAINER INSPECTION DEVICE AND CONTAINER INSPECTION METHOD
JP6454503B2 (en) Inspection device
JP2014178128A (en) Article inspection device
JP2016067930A (en) Inspection method of absorbent article
CN112697810A (en) Method and device for optical inspection of containers
JP4201143B2 (en) Appearance inspection device and PTP packaging machine equipped with appearance inspection device
US8929593B2 (en) Method and device for recognition of information applied on packages
JP2004077495A (en) Visual inspection device
US20020191174A1 (en) Imaging method and imaging device, object to be imaged, prining method
JP4984540B2 (en) Print mark inspection device
JP7375049B2 (en) Image processing device and method
JP2009162728A (en) Transparent body inspection apparatus, transparent body inspection method, and transparent body inspection system
JPH1131225A (en) Detecting device for label or the like and detection processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20191226

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20201118

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20201203

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210108

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210428

R150 Certificate of patent or registration of utility model

Ref document number: 6878093

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250