Water taking method, device and equipment of water dispenser and readable storage medium

文档序号:198378 发布日期:2021-11-05 浏览:47次 中文

阅读说明:本技术 饮水机取水方法、装置、设备及可读存储介质 (Water taking method, device and equipment of water dispenser and readable storage medium ) 是由 麦焱光 曾祥虎 于 2021-07-20 设计创作,主要内容包括:本发明提供一种饮水机取水方法、装置、设备及可读存储介质。该方法包括:当收到包含预设词的语音时,检测是否存在取水需求;若存在取水需求,则提取所述语音的声纹特征;检测所述声纹特征是否为合法声纹特征;若所述声纹特征为合法声纹特征,则控制饮水机出水;当满足结束条件时,控制饮水机停止出水,统计出水量;根据出水量计算出消费金额;从所述声纹特征对应的账户余额中扣除所述消费金额。通过本发明,用户通过语音控制的方式从饮水机取水,提高了用户使用饮水机的便捷性,且取水结束后可直接在用户的账户中扣除取水事件对应的消费金额,即可实现多用户共享饮水机,而无需个人对饮水机进行买断,促进了公共饮水机的推广发展。(The invention provides a water taking method, a water taking device, water taking equipment and a readable storage medium of a water dispenser. The method comprises the following steps: when receiving voice containing preset words, detecting whether a water taking demand exists; if the water taking requirement exists, extracting the voiceprint features of the voice; detecting whether the voiceprint features are legal voiceprint features; if the voiceprint characteristic is a legal voiceprint characteristic, controlling the water dispenser to discharge water; when the end condition is met, controlling the water dispenser to stop water outlet, and counting the water outlet amount; calculating the consumption amount according to the water yield; and deducting the consumption amount from the account balance corresponding to the voiceprint feature. According to the invention, the user can take water from the water dispenser in a voice control mode, so that the convenience of using the water dispenser is improved, and the consumption amount corresponding to the water taking event can be directly deducted from the account of the user after the water taking is finished, so that the water dispenser can be shared by multiple users without buying the water dispenser by individuals, and the popularization and development of public water dispensers are promoted.)

1. A water taking method of a water dispenser is characterized by comprising the following steps:

when receiving voice containing preset words, detecting whether a water taking demand exists;

if the water taking requirement exists, extracting the voiceprint features of the voice;

detecting whether the voiceprint features are legal voiceprint features;

if the voiceprint characteristic is a legal voiceprint characteristic, controlling the water dispenser to discharge water;

when the end condition is met, controlling the water dispenser to stop water outlet, and counting the water outlet amount;

calculating the consumption amount according to the water yield;

and deducting the consumption amount from the account balance corresponding to the voiceprint feature.

2. The water dispenser water intake method of claim 1, wherein the step of detecting whether there is a need to take water comprises:

detecting whether a water taking container exists on a tray of the water dispenser and whether a user with a distance to the water dispenser smaller than a preset distance exists;

and if the water taking container exists on the water dispenser tray and a user with the distance to the water dispenser being smaller than the preset distance exists, determining that the water taking requirement exists.

3. The method for taking water from a water dispenser according to claim 1, wherein the step of detecting whether the voiceprint feature is a legitimate voiceprint feature comprises:

detecting whether a target voiceprint feature matched with the voiceprint feature exists in a database;

and if the target voiceprint features matched with the voiceprint features exist in the database, determining the voiceprint features as legal voiceprint features.

4. The method for taking water from a water dispenser as claimed in claim 1, wherein the preset word comprises a water taking type word, and the step of controlling the water outlet of the water dispenser comprises the following steps:

and controlling the water dispenser to discharge water corresponding to the water taking type word.

5. The method of claim 4, wherein the step of calculating the consumption amount based on the water output comprises:

and multiplying the unit price corresponding to the water getting type word by the water yield to obtain the consumption amount.

6. The method for taking water from a water dispenser according to claim 1, further comprising, after the step of detecting whether the voiceprint feature is a legitimate voiceprint feature:

if the voiceprint features are not legal voiceprint features, outputting prompt information for prompting a water taking user to input identity identification information of a legal user;

receiving identity identification information of a legal user input by a water taking user, and sending a water taking request to a terminal corresponding to the identity identification information;

when a confirmation instruction fed back by the terminal is received, controlling the water dispenser to discharge water;

