JP6673447B1 - Cup detector - Google Patents

Cup detector Download PDF

Info

Publication number
JP6673447B1
JP6673447B1 JP2018220911A JP2018220911A JP6673447B1 JP 6673447 B1 JP6673447 B1 JP 6673447B1 JP 2018220911 A JP2018220911 A JP 2018220911A JP 2018220911 A JP2018220911 A JP 2018220911A JP 6673447 B1 JP6673447 B1 JP 6673447B1
Authority
JP
Japan
Prior art keywords
cup
unit
light
image data
light emitting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2018220911A
Other languages
Japanese (ja)
Other versions
JP2020085669A (en
Inventor
長島 隆一
隆一 長島
祐介 中村
祐介 中村
太一 毛利
太一 毛利
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP2018220911A priority Critical patent/JP6673447B1/en
Priority to PCT/JP2019/045882 priority patent/WO2020110971A1/en
Application granted granted Critical
Publication of JP6673447B1 publication Critical patent/JP6673447B1/en
Publication of JP2020085669A publication Critical patent/JP2020085669A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

【課題】カップが透明であるか否かを精度良く検出すること。【解決手段】供給ステージ2に配置されたカップCを検出するカップ検出装置であって、カップCの表面に光照射を行う第1の投光部30と、カップCの表面において第1の投光部30からの光の反射領域を撮像する撮像部31と、撮像部31の取得した画像データにおける白飛びしている領域が予め設定した下限閾値以下の場合にカップCが透明であると判定する判定部42とを備えている。【選択図】図3PROBLEM TO BE SOLVED: To accurately detect whether or not a cup is transparent. A cup detection device for detecting a cup C arranged on a supply stage 2, the first projection unit 30 irradiating the surface of the cup C with light, and the first projection unit on the surface of the cup C. It is determined that the cup C is transparent when the image capturing unit 31 that captures the reflection region of the light from the light unit 30 and the whiteout region in the image data acquired by the image capturing unit 31 is equal to or less than a preset lower threshold value. And a determination unit 42 for performing. [Selection diagram] FIG.

Description

本発明は、飲料ディスペンサに適用されるカップ検出装置に関するものである。   The present invention relates to a cup detecting device applied to a beverage dispenser.

飲料ディスペンサには、供給ステージに配置されたカップに対して飲料を供給するようにしたものがある。通常、この種の飲料ディスペンサでは、供給ステージにカップが配置されているか否かを検出するカップ検出装置が設けられており、カップを検出した場合にのみ飲料の供給を行うようにしている(例えば、特許文献1参照)。   Some beverage dispensers are adapted to supply a beverage to a cup arranged on a supply stage. Usually, in this type of beverage dispenser, a cup detection device that detects whether or not a cup is arranged on a supply stage is provided, and the beverage is supplied only when a cup is detected (for example, And Patent Document 1).

特開2009−274767号公報JP 2009-274767 A

ところで、昨今の飲料ディスペンサでは、供給する飲料の種類に応じて使用するカップの材質を変更するものがある。例えば、ホット飲料を供給する場合には、紙製のカップを用いるようにし、コールド飲料を供給する場合には、透明樹脂製のカップを用いるようにした飲料ディスペンサがある。こうした飲料ディスペンサでは、供給ステージに配置されたカップの材質と、供給指示された飲料の種類とが適切な組み合せでない場合、エラー表示する等して、飲料の供給を実施しないように構成することが好ましい。つまり、カップ検出装置としては、供給ステージにカップが配置されているか否かを検出するばかりでなく、カップの材質を検出する機能を有していれば、誤って透明樹脂製のカップにホット飲料が供給される事態を未然に防止することができるようになる。   By the way, some beverage dispensers change the material of a cup to be used according to the type of beverage to be supplied. For example, there is a beverage dispenser that uses a paper cup when supplying a hot beverage, and uses a transparent resin cup when supplying a cold beverage. In such a beverage dispenser, when the material of the cup arranged in the supply stage and the type of the beverage instructed to be supplied are not an appropriate combination, it may be configured such that an error is displayed and the beverage is not supplied. preferable. In other words, if the cup detection device not only detects whether or not the cup is arranged on the supply stage, but also has a function of detecting the material of the cup, the hot beverage is erroneously added to the transparent resin cup. Can be prevented from being supplied.

本発明は、上記実情に鑑みて、カップが透明であるか否かを精度良く検出することのできるカップ検出装置を提供することを目的とする。   The present invention has been made in view of the above circumstances, and has as its object to provide a cup detecting device that can accurately detect whether or not a cup is transparent.

上記目的を達成するため、本発明に係るカップ検出装置は、供給ステージに配置されたカップを検出するカップ検出装置であって、カップの表面に光照射を行う投光部と、前記カップの表面において前記投光部からの光の反射領域を撮像する撮像部と、前記撮像部の取得した画像データにおける白飛びしている領域が予め設定した下限閾値以下の場合にカップが透明であると判定する判定部とを備えたことを特徴とする。   In order to achieve the above object, a cup detection device according to the present invention is a cup detection device that detects a cup disposed on a supply stage, and a light projecting unit that irradiates light to a surface of the cup, and a surface of the cup. And determining that the cup is transparent when the image capturing unit captures an image of the reflection area of the light from the light projecting unit and the overexposed area in the image data acquired by the image capturing unit is equal to or less than a predetermined lower threshold. And a determination unit that performs the determination.

また本発明は、上述したカップ検出装置において、前記判定部は、前記撮像部の取得した画像データにおいて白飛びしている画素数をカウントすることによって白飛びしている領域を測定することを特徴とする。   According to the present invention, in the cup detection device described above, the determination unit measures the overexposed area by counting the number of overexposed pixels in the image data acquired by the imaging unit. And

また本発明は、上述したカップ検出装置において、前記判定部は、前記撮像部の取得した画像データの平均輝度に基づいて白飛びしている領域を測定することを特徴とする。   Further, according to the present invention, in the above-described cup detecting device, the determination unit measures an overexposed area based on an average luminance of the image data acquired by the imaging unit.

また本発明は、上述したカップ検出装置において、前記判定部は、白飛びしている領域を測定する以前に、前記撮像部の取得した画像データに対してコントラストを上げる処理を施した後、輝度を下げる処理を施すことを特徴とする。   The present invention also provides the cup detection device described above, wherein the determination unit performs a process of increasing contrast on the image data obtained by the imaging unit before measuring the overexposed area, Is performed.

また本発明に係るカップ検出装置は、供給ステージに配置されたカップを検出するカップ検出装置であって、カップに光照射を行う投光部と、前記カップの表面において前記投光部からの光の透過領域を撮像する撮像部と、前記撮像部の取得した画像データにおいて前記投光部からの透過光を検出した場合にカップが透明であると判定する判定部とを備えたことを特徴とする。   Further, the cup detecting device according to the present invention is a cup detecting device that detects a cup disposed on a supply stage, wherein the light projecting unit irradiates light to the cup, and the light from the light projecting unit on the surface of the cup. An imaging unit that captures an image of the transmission area, and a determination unit that determines that the cup is transparent when the transmitted light from the light emitting unit is detected in the image data obtained by the imaging unit. I do.

また本発明に係るカップ検出装置は、供給ステージに配置されたカップを検出するカップ検出装置であって、カップの表面に光照射を行う第1の投光部と、第1の投光部とは異なる方向からカップに対して第1の投光部とは異なる色温度の光照射を行う第2の投光部と、カップの表面において第1の投光部からの光の反射領域を撮像するとともに、第2の投光部からの光の透過領域を撮像する撮像部と、前記撮像部の取得した画像データにおける白飛びしている領域が予め設定した下限閾値を下回り、かつ前記第2の投光部からの透過光を検出した場合にカップが透明であると判定する判定部とを備えたことを特徴とする。   The cup detecting device according to the present invention is a cup detecting device that detects a cup disposed on a supply stage, and includes a first light projecting unit that irradiates light to a surface of the cup, and a first light projecting unit. Captures a light from the first light-emitting unit on the surface of the cup, a second light-emitting unit that irradiates the cup with light having a different color temperature from the first light-emitting unit from different directions. And an imaging unit for imaging a transmission area of light from the second light projecting unit, and an overexposed region in the image data acquired by the imaging unit falls below a preset lower limit threshold value, and the second And a determination unit that determines that the cup is transparent when the transmitted light from the light projection unit is detected.

本発明によれば、カップが透明である場合には投光部からの光が透過するため、撮像部の取得した画像データにおいて白飛びしている領域が透明でないカップよりも小さくなる。従って、白飛びしている領域の大小に応じてカップが透明であるか否かを精度良く判定することが可能となる。   According to the present invention, when the cup is transparent, the light from the light projecting unit is transmitted, so that the overexposed area in the image data acquired by the imaging unit is smaller than the non-transparent cup. Therefore, it is possible to accurately determine whether or not the cup is transparent according to the size of the overexposed area.

また、本発明によれば、カップが透明でない場合、あるいは透光性に乏しいものである場合にはカップの表面において投光部からの光の透過領域に透過光が検出されることがない。従って、透過光の有無を検出することでカップが透明であるか否かを精度良く判定することが可能となる。   Further, according to the present invention, when the cup is not transparent or has poor light transmission, transmitted light is not detected in the light transmitting region of the light projecting portion on the surface of the cup. Therefore, by detecting the presence or absence of transmitted light, it is possible to accurately determine whether or not the cup is transparent.

図1は、本発明の実施の形態であるカップ検出装置を適用した飲料ディスペンサを概念的に示す正面図である。FIG. 1 is a front view conceptually showing a beverage dispenser to which a cup detection device according to an embodiment of the present invention is applied. 図2は、図1に示した飲料ディスペンサの断面図である。FIG. 2 is a cross-sectional view of the beverage dispenser shown in FIG. 図3は、図1に示した飲料ディスペンサの制御系を示すブロック図である。FIG. 3 is a block diagram showing a control system of the beverage dispenser shown in FIG. 図4は、図3に示した制御部で実施されるカップの判定手順を示すもので、(a)は撮像部が取得した画像データである紙製カップの概念図、(b)は(a)の画像データに対してコントラストを上げる処理を施した後の概念図、(c)は(b)の画像データに対してさらに輝度を下げる処理を施した後の概念図及びその一部拡大図である。4A and 4B show a cup determination procedure performed by the control unit shown in FIG. 3. FIG. 4A is a conceptual diagram of a paper cup which is image data acquired by the imaging unit, and FIG. 3) is a conceptual diagram after performing a process of increasing contrast on the image data, and (c) is a conceptual diagram after performing a process of further reducing the brightness on the image data of (b) and a partially enlarged view thereof. It is. 図5は、図3に示した制御部で実施されるカップの判定手順を示すもので、(a)は撮像部が取得した画像データである透明樹脂製カップの概念図、(b)は(a)の画像データに対してコントラストを上げる処理を施した後の概念図、(c)は(b)の画像データに対してさらに輝度を下げる処理を施した後の概念図及びその一部拡大図である。5A and 5B show a cup determination procedure performed by the control unit shown in FIG. 3, where FIG. 5A is a conceptual diagram of a transparent resin cup which is image data acquired by the imaging unit, and FIG. FIG. 3A is a conceptual diagram after performing a process of increasing contrast on image data, and FIG. 3C is a conceptual diagram after performing a process of further lowering luminance on the image data of FIG. FIG.

