CN111568223A - 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
CN111568223A
CN111568223A CN202010132782.XA CN202010132782A CN111568223A CN 111568223 A CN111568223 A CN 111568223A CN 202010132782 A CN202010132782 A CN 202010132782A CN 111568223 A CN111568223 A CN 111568223A
Authority
CN
China
Prior art keywords
container
water
water outlet
image
water dispenser
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.)
Pending
Application number
CN202010132782.XA
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 CN202010132782.XA priority Critical patent/CN111568223A/en
Publication of CN111568223A publication Critical patent/CN111568223A/en
Pending 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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • 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)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Food Science & Technology (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Computation (AREA)
  • Evolutionary Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Multimedia (AREA)
  • Life Sciences & Earth 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: acquiring a target image of a container below a water outlet of the water dispenser, and acquiring a container image from the target image; generating a water outlet control interface based on the container image, wherein the water outlet control interface comprises a control area for setting water containing parameters of the container; determining water filling parameters of the container according to the triggering operation of a user on the control area; and controlling the water outlet of the water dispenser according to the target image and the water containing parameters. According to the intelligent control water dispenser, water can be intelligently controlled to flow out according to the requirements of the user, the water dispenser does not need to be manually controlled by the user to stop flowing out, and the user experience is greatly improved.

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 gradual improvement of living standard, the water dispenser has gone into thousands of families, and when the user used the water dispenser, the user was usually required the user to manually place the container in the delivery port below, then manual control water dispenser goes out water, packs into the container, and when the water in the container reached the degree of wanting, the user again manual control water dispenser stopped to go out water, required the user to control the opportunity of cutting off water by oneself, not intelligent enough.
In the prior art, the water level of the water container can be detected through the camera, and the automatic stop of water outlet of the water dispenser is realized. However, when the camera controls the water outlet of the water dispenser, the water outlet amount every time is a fixed value set by a user, and cannot be adjusted in real time according to the amount of water which the user wants to drink every time, so that the user experience is not good.
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:
acquiring a target image of a container below a water outlet of the water dispenser, and acquiring a container image from the target image;
generating a water outlet control interface based on the container image, wherein the water outlet control interface comprises a control area for setting water containing parameters of the container;
determining water filling parameters of the container according to the triggering operation of a user on the control area;
and controlling the water outlet of the water dispenser according to the target image and the water containing parameters.
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 embodiment of the application acquires a target image of a container below a water outlet of a water dispenser, acquires the container image from the target image, generates a water outlet control interface based on the container image, the water outlet control interface comprises a control area for setting water containing parameters of the container, determines the water containing parameters of the container according to triggering operation of a user on the control area, and controls water outlet of the water dispenser according to the target image and the water containing parameters.
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 diagram of a container not in the water outlet range of a water dispenser according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a display container image in a control area provided by an embodiment of the present application;
FIG. 5 is a schematic diagram of displaying a plurality of parameters in a control area provided by an embodiment of the present application;
FIG. 6 is a flow chart illustrating the sub-steps of the control method of the water dispenser in FIG. 1;
fig. 7 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 personal computer or a palm computer, for example, a target image of a container below a water outlet of the water dispenser can be acquired through the mobile terminal, the container image is acquired from the target image, a water outlet control interface is generated based on the container image, the water outlet control interface comprises a control area for setting water containing parameters of the container, the water containing parameters of the container are determined according to triggering operation of a user on the control area, and water outlet of the water dispenser is controlled according to the target image and the water containing parameters.
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 S104.
S101, acquiring a target image of a container below a water outlet of the water dispenser, and acquiring a container image from the target image.
The water dispenser comprises a water outlet, a shooting device is arranged around the water outlet, the shooting device can be a monocular shooting device and a binocular shooting device, and the shooting device comprises an infrared camera, a 2D camera, a depth camera and the like. The container comprises a plastic cup, a ceramic cup, a glass cup, a vacuum cup or other water cups. It should be noted that, the target image of the container below the water outlet of the water dispenser is acquired by the shooting device, and the specific position where the shooting device is installed can be flexibly set according to actual needs, for example, the shooting device can be installed obliquely above the water outlet or close to the position of the water outlet, so that the shooting device can accurately acquire the image of the preset area below the water outlet of the water dispenser to obtain the target image of the container below the water outlet.
It should be noted that the installation position of the shooting device is fixed, and when no object such as a container is placed in the water receiving area below the water outlet of the water dispenser, the image collected by the shooting device is fixed. Therefore, 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 through the shooting device to obtain a background image, and the background image does not contain the container; 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 image acquired by the shooting device can be subjected to pixel comparison with the background image, and if the acquired image is different from the background image in pixel, the container is determined to be placed below the water outlet of the water dispenser.
Exemplarily, as shown in fig. 2, the photographing device 20 is located around the water outlet 10, and a container for receiving water is not placed in a water receiving area below the water outlet 10 of the water dispenser, and at this time, a plurality of images collected by the photographing device 20 are the same. 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.
After a target image of a container below a water outlet of the water dispenser is acquired, a container image is acquired from the target image. Specifically, an infrared camera preset in the water dispenser is used for acquiring an image below a water outlet of the water dispenser to obtain a background image, and the background image does not contain a container. When objects such as a container and the like are placed in a water receiving area below a water outlet of the water dispenser, the picture of the area where the container is located can be obviously different from the background image, so that the collected container image and the background image can be subjected to pixel comparison, for example, the container image and the background image are subjected to difference processing to obtain pixel difference, the pixel difference can be pixels of the area where the pixel value in the container image is not matched with the pixel value in the background image, the area where the container is located can be determined according to the area where the pixel difference is located, and the container image can be cut from the target image. By the background difference method, the container image can be quickly acquired from the target image, and the processing speed is improved.
In an embodiment, the background image may also be acquired in real time, specifically, the camera is controlled to acquire an image below the water outlet of the water dispenser at preset time intervals to obtain a multi-frame image, the preset time may be flexibly set according to time requirements, for example, the preset time may be set to 0.5 or 1 second, and when the preset time is set to 0.5, 6 frames of images may be acquired within 3 seconds. And then comparing the multiple frames of images, and judging whether the difference between the multiple frames of images is smaller than a preset threshold value, wherein the preset threshold value can be flexibly set according to actual needs. When the difference between each frame of image in the multiple frames of images is smaller than a preset threshold value, it is indicated that no container is placed below the water outlet of the water dispenser, at this time, one image can be selected from the multiple frames of images as a background image, and for example, the first frame or the last frame of image collected can be used as the background image.
In one embodiment, when a container is placed below a water outlet, whether a container opening of the container placed below the water outlet is within a water outlet range of the water outlet is determined; if the container mouth of the container is not in the water outlet range of the water outlet, executing a preset reminding operation to remind a user that the container mouth of the container is not placed in the water outlet range of the water outlet; and if the container opening of the container is positioned in the water outlet range of the water outlet, continuing to execute the current operation. Wherein, the preset reminding operation comprises at least one of the following steps: 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.
For example, as shown in fig. 3, a container for receiving water is placed below the water outlet 10, the photographing device 20 is located around the water outlet 10, and when it is determined by the photographing device 20 that the container mouth of the container is not within the water outlet range of the water outlet 10, the preset breathing lamp 30 is turned on to remind the user that the container mouth of the container is not within the water outlet range of the water outlet.
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 shooting device around the water outlet to shoot the container in a downward mode 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 shooting device, no additional devices are needed, and the structural complexity of the water dispenser is reduced.
And S102, generating a water outlet control interface based on the container image, wherein the water outlet control interface comprises a control area for setting water containing parameters of the container.
The water containing parameters at least comprise the water containing amount, the water containing type (cold water or warm water), the water containing temperature and the like of water to be contained in the container, and the shape, the size, the color and the like of the control area can be flexibly set by a user.
In one embodiment, the method for generating the water outlet control interface based on the container image comprises the following steps: matching the container image with a preset container image in a preset container image library; if the preset container image corresponding to the container image is matched, generating a water outlet control interface comprising the preset container image; and if the preset container image corresponding to the container image is not matched, generating a water outlet control interface comprising the container image.
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, and the preset container image with the maximum similarity is used as the 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, determining 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 97%.
Further, when it is determined that the preset container image does not exist in the preset container image library and is matched with the container image, that is, the preset container image corresponding to the container image is not matched, a water outlet control interface including the container image is generated. At this time, the control area of the water outlet control interface comprises a container image. For example, as shown in fig. 4, a user may set a water fill parameter for a container based on a container image in a control area, such as clicking on a cup of the container image to determine the water fill level of the container.
In one embodiment, the control area includes a plurality of parameters for a user to set a water parameter of the container based on the plurality of parameters. It should be noted that the display strategy of the plurality of parameters in the control area may be obtained based on historical habit data corresponding to the container image. It can be understood that the display strategy of the multiple parameters in the control area may also be flexibly set according to actual needs, for example, the multiple parameters may be displayed in an n × m array or n × m + a within the effluent control interface according to preset intervals, and n, m, and a may be flexibly set according to actual needs; or receiving a setting instruction input by a user, and displaying a plurality of parameters such as preset number, size, display position, shape, color and the like in the water outlet control interface according to the setting instruction; and so on. The areas where the parameters are located can be not overlapped, the number, the size, the display position, the shape, the color and the like of the areas where the parameters are located can be flexibly set according to actual needs, and specific contents are not limited here. For example, as shown in fig. 5, the control area includes a plurality of parameters, such as the water type of the container (cold, warm or hot water), the water temperature, the water amount, and the switch control, based on which the user sets the water parameter of the container. For example, if the user clicks on the "cold water" area and the "100 ml" area and then clicks on the "open" area, the water parameters of the container are cold water "and" 100 ml ". Alternatively, the user may click on the "200 ml" area, and the water parameter of the container is "200 ml".
And step S103, determining water filling parameters of the container according to the triggering operation of the user on the control area.
The trigger operation may be flexibly set according to actual needs, for example, the trigger operation may include inputting a touch trajectory generated by a sliding operation in the control area, or a trigger position when triggering is performed on the control area.
In one embodiment, the water holding parameter of the container is determined by: acquiring the triggering operation of a user on the control area; determining a trigger position of the trigger operation on the control area; and determining the water level height of the container according to the trigger position. The trigger position may include a click position generated by inputting a click operation in the control area, or may include a press position generated by inputting a press operation in the control area. When a plurality of trigger positions are determined, the dwell time, the trigger time point, the contact area and/or the contact pressure and the like corresponding to each trigger position are obtained, and the trigger position of the trigger operation on the control area is determined according to the dwell time, the trigger time point, the contact area and/or the contact pressure and the like corresponding to each trigger position, for example, the trigger position with the longest dwell time or the trigger time point with the latest trigger time point is selected as the target trigger position. The water level height of the container can be quickly determined by determining the trigger position of the user for triggering operation, so that the user can know the water amount the user wants to drink, and the user experience is improved.
Further, the determining the water level height of the container according to the trigger position comprises: generating a scale mark parallel to the ground on the water outlet control interface based on the trigger position; determining whether the scale mark intersects a receptacle in the outlet control interface; if the scale mark intersects with a container in the water outlet control interface, acquiring an intersection point of the scale mark and the container; and determining the distance between the intersection point and the bottom of the container to obtain the water level height of the container.
Illustratively, as shown in fig. 4, a graduation line L1 parallel to the ground is generated based on the trigger position D1, the graduation line L1 intersects with the container in the water outlet control interface, and the distance H1 between the intersection point and the bottom of the container, namely the height of the water level of the container is H1, can be determined. And a graduation line L2 parallel to the ground is generated based on the trigger position D2, the graduation line L2 does not intersect with the container in the water outlet control interface, the trigger position D2 is not effective, and the trigger position needs to be determined again to determine the water level height of the container.
And step S104, controlling the water outlet of the water dispenser according to the target image and the water containing parameters.
And after the water filling parameters of the container are determined, determining the water outlet parameters of the water dispenser according to the target image and the water filling parameters, and controlling the water outlet of the water dispenser according to the water outlet parameters. Wherein the water outlet parameters comprise water outlet time length, water outlet quantity, water outlet types (cold water, warm water and hot water) and water outlet temperature. The water outlet of the water dispenser is controlled according to the target image and the water containing parameters, the intelligence of the water dispenser is improved, a user does not need to manually control the water dispenser to stop water outlet, and the user experience is improved.
In an embodiment, as shown in fig. 6, the step S104 includes sub-steps S1041 to S1042, which are described as follows.
Step S1041, determining the volume of the container according to the target image;
in one embodiment, the target image is input into a preset volume determination model, and a plurality of volumes and output probability values corresponding to the volumes are obtained; and determining the volume of the container according to the output probability value corresponding to each volume. 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 shoot the containers to obtain container images, marking the volumes of the containers in the container images to obtain a sample data set, and carrying out iterative training on the neural network model according to the sample data set until the neural network model converges to obtain the 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 volume accuracy is greatly improved, and the subsequent accurate control of the water outlet 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 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.
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 S1042, determining the water outlet parameter of the water dispenser according to the volume and the water containing parameter, and controlling water outlet according to the water outlet parameter.
In one embodiment, the water outlet quantity of the water dispenser is determined according to the volume and the volume percentage in the water containing parameter. The volume percentage is the percentage of the volume of the target container to be filled with water, and the volume percentage is determined according to a trigger operation of a user, for example, the user clicks the water yield of the container in the control area, and the water yield is characterized by the volume percentage. And multiplying the volume of the container by the volume percentage in the water containing parameter to obtain the water yield of the water dispenser. And a flow counting meter is arranged at the water outlet of the water dispenser and used for measuring the water flow flowing out of the water outlet, and when the water flow flowing out of the water outlet reaches the water outlet, the water outlet of the water dispenser is controlled to be closed.
In one embodiment, the container height of the container on the water outlet control interface and the water level height in the water containing parameters are obtained; determining a water level height ratio according to the container height and the water level height; and determining the water outlet quantity of the water dispenser according to the volume and water level height ratio. It should be noted that the height of the container and the height of the water level can be determined according to the coordinates of each point of the container on the water outlet control interface, the height ratio of the water level is the ratio between the height of the container and the height of the water level, the value of the height ratio of the water level is in the interval between 0 and 1, and the product of the volume of the container and the height ratio of the water level is calculated to obtain the water outlet quantity of the water dispenser. For example, when the volume of the container is 200 ml and the water level height ratio is 0.5, the water outlet quantity of the water dispenser can be calculated to be 100 ml, and the water dispenser is controlled to flow 100 ml of water.
In one embodiment, if the distance between the water surface boundary of the container and the container opening is less than or equal to the preset distance, it can be determined that the container is filled with water, and therefore, the water dispenser can be controlled to stop water outlet, so that the water in the container cannot overflow. Specifically, the actual height of the container is determined through the current image of the container, and the height of the water surface boundary in the container is determined according to the current image; and determining the difference value between the actual height of the container and the height of the water surface boundary, determining whether the absolute value of the difference value is less than or equal to a preset threshold value, and controlling the water dispenser to stop discharging water if the absolute value of the difference value is less than or equal to the preset threshold value.
According to the embodiment of the application, the target image of the container below the water outlet of the water dispenser is collected, the container image is obtained from the target image, the water outlet control interface is generated based on the container image and comprises the control area used for setting the water containing parameters of the container, the water containing parameters of the container are determined according to the triggering operation of a user on the control area, and finally the water outlet of the water dispenser is controlled according to the target image and the water containing parameters.
Referring to fig. 7, fig. 7 is a schematic block diagram of a structure of a water dispenser provided in the embodiment of the present application.
As shown in fig. 7, 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, and the communication interface 204 is used for communication.
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 water dispenser 200 may further include a water outlet and a placement platform, the water outlet is located above the placement platform, and cameras are arranged around the water outlet and used for collecting target images of a container below the water outlet of the water dispenser.
It will be understood by those skilled in the art that the structure shown in figure 7 is a block diagram of only a portion of the structure 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:
acquiring a target image of a container below a water outlet of the water dispenser, and acquiring a container image from the target image;
generating a water outlet control interface based on the container image, wherein the water outlet control interface comprises a control area for setting water containing parameters of the container;
determining water filling parameters of the container according to the triggering operation of a user on the control area;
and controlling the water outlet of the water dispenser according to the target image and the water containing parameters.
In one embodiment, the processor 202, when implementing the controlling of the water outlet of the water dispenser according to the target image and the water containing parameter, is configured to implement:
determining a volume of the container from the target image;
and determining the water outlet parameters of the water dispenser according to the volume and the water containing parameters, and controlling water outlet according to the water outlet parameters.
In one embodiment, the processor 202, in performing the determining the volume of the container from the target image, is configured to perform:
inputting the target image into a preset volume determination model to obtain a plurality of volumes and an output probability value corresponding to each volume;
and determining the volume of the container according to the output probability value corresponding to each volume.
In one embodiment, the processor 202, when implementing the determining of the water outlet parameter of the water dispenser according to the volume and water containing parameters, is configured to implement:
determining the water yield of the water dispenser according to the volume and the volume percentage in the water containing parameters; or
Acquiring the height of the container and the height of the water level in the water containing parameters;
determining a water level height ratio according to the container height and the water level height;
and determining the water outlet quantity of the water dispenser according to the volume and water level height ratio.
In one embodiment, the processor 202, when implementing the determining of the water parameter of the container according to the triggering operation of the control area by the user, is configured to implement:
acquiring the triggering operation of a user on the control area;
determining a trigger position of the trigger operation on the control area;
and determining the water level height of the container according to the trigger position.
In one embodiment, the processor 202, in implementing the determining the water level height of the container from the trigger position, is configured to implement:
generating a scale mark parallel to the ground on the water outlet control interface based on the trigger position;
determining whether the scale mark intersects a receptacle in the outlet control interface;
if the scale mark intersects with a container in the water outlet control interface, acquiring an intersection point of the scale mark and the container;
and determining the distance between the intersection point and the bottom of the container to obtain the water level height of the container.
In one embodiment, the processor 202, when implementing the generating of the water exit control interface based on the container image, is configured to implement:
matching the container image with a preset container image in a preset container image library;
if the preset container image corresponding to the container image is matched, generating a water outlet control interface comprising the preset container image;
and if the preset container image corresponding to the container image is not matched, generating a water outlet control interface comprising the container image.
In one embodiment, the processor 202 is further configured to:
determining whether a container mouth of a container placed below the water outlet is positioned in a water outlet range of the water outlet;
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 port of the container is not positioned in the water outlet range of the water outlet.
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, the target image of the container below the water outlet of the water dispenser is collected, the container image is obtained from the target image, the water outlet control interface is generated based on the container image and comprises the control area used for setting the water containing parameters of the container, the water containing parameters of the container are determined according to the triggering operation of a user on the control area, and finally the water outlet of the water dispenser is controlled according to the target image and the water containing parameters.
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:
acquiring a target image of a container below a water outlet of the water dispenser, and acquiring a container image from the target image;
generating a water outlet control interface based on the container image, wherein the water outlet control interface comprises a control area for setting water containing parameters of the container;
determining water filling parameters of the container according to the triggering operation of a user on the control area;
and controlling the water outlet of the water dispenser according to the target image and the water containing parameters.
2. The water dispenser control method of claim 1, wherein the controlling of the water dispenser to discharge water according to the target image and the water containing parameters comprises:
determining a volume of the container from the target image;
and determining the water outlet parameters of the water dispenser according to the volume and the water containing parameters, and controlling water outlet according to the water outlet parameters.
3. The water dispenser control method of claim 2, wherein the determining the volume of the container based on the target image comprises:
inputting the target image into a preset volume determination model to obtain a plurality of volumes and an output probability value corresponding to each volume;
and determining the volume of the container according to the output probability value corresponding to each volume.
4. The water dispenser control method of claim 2, wherein the determining the water outlet parameter of the water dispenser according to the volume and the water containing parameter comprises:
determining the water yield of the water dispenser according to the volume and the volume percentage in the water containing parameters; or
Acquiring the height of the container and the height of the water level in the water containing parameters;
determining a water level height ratio according to the container height and the water level height;
and determining the water outlet quantity of the water dispenser according to the volume and water level height ratio.
5. The water dispenser control method according to any one of claims 1 to 4, wherein the determining of the water filling parameter of the container according to the triggering operation of the control area by the user comprises:
acquiring the triggering operation of a user on the control area;
determining a trigger position of the trigger operation on the control area;
and determining the water level height of the container according to the trigger position.
6. The water dispenser control method of claim 5, wherein the determining the water level height of the container based on the trigger position comprises:
generating a scale mark parallel to the ground on the water outlet control interface based on the trigger position;
determining whether the scale mark intersects a receptacle in the outlet control interface;
if the scale mark intersects with a container in the water outlet control interface, acquiring an intersection point of the scale mark and the container;
and determining the distance between the intersection point and the bottom of the container to obtain the water level height of the container.
7. The water dispenser control method of any one of claims 1 to 4, wherein the generating a water outlet control interface based on the container image comprises:
matching the container image with a preset container image in a preset container image library;
if the preset container image corresponding to the container image is matched, generating a water outlet control interface comprising the preset container image;
and if the preset container image corresponding to the container image is not matched, generating a water outlet control interface comprising the container image.
8. The water dispenser control method according to any one of claims 1 to 4, characterized in that the water dispenser control method further comprises:
determining whether a container mouth of a container placed below the water outlet is positioned in a water outlet range of the water outlet;
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 port of the container is not positioned in the water outlet range of the water outlet.
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.
CN202010132782.XA 2020-02-29 2020-02-29 Water dispenser control method, water dispenser and computer readable storage medium Pending CN111568223A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010132782.XA CN111568223A (en) 2020-02-29 2020-02-29 Water dispenser control method, water dispenser and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010132782.XA CN111568223A (en) 2020-02-29 2020-02-29 Water dispenser control method, water dispenser and computer readable storage medium

Publications (1)

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

Family

ID=72120499

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010132782.XA Pending CN111568223A (en) 2020-02-29 2020-02-29 Water dispenser control method, water dispenser and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111568223A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115247899A (en) * 2022-07-18 2022-10-28 深圳安吉尔饮水产业集团有限公司 Control method, controller, and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105228943A (en) * 2013-04-17 2016-01-06 雀巢产品技术援助有限公司 Beverage preparing machine and the correlation method of the beverage volume of container can be determined
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
CN108991929A (en) * 2017-06-07 2018-12-14 厦门百霖净水科技有限公司 A kind of drinking device with image recognition control function
CN109527997A (en) * 2018-12-27 2019-03-29 山东师范大学 A kind of intelligent drinking machine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105228943A (en) * 2013-04-17 2016-01-06 雀巢产品技术援助有限公司 Beverage preparing machine and the correlation method of the beverage volume of container can be determined
CN106859334A (en) * 2017-01-22 2017-06-20 广西喜爱家饮水设备有限公司 A kind of home intelligent water dispenser
CN108991929A (en) * 2017-06-07 2018-12-14 厦门百霖净水科技有限公司 A kind of drinking device with image recognition control function
CN108567330A (en) * 2018-05-29 2018-09-25 陈泽涛 Water dispenser control method, device, water dispenser and computer readable storage medium
CN109527997A (en) * 2018-12-27 2019-03-29 山东师范大学 A kind of intelligent drinking machine

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115247899A (en) * 2022-07-18 2022-10-28 深圳安吉尔饮水产业集团有限公司 Control method, controller, and computer-readable storage medium
CN115247899B (en) * 2022-07-18 2024-02-06 深圳安吉尔饮水产业集团有限公司 Control method, controller and computer readable storage medium

Similar Documents

Publication Publication Date Title
US10893137B2 (en) Photography guiding method, device, and system
CN111568242A (en) Water dispenser control method, water dispenser and computer readable storage medium
CN111568245A (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
CN111568243B (en) Electric kettle control method, electric kettle and computer readable storage medium
CN111568208A (en) Water dispenser control method, water dispenser and computer readable storage medium
CN111568212A (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
CN108600628B (en) Image capturing method and device, terminal and readable medium
CN111568211A (en) Water dispenser control method, water dispenser and computer readable storage medium
CN111568217A (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
CN111568235A (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
CN111568236A (en) Water dispenser control method, water dispenser and computer readable storage medium
CN111568230A (en) Water outlet control method of water dispenser, water dispenser and computer readable storage medium
CN111568226A (en) Water outlet control method of water dispenser, water dispenser and computer readable storage medium
CN111568229A (en) Water outlet device control method, water outlet device and computer readable storage medium
CN111568239A (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
CN111568215B (en) Water dispenser control method, water dispenser and computer readable storage medium
CN111568221A (en) Water dispenser control method, water dispenser and computer readable storage medium
CN111568178A (en) Water outlet device control method, water outlet device and computer readable storage medium
CN111568232A (en) Water outlet control method of water dispenser, water dispenser and computer readable storage medium
CN111642975A (en) Water outlet control method, 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
CB03 Change of inventor or designer information

Inventor after: Chen Xiaoping

Inventor after: Wu Xueliang

Inventor before: Chen Xiaoping

Inventor before: Peng Shiping

Inventor before: Wu Xueliang

CB03 Change of inventor or designer information
RJ01 Rejection of invention patent application after publication

Application publication date: 20200825

RJ01 Rejection of invention patent application after publication