Water outlet device control method, water outlet device and computer readable storage medium

文档序号:1257958 发布日期:2020-08-25 浏览:14次 中文

阅读说明:本技术 出水设备控制方法、出水设备及计算机可读存储介质 (Water outlet device control method, water outlet device and computer readable storage medium ) 是由 陈小平 吴雪良 林勇进 于 2020-02-29 设计创作,主要内容包括:本申请实施例公开了一种出水设备控制方法、出水设备及计算机可读存储介质,本申请实施例可以控制出水设备按照第一出水速率进行出水;获取容器接水的第一水位;当所述第一水位与第一阈值匹配时,控制所述出水设备按照第二出水速率进行出水,所述第一出水速率大于所述第二出水速率;获取所述容器当前接水的第二水位;当所述第二水位与第二阈值匹配时,控制所述出水设备停止出水,所述第一阈值大于所述第二阈值。该方案通过容器的不同水位对出水速率进行不同的控制,提高了对出水设备控制的灵活性和安全性。(The embodiment of the application discloses a water outlet device control method, a water outlet device and a computer readable storage medium, wherein the water outlet device can be controlled to discharge water at a first water outlet rate; acquiring a first water level of a container for receiving water; when the first water level is matched with a first threshold value, controlling the water outlet equipment to discharge water according to a second water outlet rate, wherein the first water outlet rate is greater than the second water outlet rate; acquiring a second water level of the container for receiving water currently; and when the second water level is matched with a second threshold value, controlling the water outlet equipment to stop water outlet, wherein the first threshold value is larger than the second threshold value. This scheme carries out different control to water outlet rate through the different water levels of container, has improved flexibility and the security to the water outlet device control.)

1. A control method of water outlet equipment is characterized by comprising the following steps:

controlling the water outlet equipment to discharge water according to the first water outlet rate;

acquiring a first water level of a container for receiving water;

when the first water level is matched with a first threshold value, controlling the water outlet equipment to discharge water according to a second water outlet rate, wherein the first water outlet rate is greater than the second water outlet rate;

acquiring a second water level of the container for receiving water currently;

and when the second water level is matched with a second threshold value, controlling the water outlet equipment to stop water outlet, wherein the first threshold value is larger than the second threshold value.

2. The method as claimed in claim 1, wherein said controlling the water output device to output water at the first water output rate comprises:

acquiring identity information of a user placing the container, and determining a first water outlet rate according to the identity information; or acquiring the volume of the container, and determining a first water outlet rate according to the volume of the container; or acquiring the size of a port of the container, and determining a first water outlet rate according to the size of the port of the container;

and controlling the water outlet equipment to discharge water according to the first water outlet rate.

3. The method as claimed in claim 1, wherein said controlling the water output device to output water at the first water output rate comprises:

detecting the position of the container placed below a water outlet of the water outlet device;

when the position is not matched with the water outlet area of the water outlet, detecting the moving direction and the moving distance of the container needing to move when the container is matched with the water outlet area;

adjusting the container according to the moving direction and the moving distance;

and after the container is adjusted, controlling the water outlet equipment to discharge water according to the first water outlet rate.

4. The method as claimed in claim 1, wherein said controlling the water output device to output water at the first water output rate comprises:

detecting a pressure value through a pressure sensor preset on a base below a water outlet of the water outlet equipment, and when the pressure value is greater than a preset pressure threshold value, determining that a container is placed below the water outlet of the water outlet equipment, and controlling the water outlet equipment to discharge water according to a first water outlet rate; alternatively, the first and second electrodes may be,

when detecting that a button preset on a base below a water outlet of the water outlet equipment is triggered, determining that a container is placed below the water outlet of the water outlet equipment, and controlling the water outlet equipment to discharge water according to a first water discharge rate; alternatively, the first and second electrodes may be,

the method comprises the steps of collecting an initial image below a water outlet of the water outlet device, determining that a container is placed below the water outlet of the water outlet device when the container is identified from the initial image, and controlling the water outlet device to discharge water according to a first water discharge rate.

5. The method as claimed in claim 1, wherein said obtaining the first water level of the container receiving water comprises:

acquiring the distance between the water outlet of the water outlet device and the water surface to obtain a first water level of the container for receiving water currently; alternatively, the first and second electrodes may be,

acquiring the distance between the detection device and the water surface to obtain a first water level of the container for receiving water currently;

the acquiring a second water level of the current water receiving of the container comprises:

acquiring the distance between the water outlet of the water outlet device and the water surface to obtain a second water level of the container for receiving water currently; alternatively, the first and second electrodes may be,

and acquiring the distance between the detection device and the water surface to obtain a second water level of the container for receiving water currently.

6. The method for controlling a water outlet device according to claim 1, wherein when the first water level matches a first threshold, the method for controlling a water outlet device further comprises, before the water outlet device is controlled to output water at a second water output rate:

acquiring the distance between a detection device and a port of the container, and determining the first threshold value according to the distance; alternatively, the first and second electrodes may be,

acquiring the height of the container, and determining the first threshold value according to the height of the container;

when the first water level is matched with the first threshold, before the water outlet equipment is controlled to discharge water according to the second water outlet rate, the water outlet equipment control method further comprises the following steps:

acquiring the distance between a detection device and a port of the container, and determining the second threshold value according to the distance; alternatively, the first and second electrodes may be,

and acquiring the height of the container, and determining the second threshold value according to the height of the container.

7. The method of claim 6, wherein the obtaining the height of the container comprises:

detecting the height of the container through a sensor preset on the side surface of the water dispenser; alternatively, the first and second electrodes may be,

receiving a user input of a height of the container; alternatively, the first and second electrodes may be,

acquiring a side image of the container through a camera preset on the side of the water dispenser;

determining a height of the container from the side image.

8. The outlet equipment control method according to any one of claims 1 to 7, further comprising:

detecting whether the container moves or whether foreign matters enter the container or not in the water outlet process of the water outlet equipment;

when the container moves or foreign matters enter the container, controlling the water outlet equipment to stop water outlet;

when the container has no movement or foreign matters enter the container, the water outlet state of the water outlet device is maintained.

9. A water outlet device, characterized by comprising a processor and a memory, wherein the memory stores a computer program, and the processor executes the water outlet device control method according to any one of claims 1 to 8 when calling the computer program in the memory.

10. A computer-readable storage medium for storing a computer program which is loaded by a processor to perform the outlet control method of any one of claims 1 to 8.

Technical Field

The application relates to the technical field of electronic equipment, in particular to a water outlet equipment control method, water outlet equipment and a computer readable storage medium.

Background

Along with the improvement of the living standard of people, the water dispenser is more and more popularized. At present, in the process of using a water dispenser, a user needs to control the water dispenser through key operation arranged on the water dispenser so as to finish water taking, and needs to continuously pay attention to the change of the water level in a water cup when receiving water, judge the water yield by human eyes, manually control water outlet, water cut-off and the like through keys, the user possibly overflows water if not paying attention to the water, waste of water resources is caused, the overflowing hot water also possibly causes scalding of the user and the like, and the flexibility and the safety of controlling the water dispenser are reduced.

Disclosure of Invention

The embodiment of the application provides a water outlet device control method, a water outlet device and a computer readable storage medium, which can improve the flexibility and the safety of water outlet device control.

In a first aspect, an embodiment of the present application provides a method for controlling a water outlet device, including:

controlling the water outlet equipment to discharge water according to the first water outlet rate;

acquiring a first water level of a container for receiving water;

when the first water level is matched with a first threshold value, controlling the water outlet equipment to discharge water according to a second water outlet rate, wherein the first water outlet rate is greater than the second water outlet rate;

acquiring a second water level of the container for receiving water currently;

and when the second water level is matched with a second threshold value, controlling the water outlet equipment to stop water outlet, wherein the first threshold value is larger than the second threshold value.

In a second aspect, an embodiment of the present application further provides a water outlet device, which includes a memory and a processor, where the memory stores a computer program, and the processor executes any one of the water outlet device control methods provided in the embodiments of the present application when calling the computer program in the memory.

In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium is used for storing a computer program, and the computer program is loaded by a processor to execute any one of the water outlet device control methods provided in the embodiments of the present application.