以下、添付図面を参照しながら本発明に係るカップ検出装置の好適な実施の形態について詳細に説明する。
図1及び図2は、本発明の実施の形態であるカップ検出装置を概念的に示したものである。ここで例示するカップ検出装置は、飲料ディスペンサ1の供給ステージ2にコールド飲料専用の透明樹脂製カップCuが載置されたか、ホット飲料専用の紙製カップChが載置されたかを検出するものである。透明樹脂製カップCuは、無色で透明であり、飲料が供給される以前の状態で予め内部に氷が入ったものである。この透明樹脂製カップCuは、内部の氷が融解しないように冷凍庫の内部で冷凍保管されている。紙製カップChは、白色で不透明であり、透明樹脂製カップCuとほぼ同じ形状、ほぼ大きさに形成されている。この紙製カップChは、内部が空の状態で常温保管されている。
Hereinafter, preferred embodiments of a cup detecting device according to the present invention will be described in detail with reference to the accompanying drawings.
1 and 2 conceptually show a cup detecting device according to an embodiment of the present invention. The cup detecting device exemplified here detects whether the transparent resin cup Cu dedicated to cold beverage is placed on the supply stage 2 of the beverage dispenser 1 or the paper cup Ch dedicated to hot beverage is placed. is there. The transparent resin cup Cu is colorless and transparent, and has ice therein in a state before the beverage is supplied. This transparent resin cup Cu is stored frozen inside a freezer so that the ice inside does not melt. The paper cup Ch is white and opaque, and has substantially the same shape and size as the transparent resin cup Cu. The paper cup Ch is stored at room temperature with the interior empty.

