CN111568207A - Water dispenser control method, water dispenser and computer readable storage medium - Google Patents

Water dispenser control method, water dispenser and computer readable storage medium Download PDF

Info

Publication number
CN111568207A
CN111568207A CN202010130988.9A CN202010130988A CN111568207A CN 111568207 A CN111568207 A CN 111568207A CN 202010130988 A CN202010130988 A CN 202010130988A CN 111568207 A CN111568207 A CN 111568207A
Authority
CN
China
Prior art keywords
container
water
water dispenser
volume
water outlet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202010130988.9A
Other languages
Chinese (zh)
Inventor
陈小平
吴雪良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Foshan Viomi Electrical Technology Co Ltd
Original Assignee
Foshan Viomi Electrical Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Foshan Viomi Electrical Technology Co Ltd filed Critical Foshan Viomi Electrical Technology Co Ltd
Priority to CN202010130988.9A priority Critical patent/CN111568207A/en
Publication of CN111568207A publication Critical patent/CN111568207A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47JKITCHEN EQUIPMENT; COFFEE MILLS; SPICE MILLS; APPARATUS FOR MAKING BEVERAGES
    • A47J31/00Apparatus for making beverages
    • A47J31/44Parts or details or accessories of beverage-making apparatus
    • A47J31/54Water boiling vessels in beverage making machines
    • A47J31/56Water boiling vessels in beverage making machines having water-level controls; having temperature controls
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47JKITCHEN EQUIPMENT; COFFEE MILLS; SPICE MILLS; APPARATUS FOR MAKING BEVERAGES
    • A47J31/00Apparatus for making beverages
    • A47J31/44Parts or details or accessories of beverage-making apparatus
    • A47J31/4403Constructional details
    • A47J31/4457Water-level indicators
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • G06V10/443Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components by matching or filtering

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Food Science & Technology (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Biomedical Technology (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Biophysics (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Devices For Dispensing Beverages (AREA)

Abstract

The application provides a water dispenser control method, a water dispenser and a computer readable storage medium, wherein the method comprises the following steps: collecting an image of a container placed below a water outlet of the water dispenser to obtain a target image; determining the volume of the container according to the target image and a preset volume determination model, wherein the preset volume determination model is a pre-trained neural network model; and controlling the water outlet of the water dispenser according to the volume, and controlling the water dispenser to stop water outlet when the ratio of the water outlet quantity of the water dispenser to the volume is within a preset range. This application can be based on the volume control water dispenser of different containers and go out water, can be suitable for different volumetric containers, and when the water that can be in the container was about to fill with, the automatic control water dispenser stopped out water, and user manual control is not needed in whole process, very big improvement user experience.

Description

Water dispenser control method, water dispenser and computer readable storage medium
Technical Field
The application relates to the technical field of water dispenser control, in particular to a water dispenser control method, a water dispenser and a computer readable storage medium.
Background
Along with the improvement of living standard of people and the increasing popularization of water dispensers, the functional requirements of people on the water dispensers are also higher and higher. When a user uses the water dispenser, the user is usually required to manually place the container at the water outlet, the user needs to continuously pay attention to the change of the water level in the container when receiving water, the water yield is judged by human eyes, the water outlet and the water cut-off are manually controlled by keys, the whole process needs manual control of the user, the user can cause water overflow by slight carelessness, the waste of water resources is caused, the overflowing hot water can cause scalding and the like, and the user experience is poor. Therefore, how to intelligently control the water outlet of the water dispenser is a problem to be solved urgently at present.
Disclosure of Invention
The main purpose of the present application is to provide a water dispenser control method, a water dispenser and a computer-readable storage medium, which aim to intelligently control the water outlet of the water dispenser and improve the user experience.
In a first aspect, the present application provides a method for controlling a water dispenser, comprising:
collecting an image of a container placed below a water outlet of the water dispenser to obtain a target image;
determining the volume of the container according to the target image and a preset volume determination model, wherein the preset volume determination model is a pre-trained neural network model;
and controlling the water outlet of the water dispenser according to the volume, and controlling the water dispenser to stop water outlet when the ratio of the water outlet quantity of the water dispenser to the volume is within a preset range.
In a second aspect, the present application further provides a water dispenser, where the water dispenser includes a processor, a memory, and a computer program stored on the memory and executable by the processor, where the computer program, when executed by the processor, implements any one of the water dispenser control methods provided in the embodiments of the present application.
In a third aspect, the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, where when the computer program is executed by a processor, the computer program implements any one of the water dispenser control methods provided in the embodiments of the present application.
The application provides a water dispenser control method, a water dispenser and a computer readable storage medium, when a container is placed below a water outlet of the water dispenser, an image containing the container is collected to obtain a target image, a model is determined according to the collected target image and a preset volume, the volume of the container is determined, then water outlet of the water dispenser is controlled according to the volume of the container, and when the ratio of the current water outlet quantity of the water dispenser to the volume of the container is within a preset ratio range, the water dispenser is controlled to stop water outlet. The scheme can control the water dispenser to discharge water according to the volumes of different containers, is suitable for different containers, can automatically control the water dispenser to stop discharging water when the container is filled with water, does not need manual control of a user in the whole process, and greatly improves user experience.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a control method of a water dispenser provided in an embodiment of the present application;
FIG. 2 is a schematic view of a water dispenser provided in the embodiment of the present application, in which no container is placed below the water outlet;
FIG. 3 is a schematic view of a container placed below a water outlet of a water dispenser provided in the embodiment of the present application;
FIG. 4 is a schematic view of a situation in which a container that is not in an empty state is placed under a water outlet of a water dispenser in the embodiment of the present application;
fig. 5 is a schematic block diagram of a structure of a water dispenser provided in the embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The embodiment of the application provides a water dispenser control method, a water dispenser and a computer readable storage medium. The water dispenser control method can be applied to a water dispenser, and can also be applied to a mobile terminal, wherein the mobile terminal comprises a smart phone, a tablet computer or a palm computer, and the like, for example, the mobile terminal can acquire an image of a container placed below a water outlet of the water dispenser, determine a model according to the image and a preset volume, determine the volume of the container, and then control water outlet of the water dispenser according to the volume so as to control the water dispenser to stop water outlet when the ratio of the current water outlet amount of the water dispenser to the volume of the container is within a preset ratio range.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
The following description will be given in detail by taking an example in which the water dispenser control method is applied to a water dispenser.
Referring to fig. 1, fig. 1 is a schematic flow chart of a water dispenser control method according to an embodiment of the present application. As shown in fig. 1, the method for controlling a water dispenser includes steps S101 to S103.
And S101, acquiring an image of a container placed below a water outlet of the water dispenser to obtain a target image.
The type of the container can be flexibly set according to actual needs, and the container is a water cup such as a plastic cup, a ceramic cup, a glass cup or a vacuum cup.
In an embodiment, a camera may be preset around the water outlet of the water dispenser for collecting an image of a container below the water outlet of the water dispenser, wherein the camera may be an infrared camera or other types of cameras, and the specific position where the camera is installed may be flexibly set according to actual needs, for example, the camera may be installed obliquely above the water outlet or near the water outlet, so that the camera may accurately collect an image of a preset area below the water outlet of the water dispenser.
In one embodiment, when no object such as a container is placed below the water outlet of the water dispenser, the image (i.e., the image) collected by the camera is generally fixed, so that when the container for receiving water is not placed below the water outlet of the water dispenser, the image below the water outlet of the water dispenser is collected by the camera preset in the water dispenser to obtain a background image, wherein the background image does not contain the container. As shown in fig. 2, the camera 20 is located around the water outlet 10, and no container is placed below the water outlet 10 of the water dispenser.
When objects such as a container and the like are placed in a water receiving area below the water outlet of the water dispenser, the picture of the area where the container is located is obviously different from the background image, so that the collected image and the background image can be subjected to pixel comparison at the moment, and if the collected image and the background image have pixel difference, the container is determined to be placed below the water outlet of the water dispenser. Whether a container is placed below the water outlet of the water dispenser can be accurately determined through the background image and the current image below the water outlet.
In one embodiment, a pressure sensor is arranged in a water receiving area below a water outlet of the water dispenser, pressure values of the pressure sensor are obtained at intervals of preset time, if the pressure value is larger than a preset pressure value, the water receiving area below the water outlet of the water dispenser can be determined to be placed in a container, and if the pressure value is smaller than or equal to the preset pressure value, the container is not placed in the water receiving area below the water outlet of the water dispenser. As shown in fig. 3, the container for receiving water is placed below the water outlet 10 of the water dispenser.
The preset time and the preset pressure value can be flexibly set according to actual needs, for example, the preset time can be set to 0.5 or 1 second, and the preset pressure value can be 1N or 0.5N. Through setting up pressure sensor, only when the pressure value that pressure sensor gathered is greater than the setting value, just open the camera and gather the image, can reduce the loss, improve the life of camera.
And S102, determining the volume of the container according to the target image and a preset volume determination model, wherein the preset volume determination model is a pre-trained neural network model.
The method comprises the steps of placing containers with different volumes below a water outlet of a water dispenser, controlling a camera of the water dispenser to photograph the containers to obtain container images, marking the volumes of the containers in the container images to obtain a sample data set, and performing iterative training on the neural network model according to the sample data set until the neural network model converges to obtain a volume determination model.
In one embodiment, a container image is obtained from the target image, and the container image is input into a preset container determination model to obtain the volume of the container. The target image and a preset background image are subjected to pixel comparison through a background difference method to obtain a pixel difference, an image area where the pixel difference is located is used as a container image, the preset background image is an image shot by a camera when a container is not placed below a water outlet of the water dispenser, the image below the water outlet of the water dispenser can be collected through the camera preset by the water dispenser to obtain a background image, and the background image does not contain the container.
In one embodiment, the target image is input into a preset volume determination model to obtain a plurality of volumes and an output probability value of each volume; and determining the volume of the container according to the output probability value of each volume, namely taking the volume with the maximum output probability value as the volume of the container placed below the water outlet of the water dispenser. The output probability value is used for representing the reliability of the estimated volume, the higher the output probability value is, the higher the reliability of the volume is, and the lower the output probability value is, the lower the reliability of the volume is. By selecting the volume with the maximum output probability as the volume of the container, the accuracy of the volume is greatly improved, and the subsequent accurate control of water outlet and water outlet stop of the water dispenser is facilitated.
In one embodiment, after obtaining the output probability value of each volume, determining whether the output probability value of at least one volume is greater than or equal to a preset output probability value, and if the output probability value of at least one volume is greater than or equal to the preset output probability value, taking the volume with the maximum output probability value as the volume of a container placed below a water outlet of the water dispenser; if the output probability value of each volume is smaller than the preset output probability value, acquiring a container image from the target image, matching the container image with a preset container image in a preset container image library, and if the preset container image corresponding to the container image is matched, inquiring a preset volume table to acquire the volume corresponding to the matched preset container image, so that the volume of the container is obtained. The preset output probability value may be set based on actual conditions, for example, the preset output probability value is 95% or 90%. Through matching the container image with the preset container image in the preset container image library, the volume of the container can be quickly and accurately acquired, the processing speed is increased, the water dispenser can discharge water in a short time, and the user experience is improved.
Specifically, the similarity between the container image and each preset container image is calculated, whether the preset container image with the similarity larger than or equal to the preset similarity exists is determined, if the preset container image with the similarity larger than or equal to the preset similarity exists, it is determined that the preset container image exists in the preset container image library and is matched with the container image, the preset container image with the maximum similarity is used as an image matched with the container image, and if the preset container image with the similarity larger than or equal to the preset similarity does not exist, it is determined that the preset container image does not exist in the preset container image library and is matched with the container image. The preset similarity may be set according to actual conditions, for example, the preset similarity is 98% or 99%.
The container image library and the volume corresponding to each container image in the container image library are stored in a cloud end or a memory of the water dispenser in advance, different containers are placed below a water outlet by a manufacturer or a user of the water dispenser, the images of the containers placed below the water outlet are shot by a camera, the water outlet of the water dispenser is manually controlled, then when the containers are full of water, the water outlet amount of the water dispenser is recorded, the volume of the containers is obtained, the container images are obtained by cutting from the shot images, the relationship between the container images and the volume is established, and the volume corresponding to each container image in the container image library are obtained.
And S103, controlling the water outlet of the water dispenser according to the volume, and controlling the water dispenser to stop water outlet when the ratio of the water outlet quantity of the water dispenser to the volume is within a preset range.
Specifically, after the volume of a container placed below the water outlet is determined, the water outlet of the water dispenser can be controlled according to the volume, namely the water outlet of the water dispenser is controlled to be opened; in the water outlet process, the current water outlet quantity of the water dispenser is obtained through a flowmeter; and determining the ratio of the current water yield to the volume, determining whether the ratio is within a preset ratio range, if so, controlling the water dispenser to stop water outlet, namely, controlling the water outlet of the water dispenser to be closed, and if not, continuing to control the water outlet of the water dispenser. The preset ratio range can be set according to actual needs, for example, the preset ratio range is 0.8-0.95, 0.85-1, or 0.8-1.
Illustratively, the preset ratio range is 0.8-0.95, the volume of the container is 1 liter, and the current water yield of the water dispenser is 0.75 liter, then the ratio of the current water yield to the volume of the water dispenser can be determined to be 0.75, if 0.75 is not within the preset ratio range of 0.8-0.95, the water dispenser is continuously controlled to discharge water, the current water yield of the water dispenser is increased, and if the current water yield of the water dispenser is increased to 0.82 liter, then the ratio of the current water yield to the volume of the water dispenser can be determined to be 0.82, and if 0,82 is within the preset ratio range of 0.8-0.95, the water dispenser is controlled to stop discharging water.
In one embodiment, when the ratio of the water outlet quantity of the water dispenser to the volume of the container is greater than or equal to a preset ratio, the water dispenser is controlled to stop water outlet. The preset ratio can be set according to actual needs, for example, the preset ratio is 0.8, 0.85, or 0.9.
In one embodiment, after determining the volume of the container, determining whether the container is in an empty state, that is, determining whether the container is filled with the part of water by a camera, if the container is filled with the part of water, determining that the container is not in the empty state, and if the container is not filled with the water, determining that the container is in the empty state; if the container is in an idle state, the water outlet of the water dispenser is controlled according to the volume of the container, and the water dispenser is controlled to stop water outlet when the ratio of the water outlet quantity to the volume of the water dispenser is within a preset range.
In one embodiment, because there is water in the container, when the user places the container below the water outlet, the water in the container can rock, produce tension, can form the adhesion effect at the container inner wall to show optical characteristics such as unusual refraction effect in optics, from the perspective of visual identification technique, this kind of optical characteristics can catch and discern through the camera. Therefore, in the process that a user places the container to the water outlet, after a current image containing the container is acquired, whether a water surface boundary generated based on the tension formed between the container and the water exists in the current image or not is determined, if the water surface boundary exists, the container is determined not to be in an unloaded state, and if the water surface boundary does not exist, the container is determined to be in the unloaded state. That is, the water in the container can shake to generate tension, so that the water surface fluctuates, and an obvious reflective boundary is arranged at the boundary of the inner wall of the container, so that the boundary of the water surface can be obtained through image analysis. For example, the last current image in the current images of multiple frames is compared with the previous N (the specific value of N is flexibly set according to actual needs) images, so as to obtain an area with obvious brightness difference, which is the area of the current water surface, i.e. the water surface boundary. As shown in fig. 4, the vessel is not in an empty state and a water surface boundary 30 is present in the vessel.
In one embodiment, if the container is not in an unloaded state, determining a weight value of the container capable of containing water according to the volume of the container to obtain a first weight value; acquiring a current weight value of the container through a weight sensor arranged on a storage platform of the water dispenser to obtain a second weight value; controlling the water outlet of the water dispenser, and acquiring the current weight value of the container through the weight sensor in the water outlet process to obtain a third weight value; and if the difference value between the first weight value and the second weight value and the difference value between the second weight value and the third weight value meet the preset condition, controlling the water dispenser to stop discharging water.
The difference value between the first weight value and the second weight value is the weight value of the remaining water which can be contained in the container, and the difference value between the second weight value and the third weight value is the weight value of the container which receives water in the water receiving process, so that the preset condition can be that the absolute value of the difference value between the weight value of the received water and the weight value of the remaining water which can be contained in the container is smaller than a preset threshold value, and the preset threshold value can be set according to the actual situation, for example, the preset threshold value is 20 grams or 10 grams.
In one embodiment, after the volume of the container placed below the water outlet is determined, whether the container opening of the container is positioned in the water outlet range of the water outlet is determined; if the container port of the container is positioned in the water outlet range of the water outlet, controlling the water outlet of the water dispenser according to the volume, and controlling the water dispenser to stop water outlet when the ratio of the current water outlet quantity of the water dispenser to the volume of the container is positioned in a preset ratio range; and if the container port of the container is not positioned in the water outlet range of the water outlet, executing preset reminding operation to remind a user that the container is not positioned in the water outlet range of the water outlet. Wherein, the preset reminding operation comprises at least one of the following operations: broadcasting a preset reminding sound, lighting a preset breathing lamp and displaying preset reminding information. Can avoid water to splash outside the container, reduce the potential safety hazard, improve user experience.
In an embodiment, the water dispenser includes a storage platform and a water outlet, the storage platform is located below the water outlet, the storage platform is provided with a pressure sensor, the position of the pressure sensor is located under the water outlet, and the mode of determining whether the container port of the container is located within the water outlet range of the water outlet may be: acquiring a pressure value acquired by the pressure sensor, and determining whether the pressure value is greater than a preset pressure value; if the pressure value is larger than the preset pressure value, determining that the container opening of the container is positioned in the water outlet range of the water outlet; and if the pressure value is less than or equal to the preset pressure value, determining that the container opening of the container is not positioned in the water outlet range of the water outlet. Through set up pressure sensor in the play water range of delivery port, whether the container mouth of definite container that can be convenient and accurate is located the play water range of delivery port, can avoid water splash to fall outside the container, reduces the potential safety hazard, improves user experience.
In an embodiment, the central region of the placement platform is located within the water outlet range of the water outlet, and the determining whether the container mouth of the container is located within the water outlet range of the water outlet may further be: controlling a camera around the water outlet to perform a downward shooting on the container to obtain a downward shot image, wherein the downward shot image comprises an imaging area of the container opening and an imaging area of the storage platform; determining whether an imaging region of the receptacle port is located in a center region of an imaging region of the placement platform; if the imaging area of the container opening is located in the central area of the imaging area of the storage platform, determining that the container opening of the container is located in the water outlet range of the water outlet; and if the imaging area of the container opening is not positioned in the central area of the imaging area of the object placing platform, determining that the container opening of the container is not positioned in the water outlet range of the water outlet. Whether the container opening of the container is positioned in the water outlet range of the water outlet can be determined through the camera, no additional devices are needed, and the structural complexity of the water dispenser is reduced.
According to the embodiment of the application, when the container is placed below the water outlet of the water dispenser, the image containing the container is collected to obtain the target image, the model is determined according to the collected target image and the preset volume to determine the volume of the container, then the water outlet of the water dispenser is controlled according to the volume of the container, and the water dispenser is controlled to stop water outlet when the ratio of the current water outlet quantity of the water dispenser to the volume of the container is within the preset ratio range. The scheme can control the water dispenser to discharge water according to the volumes of different containers, is suitable for different containers, can automatically control the water dispenser to stop discharging water when the container is filled with water, does not need manual control of a user in the whole process, and greatly improves user experience.
Referring to fig. 5, fig. 5 is a schematic block diagram of a structure of a water dispenser provided in the embodiment of the present application.
As shown in fig. 5, the water dispenser 200 includes a processor 202, a memory 203 and a communication interface 204 connected by a system bus 201, wherein the memory 203 may include a nonvolatile storage medium and an internal memory.
The non-volatile storage medium may store a computer program. The computer program includes program instructions that, when executed, cause a processor to perform any one of the water dispenser control methods.
The processor 202 is used to provide computing and control capabilities to support the operation of the overall water dispenser.
The memory 203 provides an environment for running a computer program in a non-volatile storage medium, which when executed by the processor 202, causes the processor 202 to perform any one of the water dispenser control methods.
The communication interface 204 is used for communication. It will be understood by those skilled in the art that the configuration shown in figure 5 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation on the water dispenser to which the present application is applied, and that a particular water dispenser may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
It should be understood that the bus 201 is, for example, an I2C (Inter-Integrated Circuit) bus, the Memory 203 may be a Flash chip, a Read-Only Memory (ROM), a magnetic disk, an optical disk, a usb disk, or a removable hard disk, the Processor 202 may be a Central Processing Unit (CPU), and the Processor may also be other general-purpose processors, Digital Signal Processors (DSP), Application Specific Integrated Circuits (ASIC), Field Programmable Gate Arrays (FPGA) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein, in one embodiment, the processor 202 is configured to run a computer program stored in the memory 203 to implement the following steps:
collecting an image of a container placed below a water outlet of the water dispenser to obtain a target image;
determining the volume of the container according to the target image and a preset volume determination model, wherein the preset volume determination model is a pre-trained neural network model;
and controlling the water outlet of the water dispenser according to the volume, and controlling the water dispenser to stop water outlet when the ratio of the water outlet quantity of the water dispenser to the volume is within a preset range.
In one embodiment, the processor 202, in implementing determining the volume of the container based on the target image and a preset volume determination model, is configured to implement:
inputting the target image into a preset volume determination model to obtain a plurality of volumes and an output probability value of each volume;
determining the volume of the container based on the output probability value for each of the volumes.
In one embodiment, the processor 202, in implementing determining the volume of the container based on the target image and a preset volume determination model, is configured to implement:
acquiring a container image from the target image;
and inputting the container image into a preset container determination model to obtain the volume of the container.
In one embodiment, the processor 202 is further configured to:
and in the water outlet process, the water outlet quantity of the water dispenser is obtained through a preset flow meter.
In one embodiment, the processor 202, before effecting controlling the water dispenser to output water according to the volume, is further adapted to effect:
determining whether the container is in an empty condition;
if the container is in an unloaded state, executing the following steps: and controlling the water outlet of the water dispenser according to the volume, and controlling the water dispenser to stop water outlet when the ratio of the water outlet quantity of the water dispenser to the volume is within a preset range.
In one embodiment, the placement platform of the water dispenser is provided with a weight sensor; the processor 202, after effecting the determination of whether the container is in an empty state, is further operative to effect:
if the container is not in an unloaded state, determining a weight value of the container capable of containing water according to the volume to obtain a first weight value;
acquiring a current weight value of the container through the weight sensor to obtain a second weight value;
controlling the water outlet of the water dispenser, and acquiring the current weight value of the container through the weight sensor in the water outlet process to obtain a third weight value;
and if the difference value between the first weight value and the second weight value and the difference value between the second weight value and the third weight value meet a preset condition, controlling the water dispenser to stop discharging water.
In one embodiment, the processor 202, before effecting controlling the water dispenser to output water according to the volume, is further adapted to effect:
determining whether a container opening of the container is positioned in a water outlet range of the water outlet;
if the container mouth of the container is positioned in the water outlet range of the water outlet, executing the following steps: controlling the water outlet of the water dispenser according to the volume;
and if the container port of the container is not positioned in the water outlet range of the water outlet, executing preset reminding operation to remind a user that the container is not positioned in the water outlet range of the water outlet.
In an embodiment, the preset reminding operation includes at least one of the following operations: broadcasting a preset reminding sound, lighting a preset breathing lamp and displaying preset reminding information.
It should be noted that, as will be clearly understood by those skilled in the art, for convenience and brevity of description, the specific working process of the water dispenser described above may refer to the corresponding process in the foregoing embodiment of the water dispenser control method, and is not described herein again.
According to the embodiment of the application, when the container is placed below the water outlet of the water dispenser, the image containing the container is collected to obtain the target image, the model is determined according to the collected target image and the preset volume to determine the volume of the container, then the water outlet of the water dispenser is controlled according to the volume of the container, and the water dispenser is controlled to stop water outlet when the ratio of the current water outlet quantity of the water dispenser to the volume of the container is within the preset ratio range. The scheme can control the water dispenser to discharge water according to the volumes of different containers, is suitable for different containers, can automatically control the water dispenser to stop discharging water when the container is filled with water, does not need manual control of a user in the whole process, and greatly improves user experience.
Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, where the computer program includes program instructions, and a method implemented when the program instructions are executed may refer to various embodiments of a water dispenser control method of the present application.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
The computer-readable storage medium may be an internal storage unit of the water dispenser described in the foregoing embodiment, for example, a hard disk or a memory of the water dispenser. The computer readable storage medium may also be an external storage device of the water dispenser, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the water dispenser. As the computer program stored in the computer-readable storage medium can execute any one of the water dispenser control methods provided in the embodiments of the present application, the beneficial effects that can be realized by any one of the water dispenser control methods provided in the embodiments of the present application can be realized, which are detailed in the foregoing embodiments and will not be described herein again.
It is to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments. While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and various equivalent modifications or substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A control method of a water dispenser is characterized by comprising the following steps:
collecting an image of a container placed below a water outlet of the water dispenser to obtain a target image;
determining the volume of the container according to the target image and a preset volume determination model, wherein the preset volume determination model is a pre-trained neural network model;
and controlling the water outlet of the water dispenser according to the volume, and controlling the water dispenser to stop water outlet when the ratio of the water outlet quantity of the water dispenser to the volume is within a preset range.
2. The water dispenser control method of claim 1, wherein the determining the volume of the container based on the target image and a preset volume determination model comprises:
inputting the target image into a preset volume determination model to obtain a plurality of volumes and an output probability value of each volume;
determining the volume of the container based on the output probability value for each of the volumes.
3. The water dispenser control method of claim 1, wherein the determining the volume of the container based on the target image and a preset volume determination model comprises:
acquiring a container image from the target image;
and inputting the container image into a preset container determination model to obtain the volume of the container.
4. The water dispenser control method of claim 1, further comprising:
and in the water outlet process, the water outlet quantity of the water dispenser is obtained through a preset flow meter.
5. The water dispenser control method according to any one of claims 1 to 4, characterized in that before controlling the water dispenser to discharge water according to the volume, the method further comprises:
determining whether the container is in an empty condition;
if the container is in an unloaded state, executing the following steps: and controlling the water outlet of the water dispenser according to the volume, and controlling the water dispenser to stop water outlet when the ratio of the water outlet quantity of the water dispenser to the volume is within a preset range.
6. The water dispenser control method of claim 5, wherein a weight sensor is arranged on a storage platform of the water dispenser; after determining whether the container is in an empty state, the method further comprises:
if the container is not in an unloaded state, determining a weight value of the container capable of containing water according to the volume to obtain a first weight value;
acquiring a current weight value of the container through the weight sensor to obtain a second weight value;
controlling the water outlet of the water dispenser, and acquiring the current weight value of the container through the weight sensor in the water outlet process to obtain a third weight value;
and if the difference value between the first weight value and the second weight value and the difference value between the second weight value and the third weight value meet a preset condition, controlling the water dispenser to stop discharging water.
7. The water dispenser control method according to any one of claims 1 to 4, characterized in that before controlling the water dispenser to discharge water according to the volume, the method further comprises:
determining whether a container opening of the container is positioned in a water outlet range of the water outlet;
if the container mouth of the container is positioned in the water outlet range of the water outlet, executing the following steps: controlling the water outlet of the water dispenser according to the volume;
and if the container port of the container is not positioned in the water outlet range of the water outlet, executing preset reminding operation to remind a user that the container is not positioned in the water outlet range of the water outlet.
8. The water dispenser control method according to claim 7, wherein the preset reminding operation comprises at least one of the following: broadcasting a preset reminding sound, lighting a preset breathing lamp and displaying preset reminding information.
9. A water dispenser, characterized in that the water dispenser comprises a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program, when executed by the processor, implements the steps of the water dispenser control method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, wherein the computer program, when being executed by a processor, realizes the steps of the water dispenser control method according to any one of claims 1 to 8.
CN202010130988.9A 2020-02-28 2020-02-28 Water dispenser control method, water dispenser and computer readable storage medium Withdrawn CN111568207A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010130988.9A CN111568207A (en) 2020-02-28 2020-02-28 Water dispenser control method, water dispenser and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010130988.9A CN111568207A (en) 2020-02-28 2020-02-28 Water dispenser control method, water dispenser and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111568207A true CN111568207A (en) 2020-08-25

Family

ID=72120921

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010130988.9A Withdrawn CN111568207A (en) 2020-02-28 2020-02-28 Water dispenser control method, water dispenser and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111568207A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113989510A (en) * 2021-12-28 2022-01-28 深圳市万物云科技有限公司 River drainage outlet overflow detection method and device and related equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130037973A1 (en) * 2011-08-09 2013-02-14 Oscar Lavaque Variable pressure device for solubilizing carbon dioxide in a beverage
CN104720596A (en) * 2013-12-21 2015-06-24 陕西龙运科技发展有限公司 Automatic water dispenser
CN205991826U (en) * 2016-08-31 2017-03-01 佛山市云米电器科技有限公司 Condensate tank of dehumidifier
CN106757976A (en) * 2017-01-22 2017-05-31 无锡小天鹅股份有限公司 Washing machine and its control method of washing and device based on image recognition clothing volume
CN106859334A (en) * 2017-01-22 2017-06-20 广西喜爱家饮水设备有限公司 A kind of home intelligent water dispenser
CN108567330A (en) * 2018-05-29 2018-09-25 陈泽涛 Water dispenser control method, device, water dispenser and computer readable storage medium
CN109349913A (en) * 2018-10-23 2019-02-19 杭州若奇技术有限公司 Cooking control method, cooking apparatus, Cloud Server and culinary art control system
CN109770715A (en) * 2018-11-29 2019-05-21 珠海格力电器股份有限公司 A kind of intelligent drinking machine and its control method
CN110432780A (en) * 2019-08-07 2019-11-12 佛山市顺德区美的饮水机制造有限公司 Control method, device, water dispenser and the machine readable storage medium of water dispenser
CN110742511A (en) * 2019-10-31 2020-02-04 珠海格力电器股份有限公司 Water outlet control method and device for water purifying dispenser, storage medium and water purifying dispenser

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130037973A1 (en) * 2011-08-09 2013-02-14 Oscar Lavaque Variable pressure device for solubilizing carbon dioxide in a beverage
CN104720596A (en) * 2013-12-21 2015-06-24 陕西龙运科技发展有限公司 Automatic water dispenser
CN205991826U (en) * 2016-08-31 2017-03-01 佛山市云米电器科技有限公司 Condensate tank of dehumidifier
CN106757976A (en) * 2017-01-22 2017-05-31 无锡小天鹅股份有限公司 Washing machine and its control method of washing and device based on image recognition clothing volume
CN106859334A (en) * 2017-01-22 2017-06-20 广西喜爱家饮水设备有限公司 A kind of home intelligent water dispenser
CN108567330A (en) * 2018-05-29 2018-09-25 陈泽涛 Water dispenser control method, device, water dispenser and computer readable storage medium
CN109349913A (en) * 2018-10-23 2019-02-19 杭州若奇技术有限公司 Cooking control method, cooking apparatus, Cloud Server and culinary art control system
CN109770715A (en) * 2018-11-29 2019-05-21 珠海格力电器股份有限公司 A kind of intelligent drinking machine and its control method
CN110432780A (en) * 2019-08-07 2019-11-12 佛山市顺德区美的饮水机制造有限公司 Control method, device, water dispenser and the machine readable storage medium of water dispenser
CN110742511A (en) * 2019-10-31 2020-02-04 珠海格力电器股份有限公司 Water outlet control method and device for water purifying dispenser, storage medium and water purifying dispenser

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113989510A (en) * 2021-12-28 2022-01-28 深圳市万物云科技有限公司 River drainage outlet overflow detection method and device and related equipment
CN113989510B (en) * 2021-12-28 2022-03-11 深圳市万物云科技有限公司 River drainage outlet overflow detection method and device and related equipment

Similar Documents

Publication Publication Date Title
CN111568245A (en) Water dispenser control method, water dispenser and computer readable storage medium
CN111568242A (en) Water dispenser control method, water dispenser and computer readable storage medium
CN111568179A (en) Water dispenser control method, water dispenser and computer readable storage medium
CN111568208A (en) Water dispenser control method, water dispenser and computer readable storage medium
CN111568207A (en) Water dispenser control method, water dispenser and computer readable storage medium
CN111568185A (en) Control method of water dispenser, water dispenser and computer readable storage medium
CN111568212A (en) Water dispenser control method, water dispenser and computer readable storage medium
CN111568243A (en) Electric kettle control method, electric kettle and computer readable storage medium
CN111568230A (en) Water outlet control method of water dispenser, water dispenser and computer readable storage medium
CN111568236A (en) Water dispenser control method, water dispenser and computer readable storage medium
CN111568235A (en) Water dispenser control method, water dispenser and computer readable storage medium
CN111568193A (en) Water outlet device control method, water outlet device and computer readable storage medium
CN111568226A (en) Water outlet control method of water dispenser, water dispenser and computer readable storage medium
CN111568217A (en) Water dispenser control method, water dispenser and computer readable storage medium
CN111568211A (en) Water dispenser control method, water dispenser and computer readable storage medium
CN111568239A (en) Water dispenser control method, water dispenser and computer readable storage medium
CN111568223A (en) Water dispenser control method, water dispenser and computer readable storage medium
CN111568229A (en) Water outlet device control method, water outlet device and computer readable storage medium
CN111568215B (en) Water dispenser control method, water dispenser and computer readable storage medium
CN111568209A (en) Water dispenser control method, water dispenser and computer readable storage medium
CN111568233A (en) Water dispenser control method, water dispenser and computer readable storage medium
CN111642975A (en) Water outlet control method, water dispenser and computer readable storage medium
CN111568232A (en) Water outlet control method of water dispenser, water dispenser and computer readable storage medium
CN111568201A (en) Water outlet control method, water dispenser and computer readable storage medium
CN111568240A (en) Water outlet control method of water dispenser, water dispenser and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20200825

WW01 Invention patent application withdrawn after publication