The water outlet device can be controlled to discharge water according to a first water outlet rate, a first water level for receiving water by the container is obtained, when the first water level is matched with a first threshold value, the water outlet device is controlled to discharge water according to a second water outlet rate, and the first water outlet rate is greater than the second water outlet rate; and acquiring a second water level of the container for receiving water currently, and controlling the water outlet equipment to stop water outlet when the second water level is matched with a second threshold, wherein the first threshold is larger than the second threshold. This scheme carries out different control to water outlet rate through the different water levels of container, has improved flexibility and the security to the water outlet device control.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.

Fig. 1 is a schematic flow chart of a control method of a water outlet device provided in an embodiment of the present application;

FIG. 2 is a schematic diagram of a container moving according to an embodiment of the present disclosure;

FIG. 3 is a schematic view of a base of the water outlet apparatus provided by the embodiment of the present application with a pressure sensor;

FIG. 4 is a schematic view of a base setting button of the water outlet device provided in the embodiment of the present application;

FIG. 5 is a schematic diagram of water level detection provided by an embodiment of the present application;

FIG. 6 is another schematic diagram of water level detection provided by an embodiment of the present application;

fig. 7 is a schematic structural diagram of a water outlet device provided in an embodiment of the present application.

Detailed Description

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.

The embodiment of the application provides a water outlet device control method, a water outlet device and a computer readable storage medium. The water outlet equipment control method can be applied to water outlet equipment, and the water outlet equipment can comprise a water dispenser, a faucet, a coffee machine, a soybean milk machine, a fruit juice machine and the like.

Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a control method of a water outlet apparatus according to an embodiment of the present application. The water outlet equipment control method may include steps S101 to S105, and the like, and specifically may be as follows:

s101, controlling the water outlet equipment to discharge water according to a first water outlet rate.

The type and the structure of the water outlet equipment can be flexibly arranged according to actual needs, for example, the water outlet equipment can be provided with a water outlet, a base used for placing a container for receiving water below the water outlet, a machine body used for placing a water source and the like. The first water outlet rate can be flexibly set according to actual needs, for example, the first water outlet rate input by a user can be received, or the first water outlet rate can be dynamically and automatically determined according to the current situation, and the like.

In some embodiments, controlling the water output device to output water at the first water output rate may include: acquiring identity information of a user placing a container; determining a first water outlet rate according to the identity information; or acquiring the volume of the container, and determining a first water outlet rate according to the volume of the container; or, acquiring the size of a port of the container, and determining a first water outlet rate according to the size of the port of the container; and controlling the water outlet equipment to discharge water according to the first water outlet rate.

In order to improve the flexibility of water outlet of the water outlet equipment, water can be discharged at different water outlet rates according to the requirements of different users. Specifically, the identity information of the user placing the container may be obtained first, for example, a face image of the user may be collected by a camera, and the identity information of the user may be determined according to the face image. For another example, the fingerprint of the user may be collected by a fingerprint collecting module preset on the water outlet device, and the identity information of the user may be determined according to the fingerprint. Then, a first water outlet rate can be determined according to the identity information of the user, and the first water outlet rate can be flexibly set according to actual needs, for example, the first water outlet rate corresponding to the user a is a, and for example, the first water outlet rate corresponding to the user B is B, and the like. At this time, the water outlet device can be controlled to start water outlet according to the first water outlet rate.

Alternatively, the water may be discharged at different discharge rates depending on the volume of the different containers. Specifically, first, a volume of the container is obtained, for example, the volume of the container input by a user may be received, or a plurality of images including the container are acquired from different angles, a bottom area, a height and the like of the container are respectively determined according to different images, and the volume of the container is calculated according to the bottom area and the height; alternatively, the bottom area, height, port area, etc. of the container are obtained and the volume of the container is calculated from the bottom area, height, and port area. At this time, the first water outlet rate can be determined according to the volume of the container, and the larger the volume of the container is, the larger the first water outlet rate is; the smaller the volume of the container, the smaller the first water outflow rate.

Alternatively, the water may be discharged at different discharge rates depending on the port size of the different containers. Specifically, the port size of the container is first obtained, for example, an image containing the container may be captured by a camera, the port size of the container may be determined from the image, or the port size of the container input by the user may be received. At this time, the first water outlet rate can be determined according to the size of the port of the container, and the larger the size of the port of the container is, the larger the first water outlet rate is; the smaller the port size of the vessel, the smaller the first water exit rate.