供給ステージ2は、上述の透明樹脂製カップCu及び紙製カップCh(以下、総称する場合には単にカップCという)が載置された場合に、カップCの内部に飲料を供給するためのものである。本実施の形態では、飲料ディスペンサ1の前面に凹部を設けることによって供給ステージ2が構成してある。すなわち、供給ステージ2は、カップCが載置される水平の載置面21aを有した載置板21と、載置板21の後面を覆う後壁22と、載置板21の両側面を覆う左右の側壁23L,23Rと、載置板21の載置面21aを覆う天壁24とを有して構成してある。図からも明らかなように、供給ステージ2の後壁22は、飲料ディスペンサ1の前面と平行となるように設けられている。供給ステージ2の両側壁23L,23Rは、後壁22の両側縁部から前方に向けて相互間隔が漸次増大するように設けられている。   The supply stage 2 is for supplying a beverage into the cup C when the above-described transparent resin cup Cu and paper cup Ch (hereinafter, simply referred to as cup C) are placed. It is. In the present embodiment, the supply stage 2 is configured by providing a concave portion on the front surface of the beverage dispenser 1. That is, the supply stage 2 includes a mounting plate 21 having a horizontal mounting surface 21 a on which the cup C is mounted, a rear wall 22 covering the rear surface of the mounting plate 21, and both side surfaces of the mounting plate 21. It has left and right side walls 23L and 23R to cover, and a top wall 24 to cover the mounting surface 21a of the mounting plate 21. As is clear from the figure, the rear wall 22 of the supply stage 2 is provided so as to be parallel to the front surface of the beverage dispenser 1. The side walls 23L and 23R of the supply stage 2 are provided so that the mutual interval gradually increases from both side edges of the rear wall 22 toward the front.

この供給ステージ2には、図1において左方に位置する一方の側壁23Lに第1の投光部30及び撮像部31が設けてある一方、図1において右方に位置するもう一方の側壁23Rに第2の投光部32が設けてある。第1の投光部30及び第2の投光部32は、それぞれ供給ステージ2の載置面21aに載置されたカップCの表面に対して光照射を行うものである。本実施の形態の飲料ディスペンサ1は、設置場所に色温度5000Kの光を照射する室内照明が設けられていることを前提とし、第1の投光部30として、色温度5000Kの光を照射するLED(Light Emitting Diode)を適用し、第2の投光部32として、色温度6500Kの光を照射するLEDを適用している。図2からも明らかなように、これら第1の投光部30及び第2の投光部32は、カップCの上部周面に対して斜め上方から光を照射することができるように、それぞれ側壁23L,23Rの上方部に設けてある。撮像部31は、カップCの表面において第1の投光部30から照射された光の反射領域であって、第2投光部から照射された光の透過領域に合致する部分を撮像するもので、CCD(Charge Coupled Device)イメージセンサによって構成してある。   In the supply stage 2, the first light projecting unit 30 and the imaging unit 31 are provided on one side wall 23L located on the left side in FIG. 1, while the other side wall 23R located on the right side in FIG. Is provided with a second light projecting unit 32. The first light projecting unit 30 and the second light projecting unit 32 irradiate light to the surface of the cup C placed on the placing surface 21a of the supply stage 2, respectively. The beverage dispenser 1 according to the present embodiment presumes that the installation location is provided with indoor lighting for irradiating light with a color temperature of 5000K, and irradiates light with a color temperature of 5000K as the first light projecting unit 30. An LED (Light Emitting Diode) is applied, and an LED that emits light with a color temperature of 6500K is used as the second light emitting unit 32. As is clear from FIG. 2, the first light projecting unit 30 and the second light projecting unit 32 respectively irradiate the upper peripheral surface of the cup C with light obliquely from above. It is provided above the side walls 23L and 23R. The imaging unit 31 captures a portion of the surface of the cup C that is a reflection region of the light emitted from the first light emitting unit 30 and that matches a transmission region of the light emitted from the second light emitting unit. And is constituted by a CCD (Charge Coupled Device) image sensor.

