CN111568212A - 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
CN111568212A
CN111568212A CN202010130996.3A CN202010130996A CN111568212A CN 111568212 A CN111568212 A CN 111568212A CN 202010130996 A CN202010130996 A CN 202010130996A CN 111568212 A CN111568212 A CN 111568212A
Authority
CN
China
Prior art keywords
container
water
water outlet
water dispenser
shooting device
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
CN202010130996.3A
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 CN202010130996.3A priority Critical patent/CN111568212A/en
Publication of CN111568212A publication Critical patent/CN111568212A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47JKITCHEN EQUIPMENT; COFFEE MILLS; SPICE MILLS; APPARATUS FOR MAKING BEVERAGES
    • A47J31/00Apparatus for making beverages
    • A47J31/44Parts or details or accessories of beverage-making apparatus
    • A47J31/54Water boiling vessels in beverage making machines
    • A47J31/56Water boiling vessels in beverage making machines having water-level controls; having temperature controls
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47JKITCHEN EQUIPMENT; COFFEE MILLS; SPICE MILLS; APPARATUS FOR MAKING BEVERAGES
    • A47J31/00Apparatus for making beverages
    • A47J31/44Parts or details or accessories of beverage-making apparatus
    • A47J31/4403Constructional details
    • A47J31/4457Water-level indicators
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • 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

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: adjusting the distance between a container placed below the water outlet and the shooting device so as to enable the definition of the current picture of the shooting device to be larger than or equal to the preset definition; controlling the water dispenser to discharge water, and shooting by the shooting device to obtain a current image containing the container in the water discharging process; determining the distance between the water surface boundary of the container and the container opening of the container according to the current image; and if the distance is smaller than or equal to the preset distance, controlling the water dispenser to stop discharging water. The condition of the water level of detection container that this application can be accurate can be when the container will fill with water promptly, and the control water dispenser of intelligence stops out water, prevents that the water in the container from spilling over, very big improvement user experience.

Description