In some embodiments, controlling the water output device to output water at the first water output rate may include: detecting the position of a container placed below a water outlet of the water outlet equipment; when the position is not matched with the water outlet area of the water outlet, detecting the moving direction and the moving distance of the container needing to move when the container is matched with the water outlet area; adjusting the container according to the moving direction and the moving distance; and after the container is adjusted, controlling the water outlet device to discharge water according to the first water outlet rate.

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.

Before the water outlet device starts to discharge water, the position of a container placed below a water outlet of the water outlet device may be detected in advance, for example, the position of the container may be detected by a sensor or a camera, when the position of the container does not match a water outlet area of the water outlet, it is described that a port of the container is not aligned with the water outlet of the water outlet device, so that water flowing out of the water outlet cannot flow into the container, at this time, as shown in fig. 2, a moving direction and a moving distance in which the container needs to move when the container matches the water outlet area may be detected, the container may be adjusted (e.g., moved) according to the moving direction and the moving distance, for example, prompt information may be output to prompt a user to adjust the container according to the moving direction and the moving distance, or the container may be automatically adjusted according to the moving direction and. After the container is adjusted, the water outlet device is controlled to start water outlet according to the first water outlet rate, so that water can accurately flow into the container, and water resources are prevented from being wasted due to the fact that the water flows out of the container.

In some embodiments, controlling the water output device to output water at the first water output rate may include: detecting a pressure value through a pressure sensor preset on a base below a water outlet of the water outlet equipment, when the pressure value is larger than a preset pressure threshold value, determining that a container is placed below the water outlet of the water outlet equipment, and controlling the water outlet equipment to discharge water according to a first water discharge rate; or when detecting that a button preset on a base below a water outlet of the water outlet equipment is triggered, determining that a container is placed below the water outlet of the water outlet equipment, and controlling the water outlet equipment to discharge water according to a first water discharge rate; or acquiring an initial image below the water outlet of the water outlet device, determining that the container is placed below the water outlet of the water outlet device when the container is identified from the initial image, and controlling the water outlet device to discharge water according to the first water discharge rate.

In order to improve the accuracy of water outlet of the water outlet equipment, a container can be placed below the water outlet of the water outlet equipment, and then water outlet is carried out. In an embodiment, a pressure sensor may be preset at a position for placing the container in the water receiving area of the water outlet device, for example, as shown in fig. 3, a base for placing the water receiving area of the container (i.e., a base below the water outlet of the water outlet device) may be covered with the pressure sensor, and when an object is placed at the position, the pressure sensor may detect the pressure value. At the moment, when a container is placed in a water receiving area of the water outlet device, a pressure sensor preset at the position where the container is placed can be used for detecting the received pressure value, when the pressure value is larger than a preset pressure threshold value, the container is placed below a water outlet of the water outlet device, and at the moment, the water outlet device can be controlled to discharge water according to a first water outlet speed; when the pressure value is less than or equal to the preset pressure threshold value, the container is not placed below the water outlet of the water outlet device, wherein the preset pressure threshold value can be flexibly set according to actual needs.

In another embodiment, one or more buttons may be pre-arranged on the base below the water outlet of the water outlet device, and the type, size, position, color, etc. of the buttons may be flexibly arranged according to actual needs, for example, as shown in fig. 4, when the container is placed on the base, the bottom of the container may press the button, and the button is triggered. When detecting that a button preset on a base below a water outlet of the water outlet equipment is triggered, determining that a container is placed below the water outlet of the water outlet equipment, and controlling the water outlet equipment to discharge water at a first water discharge rate; when detecting that a button preset on a base below a water outlet of the water outlet equipment is not triggered, determining that a container is not placed below the water outlet of the water outlet equipment.

In another embodiment, an initial image below the water outlet of the water outlet device may be collected by a preset camera near the water outlet of the water outlet device or by a camera outside the water outlet device, and then the initial image is recognized by a preset recognition model or a pixel ratio equivalent mode, where the recognition model may be obtained by training based on a plurality of sample images including a container. When the container is identified from the initial image, determining that the container is placed below a water outlet of the water outlet device, and controlling the water outlet device to discharge water according to a first water outlet rate; and when the container is not identified from the initial image, determining that the container is not placed below the water outlet of the water outlet device.