また、飲料ディスペンサ1には、前面に飲料選択ボタン3及び表示部4が設けてある。飲料選択ボタン3は、供給する飲料がホット飲料であるかコールド飲料であるかを選択するものである。飲料選択ボタン3からの選択信号は、後述の制御部40に与えられることになる。表示部4は、制御部40からの制御信号に応じた表示を行うもので、例えば液晶ディスプレイによって構成してある。   In addition, the beverage dispenser 1 is provided with a beverage selection button 3 and a display unit 4 on the front surface. The beverage selection button 3 is for selecting whether the beverage to be supplied is a hot beverage or a cold beverage. The selection signal from the beverage selection button 3 is given to the control unit 40 described later. The display unit 4 performs display according to a control signal from the control unit 40, and is configured by, for example, a liquid crystal display.

図3は、上述の飲料ディスペンサ1に適用されるカップ検出装置の制御系を示すものである。図3に示す制御部40は、飲料選択ボタン3からの選択信号及び撮像部31の取得した画像データに基づいて表示部4及び飲料供給部5の制御を行うものである。飲料供給部5は、図には明示していないが、制御部40からの駆動信号に応じて動作し、供給ステージ2に載置されたカップCに対してホット飲料及びコールド飲料を選択的に供給するものである。本実施の形態の制御部40は、画像処理部41及び判定部42を有するように構成してある。   FIG. 3 shows a control system of the cup detecting device applied to the beverage dispenser 1 described above. The control unit 40 illustrated in FIG. 3 controls the display unit 4 and the beverage supply unit 5 based on the selection signal from the beverage selection button 3 and the image data acquired by the imaging unit 31. Although not explicitly shown in the drawing, the beverage supply unit 5 operates in response to a drive signal from the control unit 40, and selectively supplies a hot beverage and a cold beverage to the cup C placed on the supply stage 2. Supply. The control unit 40 according to the present embodiment is configured to include an image processing unit 41 and a determination unit 42.

画像処理部41は、撮像部31の取得した画像データが与えられると、この画像データに対して画像処理を施すことにより、白飛びしている領域(RGB値が255,255,255の領域)と、白飛びしていない領域との差を明瞭化するものである。本実施の形態の画像処理部41では、図4及び図5に示すように、撮像部31の取得した画像データに対してコントラストを上げる処理を施した後、輝度を下げる処理を施すようにしている。画像データに対してコントラストを上げる処理を行った場合には、画面の明るい部分がより明るく、暗い部分がより暗くなる。さらに、この画像データに対して輝度を下げる処理を行うと、白飛びしている領域に変更が加えられることなく輝度の低い部分が黒く潰れることになり、白飛びしている領域との差がより明瞭となる。   When the image data obtained by the imaging unit 31 is given, the image processing unit 41 performs image processing on the image data, thereby causing an overexposed area (an area with an RGB value of 255, 255, 255). And a region that is not overexposed. As shown in FIGS. 4 and 5, the image processing unit 41 of the present embodiment performs a process of increasing contrast on image data acquired by the imaging unit 31 and then performs a process of decreasing brightness. I have. When the process of increasing the contrast is performed on the image data, the bright part of the screen becomes brighter and the dark part becomes darker. Further, when the brightness of the image data is reduced, the low-brightness area is blackened without any change in the overexposed area, and the difference from the overexposed area is reduced. Be clearer.

判定部42は、画像処理部41の処理した画像データに基づいて供給ステージ2の載置面21aに載置されたカップCが無色透明の透明樹脂製カップCuであるか、あるいは白色の紙製カップChであるかの判定を行うものである。より具体的に説明すると、判定部42は、画像処理部41の処理した画像データが与えられると、所定の矩形領域を切り出し、切り出した矩形画像データSにおいて白飛びしている領域の測定を行う。判定部42が切り出す矩形領域には、カップCの表面において第1の投光部30の中心光が照射される部分を含むように設定してある。その後、判定部42は、矩形画像データSにおける白飛びしている領域の割合と予め設定した閾値との比較を行うとともに、矩形画像データSに色温度6500Kに対応した色相及び彩度を有した部分が存在するか否かの検出を行い、この検出結果と先の比較結果とに基づいてカップCの種類を判定する。   Based on the image data processed by the image processing unit 41, the determination unit 42 determines whether the cup C placed on the placement surface 21a of the supply stage 2 is a transparent resin cup Cu that is colorless and transparent, or that is made of white paper. It is to determine whether the cup is a cup Ch. More specifically, when the image data processed by the image processing unit 41 is given, the determination unit 42 cuts out a predetermined rectangular area, and measures an overexposed area in the cut out rectangular image data S. . The rectangular area cut out by the determination unit 42 is set so as to include a portion of the surface of the cup C where the center light of the first light emitting unit 30 is irradiated. Thereafter, the determination unit 42 compares the ratio of the overexposed area in the rectangular image data S with a preset threshold value, and has the hue and saturation corresponding to the color temperature 6500K in the rectangular image data S. Whether or not the portion exists is detected, and the type of the cup C is determined based on the detection result and the previous comparison result.

