CN111568235A - 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
CN111568235A
CN111568235A CN202010132815.0A CN202010132815A CN111568235A CN 111568235 A CN111568235 A CN 111568235A CN 202010132815 A CN202010132815 A CN 202010132815A CN 111568235 A CN111568235 A CN 111568235A
Authority
CN
China
Prior art keywords
container
water
water dispenser
preset
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.)
Withdrawn
Application number
CN202010132815.0A
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 CN202010132815.0A priority Critical patent/CN111568235A/en
Publication of CN111568235A publication Critical patent/CN111568235A/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
    • 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 embodiment of the application discloses a water dispenser control method, a water dispenser and a computer readable storage medium, and the embodiment of the application can acquire the port outline of a container placed below a water outlet of the water dispenser and control the water outlet of the water dispenser; acquiring a current image containing the container; extracting water level features from the current image that are generated based on the container forming tension with water; and when the comparison result between the port profile and the water level characteristic meets a preset condition, controlling the water dispenser to stop discharging water. According to the scheme, the water dispenser can be accurately controlled to stop water outlet based on the water level characteristics of water in the container, and the accuracy and convenience of controlling the water dispenser are improved.

Description

Water dispenser control method, water dispenser and computer readable storage medium
Technical Field
The application relates to the technical field of electronic equipment, 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. At present, in the process of using a water dispenser, a user needs to finish quantitative water taking through key operation, and needs to pay attention to the change of the water level in a water cup continuously when receiving water, judge the water yield by human eyes, and manually control water outlet, water cut-off and the like through keys, so that the intelligent degree is low, the user possibly causes overflow of water by slight carelessness, waste of water resources is caused, and the overflowing hot water also possibly causes scalding and the like. In addition, in the process of receiving water, hands cannot be vacated to do other things, and time is wasted to a certain extent. Although some existing water dispensers can set the water outlet amount once, the water dispenser is only suitable for discharging water with a fixed amount to a cup with a fixed size, for example, only a milliliter of water is discharged each time; or the water dispenser is controlled to stop water outlet by positioning the height of the water level through ultrasonic waves, but the accuracy of the detection of the height of the water level is low, so that the water dispenser cannot be accurately controlled.
Disclosure of Invention
The embodiment of the application provides a water dispenser control method, a water dispenser and a computer readable storage medium, which can improve the accuracy of control over the water dispenser.
In a first aspect, an embodiment of the present application provides a method for controlling a water dispenser, including:
acquiring the port outline of a container placed below a water outlet of the water dispenser;
controlling the water dispenser to discharge water, and collecting a current image containing the container;
extracting water level features from the current image that are generated based on the container forming tension with water;
and when the comparison result between the port profile and the water level characteristic meets a preset condition, controlling the water dispenser to stop discharging water.
In a second aspect, an embodiment of the present application further provides a water dispenser, which includes a memory and a processor, where the memory stores a computer program, and the processor executes any one of the water dispenser control methods provided in the embodiment of the present application when calling the computer program in the memory.
In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium is used for storing a computer program, and the computer program is loaded by a processor to execute any one of the water dispenser control methods provided in the embodiment of the present application.
When the container for receiving water is placed below the water outlet of the water dispenser, the embodiment of the application can acquire the port outline of the container, control the water dispenser to discharge water and acquire the current image containing the container; and then extracting water level characteristics generated based on tension formed between the container and water from the current image, and controlling the water dispenser to stop water outlet when a comparison result between the port profile and the water level characteristics meets a preset condition. According to the scheme, the water dispenser can be accurately controlled to stop water outlet based on the water level characteristics of water in the container, and the accuracy and convenience of controlling the water dispenser are improved.
Drawings
In order to more clearly illustrate the technical solutions in 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 only 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 water dispenser control method 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 without a container 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 an embodiment of the present application;
FIG. 4 is a schematic diagram of container inspection provided by embodiments of the present application;
FIG. 5 is another schematic diagram of container inspection provided by embodiments of the present application;
FIG. 6 is a schematic diagram illustrating an output prompt for manual water discharge according to an embodiment of the present disclosure;
FIG. 7 is a schematic view of a camera and a light source installation position provided by an embodiment of the present application;
FIG. 8 is another schematic view of a camera and a light source mounting location provided by an embodiment of the present application;
FIG. 9 is a schematic diagram of a water level feature in an extraction vessel provided by an embodiment of the present application;
FIG. 10 is a schematic diagram comparing port profiles and water surface boundaries of a vessel provided by an embodiment of the present application;
fig. 11 is a schematic structural diagram of a water dispenser provided in the embodiment of the present application.
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 only a part of the embodiments of the present application, and not all of the embodiments. 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 can comprise a smart phone, a tablet computer, a camera or a palm computer and the like, and is used for controlling the water dispenser. For example, the mobile terminal can acquire a port profile of a container placed below a water outlet of the water dispenser, control the water dispenser to discharge water, acquire a current image containing the container, extract a water level feature generated based on tension formed between the container and the water from the current image, and control the water dispenser to stop discharging water when a comparison result between the port profile and the water level feature meets a preset condition; and so on.
The following description will be made 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 illustrating a method for controlling a water dispenser according to an embodiment of the present application. The water dispenser control method can comprise steps S101 to S104 and the like, and specifically can be as follows:
s101, acquiring the port contour of a container placed below a water outlet of the water dispenser and controlling the water outlet of the water dispenser.
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. The port profile may be an upper port edge of the container for ingress and egress of water (e.g., a cup edge).
It should be noted that the step of acquiring the port profile of the container and controlling the water outlet of the water dispenser may be flexibly set according to actual needs, for example, the step of acquiring the port profile of the container and then controlling the water outlet of the water dispenser may be executed first, or the step of controlling the water outlet of the water dispenser and then acquiring the port profile of the container may be executed first, or the step of acquiring the port profile of the container and controlling the water outlet of the water dispenser may be executed simultaneously, and specific contents are not limited herein.
In some embodiments, obtaining a port profile of a container placed under a water outlet of a water dispenser comprises: acquiring images below a water outlet of the water dispenser at intervals of preset time to obtain multi-frame images; when the difference between the multiple frames of images is smaller than a first preset threshold value, selecting one image from the multiple frames of images as a background image; collecting an initial image below a water outlet of the water dispenser; and when the difference between the initial image and the background image is greater than a second preset threshold value, determining that the container is placed below the water outlet of the water dispenser, and acquiring the port outline of the container.
In order to improve the accuracy of container identification, the port contour of the container can be obtained by background subtraction when the container is judged to be placed below the water outlet of the water dispenser. Specifically, a camera can be preset around the water outlet of the water dispenser and used for collecting images below the water outlet of the water dispenser, wherein the camera can be an infrared camera or other types of cameras, the specific position of the camera can be flexibly set according to actual needs, for example, the camera can be installed above the water outlet in an inclined manner or close to the position of the water outlet, and the like, so that the camera can accurately collect images in a preset area below the water outlet of the water dispenser. Firstly, images below a water outlet of the water dispenser can be collected through the camera at preset time intervals to obtain multi-frame images, the preset time can be flexibly set according to time requirements, for example, the preset time can be set to be 0.5 or 1 second, and when the preset time is set to be 0.5, 6 frames of images can be collected within 3 seconds.
Then, the multi-frame images are compared, whether the difference between each frame of image in the multi-frame images is smaller than a first preset threshold value or not is judged, and the first 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 first preset threshold, it indicates that no container is placed below the water outlet of the water dispenser, as shown in fig. 2, at this time, one image may be selected from the multiple frames of images as a background image, for example, the first frame or the last frame of image that is acquired may be used as the background image. When the difference between each frame of image in the plurality of frames of images is larger than or equal to a first preset threshold value, it is indicated that objects such as a container and the like are placed below the water outlet of the water dispenser, and at the moment, the background image cannot be determined.
It should be noted that, in order to improve the efficiency of obtaining the background image, whether the water dispenser is currently discharging water or not may be detected, if the water dispenser is not currently discharging water, an image below the water outlet of the water dispenser is collected at intervals of a preset time to obtain multiple frames of images, and when the difference between the multiple frames of images is smaller than a first preset threshold value, one image is selected from the multiple frames of images as the background image.
After the background image is obtained, the image below the water outlet of the water dispenser can be collected by the camera in real time or at preset time intervals to obtain an initial image. And comparing the initial image with the background image, and judging whether the difference between the initial image and the background image is greater than a second preset threshold value, wherein the second preset threshold value can be flexibly set according to actual needs. When the difference between the initial image and the background image is greater than a second preset threshold value, it is determined that the container is placed below the water outlet of the water dispenser, as shown in fig. 3, and at this time, the port profile of the container can be acquired. And when the difference between the initial image and the background image is less than or equal to a second preset threshold value, indicating that no container is placed below the water outlet of the water dispenser.
In some embodiments, obtaining a port profile of a container placed under a water outlet of a water dispenser may include: collecting container images from the upper part of the container through a camera preset around a water outlet of the water dispenser; extracting a port profile of the container from the container image; alternatively, a user-entered radius or diameter value is received, and a port profile of the vessel is determined based on the radius or diameter value.
For example, to improve the accuracy and reliability of port profile acquisition for a container, an image of the container containing the container may be captured and a port profile determined based on the container image when the container is determined to be positioned below the water outlet of the water dispenser. Specifically, a container image containing the container may be collected from above and below a port of the container by a camera (e.g., an infrared camera) preset around a water outlet of the water dispenser, and the container image may include other objects besides the container, and the specific content is not limited herein. The port profile of the container can now be extracted from the container image. In order to improve the accuracy of the port contour extraction, the container image may be filtered, and the port contour of the container may be extracted from the processed container image.
In some embodiments, extracting the port profile of the container from the container image may include: when the container for receiving water is not placed below the water outlet of the water dispenser, acquiring an image below the water outlet of the water dispenser to obtain a background image; comparing the container image with the background image to obtain a pixel difference; determining a port profile of the container according to the pixel difference; or carrying out port contour recognition on the container image through the trained recognition model to obtain the port contour of the container.
Specifically, when no object such as a container is placed below the water outlet of the water dispenser, the picture (i.e., the image) acquired 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 acquired by the camera preset in the water dispenser 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 the water receiving area below the 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 the pixel 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, the edge of the area where the container is located is a port outline, and the port outline can be a circle, an ellipse or a polygon.
Or, the port contour of the container can be obtained by carrying out port contour recognition on the container image through the trained recognition model. The type of the recognition model can be flexibly set according to actual needs, the recognition model can be a target detection model SSD or YOLOv3, and the recognition model can also be a convolutional neural network CNN or R-CNN. The recognition model can be trained through a plurality of sample images containing port outlines of containers of different types, and the trained recognition model is obtained.
For another example, in order to improve convenience and flexibility of obtaining the port profile of the container, an input interface may be displayed on a display screen preset in the water dispenser, a radius value or a diameter value input by a user is received in the input interface, and then a circle is drawn by taking the radius value or the diameter value directly below the water outlet or the center of the bottom of the container as a center of the circle, and the circle may be set as the port profile of the container. Or, the water dispenser may establish a communication connection with a mobile terminal (e.g., a mobile phone), and at this time, the water dispenser may receive a radius value or a diameter value of the container sent by the mobile terminal, where the radius value or the diameter value of the container may be input by a user through an input interface of the mobile terminal.
It should be noted that, in order to solve the problem that the container is too high to accurately extract the port profile from the container image, the height of the camera for collecting the container image may be dynamically adjustable, and at this time, the current height of the camera may be dynamically adjusted according to the height of the container, so that the camera may accurately collect the container image.
In some embodiments, obtaining a port profile of a container placed under a water outlet of a water dispenser may include: the volume and height of the container are obtained, and the port profile of the container is determined according to the volume and height.
In order to improve the accuracy and reliability of the port profile acquisition, when the container is a cylinder, the port profile of the container can be determined by the volume, height, and the like of the container. Specifically, in some embodiments, obtaining the height of the container may include: detecting the height of the container through a sensor preset on the side surface of the water dispenser; alternatively, a user input of the height of the container is received.
Wherein, one or more sensors can be arranged on the side surface of the water receiving area of the water dispenser in advance and used for detecting the height of the container. In order to improve the accuracy and flexibility of height acquisition of the container, when the container is placed in the water receiving area of the water dispenser, the height of the container can be detected through a sensor preset on the side face of the water dispenser. Alternatively, an input interface may be displayed within the display screen of the water dispenser, and then the user input of the height of the container may be received within the input interface. Or, the water dispenser may establish a communication connection with a mobile terminal (e.g., a mobile phone), and at this time, the water dispenser may receive the height of the container sent by the mobile terminal, where the height of the container may be input by a user through an input interface of the mobile terminal, so that the mobile terminal may send the height of the container to the water dispenser after receiving the height of the container input by the user.
When the volume of the container is obtained, the water dispenser can output prompt information of volume input, and receive the volume of the container input by a user based on the prompt information, for example, the volume of the container input by the user through voice is received based on the prompt information; or receiving the volume of the container input by the user through an input interface displayed on a preset display screen of the water dispenser based on the prompt message.
In order to improve convenience and diversity of volume input, for example, the water dispenser may receive the volume of the container input by the user through voice through the voice acquisition module, or the water dispenser may receive the volume of the container input by the user through voice sent by the mobile terminal. For another example, the water dispenser may receive the volume of the container input by the user through an input interface displayed by a preset display screen, or the water dispenser may receive the volume of the container input by the user through the input interface displayed by the display screen of the mobile terminal, which is sent by the mobile terminal; and so on.
After the volume and the height of the container are obtained, since the volume of the cylindrical container can be multiplied by the height through the bottom area, and the volume and the height of the container are known, the bottom area of the container can be calculated according to the volume and the height, the bottom contour can be determined according to the bottom area, and the bottom contour can be used as the port contour of the container since the bottom contour and the port contour of the cylindrical container are consistent in size.
In some embodiments, determining a port profile of the container from the volume and the height may include: and acquiring the volume, the height and the bottom area of the container, and determining the port contour of the container according to the volume, the height and the bottom area.
In some embodiments, obtaining the bottom area of the container may comprise: detecting a stress area where a pressure value is larger than a preset threshold value through a pressure sensor preset at the position where the container is placed, and determining the bottom area of the container according to the stress area; or receiving container parameters input by a user, and calculating the bottom area of the container according to the container parameters; or after the water dispenser discharges water, detecting the water surface boundary at the bottom of the container, and setting the water surface boundary at the bottom of the container as the area of the bottom of the container.
Since the shape of the container may be varied, the port profile of the container may be determined in combination with the bottom area of the container in order to improve the accuracy of the port profile determination when the container is frustoconical (e.g., the top port is larger than the bottom). Specifically, an image containing the container can be collected from the upper side of the container through a camera preset around a water outlet of the water dispenser, the bottom contour of the container is extracted from the image, and the bottom area of the container is determined according to the bottom contour.
The specific position of the camera can be flexibly set according to actual needs, for example, the camera can be installed above the water outlet or close to the position of the water outlet, and the like, so that the camera can accurately acquire an image containing a container in a preset area below the water outlet of the water dispenser, at the moment, the bottom contour of the container can be extracted from the image through a preset identification model or an equivalent image pixel ratio, the bottom contour can be circular or polygonal, and the area of the bottom of the container can be determined according to the bottom contour.
Wherein, in order to improve convenience and the accuracy that container bottom area obtained, can be used for placing the position of container in the water receiving area of water dispenser, set up pressure sensor in advance, can cover pressure sensor in the water receiving area of placing the container, can detect the pressure value through pressure sensor when placing this position as the object. At this moment, when the container is placed in the water receiving area (namely, below the water outlet) of the water dispenser, the pressure value received can be detected through a pressure sensor preset in the position where the container is placed, and the stress area where the pressure value is greater than the preset threshold value is selected, and the preset threshold value can be flexibly set according to actual needs. When the bottom of the container is circular, a circular stressed area can be obtained, the area can be calculated according to the radius value or the diameter value of the stressed area, and the area of the stressed area is the area of the bottom of the container.
In order to improve the flexibility of obtaining the bottom area of the container, an input interface may be displayed in a display screen of the water dispenser, and then a container parameter input by a user may be received in the input interface, where the container parameter may include the area of the bottom of the container, a radius value or a diameter value of the bottom of the container, or a side length of the bottom of the container, and at this time, the area of the bottom of the container may be calculated according to the container parameter, for example, the area of the bottom of the container may be calculated according to the radius value or the diameter value, or the area of the bottom of the container may be calculated according. Or, the water dispenser may establish a communication connection with a mobile terminal (e.g., a mobile phone), and at this time, the water dispenser may receive container parameters sent by the mobile terminal, where the container parameters may be input by a user through an input interface of the mobile terminal, so that the mobile terminal may send the container parameters to the water dispenser after receiving the container parameters input by the user.
After the water dispenser discharges water, the water surface boundary at the bottom of the container can be detected through the camera, the detection mode of the water surface boundary at the bottom of the container is similar to the acquisition mode of the water level characteristic generated based on the tension formed between the container and the water, the acquisition mode of the water level characteristic can be specifically referred to, and specific contents are not repeated herein. The water surface boundary at the bottom of the container may be set to the container bottom area at this time.
And acquiring the volume and the height of the container in the above manner, and determining the port profile of the container according to the volume, the height and the bottom area of the container after the volume, the height and the bottom area of the container are obtained.
Since the volume of the truncated cone-shaped container can be calculated by the bottom radius (which can be calculated by the bottom area), the top radius (i.e., the radius of the circular port profile) and the height, and the volume, the bottom area and the height of the container are known, the bottom radius can be calculated according to the bottom area, the radius of the port profile can be calculated according to the volume, the bottom radius and the height, and the port profile of the container can be determined according to the radius of the port profile.
In some embodiments, obtaining a port profile of a container placed under a water outlet of a water dispenser may include: and acquiring the bottom area of the container, and determining the port outline of the container according to the bottom area.
Specifically, in order to improve the convenience of determining the port profile, the bottom area of the container may be obtained in the above manner, and the bottom radius may be calculated according to the bottom area of the container, and, as shown in fig. 4, one or more distance measuring sensors may be disposed at the side of the water dispenser, and the distance to the container may be detected by the distance measuring sensors, and when the container is a cone with an upper port larger than the bottom, the distance to the edge of the port of the container may be detected by the distance measuring sensor 1 as a in fig. 4, and the distance to the edge of the bottom of the container may be detected by the distance measuring sensor 2 as b, and then, the diameter of the port profile of the container may be calculated as 2 × (b-a) + the bottom radius.
In some embodiments, obtaining a port profile of a container placed under a water outlet of a water dispenser may include: the length of the beveled edge, the area of the bottom, and the height of the container are obtained, and the port profile of the container is determined based on the length of the beveled edge, the area of the bottom, and the height.
To increase the flexibility and accuracy of port profile determination, the port profile of the container may be determined based on the length of the hypotenuse, the bottom area, and the height of the container. Specifically, the bottom area of the container is detected in the above manner, and as shown in fig. 5, the water outlet rate of the water dispenser can be detected, the water outlet time of the water outlet is recorded, the volume of the existing water in the container is calculated according to the water outlet rate and the water outlet time, or the current weight of the container is detected, the weight of the existing water in the container is determined according to the difference between the current weight and the weight of the container in an unloaded state, and the volume of the water is determined according to the weight and the density of the water; and detecting the current water surface area (for example, detecting the area of the area where the water surface boundary is located through a camera to obtain the water surface area), and calculating the current water level height h according to the current existing water volume, the water surface area and the bottom area of the container. And detecting the height H of the container by a sensor, a camera, or the like, or receiving a user input. At this time, the bottom radius R can be determined according to the bottom area, the water surface radius R can be determined according to the water surface area, then, the length of the AB can be calculated according to the bottom radius R and the water surface radius R, in the right triangle ABC, the hypotenuse AC can be calculated according to the length of the AB and the water level height h, in the similar triangles ABC and CDE, the angle or each side length in the triangle CDE can be determined by using the principle of the similar triangle, so that the length EC of the hypotenuse of the container can be obtained, and the length of the DE can be calculated, finally, the diameter of the port contour of the container is equal to the length of the DE + 2+ the bottom diameter, and the port contour of the container can be determined.
In some embodiments, a projected area of the volume as projected vertically to a horizontal plane may be obtained, from which a port profile of the vessel is determined.
In some embodiments, the water dispenser control method may further include: when the container for receiving water is placed below the water outlet of the water dispenser and the port contour of the container is not obtained, prompt information of manual water discharging is output.
In order to improve the flexibility of controlling the water dispenser, when the abnormal condition occurs and the port outline of the container cannot be accurately extracted from the acquired container image, the prompt information of manual water discharging can be output so as to remind a user to control the water dispenser to discharge water by clicking or pressing a preset water discharging button on the water dispenser, and control the water dispenser to stop discharging water by clicking or pressing a preset water stopping button on the water dispenser. The water discharging key and the water stopping key can be the same physical key or virtual key, the water discharging key and the water stopping key can also be independent physical keys or virtual keys respectively, the setting positions, colors, sizes or icons and the like of the water discharging key and the water stopping key can be flexibly set according to actual needs, and the specific content is not limited at this position.
Wherein, the mode of the prompt message of the manual drainage of output can include: outputting prompt information of manual water discharging through voice broadcasting at a voice module preset in the water dispenser, or displaying the prompt information of the manual water discharging through a display screen preset in the water dispenser, as shown in fig. 6, or prompting the manual water discharging through flashing of an indicator lamp of the manual water discharging and the like; and so on. Therefore, when the abnormal detection condition occurs and water cannot be discharged, a user can be timely reminded to manually control the water dispenser to discharge water, and the trouble that the user mistakenly regards the damage of the water dispenser to carry out maintenance is avoided.
S102, collecting a current image containing the container.
After the water outlet of the water dispenser is controlled, images of a water receiving area, below a water outlet of the water dispenser, of a container can be collected in real time or at intervals of preset time to obtain a current image including the container, and the preset time can be flexibly set according to actual needs.
In some embodiments, acquiring the current image containing the container may include: when the camera preset around the water outlet of the water dispenser collects water vapor or the water outlet temperature of the water dispenser is higher than a preset temperature threshold value, a preset fan is controlled to be started, a filter plate preset by the camera is controlled to be heated, and/or a dust cover preset by the camera is controlled to be heated; after the fan is turned on, the filter plate is heated and/or the dust cover is heated, the current image containing the container is collected through the camera.
Because the water dispenser can generate steam due to overhigh water temperature when hot water is discharged, in order to effectively detect a clear current image, the influence of the steam can be reduced through a fan, a filter plate, a dust cover and the like. Specifically, in an embodiment, a fan may be disposed on the water dispenser, for example, the fan is disposed in the middle of an oblique upper portion of a water outlet of the water dispenser, right above a water receiving area of the water dispenser, or on a side surface of the water receiving area of the water dispenser, or the fan is disposed around the water dispenser, the type and size of the fan may be flexibly set according to actual needs, and the fan is turned on to expel water vapor within a visible range of the camera, so as to improve the quality of images acquired by the camera. When the water dispenser discharges water, whether water vapor exists or not can be detected through cameras or other sensors and the like preset around a water outlet of the water dispenser, when the water vapor is detected, a preset fan is controlled to be started, and after the fan is started, a current image containing a container is acquired through the cameras. Or when the water dispenser discharges water, the water outlet temperature of the water dispenser can be detected, whether the water outlet temperature of the water dispenser is larger than a preset temperature threshold value or not is judged, when the water outlet temperature of the water dispenser is larger than the preset temperature threshold value, a preset fan is controlled to be started, and after the fan is started, a current image containing a container is acquired through the camera. When the water outlet temperature of the water dispenser is less than or equal to the preset temperature threshold, the fan does not need to be started.
In another embodiment, a filter can be arranged near the lens of the camera or at other positions, and water vapor on the lens of the camera can be driven away by heating the preset filter, so that the quality of the image collected by the camera is improved. When the water dispenser goes out water, whether the detection of camera or other sensors etc. that predetermine around the delivery port through the water dispenser exists vapor can be detected, when detecting vapor, the heating of predetermined filter is controlled, and after the filter heating, current image including the container is gathered through the camera. Or when the water dispenser discharges water, the water outlet temperature of the water dispenser can be detected, whether the water outlet temperature of the water dispenser is larger than a preset temperature threshold value or not is judged, when the water outlet temperature of the water dispenser is larger than the preset temperature threshold value, a preset filter plate is controlled to be heated, and after the filter plate is heated, a current image containing a container is collected through a camera. When the water outlet temperature of the water dispenser is less than or equal to the preset temperature threshold, the filter does not need to be heated.
In another embodiment, a dust cover (such as glass, akron force, etc.) may be disposed near or at other positions of the lens of the camera, and the preset dust cover may be heated to expel water vapor on the lens of the camera, thereby improving the quality of the image captured by the camera. When the water dispenser discharges water, whether water vapor exists or not can be detected through cameras or other sensors and the like preset around a water outlet of the water dispenser, when the water vapor is detected, a preset dustproof cover is controlled to be heated, and after the dustproof cover is heated, a current image containing a container is acquired through the cameras. Or when the water dispenser discharges water, the water outlet temperature of the water dispenser can be detected, whether the water outlet temperature of the water dispenser is larger than a preset temperature threshold value or not is judged, when the water outlet temperature of the water dispenser is larger than the preset temperature threshold value, a preset dustproof cover is controlled to be heated, and after the dustproof cover is heated, a current image containing a container is acquired through the camera. When the water outlet temperature of the water dispenser is less than or equal to the preset temperature threshold, the dustproof cover does not need to be heated.
It should be noted that the water dispenser may only be provided with any one or two of dust cover heating, fan turning on and filter heating, and the water dispenser may also be provided with dust cover heating, fan turning on, filter heating and the like, and the specific content is not limited herein.
In some embodiments, acquiring the current image containing the container may include: detecting the current light intensity of the environment where the water dispenser is located; if the current light intensity is smaller than a preset intensity threshold value, controlling a preset light supplement lamp to be started; and after the light supplement lamp is turned on, acquiring a current image containing the container.
Because the quality of the current image can be affected when the light intensity of the environment is weak, in order to effectively detect the clear current image, the light intensity can be enhanced to reduce the influence on image acquisition. Specifically, an LED light source may be disposed on the water dispenser as a light supplement lamp, for example, as shown in fig. 7, a camera (e.g., an infrared camera) and the light supplement lamp (i.e., the light source in fig. 7) may be installed obliquely above a water outlet of the water dispenser, or, for example, as shown in fig. 8, the camera and the light supplement lamp (i.e., the light source in fig. 8) may be installed in the middle of the water receiving area of the water dispenser in parallel, near the water outlet, and in the same direction. The effect of light filling lamp is the illumination condition of reinforcing water receiving area for it is more controllable, thereby improves the quality that the camera gathered the image. When the water dispenser is used for discharging water, the current light intensity of the environment where the water dispenser is located can be detected through the light sensor, whether the current light intensity is smaller than a preset intensity threshold value or not is judged, the preset intensity threshold value can be flexibly set according to actual needs, and under the condition that the current light intensity is larger than or equal to the preset intensity threshold value, clear images can be collected by the camera. If the current light intensity is smaller than the preset intensity threshold value, the current light of the environment where the water dispenser is located is relatively weak, the preset light supplement lamp can be controlled to be turned on at the moment, and after the light supplement lamp is turned on, the current image containing the container is collected through the camera. If the current light intensity is greater than or equal to the preset intensity threshold value, the light supplement lamp does not need to be started.
S103, extracting water level characteristics generated based on the tension formed between the container and the water from the current image.
As shown in fig. 9, the water in the container forms an adhesion effect on the inner wall of the container due to the existence of tension, so that the water optically shows an optical characteristic such as an abnormal refraction effect, and the optical characteristic can be captured and identified by a camera from the perspective of a visual identification technology. Therefore, in the process of water outlet of the water dispenser, after the current image containing the container is acquired, the water level characteristics generated based on the tension formed between the container and the water can be extracted from the current image.
It should be noted that, in order to reduce the influence of the ambient light of the water dispenser (for example, dark light or direct light from an indoor light source, etc.), a light supplement may be performed by using a preset LED lamp on or near the water dispenser, for example, the light intensity of the environment of the water dispenser may be detected by a light sensor, whether the LED lamp needs to be turned on or not is determined according to the light intensity, if necessary, a current image containing the container is collected after the LED lamp is turned on, and if the LED lamp does not need to be turned on, the current image containing the container is directly collected, so that the water level characteristics generated based on the tension formed by the container and water can be accurately extracted from the current image.
In some embodiments, extracting water level features from the current image that are generated based on the vessel forming tension with the water may include: and extracting a light reflection boundary formed by tension at the junction of the container and the water from the current image to obtain a water surface boundary with round bright lines, and setting the water surface boundary as a water level characteristic.
The water level characteristics can include bright line information, dark line information and the like formed by water surface fluctuation in the container due to refraction, in the process of extracting the water level characteristics, multiple frames of images containing the container before the current image can be continuously collected, then the current image and the multiple frames of images are compared by adopting a frame difference method, a light reflection boundary formed by tension at the junction of the container and water is extracted from the current image, and a water surface boundary of the round bright line is obtained, wherein the water surface boundary is the water level characteristics.
The main expression of the water level characteristics in the image is the change of infrared reflection, in the water discharging process, the water surface in the container can fluctuate due to tension, and an obvious reflection boundary is arranged at the junction of the inner wall of the container, so that the boundary of the water surface can be obtained through image analysis, namely the water level characteristics. Namely, in the water discharging process of the water dispenser, the last frame of current image in the multiple frames of current images is compared with the previous N frames (the specific numerical value of N is flexibly set according to actual needs) of images, so that an area with obvious brightness difference is obtained, the area is the area of the current water surface, and the water surface boundary is the water level characteristic. The principle is that the current image has a difference compared with the previous N frames of images, and the difference is caused by water level change, so that the current water level (namely water level characteristics) can be detected by a frame difference method.
It should be noted that, in order to improve the accuracy of obtaining the water level characteristics (i.e., the water surface boundary), filtering or smoothing operations may be performed on the extracted water surface boundary, so as to filter noise points, cavity points, and the like, and obtain a smooth water surface boundary.
And S104, controlling the water dispenser to stop discharging water when the comparison result between the port outline and the water level characteristic meets a preset condition.
The preset conditions can be flexibly set according to actual needs, the preset conditions are met, it is indicated that water in the container is full or is about to be full, or the water amount in the container reaches a preset water amount threshold value, and the preset water amount threshold value can be flexibly set according to the actual needs, for example, the water amount in the container reaches 90%.
In some embodiments, when the comparison result between the port profile and the water level characteristic satisfies a preset condition, controlling the water dispenser to stop discharging water includes: comparing the size of the port profile to the size of the water surface boundary; and when the difference value between the size of the port outline and the size of the water surface boundary is smaller than a preset threshold value, determining that the comparison result between the port outline and the water level characteristics meets a preset condition, and controlling the water dispenser to stop discharging water.
For example, as shown in fig. 10, after obtaining the water surface boundary (i.e., the water level characteristic) and the port profile of the container, the size of the port profile may be compared with the size of the water surface boundary, and whether a difference between the size of the port profile and the size of the water surface boundary is smaller than a preset threshold may be determined, where the preset threshold may be flexibly set according to actual needs. The lower the water level is because the less the water quantity in the container is, the smaller the water surface boundary extracted from the current image is; the more the water amount in the container is, the higher the water level is, the larger the water surface boundary extracted from the current image is, therefore, when the difference value between the size of the port outline and the size of the water surface boundary is greater than or less than the preset threshold value, the water amount in the container is less, and the water outlet state of the water dispenser can be maintained at the moment. When the difference value between the size of the port outline and the size of the water surface boundary is smaller than a preset threshold value, the fact that the water amount in the container is large (for example, the water in the container is filled quickly or the water amount in the container reaches 90% and the like) is indicated, it is determined that the comparison result between the port outline and the water level characteristic meets a preset condition, namely the water level is close to the distance of the container port, at the moment, the water dispenser can be controlled to stop water outlet, the water outlet of the water dispenser is automatically controlled, accidents such as scalding and the like caused by overflow of hot water can be effectively reduced, and the.
It should be noted that, in order to accurately control the water outlet of the water dispenser, a threshold value of the water outlet amount of the primary water outlet of the water dispenser can be set, in the process of water outlet of the water dispenser, the size difference between the port profile and the water level characteristic of the container can be detected, and the water outlet amount of the water dispenser can be detected, and when the size difference between the port profile and the water level characteristic of the container is detected to be smaller than the preset threshold value, the water dispenser is controlled to stop water outlet at the moment even if the water outlet amount of the water dispenser does not reach the water amount threshold value; or when the water outlet quantity of the water dispenser does not reach the water quantity threshold value, even if the difference between the port profile of the container and the water level characteristic is not detected to be smaller than the preset threshold value, the water dispenser is controlled to stop water outlet. The problem that water level characteristics in the container cannot be effectively identified (for example, misjudgment of identification caused by the special design of a port of the container, the material or texture of the inner wall of the container, or the water level characteristics or the port outline cannot be identified caused by the placement mode of the container and the like) and water outlet cannot be stopped in time is avoided.
In some embodiments, after controlling the water outlet of the water dispenser and acquiring the current image containing the container, the water dispenser control method may further include: judging whether the container moves or not or whether foreign matters enter the container or not according to the current image; when the container moves or foreign matters enter the container, the water dispenser is controlled to stop discharging water; extracting from the current image water level features generated based on the container forming tension with the water includes: when there is no movement of the container or no foreign object entering the container, water level features generated based on the tension of the container with water are extracted from the current image.
In the process of water outlet of the water dispenser, after the current image containing the container is collected, whether the container moves or not can be judged according to the current image, for example, when the container is identified through an identification model based on one or more frames of current images or the pixel ratio between different frames of images is equal, and the container is judged to shake or move from the lower part of a water outlet of the water dispenser, the container moves. When the container moves, the water dispenser can be controlled to stop water outlet in order to avoid the situation that the container is easy to pour due to shaking or the water resource is wasted due to the fact that the container is moved away from the lower part of the water outlet of the water dispenser.
And judging whether foreign matters enter the container or not according to the current image, wherein the foreign matters can comprise mosquitoes, insects, leaves and the like, for example, when the container is judged to have mosquitoes falling into the container based on one or more frames of the current image through identification by an identification model or through pixel ratio equality between different frames of images, the water dispenser can be controlled to stop water outlet at the moment in order to avoid that a user drinks unclean water. It should be noted that, whether the container moves or not and whether foreign matter enters the container or not may be detected at the same time, or only whether the container moves or not may be detected, or only whether foreign matter enters the container or not may be detected, and the specific content is not limited herein.
When the container for receiving water is placed below the water outlet of the water dispenser, the embodiment of the application can acquire the port outline of the container, control the water dispenser to discharge water and acquire the current image containing the container; and then extracting water level characteristics generated based on tension formed between the container and water from the current image, and controlling the water dispenser to stop water outlet when a comparison result between the port profile and the water level characteristics meets a preset condition. According to the scheme, the water dispenser can be accurately controlled to stop water outlet based on the water level characteristics of water in the container, and the accuracy and convenience of controlling the water dispenser are improved.
Referring to fig. 11, fig. 11 is a schematic block diagram of a structure of a water dispenser provided in the embodiment of the present application.
As shown in fig. 11, the water dispenser 300 may include a processor 302, a memory 303, and a communication interface 304 connected by a system bus 301, wherein the memory 303 may include a non-volatile computer-readable storage medium and an internal memory.
The non-transitory computer readable 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 302 is used to provide computing and control capabilities to support the operation of the overall water dispenser.
The memory 303 provides an environment for the execution of a computer program in a non-transitory computer readable storage medium, which when executed by the processor 302, causes the processor 302 to perform any one of the water dispenser control methods.
The communication interface 304 is used for communication. Those skilled in the art will appreciate that the configuration shown in fig. 11 is merely a block diagram of a portion of the configuration associated with the present application and does not constitute a limitation of the water dispenser 300 to which the present application is applied, and that a particular water dispenser 300 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 301 is, for example, an I2C (Inter-Integrated Circuit) bus, the Memory 303 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 302 may be a Central Processing Unit (CPU), the Processor 302 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein, in some embodiments, the processor 302 is configured to run a computer program stored in the memory 303 to perform the steps of:
acquiring the port outline of a container placed below a water outlet of the water dispenser, controlling the water outlet of the water dispenser, and acquiring a current image containing the container; extracting water level features generated based on tension formed between the container and water from the current image; and when the comparison result between the port profile and the water level characteristic meets a preset condition, controlling the water dispenser to stop discharging water.
In some embodiments, in obtaining a port profile of a container placed under a water outlet of a water dispenser, the processor 302 further performs: acquiring images below a water outlet of the water dispenser at intervals of preset time to obtain multi-frame images; when the difference between the multiple frames of images is smaller than a first preset threshold value, selecting one image from the multiple frames of images as a background image; collecting an initial image below a water outlet of the water dispenser; and when the difference between the initial image and the background image is greater than a second preset threshold value, determining that the container is placed below the water outlet of the water dispenser, and acquiring the port outline of the container.
In some embodiments, in obtaining the port profile of the container, the processor 302 further performs: collecting container images from the upper part of the container through a camera preset around a water outlet of the water dispenser; extracting a port profile of the container from the container image; alternatively, a user-entered radius or diameter value is received, and a port profile of the vessel is determined based on the radius or diameter value.
In some embodiments, in extracting the port profile of the container from the container image, the processor 302 further performs: when the container for receiving water is not placed below the water outlet of the water dispenser, acquiring an image below the water outlet of the water dispenser to obtain a background image; comparing the container image with the background image to obtain a pixel difference; determining a port profile of the container according to the pixel difference; or carrying out port contour recognition on the container image through the trained recognition model to obtain the port contour of the container.
In some embodiments, in obtaining a port profile of a container placed under a water outlet of a water dispenser, the processor 302 further performs: acquiring the volume and height of the container, and determining the port profile of the container according to the volume and height; or acquiring the volume, the height and the bottom area of the container, and determining the port outline of the container according to the volume, the height and the bottom area; alternatively, the length of the beveled edge, the area of the bottom, and the height of the container are obtained, and the port profile of the container is determined based on the length of the beveled edge, the area of the bottom, and the height.
In some embodiments, in obtaining the bottom area of the container, processor 302 further performs: detecting a stress area where a pressure value is larger than a preset threshold value through a pressure sensor preset at the position where the container is placed, and determining the bottom area of the container according to the stress area; or receiving container parameters input by a user, and calculating the bottom area of the container according to the container parameters; or after the water dispenser discharges water, detecting the water surface boundary at the bottom of the container, and setting the water surface boundary at the bottom of the container as the area of the bottom of the container.
In some embodiments, processor 302, in acquiring the current image containing the container, further performs: when the camera preset around the water outlet of the water dispenser collects water vapor or the water outlet temperature of the water dispenser is higher than a preset temperature threshold value, a preset fan is controlled to be started, a filter plate preset by the camera is controlled to be heated, and/or a dust cover preset by the camera is controlled to be heated; after the fan is turned on, the filter plate is heated and/or the dust cover is heated, the current image containing the container is collected through the camera.
In some embodiments, processor 302, in acquiring the current image containing the container, further performs: detecting the current light intensity of the environment where the water dispenser is located; if the current light intensity is smaller than a preset intensity threshold value, controlling a preset light supplement lamp to be started; and after the light supplement lamp is turned on, acquiring a current image containing the container.
In some embodiments, after controlling the water dispenser to dispense water and acquiring the current image containing the container, the processor 302 further performs: judging whether the container moves or not or whether foreign matters enter the container or not according to the current image; when the container moves or foreign matters enter the container, the water dispenser is controlled to stop discharging water; in extracting from the current image water level features generated based on the container forming tension with the water, the processor 302 further performs: when there is no movement of the container or no foreign object entering the container, water level features generated based on the tension of the container with water are extracted from the current image.
In some embodiments, in extracting from the current image water level features generated based on the container forming tension with the water, the processor 302 further performs: extracting a light reflection boundary formed by tension at the junction of the container and the water from the current image to obtain a water surface boundary with round bright lines, and setting the water surface boundary as a water level characteristic; when the comparison result between the port profile and the water level characteristic satisfies the preset condition, and the water dispenser is controlled to stop discharging water, the processor 302 further executes: comparing the size of the port profile to the size of the water surface boundary; and when the difference value between the size of the port outline and the size of the water surface boundary is smaller than a preset threshold value, determining that the comparison result between the port outline and the water level characteristics meets a preset condition, and controlling the water dispenser to stop discharging water.
In some embodiments, processor 302 further performs: when the container for receiving water is placed below the water outlet of the water dispenser and the port contour of the container is not obtained, prompt information of manual water discharging is output.
In the above embodiments, the descriptions of the embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the control method of the water dispenser, and are not described herein again.
When the container for receiving water is placed below the water outlet of the water dispenser, the water dispenser can acquire the port outline of the container, control the water dispenser to discharge water and acquire the current image containing the container; and then extracting water level characteristics generated based on tension formed between the container and water from the current image, and controlling the water dispenser to stop water outlet when a comparison result between the port profile and the water level characteristics meets a preset condition. According to the scheme, the water dispenser can automatically and accurately stop water outlet based on the water level characteristics of water in the container, and the accuracy and convenience of water outlet control are improved.
The embodiment of the application also provides a computer readable storage medium, wherein a computer program is stored in the computer readable storage medium, the computer program comprises program instructions, and a processor executes the program instructions to realize any one of the water dispenser control methods provided by the embodiment of the application. For example, the computer program is loaded by a processor and may perform the following steps:
acquiring the port outline of a container placed below a water outlet of the water dispenser, controlling the water outlet of the water dispenser, and acquiring a current image containing the container; extracting water level features generated based on tension formed between the container and water from the current image; and when the comparison result between the port profile and the water level characteristic meets a preset condition, controlling the water dispenser to stop discharging water.
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 of 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), etc. 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 (13)

