CN111568220A - 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
CN111568220A
CN111568220A CN202010131617.2A CN202010131617A CN111568220A CN 111568220 A CN111568220 A CN 111568220A CN 202010131617 A CN202010131617 A CN 202010131617A CN 111568220 A CN111568220 A CN 111568220A
Authority
CN
China
Prior art keywords
container
water
image
water outlet
preset
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
CN202010131617.2A
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 CN202010131617.2A priority Critical patent/CN111568220A/en
Publication of CN111568220A publication Critical patent/CN111568220A/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
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0428Safety, monitoring
    • 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)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Food Science & Technology (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)
  • Automation & Control Theory (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 full load weight value of a container placed on the placement platform, wherein the full load weight value is a weight value of the container when the container is filled with water; controlling the water outlet of the water dispenser, and acquiring the distance between the water surface boundary of the container and the container opening of the container in the water outlet process; if the distance is smaller than the preset distance, acquiring the current weight value of the container through the weight sensor; and if the ratio of the current weight value of the container to the full load weight value is within a preset ratio range, controlling the water dispenser to discharge water. The automatic water outlet and automatic water cut-off of the water dispenser can be realized, 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
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 to manually place the container at the delivery port, and then manually control the water dispenser to go out water, pack into the container, and when the water in the container was full, the user again manually controlled the water dispenser and stopped water, and the whole process required user manual control, and user experience was not good. Therefore, how to intelligently control the water outlet of the water dispenser is a problem to be solved urgently at present.
Disclosure of Invention
The main purpose of the present application is to provide a water dispenser control method, a water dispenser and a computer-readable storage medium, which aim to intelligently control the water outlet of the water dispenser and improve the user experience.
In a first aspect, the present application provides a method for controlling a water dispenser, where the water dispenser includes a water outlet and a storage platform, the water outlet is located above the storage platform, the storage platform is provided with a weight sensor, and the method includes:
acquiring a full load weight value of a container placed on the placement platform, wherein the full load weight value is a weight value of the container when the container is filled with water;
controlling the water outlet of the water dispenser, and acquiring the distance between the water surface boundary of the container and the container opening of the container in the water outlet process;
if the distance is smaller than the preset distance, acquiring the current weight value of the container through the weight sensor;
and if the ratio of the current weight value of the container to the full load weight value is within a preset ratio range, controlling the water dispenser to discharge water.
In a second aspect, the present application further provides a water dispenser, where the water dispenser includes a weight sensor, a processor, a memory, and a computer program stored on the memory and executable by the processor, where the computer program, when executed by the processor, implements any one of the water dispenser control methods provided in the embodiments of the present application.
In a third aspect, the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, where when the computer program is executed by a processor, the computer program implements any one of the water dispenser control methods provided in the embodiments of the present application.
The application provides a water dispenser control method, water dispenser and computer readable storage medium, this application is through the full load weight value of obtaining the container of placing on platform to control the water dispenser and go out water, then in water process, obtain the surface of water border of container and the distance between the container mouth of container, and when this distance is less than predetermineeing the distance, gather the current weight value of container through weight sensor, and when the ratio of the current weight value of container and this full load weight value lies in predetermineeing the ratio within range, then control the water dispenser and go out water, whole process does not need user manual operation water dispenser, the water dispenser can automatic play water and stop out water intelligently, very big improvement user experience.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a control method of a water dispenser provided in an embodiment of the present application;
fig. 2 is a schematic view of a storage platform of a water dispenser provided in an embodiment of the present application, where no container is placed;
fig. 3 is a schematic view of a container placed on a storage platform of a water dispenser provided in an embodiment of the present application;
FIG. 4 is a schematic view illustrating that the mouth of the container placed on the platform is not located within the water outlet range of the water outlet in the embodiment of the present application;
FIG. 5 is a schematic view of a container port of a container placed on a platform of an embodiment of the present application positioned within a water outlet range of a water outlet;
fig. 6 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 and the like, for example, the mobile terminal can acquire a full-load weight value of a container placed on a placement platform and control the water dispenser to discharge water, then acquire a distance between a water surface boundary of the container and a container opening of the container in a water discharge process, acquire a current weight value of the container through a weight sensor when the distance is smaller than a preset distance, and control the water dispenser to discharge water when a ratio of the current weight value of the container to the full-load weight value is within a preset ratio range.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
The following description will be given in detail by taking an example in which the water dispenser control method is applied to a water dispenser.
Referring to fig. 1, fig. 1 is a schematic flow chart of a water dispenser control method according to an embodiment of the present application. As shown in fig. 1, the method for controlling a water dispenser includes steps S101 to S104.
Step S101, obtaining a full load weight value of a container placed on the placement platform, wherein the full load weight value is a weight value when the container is filled with water.
The water dispenser comprises a storage platform and a water outlet, the storage platform is located below the water outlet, at least one weight sensor is arranged on the storage platform, and the type of the container can be flexibly set according to actual needs, for example, the container is a plastic cup, a ceramic cup, a glass cup or a vacuum cup.
In one embodiment, since the image (i.e., the image) acquired by the camera of the water dispenser is generally fixed when no object such as a container is placed on the placement platform below the water outlet of the water dispenser, when the container receiving water is not placed on the placement platform below the water outlet of the water dispenser, the image below the water outlet of the water dispenser is acquired by the camera of the water dispenser to obtain a background image, and the background image does not contain the container. The installation position of the shooting device can be set based on actual needs, for example, the shooting device can be installed around the water outlet or on the side wall of the water dispenser. As shown in fig. 2, the water dispenser includes a water outlet 10, a platform 20, a camera 30 and a weight sensor 40, and no container is placed on the platform 20.
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 is obviously different from the background image, so that the collected image and the background image can be subjected to pixel comparison at the moment, and if the collected image and the background image have pixel difference, the container is placed on the placing platform of the water dispenser. Whether the container is placed on the placing platform of the water dispenser can be accurately determined through the background image and the current image below the water outlet.
In one embodiment, the container is loaded with an rfid tag that is identified by an rfid device to obtain a container full weight value. Wherein, the radio frequency identification label that the container carried sets up in the bottom of container, and this radio frequency identification label carries information such as full-load weight value, and the radio frequency identification device sets up in storage platform, when the container was placed in storage platform, can discern the full-load weight value in the radio frequency identification label through this radio frequency identification device.
The container image library and the full-load weight value corresponding to each container image in the container image library are stored in a cloud or a water dispenser memory in advance, different containers are placed below a water outlet by a manufacturer or a user of the water dispenser, the image of the container placed below the water outlet is shot by a shooting device, the water dispenser is manually controlled to discharge water, then when the container is full of water, the full-load weight value of the container is collected through a weight sensor, the full-load weight value of the container is obtained, the container image is obtained by cutting the shot image, the relation between the container image and the full-load weight value is established, the full-load container image library and the full-load weight value corresponding to each container image in the container image library are obtained, and a full-load weight value relation table is obtained.
In one embodiment, after a container is placed on a placement platform, a current image of the container placed on the placement platform is collected through a preset shooting device; acquiring a container image from the current image, and 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, acquiring a full load weight value corresponding to the matched preset container image. Wherein the full load weight value is the weight value when the container is filled with water. As shown in fig. 3, the container for receiving water is placed on the platform 20 of the water dispenser.
In an embodiment, the container image may be extracted in a manner of: acquiring a preset background image, wherein the preset background image is an image shot by a shooting device when a container is not placed on the object placing platform; and comparing the current image with a preset background image to obtain a pixel difference, and extracting an image area where the pixel difference is located in the current image to obtain a container image.
In an embodiment, the matching method of the container image and the preset container image may specifically be: calculating the similarity between the container image and each preset container image, determining whether the preset container image with the similarity larger than or equal to the preset similarity exists, if the preset container image with the similarity larger than or equal to the preset similarity exists, determining that the preset container image in the preset container image library is matched with the container image, taking the preset container image with the maximum similarity as an image matched with the container image, and if the preset container image with the similarity larger than or equal to the preset similarity does not exist, determining that the preset container image in the preset container image library is not matched with the container image. The preset similarity may be set according to actual conditions, for example, the preset similarity is 98% or 99%.
In one embodiment, if the preset container image corresponding to the container image is not matched, determining the shape contour, the outer surface color and/or the outer surface texture of the container according to the current image; acquiring a mapping relation table between a pre-stored shape outline, an outer surface color and/or an outer surface texture and a full load weight value; and determining a full weight value of the container according to the mapping relation table and the shape outline, the outer surface color and/or the outer surface texture. The method comprises the steps that a manufacturer or a user of the water dispenser places different containers below a water outlet, a shooting device shoots images of the containers placed below the water outlet, according to the images, the shape outline, the outer surface color and/or the outer surface texture of the containers are determined, then water outlet of the water dispenser is manually controlled, when the containers are filled with water, the current weight values of the containers are collected through a weight sensor, so that the full load values of the containers are obtained, and the relationship among the shape outline, the outer surface color and/or the outer surface texture and the full load values is established, so that a mapping relation table among the shape outline, the outer surface color and/or the outer surface texture and the full load values is obtained.
In one embodiment, the shape profile of the container is determined by: acquiring a preset background image, wherein the preset background image is an image shot by a shooting device when a container is not placed on a storage platform of the water dispenser; comparing the current image with the preset background image in terms of pixels, for example, performing difference processing on the current image and the preset background image to obtain a pixel difference, where the pixel difference may be a pixel in a region where a pixel value in the current image does not match a pixel value in the preset background image; the shape profile of the container is determined from the pixel differences.
In an embodiment, the shape and contour of the container may be determined by: and carrying out shape contour recognition on the current image through the trained recognition model to obtain the shape contour of the container. 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 the shape contours of containers of different types, and the trained recognition model is obtained.
And S102, controlling the water dispenser to discharge water, and acquiring the distance between the water surface boundary of the container and the container opening of the container in the water discharging process.
And after the full load weight value of the container is acquired, controlling the water outlet of the water dispenser, and acquiring the distance between the water surface boundary of the container and the container opening of the container at intervals of preset time in the water outlet process, so that whether the container is about to be filled with water can be determined based on the distance.
In one embodiment, in the water outlet process, a shooting device around a water outlet collects an image containing a container to obtain a target image, wherein the target image comprises a color image and a depth image; extracting an imaging area of a container mouth of the container in the color image from the color image to obtain a first imaging area; extracting an imaging area based on a water surface boundary generated by tension formed between the container and water from the color image to obtain a second imaging area; acquiring a depth value of a first imaging area from the depth image to obtain a first depth value, and acquiring a depth value of a second imaging area from the depth image to obtain a second depth value; and determining the distance between the water surface boundary and the container opening according to the first depth value and the second depth value. Wherein the camera is a depth camera.
Specifically, images containing the container are collected through a shooting device at preset intervals to obtain a target image. The preset time may be set according to an actual situation, which is not specifically limited in the embodiment of the present application, for example, if the preset time is 0.3 second or 0.2 second, the image including the container is captured by the capturing device every 0.2 second or 0.3 second.
In an embodiment, the determining manner of the first imaging region is specifically as follows: comparing the color image with a preset background image to obtain a pixel difference, wherein the preset background image is an image shot by a shooting device when a container is not placed below the water outlet; and determining an imaging area of the container opening of the container according to the pixel difference to obtain a first imaging area, wherein the imaging area where the pixel difference is located is the imaging area of the container opening. The pixel difference may be a pixel of a region where a pixel value in the color image does not match a pixel value in a preset background image.
In an embodiment, the determining manner of the second imaging area is specifically as follows: the water in the container can form an adhesion effect on the inner wall of the container due to the existence of tension, so that the water optically shows optical characteristics such as abnormal refraction effect, and the optical characteristics can be captured and identified by a shooting device from the perspective of a visual identification technology. Therefore, in the process of water outlet of the water dispenser, after the color image containing the container is acquired, the imaging area of the water surface boundary generated based on the tension formed between the container and the water can be extracted from the color image, and the second imaging area can be obtained. In the process of discharging water, the water surface in the container fluctuates due to tension, and an obvious reflective boundary is arranged at the boundary of the inner wall of the container, so that the boundary of the water surface can be obtained through image analysis. For example, the last current image in the current images of multiple frames is compared with the previous N (the specific value of N is flexibly set according to actual needs) images, so as to obtain an area with an obvious brightness difference, which is an imaging area of the current water surface boundary, i.e. the second imaging area.
In an embodiment, the first depth value may be determined in a specific manner: acquiring the depth value of each pixel point on the first imaging area from the depth image; and calculating an average depth value according to the depth value of each pixel point, and taking the average depth value as the first depth value. Similarly, the second depth value may be determined in a specific manner: acquiring the depth value of each pixel point on the second imaging area from the depth image; and calculating an average depth value according to the depth value of each pixel point, and taking the average depth value as a second depth value.
In an embodiment, the determining the distance between the water surface boundary and the container mouth according to the first depth value and the second depth value is specifically as follows: and calculating the difference value between the first depth value and the second depth value, and taking the absolute value of the difference value between the first depth value and the second depth value as the distance between the water surface boundary and the container opening.
In one embodiment, in the process of water outlet, when the shooting device detects that water vapor exists around the water outlet, a preset fan is controlled to be started, a preset filter plate of the shooting device is controlled to be heated, and/or a preset dust cover of the shooting device is controlled to be heated; after the fan is started, the filter plate is heated and/or the dust cover is heated, an image containing the container is shot through the shooting device, and a target image is obtained.
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 shooting device, so as to improve the quality of images acquired by the shooting device. When the water dispenser discharges water, whether water vapor exists or not can be detected through a shooting device 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 shooting device. 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 collected through a shooting device. 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 may be disposed near or at other positions of the lens of the camera, and the preset filter may be heated to expel water vapor from the lens of the camera, so as to improve the quality of the image collected by the camera. When the water dispenser goes out water, whether water vapor exists or not can be detected through a shooting device or other sensors and the like which are preset around a water outlet of the water dispenser, when the water vapor is detected, the preset filter plate is controlled to be heated, and after the filter plate is heated, the current image containing the container is collected through the shooting device. 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 shooting device. 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, etc.) may be disposed near or at other positions of the lens of the photographing device, and the preset dust cover may be heated to expel water vapor on the lens of the photographing device, thereby improving the quality of the image acquired by the photographing device. When the water dispenser discharges water, whether water vapor exists or not can be detected through a shooting device 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 shooting device. 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 collected through a shooting device. 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 one embodiment, before controlling the water outlet of the water dispenser, whether a container opening of a container placed on a placement platform is in the water outlet range of a water outlet is determined; if the container mouth of the container placed on the object placing platform is in the water outlet range of the water outlet, controlling the water outlet of the water dispenser, and acquiring the distance between the water surface boundary of the container and the container mouth of the container in the water outlet process; and if the container port of the container placed on the placement platform is not 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 placed in the water outlet range of the water outlet. Wherein, the preset reminding operation comprises at least one of the following operations: broadcasting a preset reminding sound, lighting a preset breathing lamp and displaying preset reminding information.
Illustratively, as shown in fig. 4, the water dispenser includes a water outlet 10, a platform 20, a camera 30 and a weight sensor 40, and a container opening of the container is not located in a water outlet range 50 of the water outlet 10. As shown in fig. 5, the container mouth of the container is located in the water outlet range 50 of the water outlet 10.
In an embodiment, the central region of the placement platform is located within the water outlet range of the water outlet, and the manner of determining whether the container port of the container is located within the water outlet range of the water outlet may specifically be: controlling a shooting device around the water outlet to shoot the container downwards to obtain a downwards shot image, wherein the downwards shot image comprises an imaging area of a container opening and an imaging area of the storage platform; determining whether an imaging region of the receptacle port is located in a central 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 placement platform, determining that the container opening of the container is not positioned in the water outlet range of the water outlet.
And S103, if the distance is smaller than a preset distance, acquiring the current weight value of the container through the weight sensor.
And if the distance between the water surface boundary of the container and the container opening of the container is less than the preset distance, acquiring the current weight value of the container through a weight sensor. The preset distance may be set based on actual conditions, which is not specifically limited in this application, and for example, the preset distance is 1.5 cm.
In one embodiment, the distance between the water surface boundary of the container and the container opening of the container is acquired at preset time intervals, whether the distance is smaller than a preset distance or not is determined, if the distance is smaller than the preset distance, the current weight value of the container is acquired through a weight sensor, and if the distance is larger than or equal to the preset distance, the distance between the water surface boundary of the container and the container opening of the container is continuously acquired until the distance between the water surface boundary and the container opening of the container is smaller than the preset distance.
And S104, if the ratio of the current weight value of the container to the full load weight value is within a preset ratio range, controlling the water dispenser to discharge water.
After collecting the current weight value of the container, determining the ratio of the current weight value of the container to the full load weight value, and determining whether the ratio is within the preset ratio range, if the ratio of the current weight value of the container to the full load weight value is within the preset ratio range, controlling the water dispenser to discharge water, if the ratio of the current weight value of the container to the full load weight value is not within the preset ratio range, continuously collecting the current weight value of the container, and determining whether the ratio of the collected current weight value of the container to the full load weight value is within the preset ratio range.
In one embodiment, after the current weight value of the container is collected, the ratio of the current weight value of the container to the full load weight value is determined, whether the ratio is larger than or equal to a preset ratio or not is determined, if the ratio is larger than or equal to the preset ratio, the water dispenser is controlled to stop water outlet, and if the ratio is smaller than the preset ratio, the water dispenser is controlled to continue to outlet water until the ratio is larger than or equal to the preset ratio. The preset ratio can be set based on actual conditions, for example, the preset ratio is 0.85.
This application is through acquireing the full load weight value of placing the container on platform to control the water dispenser and go out water, then at the play water in-process, acquire the surface of water border of container with distance between the container mouth of container, and when this distance is less than preset distance, gather the current weight value of container through weighing transducer, and when the ratio of the current weight value of container and this full load weight value lies in preset ratio within range, then control the water dispenser and go out water, whole process does not need user manually operation water dispenser, the water dispenser can automatic play water of intelligence and stop out water, very big improvement user experience.
Referring to fig. 6, fig. 6 is a schematic block diagram of a structure of a water dispenser provided in the embodiment of the present application.
As shown in fig. 6, the water dispenser 200 includes a processor 202, a memory 203, a communication interface 204 and a weight sensor 205 connected by a system bus 201, wherein the memory 203 may include a nonvolatile storage medium and an internal memory. This water dispenser 200 includes delivery port and platform, the delivery port is located the platform top, the platform is provided with weight sensor 205.
The non-volatile storage medium may store a computer program. The computer program includes program instructions that, when executed, cause a processor to perform any one of the water dispenser control methods.
The processor 202 is used to provide computing and control capabilities to support the operation of the overall water dispenser.
The memory 203 provides an environment for running a computer program in a non-volatile storage medium, which when executed by the processor 202, causes the processor 202 to perform any one of the water dispenser control methods.
The communication interface 204 is used for communication. Those skilled in the art will appreciate that the configuration shown in fig. 6 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation on the water dispenser to which the present application is applied, and that a particular water dispenser may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
It should be understood that the bus 201 is, for example, an I2C (Inter-Integrated Circuit) bus, the Memory 203 may be a Flash chip, a Read-Only Memory (ROM), a magnetic disk, an optical disk, a usb disk, or a removable hard disk, the Processor 202 may be a Central Processing Unit (CPU), and the Processor may also be other general-purpose processors, Digital Signal Processors (DSP), Application Specific Integrated Circuits (ASIC), Field Programmable Gate Arrays (FPGA) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein, in one embodiment, the processor 202 is configured to run a computer program stored in the memory 203 to implement the following steps:
acquiring a full load weight value of a container placed on the placement platform, wherein the full load weight value is a weight value of the container when the container is filled with water;
controlling the water outlet of the water dispenser, and acquiring the distance between the water surface boundary of the container and the container opening of the container in the water outlet process;
if the distance is smaller than the preset distance, acquiring the current weight value of the container through the weight sensor;
and if the ratio of the current weight value of the container to the full load weight value is within a preset ratio range, controlling the water dispenser to discharge water.
In one embodiment, the processor 202, in effecting obtaining a full weight value for a container placed on the storage platform, is operative to effect:
acquiring a current image containing a container placed on the object placing platform through a preset shooting device;
acquiring a container image from the current image, and 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, acquiring a full load weight value corresponding to the matched preset container image.
In one embodiment, the processor 202, after implementing matching the container image with a preset container image in a preset container image library, is further configured to implement:
if the preset container image corresponding to the container image is not matched, determining the shape contour, the outer surface color and/or the outer surface texture of the container according to the current image;
acquiring a mapping relation table between a pre-stored shape outline, an outer surface color and/or an outer surface texture and a full load weight value;
and determining a full weight value of the container according to the mapping relation table and the shape outline, the outer surface color and/or the outer surface texture.
In one embodiment, the processor 202, when obtaining the distance between the water surface boundary of the container and the container opening of the container during the water outlet process, is configured to:
in the water outlet process, acquiring an image containing the container through a shooting device around the water outlet to obtain a target image, wherein the target image comprises a color image and a depth image;
extracting an imaging area of a container mouth of the container in the color image from the color image to obtain a first imaging area;
extracting an imaging area based on a water surface boundary generated by tension formed between the container and water from the color image to obtain a second imaging area;
acquiring a depth value of the first imaging area from the depth image to obtain a first depth value, and acquiring a depth value of the second imaging area from the depth image to obtain a second depth value;
and determining the distance between the water surface boundary and the container opening according to the first depth value and the second depth value.
In one embodiment, the processor 202 is configured to, when acquiring an image including the container by a camera around the water outlet during the water outlet process to obtain a target image, perform:
in the water outlet process, when the shooting device detects that water vapor exists around the water outlet, a preset fan is controlled to be started, a preset filter plate of the shooting device is controlled to be heated, and/or a preset dust cover of the shooting device is controlled to be heated;
after the fan is started, the filter plate is heated, and/or the dust cover is heated, an image containing the container is shot through the shooting device, and a target image is obtained.
In one embodiment, the processor 202, when implementing the extracting of the imaging area of the container mouth of the container in the color image from the color image, obtaining a first imaging area, is configured to implement:
comparing the color image with a preset background image to obtain a pixel difference, wherein the preset background image is an image shot by a shooting device when a container is not placed below the water outlet;
and determining an imaging area of a container opening of the container according to the pixel difference to obtain the first imaging area.
In one embodiment, the processor 202 is further configured to, before controlling the water outlet of the water dispenser and acquiring the distance between the water surface boundary of the container and the container opening of the container during the water outlet process, perform:
determining whether a container opening of a container placed on the placement platform is in a water outlet range of the water outlet;
if the container mouth of the container placed on the object placing platform is in the water outlet range of the water outlet, executing the following steps: controlling the water outlet of the water dispenser, and acquiring the distance between the water surface boundary of the container and the container opening of the container in the water outlet process;
and if the container port of the container placed on the object placing platform is not 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 placed in the water outlet range of the water outlet.
In one embodiment, the central region of the placement platform is located within the water outlet; the processor 202, in implementing determining whether a mouth of a container placed on the placement platform is within a water outlet range of the water outlet, is configured to implement:
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.
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.
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 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 in that the water dispenser comprises a water outlet and a storage platform, the water outlet is located above the storage platform, the storage platform is provided with a weight sensor, and the method comprises the following steps:
acquiring a full load weight value of a container placed on the placement platform, wherein the full load weight value is a weight value of the container when the container is filled with water;
controlling the water outlet of the water dispenser, and acquiring the distance between the water surface boundary of the container and the container opening of the container in the water outlet process;
if the distance is smaller than the preset distance, acquiring the current weight value of the container through the weight sensor;
and if the ratio of the current weight value of the container to the full load weight value is within a preset ratio range, controlling the water dispenser to discharge water.
2. The water dispenser control method of claim 1, wherein the obtaining of the full load weight value of the container placed on the placement platform comprises:
acquiring a current image containing a container placed on the object placing platform through a preset shooting device;
acquiring a container image from the current image, and 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, acquiring a full load weight value corresponding to the matched preset container image.
3. The water dispenser control method of claim 2, wherein after matching the container image with a preset container image in a preset container image library, the method further comprises:
if the preset container image corresponding to the container image is not matched, determining the shape contour, the outer surface color and/or the outer surface texture of the container according to the current image;
acquiring a mapping relation table between a pre-stored shape outline, an outer surface color and/or an outer surface texture and a full load weight value;
and determining a full weight value of the container according to the mapping relation table and the shape outline, the outer surface color and/or the outer surface texture.
4. The water dispenser control method according to any one of claims 1 to 3, wherein the obtaining the distance between the water surface boundary of the container and the container opening of the container during water outlet comprises:
in the water outlet process, acquiring an image containing the container through a shooting device around the water outlet to obtain a target image, wherein the target image comprises a color image and a depth image;
extracting an imaging area of a container mouth of the container in the color image from the color image to obtain a first imaging area;
extracting an imaging area based on a water surface boundary generated by tension formed between the container and water from the color image to obtain a second imaging area;
acquiring a depth value of the first imaging area from the depth image to obtain a first depth value, and acquiring a depth value of the second imaging area from the depth image to obtain a second depth value;
and determining the distance between the water surface boundary and the container opening according to the first depth value and the second depth value.
5. The water dispenser control method of claim 4, wherein in the water outlet process, the step of acquiring an image containing the container by a shooting device around the water outlet to obtain a target image comprises the following steps:
in the water outlet process, when the shooting device detects that water vapor exists around the water outlet, a preset fan is controlled to be started, a preset filter plate of the shooting device is controlled to be heated, and/or a preset dust cover of the shooting device is controlled to be heated;
after the fan is started, the filter plate is heated, and/or the dust cover is heated, an image containing the container is shot through the shooting device, and a target image is obtained.
6. The water dispenser control method according to claim 4, wherein the extracting an imaging area of a container mouth of the container in the color image from the color image to obtain a first imaging area comprises:
comparing the color image with a preset background image to obtain a pixel difference, wherein the preset background image is an image shot by a shooting device when a container is not placed below the water outlet;
and determining an imaging area of a container opening of the container according to the pixel difference to obtain the first imaging area.
7. The water dispenser control method according to any one of claims 1 to 3, wherein the controlling of the water dispenser to discharge water further comprises, before acquiring the distance between the water surface boundary of the container and the container opening of the container during the water discharge process:
determining whether a container opening of a container placed on the placement platform is in a water outlet range of the water outlet;
if the container mouth of the container placed on the object placing platform is in the water outlet range of the water outlet, executing the following steps: controlling the water outlet of the water dispenser, and acquiring the distance between the water surface boundary of the container and the container opening of the container in the water outlet process;
and if the container port of the container placed on the object placing platform is not 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 placed in the water outlet range of the water outlet.
8. The water dispenser control method of claim 7, wherein the center region of the placement platform is located within the water outlet range of the water outlet; the determining whether the container mouth of the container placed on the placement platform is in the water outlet range of the water outlet comprises:
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.
9. A water dispenser, characterized in that the water dispenser comprises a weight sensor, 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.
CN202010131617.2A 2020-02-28 2020-02-28 Water dispenser control method, water dispenser and computer readable storage medium Pending CN111568220A (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (1)

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

Family

ID=72112948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010131617.2A Pending CN111568220A (en) 2020-02-28 2020-02-28 Water dispenser control method, water dispenser and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111568220A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107440475A (en) * 2017-04-28 2017-12-08 浙江苏泊尔家电制造有限公司 Method, cooking apparatus and the computer-readable storage medium of culinary art
CN108056664A (en) * 2018-01-22 2018-05-22 佛山科学技术学院 One kind is from water outlet electric kettle and its control method
CN108742159A (en) * 2018-04-08 2018-11-06 浙江安精智能科技有限公司 Intelligent control device of water dispenser based on RGB-D cameras and its control method
CN108888119A (en) * 2018-09-10 2018-11-27 青岛海尔智能技术研发有限公司 A kind of automatic water filling device and water filling control method
CN110448175A (en) * 2019-08-13 2019-11-15 上饮智能科技(山东)有限公司 A kind of automatic control method and system of cutting off the water out of intelligent drinking machine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107440475A (en) * 2017-04-28 2017-12-08 浙江苏泊尔家电制造有限公司 Method, cooking apparatus and the computer-readable storage medium of culinary art
CN108056664A (en) * 2018-01-22 2018-05-22 佛山科学技术学院 One kind is from water outlet electric kettle and its control method
CN108742159A (en) * 2018-04-08 2018-11-06 浙江安精智能科技有限公司 Intelligent control device of water dispenser based on RGB-D cameras and its control method
CN108888119A (en) * 2018-09-10 2018-11-27 青岛海尔智能技术研发有限公司 A kind of automatic water filling device and water filling control method
CN110448175A (en) * 2019-08-13 2019-11-15 上饮智能科技(山东)有限公司 A kind of automatic control method and system of cutting off the water out of intelligent drinking machine

Similar Documents

Publication Publication Date Title
CN108108655B (en) Article identification device, control method and terminal equipment
CN111568212A (en) Water dispenser control method, water dispenser and computer readable storage medium
CN111568242A (en) Water dispenser control method, water dispenser and computer readable storage medium
CN111568179A (en) Water dispenser control method, water dispenser and computer readable storage medium
CN111568217A (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
CN111568185A (en) Control method of water dispenser, water dispenser and computer readable storage medium
CN111568243B (en) Electric kettle control method, electric kettle and computer readable storage medium
CN111568211A (en) Water dispenser control method, water dispenser and computer readable storage medium
CN111568220A (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
CN111568226A (en) Water outlet control method of water dispenser, water dispenser and computer readable storage medium
CN111568208A (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
CN111568229A (en) Water outlet device control method, water outlet device and computer readable storage medium
CN111642975A (en) Water outlet control method, water dispenser and computer readable storage medium
CN111568239A (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
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
CN111568237A (en) Water dispenser control method, water dispenser and computer readable storage medium
CN105808663B (en) Image classification method and device and electronic equipment
CN111568219A (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
CN111568218A (en) Water dispenser 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200825

RJ01 Rejection of invention patent application after publication