本実施の形態では、予め2つの閾値が判定部42に設定してある。第1の閾値は、カップCが紙製カップChであるか否かの判定基準となるもので、矩形画像データSにおいて白飛びしている領域が80%と設定してある。第2の閾値(下限閾値)は、カップCが透明樹脂製カップCuであるか否かの判定基準となるもので、矩形画像データSにおいて白飛びしている領域が40%と設定してある。矩形画像データSにおいて白飛びしている領域の測定は、矩形画像データSを構成する画素のうち、RGB値が255,255,255となっている画素数をカウントすることによって算出しても良いし、矩形画像データSの平均輝度から白飛びしている領域の割合を導出するようにしても良い。RGB値が255,255,255となっている画素数をカウントする方法によれば、飲料ディスペンサ1が設置される環境等、外部環境の影響を受けることがない。従って、例えば、イタズラによってレーザーポインタからのレーザ光がカップCに照射されているような状況下においても、白飛びしている領域をより正確に測定することが可能となる。   In the present embodiment, two thresholds are set in the determination unit 42 in advance. The first threshold value is used as a criterion for determining whether or not the cup C is a paper cup Ch, and the area of the rectangular image data S which is overexposed is set to 80%. The second threshold value (lower threshold value) is used as a criterion for determining whether or not the cup C is a transparent resin cup Cu, and the area of the rectangular image data S which is overexposed is set to 40%. . The measurement of the overexposed area in the rectangular image data S may be performed by counting the number of pixels having RGB values of 255, 255, and 255 among the pixels constituting the rectangular image data S. Alternatively, the ratio of the overexposed area may be derived from the average luminance of the rectangular image data S. According to the method of counting the number of pixels whose RGB values are 255, 255, 255, there is no influence from the external environment such as the environment in which the beverage dispenser 1 is installed. Therefore, for example, even in a situation where the laser light from the laser pointer is irradiated on the cup C due to mischief, it is possible to more accurately measure the overexposed area.

上述の制御部40としては、例えば、CPU(Central Processing Unit)等の処理装置にプログラムを実行させること、すなわち、ソフトウェアにより実現しても良いし、IC(Integrated Circuit)等のハードウェアにより実現したり、ソフトウェア及びハードウェアを併用して実現することも可能である。   For example, the control unit 40 may be realized by causing a processing device such as a CPU (Central Processing Unit) to execute a program, that is, realized by software, or realized by hardware such as an IC (Integrated Circuit). Alternatively, it can be realized by using software and hardware together.

以下、制御部40の処理内容について説明し、併せて本願発明の特徴部分について詳述する。この飲料ディスペンサ1では、飲料選択ボタン3がオンされると、制御部40からの駆動信号により第1の投光部30及び第2の投光部32から供給ステージ2に対して光の照射が開始されるとともに、撮像部31によって供給ステージ2の撮像が行われる。さらに制御部40は、撮像部31の取得した画像データに基づき、判定部42を通じてカップCの種類(ここではカップC無しを含む)を判定する処理を実施する。   Hereinafter, the processing contents of the control unit 40 will be described, and the characteristic portions of the present invention will be described in detail. In the beverage dispenser 1, when the beverage selection button 3 is turned on, light irradiation from the first light projecting unit 30 and the second light projecting unit 32 to the supply stage 2 is performed by a drive signal from the control unit 40. At the same time, the imaging of the supply stage 2 is performed by the imaging unit 31. Further, the control unit 40 performs a process of determining the type of the cup C (here, including no cup C) through the determination unit 42 based on the image data acquired by the imaging unit 31.

具体的に説明すると、判定部42は、矩形画像データSにおいて白飛びしている領域が第1の閾値以上で、しかも6500Kに対応した色相及び彩度部分を検出しない場合、供給ステージ2に紙製カップChが載置されていると判定する。すなわち、紙製カップChの場合には、図4に示すように、第1の投光部30から照射された光がカップCの表面において反射する割合が高いため、図4(c)に示すように、矩形画像データSの大部分が白飛びしている状態となる。さらに、紙製カップChでは、第2の投光部32から照射された色温度6500Kの光が透過することがなく、撮像部31の取得したカップCの画像データに6500Kに対応した色相及び彩度を有した部分が現れることがない。従って、上述の検出結果の場合、判定部42は、供給ステージ2にカップCが載置され、かつ載置されたカップCが透明樹脂製カップCuではないと判定する。これにより、制御部40は、例えば飲料選択ボタン3によって選択された飲料がホット飲料であれば、そのまま飲料の供給を開始し、一方、飲料選択ボタン3によってコールド飲料が選択されている場合には、表示部4を介して供給する飲料とカップCとが合致していない旨のエラー表示を行うことができる。   More specifically, when the overexposed area in the rectangular image data S is equal to or larger than the first threshold value and the hue and saturation portion corresponding to 6500K is not detected, It is determined that the cup Ch is placed. That is, in the case of the paper cup Ch, as shown in FIG. 4, the ratio of the light emitted from the first light projecting unit 30 reflected on the surface of the cup C is high. Thus, most of the rectangular image data S is overexposed. Further, in the paper cup Ch, the light of the color temperature of 6500K emitted from the second light projecting unit 32 does not pass, and the hue and the color corresponding to the 6500K in the image data of the cup C acquired by the imaging unit 31 There is no part with a degree. Therefore, in the case of the above-described detection result, the determination unit 42 determines that the cup C is placed on the supply stage 2 and that the placed cup C is not the transparent resin cup Cu. Thus, for example, if the beverage selected by the beverage selection button 3 is a hot beverage, the control unit 40 starts supplying the beverage as it is, while if the cold beverage is selected by the beverage selection button 3, In addition, it is possible to display an error indicating that the beverage supplied via the display unit 4 does not match the cup C.