when the end condition is met, controlling the water dispenser to stop water outlet, and counting the water outlet amount;

calculating the consumption amount according to the water yield;

and deducting the consumption amount from the account balance corresponding to the identity identification information.

7. The water dispenser water taking method according to any one of claims 1 to 6, wherein the meeting of the end condition comprises:

receiving a water getting ending instruction;

or the ratio of the water yield to the capacity of the water taking container reaches a preset ratio.

8. A water taking device of a water dispenser is characterized by comprising:

the first detection module is used for detecting whether a water taking demand exists or not when voice containing preset words is received;

the extraction module is used for extracting the voiceprint features of the voice if the water taking requirement exists;

the second detection module is used for detecting whether the voiceprint features are legal voiceprint features or not;

the control module is used for controlling the water dispenser to discharge water if the voiceprint characteristic is a legal voiceprint characteristic;

the counting module is used for controlling the water dispenser to stop water outlet and counting the water outlet quantity when the finishing condition is met;

the calculation module is used for calculating the consumption amount according to the water yield;

and the deduction module is used for deducting the consumption amount from the account balance corresponding to the voiceprint characteristic.

9. A water dispenser taking apparatus comprising a processor, a memory, and a water dispenser taking program stored on the memory and executable by the processor, wherein the water dispenser taking program when executed by the processor implements the steps of the water dispenser taking method of any one of claims 1 to 7.

10. A readable storage medium having a water dispenser fetching program stored thereon, wherein the water dispenser fetching program, when executed by a processor, implements the steps of the water dispenser fetching method according to any one of claims 1 to 7.

Technical Field

The invention relates to the technical field of electric appliance control, in particular to a water taking method, a device, equipment and a readable storage medium for a water dispenser.

Background

Public water dispensers have a large share in the industry of water dispensers, the public water dispensers are generally bought and broken, the public water dispensers are put into great investment once, and purchasers need to automatically undertake future equipment maintenance, so that the burden of the purchasers is further increased, and the popularization and development of the public water dispensers are restricted under the condition.

Disclosure of Invention

The invention mainly aims to provide a water taking method, a device, equipment and a readable storage medium of a water dispenser, and aims to solve the technical problem that the popularization and development of public water dispensers are restricted by a cut-off mode in the prior art.

In a first aspect, the present invention provides a method for taking water from a water dispenser, comprising:

when receiving voice containing preset words, detecting whether a water taking demand exists;

if the water taking requirement exists, extracting the voiceprint features of the voice;

detecting whether the voiceprint features are legal voiceprint features;

if the voiceprint characteristic is a legal voiceprint characteristic, controlling the water dispenser to discharge water;

when the end condition is met, controlling the water dispenser to stop water outlet, and counting the water outlet amount;

calculating the consumption amount according to the water yield;

and deducting the consumption amount from the account balance corresponding to the voiceprint feature.

Optionally, the step of detecting whether there is a need to fetch water includes:

detecting whether a water taking container exists on a tray of the water dispenser and whether a user with a distance to the water dispenser smaller than a preset distance exists;

and if the water taking container exists on the water dispenser tray and a user with the distance to the water dispenser being smaller than the preset distance exists, determining that the water taking requirement exists.

Optionally, the step of detecting whether the voiceprint feature is a valid voiceprint feature includes:

detecting whether a target voiceprint feature matched with the voiceprint feature exists in a database;

and if the target voiceprint features matched with the voiceprint features exist in the database, determining the voiceprint features as legal voiceprint features.

Optionally, the preset words include a water getting type word, and the step of controlling the water outlet of the water dispenser includes:

and controlling the water dispenser to discharge water corresponding to the water taking type word.

Optionally, the step of calculating the consumption amount according to the water yield includes:

and multiplying the unit price corresponding to the water getting type word by the water yield to obtain the consumption amount.

Optionally, after the step of detecting whether the voiceprint feature is a valid voiceprint feature, the method further includes:

if the voiceprint features are not legal voiceprint features, outputting prompt information for prompting a water taking user to input identity identification information of a legal user;

receiving identity identification information of a legal user input by a water taking user, and sending a water taking request to a terminal corresponding to the identity identification information;

when a confirmation instruction fed back by the terminal is received, controlling the water dispenser to discharge water;

when the end condition is met, controlling the water dispenser to stop water outlet, and counting the water outlet amount;