Water dispenser control method, water dispenser and computer readable storage medium
Technical Field
The application relates to the technical field of water dispenser control, in particular to a water dispenser control method, a water dispenser and a computer readable storage medium.
Background
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 below the water outlet, and then manually control the water dispenser to go out, and pack into the container, and when the water in the container was full, the user again manually controlled the water dispenser to stop going out. At present, in the process of water outlet, the water level of a container can be detected through a camera, and the automatic water outlet stop of the water dispenser is realized.
However, the distance between the camera and the storage platform of water dispenser is fixed, and the height of the container that daily used differs, and when the container was placed to storage platform, the distance between camera and the container was different, had the condition that the camera can't accurately detect the water level of container, leads to water to spill over the container, had certain potential safety hazard, and user experience is not good.
Disclosure of Invention
The main purpose of the present application is to provide a water dispenser control method, a water dispenser and a computer-readable storage medium, which aim to intelligently control the water outlet of the water dispenser and improve the user experience.
In a first aspect, the present application provides a method for controlling a water dispenser, where a shooting device is disposed around a water outlet of the water dispenser, the method including:
adjusting the distance between a container placed below the water outlet and the shooting device so as to enable the definition of the current picture of the shooting device to be larger than or equal to the preset definition;
controlling the water dispenser to discharge water, and shooting by the shooting device to obtain a current image containing the container in the water discharging process;
determining the distance between the water surface boundary of the container and the container opening of the container according to the current image;
and if the distance is smaller than or equal to the preset distance, controlling the water dispenser to stop discharging water.
In a second aspect, the present application further provides a water dispenser, where the water dispenser includes a camera, a processor, a memory, and a computer program stored on the memory and executable by the processor, where when the computer program is executed by the processor, any one of the water dispenser control methods provided in the embodiments of the present application is implemented.
In a third aspect, the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, where when the computer program is executed by a processor, the computer program implements any one of the water dispenser control methods provided in the embodiments of the present application.
The embodiment of the application provides a water dispenser control method, a water dispenser and a computer readable storage medium, wherein the distance between a container placed below a water outlet and a shooting device is adjusted to enable the definition of a current picture of the shooting device to be larger than or equal to a preset definition, then the water dispenser is controlled to discharge water, in the water discharging process, the distance between the water surface boundary of the container and the container opening of the container is determined based on a current image containing the container shot by the shooting device, and when the distance is smaller than the preset distance, the water dispenser is controlled to stop discharging water, the condition of the water level of the container can be accurately detected, when the container is filled with water, the water dispenser can be intelligently controlled to stop discharging water, the water in the container is prevented from overflowing, and user experience is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a control method of a water dispenser provided in an embodiment of the present application;
FIG. 2 is a schematic view of a water dispenser provided in the embodiment of the present application, in which no container is placed below the water outlet;
fig. 3 is a schematic view of a container placed below a water outlet of the water dispenser provided in the embodiment of the present application;
FIG. 4 is another schematic view of a container placed below a water outlet of the water dispenser provided in the embodiment of the present application;
FIG. 5 is a schematic view of a camera and a light source installation position provided by an embodiment of the present application;
FIG. 6 is another schematic diagram of a camera and a light source mounting location provided by an embodiment of the present application;
fig. 7 is a schematic block diagram of a structure of a water dispenser provided in the embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The embodiment of the application provides a water dispenser control method, a water dispenser and a computer readable storage medium. The water dispenser control method can be applied to a water dispenser, and can also be applied to a mobile terminal, wherein the mobile terminal comprises a smart phone, a tablet personal computer or a palm computer, and the like, for example, the mobile terminal can adjust the distance between a container placed below a water outlet and a shooting device through a control instruction so as to enable the definition of the current picture of the shooting device to be larger than or equal to the preset definition, then the water dispenser is controlled to discharge water, in the water discharging process, the distance between the water surface boundary of the container and the container opening of the container is determined based on the current image containing the container shot by the shooting device, and the water dispenser is controlled to stop discharging water when the distance is smaller than the preset distance.
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.
And S101, adjusting the distance between a container placed below the water outlet and the shooting device so as to enable the definition of the current picture of the shooting device to be larger than or equal to the preset definition.
The water dispenser comprises a water outlet, wherein a shooting device is arranged around the water outlet, the shooting device can be a monocular shooting device and a binocular shooting device, and the shooting device comprises a 2D camera, a depth camera and a super depth-of-field camera. The type of the container can be flexibly set according to actual needs, and the container is a water cup such as a plastic cup, a ceramic cup, a glass cup or a vacuum cup.
In one embodiment, because the picture (i.e. image) collected by the shooting device is generally fixed when no object such as a container is placed in the water receiving area below the water outlet of the water dispenser, when the container for receiving water is not placed below the water outlet of the water dispenser, the image below the water outlet of the water dispenser is collected by the shooting device to obtain a background image, and the background image does not contain the container; when objects such as a container and the like are placed in a water receiving area below the water outlet of the water dispenser, the picture of the area where the container is located is obviously different from the background image, so that the image acquired by the shooting device can be subjected to pixel comparison with the background image, and if the acquired image is different from the background image in pixel, the container is determined to be placed below the water outlet of the water dispenser. As shown in fig. 2, the container for receiving water is not placed under the water outlet 10 of the water dispenser, and the shooting device 20 is located around the water outlet. Because the background image and the current image below the water outlet are passed through, whether a container is placed below the water outlet of the water dispenser can be accurately determined.
In one embodiment, when a container for receiving water is placed below a water outlet, the definition of a current picture of a shooting device is obtained, and whether the definition is greater than or equal to a preset definition is determined; if the definition is greater than or equal to the preset definition, the distance between the container placed below the water outlet and the shooting device is not adjusted, and the subsequent steps can be executed; if the definition is smaller than the preset definition, the distance between the container placed below the water outlet and the shooting device is adjusted, so that the definition of the current picture of the shooting device is larger than or equal to the preset definition. The preset definition may be set based on an actual situation, and this is not specifically limited in the embodiment of the present application.
In one embodiment, the distance between the container placed below the water outlet and the shooting device can be adjusted by adjusting the height of the storage platform of the water dispenser, or adjusting the height of the shooting device, or adjusting the height of the whole machine body of the water dispenser. Of course, the distance between the container placed below the water outlet and the shooting device can be adjusted in other ways, which is not specifically limited in the embodiment of the present application.
In one embodiment, the height of the object placing platform and the height of the shooting device are adjusted or the height of the whole machine body of the water dispenser is adjusted according to a preset height adjusting value so as to change the distance between the container and the shooting device; after the height of the whole machine body of the object placing platform, the shooting device or the water dispenser is adjusted, whether the definition of the current picture of the shooting device is larger than or equal to the preset definition or not is determined; if the definition of the current picture of the shooting device is smaller than the preset definition, the height of the object placing platform and the height of the shooting device are continuously adjusted according to the preset height adjustment value, or the height of the whole machine body of the water dispenser is adjusted; if the definition of the current picture of the shooting device is larger than or equal to the preset definition, stopping adjusting the height of the object placing platform, adjusting the height of the shooting device or adjusting the height of the whole body of the water dispenser. The preset height adjustment value may be set based on actual conditions, for example, the preset height adjustment value is 1 cm.
In an embodiment, after the distance between the container placed below the water outlet and the shooting device is adjusted, if the definition of the current picture of the shooting device is still smaller than the preset definition, the definition change trend is determined according to the definition of the current picture of the shooting device after the distance is adjusted each time, and the distance between the container placed below the water outlet and the shooting device is adjusted according to the definition change trend, so that the definition of the current picture of the shooting device can be quickly adjusted, and the definition of the current picture of the shooting device is larger than or equal to the preset definition.
In an embodiment, sliding assemblies are arranged on the left side and the right side of a storage platform of the water dispenser and are connected with a motor through a rotating shaft, and when the motor rotates, the rotating shaft drives the sliding assemblies to slide upwards or downwards so as to adjust the height of the storage platform.
In one embodiment, the shooting device is connected with the telescopic device, and the height of the shooting device can be adjusted through the telescopic device, so that the distance between a container placed below the water outlet and the shooting device is changed, and the definition of a current picture of the shooting device is further changed.
In one embodiment, the body of the water dispenser comprises four or three telescopic supporting parts, and the supporting parts are used for adjusting the height of the body of the water dispenser, so that the distance between a container placed below the water outlet and the shooting device is changed, and the definition of the current picture of the shooting device is further changed.
In one embodiment, when a container is placed below the water outlet, whether a container opening of the container placed below the water outlet is in a water outlet range of the water outlet is determined; if the container opening of the container is positioned in the water outlet range of the water outlet, adjusting the distance between the container placed below the water outlet and the shooting device so as to enable the definition of the current picture of the shooting device to be larger than or equal to the preset definition; and if the container port of the container is not positioned in the water outlet range of the water outlet, executing preset reminding operation to remind a user that the container port of the container is not positioned in the water outlet range of the water outlet. Wherein, the preset reminding operation comprises at least one of the following steps: broadcasting a preset reminding sound, lighting a preset breathing lamp and displaying preset reminding information. Can avoid water to splash outside the container, reduce the potential safety hazard, improve user experience.
Illustratively, as shown in fig. 3, the container is placed below the water outlet 10, and the container mouth of the container is not within the water outlet range of the water outlet 10, as shown in fig. 4, the container is placed below the water outlet, and the container mouth of the container is within the water outlet range of the water outlet 10.
In an embodiment, the water dispenser includes a storage platform and a water outlet, the storage platform is located below the water outlet, the storage platform is provided with a pressure sensor, the position of the pressure sensor is located under the water outlet, and the mode of determining whether the container port of the container is located within the water outlet range of the water outlet may be: acquiring a pressure value acquired by the pressure sensor, and determining whether the pressure value is greater than a preset pressure value; if the pressure value is larger than the preset pressure value, determining that the container opening of the container is positioned in the water outlet range of the water outlet; and if the pressure value is less than or equal to the preset pressure value, determining that the container opening of the container is not positioned in the water outlet range of the water outlet. Through set up pressure sensor in the play water range of delivery port, whether the container mouth of definite container that can be convenient and accurate is located the play water range of delivery port, can avoid water splash to fall outside the container, reduces the potential safety hazard, improves user experience.
In an embodiment, the central region of the placement platform is located within the water outlet range of the water outlet, and the determining whether the container mouth of the container is located within the water outlet range of the water outlet may further be: controlling a shooting device around the water outlet to shoot the container in a downward mode to obtain a downward shot image, wherein the downward shot image comprises an imaging area of the container opening and an imaging area of the storage platform; determining whether an imaging region of the receptacle port is located in a center region of an imaging region of the placement platform; if the imaging area of the container opening is located in the central area of the imaging area of the storage platform, determining that the container opening of the container is located in the water outlet range of the water outlet; and if the imaging area of the container opening is not positioned in the central area of the imaging area of the object placing platform, determining that the container opening of the container is not positioned in the water outlet range of the water outlet. Whether the container opening of the container is positioned in the water outlet range of the water outlet can be determined through the shooting device, no additional devices are needed, and the structural complexity of the water dispenser is reduced.
And S102, controlling the water dispenser to discharge water, and shooting a current image containing the container by the shooting device in the water discharging process.
And after the definition of the current picture of the shooting device is greater than or equal to the preset definition, controlling the water dispenser to discharge water, and shooting by the shooting device at intervals of preset time to obtain a current image containing the container in the water discharging process. 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 shooting device takes a current image including the container every 0.2 second or 0.3 second.
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, or a preset filter plate 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, the current image containing the container is shot by the shooting device. Wherein, the shooting device can be an infrared 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 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 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 fill-in light, for example, as shown in fig. 5, the camera and the fill-in light (i.e., the light source in fig. 5) may be installed obliquely above the water outlet of the water dispenser, or, for example, as shown in fig. 6, the camera and the fill-in light (i.e., the light source in fig. 6) 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, a shooting device can be guaranteed to collect clear images. 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.
And S103, determining the distance between the water surface boundary of the container and the container opening of the container according to the current image.
Wherein the camera is a depth camera, the current image comprises a color image and a depth image, the depth image comprising depth values characterizing a distance between the camera and a point on the receptacle, from which depth image the distance between the water surface boundary and the mouth of the receptacle can be determined.
In one embodiment, an imaging area of a container mouth of the container in the color image is extracted 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 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 mouth of the container according to the pixel difference to obtain the first imaging area, wherein the image area where the pixel difference is located is the imaging area of the container mouth. 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 through a camera in the view of 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 the second depth value.
In an embodiment, the determining the distance between the water surface boundary and the container opening according to the first depth value and the second depth value is specifically: 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.
And step S104, if the distance is smaller than or equal to the preset distance, controlling the water dispenser to stop discharging water.
If the distance between the water surface boundary and the container opening is smaller than or equal to the preset distance, the container can be determined to be filled with water, and therefore the water dispenser can be controlled to stop discharging water, and the water in the container cannot overflow.
In one embodiment, the actual height of the container can be determined from the current image, and the height of the water surface boundary in the container can be determined according to the current image; and determining the difference value between the actual height of the container and the height of the water surface boundary, determining whether the absolute value of the difference value is less than or equal to a preset threshold value, and controlling the water dispenser to stop discharging water if the absolute value of the difference value is less than or equal to the preset threshold value.
The embodiment of the application places the distance between container and the shooting device below the delivery port through the adjustment, so that the definition of the current picture of shooting device is greater than or equal to preset definition, then control the water dispenser to go out water, and at the in-process of going out water, based on the current image that contains the container that this shooting device shot obtained, confirm the distance between the surface of water border of container and the container mouth of container, and when this distance is less than preset distance, control the water dispenser and stop going out water, the condition of the water level of detection container that can be accurate, can be when the container will fill with water promptly, the control water dispenser of intelligence stops out water, prevent that the water in the container from spilling over, very big improvement user experience.
Referring to fig. 7, fig. 7 is a schematic block diagram of a structure of a water dispenser provided in the embodiment of the present application.
As shown in fig. 7, the water dispenser 200 includes a processor 202, a memory 203, a communication interface 204, and a camera 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 platform top, be provided with around the delivery port and shoot device 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. It will be understood by those skilled in the art that the structure shown in figure 7 is a block diagram of only a portion of the structure associated with the present application and does not constitute a limitation on the water dispenser to which the present application is applied, and that a particular water dispenser may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
It should be understood that the bus 201 is, for example, an I2C (Inter-Integrated Circuit) bus, the Memory 203 may be a Flash chip, a Read-Only Memory (ROM), a magnetic disk, an optical disk, a usb disk, or a removable hard disk, the Processor 202 may be a Central Processing Unit (CPU), and the Processor may also be other general-purpose processors, Digital Signal Processors (DSP), Application Specific Integrated Circuits (ASIC), Field Programmable Gate Arrays (FPGA) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein, in one embodiment, the processor 202 is configured to run a computer program stored in the memory 203 to implement the following steps:
adjusting the distance between a container placed below the water outlet and the shooting device so as to enable the definition of the current picture of the shooting device to be larger than or equal to the preset definition;
controlling the water dispenser to discharge water, and shooting by the shooting device to obtain a current image containing the container in the water discharging process;
determining the distance between the water surface boundary of the container and the container opening of the container according to the current image;
and if the distance is smaller than or equal to the preset distance, controlling the water dispenser to stop discharging water.
In one embodiment, the processor 202, in enabling adjustment of the distance between the container placed under the water outlet and the camera, is configured to enable:
and adjusting the height of a storage platform of the water dispenser, the height of the shooting device or the height of a machine body of the water dispenser so as to adjust the distance between the container and the shooting device.
In one embodiment, the current image comprises a color image and a depth image; the processor 202, in effecting determining, from the current image, a distance between a water surface boundary of the container and a container mouth of the container, is configured to effect:
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, 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, when implementing obtaining the depth value of the first imaging region from the depth image, obtains a first depth value, is configured to implement:
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.
In one embodiment, the processor 202, when capturing a current image containing the container by the capturing device during the water outlet process, is configured to:
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, or a preset filter plate of the shooting device is controlled to be heated;
after the light supplement lamp is turned on, the fan is turned on or the filter plate is heated, the current image containing the container is obtained through shooting by the shooting device.
In one embodiment, the processor 202, before effecting adjustment of the distance between the container placed under the water outlet and the camera, is further configured to effect:
determining whether a container mouth of a container placed below the water outlet is positioned in a water outlet range of the water outlet;
if the container mouth of the container is in the water outlet range of the water outlet, executing the following steps: adjusting the distance between a container placed below the water outlet and the shooting device;
and if the container port of the container is not positioned in the water outlet range of the water outlet, executing preset reminding operation to remind a user that the container port of the container is not positioned in the water outlet range of the water outlet.
In one embodiment, a storage platform of the water dispenser is provided with a pressure sensor, and the position of the pressure sensor is right below the water outlet; the processor 202, in implementing determining whether the container mouth of the container is within the water outlet range of the water outlet, is configured to implement:
acquiring a pressure value acquired by the pressure sensor, and determining whether the pressure value is greater than a preset pressure value;
if the pressure value is larger than a preset pressure value, determining that the container opening of the container is located in the water outlet range of the water outlet;
and if the pressure value is less than or equal to a preset pressure value, determining that the container opening of the container is not 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.
The embodiment of the application places the distance between container and the shooting device below the delivery port through the adjustment, so that the definition of the current picture of shooting device is greater than or equal to preset definition, then control the water dispenser to go out water, and at the in-process of going out water, based on the current image that contains the container that this shooting device shot obtained, confirm the distance between the surface of water border of container and the container mouth of container, and when this distance is less than preset distance, control the water dispenser and stop going out water, the condition of the water level of detection container that can be accurate, can be when the container will fill with water promptly, the control water dispenser of intelligence stops out water, prevent that the water in the container from spilling over, very big improvement user experience.
Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, where the computer program includes program instructions, and a method implemented when the program instructions are executed may refer to various embodiments of a water dispenser control method of the present application.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
The computer-readable storage medium may be an internal storage unit of the water dispenser described in the foregoing embodiment, for example, a hard disk or a memory of the water dispenser. The computer readable storage medium may also be an external storage device of the water dispenser, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the water dispenser.
As the computer program stored in the computer-readable storage medium can execute any one of the water dispenser control methods provided in the embodiments of the present application, the beneficial effects that can be realized by any one of the water dispenser control methods provided in the embodiments of the present application can be realized, which are detailed in the foregoing embodiments and will not be described herein again.
It is to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments. While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and various equivalent modifications or substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A control method of a water dispenser is characterized in that a shooting device is arranged around a water outlet of the water dispenser, and the method comprises the following steps:
adjusting the distance between a container placed below the water outlet and the shooting device so as to enable the definition of the current picture of the shooting device to be larger than or equal to the preset definition;
controlling the water dispenser to discharge water, and shooting by the shooting device to obtain a current image containing the container in the water discharging process;
determining the distance between the water surface boundary of the container and the container opening of the container according to the current image;
and if the distance is smaller than or equal to the preset distance, controlling the water dispenser to stop discharging water.
2. The water dispenser control method of claim 1, wherein the adjusting the distance between the container placed below the water outlet and the camera comprises:
and adjusting the height of a storage platform of the water dispenser, the height of the shooting device or the height of a machine body of the water dispenser so as to adjust the distance between the container and the shooting device.
3. The water dispenser control method of claim 1, wherein the current image comprises a color image and a depth image; determining a distance between a water surface boundary of the container and a container mouth of the container according to the current image, comprising:
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.
4. The water dispenser control method according to claim 3, wherein the extracting an imaging area of the 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.
5. The water dispenser control method of claim 3, wherein the obtaining the depth value of the first imaging area from the depth image to obtain a first depth value comprises:
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.
6. The water dispenser control method according to any one of claims 1 to 5, wherein the capturing a current image containing the container by the capturing device during the water outlet process comprises:
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, the current image containing the container is shot by the shooting device.
7. The water dispenser control method according to any one of claims 1 to 5, wherein before adjusting the distance between the container placed below the water outlet and the camera, the method further comprises:
determining whether a container mouth of a container placed below the water outlet is positioned in a water outlet range of the water outlet;
if the container mouth of the container is in the water outlet range of the water outlet, executing the following steps: adjusting the distance between a container placed below the water outlet and the shooting device;
and if the container port of the container is not positioned in the water outlet range of the water outlet, executing preset reminding operation to remind a user that the container port of the container is not positioned in the water outlet range of the water outlet.
8. The water dispenser control method according to claim 7, wherein a pressure sensor is arranged on a storage platform of the water dispenser, and the pressure sensor is positioned right below the water outlet; the determining whether the container opening of the container is in the water outlet range of the water outlet comprises the following steps:
acquiring a pressure value acquired by the pressure sensor, and determining whether the pressure value is greater than a preset pressure value;
if the pressure value is larger than a preset pressure value, determining that the container opening of the container is located in the water outlet range of the water outlet;
and if the pressure value is less than or equal to a preset pressure value, determining that the container opening of the container is not in the water outlet range of the water outlet.
9. A water dispenser, characterized in that the water dispenser comprises a camera, 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.
CN202010130996.3A 2020-02-28 2020-02-28 Water dispenser control method, water dispenser and computer readable storage medium Pending CN111568212A (en)

