A method and device for controlling water dispensing from a water dispenser, electronic equipment, and storage medium.
By using facial recognition and historical water dispensing information matching technology, the water dispenser automatically adjusts the water temperature, solving the problem of insufficient intelligence in existing water dispensers and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA MOBILE CHENGDU INFORMATION & TELECOMM TECH CO LTD
- Filing Date
- 2022-05-25
- Publication Date
- 2026-06-02
AI Technical Summary
The automatic temperature-controlled water dispensing function of existing water dispensers requires users to set the temperature in advance, resulting in insufficient intelligence and inability to meet personalized water dispensing needs.
By collecting facial images of current water users and matching them with facial images in a preset user information database, the current water temperature is controlled using historical water intake information, including historical water intake temperature, ambient temperature, and body temperature information. The current water temperature is determined by weighting the ambient temperature coefficient and body temperature coefficient.
It enables automatic adjustment of water temperature based on user historical data, improving the intelligence of the water dispenser and the user experience, and ensuring a more suitable water temperature.
Smart Images

Figure CN117158785B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of electronic equipment technology, and in particular to a water dispenser water dispensing control method and device, electronic equipment, and storage medium. Background Technology
[0002] As people's living standards improve, water dispensers are becoming increasingly common, and people's demands for them are rising. Intelligent and personalized water dispensing tailored to each user's individual needs has become a development trend. For example, current water dispensers support features such as identity recognition and child locks, and some even offer automatic temperature-controlled dispensing. However, the current automatic temperature-controlled dispensing requires users to pre-set the temperature, resulting in a level of intelligence that doesn't meet user needs. Therefore, improving the intelligence level of water dispensers has become an urgent problem to be solved. Summary of the Invention
[0003] To address the existing technical problems, this disclosure provides a water dispenser water output control method and device, electronic equipment, and storage medium.
[0004] To achieve the above objectives, the technical solution of this disclosure embodiment is implemented as follows:
[0005] This disclosure provides a water dispensing control method for a water dispenser, the method comprising:
[0006] Receive the first control command sent by the current water user, indicating automatic water intake;
[0007] Collect the facial image of the current water user;
[0008] The face image is matched with face images in a preset user information database to obtain a matching result; wherein, the preset user information database includes historical water collection information corresponding to registered water collection users, and the historical water collection information includes: historical water collection temperature, historical ambient temperature at the time of water collection, and historical body temperature at the time of water collection.
[0009] In response to the matching result indicating that a target face matching the face image exists in the preset user information database, the current water temperature of the current water user is controlled according to the first control instruction and the historical water intake information corresponding to the target face in the preset user information database.
[0010] In some embodiments, the method further includes:
[0011] Obtain the current ambient temperature and the current body temperature information of the current water user;
[0012] The step of controlling the current water temperature of the current water user based on the historical water consumption information corresponding to the target face in the preset user information database includes:
[0013] The current water temperature of the current water user is controlled based on the historical average water temperature, historical average ambient temperature, historical average body temperature information, and the current body temperature information and the current ambient temperature.
[0014] In some embodiments, controlling the current water temperature of the current water user based on the historical average water temperature, historical average ambient temperature, historical average body temperature information, and the current body temperature information and the current ambient temperature includes:
[0015] The difference between the current ambient temperature and the historical average ambient temperature is weighted using a preset ambient temperature coefficient to obtain a first value;
[0016] The difference between the current body temperature information and the historical average body temperature information is weighted using a preset body temperature coefficient to obtain a second value;
[0017] Based on the historical average water intake temperature, the first value, and the second value, the current water intake temperature of the current water user is controlled.
[0018] In some embodiments, the method further includes:
[0019] In response to the matching result indicating that the target face was not matched, it is determined whether the current water user is the first water user of the water dispenser and a determination result is generated.
[0020] The current water temperature for the current water user is controlled based on the judgment result.
[0021] In some embodiments, controlling the current water temperature for the current water user based on the determination result includes:
[0022] When the judgment result indicates that the current water user is not the first water user of the water dispenser, the historical average water temperature of all registered water users of the water dispenser is determined as the current water temperature of the current water user.
[0023] In some embodiments, controlling the current water temperature for the current water user based on the determination result includes:
[0024] When the judgment result indicates that the current water user is the first water user of the water dispenser, a prompt message is output to prompt the current water user to manually control the current water temperature;
[0025] The system receives a second control command input by the current water user based on the prompt information, and controls the current water temperature of the current water user according to the second control command; wherein the second control command carries the water temperature information input by the current water user.
[0026] In some embodiments, the method further includes:
[0027] In response to the matching result indicating that the target face was not matched, user information of the current water user is created in the preset user information database; wherein, the user information includes the face image.
[0028] In some embodiments, the method further includes:
[0029] After determining the current water temperature of the current water user, the historical water consumption information of the current water user in the preset user information database is updated.
[0030] In some embodiments, updating the historical water consumption information of the current water-consuming user in the preset user information database includes:
[0031] Update the historical water temperature of the current water user in the historical water intake information according to the current water intake method;
[0032] Based on the current body temperature information of the current water user, update the body temperature information of the current water user at the time of historical water intake in the historical water intake information;
[0033] Based on the current ambient temperature of the environment where the current water user is located, update the ambient temperature of the current water user's historical water intake information.
[0034] In some embodiments, updating the historical water temperature of the current water user in the historical water intake information according to the current water intake method includes:
[0035] If the current water user takes water automatically, the current water temperature obtained from the historical water taking information corresponding to the target face will be updated to the historical water taking temperature corresponding to the current water user in the preset user information database.
[0036] If the current water user takes water manually, update the historical water temperature corresponding to the current water user in the preset user information database according to the water temperature information input by the current water user and the water volume taken by the current water user;
[0037] If the current water user uses a combination of automatic and manual water collection methods, the historical water collection temperature corresponding to the current water user in the preset user information database is updated based on the automatic water collection temperature and the corresponding water volume, the manual water collection temperature and the corresponding water volume. The automatic water collection temperature is the current water collection temperature obtained from the historical water collection information, and the manual water collection temperature is the current water collection temperature obtained from the water temperature information input by the current water user.
[0038] In some embodiments, the method further includes:
[0039] Determine the ambient light level of the environment in which the water dispenser is located;
[0040] The process of collecting the facial image of the current water user includes:
[0041] When the ambient brightness does not meet the preset acquisition brightness, the facial image of the current water user is acquired after adjusting the ambient brightness.
[0042] In some embodiments, the method further includes:
[0043] The record includes historical water consumption information of multiple water users of the current water user within a preset time period;
[0044] Based on the historical water consumption information of each water user, the historical average water consumption within the preset time period is determined;
[0045] If the average water intake does not match the preset water intake corresponding to the preset time, a prompt message will be output to adjust the preset water intake corresponding to the preset time.
[0046] This disclosure also provides a water dispensing control device for a water dispenser, the device comprising:
[0047] The receiving module is used to receive the first control command sent by the current water user, which indicates automatic water intake;
[0048] The data acquisition module is used to acquire the facial image of the current water user.
[0049] The matching module is used to match the face image with face images in a preset user information database to obtain a matching result; wherein, the preset user information database includes historical water collection information corresponding to registered water collection users, and the historical water collection information includes: historical water collection temperature, historical ambient temperature at the time of water collection, and historical body temperature at the time of water collection.
[0050] The control module is configured to respond to the matching result indicating that there is a target face in the preset user information database that matches the face image, and control the current water temperature of the current water user according to the first control instruction and the historical water intake information corresponding to the target face in the preset user information database.
[0051] In some embodiments, the control module is used to weight the difference between the current ambient temperature and the historical average ambient temperature using a preset ambient temperature coefficient to obtain a first value;
[0052] The difference between the current body temperature information and the historical average body temperature information is weighted using a preset body temperature coefficient to obtain a second value;
[0053] Based on the historical average water intake temperature, the first value, and the second value, the current water intake temperature of the current water user is controlled.
[0054] In some embodiments, the apparatus further includes:
[0055] The judgment module is used to determine whether the current water user is the first water user of the water dispenser in response to the matching result indicating that the target face was not matched and to generate a judgment result;
[0056] The control module is used to control the current water temperature of the current water user based on the judgment result.
[0057] In some embodiments, the control module is configured to determine the historical average water temperature of all registered water users of the water dispenser as the current water temperature of the current water user when the judgment result indicates that the current water user is not the first water user of the water dispenser.
[0058] In some embodiments, the control module is configured to output a prompt message to the current water user to manually control the current water temperature when the judgment result indicates that the current water user is the first water user of the water dispenser;
[0059] The system receives a second control command input by the current water user based on the prompt information, and controls the current water temperature of the current water user according to the second control command; wherein the second control command carries the water temperature information input by the current water user.
[0060] In some embodiments, the apparatus further includes:
[0061] A creation module is used to create user information of the current water user in the preset user information database in response to the matching result indicating that the target face was not matched; wherein the user information includes the face image.
[0062] In some embodiments, the apparatus further includes:
[0063] The update module is used to update the historical water consumption information of the current water user in the preset user information database after determining the current water temperature of the current water user.
[0064] In some embodiments, the updating module is configured to update the historical water temperature of the current water user in the historical water intake information according to the water intake method of the current water user;
[0065] Based on the current body temperature information of the current water user, update the body temperature information of the current water user at the time of historical water intake in the historical water intake information;
[0066] Based on the current ambient temperature of the environment where the current water user is located, update the ambient temperature of the current water user's historical water intake information.
[0067] In some embodiments, the updating module is configured to update the current water temperature obtained based on the historical water temperature information corresponding to the target face to the historical water temperature corresponding to the current water user in the preset user information database if the current water user takes water in an automatic manner.
[0068] If the current water user takes water manually, update the historical water temperature corresponding to the current water user in the preset user information database according to the water temperature information input by the current water user and the water volume taken by the current water user;
[0069] If the current water user uses a combination of automatic and manual water collection methods, the historical water collection temperature corresponding to the current water user in the preset user information database is updated based on the automatic water collection temperature and the corresponding water volume, the manual water collection temperature and the corresponding water volume. The automatic water collection temperature is the current water collection temperature obtained from the historical water collection information, and the manual water collection temperature is the current water collection temperature obtained from the water temperature information input by the current water user.
[0070] In some embodiments, the apparatus further includes:
[0071] The determination module is used to determine the ambient brightness of the environment in which the water dispenser is located;
[0072] The acquisition module is used to acquire the facial image of the current water user after adjusting the ambient brightness when the ambient brightness does not meet the preset acquisition brightness.
[0073] In some embodiments, the apparatus further includes:
[0074] The adjustment module is used to record the historical water consumption information of multiple water users, including the current water user, within a preset time period; and is also used to determine the historical average water consumption within the preset time period based on the historical water consumption information of each water user.
[0075] If the average water intake does not match the preset water intake corresponding to the preset time, a prompt message will be output to adjust the preset water intake corresponding to the preset time.
[0076] This disclosure also provides an electronic device, including: a processor and a memory for storing a computer program capable of running on the processor, wherein, when the processor runs the computer program, it executes the steps of the water dispenser dispensing control method described in this disclosure.
[0077] This disclosure also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the water dispenser water dispensing control method described in this disclosure.
[0078] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:
[0079] The technical solution of this disclosure involves collecting the facial image of the current water user and matching it with facial images in a preset information database. After a target face is matched in the preset information database, the current water temperature of the current water user is further controlled based on the historical water temperature, the ambient temperature during the historical water intake, and the body temperature during the historical water intake corresponding to the target face. This allows the water dispenser to control the current water user to obtain water at a more suitable temperature based on the first control command and the historical data of the current water user, thereby improving the user experience. Therefore, this disclosure solution can improve the intelligence level of the water dispenser. Attached Figure Description
[0080] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0081] Figure 1This is a water dispensing control system for a water dispenser according to an embodiment of the present disclosure;
[0082] Figure 2 This is a schematic flowchart of a water dispenser water dispensing control method according to an embodiment of the present disclosure;
[0083] Figure 3 This is a schematic flowchart of another water dispenser water dispensing control method according to an embodiment of the present disclosure;
[0084] Figure 4 This is a schematic diagram of the water dispensing control device of a water dispenser according to an embodiment of the present disclosure;
[0085] Figure 5 This is a schematic diagram of the hardware composition structure of an electronic device according to an embodiment of the present disclosure. Detailed Implementation
[0086] The present disclosure will now be described in further detail with reference to the accompanying drawings and specific embodiments.
[0087] Figure 1 This is an example diagram of a water dispenser water dispensing control system provided in an embodiment of this disclosure, such as... Figure 1 As shown, the water dispenser's water dispensing control system includes a face acquisition module, a face recognition module, an infrared temperature measurement module, and a data calculation and analysis module. The face acquisition module collects the facial information of users taking water, and records the facial information of first-time users to form a user information database. The face recognition module identifies the target face by recognizing the acquired facial images. The infrared temperature measurement module measures the user's body temperature. The data calculation and analysis module analyzes the temperature data and outputs the final temperature result.
[0088] based on Figure 1 The water dispensing control system shown in this disclosure provides a water dispensing control method for a water dispenser. Figure 2 This is a flowchart illustrating a water dispensing control method for a water dispenser according to an embodiment of this disclosure, as shown below. Figure 2 As shown, the method includes:
[0089] S101: Receive the first control command sent by the current water user, indicating automatic water intake.
[0090] In this embodiment of the present disclosure, the water dispenser receives a first control command sent by the current water user, indicating automatic water dispensing, in order to execute automatic water dispensing control on the water dispenser.
[0091] It should be noted that, in the embodiments of this disclosure, the first control command may be generated by the user when triggering a preset water dispensing button, which may be a virtual or physical button; it may also be generated by preset information generated by the user through voice, for example, voice information containing keywords such as "get water", "dispense water", "drink water"; or it may be generated by the user after operating through a preset operation interface on a mobile terminal and sent to the water dispenser, without being specifically limited here.
[0092] S102. Collect the facial image of the current water user.
[0093] In this embodiment of the disclosure, a facial image refers to an image containing the face of the current water user. The facial image of the current water user can be acquired by a facial recognition module in the water dispensing control system, and this module can consist of a facial recognition terminal. The water dispenser can be associated with the facial recognition terminal, which acquires the facial image of the current water user.
[0094] In one optional embodiment, the user taking water triggers the face capture terminal to capture a facial image. For example, the water dispenser captures a facial image via the face capture terminal when it receives target voice information; or the water dispenser captures a facial image via the face capture terminal when it detects that a target button has been triggered.
[0095] In another alternative embodiment, the face acquisition terminal acquires images within its field of view in real time or at preset time intervals.
[0096] It should be noted that the face capture terminal can be an image recording device such as a camera or video camera. The face capture terminal can be integrated into a water dispenser; for example, it can be installed on the top or side of the dispenser, with its viewfinder pointed directly at the area where the user's face is typically located. Alternatively, the face capture terminal can be a standalone hardware device independent of the smart water dispenser. It establishes a wired or wireless communication connection with the dispenser, is placed in a suitable location so that its viewfinder is pointed directly at the area where the user's face is typically located, captures the user's facial image, and sends the captured image to the water dispenser.
[0097] It should be noted that the execution order of steps S101 and S102 is not limited to that shown above. Step S102 can be executed first and then step S101 can be executed, or steps S101 and S102 can be executed simultaneously.
[0098] S103. Match the face image with the face images in the preset user information database to obtain a matching result; wherein, the preset user information database includes historical water intake information corresponding to registered water intake users, and the historical water intake information includes: historical water intake temperature, historical ambient temperature at the time of water intake, and historical body temperature at the time of water intake.
[0099] In this embodiment, the water dispenser stores a preset user information database. This database contains at least one registered user's facial image, historical water temperature, historical ambient temperature at the time of water dispensing, and historical body temperature information at the time of water dispensing. Each registered user corresponds to one set of historical water dispensing information. The historical water temperature may include the water temperature at each previous dispensing and / or the historical average water temperature; the historical ambient temperature at the time of water dispensing may include the ambient temperature at each previous dispensing and / or the historical average ambient temperature; and the historical body temperature information at the time of water dispensing may include the user's body temperature at each previous dispensing and / or the historical average body temperature information.
[0100] In this embodiment, after the water dispenser collects the facial image of the current user, it uses a facial recognition module to match the collected facial image with facial images in a preset user information database to obtain a matching result. The matching result can be either a matching face that exists in the preset database or no matching face exists in the preset database.
[0101] In some embodiments, after collecting the facial image of the current water user and receiving the first control command, the water dispenser may also match the collected facial image of the current water user with facial images in a preset user information database to reduce unnecessary facial matching caused by the user not actually wanting to take water or not wanting to take water automatically.
[0102] It should be noted that, in the embodiments of this disclosure, the facial images in the preset user information database can be at least one facial image uploaded by the user. Users can upload facial images from multiple angles, such as front, left, and right sides, to improve the accuracy and success rate of facial recognition matching during water dispensing. In other possible implementations, the aforementioned facial images can also be obtained by the water dispenser through a facial recognition terminal.
[0103] In this embodiment, the facial images in the preset user information database consist of at least one set of facial images. Different sets of facial images are distinguished by different user tags to differentiate between different users. Each set of facial images represents at least one facial image belonging to the same user. During the facial image matching process, the matching result is obtained by comparing whether the features of the facial image of the current water user collected match the features of the facial image in the facial template image.
[0104] The specific comparison method can be as follows: First, determine the size and position of the face in the image and crop out the real face from the image; then, find several key points (reference points, such as the corners of the eyes, the tip of the nose, and the corners of the mouth) of the face from different poses and expressions of the same person, and use these corresponding key points to transform the acquired face image into a standard face image as much as possible through similarity transformation (rotation, scaling, and translation); further, calculate various biometric parameters of the acquired face image and compare them with the various biometric parameters of the face image in the face template image. If the matching degree of the various biometric parameter values of the acquired face image and the various biometric parameter values of the face image in the face template image reaches a set threshold, it means that the acquired face image is the same as the face image in the face template image; otherwise, it means that the acquired face image is different from the face image in the face template image.
[0105] In this embodiment, the face recognition matching algorithm used is not limited, and can be Principal Component Analysis (PCA) or Linear Discriminant Analysis (LDA), etc.
[0106] S104. In response to the matching result indicating that there is a target face in the preset user information database that matches the face image, the current water temperature of the current water user is controlled according to the first control instruction and the historical water intake information corresponding to the target face in the preset user information database.
[0107] In this embodiment, when the matching result indicates that there is a target face in the preset user information database that matches the face image of the current water user, it means that the current water user has already registered in the preset user information database. In other words, the current water user is not taking water from the water dispenser for the first time. Therefore, the water dispenser can control the current water temperature of the current water user according to the historical water information of the current water user through the data calculation and analysis module according to the first control instruction.
[0108] It is understood that by adopting the technical solution of this disclosure embodiment, after collecting the facial image of the current water user, it is matched with facial images in a preset information database. After matching the target face in the preset information database, the current water temperature of the current water user is further controlled according to the historical water temperature, the ambient temperature during the historical water intake, and the body temperature information during the historical water intake corresponding to the target face. This enables the water dispenser to control the current water user to obtain water at a more suitable temperature according to the first control command and the historical data of the current water user, thereby improving the user experience. Therefore, the solution of this disclosure can improve the intelligence level of the water dispenser.
[0109] In some optional embodiments, the method further includes:
[0110] Obtain the current ambient temperature and the current body temperature information of the current water user;
[0111] The step of controlling the current water temperature of the current water user based on the historical water consumption information corresponding to the target face in the preset user information database includes:
[0112] The current water temperature of the current water user is controlled based on the historical average water temperature, historical average ambient temperature, historical average body temperature information, and the current body temperature information and the current ambient temperature.
[0113] In this embodiment, the water dispenser can obtain the current body temperature information of the user taking water through an infrared temperature measurement module. It should be noted that the infrared temperature measurement module of the water dispenser in this embodiment can be a dual-color thermometer.
[0114] It should be noted that in this embodiment, the current ambient temperature can be the current ambient temperature of the geographical area where the water dispenser is located. The water dispenser can obtain the current ambient temperature via a network. For example, if the user's home is located in Guangzhou, the current ambient temperature can be the air temperature of Guangzhou. The water dispenser can obtain the weather temperature by accessing a weather and climate data website or by using a preset weather and temperature data interface. Then, based on the weather temperature, the current ambient temperature of the geographical area where the water dispenser is located can be determined.
[0115] Furthermore, since water dispensers are generally placed indoors, where the indoor temperature differs from the outdoor temperature, the water dispenser can also detect the current ambient temperature using a temperature detection module. For example, a temperature detection device can be installed at the water dispenser to detect the air temperature at that location, thus obtaining the current ambient temperature.
[0116] As mentioned earlier, historical water intake information can include historical average water temperature, historical average ambient temperature, and historical average body temperature. The water dispenser can directly obtain the historical average water temperature, historical average ambient temperature, and historical average body temperature of the current user from the current user's historical water intake information.
[0117] In this embodiment, the historical average water temperature of the current water user during previous water draws is the average of the water temperature of each water draw before the current water draw; the historical average ambient temperature is the average of the ambient temperature of each water draw before the current water draw; and the historical average body temperature information is the average of the body temperature information of each water draw before the current water draw.
[0118] It is understood that, using the technical solution of this disclosure embodiment, users' temperature perception will differ under different ambient temperatures. Furthermore, different users have different water temperature habits. Historical water consumption information of the current user can be obtained, and based on this information, the user's historical average water consumption temperature, historical average ambient temperature, and historical average body temperature can be determined. The historical average water consumption temperature directly reflects the user's water temperature usage habits. Based on the current user's historical average water consumption temperature, historical average ambient temperature, historical average body temperature, and current body temperature, the current water consumption temperature is controlled. This current water consumption temperature satisfies both the water temperature requirements based on the current ambient temperature information and the user's individual water temperature usage habits, thereby further improving the user's water experience.
[0119] In some optional embodiments, controlling the current water temperature of the current water user based on the historical average water temperature, historical average ambient temperature, historical average body temperature information, and the current body temperature information and the current ambient temperature includes:
[0120] The difference between the current ambient temperature and the historical average ambient temperature is weighted using a preset ambient temperature coefficient to obtain a first value;
[0121] The difference between the current body temperature information and the historical average body temperature information is weighted using a preset body temperature coefficient to obtain a second value;
[0122] Based on the historical average water intake temperature, the first value, and the second value, the current water intake temperature of the current water user is controlled.
[0123] In this embodiment, the preset ambient temperature coefficient and the preset body temperature coefficient are both greater than zero and less than one. The values of the preset ambient temperature coefficient and the preset body temperature coefficient can be the same or different. Specific values can be configured according to the different water users, and are not limited here. For example, based on the user's historical water intake, the water temperature for user a is highly correlated with the ambient temperature; when the ambient temperature is low, the water temperature is high, and when the ambient temperature is high, the water temperature is low. Therefore, for user a, the preset ambient temperature coefficient can be set higher, and the preset body temperature coefficient can be set lower. For example, the preset ambient temperature coefficient can be set to 0.8, and the preset body temperature coefficient can be set to 0.3.
[0124] In this embodiment, the difference between the current ambient temperature and the historical average ambient temperature can be the difference or ratio between the current ambient temperature and the historical average ambient temperature, etc. Similarly, the difference between the current body temperature information and the historical average body temperature information can also be the difference or ratio between the current body temperature information and the historical average body temperature information, etc., and no specific limitation is made here.
[0125] For example, the current water temperature of the current water user is denoted as W_Temp. 终 The historical average water intake temperature is denoted as W_Temp 均 The current ambient temperature is denoted as T_Temp. 现 The historical average ambient temperature is denoted as T_Temp 均 The current body temperature information is recorded as W_Temp 体现 Historical average body temperature information is recorded as W_Temp 体均 Let α be the preset ambient temperature coefficient and β be the preset body temperature coefficient. Then the first value can be (T_Temp). 现 -T_Temp 均 )*α, the second value can be (W_Temp) 体现 -W_Temp 体均 Therefore, the current water intake temperature can be:
[0126] W_Temp 终 =W_Temp 均 -((T_Temp 现 -T_Temp 均 )*α+(W_Temp 体现 -W_Temp 体均 )*β) (1)
[0127] It is understood that by adopting the technical solution of this disclosure embodiment, the current water temperature of the current user can be controlled based on the historical average water temperature, the preset ambient temperature coefficient, the difference between the current ambient temperature and the historical average ambient temperature, the preset body temperature coefficient, and the difference between the current body temperature information and the historical average body temperature information. This can further improve the accuracy of the current water temperature, enhance the intelligence of the water dispenser, and thus improve the user's water-taking experience.
[0128] In some optional embodiments, the method further includes:
[0129] In response to the matching result indicating that the target face was not matched, it is determined whether the current water user is the first water user of the water dispenser and a determination result is generated.
[0130] The current water temperature for the current water user is controlled based on the judgment result.
[0131] In this embodiment, the water dispenser matches the captured facial image of the current user with the facial images of registered users in a preset user information database. If no matching face exists in the database, the dispenser determines whether the current user is the first user of the dispenser and generates a result. The result includes whether the current user is the first user of the dispenser or not. Furthermore, the dispenser can control the current water temperature based on the result.
[0132] In this embodiment, when there is no target face matching the face image of the current water user in the preset user information database, the water dispenser determines whether the current water user is the first water user by checking whether there is a face image of a registered water user in the preset user information database. When there is no face image of a registered water user in the preset user information database, i.e., when the preset user information database is empty, the current water user is determined to be the first water user of the water dispenser. When there is a face image of a registered water user in the preset user information database, the current water user is determined not to be the first water user of the water dispenser.
[0133] In the relevant technical solution, the water dispenser determines the user's water dispensing permission based on facial images pre-registered in a preset facial information database. This database includes the facial information of at least one user. If a user's facial image is not registered in the preset database, the user does not have water dispensing permission. When a user tries to dispensing water, the water dispenser first performs facial recognition, determining whether a matching face exists in the preset database. If no matching face is found in the database, the user cannot automatically dispense water from the dispenser.
[0134] The technical solution of this embodiment allows users to obtain water even if their facial image is not matched against facial images in a preset user database. It can still determine if the current user is the first user to use the water dispenser and generate a result. The water temperature can then be controlled based on this result. In other words, this embodiment allows users to obtain water even if they haven't registered in the preset user database (e.g., entered a facial image) beforehand, or if they have registered but the facial image quality is poor, demonstrating good intelligence.
[0135] In some optional embodiments, controlling the current water temperature of the current water user based on the determination result includes:
[0136] When the judgment result indicates that the current water user is not the first water user of the water dispenser, the historical average water temperature of all registered water users of the water dispenser is determined as the current water temperature of the current water user.
[0137] In this embodiment, if the determination result indicates that the current water user is not the first water user of the water dispenser, that is, the current water user is taking water from the water dispenser for the first time, but is not the first water user of the water dispenser, then when the water dispenser uses the automatic water dispensing method, the water dispenser uses the average of the historical water temperatures of all registered water users as the current water temperature for the current water user.
[0138] By adopting the technical solution of this disclosure embodiment, since the historical average water temperature of registered water users represents the water preferences of most users, the historical average water temperature of all registered water users is used as the current water temperature of the first user taking water from the water dispenser. This allows users taking water from the water dispenser for the first time to obtain water at a more suitable temperature based on the historical average water temperature, further improving the user experience.
[0139] In some optional embodiments, controlling the current water temperature of the current water user based on the determination result includes:
[0140] When the judgment result indicates that the current water user is the first water user of the water dispenser, a prompt message is output to prompt the current water user to manually control the current water temperature;
[0141] The system receives a second control command input by the current water user based on the prompt information, and controls the current water temperature of the current water user according to the second control command; wherein the second control command carries the water temperature information input by the current water user.
[0142] It should be noted that, in the embodiments disclosed herein, the prompts for manually controlling the current water temperature can be output through dialog boxes, bullet comments, voice messages, etc., and are not limited to these methods.
[0143] In this embodiment, if the determination result indicates that the current water user is the first water user of the water dispenser, meaning there are no registered water users or historical water dispensing information for any registered users, the water dispenser will output a prompt message to the current water user to manually control the current water temperature. If the current water user receives this prompt, they will input a second control command indicating manual water dispensing on the water dispenser.
[0144] It should be noted that, in the embodiments of this disclosure, the second control command may be generated by the user when triggering a preset water dispensing button, which may be a virtual or physical button; or it may be generated by the user after performing an operation on a preset operation interface on a mobile terminal and sent to the water dispenser; no specific limitation is made here.
[0145] In this embodiment, the water dispenser receives a second control command input by the current user, which indicates manual water dispensing. The second control command may include water temperature information and water volume, etc. The water dispenser controls the water temperature for the current user based on the water temperature information carried in the second control command.
[0146] It should be noted that when users manually draw water, they can draw all cold water, all hot water, or a certain amount of hot water followed by a certain amount of cold water; there are no restrictions on this.
[0147] It is understood that, using the technical solution of this disclosure embodiment, if the current user is the first user of the water dispenser, the user is reminded to manually control the water temperature. Furthermore, the water dispenser can control the water temperature for the current user based on the water temperature information carried in the control command. This disclosure embodiment provides multiple water temperature control methods for users to choose from, thereby better meeting users' water needs.
[0148] In some optional embodiments, the method further includes:
[0149] In response to the matching result indicating that the target face was not matched, user information of the current water user is created in the preset user information database; wherein, the user information includes the face image.
[0150] In this embodiment, the water dispenser matches the facial image of the current water user with the facial images of registered water users in the preset user information database. When there is no target face matching the facial image of the current water user in the preset user information database, the user information of the current water user is created in the preset information database. The user information of the current water user includes the facial image of the current water user collected by the water dispenser.
[0151] It should be noted that by adopting the technical solution of this disclosure embodiment, user information is created for the current user who takes water from the water dispenser for the first time, so that facial images can be directly used for recognition operations in the future, thereby improving the speed of facial image recognition and thus improving the performance of the water dispenser.
[0152] In some optional embodiments, the method further includes:
[0153] After determining the current water temperature of the current water user, the historical water consumption information of the current water user in the preset user information database is updated.
[0154] In this embodiment, after determining the current water temperature of the current user, the water dispenser can update the historical water temperature, the ambient temperature at the time of historical water intake, and the body temperature at the time of historical water intake of the current user in the preset user information database. At the same time, it can also update the average historical water temperature of all registered users.
[0155] It should be noted that by adopting the technical solution of this disclosure embodiment, the historical water consumption information of the current water user is updated in a timely manner. In this way, when the water user takes water, the water dispenser can control the water temperature according to the latest historical water consumption information, making the water temperature value more accurate and further improving the user's water experience.
[0156] In some optional embodiments, updating the historical water consumption information of the current water-consuming user in the preset user information database includes:
[0157] Update the historical water temperature of the current water user in the historical water intake information according to the current water intake method;
[0158] Based on the current body temperature information of the current water user, update the body temperature information of the current water user at the time of historical water intake in the historical water intake information;
[0159] Based on the current ambient temperature of the environment where the current water user is located, update the ambient temperature of the current water user's historical water intake information.
[0160] In this embodiment, the water dispensing method of the current user can include automatic, manual, or a combination of both. The water dispenser can update the historical water temperature of the current user in the historical water dispensing information based on the current user's water dispensing method. For example, the water dispenser records the water temperature and corresponding water volume of the current user within one minute, and then updates the historical water temperature of the current user in the historical water dispensing information based on the water temperature and corresponding water volume.
[0161] In this embodiment, the water dispenser saves the current body temperature information of the current water user at the time of water dispensing to a preset user information database, and can update the historical average body temperature information of the current water user based on the current body temperature information at the time of water dispensing.
[0162] In this embodiment, the water dispenser saves the current ambient temperature of the current water user's environment to a preset user information database, and can update the historical average ambient temperature corresponding to the current water user based on the current ambient temperature.
[0163] It is understood that by adopting the technical solution of this disclosure embodiment, the water dispenser updates the historical water consumption information of the current water user in a timely manner based on the current temperature information of the current water user. Under the premise of matching the current ambient temperature and the current body temperature information of the user, the accuracy of the water dispenser in controlling the current water temperature can be improved.
[0164] In some optional embodiments, updating the historical water temperature of the current water user in the historical water intake information according to the current water user's water intake method includes:
[0165] If the current water user takes water automatically, the current water temperature obtained from the historical water taking information corresponding to the target face will be updated to the historical water taking temperature corresponding to the current water user in the preset user information database.
[0166] If the current water user takes water manually, update the historical water temperature corresponding to the current water user in the preset user information database according to the water temperature information input by the current water user and the water volume taken by the current water user;
[0167] If the current water user uses a combination of automatic and manual water collection methods, the historical water collection temperature corresponding to the current water user in the preset user information database is updated based on the automatic water collection temperature and the corresponding water volume, the manual water collection temperature and the corresponding water volume. The automatic water collection temperature is the current water collection temperature obtained from the historical water collection information, and the manual water collection temperature is the current water collection temperature obtained from the water temperature information input by the current water user.
[0168] In this embodiment, if the current user takes water automatically, the water dispenser obtains the current water temperature based on the historical water intake information corresponding to the target face. For example, the current water temperature can be obtained according to the aforementioned formula (1).
[0169] In this embodiment, if the current water user takes water manually, the water dispenser obtains the average water temperature of the current water user based on the water temperature information input by the current water user and the volume of water taken by the current water user.
[0170] For example, the temperature of manually taken hot water is denoted as G_Temp. 热 The volume of hot water manually taken is denoted as V. Gtemp热 The temperature of the manually taken cold water is recorded as G_Temp. 冰 The volume of ice water manually taken is denoted as V. Gtemp冰 The density of water is denoted as ρ. 水 The numerical value used in this embodiment is one gram per cubic centimeter (1 g / cm³). 3 The average water temperature for current water users can be:
[0171]
[0172] In this embodiment, if the current water user takes water using a combination of automatic and manual methods, the average water temperature of the current water user is obtained based on the automatic water temperature and the corresponding water volume, the manual water temperature and the corresponding water volume.
[0173] For example, the temperature of the automatically dispensed water is denoted as W_Temp. 终 The volume of water automatically extracted is denoted as V. wtemp终 The temperature of the manually obtained hot water is recorded as G_Temp 热 The volume of hot water manually taken is denoted as V. Gtemp热 The temperature of the manually collected ice water is recorded as G_Temp. 冰 The volume of ice water manually taken is denoted as V. Gtemp冰 The density of water is denoted as ρ. 水The value used in this embodiment is 1 g / cm³. 3 Therefore, the average water temperature for current water users can be:
[0174]
[0175] It should be noted that the above formulas (2) and (3) are derived based on the principle of the specific heat capacity formula (the same substance absorbs the same amount of heat when its mass is equal and its temperature is raised by the same amount).
[0176] It is understood that by adopting the technical solution of this embodiment, the average water temperature of the current water user is obtained by using different methods according to the different water taking methods of the current water user. This can make the value of the average water temperature more accurate, so that the water user can get a more suitable water temperature when taking water in the future. In other words, the technical solution of this embodiment further improves the intelligence of the water dispenser.
[0177] In some optional embodiments, the method further includes:
[0178] Determine the ambient light level of the environment in which the water dispenser is located;
[0179] The process of collecting the facial image of the current water user includes:
[0180] When the ambient brightness does not meet the preset acquisition brightness, the facial image of the current water user is acquired after adjusting the ambient brightness.
[0181] In this embodiment, since both bright and dark ambient light affect the quality of the captured facial images, in order to effectively capture clear facial images of the current water user, the ambient light can be increased or decreased to reduce the impact of ambient light on the quality of the captured images.
[0182] In this embodiment, a preset light source can be set near the water outlet of the water dispenser, or a preset light source can be set in the environment where the water dispenser is located. The type, location, and number of the preset light source can be flexibly set according to actual needs. For example, the preset light source can be set on the water dispenser (i.e., it is built into the machine), or it can be an external light source of the water dispenser (such as a smart light pre-installed indoors in the environment where the water dispenser is located). The preset light source can be visible light such as blue light or white light, and the preset light source can include one or more.
[0183] Specifically, multiple different ambient brightness levels can be preset, and a mapping relationship can be established between different ambient brightness levels and the operating status and brightness level of a preset light source. The specific values of each parameter in this mapping relationship can be flexibly set according to actual needs. Then, the current ambient brightness of the environment where the water dispenser is located can be detected by a light sensor, and the current ambient brightness level of the environment where the water dispenser is located can be determined based on the current ambient brightness. According to the mapping relationship, the operating status and brightness level of the preset light source corresponding to the ambient brightness level can be determined, and the operating status (including on and off status, etc.) and brightness level of the preset light source in the environment where the water dispenser is located can be adjusted to ensure that the water dispenser can capture a relatively clear image.
[0184] For example, if the current ambient brightness level is in the first intensity range, it means the environment where the water dispenser is located is relatively dark. In this case, the preset light source can be turned on and its brightness adjusted to the first brightness level. After the preset light source is turned on, the water dispenser captures the facial image of the current user taking water. If the current ambient brightness level is in the second intensity range, it means the environment where the water dispenser is located is relatively bright. This may cause reflections or other effects that make the captured image unclear. In this case, some of the preset light sources can be turned off to adjust the brightness to the second brightness level. After some of the light sources are turned off, the water dispenser captures the facial image of the current user taking water.
[0185] It is understood that by adopting the technical solution of this disclosure embodiment, the ambient brightness of the environment where the water dispenser is located is determined. When the ambient brightness does not meet the preset acquisition brightness, the facial image of the current water user is acquired after adjusting the ambient brightness. This can improve the quality of the current water user image acquired by the water dispenser, further improve the accuracy of the matching result when matching the facial image with the facial image in the preset user information database, and thus improve the performance of the water dispenser.
[0186] In some optional embodiments, the method further includes:
[0187] The record includes historical water consumption information of multiple water users of the current water user within a preset time period;
[0188] Based on the historical water consumption information of each water user, the historical average water consumption within the preset time period is determined;
[0189] If the average water intake does not match the preset water intake corresponding to the preset time, a prompt message will be output to adjust the preset water intake corresponding to the preset time.
[0190] It should be noted that, in the embodiments disclosed herein, the preset water intake prompt information can be output through dialog boxes, bullet comments, voice, etc., and is not limited here.
[0191] In this embodiment, the preset time period can include peak water usage periods and non-peak water usage periods. The specific time periods and corresponding hot water consumption for peak and non-peak water usage periods can be obtained based on the historical water consumption information of the users. Users of the water dispenser can set the peak water usage periods and the hot water reserve volume for those periods, as well as the hot water reserve volume for non-peak water usage periods. The water dispenser will replenish hot water periodically during peak water usage periods to ensure sufficient hot water is available when those periods arrive. During non-peak water usage periods, the water dispenser only guarantees a fixed amount of hot water supply, intermittently heating and maintaining the temperature, and does not consume energy at other times.
[0192] In this embodiment, the water dispenser determines the historical average hot water consumption during the peak water consumption period based on the historical water consumption of multiple users during the peak consumption period. If the historical average hot water consumption during the peak consumption period is equal to or greater than the hot water reserve for that period, a prompt message indicating that the water volume for that period needs to be increased, along with the specific amount of water to be increased, is output. If the historical average hot water consumption during the peak consumption period is less than the hot water reserve for that period, a prompt message indicating that the water volume for that period needs to be reduced, along with the specific amount of water to be reduced, is output.
[0193] It is understood that by adopting the technical solution of this disclosure embodiment, the water dispenser can promptly remind users to adjust the preset water consumption corresponding to the preset time based on the historical average water consumption of the user within a preset time period, so that the water dispenser can ensure a sufficient water supply and reduce energy consumption.
[0194] The water dispensing control method of the water dispenser according to the present disclosure will be described in detail below with reference to a specific example. Figure 3 A schematic flowchart illustrating another water dispensing control method for a water dispenser provided in this embodiment of the present disclosure is shown below. Figure 3 As shown, the method includes:
[0195] S201, User takes water.
[0196] In this embodiment, the user is the current water user. When the user takes water, the water dispenser receives a control command sent by the current water user. The control command sent by the current water user can be a first control command indicating automatic water dispensing or a second control command indicating manual water dispensing.
[0197] S202, The system performs facial recognition.
[0198] In this embodiment, facial recognition can be achieved by the water dispenser collecting the facial image of the current user taking water and matching the facial image with facial images in a preset user information database.
[0199] It should be noted that the execution order of steps S201 and S202 is not limited to that shown above. Step S202 can be executed first and then step S201 can be executed, or steps S201 and S202 can be executed simultaneously.
[0200] S203. Is there user information? If yes, proceed to step S204; if no, proceed to step S205.
[0201] In this embodiment, whether or not user information exists refers to matching the current water user's facial image with facial images in a preset user information database to determine if a match is found. If a target face matching the facial image exists in the preset user information database, it indicates that user information exists, and step S204 is further executed; if no target face is matched, it indicates that no user information exists, and step S205 is further executed.
[0202] S204. Does the user use the smart water dispensing function? If yes, proceed to step S208; if no, proceed to step S207.
[0203] In this embodiment, whether the user uses the intelligent water dispensing function refers to determining whether the control command is a first control command representing automatic water dispensing or a second control command representing manual water dispensing. If it is a first control command representing automatic water dispensing, step S208 is executed; if it is a second control command representing manual water dispensing, step S207 is executed.
[0204] S205. Create new user information.
[0205] In this embodiment, creating new user information means that, in the absence of a target face matching in the preset user information database, i.e., when there is no user information, the facial image of the current water user is entered into the preset user information database.
[0206] S206. Is this the first user? If yes, proceed to step S207; if no, proceed to step S204.
[0207] In this embodiment, "whether it is the first user" refers to whether the current user is the first user to take water from the water dispenser. When the current user's face image does not match a target face in the preset user information database, it is determined whether the current user is the first user to take water from the water dispenser and a determination result is generated; when the determination result indicates that the current user is not the first user to take water from the water dispenser, step S204 is executed; when the determination result indicates that the current user is the first user to take water from the water dispenser, step S207 is executed.
[0208] S207, Manual water extraction.
[0209] In this embodiment, manual water dispensing refers to the water dispenser controlling the current water temperature for the current user based on a second control command input by the user.
[0210] S208. Control the water intake temperature based on historical water intake information.
[0211] In this embodiment, controlling the water temperature based on historical water dispensing information means that when the current water user selects automatic water dispensing, the water dispenser controls the current water temperature for the current user based on historical water dispensing information.
[0212] There are two scenarios here. First, when the current user is not the first user of the water dispenser, but is taking water from the water dispenser for the first time, the historical average water temperature of all registered users in the water dispenser is determined as the current water temperature of the current user.
[0213] The second method involves controlling the current water temperature for users who are not using the water dispenser for the first time, based on their historical average water temperature, historical average ambient temperature, historical average body temperature, current body temperature, and current ambient temperature.
[0214] S209. Calculate the average body temperature, average air temperature, and average water temperature, and store them in the system data.
[0215] In this embodiment, the calculation of average body temperature, average air temperature, and average water temperature, and their storage in the system data, refers to updating the historical water temperature of the current water user in the historical water intake information based on the current water user's water intake method; updating the body temperature information of the current water user at the time of water intake in the historical water intake information based on the current body temperature information of the current water user; and updating the ambient temperature of the current water user at the time of water intake in the historical water intake information based on the current ambient temperature of the environment where the current water user is located.
[0216] Steps S201 to S209 can be described in detail in the foregoing embodiments, and will not be repeated here. It is understood that by adopting the technical solution of this disclosure embodiment, after collecting the facial image of the current water user and matching it with facial images in a preset information database, and after matching a target face in the preset information database, the current water temperature of the current water user is further controlled based on the historical water temperature corresponding to the target face, the ambient temperature during historical water intake, and the body temperature information during historical water intake. This allows the water dispenser to control the current water user to obtain water at a more suitable temperature based on the first control command and the historical data of the current water user, improving the user experience. Therefore, this disclosure solution can improve the intelligence level of the water dispenser.
[0217] Based on the foregoing embodiments, this disclosure also provides a water dispensing control device for a water dispenser. Figure 4This is a schematic diagram of the water dispensing control device of a water dispenser according to an embodiment of this disclosure, as shown below. Figure 4 As shown, the device includes:
[0218] The receiving module 301 is used to receive the first control command sent by the current water user, which indicates automatic water intake;
[0219] The acquisition module 302 is used to acquire the facial image of the current water user;
[0220] The matching module 303 is used to match the face image with face images in a preset user information database to obtain a matching result; wherein, the preset user information database includes historical water collection information corresponding to registered water collection users, and the historical water collection information includes: historical water collection temperature, historical ambient temperature at the time of water collection, and historical body temperature at the time of water collection.
[0221] The control module 304 is used to respond to the matching result indicating that there is a target face in the preset user information database that matches the face image, and to control the current water temperature of the current water user according to the first control instruction and the historical water intake information corresponding to the target face in the preset user information database.
[0222] In some optional embodiments of this disclosure, the apparatus further includes:
[0223] The acquisition module 305 is used to acquire the current ambient temperature and the current body temperature information of the current water user;
[0224] The control module 304 is used to control the current water temperature of the current water user based on the historical average water temperature, historical average ambient temperature, historical average body temperature information, and the current body temperature information and the current ambient temperature.
[0225] In some optional embodiments of this disclosure,
[0226] The control module 304 is used to weight the difference between the current ambient temperature and the historical average ambient temperature using a preset ambient temperature coefficient to obtain a first value;
[0227] The difference between the current body temperature information and the historical average body temperature information is weighted using a preset body temperature coefficient to obtain a second value;
[0228] Based on the historical average water intake temperature, the first value, and the second value, the current water intake temperature of the current water user is controlled.
[0229] In some optional embodiments of this disclosure, the apparatus further includes:
[0230] The judgment module 306 is used to determine whether the current water user is the first water user of the water dispenser in response to the matching result indicating that the target face was not matched and to generate a judgment result;
[0231] The control module 304 is used to control the current water temperature of the current water user based on the judgment result.
[0232] In some optional embodiments of this disclosure,
[0233] The control module 304 is used to determine the historical average water temperature of all registered water users of the water dispenser as the current water temperature of the current water user when the judgment result indicates that the current water user is not the first water user of the water dispenser.
[0234] In some optional embodiments of this disclosure,
[0235] The control module 304 is used to output a prompt message to the current water user to manually control the current water temperature when the judgment result indicates that the current water user is the first water user of the water dispenser.
[0236] The system receives a second control command input by the current water user based on the prompt information, and controls the current water temperature of the current water user according to the second control command; wherein the second control command carries the water temperature information input by the current water user.
[0237] In some optional embodiments of this disclosure, the apparatus further includes:
[0238] A creation module 307 is used to create user information of the current water user in the preset user information database in response to the matching result indicating that the target face was not matched; wherein the user information includes the face image.
[0239] In some optional embodiments of this disclosure, the apparatus further includes:
[0240] The update module 308 is used to update the historical water intake information of the current water user in the preset user information database after determining the current water intake temperature of the current water user.
[0241] In some optional embodiments of this disclosure,
[0242] The update module 308 is used to update the historical water temperature of the current water user in the historical water intake information according to the water intake method of the current water user;
[0243] Based on the current body temperature information of the current water user, update the body temperature information of the current water user at the time of historical water intake in the historical water intake information;
[0244] Based on the current ambient temperature of the environment where the current water user is located, update the ambient temperature at the time of the current water user's historical water intake in the historical water intake information.
[0245] In some optional embodiments of this disclosure,
[0246] The update module 308 is used to update the current water temperature obtained from the historical water temperature information corresponding to the target face to the historical water temperature corresponding to the current water user in the preset user information database if the current water user takes water in an automatic manner.
[0247] If the current water user takes water manually, update the historical water temperature corresponding to the current water user in the preset user information database according to the water temperature information input by the current water user and the water volume taken by the current water user;
[0248] If the current water user uses a combination of automatic and manual water collection methods, the historical water collection temperature corresponding to the current water user in the preset user information database is updated based on the automatic water collection temperature and the corresponding water volume, the manual water collection temperature and the corresponding water volume. The automatic water collection temperature is the current water collection temperature obtained from the historical water collection information, and the manual water collection temperature is the current water collection temperature obtained from the water temperature information input by the current water user.
[0249] In some optional embodiments of this disclosure, the apparatus further includes:
[0250] The determination module 309 is used to determine the ambient brightness of the environment where the water dispenser is located;
[0251] The acquisition module 302 is used to acquire the face image of the current water user after adjusting the brightness of the environment when the ambient brightness does not meet the preset acquisition brightness.
[0252] In some optional embodiments of this disclosure, the apparatus further includes:
[0253] The adjustment module 310 is used to record the historical water consumption information of multiple water users, including the current water user, within a preset time period; and is also used to determine the historical average water consumption within the preset time period based on the historical water consumption information of each water user.
[0254] If the average water intake does not match the preset water intake corresponding to the preset time, a prompt message will be output to adjust the preset water intake corresponding to the preset time.
[0255] This disclosure also provides an electronic device. Figure 5 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this disclosure. Figure 5 As shown, the electronic device 400 includes a processor 401 and a memory 402 for storing a computer program that can run on the processor 401, wherein the processor 401, when running the computer program, executes the steps of the water dispensing control method of the water dispenser according to the embodiments of the present disclosure.
[0256] Optionally, the electronic device 400 may also include at least one network interface 403. Various components in the electronic device 400 are coupled together via a bus system 404. It is understood that the bus system 404 is used to implement communication between these components. In addition to a data bus, the bus system 404 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 5 The general designated all buses as Bus System 404.
[0257] It is understood that memory 402 can be volatile memory or non-volatile memory, or both. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), ferromagnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM); magnetic surface memory can be disk storage or magnetic tape storage. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), SyncLink Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM).The memory 402 described in the embodiments of this disclosure is intended to include, but is not limited to, these and any other suitable types of memory.
[0258] The memory 402 in this embodiment is used to store various types of data to support the operation of the electronic device 400.
[0259] The methods disclosed in the above embodiments of this disclosure can be applied to processor 401, or implemented by processor 401. Processor 401 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in processor 401 or by instructions in the form of software. The processor 401 may be a general-purpose processor, DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Processor 401 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this disclosure. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of this disclosure can be directly manifested as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium, which is located in memory 402. Processor 401 reads the information in memory 402 and, in conjunction with its hardware, completes the steps of the aforementioned water dispenser dispensing control method.
[0260] In an exemplary embodiment, the electronic device 400 may be implemented by one or more application-specific integrated circuits (ASICs), programmable logic devices (PLDs), complex programmable logic devices (CPLDs), FPGAs, general-purpose processors, controllers, MCUs, microprocessors, or other electronic components to perform the aforementioned method.
[0261] This disclosure also provides a computer-readable storage medium storing a computer program thereon, characterized in that the computer program, when executed by a processor, implements the steps of the water dispensing control method of the water dispenser according to the embodiments of this disclosure.
[0262] The methods disclosed in the several method embodiments provided in this disclosure can be arbitrarily combined without conflict to obtain new method embodiments.
[0263] The features disclosed in the several product embodiments provided in this disclosure can be combined arbitrarily without conflict to obtain new product embodiments.
[0264] The features disclosed in the several method or device embodiments provided in this disclosure can be arbitrarily combined without conflict to obtain new method or device embodiments.
[0265] In the several embodiments provided in this disclosure, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components may be combined, or integrated into another system, or some features may be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0266] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.
[0267] In addition, each functional unit in the various embodiments of this disclosure can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.
[0268] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0269] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this disclosure, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROM, RAM, magnetic disks, or optical disks.
[0270] The above description is merely a specific embodiment of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this disclosure should be included within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.
Claims
1. A water dispensing control method for a water dispenser, characterized in that, The method includes: Receive the first control command sent by the current water user, indicating automatic water intake; Collect the facial image of the current water user; The face image is matched with face images in a preset user information database to obtain a matching result; wherein, the preset user information database includes historical water collection information corresponding to registered water collection users, and the historical water collection information includes: historical water collection temperature, historical ambient temperature at the time of water collection, and historical body temperature at the time of water collection. In response to the matching result indicating that there is a target face in the preset user information database that matches the face image, the current water temperature of the current water user is controlled according to the first control instruction and the historical water intake information corresponding to the target face in the preset user information database. The method further includes: Obtain the current ambient temperature and the current body temperature information of the current water user; The difference between the current ambient temperature and the historical average ambient temperature is weighted using a preset ambient temperature coefficient to obtain a first value; The difference between the current body temperature information and the historical average body temperature information is weighted using a preset body temperature coefficient to obtain a second value; Based on the historical average water intake temperature, the first value, and the second value, the current water intake temperature of the current water user is controlled. The record includes historical water consumption information of multiple water users of the current water user within a preset time period; Based on the historical water consumption information of each water user, the historical average water consumption within the preset time period is determined; If the historical average water intake does not match the preset water intake corresponding to the preset time period, a prompt message will be output to adjust the preset water intake corresponding to the preset time period.
2. The method according to claim 1, characterized in that, The method further includes: In response to the matching result indicating that the target face was not matched, it is determined whether the current water user is the first water user of the water dispenser and a determination result is generated. The current water temperature for the current water user is controlled based on the judgment result.
3. The method according to claim 2, characterized in that, The step of controlling the current water temperature for the current water user based on the judgment result includes: When the judgment result indicates that the current water user is not the first water user of the water dispenser, the historical average water temperature of all registered water users of the water dispenser is determined as the current water temperature of the current water user.
4. The method according to claim 2, characterized in that, The step of controlling the current water temperature for the current water user based on the judgment result includes: When the judgment result indicates that the current water user is the first water user of the water dispenser, a prompt message is output to prompt the current water user to manually control the current water temperature; The system receives a second control command input by the current water user based on the prompt information, and controls the current water temperature of the current water user according to the second control command; wherein the second control command carries the water temperature information input by the current water user.
5. The method according to claim 2, characterized in that, The method further includes: In response to the matching result indicating that the target face was not matched, user information of the current water user is created in the preset user information database; wherein, the user information includes the face image.
6. The method according to any one of claims 1 to 5, characterized in that, The method further includes: After determining the current water temperature of the current water user, the historical water consumption information of the current water user in the preset user information database is updated.
7. The method according to claim 6, characterized in that, Updating the historical water consumption information of the current water-consuming user in the preset user information database includes: Update the historical water temperature of the current water user in the historical water intake information according to the current water intake method; Based on the current body temperature information of the current water user, update the body temperature information of the current water user at the time of historical water intake in the historical water intake information; Based on the current ambient temperature of the environment where the current water user is located, update the ambient temperature of the current water user's historical water intake information.
8. The method according to claim 7, characterized in that, The step of updating the historical water temperature of the current water user in the historical water intake information according to the current water intake method includes: If the current water user takes water automatically, the current water temperature obtained from the historical water taking information corresponding to the target face will be updated to the historical water taking temperature corresponding to the current water user in the preset user information database. If the current water user takes water manually, update the historical water temperature corresponding to the current water user in the preset user information database according to the water temperature information input by the current water user and the water volume taken by the current water user; If the current water user uses a combination of automatic and manual water collection methods, the historical water collection temperature corresponding to the current water user in the preset user information database is updated based on the automatic water collection temperature and the corresponding water volume, the manual water collection temperature and the corresponding water volume. The automatic water collection temperature is the current water collection temperature obtained from the historical water collection information, and the manual water collection temperature is the current water collection temperature obtained from the water temperature information input by the current water user.
9. The method according to claim 1, characterized in that, The method further includes: Determine the ambient light level of the environment in which the water dispenser is located; The process of collecting the facial image of the current water user includes: When the ambient brightness does not meet the preset acquisition brightness, the facial image of the current water user is acquired after adjusting the ambient brightness.
10. A water dispensing control device for a water dispenser, characterized in that, The device includes: The receiving module is used to receive the first control command sent by the current water user, which indicates automatic water intake; The data acquisition module is used to acquire the facial image of the current water user. The matching module is used to match the face image with face images in a preset user information database to obtain a matching result; wherein, the preset user information database includes historical water collection information corresponding to registered water collection users, and the historical water collection information includes: historical water collection temperature, historical ambient temperature at the time of water collection, and historical body temperature at the time of water collection. The control module is used to respond to the matching result indicating that there is a target face in the preset user information database that matches the face image, and to control the current water temperature of the current water user according to the first control instruction and the historical water intake information corresponding to the target face in the preset user information database. The device further includes: The acquisition module is used to acquire the current ambient temperature and the current body temperature information of the current water user. The control module is used to weight the difference between the current ambient temperature and the historical average ambient temperature using a preset ambient temperature coefficient to obtain a first value; The difference between the current body temperature information and the historical average body temperature information is weighted using a preset body temperature coefficient to obtain a second value; Based on the historical average water intake temperature, the first value, and the second value, the current water intake temperature of the current water user is controlled. The adjustment module is used to record the historical water consumption information of multiple water users, including the current water user, within a preset time period; Based on the historical water consumption information of each water user, the historical average water consumption within the preset time period is determined; If the historical average water intake does not match the preset water intake corresponding to the preset time period, a prompt message will be output to adjust the preset water intake corresponding to the preset time period.
11. An electronic device, characterized in that, include: A processor and a memory for storing a computer program capable of running on the processor, wherein the processor, when running the computer program, performs the steps of the method according to any one of claims 1 to 9.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the program implements the steps of the method according to any one of claims 1 to 9.