calculating the consumption amount according to the water yield;

and deducting the consumption amount from the account balance corresponding to the identity identification information.

Optionally, the meeting the end condition includes:

receiving a water getting ending instruction;

or the ratio of the water yield to the capacity of the water taking container reaches a preset ratio.

In a second aspect, the present invention further provides a water taking device of a water dispenser, including:

the first detection module is used for detecting whether a water taking demand exists or not when voice containing preset words is received;

the extraction module is used for extracting the voiceprint features of the voice if the water taking requirement exists;

the second detection module is used for detecting whether the voiceprint features are legal voiceprint features or not;

the control module is used for controlling the water dispenser to discharge water if the voiceprint characteristic is a legal voiceprint characteristic;

the counting module is used for controlling the water dispenser to stop water outlet and counting the water outlet quantity when the finishing condition is met;

the calculation module is used for calculating the consumption amount according to the water yield;

and the deduction module is used for deducting the consumption amount from the account balance corresponding to the voiceprint characteristic.

In a third aspect, the present invention further provides a water getting apparatus for a water dispenser, where the water getting apparatus includes a processor, a memory, and a water getting program stored on the memory and executable by the processor, where the water getting program, when executed by the processor, implements the steps of the water getting method for a water dispenser as described above.

In a fourth aspect, the present invention further provides a readable storage medium, where the readable storage medium stores a water getting program of a water dispenser, where the water getting program, when executed by a processor, implements the steps of the water getting method of the water dispenser as described above.

In the invention, when receiving the voice containing the preset words, detecting whether the water fetching requirement exists; if the water taking requirement exists, extracting the voiceprint features of the voice; detecting whether the voiceprint features are legal voiceprint features; if the voiceprint characteristic is a legal voiceprint characteristic, controlling the water dispenser to discharge water; when the end condition is met, controlling the water dispenser to stop water outlet, and counting the water outlet amount; calculating the consumption amount according to the water yield; and deducting the consumption amount from the account balance corresponding to the voiceprint feature. According to the invention, the user can take water from the water dispenser in a voice control mode, so that the convenience of using the water dispenser is improved, and the consumption amount corresponding to the water taking event can be directly deducted from the account of the user after the water taking is finished, so that the water dispenser can be shared by multiple users without buying the water dispenser by individuals, and the popularization and development of public water dispensers are promoted.

Drawings

Fig. 1 is a schematic diagram of a hardware structure of a water taking device of a water dispenser according to an embodiment of the present invention;

FIG. 2 is a schematic flow chart of an embodiment of a water intake method of a water dispenser according to the present invention;

FIG. 3 is a schematic flow chart illustrating a method for taking water from a water dispenser according to another embodiment of the present invention;

fig. 4 is a functional module schematic diagram of an embodiment of a water taking device of a water dispenser according to the invention.

The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.

Detailed Description

It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

In a first aspect, the embodiment of the invention provides water taking equipment of a water dispenser.

Referring to fig. 1, fig. 1 is a schematic diagram of a hardware structure of a water taking device of a water dispenser according to an embodiment of the present invention. In the embodiment of the present invention, the water intake device of the water dispenser may include a processor 1001 (e.g., a Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used for realizing connection communication among the components; the user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WI-FI interface, WI-FI interface); the memory 1005 may be a Random Access Memory (RAM) or a non-volatile memory (non-volatile memory), such as a magnetic disk memory, and the memory 1005 may optionally be a storage device independent of the processor 1001. Those skilled in the art will appreciate that the hardware configuration depicted in FIG. 1 is not intended to be limiting of the present invention, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.

With continued reference to fig. 1, the memory 1005 of fig. 1, which is one type of computer storage medium, may include an operating system, a network communication module, a user interface module, and a water dispenser fetching program. The processor 1001 may call a water dispenser getting program stored in the memory 1005, and execute the water dispenser getting method provided by the embodiment of the present invention.

In a second aspect, the embodiment of the invention provides a method for taking water from a water dispenser.

In an embodiment, referring to fig. 2, fig. 2 is a schematic flow chart of an embodiment of a water taking method of a water dispenser according to the present invention. As shown in fig. 2, the water taking method of the water dispenser comprises the following steps:

step S10, when receiving the voice containing the preset word, detecting whether there is a water fetching demand;