Priority Applications (1)

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

Publications (1)

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

Family

ID=72112978

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010130996.3A Pending CN111568212A (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) CN111568212A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114532850A (en) * 2022-02-23 2022-05-27 宁波方太厨具有限公司 Control method and system of water outlet device, water outlet equipment and storage medium
CN115164847A (en) * 2022-08-11 2022-10-11 北京奥特美克科技股份有限公司 Water level measuring method, device and system
EP4124268A1 (en) * 2021-07-26 2023-02-01 Miele & Cie. KG Method for operating a hot drinks machine, control device and hot drinks machine

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1922096A (en) * 2004-02-18 2007-02-28 Mds环球控股有限公司 Dispensing of a substance
CN205656460U (en) * 2016-05-05 2016-10-19 浙江沁园水处理科技有限公司 Drinking water equipment with intellectual detection system and intelligent control function
CN107440475A (en) * 2017-04-28 2017-12-08 浙江苏泊尔家电制造有限公司 Method, cooking apparatus and the computer-readable storage medium of culinary art
CN108427940A (en) * 2018-04-04 2018-08-21 浙江安精智能科技有限公司 Water fountain effluent intelligent controlling device based on depth camera and its control method
CN108567330A (en) * 2018-05-29 2018-09-25 陈泽涛 Water dispenser control method, device, water dispenser and computer readable storage medium
CN108703654A (en) * 2018-07-04 2018-10-26 华东交通大学 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
CN108888119A (en) * 2018-09-10 2018-11-27 青岛海尔智能技术研发有限公司 A kind of automatic water filling device and water filling control method
CN109276131A (en) * 2018-12-04 2019-01-29 珠海格力电器股份有限公司 Water dispenser and its water outlet control method and device
CN109521030A (en) * 2018-10-12 2019-03-26 成都精工华耀科技有限公司 A kind of track visualization inspection RGBD imaging system
KR102018027B1 (en) * 2019-03-06 2019-09-04 박노섭 Apparatus for printing of beverage art
CN110211093A (en) * 2019-04-30 2019-09-06 上海工程技术大学 A kind of water outlet control method for automatic drinking water apparatus

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1922096A (en) * 2004-02-18 2007-02-28 Mds环球控股有限公司 Dispensing of a substance
CN205656460U (en) * 2016-05-05 2016-10-19 浙江沁园水处理科技有限公司 Drinking water equipment with intellectual detection system and intelligent control function
CN107440475A (en) * 2017-04-28 2017-12-08 浙江苏泊尔家电制造有限公司 Method, cooking apparatus and the computer-readable storage medium of culinary art
CN108427940A (en) * 2018-04-04 2018-08-21 浙江安精智能科技有限公司 Water fountain effluent intelligent controlling device based on depth camera 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
CN108567330A (en) * 2018-05-29 2018-09-25 陈泽涛 Water dispenser control method, device, water dispenser and computer readable storage medium
CN108703654A (en) * 2018-07-04 2018-10-26 华东交通大学 Water dispenser
CN108888119A (en) * 2018-09-10 2018-11-27 青岛海尔智能技术研发有限公司 A kind of automatic water filling device and water filling control method
CN109521030A (en) * 2018-10-12 2019-03-26 成都精工华耀科技有限公司 A kind of track visualization inspection RGBD imaging system
CN109276131A (en) * 2018-12-04 2019-01-29 珠海格力电器股份有限公司 Water dispenser and its water outlet control method and device
KR102018027B1 (en) * 2019-03-06 2019-09-04 박노섭 Apparatus for printing of beverage art
CN110211093A (en) * 2019-04-30 2019-09-06 上海工程技术大学 A kind of water outlet control method for automatic drinking water apparatus

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4124268A1 (en) * 2021-07-26 2023-02-01 Miele & Cie. KG Method for operating a hot drinks machine, control device and hot drinks machine
CN114532850A (en) * 2022-02-23 2022-05-27 宁波方太厨具有限公司 Control method and system of water outlet device, water outlet equipment and storage medium
CN114532850B (en) * 2022-02-23 2023-02-14 宁波方太厨具有限公司 Control method and system of water outlet device, water outlet equipment and storage medium
CN115164847A (en) * 2022-08-11 2022-10-11 北京奥特美克科技股份有限公司 Water level measuring method, device and system
CN115164847B (en) * 2022-08-11 2023-09-22 北京奥特美克科技股份有限公司 Water level measurement method, device and system

Similar Documents

Publication Publication Date Title
CN111568212A (en) Water dispenser control method, water dispenser and computer readable storage medium
EP3565236B1 (en) Control method, control apparatus, mobile terminal and computer-readable storage medium
CN107948538B (en) Imaging method, imaging device, mobile terminal and storage medium
CN103119475B (en) Sensing human inductor and automatic faucet
CN111568245A (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
CN111568243A (en) Electric kettle control method, electric kettle and computer readable storage medium
CN111568185A (en) Control method of water dispenser, 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
CN111568236A (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
CN111568235A (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
CN111568193A (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
CN111568208A (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
CN113747008A (en) Camera and light supplementing method
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
CN111568211A (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
CN111568233A (en) Water dispenser control method, water dispenser and computer readable storage medium
CN111568244A (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