S102, obtaining a first water level of the container for receiving water.

After the water outlet equipment starts to discharge water according to the first water outlet rate, the current first water level of the container for receiving water can be acquired in real time or at intervals of preset time, and the preset time can be flexibly set according to actual needs.

Wherein the first water level may be a distance h from the water outlet to the water surface in the container, as shown in fig. 5, for example, and the first water level may be a distance h4 from the water surface in the container to the container port, as shown in fig. 6, for example. Of course, the first water level can be flexibly set according to actual needs.

In some embodiments, obtaining the first level of water received by the container may include: and acquiring the distance between the water outlet of the water outlet device and the water surface to obtain the current first water level of the container for receiving water.

For example, as shown in fig. 5, when the first water level is a distance h from the water outlet to the water surface in the container, the distance h from the water outlet to the water surface in the container may be detected by the detection device, so as to obtain the first water level at which the container receives water currently. Wherein, the detection device may include a distance measuring sensor, a camera, and the like. The detection device can be flexibly set according to actual needs in terms of setting positions, quantity and the like. For example, the detection device may detect the distance from the detection device to the water surface as the distance h from the water outlet to the water surface in the container, or the detection device may detect the distance d1 from the detection device to the water outlet and detect the distance d2 from the detection device to the intersection point of the water surface and the water column, and in the triangle between the detection device and the water outlet, the height of the water column may be calculated according to d1 and d2, that is, the distance h from the water outlet to the water surface in the container may be obtained.

In some embodiments, obtaining the first level of water received by the container may include: and acquiring the distance between the detection device and the water surface to obtain the current first water level of the container for receiving water.

For another example, as shown in fig. 6, when the first water level is the distance h4 between the water surface in the container and the container port, the distance between the detection device itself and the water surface and the distance between the detection device itself and the container port can be detected, and the distance between the detection device itself and the water surface can be determined according to the difference between the distance between the detection device itself and the water surface and the distance between the detection device itself and the container port, so as to obtain the first water level of the container currently receiving water.

S103, when the first water level is matched with the first threshold, controlling the water outlet equipment to discharge water according to a second water outlet rate, wherein the first water outlet rate is greater than the second water outlet rate.

In some embodiments, when the first water level matches the first threshold, before the controlling the water outlet apparatus to discharge water at the second water discharge rate, the water outlet apparatus control method may further include: acquiring the distance between a detection device and a port of a container, and determining a first threshold value according to the distance; alternatively, the height of the container is obtained and the first threshold is determined based on the height of the container.

For example, as shown in fig. 5, when the first water level is the distance h from the water outlet to the water surface in the container, the distance h1 between the detection device and the port of the container can be obtained, and the threshold h2 for water fast full can be set, at which time h1+ h2 can be set as the first threshold, or h1 can be directly set as the first threshold.

For another example, as shown in fig. 6, when the first water level is the distance h4 from the water surface in the container to the container port, the height h3 of the container can be obtained, and the threshold h2 for the water to fill up is set, at which time h3-h2 can be set as the first threshold, or h3 can be directly set as the first threshold.

In some embodiments, obtaining the height of the container may include: detecting the height of the container through a sensor preset on the side surface of the water dispenser; or, receiving a user input of a height of the container; or, acquiring a side image of the container through a camera preset on the side of the water dispenser, and determining the height of the container according to the side image.

Wherein, one or more sensors can be arranged on the side surface of the water receiving area of the water dispenser in advance and used for detecting the height of the container. In order to improve the accuracy and flexibility of height acquisition of the container, when the container is placed in the water receiving area of the water dispenser, the height of the container can be detected through a sensor preset on the side face of the water dispenser. Alternatively, an input interface may be displayed within the display screen of the water dispenser, and then the user input of the height of the container may be received within the input interface. Or, the water dispenser may establish a communication connection with a mobile terminal (e.g., a mobile phone), and at this time, the water dispenser may receive the height of the container sent by the mobile terminal, where the height of the container may be input by a user through an input interface of the mobile terminal, so that the mobile terminal may send the height of the container to the water dispenser after receiving the height of the container input by the user. Or one or more cameras can be arranged on the side surface of the water receiving area of the water dispenser in advance, images of the container can be collected through the cameras arranged on the side surface of the water dispenser in advance to obtain side images, a side view of the container can be extracted from the side images, and then the height of the container is determined according to the side view.