in this embodiment, the preset words may be set according to actual situations. For example, depending on the type of water that the water dispenser may provide: the water dispenser can provide alkaline water, hot water, ice water, bubble water and other types of water for users, and the alkaline water, the hot water, the ice water and the bubble water can be set as preset words. When a user wants to drink alkaline water, the user only needs to send out a voice containing alkaline water, for example, the user sends out the voice containing alkaline water, or the user wants to drink alkaline water, or the user can receive the voice containing preset words sent by the user. Similarly, when the user wants to drink hot water, the user only needs to send out the voice containing the "hot water", for example, the user sends out the voice containing the preset words, and the execution main body of the embodiment can receive the voice containing the preset words sent by the user. The preset words can also be set as the names of the water dispensers, for example, the water dispensers are named as "xx", when a user wants to take water, the user sends out voices such as "xx" or "xx i want to drink water", and the execution main body of the embodiment can receive the voice containing the preset words sent by the user.

When receiving the voice containing the preset word, it is necessary to further detect whether there is a need to fetch water, considering that the voice containing the preset word may be sent by the user in other dialog scenarios or sent by other terminal devices. Specifically, whether a user is in front of the water dispenser or not can be detected, the distance between the user and the water dispenser is small, and the face of the user is opposite to the water dispenser. For example, a user is detected to be in front of the water dispenser through the infrared distance measuring device on the water dispenser, the distance between the user and the water dispenser is small, and the facial image of the user is shot through the camera device on the water dispenser, so that the water taking demand is determined to exist.

Further, in an embodiment, the step of detecting whether there is a need to fetch water includes:

detecting whether a water taking container exists on a tray of the water dispenser and whether a user with a distance to the water dispenser smaller than a preset distance exists; and if the water taking container exists on the water dispenser tray and a user with the distance to the water dispenser being smaller than the preset distance exists, determining that the water taking requirement exists.

In this embodiment, the water dispenser tray is a component for a user to place a water intake container below the water outlet. The method comprises the steps of obtaining an image of a tray area of the water dispenser through a camera device, identifying the image by using a neural model to determine whether an image of a water taking container exists in the image, and determining that the water taking container exists on the tray of the water dispenser if the neural model identifies that the image of the water taking container exists in the image. Whether an object with the temperature within a preset temperature range exists in front of the water dispenser or not is detected through the infrared distance meter, wherein the preset temperature range is set according to the temperature fluctuation range of a human body, if the infrared distance meter detects that the object with the temperature within the preset temperature range exists in front of the water dispenser, the distance between the object and the infrared distance meter is further detected, and if the distance between the object and the infrared distance meter is smaller than the preset distance, a user with the distance between the object and the water dispenser smaller than the preset distance is determined. When a user who has a water taking container on the tray of the water dispenser and has a distance with the water dispenser smaller than a preset distance is detected, determining that a water taking demand exists, otherwise, determining that the water taking demand does not exist.

The method comprises the following steps of detecting whether a water taking container exists on a tray of the water dispenser or not and detecting whether a user with the distance from the water dispenser smaller than a preset distance exists or not, wherein the two detection steps can be synchronously carried out; or, firstly, detecting whether a water taking container exists on the tray of the water dispenser, and then detecting whether a user with a distance to the water dispenser smaller than a preset distance exists when the water taking container exists on the tray of the water dispenser; or, firstly, detecting whether a user with a distance to the water dispenser less than a preset distance exists, and then detecting whether a water taking container exists on the water dispenser tray when the user with the distance to the water dispenser less than the preset distance exists.

Step S20, if the water fetching requirement exists, extracting the voiceprint feature of the voice;

in this embodiment, if there is a need to fetch water, the voiceprint feature of the speech is further extracted. Specifically, the voiceprint feature is extracted from the spectrogram corresponding to the voice containing the preset word received in step S10.

Step S30, detecting whether the voiceprint features are legal voiceprint features;

in this embodiment, the voiceprint features of each legitimate water intake user are stored in the database in advance, and the voiceprint features extracted in step S20 are matched with the voiceprint features of each legitimate water intake user stored in the database, and if the matching is successful, the voiceprint features are determined to be legitimate voiceprint features.

Further, in one embodiment, step S30 includes:

detecting whether a target voiceprint feature matched with the voiceprint feature exists in a database; and if the target voiceprint features matched with the voiceprint features exist in the database, determining the voiceprint features as legal voiceprint features.