一方、判定部42は、矩形画像データSにおいて白飛びしている領域が第2の閾値以下で、しかも6500Kに対応した色相及び彩度部分を検出した場合、供給ステージ2にカップCが載置され、かつ載置されたカップCが透明樹脂製カップCuであると判定する。すなわち、透明樹脂製カップCuの場合には、図5に示すように、第1の投光部30から照射された光がカップCを透過し、表面において反射する割合が紙製カップChに対して低い。このため、図5(c)に示すように、矩形画像データSにおいて白飛びしている領域についても、紙製カップChより小さくなる。さらに、透明樹脂製カップCuでは、第2の投光部32から照射された色温度6500Kの光が透過するため、撮像部31の取得したカップCの画像データや内部の氷の画像データに6500Kに対応した色相及び彩度を有した部分が現れることになる。従って、上述の検出結果の場合には、供給ステージ2に載置されたカップCが判定部42によって透明樹脂製カップCuではあると判定される。これにより、制御部40は、例えば飲料選択ボタン3によって選択された飲料がコールド飲料であれば、そのまま飲料の供給を開始し、一方、飲料選択ボタン3によってホット飲料が選択されている場合には、表示部4を介して供給する飲料とカップCとが合致していない旨のエラー表示を行うことができる。   On the other hand, the determination unit 42 places the cup C on the supply stage 2 when the overexposed area in the rectangular image data S is equal to or less than the second threshold value and detects the hue and saturation portion corresponding to 6500K. It is determined that the placed cup C is the transparent resin cup Cu. That is, in the case of the transparent resin cup Cu, as shown in FIG. 5, the ratio of the light emitted from the first light projecting unit 30 transmitted through the cup C and reflected on the surface is higher than that of the paper cup Ch. Low. For this reason, as shown in FIG. 5 (c), the area of the rectangular image data S which is overexposed is smaller than the paper cup Ch. Further, in the transparent resin cup Cu, the light having a color temperature of 6500K emitted from the second light projecting unit 32 is transmitted, so that the image data of the cup C obtained by the imaging unit 31 and the image data of the internal ice are stored at 6500K. Will appear with a hue and a saturation corresponding to. Therefore, in the case of the above-described detection result, the cup C placed on the supply stage 2 is determined by the determination unit 42 to be the transparent resin cup Cu. Thus, for example, if the beverage selected by the beverage selection button 3 is a cold beverage, the control unit 40 starts supplying the beverage as it is, while if the hot beverage is selected by the beverage selection button 3, In addition, it is possible to display an error indicating that the beverage supplied via the display unit 4 does not match the cup C.

因に、矩形画像データSに白飛びしている領域がない場合、判定部42は、カップCが載置されていないと判定する。従って、制御部40は、例えば表示部4を通じてカップCがない旨のエラー表示を行うことができる。また、矩形画像データSにおいて白飛びしている領域が第1の閾値未満、かつ第2の閾値を上回っている場合、つまり白飛びしている領域が40%を超え、かつ80%未満の場合には、カップCを載置する位置の修正が必要である旨のエラー表示を行うようにしても良い。   If there is no overexposed area in the rectangular image data S, the determination unit 42 determines that the cup C is not placed. Therefore, the control unit 40 can display an error indicating that there is no cup C through the display unit 4, for example. Further, when the overexposed area in the rectangular image data S is less than the first threshold value and exceeds the second threshold value, that is, when the overexposed area exceeds 40% and is less than 80% In such a case, an error message may be displayed to the effect that the position for placing the cup C needs to be corrected.

以上説明したように、上述の飲料ディスペンサ1では、カップCの表面に光を照射した場合の白飛びする領域が紙製カップChと透明樹脂製カップCuとで異なる性質を利用し、さらにはカップCに光を照射した場合の透光性が紙製カップChと透明樹脂製カップCuとで異なる性質を利用して両者の違いを判定するようにしているため、供給ステージ2の載置面21aに載置されたカップCが透明であるか否かを精度良く判定することが可能となる。これにより、例えば透明樹脂製カップCuにホット飲料を供給してしまう事態を招来するおそれがなくなる等の利点がある。   As described above, in the beverage dispenser 1 described above, the overexposed area when the surface of the cup C is irradiated with light utilizes the different property between the paper cup Ch and the transparent resin cup Cu. Since the difference in light transmissivity between the paper cup Ch and the transparent resin cup Cu when light is applied to C is determined by utilizing the different properties, the mounting surface 21a of the supply stage 2 is used. It is possible to accurately determine whether or not the cup C placed on the tray is transparent. Accordingly, there is an advantage that, for example, there is no possibility that a hot beverage is supplied to the transparent resin cup Cu.

