Deviation detection method of water receiving container, beverage output equipment and control method of beverage output equipment
By using the offset detection method of the water-container container in the beverage output device, the offset difference value is calculated using the position information of the edge and the beverage output port, the problem that existing equipment cannot accurately detect the position of the water-container container is solved, and the accurate detection of the offset of the docked water container and the safe control of the beverage output is realized.
Patent Information
- Application Number
- CN202311598987.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-24
- Publication Date
- 2025-05-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing beverage output equipment cannot accurately detect the location of the water-containing container in the water-containing area, resulting in the drinks that may spill out or burn the user when the water-containing container is offset.
Using an offset detection method of the water-containing container, by obtaining the first position information of the edge of the water-containing container on the water-containing area and the second position information of the beverage output port, the difference between the two is calculated to determine whether the water-containing container is offset, and the beverage output is controlled according to the offset situation.
Accurate detection of the offset of the docking water container is achieved, avoiding the problems of beverage spilling and scalding caused by the offset, and improving user safety and user experience.
Smart Images

Figure CN120036637A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of beverage output devices, and particularly to a method for detecting the offset of a water receiving container, a control method for a beverage output device, a beverage output device, and a computer storage medium. Background Art
[0002] Beverage output devices, such as water dispensers, water purifiers, etc., detect whether a cup is placed in the water receiving area before receiving water. If it is detected that a cup is placed in the water receiving area, the beverage output mechanism can be controlled to output beverages. If no cup is detected, the beverage output mechanism does not output beverages, so as to reduce problems such as users being scalded and beverage waste.
[0003] In related technologies, usually only whether a cup is placed on the water receiving area is detected, or only the approximate position of the cup is detected, but the accurate position of the cup cannot be detected. When the cup is placed with some offset, the beverage output mechanism is also controlled to output beverages, resulting in the beverage offsetting the cup and causing the beverage to spill out of the cup or even scald the user. Summary of the Invention
[0004] The present application provides a method for detecting the offset of a water receiving container, a control method for a beverage output device, a beverage output device, and a computer storage medium, so as to accurately obtain the position information of the water receiving container in the water receiving area and determine whether the water receiving container is offset, thereby improving problems such as the beverage offsetting the water receiving container due to the offset of the water receiving container, resulting in the beverage spilling out of the water receiving container or even scalding the user.
[0005] To solve the above technical problems, one technical solution adopted by the present application is: providing a method for detecting the offset of a water receiving container. The method for detecting the offset of the water receiving container is used for a beverage output device. The beverage output device is provided with a water receiving area and a beverage output port located above the water receiving area. The offset detection method includes: obtaining first position information of the edge of the water receiving container placed on the water receiving area on the water receiving area; determining whether the water receiving container is offset on the water receiving area based on the first position information and second position information of the beverage output port on the water receiving area.
[0006] Wherein, the obtaining of the first position information of the edge of the water receiving container placed on the water receiving area on the water receiving area includes: obtaining the occlusion area of the water receiving container placed on the water receiving area on the water receiving area; determining the first position information of the edge of the water receiving container on the water receiving area based on the occlusion area.
[0007] Among them, determining whether the water receiving container is offset on the water receiving area based on the above-mentioned first position information and the second position information of the beverage outlet on the water receiving area includes: determining whether the extension line of the central axis of the beverage outlet is within the water receiving container based on the first position information and the second position information of the central axis of the beverage outlet on the water receiving area; in response to the extension line being within the water receiving container, determining whether the water receiving container is offset on the water receiving area based on the first difference between the first position information and the second position information.
[0008] Among them, determining whether the water receiving container is offset on the water receiving area based on the first difference between the first position information and the second position information includes: in response to the first difference between the first position information and the second position information being greater than the first threshold, determining that the water receiving container is offset on the water receiving area.
[0009] Among them, determining whether the water receiving container is offset on the water receiving area based on the first difference between the first position information and the second position information further includes: in response to the first difference being less than or equal to the first threshold, obtaining the third position information of the central axis of the water receiving container on the water receiving area; calculating the second difference between the third position information and the second position information; in response to the second difference being greater than the second threshold, determining that the water receiving container is offset on the water receiving area.
[0010] Among them, determining whether the water receiving container is offset on the water receiving area based on the difference between the first position information and the second position information further includes: in response to the second difference being less than or equal to the second threshold, determining that the water receiving container is not offset on the water receiving area.
[0011] Among them, the above-mentioned offset detection method further includes: determining the caliber size of the water receiving container based on the first position information; determining the first threshold based on the caliber size.
[0012] The offset detection method further includes: in response to the change of the first position information, performing the above-mentioned step of obtaining the first position information of the edge of the water receiving container placed on the water receiving area.
[0013] To solve the above technical problems, another technical solution adopted by this application is: providing a control method for a beverage output device, including: using the above-mentioned offset detection method to determine whether the water receiving container is offset; in response to no offset, controlling the beverage outlet to output beverages.
[0014] Among them, the control method further includes: in response to offset, generating a prompt message.
[0015] To solve the above technical problems, another technical solution adopted by this application is: to provide a beverage output device, including: a base body provided with a water receiving area; a beverage output mechanism disposed on the base body, and a beverage output port of the beverage output mechanism is located above the water receiving area; a control mechanism connected to the beverage output mechanism for controlling the operation of the beverage output mechanism by using the above control method.
[0016] Among them, the beverage output mechanism further includes: an infrared array sensor, a plurality of infrared detection components of the infrared array sensor are arranged in a matrix on the water receiving area and are connected to the control mechanism. The infrared detection components are used to obtain the first position information of the edge of the water receiving container placed on the water receiving area on the water receiving area, and the control mechanism controls the operation of the beverage output mechanism based on the first position information.
[0017] To solve the above technical problems, another technical solution adopted by this application is: to provide a computer storage medium. Program instructions are stored on this computer storage medium, and the program instructions are executed by a processor to implement the offset detection method and / or the above control method.
[0018] The beneficial effect of this application is: The offset detection method of the water receiving container provided by this application first obtains the first position information of the edge of the water receiving container placed on the water receiving area on the water receiving area, and determines whether the water receiving container is offset on the water receiving area based on the first position information and the second position information of the beverage output port on the water receiving area. In this way, the offset between the edge of the water receiving container and the beverage output port can be accurately determined, so that the offset detection of the water receiving container can be realized. When the water receiving container is offset, the beverage output port can be controlled not to output beverages, thereby improving the problems such as beverages spilling out of the water receiving container or even scalding users caused by the offset of the water receiving container resulting in the offset of the beverages from the water receiving container. Description of the Drawings
[0019] To more clearly illustrate the technical solutions in the embodiments of this application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of this application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings, where:
[0020] Figure 1 is a schematic structural diagram of an embodiment of the beverage output device of this application;
[0021] Figure 2 is a schematic structural diagram of the water receiving area and the position detection mechanism in the beverage output device of this application;
[0022] Figure 3 is a schematic structural diagram of another embodiment of the beverage output device of this application;
[0023] Figure 4 It is a schematic flowchart of an embodiment of the method for detecting the offset of the water receiving container in this application;
[0024] Figure 5 Is Figure 4 A specific flowchart of step S33 in the embodiment;
[0025] Figure 6 Is Figure 5 A specific flowchart of step S52 in the embodiment;
[0026] Figure 7 It is a schematic flowchart of an embodiment of the control method for the beverage output device in this application;
[0027] Figure 8 It is a schematic flowchart of another embodiment of the control method for the beverage output device in this application;
[0028] Figure 9 It is a schematic structural diagram of an embodiment of the computer storage medium in this application. Specific Embodiments
[0029] Next, the technical solutions in the embodiments of this application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
[0030] It should be noted that if there are directional indications (such as up, down, left, right, front, back...) involved in the embodiments of this application, then such directional indications are only used to explain the relative positional relationship and movement conditions between components in a specific posture (as shown in the accompanying drawings). If this specific posture changes, then such directional indications will also change accordingly.
[0031] In addition, if there are descriptions such as "first", "second", etc. involved in the embodiments of this application, then such descriptions of "first", "second", etc. are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions between various embodiments can be combined with each other, but it must be based on the fact that those of ordinary skill in the art can implement them. When the combination of technical solutions results in contradictions or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0032] The beverage output device proposed in this application can include water dispensers, water purifying and drinking machines, etc., or can also include other devices capable of outputting beverages, such as beverage output devices used in scenarios such as kitchens, bathrooms, shopping malls, etc. The beverage output device can be set independently to realize a movable beverage output device, or the beverage output device can also be set on the door body of other household electrical appliances, on the wall, on the workbench, etc.
[0033] The beverage output device of this application can be used to export the first type of beverage ingredients and / or the second type of beverage ingredients. The first type of beverage ingredients includes ingredients with fixed shapes, elastic ingredients, and ingredients with poor fluidity. For example, ice cubes, crushed ice, red beans, mung beans, peanuts, pearls in pearl milk tea, nata de coco, taro balls, milk jelly, jelly, turtle jelly, fruit puree, taro puree, ice cream, puffed products, baked products, etc. The second type of beverage ingredients includes ingredients with high fluidity, such as water, fruit juice, milk, coffee, cola, soy milk, etc.
[0034] This application first proposes a beverage output device, as Figure 1 shown, Figure 1 is a schematic structural diagram of an embodiment of the beverage output device of this application. The beverage output device of this embodiment includes: a base body 11, a beverage output mechanism 12 and a control mechanism. Among them, the base body 11 is provided with a water receiving area; the beverage output mechanism 12 is arranged on the base body 11, and the beverage output port of the beverage output mechanism 12 is located above the water receiving area; the control mechanism is connected to the beverage output mechanism 12, and the control mechanism uses an offset detection method to determine whether the water receiving container 01 is offset; in response to the water receiving container 01 not being offset, the control mechanism controls the beverage output mechanism 12 to output beverages so as to direct the beverages to the water receiving container 01 placed on the water receiving area; in response to the water receiving container 01 being offset, the control mechanism generates a prompt message, such as an alarm message, a prompt position, to prompt the user to adjust the position of the water receiving container 01 on the water receiving area. At this time, the beverage output mechanism 12 does not output beverages.
[0035] For the specific offset detection method of the water receiving container 01, reference can be made to the following text.
[0036] Among them, the water receiving container 01 can not only receive water, ice, ice-water mixture, but also receive other beverages output by the beverage output mechanism 12; the water receiving area refers to the area for carrying the water receiving container 01, etc.
[0037] Among them, the control mechanism can be arranged on the base body 11; the control mechanism can include a microprocessor, such as an integrated control chip like a single-chip microcomputer, or a non-integrated electronic circuit with control and data processing functions, etc. There is no specific limitation.
[0038] Before the beverage output mechanism 12 outputs a beverage in this embodiment, it is first determined whether the water receiving container 01 placed in the water receiving area is offset. When it is determined that the water receiving container 01 is offset, the beverage output mechanism 12 is controlled not to output the beverage, thereby being able to improve problems such as the beverage spilling out of the water receiving container 01 or even scalding the user due to the offset of the water receiving container 01 causing the beverage to be offset from the water receiving container 01.
[0039] Optionally, the beverage output device of this embodiment further includes: a position detection mechanism 13, connected to the control mechanism, for obtaining the first position information of the edge of the water receiving container 01 in the water receiving area, and determining whether the water receiving container 01 is offset based on the first position information and the second position information of the beverage outlet in the water receiving area, and controlling the operation of the beverage output mechanism 12 based on the offset detection result.
[0040] Optionally, the position detection mechanism 13 includes an infrared array sensor disposed on the water receiving area. The infrared array sensor includes a plurality of infrared detection elements arranged in a matrix on the water receiving area. The infrared detection elements are connected to the control mechanism for obtaining the first position information of the edge of the water receiving container 01 in the water receiving area. For example, the infrared array sensor obtains the occlusion area of the water receiving container 01 in the water receiving area, and the control mechanism determines the first position information of the edge of the water receiving container 01 based on the occlusion area. The control mechanism determines whether the water receiving container 01 is offset based on the first position information and the second position information of the beverage outlet in the water receiving area.
[0041] Optionally, the infrared detection element can be a reflective infrared sensor or the like.
[0042] In this embodiment, using a plurality of infrared detection elements arranged in a matrix on the water receiving area can improve the accuracy of occlusion area detection.
[0043] The control mechanism can obtain the edge position, shape information, size information, position information of the central axis, etc. of the water receiving container 01 based on the occlusion area of the water receiving container 01 in the water receiving area. The multiple infrared detection elements in the infrared array sensor can have multiple regular placement methods, such as circular array, square array, triangular array, etc.
[0044] For example, as Figure 2 shown, the multiple infrared detection elements of the infrared matrix sensor are arranged in a matrix on the water receiving area. There are 13*13 infrared detection elements arranged in a matrix on the water receiving area. The position coordinates of each infrared detection element on the water receiving area are (Xi, Yi), where i ranges from 0 to 13. Each infrared detection element can determine whether it is blocked by the water receiving container 01 through infrared light detection. The control mechanism marks the coordinate sequence of the position coordinates of the blocked infrared sensing elements as S = {(X1, Y1), (X2, Y2)... (Xn, Yn)}. As Figure 2, in the occlusion area of the water receiving container 01 with respect to the infrared detection component, position coordinates such as (6, 2) and (9, 7) are in the coordinate sequence S, that is, the infrared detection components at position coordinates (6, 2) and (9, 7) are occluded by the water receiving container 01, while the position coordinate (11, 6) is not in the coordinate sequence S, that is, the infrared detection component at position coordinate (11, 6) is not occluded by the water receiving container 01. The control mechanism can judge the edge position, shape information, size information, position information of the central axis, etc. of the water receiving container 01 based on the coordinate sequence S.
[0045] In other embodiments, the position detection mechanism may further include a plurality of pressure detection components, a plurality of ultrasonic detection components, a plurality of microswitches, and / or image detection components, etc.
[0046] Among them, the second position information of the beverage outlet on the water receiving area may be preset and pre-stored in the storage space of the control mechanism, and the control mechanism can obtain the second position information from its storage space.
[0047] The second position information of the beverage outlet on the water receiving area is obtained through the sensor on the seat body 11, such as the position detection mechanism for obtaining the first position information. The second position information of the beverage outlet on the water receiving area can also be obtained based on the projection position information of the beverage outlet on the water receiving area; wherein the projection position of the beverage outlet refers to the projection position of the side wall of the beverage outlet on the water receiving area.
[0048] The multiple mentioned in this application includes two or more.
[0049] In another embodiment, as Figure 3 shown, Figure 3 is a schematic structural diagram of another embodiment of the beverage output device of this application. The beverage output device of this embodiment further includes, on the basis of the above embodiment: an alarm mechanism 21, connected to the control mechanism 22, and in response to the offset of the water receiving container 01, the control mechanism controls the alarm mechanism 21 to output an alarm message.
[0050] In this embodiment, the alarm mechanism 21 outputs an alarm message to prompt the user that the water receiving container 01 is offset, so that the user can quickly identify the offset and timely adjust the position of the water receiving container 01, which can improve the efficiency of getting beverages.
[0051] Among them, the alarm mechanism 21 may include: a buzzer, a horn, an indicator light, a vibrator, a speaker, a display screen, etc., and may output an alarm message in ways such as buzzer prompt, horn voice broadcast, indicator light lighting or flashing, display (text, picture) on the display, touch screen display, APP remote reminder, vibrator generating vibration, speaker playing sound, etc.
[0052] Optionally, the control mechanism 22 can also control the display to show the position information of the water receiving container 01 on the water receiving area, so as to facilitate the user to quickly obtain the adjustment orientation of the water receiving container 01.
[0053] Optionally, the beverage output device of this embodiment further includes: a lighting mechanism 23, connected to the control mechanism 22, and the control mechanism 22 controls the lighting mechanism 23 to provide illumination to improve the safety and user experience of the user when taking beverages.
[0054] In an application scenario, the control mechanism 22 can detect whether there is anyone approaching the beverage output device through an ultrasonic sensor or the like. In response to someone or an object approaching the beverage output device, the control mechanism 22 controls the lighting mechanism 23 to work to save electric energy.
[0055] In another application scenario, the control mechanism 22 can also control the lighting mechanism 23 and the alarm mechanism 21 to cooperate with each other to achieve a lighting alarm mode.
[0056] Optionally, the beverage output device of this embodiment further includes: a communication mechanism 24, connected to the control mechanism 22, for communicatively connecting the control mechanism 22 with an external terminal, the cloud, etc., to realize data communication between the beverage output device and the external terminal.
[0057] Among them, the communication mechanism 24 can include a Wifi module or the like.
[0058] Optionally, the beverage output device of this embodiment further includes: a power supply mechanism 25, connected to the control mechanism 22, the beverage output mechanism 12, the position detection mechanism 13, the alarm mechanism 21, the lighting mechanism 23, the communication mechanism 24, etc., to supply power to the above-mentioned mechanisms to ensure the normal operation of the above-mentioned mechanisms, thereby improving the reliability of the beverage output device.
[0059] The control mechanism 22 is configured to receive information from the above-mentioned various mechanisms and an external terminal, perform arithmetic processing, and send commands to the various mechanisms and / or generate feedback information to the external terminal.
[0060] The control mechanism 22 can directly control the beverage output device to output beverages in response to the water receiving container 01 being non-offset, or can prompt the user to start the beverage output device to output beverages in response to the water receiving container 01 being non-offset, etc.
[0061] The present application further proposes a method for detecting the offset of a water receiving container, which can be used in any of the above-mentioned beverage output devices. The beverage output device is provided with a water receiving area and a beverage output port located above the water receiving area, as Figure 4 shown, Figure 4 is a schematic flowchart of an embodiment of the method for detecting the offset of the water receiving container of the present application. The offset detection method of this embodiment specifically includes the following steps:
[0062] Step S41: Obtain the first position information of the edge of the water receiving container placed on the water receiving area on the water receiving area.
[0063] The position detection mechanism arranged on the water receiving area obtains multiple first position information of the edge of the water receiving container on the water receiving area and transmits the first position information to the control mechanism.
[0064] Optionally, in this embodiment, the occlusion area of the water receiving container placed on the water receiving area can be obtained.
[0065] In this embodiment, the edge of the occlusion area is the edge of the water receiving container, and the occlusion area can be the occlusion area of the bottom of the water receiving container on the water receiving area. Of course, in other embodiments, due to the different shapes of the water receiving containers, the occlusion area of the edge of the cup mouth of the water receiving container on the water receiving area can also be obtained.
[0066] The position detection mechanism can be an infrared matrix sensor, and the infrared matrix sensor is used to obtain the occlusion area of the water receiving container on the water receiving area. The control mechanism can obtain the situation of the water receiving container blocking the infrared detection component based on this occlusion area, and obtain the position coordinates of each occlusion point on the bottom of the water receiving container based on the situation of the infrared detection component being blocked and the position coordinates of the infrared detection component on the water receiving area. The control mechanism can at least obtain the edge position, shape information, size information, etc. of the water receiving container based on the position coordinates of each occlusion point.
[0067] In other embodiments, the edge position, shape information, size information, etc. of the water receiving container can also be obtained through a pressure detection component, an ultrasonic detection component, and / or an image detection component, etc.
[0068] For example, as Figure 2 shown, multiple infrared detection components of the infrared matrix sensor are arranged in a matrix on the water receiving area. There are 13*13 infrared detection components arranged in a matrix on the water receiving area. The position coordinate of each infrared detection component on the water receiving area is (Xi, Yi), where i ranges from 0 to 13. Each infrared detection component can determine whether it is blocked by the water receiving container 01 through infrared light detection. The control mechanism marks the coordinate sequence of the position coordinates of the blocked infrared sensing components as S = {(X1, Y1), (X2, Y2)... (Xn, Yn)}. As Figure 2, in the occlusion area of the water receiving container 01 with respect to the infrared detection component, position coordinates such as (6, 2) and (9, 7) are in the coordinate sequence S, that is, the infrared detection components at the position coordinates (6, 2) and (9, 7) are occluded by the water receiving container 01, while the position coordinate (11, 6) is not in the coordinate sequence S, that is, the infrared detection component at the position coordinate (11, 6) is not occluded by the water receiving container 01. The control mechanism can judge the edge position, shape information, size information, position information of the central axis, etc. of the water receiving container 01 based on the coordinate sequence S. For example, it can be determined that the set of position coordinates corresponding to the maximum and minimum values of coordinate X in the position coordinates of each row (same coordinate Y) in the coordinate sequence S is the position coordinate of the edge of the water receiving container, or it can be determined that the set of position coordinates corresponding to the maximum and minimum values of coordinate Y in the position coordinates of each column (same coordinate X) in the coordinate sequence S is the position coordinate of the edge of the water receiving container.
[0069] Step S42: Determine whether the water receiving container is offset on the water receiving area based on the first position information and the second position information of the beverage outlet on the water receiving area.
[0070] Among them, the second position information of the beverage outlet on the water receiving area can be preset and stored in the storage space of the control mechanism in advance, and the control mechanism can obtain the second position information from its storage space.
[0071] Optionally, the central axis of the beverage outlet can be set to be directly opposite the geometric center point of the infrared matrix sensor. For example, as Figure 2 shown, the 13×13 infrared detection components of the infrared matrix sensor are arranged in a matrix on the water receiving area, and the coordinate position of its geometric center point is S0 = (6, 6), and the coordinate position S0 can be used as the second position information of the beverage outlet on the water receiving area.
[0072] In other embodiments, the second position information of the beverage outlet on the water receiving area is obtained by a sensor on the base, such as the position detection mechanism for obtaining the first position information. The control mechanism obtains the projection position information of the beverage outlet on the water receiving area through the position detection mechanism, and determines the second position information of the central axis of the beverage outlet on the water receiving area based on the projection position information.
[0073] The control mechanism can obtain the projection position information of the beverage outlet on the water receiving area, that is, the second position information of the beverage outlet on the plane where the water receiving area is located, and obtain the position information of the geometric center point from the projection position information as the second position information.
[0074] In this embodiment, the first position information of the water receiving container and the second position information of the beverage outlet are unified on the plane where the water receiving area is located, which can improve the accuracy of the subsequent offset determination of the water receiving container.
[0075] The control mechanism can determine the placement deviation of the water receiving container based on the deviation amount between the position coordinates of the edge of the water receiving container obtained above and the position coordinates of the central axis of the beverage outlet in the water receiving area.
[0076] This embodiment can accurately determine the offset between the edge of the water receiving container and the beverage outlet, thereby enabling the detection of the offset of the water receiving container. When the water receiving container is offset, the control mechanism can control the beverage outlet not to output beverages, thus improving problems such as beverage spilling out of the water receiving container or even scalding the user caused by the offset of the beverage due to the offset of the water receiving container.
[0077] Furthermore, in this embodiment, the first position information of the edge of the water receiving container on the water receiving area can be determined through the occlusion area of the water receiving container on the water receiving area. Based on the position information of the water receiving container and the beverage outlet on the water receiving area, it is possible to accurately determine whether the water receiving container is offset relative to the beverage outlet, thereby enabling the detection of the offset of the water receiving container.
[0078] Optionally, this embodiment can implement step S43 through the method as Figure 5 shown. The method of this embodiment includes steps S51 and S52.
[0079] Step S51: Determine whether the extension line of the central axis of the beverage outlet is within the water receiving container based on the first position information and the second position information of the central axis of the beverage outlet on the water receiving area.
[0080] The control mechanism compares the position coordinates of the central axis of the beverage outlet on the water receiving area with the position coordinates of the edge of the water receiving container on the water receiving area to determine whether the position coordinates of the central axis on the water receiving area are within the range of the position coordinates of the edge of the water receiving container on the water receiving area. If so, it is determined that the extension line of the central axis of the beverage outlet is within the water receiving container; if not, it is determined that the extension line of the central axis of the beverage outlet is not within the water receiving container.
[0081] Step S52: In response to the extension line being within the water receiving container, determine whether the water receiving container is offset on the water receiving area based on the first difference between the first position information and the second position information.
[0082] If the control mechanism determines that the extension line of the central axis of the beverage outlet is within the water receiving container, calculate the first difference between the position coordinates of the edge of the water receiving container on the water receiving area and the position coordinates of the central axis of the beverage outlet on the water receiving area, and determine whether the water receiving container is offset on the water receiving area based on this first difference.
[0083] Optionally, in response to the first difference between the first position information and the second position information being greater than the first threshold, it is determined that the water receiving container is offset on the water receiving area.
[0084] The first difference between the position coordinates of the edge of the water receiving container on the water receiving area and the position coordinates of the central axis of the beverage outlet on the water receiving area characterizes the offset between the edge of the water receiving container and the beverage outlet. If this offset is greater than the first threshold, it can be determined that the water receiving container is offset on the water receiving area.
[0085] The control mechanism calculates the first differences between multiple pieces of first position information and second position information respectively to obtain multiple first differences.
[0086] The control mechanism calculates the first differences between the position coordinates of each edge position of the water receiving container and the position coordinates of the central axis of the beverage outlet respectively, obtaining multiple first differences. Each first difference characterizes the offset between the corresponding edge position and the beverage outlet. The control mechanism determines whether each first difference is greater than the first threshold. If there is a first difference greater than the first threshold, it is determined that the water receiving container is offset.
[0087] This first threshold is greater than the inner diameter of the water receiving container.
[0088] Wherein, the offset detection method of this embodiment may further include: The control mechanism determines the size of the water receiving container based on the first position information of the edge of the water receiving container, and the control mechanism determines the first threshold based on the size.
[0089] The control mechanism determines the size information of the water receiving container based on the edge position coordinates of the water receiving container. For example, the size information of the water receiving container along the X coordinate can be determined by the difference between the maximum value and the minimum value of the coordinate X in multiple pieces of first position information, and the size information of the water receiving container along the Y coordinate can be determined by the difference between the maximum value and the minimum value of the coordinate Y in multiple pieces of first position information.
[0090] In other embodiments, the size information of the water receiving container can also be determined based on the coordinate sequence S corresponding to the occlusion area.
[0091] In other embodiments, in response to the first difference between the first position information and the second position information being less than the third threshold, it is determined that the water receiving container is offset on the water receiving area. For example, this third threshold can be 1 cm. When the distance between the edge of the water receiving container and the central axis of the beverage outlet is less than 1 cm, it can be considered that the edge of the water receiving container and the beverage outlet are too close, and it can be determined that the water receiving container is offset.
[0092] The method of this embodiment further includes step S53.
[0093] Step S53: In response to the extension line not being within the water receiving container, it is determined that the water receiving container is offset on the water receiving area.
[0094] If the control mechanism determines that the extension line of the central axis of the beverage outlet is not within the water receiving container, it is further determined that the water receiving container is offset on the water receiving area.
[0095] In this embodiment, it is first determined whether the extension line of the central axis of the beverage outlet is located within the water receiving container, so as to ensure that the beverage outlet faces the inside of the water receiving container, enabling the beverage output from the beverage outlet to be directed into the water receiving container. After determining that the extension line of the central axis of the beverage outlet is located within the water receiving container in this embodiment, it is further determined whether the water receiving container is offset on the water receiving area based on the first difference between the first position information and the second position information, so that the offset amount of the cup edge of the water receiving container relative to the central axis of the beverage outlet is within a certain range. In this way, the beverage output from the beverage outlet will not overflow outside the water receiving container.
[0096] In another embodiment, the method shown in Figure 6 can be used to implement step S52, and the method of this embodiment includes steps S61 to S65.
[0097] Step S61: Calculate the first difference between the first position information and the second position information.
[0098] If the control mechanism determines that the extension line of the central axis of the beverage outlet is within the water receiving container, then calculate the first difference between the position coordinates of the edge of the water receiving container on the water receiving area and the position coordinates of the central axis of the beverage outlet on the water receiving area, and determine whether the water receiving container is offset on the water receiving area based on this first difference.
[0099] Step S62: In response to the first difference between the first position information and the second position information being greater than the first threshold, determine that the water receiving container is offset on the water receiving area.
[0100] The first difference between the position coordinates of the edge of the water receiving container on the water receiving area and the position coordinates of the central axis of the beverage outlet on the water receiving area represents the offset amount between the edge of the water receiving container and the beverage outlet. If this offset amount is less than the first threshold, it can be determined that the water receiving container is offset on the water receiving area. The control mechanism calculates the first difference between the position coordinates of each edge position of the water receiving container and the position coordinates of the central axis of the beverage outlet respectively, obtaining multiple first differences, and each first difference represents the offset amount of the corresponding edge position from the beverage outlet. The control mechanism determines whether each first difference is greater than the first threshold. If there is a first difference greater than the first threshold, it is determined that the water receiving container is offset.
[0101] Step S63: In response to the first difference being less than or equal to the first threshold, obtain the third position information of the central axis of the water receiving container on the water receiving area.
[0102] The control mechanism determines whether each first difference is less than the first threshold. If all the first differences are less than or equal to the first threshold, then obtain the third position information of the central axis of the water receiving container on the water receiving area.
[0103] Specifically, the control mechanism may determine the third position information of the central axis of the water receiving container on the water receiving area based on the first position information or the projection information of the edge of the water receiving container on the water receiving area.
[0104] Step S64: Calculate a second difference between the third position information and the second position information.
[0105] The second difference between the position coordinates of the central axis of the water receiving container and the position coordinates of the central axis of the beverage outlet of the control mechanism, and the second difference characterizes the offset amount of the central axis of the water receiving container relative to the central axis of the beverage outlet.
[0106] Step S65: In response to the second difference being greater than the second threshold, determine that the water receiving container is offset on the water receiving area.
[0107] If the offset amount of the central axis of the water receiving container relative to the central axis of the beverage outlet is greater than the second threshold, the control mechanism determines that the water receiving container is offset on the water receiving area.
[0108] The method of this embodiment further includes step S66.
[0109] Step S66: In response to the second difference being less than or equal to the second threshold, determine that the water receiving container is not offset on the water receiving area.
[0110] After determining that the offset amount between the edge of the water receiving container and the central axis of the beverage outlet meets the non-offset determination requirement in this embodiment, the offset amount between the central axis of the water receiving container and the central axis of the beverage outlet and the second threshold are further determined to determine whether the offset amount of the central axis of the water receiving container meets the non-offset determination requirement. If it meets, it is determined that the water receiving container is not offset on the water receiving area. In this way, the accuracy of detecting the offset of the water receiving container can be improved.
[0111] In another embodiment, if the control mechanism determines that the first position information of the edge of the water receiving container on the water receiving area changes, it can be determined that the water receiving container has moved on the water receiving area. At this time, the control mechanism obtains the first position information of the edge of the water receiving container placed on the water receiving area on the water receiving area and executes other subsequent methods for determining offset, so as to be able to detect the offset of the water receiving container in real time and quickly when the water receiving container is placed on the water receiving area or the displacement of the water receiving container on the water receiving area changes.
[0112] The present application further proposes a control method for a beverage output device, which can be used for any of the above beverage output devices, such as Figure 7 as shown, Figure 7 is a flowchart of an embodiment of the control method for the beverage output device of the present application. The control method of this embodiment specifically includes the following steps:
[0113] Step S71: Determine whether the water receiving container is offset by using an offset detection method.
[0114] The control mechanism determines whether the water receiving container is offset by using an offset detection method. Specifically, the offset detection method can refer to the above-mentioned offset detection method of the water receiving container.
[0115] Step S72: In response to no offset, control the beverage outlet to output beverages.
[0116] If the water receiving container is not offset on the water receiving area, the control mechanism controls the beverage outlet to output beverages.
[0117] The control method of this embodiment further includes step S73.
[0118] Step S73: In response to an offset, generate a prompt message.
[0119] If the water receiving container is offset on the water receiving area, the control mechanism generates a prompt message to remind the user to move the water receiving container, and at the same time controls the beverage outlet not to output beverages.
[0120] The prompt methods include any one or more of buzzer prompt, horn voice broadcast, indicator light on or flashing, display (text, picture) on the display, touch screen display, APP remote reminder, vibrator vibration, sound played by the speaker, etc.
[0121] This embodiment first detects the offset of the water receiving container, and only controls the beverage output mechanism to output beverages after determining that the water receiving container has no offset. When the water receiving container is offset, the control mechanism does not output beverages, thereby being able to improve the problems such as the beverage spilling out of the water receiving container and even scalding the user caused by the beverage offsetting the water receiving container due to the offset of the water receiving container.
[0122] In another embodiment, as Figure 1 、 8 shown, Figure 8It is a schematic flowchart of another embodiment of the control method of the beverage output device of the present application. In this embodiment, when the position detection mechanism senses a change in the position signal, or the control mechanism determines that the first position information has changed based on the first position information, the control mechanism determines that the central axis of the beverage outlet is inside the edge of the water receiving container, and further determines the deviation value P between the edge of the water receiving container and the central axis, that is, whether the first difference exceeds the preset deviation value P0, that is, the first threshold value; if so, it is determined that the water receiving container is offset, an alarm message is sent to prompt the user to adjust the position of the water receiving container, and the change of the first position information is continuously monitored; if not, the deviation value Q between the central axis position of the water receiving container and the central axis position after the beverage is output, that is, the second difference, is obtained; if the deviation value is greater than the preset deviation value Q0, it is determined that the water receiving container is offset, an alarm message is sent to prompt the user to adjust the position of the water receiving container, and the change of the first position information is continuously monitored; if the deviation value is less than or equal to the preset deviation value Q0, the beverage output mechanism is controlled to output the beverage; if the first position information does not change within the preset time period, it is prompted that no beverage is output.
[0123] Among them, the preset deviation value P0 ≥ 1 cm; the central axis position of the water receiving container is the position of the center point of the actual detection area of the water receiving container; the preset deviation value Q0 < 1 / 2 L; where L is the distance from the center point to the edge of the base; the specific values of the preset deviation value P0 and the preset deviation value Q0 can be finally determined according to the actual use scenario of the beverage output device and the size of the device in combination with test data. For example, if the beverage output device is used independently, various scenarios such as the size of the water receiving container need to be considered. When the caliber is small, the preset deviation value P0 can be set larger to avoid that the water receiving container with too small a caliber cannot receive the beverage; when the water receiving container is large, L will also be large. At this time, the preset deviation value Q0 can be set larger to allow a larger water receiving container to receive the beverage; on the contrary, if the beverage output device is installed on the refrigerator door or other positions with limited space, the preset deviation value Q0 should be set smaller, and the preset deviation value P0 can also be set smaller to reduce the error range during use.
[0124] The preset time period is the time for waiting for the user to move the cup. To avoid infinite waiting, a maximum value can be set for the preset time period, but it can also be not set, that is, as long as the cup is moved, it is detected again.
[0125] The present application further proposes a computer storage medium, such as Figure 9 shown, Figure 9 It is a schematic structural diagram of an embodiment of the computer storage medium of the present application. The computer storage medium 90 of the embodiment of the present application stores program instructions internally, and the program instructions are executed to implement the above-mentioned offset detection method of the water receiving container and / or the control method of the beverage output device.
[0126] Among them, the program instructions can form a program file and be stored in the above storage medium in the form of a software product, so that an electronic device (which can be a personal computer, a server, or a network device, etc.) or a processor can execute all or part of the steps of the methods in various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc, or a terminal device such as a computer, a server, a mobile phone, or a tablet.
[0127] The computer storage medium 90 in this embodiment can be, but is not limited to, a USB flash drive, an SD card, a PD optical drive, a mobile hard disk, a high-capacity floppy drive, a flash memory, a multimedia memory card, a server, etc.
[0128] In one embodiment, a computer program product or a computer program is provided. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer storage medium. The processor of the electronic device reads the computer instructions from the computer storage medium, and the processor executes the computer instructions, so that the electronic device executes the steps in the above method embodiments.
[0129] In addition, if the above functions are implemented in the form of software functions and sold or used as an independent product, they can be stored in a storage medium readable by a mobile terminal. That is, the present application also provides a storage device storing program data, and the program data can be executed to implement the methods in the above embodiments. The storage device can be a USB flash drive, an optical disc, a server, etc. That is to say, the present application can be embodied in the form of a software product, which includes several instructions to enable an intelligent terminal to execute all or part of the steps of the methods described in various embodiments.
[0130] In the description of the present application, the descriptions with reference to terms such as "one embodiment", "some embodiments", "example", "specific example", or "some examples" mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.
[0131] The above are only the implementation manners of this application, and do not thus limit the patent scope of this application. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of this application, or directly or indirectly applied in other related technical fields, shall similarly be included within the patent protection scope of this application.
Claims
1. An offset detection method for a water receiving container, characterized in that, it is used for a beverage output device, the beverage output device is provided with a water receiving area and a beverage output port located above the water receiving area, and the offset detection method includes: obtaining first position information of the edge of the water receiving container placed on the water receiving area on the water receiving area; determining whether the water receiving container is offset on the water receiving area based on the first position information and second position information of the beverage output port on the water receiving area.
2. The offset detection method according to claim 1, characterized in that, the obtaining of the first position information of the edge of the water receiving container placed on the water receiving area on the water receiving area includes: obtaining the occlusion area of the water receiving container placed on the water receiving area on the water receiving area; determining the first position information of the edge of the water receiving container on the water receiving area based on the occlusion area.
3. The offset detection method according to claim 1, characterized in that, the determining whether the water receiving container is offset on the water receiving area based on the first position information and second position information of the beverage output port on the water receiving area includes: determining whether the extension line of the central axis of the beverage output port is inside the water receiving container based on the first position information and second position information of the central axis of the beverage output port on the water receiving area; in response to the extension line being inside the water receiving container, determining whether the water receiving container is offset on the water receiving area based on a first difference between the first position information and the second position information.
4. The offset detection method according to claim 3, characterized in that, the determining whether the water receiving container is offset on the water receiving area based on the first difference between the first position information and the second position information includes: in response to the first difference between the first position information and the second position information being greater than a first threshold, determining that the water receiving container is offset on the water receiving area.
5. The offset detection method according to claim 4, characterized in that, the determining whether the water receiving container is offset on the water receiving area based on the first difference between the first position information and the second position information further includes: in response to the first difference being less than or equal to the first threshold, obtaining third position information of the central axis of the water receiving container on the water receiving area; calculating a second difference between the third position information and the second position information; in response to the second difference being greater than a second threshold, determining that the water receiving container is offset on the water receiving area.
6. The offset detection method according to claim 5, characterized in that, the determining whether the water receiving container is offset on the water receiving area based on the difference between the first position information and the second position information further includes: in response to the second difference being less than or equal to the second threshold, determining that the water receiving container is not offset on the water receiving area.
7. The offset detection method according to claim 5, characterized in that, the offset detection method further includes: determining the caliber size of the water receiving container based on the first position information; Determine the first threshold based on the caliber size.
8. The offset detection method according to any one of claims 1-7, wherein, the offset detection method further includes: in response to the change of the first position information, execute the step of obtaining the first position information of the edge of the water receiving container placed on the water receiving area on the water receiving area.
9. A control method for a beverage output device, wherein, comprising: using the offset detection method according to any one of claims 1 to 8 to determine whether the water receiving container is offset; in response to no offset, control the beverage output port to output beverages.
10. The control method according to claim 9, wherein, the control method further includes: in response to an offset, generate a prompt message.
11. A beverage output device, wherein, comprising: a base body provided with a water receiving area; a beverage output mechanism arranged on the base body, and the beverage output port of the beverage output mechanism is located above the water receiving area; a control mechanism connected to the beverage output mechanism for controlling the operation of the beverage output mechanism by using the control method according to claim 9 or claim 10.
12. The beverage output device according to claim 11, wherein, the beverage output mechanism further includes: an infrared array sensor, a plurality of infrared detection elements of the infrared array sensor are arranged in a matrix on the water receiving area and are connected to the control mechanism, the infrared detection elements are used to obtain the first position information of the edge of the water receiving container placed on the water receiving area, and the control mechanism controls the operation of the beverage output mechanism based on the first position information.
13. A computer storage medium, wherein, program instructions are stored thereon, and the program instructions are executed by a processor to implement the offset detection method according to any one of claims 1 to 9, and / or, the control method according to claim 9 or claim 10.
Citation Information
Patent Citations
Water drinking device and control method thereof
CN108245018A
Intelligent water outlet method and system and storage medium
CN111568196A
Water dispenser control method, water dispenser and computer readable storage medium
CN111568225A
Water outlet equipment control method, water outlet equipment and computer readable storage medium
CN111568229A
Water dispenser and water taking method
CN112274005A