In this embodiment, the voiceprint features of the respective legitimate water taking users are stored in the database in advance, for example, the voiceprint feature 1 of the legitimate water taking user 1, the voiceprint feature 2 of the legitimate water taking user 2, and the voiceprint feature N of the legitimate water taking user N are stored in the database. And matching the voiceprint features extracted in the step S20 with the voiceprint features 1 to N, wherein if the voiceprint features M in the voiceprint features 1 to N are matched with the voiceprint features extracted in the step S20, the voiceprint features M are target voiceprint features which exist in the database and are matched with the voiceprint features, and the voiceprint features are determined to be legal voiceprint features.

Step S40, if the voiceprint feature is a legal voiceprint feature, controlling the water dispenser to discharge water;

in this embodiment, if the voiceprint feature is a legal voiceprint feature, the faucet of the water dispenser is controlled to be opened, so that water is discharged.

Further, in an embodiment, the preset word includes a water getting type word, and the step of controlling the water outlet of the water dispenser includes:

and controlling the water dispenser to discharge water corresponding to the water taking type word.

In this embodiment, the preset words include a water getting type word, that is, the preset words in the speech containing the preset words indicate what type of water the user needs. For example, when the water getting type word is hot water, the water dispenser is controlled to open a hot water faucet, so that hot water flows out; when the water taking type word is alkaline water, controlling the water dispenser to open an alkaline water faucet so as to flow out the alkaline water; when the water taking type word is bubble water, the water dispenser is controlled to open the bubble water faucet, so that the bubble water flows out, and the like.

Step S50, when the end condition is met, controlling the water dispenser to stop water outlet, and counting the water outlet amount;

in the embodiment, after the water dispenser is controlled to discharge water, when the condition that the water dispenser is finished is detected, the water dispenser is controlled to stop discharging water, and the water discharge amount from water discharge to water discharge stop is counted. Specifically, the water flow meter can count the water output from water output to water output stopping. The water dispenser can confirm that the user needs to stop receiving water based on manual operation of the user, voice control instructions and the like, so that the condition that the water dispenser is finished is determined to be met, and the water dispenser is controlled to stop discharging water.

Further, in an embodiment, the meeting the end condition includes:

receiving a water getting ending instruction;

or the ratio of the water yield to the capacity of the water taking container reaches a preset ratio.

In this embodiment, the user may click the stop icon on the touch panel of the water dispenser to trigger the end water getting instruction, and when the execution main body of this embodiment receives the end water getting instruction triggered based on the click operation of the user, it is determined that the end condition is satisfied. Or, the user controls the closing of the faucet switch, and when the execution main body of the embodiment detects the closing of the faucet switch, the execution main body receives the instruction to finish water taking, and confirms that the finishing condition is met. Alternatively, the user may issue a voice command, such as "turn off the faucet", "stop water collection", etc., and when the execution main body of the embodiment receives such a voice command, the execution main body receives the water-fetching-ending command, and confirms that the ending condition is satisfied.

In another embodiment, the ratio of the water discharge amount to the water intake container capacity may be compared, and when the ratio of the water discharge amount to the water intake container capacity reaches a preset ratio, it is determined that the end condition is satisfied. The cross section area and the height of the water taking container can be confirmed in an image recognition mode, the product of the cross section area and the height of the water taking container is used as the capacity of the water taking container, the ratio of the water yield to the capacity of the water taking container is calculated in real time during water outlet, and when the ratio reaches a preset ratio, the condition that the ending condition is met is confirmed, so that the water dispenser is controlled to stop water outlet. The preset proportion is set according to actual needs, for example, set to 80%. Further, different preset ratios may also be set for different types of water for user safety. For example, the preset proportion corresponding to the hot water is set to be lower so as to fully ensure the water taking safety of the user, and the preset proportion corresponding to other types of water is set to be higher relative to the preset proportion corresponding to the hot water.

Step S60, calculating the consumption amount according to the water yield;

in this embodiment, after the water yield is obtained, the consumption amount can be calculated based on the water yield (unit L) and the preset unit price (x rmb/L).

Further, in one embodiment, step S60 includes:

multiplying the unit price corresponding to the water getting type word by the water yield to obtain the consumption amount