なお、上述した実施の形態では、撮像部31の取得した画像データに含まれる白飛びしている領域の大小に基づく判定と、第2の投光部32からの透過光の有無に基づく判定とによってカップCが透明であるか否かを判定するようにしているため、より精度の高い判定を行うことができる。しかしながら、本発明はこれに限定されず、撮像部31の取得した画像データに含まれる白飛びしている領域の大小だけからカップCの種類を判定しても良いし、第2の投光部32からの透過光の有無だけからカップCが透明であるか否かを判定するようにしても良い。白飛びしている領域の大小だけからカップCの種類を判定する場合には、第1の投光部30と第2の投光部32とで色温度を一致させても構わない。また、第1の投光部30と第2の投光部32とで色温度が異なるように設定する場合に上述した実施の形態では、第2の投光部32の色温度を第1の投光部30よりも高く設定しているが、逆の態様で色温度が異なるように設定しても良い。さらに、白飛びしている領域の大小に基づいてカップCの種類を判定する場合に予めコントラスト及び輝度を変更する画像処理を行っているため、判定精度の点で有利となるが、必ずしも画像処理を行う必要はない。   In the above-described embodiment, the determination based on the size of the overexposed area included in the image data acquired by the imaging unit 31 and the determination based on the presence or absence of the transmitted light from the second light emitting unit 32 It is determined whether the cup C is transparent or not, so that a more accurate determination can be made. However, the present invention is not limited to this, and the type of the cup C may be determined only from the size of the overexposed area included in the image data acquired by the imaging unit 31, or the second light emitting unit may be determined. Whether or not the cup C is transparent may be determined based only on the presence or absence of the transmitted light from 32. When determining the type of the cup C only from the size of the overexposed area, the color temperatures of the first light projecting unit 30 and the second light projecting unit 32 may be matched. In the above-described embodiment, when the color temperature is set to be different between the first light projecting unit 30 and the second light projecting unit 32, the color temperature of the second light projecting unit 32 is set to the first temperature. Although it is set higher than the light projecting unit 30, the color temperature may be set differently in the reverse manner. Further, when the type of the cup C is determined based on the size of the overexposed area, the image processing for changing the contrast and the brightness is performed in advance, which is advantageous in terms of determination accuracy. No need to do.

また、上述した実施の形態では、下限閾値である第2の閾値の他に第1の閾値を設定し、白飛びしている領域がこの第1の閾値以上の場合に紙製カップであると判定するようにしているが、必ずしも第1の閾値は設ける必要はなく、第2の閾値を超えた場合に透明カップでないと判定しても良い。   Further, in the above-described embodiment, the first threshold is set in addition to the second threshold, which is the lower limit threshold, and when the overexposed area is equal to or greater than the first threshold, it is determined that the cup is a paper cup. Although the determination is made, it is not always necessary to provide the first threshold, and it may be determined that the cup is not a transparent cup when the value exceeds the second threshold.

さらに、上述した実施の形態では、検出対象となるカップCを供給ステージ2の載置面21aに載置させるようにしているが、本発明はこれに限定されず、ハンドに挟持された状態のカップCを検出対象とすることも可能である。なお、第1の投光部30、第2の投光部32及び撮像部31が設けられる側壁23L,23Rについては、供給ステージ2に載置されたカップCの両側において互いに平行となるように配設してあっても良い。さらに、透明樹脂製カップCuとの判定対象となる不透明のカップとして白色の紙製カップChを例示しているが、必ずしも白色である必要はなく、また不透明であれば必ずしも紙製である必要もない。また、制御部40によるカップの判定結果に基づいて表示部4及び飲料供給部5の制御を行うようにしているが、必ずしもこれに限定されない。   Furthermore, in the above-described embodiment, the cup C to be detected is placed on the placement surface 21a of the supply stage 2, but the present invention is not limited to this, and the cup C is held by the hand. It is also possible to make the cup C a detection target. Note that the side walls 23L and 23R on which the first light projecting unit 30, the second light projecting unit 32, and the imaging unit 31 are provided are parallel to each other on both sides of the cup C placed on the supply stage 2. It may be provided. Furthermore, a white paper cup Ch is illustrated as an example of an opaque cup to be determined as a transparent resin cup Cu, but it is not necessarily white, and if it is opaque, it is not necessary to be made of paper. Absent. In addition, the display unit 4 and the beverage supply unit 5 are controlled based on the determination result of the cup by the control unit 40, but the present invention is not necessarily limited to this.

1 飲料ディスペンサ
2 供給ステージ
3 飲料選択ボタン
4 表示部
5 飲料供給部
21 載置板
21a 載置面
22 後壁
23L,23R 側壁
24 天壁
30 第1の投光部
31 撮像部
32 第2の投光部
40 制御部
41 画像処理部
42 判定部
Cu 透明樹脂製カップ
Ch 紙製カップ
S 矩形画像データ
DESCRIPTION OF SYMBOLS 1 Beverage dispenser 2 Supply stage 3 Beverage selection button 4 Display part 5 Beverage supply part 21 Placement board 21a Placement surface 22 Rear wall 23L, 23R Side wall 24 Top wall 30 1st light projection part 31 Imaging part 32 Second projection Light unit 40 Control unit 41 Image processing unit 42 Judgment unit Cu Transparent resin cup Ch Paper cup S Rectangular image data

Claims (5)