1. A control method of a water dispenser is characterized by comprising the following steps:
acquiring the port outline of a container placed below a water outlet of a water dispenser, and controlling the water outlet of the water dispenser;
acquiring a current image containing the container;
extracting water level features from the current image that are generated based on the container forming tension with water;
and when the comparison result between the port profile and the water level characteristic meets a preset condition, controlling the water dispenser to stop discharging water.
2. The water dispenser control method of claim 1, wherein the obtaining a port profile of a container placed under a water outlet of the water dispenser comprises:
acquiring images below a water outlet of the water dispenser at preset intervals to obtain a plurality of frames of images;
when the difference between the multi-frame images is smaller than a first preset threshold value, selecting one image from the multi-frame images as a background image;
collecting an initial image below a water outlet of the water dispenser;
and when the difference between the initial image and the background image is larger than a second preset threshold value, determining that the container is placed below a water outlet of the water dispenser, and acquiring the port outline of the container.
3. The water dispenser control method of claim 1, wherein the obtaining a port profile of a container placed under a water outlet of the water dispenser comprises:
collecting container images from the upper part of the container through a camera preset around a water outlet of the water dispenser;
extracting a port profile of the container from the container image; alternatively, the first and second electrodes may be,
receiving a user-entered radius or diameter value, determining a port profile of the vessel based on the radius or diameter value.
4. The water dispenser control method of claim 3, wherein the extracting the port profile of the container from the container image comprises:
when the container for receiving water is not placed below the water outlet of the water dispenser, acquiring an image below the water outlet of the water dispenser to obtain a background image;
comparing the container image with the background image to obtain a pixel difference;
determining a port profile of the container from the pixel differences; alternatively, the first and second electrodes may be,
and carrying out port contour recognition on the container image through the trained recognition model to obtain the port contour of the container.
5. The water dispenser control method of claim 1, wherein the obtaining a port profile of a container placed under a water outlet of the water dispenser comprises:
acquiring the volume and the height of the container, and determining the port profile of the container according to the volume and the height; alternatively, the first and second electrodes may be,
acquiring the volume, height and bottom area of the container, and determining the port profile of the container according to the volume, height and bottom area; alternatively, the first and second electrodes may be,
obtaining the length of the bevel edge, the area of the bottom and the height of the container, and determining the port profile of the container according to the length of the bevel edge, the area of the bottom and the height.
6. The water dispenser control method of claim 5, wherein obtaining the bottom area of the container comprises:
detecting a stress area where a pressure value is larger than a preset threshold value through a pressure sensor preset at the position where the container is placed, and determining the bottom area of the container according to the stress area; alternatively, the first and second electrodes may be,
receiving container parameters input by a user, and calculating the bottom area of the container according to the container parameters; alternatively, the first and second electrodes may be,
and after the water dispenser discharges water, detecting the water surface boundary at the bottom of the container, and setting the water surface boundary at the bottom of the container as the area of the bottom of the container.
7. The water dispenser control method of claim 1, wherein the capturing a current image containing the container comprises:
when a camera preset around a water outlet of the water dispenser collects water vapor or the water outlet temperature of the water dispenser is higher than a preset temperature threshold value, a preset fan is controlled to be started, a filter preset by the camera is controlled to be heated, and/or a dust cover preset by the camera is controlled to be heated;
after the fan is started, the filter plate is heated, and/or the dust cover is heated, the current image containing the container is collected through the camera.
8. The water dispenser control method of claim 1, wherein the capturing a current image containing the container comprises:
detecting the current light intensity of the environment where the water dispenser is located;
if the current light intensity is smaller than a preset intensity threshold value, controlling a preset light supplement lamp to be started;
and after the light supplement lamp is turned on, acquiring a current image containing the container.
9. The water dispenser control method of claim 1, wherein after the acquiring the current image containing the container, the water dispenser control method further comprises:
judging whether the container moves or not or whether foreign matters enter the container or not according to the current image;
when the container moves or foreign matters enter the container, controlling the water dispenser to stop discharging water;
the extracting from the current image water level features generated based on the container forming tension with water comprises:
when there is no movement of the container or no foreign object entering the container, extracting from the current image water level features generated based on the container forming a tension with the water.
10. The water dispenser control method of claim 1, wherein the extracting from the current image the water level feature generated based on the container forming tension with water comprises:
extracting a light reflection boundary formed by tension at the junction of the container and the water from the current image to obtain a water surface boundary with round bright lines, and setting the water surface boundary as a water level characteristic;
when the comparison result between the port profile and the water level characteristics meets a preset condition, the step of controlling the water dispenser to stop discharging water comprises the following steps:
comparing a size of the port profile to a size of the water surface boundary;
and when the difference value between the size of the port outline and the size of the water surface boundary is smaller than a preset threshold value, determining that the comparison result between the port outline and the water level characteristics meets a preset condition, and controlling the water dispenser to stop discharging water.
11. The water dispenser control method according to any one of claims 1 to 10, characterized in that the water dispenser control method further comprises:
and when the container for receiving water is placed below the water outlet of the water dispenser and the port contour of the container is not obtained, outputting prompt information of manual water discharging.
12. A water dispenser, characterized in that the water dispenser comprises a processor and a memory, wherein the memory stores a computer program, and the processor executes the water dispenser control method according to any one of claims 1 to 11 when calling the computer program in the memory.
13. A computer-readable storage medium for storing a computer program which is loaded by a processor to execute the water dispenser control method according to any one of claims 1 to 11.
CN202010132815.0A 2020-02-29 2020-02-29 Water dispenser control method, water dispenser and computer readable storage medium Withdrawn CN111568235A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010132815.0A CN111568235A (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
CN202010132815.0A CN111568235A (en) 2020-02-29 2020-02-29 Water dispenser control method, water dispenser and computer readable storage medium

Publications (1)

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

Family

ID=72115136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010132815.0A Withdrawn CN111568235A (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) CN111568235A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114209209A (en) * 2020-12-24 2022-03-22 佛山市顺德区美的饮水机制造有限公司 Water outlet control device for water dispenser and water dispenser
CN114451783A (en) * 2020-11-05 2022-05-10 云米互联科技(广东)有限公司 Water dispenser control method, water dispenser and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589482A (en) * 2015-12-23 2016-05-18 小米科技有限责任公司 Water outlet control method and device
CN108523659A (en) * 2017-03-05 2018-09-14 江泽林 A kind of water dispenser and its control method of intelligent control water yield
CN108742159A (en) * 2018-04-08 2018-11-06 浙江安精智能科技有限公司 Intelligent control device of water dispenser based on RGB-D cameras and its control method
CN208160531U (en) * 2017-06-12 2018-11-30 珠海格力电器股份有限公司 A kind of water dispenser
CN110211093A (en) * 2019-04-30 2019-09-06 上海工程技术大学 A kind of water outlet control method for automatic drinking water apparatus
CN110432780A (en) * 2019-08-07 2019-11-12 佛山市顺德区美的饮水机制造有限公司 Control method, device, water dispenser and the machine readable storage medium of water dispenser

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589482A (en) * 2015-12-23 2016-05-18 小米科技有限责任公司 Water outlet control method and device
CN108523659A (en) * 2017-03-05 2018-09-14 江泽林 A kind of water dispenser and its control method of intelligent control water yield
CN208160531U (en) * 2017-06-12 2018-11-30 珠海格力电器股份有限公司 A kind of water dispenser
CN108742159A (en) * 2018-04-08 2018-11-06 浙江安精智能科技有限公司 Intelligent control device of water dispenser based on RGB-D cameras and its control method
CN110211093A (en) * 2019-04-30 2019-09-06 上海工程技术大学 A kind of water outlet control method for automatic drinking water apparatus
CN110432780A (en) * 2019-08-07 2019-11-12 佛山市顺德区美的饮水机制造有限公司 Control method, device, water dispenser and the machine readable storage medium of water dispenser

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114451783A (en) * 2020-11-05 2022-05-10 云米互联科技(广东)有限公司 Water dispenser control method, water dispenser and computer readable storage medium
CN114209209A (en) * 2020-12-24 2022-03-22 佛山市顺德区美的饮水机制造有限公司 Water outlet control device for water dispenser and water dispenser
CN114209209B (en) * 2020-12-24 2024-02-20 佛山市顺德区美的饮水机制造有限公司 Water outlet control device for water dispenser and water dispenser

Similar Documents

Publication Publication Date Title
CN111568245A (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
CN111568179A (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
CN111568236A (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
CN111568242A (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
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
CN111568229A (en) Water outlet device control method, water outlet device and computer readable storage medium
CN111568230A (en) Water outlet control method of water dispenser, water dispenser and computer readable storage medium
CN111568185A (en) Control method of water dispenser, water dispenser and computer readable storage medium
CN111568237A (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
CN111642975A (en) Water outlet control method, water dispenser and computer readable storage medium
CN111568194A (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
CN111568240A (en) Water outlet control method of water dispenser, water dispenser and computer readable storage medium
CN111568232A (en) Water outlet control method of water dispenser, water dispenser and computer readable storage medium
CN111568238A (en) Water outlet control method of water dispenser, water dispenser and computer readable storage medium
CN111568234A (en) Water surface detection method, water dispenser and computer readable storage medium
CN111568244A (en) Water dispenser control method, water dispenser and computer readable storage medium
CN111568231A (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

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20200825