After the current first water level and the first threshold are obtained, whether the first water level is matched with the first threshold or not can be judged, namely whether the first water level is equal to the first threshold or whether the difference value between the first water level and the first threshold is within a preset range or not is judged, the preset range can be flexibly set according to actual needs, and if the difference value is within the preset range or not, the difference between the first water level and the first threshold is small. When the first water level is matched with the first threshold value, the water amount in the container is more, namely the water receiving is about to be completed, at the moment, in order to avoid that the water is continuously discharged at the first water discharging speed, the water is easy to splash out from the container, the water discharging speed of the water discharging equipment can be reduced, namely the water discharging equipment is controlled to discharge water at the second water discharging speed, and the first water discharging speed is greater than the second water discharging speed.

The second water outlet rate may be flexibly set according to actual needs, for example, the remaining volume of the container that is not currently filled with water may be calculated by the first water level, or the water amount of water that is currently discharged is determined according to the first water outlet rate and the time for the water dispenser to discharge water according to the first water outlet rate, the time and the first water outlet rate, the water amount is compared with the volume of the container, and the remaining volume of the container that is not currently filled with water is determined, at this time, the second water outlet rate may be determined according to the remaining volume, where the larger the remaining volume is, the larger the second water outlet rate is, the smaller the remaining volume is, and the smaller the second water outlet rate is.

And S104, acquiring a second water level of the container for receiving water currently.

In the process that the water outlet equipment discharges water according to the second water outlet rate, the current second water level of the container for receiving water can be acquired in real time or at intervals of preset time, and the preset time can be flexibly set according to actual needs.

In some embodiments, obtaining the second level of water received by the container comprises: acquiring the distance between the water outlet of the water outlet device and the water surface to obtain a second water level of the container for receiving water currently; or, the distance between the detection device and the water surface is acquired, and the second water level of the container for receiving water at present is obtained.

The obtaining mode of the second water level is similar to the obtaining mode of the first water level, and the second water level can be obtained by referring to the obtaining mode of the first water level, which is not described herein again.

And S105, when the second water level is matched with the second threshold, controlling the water outlet equipment to stop water outlet, wherein the first threshold is larger than the second threshold.

In some embodiments, when the first water level matches the first threshold, before the controlling the water outlet apparatus to discharge water at the second water discharge rate, the water outlet apparatus control method may further include: acquiring the distance between the detection device and the port of the container, and determining a second threshold value according to the distance; alternatively, the height of the container is obtained and the second threshold is determined based on the height of the container.

The determining manner of the second threshold is similar to the determining manner of the first threshold, and the second threshold may be determined by referring to the determining manner of the first threshold, which is not described herein again.

After the second water level is obtained, whether the second water level is matched with the second threshold value or not can be judged, namely whether the second water level is equal to the second threshold value or whether the difference value between the second water level and the second threshold value is within a preset range or not is judged, the preset range can be flexibly set according to actual needs, and if the difference value is within the preset range or not, the difference between the second water level and the second threshold value is small. When the second water level is matched with the second threshold value, the fact that the water in the container is full or is full quickly is shown, water receiving is completed, the water outlet device is controlled to stop water outlet, the water outlet speed of the water outlet device is dynamically controlled in the process of using the container to receive water, and convenient water receiving is conducted.

In some embodiments, the method for controlling a water outlet device may further include: in the process of water outlet of the water outlet equipment, detecting whether the container moves or whether foreign matters enter the container or not; when the container moves or foreign matters enter the container, controlling the water outlet equipment to stop water outlet; when the container does not move or foreign matters do not enter the container, the water outlet state of the water outlet device is maintained.