In this embodiment, a corresponding unit price may be set for each type of water. For example, the unit price for alkaline water is 0.6 yuan/L, hot water is 0.2 yuan/L, ice water is 0.3 yuan/L, and bubble water is 0.5 yuan/L. If the water getting type word included in the voice received in step S10 is alkaline water, the consumption amount is equal to the unit price x the water output amount corresponding to the alkaline water; similarly, if the water getting type word included in the voice received in step S10 is hot water, the consumption amount is equal to the unit price × the water output amount corresponding to the hot water; so on, it is not described herein.

And step S70, deducting the consumption amount from the account balance corresponding to the voiceprint feature.

In this embodiment, the voiceprint feature is a valid voiceprint feature, that is, the voiceprint feature has a corresponding consumption account, and after the consumption amount corresponding to the water getting event is obtained, the consumption amount of this time can be deducted from the account balance corresponding to the voiceprint feature. Specifically, as described in the embodiment of step S30, if the voiceprint feature M in the voiceprint features 1 to N matches the voiceprint feature extracted in step S20, the voiceprint feature M is the target voiceprint feature matching the voiceprint feature stored in the database, that is, the amount of consumption corresponding to the present water intake event is deducted from the account balance corresponding to the voiceprint feature M.

In the embodiment, when the voice containing the preset words is received, whether a water fetching requirement exists is detected; if the water taking requirement exists, extracting the voiceprint features of the voice; detecting whether the voiceprint features are legal voiceprint features; if the voiceprint characteristic is a legal voiceprint characteristic, controlling the water dispenser to discharge water; when the end condition is met, controlling the water dispenser to stop water outlet, and counting the water outlet amount; calculating the consumption amount according to the water yield; and deducting the consumption amount from the account balance corresponding to the voiceprint feature. Through the embodiment, the user gets water from the water dispenser in a voice control mode, the convenience of using the water dispenser is improved for the user, the consumption amount corresponding to the water getting event can be directly deducted from the account of the user after the water getting is finished, the water dispenser can be shared by multiple users, the water dispenser does not need to be bought and disconnected by individuals, and the popularization and development of public water dispensers are promoted.

Further, in an embodiment, referring to fig. 3, fig. 3 is a schematic flow chart of another embodiment of a water getting method of a water dispenser according to the present invention. As shown in fig. 3, after step S30, the method further includes:

step S80, if the voiceprint feature is not a legal voiceprint feature, outputting prompt information for prompting a water fetching user to input the identity information of the legal user;

in this embodiment, when it is detected that the voiceprint feature is not the valid voiceprint feature according to the detection in step S30, it indicates that the user does not have the right to take water from the water dispenser. In this case, prompt information is output to prompt the user of taking water to input the identification information of the legal user. For example, the input box and the prompt text "please input the id information of the legal user in the input box" are only schematic illustrations of the prompt text. Or sending out voice prompt for prompting the user to provide the identity information of the legal user in a voice mode.

Step S90, receiving identity identification information of a legal user input by a water getting user, and sending a water getting request to a terminal corresponding to the identity identification information;

in this embodiment, after receiving the identification information of the valid user input by the user in the input box or receiving the identification information of the valid user input by the user in a voice manner, the terminal corresponding to the identification information is sent a water getting request.

The database stores the identification information of each legal user, for example, the account ID of each legal user is used as the identification information, and the association relationship between the identification information and the user terminal is established. When receiving the identity identification information input by the user, firstly detecting whether the stored identity identification information consistent with the identity identification information exists in the database, if so, confirming that the identity identification information of a legal user is input by the water taking user, and then sending a water taking request to a terminal corresponding to the identity identification information based on the incidence relation between the identity identification information and the user terminal.

Step S100, when a confirmation instruction fed back by the terminal is received, controlling the water dispenser to discharge water;

in this embodiment, when the user at the terminal receives the water getting request, if the user agrees, the user feeds back the confirmation instruction to the execution main body of this embodiment by operating on the terminal. When the execution main body of the embodiment receives the confirmation instruction fed back by the terminal, the water dispenser is controlled to discharge water. The specific embodiment of controlling the water outlet of the water dispenser is basically the same as the embodiment of the step S40, and is not described herein again.

Step S110, when the end condition is met, controlling the water dispenser to stop water outlet, and counting the water outlet quantity;

step S120, calculating the consumption amount according to the water yield;

