DEVICE, METHOD AND BEVERAGE DISPENSER FOR DETERMINING THE VOLUME OF A CONTAINER
Patent Information
- Application Number
- DE502022001391
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-05-18
- Filing Date
- 2022-05-16
- Publication Date
- 2024-08-29
- Estimated Expiration
- 2042-05-16
AI Technical Summary
Existing drinks vending machines struggle to accurately fill containers of varying sizes, often leading to overfilling or underfilling due to the inability to determine the volume of unknown or changing container dimensions, which results in customer dissatisfaction and inefficiencies, especially in 'bring your own cup' systems.
A device that projects two lines of light onto a container, allowing an image recording unit to detect the light lines and determine the internal contour and center line of the container, calculating its volume without prior knowledge of the container's dimensions, using a body of revolution created by rotating the inner contour line around the center line.
Enables accurate determination of container volume, preventing overflow and underfilling, allowing for precise dispensing of beverages regardless of container size, improving customer satisfaction and operational efficiency.
Description
[0001] The present invention relates to a device, a method and a beverage vending machine for determining a volume of a container, in particular a beverage container.
[0002] Vending machines typically dispense a predetermined amount of beverage into beverage containers such as cups, mugs, or glasses. These types of vending machines often only allow the use of beverage containers with a volume that corresponds to the vending machine's predetermined dispensing volume. If beverage containers with volumes that are too small are used, this can lead to the beverage overflowing. On the other hand, if beverage containers with very large volumes are used, it can happen that the respective beverage container is only partially filled with the beverage. This can lead to dissatisfaction, for example among customers.
[0003] There are various beverage vending machines in the state of the art that estimate the volume of the beverage container in order to adjust the dispensed amount of beverage to the volume of the beverage container. For example, DE 10 2014 217 840 B4 discloses a beverage vending machine that determines the fill level of the beverage container. If the dimensions of the beverage container are known, for example, if the vending machine provides beverage containers, the volume to be dispensed by the vending machine can be calculated from the liquid height. With changing or unknown beverage containers, the beverage volume can at best only be estimated.
[0004] The publication US 2019 / 0 062 137 A1 describes a system for generating a three-dimensional model of a beverage container before filling it with a liquid. The internal volume of the beverage container is determined based on the three-dimensional model.
[0005] Document DE 10 2018 113 933 A1 discloses a method for determining a parameter of a beverage container using a distance sensor. In the method, the distance of a point on the surface of the beverage container to the distance sensor is determined in one measurement. Using several such distance measurements, parameters of the beverage container can be determined.
[0006] The document DE 10 2014 017 490 A1 describes a device for detecting the size of a fillable container. The size is determined using several reflective light barriers arranged above and to the sides of the fillable container.
[0007] In commercial catering, paying customers are expected to receive a correctly filled cup. To achieve this, a predefined amount can be dispensed based on the selected product, or, if cup recognition is possible using weight or optical sensors, an amount corresponding to the cup. Dispensing an amount based on the recognized cup is relatively easy, as the same tableware is always used in the catering industry. In this case, for example, an espresso cup and a cappuccino cup always have the same volume. The same applies to catering areas where customers order their drink to-go and where, for example, cups in the predefined sizes SM - L are used.
[0008] When it comes to coffee or other hot beverages in offices, each or many users typically use their own cups of varying volume. This is where existing systems reach their limits or are unable to handle these cups at all. Furthermore, disposable cups are being gradually banned in the "to-go" sector for environmental reasons. Therefore, "bring your own cup" systems are already emerging, allowing customers to bring their own beverage containers and have them filled on-site to comply with existing or future legal requirements.
[0009] Because the beverage containers vary from drink to drink, correct filling without underfilling or overfilling (overflowing the container) is impossible. Even when using familiar beverage containers, incorrect filling of the beverage container (overfilling, underfilling, or past the cup) can occur, for example, due to the use of an incorrect cup type or positioning.
[0010] It is therefore the object of the present invention to at least partially solve the aforementioned problems.
[0011] This problem is solved at least in part by the subject matter of the independent patent claims. Further developments are described in the following description and in the dependent claims.
[0012] Accordingly, a device for determining the volume of a container, in particular a beverage container, is proposed. The device comprises: a horizontal installation surface for placing the container, a projection device which is designed to project two light lines onto the installation surface and the container placed thereon, an image recording unit which is directed onto the installation surface at an angle to the projection device and is designed to capture the container and the light lines projected by the projection device, and an evaluation unit which is designed to determine at least one inner contour line of the container and a center line of the container based on the recorded light lines, and to determine the volume of the container based on a rotation body which is created by rotating the inner contour line around the center line.
[0013] The device can therefore be used to determine the volume of a container. The device does not require any prior knowledge of the container's dimensions to determine the volume. Therefore, the device is suitable, for example, for applications where the volume of the container changes frequently or is unknown. The internal volume can be determined based solely on an internal contour line, advantageously using only two light lines. For example, it is not necessary to capture a complete 3D model of the container. The term "volume" used below refers to the "internal volume" or "fill quantity" of the container.
[0014] A Cartesian coordinate system with x, y, and z coordinates can be defined. The z coordinate is typically parallel to gravity. The horizontal support surface is usually parallel to an xy plane.
[0015] In one embodiment, the light lines are aligned at an angle to one another. The light lines can, for example, be aligned at an angle of at least 15°, for example at least 45°, in particular at least 75° and / or at most 175°, for example at most 135°, in particular at most 105°, for example approximately 90°. Optionally, it can be provided that the light lines intersect one another. A point of intersection of the light lines can be used to calibrate the device, in particular the image recording unit (see figure description). The point of intersection of the light lines can also be used as a positioning aid for correctly placing the container on the installation surface (see below). However, said point of intersection is optional and can be omitted in some embodiments even with light lines arranged at an angle to one another. Alternatively, the light lines can be aligned parallel to one another.Each light line can be designed as a continuous line without interruptions. Irrespective of this, the light lines can be less than 5 mm, preferably less than 2 mm, and particularly preferably less than 1 mm wide. The length of the light line is preferably longer than 5 cm, particularly preferably longer than 10 cm, and / or preferably shorter than 40 cm, particularly preferably shorter than 20 cm.
[0016] The evaluation unit can be designed to determine the light points of the light lines generated on an upper container edge and to determine the center line of the container based on the light points.
[0017] Since the container edge typically has a relatively narrow, finite width, the portion of the respective light line projected there can be approximately considered a light spot. The projection device can be configured such that at least one of the two light lines creates two light spots on opposite sides of the container edge and / or that each projected light line creates at least one light spot on the container edge and / or that each projected light line creates two light spots on opposite sides of the container edge.
[0018] The evaluation unit can be further developed to determine three light points generated on the upper edge of the container, which form a triangle, and to determine the center line of the container over a circumcircle of the triangle.
[0019] The light points generated on the upper container rim can thus form the vertices of an imaginary triangle. The circumcircle of the triangle coincides at least approximately with the container rim. A center point of the circumcircle can therefore be used to determine the center point of the container rim. The surrounding container rim usually forms the highest elevation of the container geometry. A line that intersects the center point of the container rim and is perpendicular to a base surface of the container can then form the center point line. In other words, the center point of the container rim can be extended in the vertical direction as a line to form the center point line.
[0020] Alternatively, the intersection point of the light lines can be used as the starting point for the center point of the container. This requires that the user places the container on the installation surface so that a center point of the base of the container coincides with the intersection point. The center point of the base or the intersection point can then be extended vertically as a line perpendicular to the base to form the center point. As a positioning aid, a marking can be provided in the center of the base of the container, for example in the form of a dot or crosshairs. Alternatively or additionally, one or more markings can also be provided on the installation surface as a positioning aid.
[0021] The angle of the image recording unit to the projection device, or the angle of the optical axis of the image recording unit to the optical axis of the projection device, can in principle be greater than 0° and / or less than 90°. For example, the said angle can be at least 2°, in particular at least 5° and / or at most 45°, for example at most 30°, preferably at most 10°. In some embodiments, the optical axis of the image recording unit and the optical axis of the projection device are offset in parallel, for example in the y-direction. Often, the two said optical axes are aligned parallel to the same plane. The optical axis of the image recording unit can, for example, be aligned parallel to an xz plane. Furthermore, the optical axis of the projection device can be aligned parallel to the xz plane.For example, the parallel offset of said optical axes is equal to 0 mm or at least 0 mm, in particular at least 5 and / or at most 300, in particular at most 50 mm.
[0022] In some embodiments, the light lines have a wavelength and / or a wavelength range in the visible spectrum, wherein the visible spectrum includes wavelengths between 400 nm and 700 nm. The wavelength or wavelength range can, for example, be at least 600 nm and / or at most 700 nm.
[0023] The light lines emitted by the projection device are typically straight lines of light. Due to the often curved shape of the container, the lines projected onto the container can have straight and / or curved sections. In principle, any projector capable of projecting light lines recognizable by the image recording unit can be used as a projection device. Due to the linear shape of the light, at least one laser is particularly suitable, preferably at least one line laser, in particular a cross laser module. Lasers generally have a high degree of accuracy and can deliver a high-contrast image, so that the projected light lines can be reliably and accurately detected. Furthermore, due to their small dimensions, which are now possible, lasers can be easily accommodated in the area of the beverage outlet on the vending machine.Thus, the projection device can comprise at least one line laser and / or a cross laser module designed to generate the light lines. Other suitable strip light sources are also possible, including, for example, LEDs or luminaires.
[0024] According to a further embodiment, a camera such as a CCD camera can be provided as the image acquisition unit. This enables highly precise detection of the light lines. Such cameras can be miniaturized to such an extent that they capture a sufficiently resolved image despite their small dimensions.
[0025] The evaluation unit can be further configured to determine two inner contour lines of the container based on the recorded light lines and to determine a solid of revolution for each inner contour line, whereby the volume of the container is determined by averaging the two solids of revolution. Advantageously, therefore, at most or only two inner contour lines are determined to determine the inner volume. Therefore, the acquisition of a three-dimensional model of the container is not necessary to determine the inner volume. This can increase the accuracy of the volume determination and / or reduce the complexity of the method and / or the device for volume determination.
[0026] One or more inner contour lines of the container can be determined by the evaluation unit from a maximum of three or preferably a maximum of two images taken by the camera.
[0027] For example, it is conceivable to first capture an image for background comparison without light lines. Such an image can be captured regardless of whether the container is already in the device or not. A first light line can then be projected onto the container and a second image captured. Subsequently, the second light line could be projected onto the container and a third image captured. Based on these three images, the inner contour lines can then be determined. It is also conceivable to capture a first image without projected light lines for background comparison, contrast comparison, or brightness adjustment and to capture both projected light lines simultaneously in a second image.
[0028] It is also conceivable to simultaneously capture the two projected light lines in a first image without a container being present in the device. The container can then be placed in the device, and the light lines projected onto the container can be captured in a second image. Advantageously, both inner contour lines can also be determined from a single image of the light lines projected onto the container, captured by the camera.
[0029] In one embodiment, the evaluation unit is designed to determine a dispensing quantity and / or a preparation recipe for a beverage to be filled into the container based on the determined volume of the container. For example, the result of the volume determination can influence the amount of a beverage ingredient to be added. Thus, containers can be automatically dosed correctly regardless of their size. Overflow can therefore be prevented. If the amount of beverage ingredient, e.g., the amount of beans used for brewing coffee or ground coffee, is adjusted to the volume of the container, this can contribute to cost savings and an improvement in the quality of the beverage, e.g., the coffee.
[0030] The device can be used to determine the volume of an empty container or the residual volume of a container at least partially filled with liquid. The residual volume here refers to the volume difference between an empty container and the container at least partially filled with liquid. This allows the amount of liquid present in the container or dispensed into the container to be monitored.
[0031] The determination of the volume of the container mentioned in this document can therefore refer to the determination of the volume of an empty container or to the determination of the residual volume of a container at least partially filled with liquid.
[0032] By determining the residual volume, for example, the amount of liquid in the container can be determined and / or monitored during beverage dispensing, cleaning, maintenance, and / or descaling. If the residual volume falls below a certain value, the device can be configured to issue a warning.
[0033] The evaluation unit can thus be configured to determine the remaining volume of a container at least partially filled with liquid. In this case, the projection device projects the light lines onto the support surface and the container placed thereon, which is at least partially filled with the liquid. The image recording unit then captures the at least partially filled container and the light lines projected by the projection device.
[0034] By measuring the volume of the empty container and then measuring the volume of the container at least partially filled with liquid, the evaluation unit can also be configured to determine the amount of liquid currently present in the container by comparing the two volume measurements. The volume measurement can be performed before, after, and / or during the filling of the container with liquid.
[0035] The evaluation unit can also be configured to compare the amount of liquid in the at least partially filled container with a dispensing amount. The dispensing amount can, for example, correspond to the amount of liquid provided and dispensed by a beverage preparation unit and / or a cleaning unit. If the amount of liquid in the container deviates from the dispensing amount by a predetermined factor or a predetermined amount, the evaluation unit can be configured to issue a warning. For example, blockages, leaks, or liquid leaks can occur, causing the amount of liquid entering the container to deviate from the dispensing amount provided by the beverage preparation unit and / or the cleaning unit.
[0036] Furthermore, the measured amount of liquid in the container can be used to calibrate a volume flow. This allows the time required to fill the container with the amount of liquid to be measured, e.g., using a time measurement unit. Knowing the time and the amount of liquid, the evaluation unit can then calculate or calibrate the volume flow in terms of amount of liquid / time.
[0037] Furthermore, the dosage of the liquid can be monitored. For example, if at least two different liquids are filled into the container in different amounts one after the other, the evaluation unit can monitor the individual amounts of the different liquids by measuring the remaining volume of the container or the amount of liquid in the container after each partial filling. This allows the individual amounts of coffee, milk, and milk foam to be monitored when preparing a latte macchiato or cappuccino. This way, dosage fluctuations can be reduced or even avoided.
[0038] Determining the residual volume of a container at least partially filled with liquid can be particularly successful if the liquid sufficiently reflects the light projected by the projection device and / or is sufficiently opaque to this light. The term "sufficient" here can mean that a certain threshold value is to be exceeded. Examples of liquids include coffee, milk, cleaning fluid, dishwater, liquids with a foam layer such as espresso, cappuccino, or dishwater, and / or mixtures of these liquids. Since the light lines strike the liquid and are reflected there, the residual volume of the container that can still be filled with liquid is measured in this case.
[0039] Furthermore, the evaluation unit can be configured to compare the volume of the container determined by the evaluation unit with the volumes of previously known containers. If the measured volume deviates from all volumes of previously known containers, for example, an incorrectly positioned container or the use of an incorrect container type can be detected. In this case, a corresponding warning can be issued or the dispensed amount of liquid can be adjusted.
[0040] The device may further comprise a control unit. The control unit may be connected to the projection device, the image capture unit, and / or the evaluation unit for communication and control. The control unit may also be connected to a beverage preparation unit and / or a cleaning unit for control and / or communication with them. Communication between the various units may be implemented, for example, via signal lines or wirelessly, such as via Bluetooth or WLAN. The results of the evaluation unit may be used by the control unit to control the projection device, the image capture unit, the beverage preparation unit, and / or the cleaning unit.Thus, the control unit can be designed to control a beverage quantity and / or a beverage recipe depending on the specific volume of the container and / or the specific residual volume of the container at least partially filled with liquid.
[0041] In principle, a wide variety of container shapes, e.g., cylindrical or conical, can be measured. The volume is generally determined under the assumption that the container is rotationally symmetrical about its center axis or center line. A container diameter, measured from a base to the container rim, can generally remain constant and / or increase, at least in some sections. The container can have its largest diameter, particularly in the area of the upper container rim. Furthermore, the container rim can extend essentially horizontally and / or be flat, with the container rim, in particular, forming the highest point of the container.
[0042] The material of the container should be designed to reflect the light sufficiently so that the light lines can be reliably detected. The proportion of light reflected by the container should be greater than the proportion of light absorbed by the container and / or the proportion of light transmitted through the container. Both diffuse reflection and specular reflection are considered here. It is also advantageous if the proportion of diffuse reflection exceeds the proportion of specular reflection, e.g., by at least twice as much. Suitable materials for the container are, for example, at least predominantly opaque and / or matte materials such as ceramic, cardboard, wood, plastic and / or metal, preferably metal with a matte surface.It can also be provided that the container has a coating that is opaque to light and / or a diffusely reflecting matt coating and / or a corresponding surface treatment that is opaque or diffusely reflecting, e.g. made of one of the above materials.
[0043] The container is designed in particular for filling liquids. In some embodiments, the container can be a beverage container such as a cup, mug, disposable cup, or reusable cup. With an appropriate coating or surface treatment (see above), the beverage container can also be made of glass. The container can also be a cleaning container, maintenance container, or descaling container. This can be helpful if a beverage vending machine equipped with the previously described device needs to be cleaned, maintained, and / or descaled.
[0044] The horizontal mounting surface can be designed to absorb and / or diffusely reflect the projected light. For this purpose, the mounting surface can be made of absorbing or diffusely reflecting materials or have a corresponding coating. This can increase the contrast of the recorded images.
[0045] Furthermore, the present invention provides a method for determining the volume of a container, in particular a beverage container. The method comprises at least the following steps: Projecting two light lines onto a horizontal surface and the container placed thereon; taking an image of the container with the light lines projected onto it and / or taking a maximum of three images of the container in which the light lines projected onto the container are captured; determining an inner contour line of the container and a center line of the container based on the positions of the light lines on the container; and determining the volume of the container based on a body of revolution created by rotating the inner contour line around the center line.
[0046] The procedure may additionally include the following steps: Determining light points projected onto an upper container edge; and determining the center line of the container from the light points.
[0047] The light lines can be extracted from the image by contrast comparison. Additionally, another image of the container without the light lines can be taken. Using this additional image, the ambient brightness can be determined, which can then be used for contrast comparison or brightness adjustment.
[0048] One or more inner contour lines of the container can be determined by the evaluation unit from a maximum of three or preferably a maximum of two images taken by the camera.
[0049] For example, it's conceivable to first capture an image for background comparison without light lines. Such an image can be captured regardless of whether the container is already in the device or not.
[0050] A first light line can then be projected onto the container, and a second image captured. The second light line could then be projected onto the container, and a third image captured. Based on these three images, the inner contour lines can then be determined. It is also conceivable to capture a first image without projected light lines for background comparison, contrast comparison, or brightness adjustment, and to capture both projected light lines simultaneously in a second image.
[0051] It is also conceivable to simultaneously capture the two projected light lines in a first image without a container being present in the device. The container can then be placed in the device, and the light lines projected onto the container can be captured in a second image. Advantageously, both inner contour lines can also be determined from a single image of the light lines projected onto the container, captured by the camera.
[0052] The method can be carried out in particular with the device described above.
[0053] Furthermore, a beverage vending machine for determining the volume of a container is provided. The beverage vending machine is particularly designed to carry out the aforementioned method. Furthermore, the beverage vending machine can comprise the above-mentioned device for determining the volume of a container.
[0054] Typically, the beverage vending machine includes a beverage outlet for dispensing a beverage. The beverage is dispensed in the direction of gravity along a z-axis of a Cartesian coordinate system. The projection device can be arranged between the beverage outlet and the image capture unit, for example, in a horizontal direction perpendicular to the z-axis between the beverage outlet and the image capture unit. The beverage vending machine can have the beverage preparation unit and / or the cleaning unit described above.
[0055] Features described only in connection with the device or the beverage dispenser can also be claimed with the method, and vice versa. Likewise, features described only in connection with the device can be claimed with the beverage dispenser, and vice versa.
[0056] The device, the method and the beverage vending machine of the proposed type can therefore enable and / or improve the volume determination of a container.
[0057] Embodiments of the present invention are explained with reference to the accompanying figures. They show: Fig. 1 is a schematic representation of a beverage dispenser for determining a volume of a container in a side view; Fig. 2 is a schematic representation of the beverage dispenser of the Fig. 1 in a front view; Fig. 3 a schematic representation of a container placed on a support surface in a perspective view; Fig. 4 a schematic representation of a container placed on a support surface in a plan view; Fig. 5 a schematic representation of the container of the Fig. 4 in a perspective view; and Fig. 6 a model of a cross-section of a container, which can be used to determine the volume of the container.
[0058] Here and in the following, features that recur in various figures are designated by the same or similar reference symbols.
[0059] The Fig. 1 shows a schematic representation of a drinks machine 1 in a side view. The Fig. 2 shows a schematic representation of the beverage dispenser 1 in a front view. The beverage dispenser 1 can be configured, for example, to dispense hot beverages and, as such, can be, for example, a fully automatic coffee machine or a coffee machine. The beverage dispenser 1 shown can alternatively or additionally be designed to dispense cold or lukewarm beverages.
[0060] The beverage vending machine 1 has a beverage outlet 3, which is typically fluidically connected to a pump and a fluid reservoir. The beverage outlet 3 is typically arranged between a front side 22 and a rear side 23 of the beverage vending machine. During operation of the beverage vending machine 1, the beverage outlet 3 dispenses a beverage vertically in the direction of gravity and thus along a z-axis of a Cartesian coordinate system into a beverage container 5. The pump and the fluid reservoir can be part of a beverage preparation unit 40. A user interface 50 connected to the beverage preparation unit 40 and configured as an input unit can be provided, via which a user can select and enter their desired beverage and / or their desired preparation recipe.
[0061] The beverage vending machine 1 has a device 2 designed to determine the volume of the beverage container 5. A horizontal support surface 4 for placing the beverage container 5 is provided, which extends parallel to an xy plane. In some embodiments, the support surface 4 can be designed as a drip tray.
[0062] The device 2 further comprises a projection device 10, an image recording unit 20 and an evaluation unit 24.
[0063] The projection device 10 is designed to generate two straight light lines 12, 13 and to project them onto the support surface 4 and the beverage container 5 placed thereon. For this purpose, the projection device typically has a cross laser module that generates the light lines 12, 13. Two separate line lasers can also be provided to generate the light lines 12, 13. Line lasers typically fan out laser beams to generate the light lines 12, 13, whereby the fanning out of the laser beam in a line laser can be achieved, for example, by refraction and / or diffraction. A lens such as a cylindrical lens can be used for the refraction. Diffraction usually occurs at an optical grating. Alternatively, another strip light source, for example in the form of an LED or lamp, can be provided, which is designed to generate the light lines 12, 13 via suitable optics.
[0064] The projection device 10 typically generates visible light with a wavelength between 400 nm and 700 nm, in particular between 600 nm and 700 nm. This allows a user to easily determine whether the projection device 10 is functioning or currently operating. However, parts of the electromagnetic spectrum that are invisible to the user can also be used, e.g., in the IR range of the electromagnetic spectrum. In this case, the detection process can occur unnoticed by the user, making it difficult, for example, for the user to manipulate the device during detection.
[0065] The light lines 12, 13 generated by the projection device 10 are generally aligned at an angle to one another. For example, the light lines 12, 13 are aligned at an angle α of at least 45° and / or at most 135°. In the illustrated embodiment, the angle α is approximately 90°. Furthermore, the light lines 12, 13 can intersect at an intersection point 14. The intersection point 14 of the light lines 12, 13 can be used for calibrating individual parts of the device 2 or as a positioning aid for a user.
[0066] In alternative embodiments, the light lines 11, 12 may be aligned parallel to each other and / or may not have an intersection point 14.
[0067] In the illustrated embodiment, the image recording unit 20 is directed toward the installation surface 4 at an angle β to the projection device 10. More precisely, an optical axis 11 of the projection device 10 and an optical axis 21 of the image recording unit 20 are aligned at an angle β to each other.
[0068] The angle β of the optical axis 21 of the image recording unit 10 to the optical axis 11 of the projection device 10 can, in principle, be greater than 0° and / or less than 90°. A larger angle β can result in a greater offset of the light lines 12, 13 on the container 5 in the recorded image and better depth resolution. However, the beverage container 5 itself often represents a limitation for the aforementioned angle β, since the measurement depends on the light lines 12, 13 projected onto the beverage container 5 being completely visible in the recorded image. A side wall of the beverage container 5 or a beverage container edge 6 can impair a clear view of the image recording unit 20. From the geometry of an exemplary beverage container 5 with a relatively high side wall, a maximum angle β can be calculated that just barely leads to usable measurement results.Accordingly, the angle β of the image recording unit 20 to the projection device 10 can be at least 2°, in particular at least 5° and / or at most 30°, preferably at most 10°. In the illustrated embodiment, the angle β is approximately 8°.
[0069] Optionally, the optical axes 11, 21 are additionally offset parallel to each other in the y-direction, which results in an offset of the light lines 12, 13 in the x-axis and y-axis directions with increasing height of the beverage container 5. This additional offset makes it easier to determine the light lines 12, 13 projected onto the beverage container 5. The parallel offset is particularly due to the Fig. 2 The optical axis 11 and / or the optical axis 21 can be aligned parallel to an xz-plane. The optical axis 11 of the projection device 10 and the optical axis 21 of the image recording unit 20 can have a parallel offset d between 0 mm and 300 mm in the y-direction. In the illustrated embodiment, the offset d is 10 mm (cf. Fig. 4 und 5 ). Alternatively, there is no offset, in this case d = 0 mm (cf. Fig. 3 ).
[0070] The image capture unit 20 is configured to capture the beverage container 5 and the light lines 12, 13 projected by the projection device 10. The image capture unit 20 is typically configured as a camera, in particular a CCD camera. Image points (pixels) of the images captured by the image capture unit 20 are typically converted into a world coordinate system and a machine coordinate system before further processing. For this purpose, at least one rotation matrix (rotation around the x-axis, rotation around the y-axis, and / or rotation around the z-axis) and a translation vector (displacement along the x-, y-, and / or z-axis) are often determined.
[0071] A first coordinate transformation can describe the conversion of image coordinates into the world coordinate system. The z-axis of the world coordinate system can initially be synonymous with the optical axis 21 of the image acquisition unit 20. A coordinate origin can be located on the installation surface 4 of the beverage vending machine 1. After calculating the image coordinates into world coordinates, a conversion to the machine coordinate system can be performed. In this coordinate system, the z-axis no longer corresponds to the optical axis 21 of the image acquisition unit 20, but rather to the normal of the installation surface 4. The transformations performed are state-of-the-art and will not be explained in detail here.
[0072] There are various ways to determine the rotation matrices and translation vectors required for the geometric transformations. A first method involves determining the values using a calibration procedure. A second method uses the design values of vending machine 1.
[0073] The following procedure can be used to determine the rotation matrices and translation vectors using a calibration method. For calibration, a calibration pattern, such as a checkerboard pattern, can be placed horizontally on the machine's support surface 4 and aligned using the laser lines, for example, such that the intersection point 14 of the light lines 12, 13 is located in the center of the calibration pattern. A recording of the calibration pattern is then taken using the image recording unit 20. This process can be performed several times with different offsets from the support surface 4 in the direction of the machine's z-axis. A rotation matrix and a translation vector are then determined for each of the recorded images.
[0074] Additionally or alternatively, the at least one rotation matrix and the translation vector can also be determined by constructive values. The relative arrangement of the image recording unit 20 is namely determined by its x, y, and z positions. The optical axis 21 of the image recording unit 20 and the optical axis 11 of the projection device 10 are also structurally fixed by the alignment of the image recording unit 20 and the projection device 10 relative to the beverage vending machine 1. Therefore, a first angle of the optical axis 21 to the z-axis and a second angle of the optical axis 11 to the z-axis can be geometrically determined. The underlying coordinate system typically has its origin at the intersection point 14 of the laser lines 12, 13 projected onto the installation surface 4. A third angle typically describes a rotation of the projection device 10 about its own axis 11 and thus also a rotation relative to the y-axis of the beverage vending machine 1.Ideally, the third angle has a value of zero. Since this is difficult to achieve during adjustment and alignment of the projection device 11, this value can be determined in the installed state. For this purpose, a diffusely reflecting base can be placed on the installation surface 4. An image can then be recorded with the projection device 10 switched on. The coordinates of the light lines 12, 13 of the recorded image can be used to determine the third angle. The rotation matrices and the translation vector can then be set up after determining the three aforementioned angles (first, second, and third angles) and the position of the image recording unit 20.
[0075] Intrinsic calibration parameters of the image acquisition unit 20 are determined in particular by the imaging optics of the image acquisition unit 20 and thus depend on each individual system.
[0076] Optionally, at least one optical filter is provided to increase the contrast between the imaged light lines 12, 13 and the image background. For example, a combination of a long-pass filter and a short-pass filter, each optionally configured as an absorption filter, is conceivable.
[0077] The projection device 10 can be arranged between the beverage outlet 3 and the image recording unit 20, for example in the x-direction perpendicular to the z-axis between the beverage outlet 3 and the image recording unit 20.
[0078] The evaluation unit 24 is often connected to the image recording unit 20 and the projection device 10 via signal lines in order to communicate with and control them. An additional control unit can also be provided, which is connected to the image recording unit 20, the projection device 10, and the evaluation unit 24 in order to communicate with and control them. Furthermore, the evaluation unit 24 and / or the control unit can be connected to the beverage preparation unit 40 or form a unit with the beverage preparation unit 40. The communication connection between the units 10, 20, 24, 40 can comprise a wired or wireless connection. Data, signals, control commands, and / or measured values, for example, can be exchanged via the communication between the units 10, 20, 24, 40.The evaluation unit 24 and / or the control unit can be designed to process, edit or evaluate received data.
[0079] The evaluation unit 24 is designed to determine at least one inner contour line 25, 26 of the beverage container 5 and a center line 27 of the beverage container 5 based on the light lines 12, 13 recorded by the image recording unit, and to determine the volume of the beverage container 5 based on a rotation body which is created by rotating the inner contour line 25, 26 around the center line 27.
[0080] The results of the evaluation unit 24 can be used by the control unit to control the projection device 10, the image capture unit 20, the beverage preparation unit 40, and / or a cleaning unit. In particular, the control unit can be configured to control a beverage quantity and / or a beverage recipe depending on the specific volume of the beverage container 5 and / or the specific residual volume of the beverage container 5 that is at least partially filled with liquid.
[0081] The following describes how a method for determining the volume of a beverage container 5 may look. The method is carried out in particular using the previously described device 2 and the beverage dispenser 1.
[0082] The method begins with the placement of a beverage container 5 on the installation surface 4 of the beverage dispenser 1. The beverage container 5 is usually placed freehand by a user relatively centrally under the beverage outlet 3 of the beverage dispenser 1. To start the measurement, the user selects the desired beverage, e.g., espresso or cappuccino, on the user interface 50 of the beverage dispenser 1. The start of the measurement can also be triggered by the detection of the beverage container 5 by the image recording unit 20.
[0083] After this, an image of the beverage container 5 is taken. To measure the beverage container 5, two images are usually taken by the image recording unit 20. A first image is taken without the light lines 12, 13 and is used to determine the brightness of the ambient light. Based on this first image, a conclusion about the color or gray level of the beverage container 5 is possible. For this purpose, an average brightness of the entire image can be compared with an average brightness of a given rectangle, and a ΔB (average intensity of the rectangle relative to the average intensity of the entire image). ΔB provides information about the color or gray level of the beverage container 5. The said rectangle can completely overlap with the beverage container 5, i.e. lie completely within the beverage container 5 in the image, and can, for example, be located in the center of the image.
[0084] The projection device 10 is then switched on to project the light lines 12, 13 onto the horizontal support surface 4 and the beverage container 5 placed thereon.
[0085] Subsequently, a second image of the beverage container 5 is taken with the light lines 12, 13 projected onto it, i.e. with the projection device 10 switched on. In the second image, a ΔL between the average intensity / brightness of the entire second image and the said rectangle, which allows the degree of reflections in the second image to be assessed.
[0086] The values for ΔB and ΔL are usually dependent on the exposure situation, i.e. the average intensity or brightness ∅ I of the first exposure. Via the relationship g = ΔB * ΔL A factor g can be determined from the coefficient of λ / λ I. The factor g can be used to determine the minimum intensity or brightness of a pixel at which this pixel is detected as an image of a light line 12, 13.
[0087] The adjectives "first" and "second" do not necessarily refer to a specific order. For example, the second image may be taken first, followed by the first image, or vice versa. As already described above, other combinations of image acquisitions are also conceivable. For example, it is possible to take three images, or just one image for subsequent determination of the inner contour line.
[0088] The positions of the light lines 12, 13 on the beverage container 5 can then be extracted from the second image by comparing the brightness.
[0089] The second image, or the first light line 12, can be divided into two regions 25, 26. The boundary between the two regions can be, for example, the light line 13 or the intersection point 14. Two inner contour lines 25, 26 of the first light line 12 are now known.
[0090] Subsequently, a position of the upper beverage container rim 6 can be determined. When determining the beverage container rim 6, it is assumed that it extends horizontally parallel to the xy plane and represents the highest elevation of the beverage container 5 in the z direction. Furthermore, it is assumed that the beverage container rim 6 is circular. Under the above assumptions, the beverage container rim 6 can be uniquely defined by three points 15, 16, 17.
[0091] Since the beverage container rim 6 usually has a finite width, the part of the respective light line 12, 13 projected there can be approximately regarded as a light point 15, 16, 17, cf. Fig. 3-5 The evaluation unit 24 can be configured to determine the light points 15, 16, 17 of the light lines 12, 13 generated on the upper beverage container edge 6. The three light points 15, 16, 17 generated on the upper beverage container edge 6 can form the vertices of a triangle. The light points 15, 16 are assigned to the first light line 12, while the light point 17 is assigned to the second light line 13.
[0092] The aforementioned parallel offset of the image recording unit 20 and the projection device 10 in the y-direction also results in an offset of the light line 13 depending on the height of the beverage container 5. As the height of the beverage container 5 increases, this results in an offset of the laser lines projected onto the beverage container surface from the perspective of the image recording unit 20. This allows the light spot 17 on the beverage container edge 6 to be located relatively easily (see FIG. Fig. 4 und Fig. 5 ). Alternatively, there is no parallel offset of the optical axes 11, 21 in the y-direction. As a result, the projection of the laser line 13 on the beverage container surface recorded by the image recording unit 20 corresponds approximately to a straight line, cf. Fig. 3 .
[0093] The circumference of the triangle formed by the light points 15, 16, 17 corresponds to the beverage container edge 6 and thus forms the desired position of the beverage container edge 6. The position of the beverage container edge 6 can in turn be used to determine a center point of the beverage container edge 6. A line that intersects the center point of the beverage container edge 6 and is oriented perpendicular to a base surface 7 of the beverage container 5 can then form the center line 27 of the beverage container 5. In other words, the center point of the beverage container edge 6 is extended as a line in the height direction (z-direction) to form the center line 27.
[0094] Alternatively, the position of the intersection point 14 on the base surface of the beverage container 7 can also be used to determine the center line 27. If the user places the beverage container 5 on the support surface 4 such that a center point of the base surface 7 overlaps the intersection point 14, the intersection point 14 can be extended vertically as a line perpendicular to the base surface 7 to form the center line 27. As a positioning aid, a marking, for example in the form of a dot or crosshairs, can be provided in the center of the base surface 7 of the beverage container 5.
[0095] So far, two inner contour lines 25, 26 and the center line 27 of the beverage container 5 have been determined based on the positions of the light lines 12, 13, the light points 15, 16, 17 on the beverage container 5 and / or the intersection point 14.
[0096] Now the desired volume of the beverage container 5 can be determined using a rotation body which is created by rotating the inner contour line 25, 26 around the center line 27.
[0097] The volume V of the beverage container 5 is calculated, for example, as a numerical approximation to a volume integral between the beverage container contour 25, 26 and the center axis 27 (rotation axis) of the beverage container 5, cf. Fig. 6 The numerical approximation is usually performed using the trapezoidal rule. This involves calculating a trapezoidal area A between two points 30, which is then rotated around the center axis 27. Since the specified line can have values on both sides of the rotation axis, the volume V is calculated only in the interval between the container edge and the axis.
[0098] The trapezoidal area A is calculated as follows: A i = y i + y i + 1 2 ∗ z i − z i + 1
[0099] The volume V of the beverage container 5 is then equal to the sum of the rotated areas: V = ∑ i = 0 n A i ∗ πr i
[0100] To increase accuracy, rotational bodies can be calculated for both the inner contour line 25 and the inner contour line 26. The volume of the beverage container 5 is then calculated by averaging the two rotational bodies. Thus, a volume V 1 and V 2 can be calculated for each inner contour line 25, 26 of the beverage container 5. Typically, the average of both volumes V 1 and V 2 is calculated as the final volume V. Both volumes V 1 and V 2 can optionally be subjected to a correction factor that corrects any position-dependent measurement errors.
[0101] The calculated volume V describes the volume of the beverage container 5 starting from the beverage container rim 6, i.e., the upper edge of the beverage container 5. The filling quantity dispensed by the beverage dispenser 1 should therefore be reduced by an offset. To enable application of the measurement to containers 5 with a wide variety of volumes, the offset can, for example, be composed of an absolute and a percentage of the determined volume V.
[0102] After determining the volume of the beverage container 5, the evaluation unit 24 can be configured to determine a dispensing quantity and / or a preparation recipe for a beverage to be filled into the beverage container 5 based on the determined volume, and the beverage preparation unit 40 can then be controlled accordingly. Alternatively, the fill quantity is transmitted to the beverage preparation unit 40, which can use this information to adjust the dispensing quantity and / or a preparation recipe for the selected beverage.
[0103] With the aforementioned volume determination by the evaluation unit 24, both the volume of an empty beverage container 5 and a residual volume of a beverage container 5 that is at least partially filled with liquid can be determined. This allows the amount of liquid present in the beverage container 5 to be measured and / or monitored. By determining the residual volume, for example, the amount of liquid in the beverage container 5 can be determined and / or monitored during beverage dispensing, cleaning, maintenance, and / or descaling of the beverage machine 1. If the residual volume falls below a predetermined value or the amount of liquid in the container 5 exceeds a predetermined value, the device 2 can be configured to issue a warning and / or stop the liquid dispensing. The warning can be, for example, a visual warning, an acoustic warning, a vibration warning, and / or a combination of these.
[0104] The evaluation unit 24 can be configured to determine the amount of liquid currently present in the beverage container 5 by comparing the two volume measurements (empty beverage container / partially filled beverage container or full beverage container). The volume measurement can be performed before, after, and / or during the filling of the beverage container 5 with liquid.
[0105] In a further embodiment, the evaluation unit 24 can be configured to compare the amount of liquid in the at least partially filled beverage container 5 with a dispensed amount. The dispensed amount can be entered manually by the user via the user interface 50 and then provided by the beverage preparation unit 40. If the actual amount of liquid in the beverage container 5 deviates from the dispensed amount by a predetermined factor or a predetermined amount, the evaluation unit 24 can be configured to output a warning. If, for example, the dispensed amount provided by the beverage preparation unit 40 is significantly greater than the amount of liquid actually measured in the container 5, this can be an indication of blockages or leaks in the system.
[0106] The amount of liquid in the beverage container 5 measured by the evaluation unit 24 can also be used to calibrate a volume flow of the beverage preparation unit 40. A time can be measured during the dispensing of the beverage into the beverage container 5, e.g., by a time measuring unit provided in the device 2, the evaluation unit 24, or the beverage preparation unit 40. The evaluation unit 24 can use the measured time and the measured amount of liquid in the container 5 to calculate the volume flow in volume per unit time. The calculated volume flow (actual value) can then be compared with a desired volume flow (target value), allowing the beverage preparation unit 40 to be calibrated.
[0107] In addition, the dosage of the dispensed liquid can be monitored in order to reduce or avoid dosage fluctuations. This can be helpful, for example, if different liquids, such as milk and coffee, are to be poured into the beverage container 5 in different quantities depending on the user's wishes. By comparing the amount of liquid already present in the beverage container 5 before the liquid is poured, the respective partial amount in the beverage container 5 can be determined for each liquid. If, for example, a first liquid and a second liquid are poured into the beverage container 5 one after the other, a first partial amount of the first liquid can be determined after the beverage container 5 has been filled with the first liquid.A second portion of the second liquid, which is subsequently poured into the beverage container 5, can then be adjusted to the first portion of the first liquid depending on the preparation recipe. The measurement results from the evaluation unit 24 are communicated to the control unit, which can then initiate control of the beverage preparation unit 40. Thus, when preparing a latte macchiato or cappuccino, the respective portions of coffee, milk, and milk foam can be monitored and controlled.
[0108] If different beverage container types and their volumes are known in advance, the volume of the beverage container 5 determined by the device 2 can be compared with the previously known volumes. If the measured volume deviates from all volumes of the previously known beverage containers 5, for example, an incorrectly positioned beverage container 5 or the use of an incorrect beverage container type can be detected. In this case, an appropriate warning can be issued or the dispensed amount of liquid can be adjusted.
[0109] It should be noted that instead of the aforementioned beverage container 5, other containers 5, such as cleaning containers, maintenance containers, or descaling containers, can also be used. The volume measurement described above therefore also explicitly refers to these containers. This can be helpful if a beverage machine 1 equipped with the device 2 described above is to be cleaned, maintained, and / or descaled. In these cases too, for example during a descaling process, a cleaning process, or a maintenance process, the amount of liquid and / or the residual volume of the container 5 located below the beverage outlet 3 can be measured, monitored, and / or controlled. Overflow of the container 5 can therefore be prevented.
[0110] In order to better distinguish the light lines 12, 13 on the beverage container 5 from the surroundings, the horizontal support surface 4 can be designed to absorb and / or diffusely reflect the light projected onto it at least predominantly (i.e. more than 50%).
[0111] Certain optical properties of the container surface, in particular the inner surface of the container, can positively influence the measurements. In order to image the clearest possible light line 12, 13, the material of the beverage container 5 or at least an inner coating of the beverage container 5 can preferably be opaque. Furthermore, the light lines 12, 13 can be reliably detected, especially with a high surface roughness. With a high surface roughness, the proportion of diffusely reflected light is higher than with reflective or polished surfaces. Advantageous materials of the beverage container 5 include opaque materials with a matte surface, such as ceramic, cardboard, metal, wood, plastic, or glass, optionally with a corresponding surface treatment or coating.
[0112] The shape of the beverage container can also influence the measurement results. For example, the beverage container 5 should be rotationally symmetrical. Due to this rotational symmetry, as explained above, the position of the beverage container rim 6 can be determined via the circumference of the light points 15, 16, 17. Furthermore, a rotational body can be formed that corresponds to the inner shape of the beverage container 5 with great accuracy.
[0113] Furthermore, the beverage container edge 6 preferably extends parallel to the xy plane and forms the highest elevation of the beverage container 5. If this is not the case and one of the light lines 12, 13 is formed at a higher or equally high point, this can lead to a displacement of the container center and thus also of the center axis 27.
[0114] In addition, a lower diameter of the beverage container 5 in the area of the base surface 7 should be smaller than an upper diameter in the upper area of the beverage container and in the area of the beverage container rim 6. In particular, the diameter should remain the same or increase in section from bottom to top, but not decrease. If the diameter decreases from bottom to top, it may happen that the container rim 6 obscures the light lines 12, 13, whereby the inner contour lines 25, 26 are no longer depicted.
[0115] It is understood that the Figuren 1-6 The embodiments illustrated and described above can be combined with one another, provided the combinations are not mutually exclusive. Features mentioned only with respect to the device 2 described above can also be claimed for the beverage dispenser 1 or the described method, and vice versa. List of reference symbols:
[0116] 1 Vending machine 2 Device for determining the volume of a beverage container 3 Beverage outlet 4 Installation surface 5 Beverage container 6 Beverage container rim 7 Bottom surface of the beverage container 8 Handle 10 Projection device 11 Optical axis 12 First light line 13 Second light line 14 Intersection point 15 Light point 16 Light point 17 Light point 20 Image acquisition unit 21 Optical axis 22 Front 23 Rear 24 Evaluation unit 25 First inner contour line 26 Second inner contour line 27 Center line 28 Center 29 Volume segment 30 Measuring point 40 Beverage preparation unit 50 User interface α Angle between light lines β Angle between image acquisition unit and projection device d Distance in y-direction between image acquisition unit 20 and projection device 10
Claims
1. A device (2) for determining a volume of a container (5), in particular a beverage container, comprising - a horizontal support surface (4) for placing the container (5), - a projection device (10), which is configured to project two light lines (12, 13) onto the support surface (4) and the container (5) placed thereon, - an image capturing unit (20), which is directed at an angle (β) to the projection device (10) onto the support surface (4) and is configured to capture the container (5) and the light lines (12, 13) projected by the projection device (10), and - an evaluation unit (24), which is configured to determine at least one inner contour line (25, 26) of the container (5) and a center line (27) of the container (5) on the basis of the captured light lines (12, 13), and to determine the volume of the container (5) on the basis of a rotation body, which is formed by rotation of the inner contour line (25, 26) about the center line (27).
2. The device (2) according to claim 1, wherein the light lines (12, 13) are aligned at an angle to one another, wherein the light lines (12, 13) are preferably aligned at an angle (α) of at least 15° and / or at most 175° relative to one another, in particular about 90°, and / or wherein the light lines (12,13) intersect one another.
3. The device (2) according to any one of the preceding claims, wherein the evaluation unit (24) is configured: - to determine light points (15, 16, 17) of the light lines (12, 13) generated on an upper container edge (6), and - to determine the center line (27) of the container (5) on the basis of the light points (15, 16, 17).
4. The device (2) according to any one of the preceding claims, wherein the evaluation unit (24) is configured: - to determine three light points (15, 16, 17) generated on the upper container edge (6) which form a triangle, and - to determine the center line (27) of the container (5) from a circumference of the triangle.
5. The device (2) according to any one of the preceding claims, wherein the angle (β) of the image capturing unit (20) to the projection device (10) is at least 2° and / or at most 30°, preferably at most 10°.
6. The device according to any one of the preceding claims, wherein an optical axis (11) of the projection device (10) and an optical axis (21) of the image capturing unit (20) are offset in parallel.
7. The device (2) according to any one of the preceding claims, wherein the evaluation unit (24) is configured to determine two inner contour lines (25, 26) of the container (5) on the basis of the captured light lines (12, 13), and to determine a rotation body for each inner contour line (25, 26), wherein the volume of the container (5) is determined by averaging the two rotation bodies.
8. The device (2) according to any one of the preceding claims, wherein the evaluation unit is configured to determine the inner contour lines on the basis of at most three images captured by the image capturing unit, preferably at most two images captured by the image capturing unit, particularly preferably only one image captured by the image capturing unit.
9. The device (2) according to any one of the preceding claims, wherein the projection device (10) comprises at least one line laser and / or one cross-laser module, which is configured to generate the light lines (12, 13).
10. The device (2) according to any one of the preceding claims, wherein the horizontal support surface (4) is configured to absorb and / or diffusely reflect the projected light.
11. The device (2) according to any one of the preceding claims, wherein the evaluation unit (24) is configured to determine a dispensing amount and / or a preparation recipe of a beverage to be filled into the container (5) on the basis of the determined volume of the container (5).
12. A beverage dispenser (1), comprising the device (2) according to any one of the preceding claims.
13. A method for determining a volume of a containers (5), in particular a beverage container, comprising the steps: - projecting two light lines (12, 13) onto a horizontal support surface (4) and container (5) placed thereon; - capturing an image of the container (5) with the light lines (12, 13) projected thereon and / or capturing at most three images of the container, in which the light lines projected onto the container are captured; - determining at least one inner contour line (25, 26) of the container (5) and a center line (27) of the container (5) on the basis of the positions of the light lines (12, 13) on the container (5); and - determining the volume of the container (5) on the basis of a rotation body, which is produced by rotation of the inner contour line (25, 26) about the center line (27).
14. The method according to claim 13, comprising the additional steps: - determining light points (15, 16, 17) projected onto an upper container edge (6); and - determining the center line (27) of the container (5) on the basis of the light points (15, 16, 17).
15. The method according to any one of claims 13-14, which is carried out with the device (2) according to any one of claims 1-11 or the beverage dispenser according to claim 12.