In the process of water outlet of the water outlet device, images of a water receiving area, where a container is placed, below a water outlet of the water outlet device can be collected in real time or at preset time intervals, and the preset time can be flexibly set according to actual needs. Then, whether the container moves or not is judged according to the image, for example, when the container is judged to shake or move from the lower part of the water outlet device based on one or more current images, identified by an identification model or through pixel ratio equality between different images, the container is judged to move. When the container moves, the water outlet device can be controlled to stop water outlet in order to avoid the situation that the container is easy to pour due to shaking or the container is moved away from the lower part of the water outlet device to cause water resource waste.

And judging whether foreign matters enter the container or not according to the image, wherein the foreign matters can comprise mosquitoes, insects and the like, for example, when the container is judged to have mosquitoes falling into the container based on one or more current images through recognition by a recognition model or through pixel ratio equality between different frame images, in order to avoid that a user drinks unclean water, the water outlet device can be controlled to stop water outlet. It should be noted that, whether the container moves or not and whether foreign matter enters the container or not may be detected at the same time, or only whether the container moves or not may be detected, or only whether foreign matter enters the container or not may be detected, and the specific content is not limited herein. When the container does not move or foreign matters do not enter the container, the water outlet state of the water outlet device is maintained until the condition of stopping water outlet is met, and the water outlet device is controlled to stop water outlet.

The water outlet device can be controlled to discharge water according to a first water outlet rate, a first water level for receiving water by the container is obtained, when the first water level is matched with a first threshold value, the water outlet device is controlled to discharge water according to a second water outlet rate, and the first water outlet rate is greater than the second water outlet rate; and acquiring a second water level of the container for receiving water currently, and controlling the water outlet equipment to stop water outlet when the second water level is matched with a second threshold, wherein the first threshold is larger than the second threshold. This scheme carries out different control to water outlet rate through the different water levels of container, has improved flexibility and the security to the water outlet device control.

Referring to fig. 7, fig. 7 is a schematic block diagram of a structure of a water outlet apparatus according to an embodiment of the present application.

As shown in FIG. 7, the water outlet apparatus 300 may include a processor 302, a memory 303, and a communication interface 304 connected by a system bus 301, wherein the memory 303 may include a non-volatile computer-readable storage medium and an internal memory.

The non-transitory computer readable storage medium may store a computer program. The computer program includes program instructions that, when executed, cause a processor to perform any one of the methods of controlling a water outlet device.

The processor 302 is used to provide computing and control capabilities to support the operation of the overall water treatment apparatus.

The memory 303 provides an environment for the execution of computer programs in a non-transitory computer readable storage medium that, when executed by the processor 302, cause the processor 302 to perform any of the methods of controlling the water outlet device.

The communication interface 304 is used for communication. Those skilled in the art will appreciate that the structure shown in fig. 7 is only a block diagram of a part of the structure related to the present application, and does not constitute a limitation to the outlet device 300 to which the present application is applied, and a specific outlet device 300 may include more or less components than those shown in the figure, or combine some components, or have a different arrangement of components.

It should be understood that the bus 301 is, for example, an I2C (Inter-Integrated Circuit) bus, the Memory 303 may be a Flash chip, a Read-Only Memory (ROM), a magnetic disk, an optical disk, a usb disk, or a removable hard disk, the Processor 302 may be a Central Processing Unit (CPU), the Processor 302 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

Wherein, in some embodiments, the processor 302 is configured to run a computer program stored in the memory 303 to perform the steps of:

controlling the water outlet equipment to discharge water according to a first water discharge rate to obtain a first water level for receiving water by the container, and controlling the water outlet equipment to discharge water according to a second water discharge rate when the first water level is matched with a first threshold value, wherein the first water discharge rate is greater than the second water discharge rate; and acquiring a second water level of the container for receiving water currently, and controlling the water outlet equipment to stop water outlet when the second water level is matched with a second threshold, wherein the first threshold is larger than the second threshold.

In some embodiments, in controlling the water output apparatus to output water at the first water output rate, the processor 302 further performs: acquiring identity information of a user placing a container; determining a first water outlet rate according to the identity information; and controlling the water outlet equipment to discharge water according to the first water outlet rate.