in this embodiment, the specific embodiment of steps S110 to S120 is substantially the same as the embodiment of steps S50 to S60, and is not repeated herein.

Step S130, deducting the consumption amount from the account balance corresponding to the identification information.

In this embodiment, the user who gets water originally has no authority to get water from the water dispenser, and the water dispenser provides water for the user who gets water only after receiving the confirmation instruction fed back by the terminal corresponding to the identification information of the legitimate user provided by the user, so the consumption amount corresponding to the event of getting water needs to be deducted from the account balance corresponding to the identification information provided by the user.

Through the embodiment, even if the current water taking user does not have the water taking authority, water can be provided for the current water taking user in a mode authorized by other people, and the use scene of the water dispenser is enriched.

In a third aspect, the embodiment of the invention also provides a water taking device of the water dispenser.

In an embodiment, referring to fig. 4, fig. 4 is a functional module schematic diagram of an embodiment of a water taking device of a water dispenser according to the present invention. As shown in fig. 4, the water intake device of the water dispenser comprises:

the first detection module 10 is used for detecting whether a water fetching demand exists when receiving voice containing preset words;

an extracting module 20, configured to extract a voiceprint feature of the voice if there is a water fetching requirement;

a second detecting module 30, configured to detect whether the voiceprint feature is a valid voiceprint feature;

the control module 40 is used for controlling the water dispenser to discharge water if the voiceprint characteristic is a legal voiceprint characteristic;

the counting module 50 is used for controlling the water dispenser to stop water outlet and counting the water outlet quantity when the finishing condition is met;

the calculation module 60 is used for calculating the consumption amount according to the water yield;

and a deduction module 70, configured to deduct the consumption amount from an account balance corresponding to the voiceprint feature.

Further, in an embodiment, the first detecting module 10 is configured to:

detecting whether a water taking container exists on a tray of the water dispenser and whether a user with a distance to the water dispenser smaller than a preset distance exists;

and if the water taking container exists on the water dispenser tray and a user with the distance to the water dispenser being smaller than the preset distance exists, determining that the water taking requirement exists.

Further, in an embodiment, the second detecting module 30 is configured to:

detecting whether a target voiceprint feature matched with the voiceprint feature exists in a database;

and if the target voiceprint features matched with the voiceprint features exist in the database, determining the voiceprint features as legal voiceprint features.

Further, in an embodiment, the preset word includes a water getting type word, and the control module 40 is configured to:

and controlling the water dispenser to discharge water corresponding to the water taking type word.

Further, in an embodiment, the calculating module 60 is configured to:

and multiplying the unit price corresponding to the water getting type word by the water yield to obtain the consumption amount.

Further, in an embodiment, the water intake device of the water dispenser further includes:

a prompt module 80, configured to output prompt information if the voiceprint feature is not a legal voiceprint feature, so as to prompt the water fetching user to input identity information of a legal user;

the sending module 90 is configured to receive identity identification information of a legal user input by a water getting user, and send a water getting request to a terminal corresponding to the identity identification information;

the control module 40 is also used for controlling the water outlet of the water dispenser when receiving the confirmation instruction fed back by the terminal;

the counting module 50 is also used for controlling the water dispenser to stop water outlet and counting the water outlet quantity when the ending condition is met;

the calculation module 60 is further configured to calculate a consumption amount according to the water yield;

the deduction module 70 is further configured to deduct the consumption amount from an account balance corresponding to the identification information.

Further, in an embodiment, the meeting the end condition includes:

receiving a water getting ending instruction;

or the ratio of the water yield to the capacity of the water taking container reaches a preset ratio.

The function realization of each module in the water taking device of the water dispenser corresponds to each step in the water taking method embodiment of the water dispenser, and the function and the realization process are not described in detail herein.

In a fourth aspect, the embodiment of the present invention further provides a readable storage medium.

The readable storage medium of the invention stores a water getting program of the water dispenser, wherein when the water getting program of the water dispenser is executed by the processor, the steps of the water getting method of the water dispenser are realized.

The method for implementing the water getting program of the water dispenser when executed can refer to each embodiment of the water getting method of the water dispenser of the invention, and is not described herein again.

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 invention are merely for description and do not represent the merits of the embodiments.

Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for causing a terminal device to execute the method according to the embodiments of the present invention.

The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:萃茶装置

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类