供給ステージに配置されたカップを検出するカップ検出装置であって、
カップの表面に光照射を行う投光部と、
前記カップの表面において前記投光部からの光の反射領域を撮像する撮像部と、
前記撮像部の取得した画像データにおける白飛びしている領域が予め設定した下限閾値以下の場合にカップが透明であると判定する判定部と
を備えたことを特徴とするカップ検出装置。
A cup detection device for detecting a cup disposed on a supply stage,
A light emitting unit that irradiates light to the surface of the cup,
An imaging unit configured to image a reflection area of light from the light emitting unit on the surface of the cup;
A determination unit that determines that the cup is transparent when the overexposed area in the image data acquired by the imaging unit is equal to or less than a preset lower limit threshold.
前記判定部は、前記撮像部の取得した画像データにおいて白飛びしている画素数をカウントすることによって白飛びしている領域を測定することを特徴とする請求項1に記載のカップ検出装置。   2. The cup detection device according to claim 1, wherein the determination unit measures an overexposed area by counting the number of overexposed pixels in the image data acquired by the imaging unit. 3. 前記判定部は、前記撮像部の取得した画像データの平均輝度に基づいて白飛びしている領域を測定することを特徴とする請求項1に記載のカップ検出装置。   The cup detection device according to claim 1, wherein the determination unit measures an overexposed area based on an average luminance of the image data acquired by the imaging unit. 前記判定部は、白飛びしている領域を測定する以前に、前記撮像部の取得した画像データに対してコントラストを上げる処理を施した後、輝度を下げる処理を施すことを特徴とする請求項2または請求項3に記載のカップ検出装置。   The method according to claim 1, wherein the determining unit performs a process of increasing a contrast on the image data acquired by the imaging unit before measuring the overexposed area, and then performs a process of reducing the luminance. The cup detecting device according to claim 2 or 3. 供給ステージに配置されたカップを検出するカップ検出装置であって、
カップの表面に光照射を行う第1の投光部と、
第1の投光部とは異なる方向からカップに対して第1の投光部とは異なる色温度の光照射を行う第2の投光部と、
カップの表面において第1の投光部からの光の反射領域を撮像するとともに、第2の投光部からの光の透過領域を撮像する撮像部と、
前記撮像部の取得した画像データにおける白飛びしている領域が予め設定した下限閾値を下回り、かつ前記第2の投光部からの透過光を検出した場合にカップが透明であると判定する判定部と
を備えたことを特徴とするカップ検出装置。
A cup detection device for detecting a cup disposed on a supply stage,
A first light emitting unit that irradiates light to the surface of the cup;
A second light emitting unit that irradiates the cup with light having a color temperature different from that of the first light emitting unit from a direction different from the first light emitting unit;
An imaging unit configured to image a reflection area of light from the first light emitting unit on a surface of the cup and image a transmission area of light from the second light emitting unit;
The determination that the cup is transparent when the overexposed area in the image data obtained by the imaging unit is below a lower limit threshold set in advance and when the transmitted light from the second light emitting unit is detected. A cup detection device, comprising:
JP2018220911A 2018-11-27 2018-11-27 Cup detector Active JP6673447B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2018220911A JP6673447B1 (en) 2018-11-27 2018-11-27 Cup detector
PCT/JP2019/045882 WO2020110971A1 (en) 2018-11-27 2019-11-22 Cup detection device and beverage supply device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018220911A JP6673447B1 (en) 2018-11-27 2018-11-27 Cup detector

Publications (2)

Publication Number Publication Date
JP6673447B1 true JP6673447B1 (en) 2020-03-25
JP2020085669A JP2020085669A (en) 2020-06-04

Family

ID=70000880

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018220911A Active JP6673447B1 (en) 2018-11-27 2018-11-27 Cup detector

Country Status (1)

Country Link
JP (1) JP6673447B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7205124B2 (en) * 2018-09-14 2023-01-17 富士電機株式会社 Beverage supply device and sensor abnormality detection method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5443164A (en) * 1993-08-10 1995-08-22 Simco/Ramic Corporation Plastic container sorting system and method
JPH09117727A (en) * 1995-10-24 1997-05-06 Shinko Electric Co Ltd Recognizing device for transparent bottle
EP2745098A4 (en) * 2011-08-19 2015-04-01 Ind Machinex Inc Apparatus and method for inspecting matter and use thereof for sorting recyclable matter
JP2017159941A (en) * 2016-03-10 2017-09-14 パナソニックIpマネジメント株式会社 Beverage dispenser
JP2019101508A (en) * 2017-11-28 2019-06-24 パナソニックIpマネジメント株式会社 Beverage supply system
JP6716133B2 (en) * 2018-04-10 2020-07-01 株式会社アクセル Recognition processing device, recognition processing method, and recognition processing program

Also Published As

Publication number Publication date
JP2020085669A (en) 2020-06-04

Similar Documents

Publication Publication Date Title
US8658975B2 (en) Image sensor for measuring illumination, proximity and color temperature
JP5432911B2 (en) Ambient light level detection in vision systems
US20220108096A1 (en) Fake finger determination apparatus and fake finger determination method
US9449561B1 (en) Light sensor obstruction detection
TW201709724A (en) Method and apparatus for determining a depth map for an image
TW200622219A (en) Uniformity and brightness measurement in oled displays
US20190019049A1 (en) Character/graphics recognition device, character/graphics recognition method, and character/graphics recognition program
TW201144964A (en) Portable electronic device
TWI496057B (en) Optical touch system and touch sensing method
US9931027B2 (en) Video processor
US20190011560A1 (en) Distance measurement apparatus and angle adjustment method of the same
JP6673447B1 (en) Cup detector
US20090146044A1 (en) Optical displacement detection apparatus and optical displacement detection method
TW200819770A (en) Adjustable illumination apparatus and AOI system using the same
US20160131598A1 (en) Detection system for detecting a soldered joint
US9218655B2 (en) Brightness measuing method and system of device with backlight
JP6011173B2 (en) Pupil detection device and pupil detection method
US20230324218A1 (en) Ambient radiation sensing
JP6631281B2 (en) Interactive projector and its auto-calibration execution method
WO2020110971A1 (en) Cup detection device and beverage supply device
JP2022053871A (en) Distance measuring sensor and distance measuring method
CN106576136A (en) Imaging device, actuation method for imaging device
US11875602B2 (en) Display device modifications
JP2012215399A (en) Displacement sensor system and displacement sensor
TWI822279B (en) Detection method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20191011

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20191119

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200115

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200217

R150 Certificate of patent or registration of utility model

Ref document number: 6673447

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250