In some embodiments, in controlling the water output apparatus to output water at the first water output rate, the processor 302 further performs: detecting the position of a container placed below a water outlet of the water outlet equipment; when the position is not matched with the water outlet area of the water outlet, detecting the moving direction and the moving distance of the container needing to move when the container is matched with the water outlet area; adjusting the container according to the moving direction and the moving distance; and after the container is adjusted, controlling the water outlet device to discharge water according to the first water outlet rate.

In some embodiments, in controlling the water output apparatus to output water at the first water output rate, the processor 302 further performs: detecting a pressure value through a pressure sensor preset on a base below a water outlet of the water outlet equipment, when the pressure value is larger than a preset pressure threshold value, determining that a container is placed below the water outlet of the water outlet equipment, and controlling the water outlet equipment to discharge water according to a first water discharge rate; or when detecting that a button preset on a base below a water outlet of the water outlet equipment is triggered, determining that a container is placed below the water outlet of the water outlet equipment, and controlling the water outlet equipment to discharge water according to a first water discharge rate; or acquiring an initial image below the water outlet of the water outlet device, determining that the container is placed below the water outlet of the water outlet device when the container is identified from the initial image, and controlling the water outlet device to discharge water according to the first water discharge rate.

In some embodiments, in obtaining the first level of water received by the container, processor 302 further performs: acquiring the distance between the water outlet of the water outlet device and the water surface to obtain a first water level of the container for receiving water currently; or, acquiring the distance between the detection device and the water surface to obtain a first water level of the container for receiving water currently;

in some embodiments, in obtaining the second water level at which the container is currently receiving water, processor 302 further performs: acquiring the distance between the water outlet of the water outlet device and the water surface to obtain a second water level of the container for receiving water currently; or, the distance between the detection device and the water surface is acquired, and the second water level of the container for receiving water at present is obtained.

In some embodiments, when the first water level matches the first threshold, the processor 302 further performs, before controlling the water output device to output water at the second water output rate: acquiring the distance between a detection device and a port of a container, and determining a first threshold value according to the distance; alternatively, the height of the container is obtained and the first threshold is determined based on the height of the container.

In some embodiments, when the first water level matches the first threshold, the processor 302 further performs, before controlling the water output device to output water at the second water output rate: acquiring the distance between the detection device and the port of the container, and determining a second threshold value according to the distance; alternatively, the height of the container is obtained and the second threshold is determined based on the height of the container.

In some embodiments, in obtaining the height of the container, processor 302 further performs: detecting the height of the container through a sensor preset on the side surface of the water dispenser; or, receiving a user input of a height of the container; or, a side image of the container is collected through a camera preset on the side of the water dispenser; the height of the container is determined from the side image.

In some embodiments, processor 302 further performs: in the process of water outlet of the water outlet equipment, detecting whether the container moves or whether foreign matters enter the container or not; when the container moves or foreign matters enter the container, controlling the water outlet equipment to stop water outlet; when the container does not move or foreign matters do not enter the container, the water outlet state of the water outlet device is maintained.

In the above embodiments, the descriptions of the embodiments have respective emphasis, and a part which is not described in detail in a certain embodiment may refer to the above detailed description of the water outlet device control method, and is not described herein again.

The embodiment of the application further provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, the computer program comprises program instructions, and a processor executes the program instructions to realize any water outlet equipment control method provided by the embodiment of the application. For example, the computer program is loaded by a processor and may perform the following steps:

controlling the water outlet equipment to discharge water according to a first water discharge rate to obtain a first water level for receiving water by the container, and controlling the water outlet equipment to discharge water according to a second water discharge rate when the first water level is matched with a first threshold value, wherein the first water discharge rate is greater than the second water discharge rate; and acquiring a second water level of the container for receiving water currently, and controlling the water outlet equipment to stop water outlet when the second water level is matched with a second threshold, wherein the first threshold is larger than the second threshold.

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 outlet device of the foregoing embodiment, for example, a hard disk or a memory of the water outlet device. The computer readable storage medium may also be an external storage device of the outlet device, such as a plug-in hard disk equipped on the outlet device, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like.

As the computer program stored in the computer-readable storage medium can execute any water outlet device control method provided in the embodiments of the present application, beneficial effects that can be achieved by any water outlet device control method provided in the embodiments of the present application can be achieved, 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.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:饮水机控制方法、饮水机及计算机可读存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类