An intelligent faucet control method, system, storage medium and intelligent terminal

By processing information triggered by water flow and foam from the smart faucet, combined with image and infrared sensing technology, the problem of hand sanitizer taking up space when users wash their hands is solved, achieving precise foam output and economical use, thus improving handwashing efficiency.

CN115512389BActive Publication Date: 2026-03-03UNITED IND (NINGBO) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202211182418.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-27
Publication Date
2026-03-03
Estimated Expiration
2042-09-27

AI Technical Summary

Technical Problem

Existing smart faucets require users to prepare hand sanitizer when washing their hands, which takes up space on the sink and is inconvenient to operate.

Method used

By acquiring information about water output and foam triggering, and combining image processing and infrared sensing technology, the contour and tilt of the user's palm are determined, and the foam component is controlled to output an appropriate amount of foam, achieving precise foam distribution and economical use.

Benefits of technology

It makes handwashing easier for users, reduces foam waste, and improves handwashing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115512389B_ABST
    Figure CN115512389B_ABST
Patent Text Reader

Abstract

The application relates to an intelligent faucet control method and system, a storage medium and an intelligent terminal, relates to the field of intelligent bathroom appliances, and comprises the following steps: acquiring water outlet trigger information and foam trigger information; matching and analyzing the water outlet trigger information and operation mode information stored in a preset mode database to determine the operation mode information corresponding to the water outlet trigger information, and controlling water outlet operation of a preset water outlet according to the mode corresponding to the operation mode information; judging whether the trigger state corresponding to the foam trigger information is consistent with the preset output state; if the trigger state corresponding to the foam trigger information is consistent with the output state, outputting a foam output signal and controlling the foam component preset in the faucet to operate to output a preset fixed amount of foam from the preset liquid outlet; and if the trigger state corresponding to the foam trigger information is inconsistent with the output state, controlling the foam component not to operate. The application has the effect of facilitating hand washing operation of a user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart bathroom appliance technology, and in particular to a smart faucet control method, system, storage medium and smart terminal. Background Technology

[0002] With the advancement of technology, household appliances are becoming increasingly intelligent, and the concept of smart bathrooms is becoming more and more widely known. Products used in smart bathrooms include smart shower heads, smart bathtubs, smart faucets, and so on.

[0003] Among related technologies, a common type of smart faucet is the smart sensor faucet. When a user needs water from the faucet, they place their hand on the sensing area to activate the water flow. Once the sensor is removed, the water flow stops. When a user washes their hands, the sensor first wets their hands, then they take the corresponding hand soap to rub their hands together, and finally, the sensor activates water to rinse the hand soap.

[0004] Regarding the aforementioned technologies, the inventors believe that when users wash their hands, they need to prepare corresponding hand sanitizer on the sink, which not only occupies the sink space but also makes it inconvenient for users to wash their hands, and there is still room for improvement. Summary of the Invention

[0005] To facilitate handwashing for users, this application provides a smart faucet control method, system, storage medium, and smart terminal.

[0006] Firstly, this application provides a smart faucet control method, which adopts the following technical solution:

[0007] A smart faucet control method, comprising:

[0008] Acquire water discharge trigger information and foam trigger information;

[0009] The system matches and analyzes the water discharge trigger information and operation mode information stored in the preset mode database to determine the operation mode information corresponding to the water discharge trigger information, and controls the preset water discharge operation of the water outlet according to the mode corresponding to the operation mode information.

[0010] Determine whether the trigger state corresponding to the bubble trigger information is consistent with the preset output state;

[0011] If the trigger state corresponding to the foam triggering information is consistent with the output state, a foaming signal is output, and the foam component preset in the faucet is controlled to operate to output a preset fixed amount of foam from the preset liquid outlet.

[0012] If the trigger state corresponding to the foam triggering information is inconsistent with the output state, the control foam component will not operate.

[0013] By adopting the above technical solution, water outlet trigger information is first obtained to determine the current water outlet mode of the faucet. At the same time, foam trigger information can be used to determine whether the user needs foam. When it is determined that the user needs foam, the foam component is controlled to operate to output the corresponding foam for the user to use, so that the user can perform hand washing operations.

[0014] Optional methods for determining the fixed quantity include:

[0015] After the bubble signal is output, the detection image information below the liquid outlet is acquired;

[0016] Feature extraction is performed on the image corresponding to the detected image information to determine the palm contour information;

[0017] The preset dividing lines are arrayed along the preset dividing direction and intersect with the contour corresponding to the palm contour information to determine the intersection point.

[0018] The number of intersections is determined by counting the intersection points along the same dividing line.

[0019] Determine whether the quantity value corresponding to the intersection quantity information is equal to two;

[0020] If the quantity value corresponding to the intersecting quantity information is equal to two, then the dividing line is defined as a valid dividing line, and the intersection point is defined as a valid point;

[0021] If the quantity value corresponding to the intersecting quantity information is not equal to two, then the dividing line is defined as an invalid dividing line;

[0022] The effective dividing lines at both ends are defined as boundary lines in the dividing direction, and the dividing distance information of the two boundary lines in the dividing direction is determined.

[0023] Calculate the distance between valid points on each valid dividing line to determine the valid distance information, and calculate the mean distance information based on the mean distance information.

[0024] Based on the segmentation distance information, mean distance information and fixed quantity matching analysis stored in the preset quantity database, the fixed quantity corresponding to the mean distance information under the segmentation distance information is determined.

[0025] By adopting the above technical solution, the size of the user's palm can be determined through images, and the appropriate amount of foam can be matched according to the size, so that the user can wash their hands better without wasting foam.

[0026] Optionally, methods for determining segmentation distance information include:

[0027] Acquire the first distance information of the first ranging device and the second distance information of the second ranging device preset on the liquid outlet end face;

[0028] The vertical distance information is determined by averaging the first distance information and the second distance information.

[0029] The ratio is determined by calculating the vertical distance information and the preset shooting distance.

[0030] Obtain pixel distance information of two boundary lines in the segmentation direction from the image corresponding to the detected image information;

[0031] The segmentation distance information is determined by calculating the pixel distance information and the ratio information.

[0032] By adopting the above technical solution, the actual size of the palm can be determined based on the focus of the captured image, making it easier to output an appropriate amount of foam.

[0033] Optionally, methods for updating the segment distance and mean distance information include:

[0034] Obtain third distance information from a third ranging device that is pre-set on the outlet end face and is not collinear with the first and second ranging devices;

[0035] The difference between the first distance information and the second distance information is calculated to determine the first difference information, and the difference between the second distance information and the third distance information is calculated to determine the second difference information, and the difference between the first distance information and the third distance information is calculated to determine the third difference information;

[0036] The first tilt angle information is determined by calculating the first difference information and the preset first device distance value, the second tilt angle information is determined by calculating the second difference information and the preset second device distance value, and the third tilt angle information is determined by calculating the third difference information and the preset third device distance value.

[0037] The mean angle information is determined by calculating the mean angle information based on the first tilt angle information, the second tilt angle information, and the third tilt angle information.

[0038] The segmentation distance information is updated by calculating based on the mean angle information and the segmentation distance information, and the mean distance information is updated by calculating based on the mean angle information and the mean distance information.

[0039] By adopting the above technical solution, the tilt of the user's palm can be determined according to the set distance measuring device, and the size of the user's palm can be numerically corrected according to the tilt, so as to determine the actual size of the palm under the actual situation, and reduce the occurrence of the palm being smaller in the picture due to the palm tilt setting, resulting in less foam output.

[0040] Optionally, methods for discharging foam from the liquid outlet include:

[0041] The area enclosed by the boundary line and the contour corresponding to the palm outline information is defined as the bearing area;

[0042] The control system arrays the pre-defined dividing lines perpendicular to the dividing line along a direction perpendicular to the dividing direction, and defines the intersection of the dividing line and the boundary line as the boundary point.

[0043] Boundary points within the bearing area are defined as internal points, and internal quantity information is determined based on internal points on the same dividing line;

[0044] The dividing line corresponding to the quantity of internal quantity information equal to two is defined as the internal line, and the internal lines at both ends in the direction perpendicular to the dividing direction are defined as the edge lines.

[0045] The area enclosed by the edge line and the boundary line is defined as the coverage area, and the outlet is controlled to output foam to the coverage area.

[0046] By adopting the above technical solution, the area suitable for foam placement can be determined according to the palm's shape, making it easier for the foam from the outlet to be delivered to the palm for use.

[0047] Optionally, methods for discharging foam from the outlet to the covered area include:

[0048] Obtain the lateral distance information of the coverage area in the segmentation direction and the longitudinal distance information in the direction perpendicular to the segmentation direction;

[0049] The area of ​​the coverage region is determined by calculating based on the horizontal and vertical distance information.

[0050] The system matches and analyzes the area information and liquid receiving point number information stored in the preset area database to determine the liquid receiving point number information corresponding to the area information.

[0051] The coverage area is divided into liquid receiving areas based on the values ​​corresponding to the number of liquid receiving points, and the center location information of the liquid receiving area is determined based on the horizontal and vertical distance information.

[0052] The amount of work is determined by calculating the fixed amount and the number of liquid receiving points, and the outlet is controlled to output the amount of foam corresponding to the center position information.

[0053] By adopting the above technical solution, the number of foam points on the palm can be determined according to the size of the palm, so that the foam can be distributed on the palm for use, making it convenient for users to rub their hands.

[0054] Optionally, after the bubble dispensing signal is output, the smart faucet control method further includes:

[0055] Define a detection interval with a width equal to the preset detection duration on the preset time axis, and control the rear end of the detection interval to align with the current time;

[0056] Within the detection range, the number of bubbles is determined by counting based on the bubble emission signal.

[0057] Determine whether the number of times the bubble count information corresponds to a value greater than the preset upper limit;

[0058] If the number of times the bubble output information corresponds to a value greater than the upper limit, then the outlet will not output foam, and the bubble output signal will be canceled.

[0059] If the number of times the foam output information corresponds to a value not greater than the upper limit, then control the output of foam from the liquid outlet.

[0060] By adopting the above technical solution, the output of foam within the detection time is determined, so as to reduce the situation of multiple foam outputs in a short period of time and reduce the waste of foam.

[0061] Secondly, this application provides an intelligent faucet control system, which adopts the following technical solution:

[0062] A smart faucet control system includes:

[0063] The acquisition module is used to acquire water discharge trigger information and foam trigger information;

[0064] The processing module, connected to the acquisition and judgment modules, is used for information storage and processing;

[0065] The judgment module, connected to the acquisition and processing modules, is used for judging information.

[0066] The processing module matches and analyzes the water discharge trigger information and operation mode information stored in the preset mode database to determine the operation mode information corresponding to the water discharge trigger information, and controls the preset water discharge operation of the water outlet according to the mode corresponding to the operation mode information.

[0067] The judgment module determines whether the triggering state corresponding to the foam triggering information is consistent with the preset output state;

[0068] If the judgment module determines that the trigger state corresponding to the foam trigger information is consistent with the output state, the processing module outputs a foam signal and controls the foam component preset in the faucet to operate so as to output a preset fixed amount of foam from the preset liquid outlet.

[0069] If the judgment module determines that the trigger state corresponding to the foam trigger information is inconsistent with the output state, the processing module controls the foam component to not operate.

[0070] By adopting the above technical solution, the acquisition module first obtains the water outlet trigger information so that the processing module can determine the current water outlet mode of the faucet. At the same time, the judgment module can determine whether the user needs foam based on the foam trigger information. When the judgment module determines that the user needs foam, the processing module controls the foam component to operate to output the corresponding foam for the user to use, so that the user can perform hand washing operations.

[0071] Thirdly, this application provides a smart terminal, which adopts the following technical solution:

[0072] A smart terminal includes a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executed by any of the above-mentioned smart faucet control methods.

[0073] By adopting the above technical solution, the water outlet trigger information is first obtained through the use of smart terminals to determine the current water outlet mode of the faucet. At the same time, the foam trigger information can be used to determine whether the user needs foam. When it is determined that the user needs foam, the foam component is controlled to operate to output the corresponding foam for the user to use, so as to facilitate the user's hand washing operation.

[0074] Fourthly, this application provides a computer storage medium capable of storing corresponding programs, which facilitates handwashing operations for users, and adopts the following technical solution:

[0075] A computer-readable storage medium storing a computer program that can be loaded by a processor and executed by any of the above-described intelligent faucet control methods.

[0076] By adopting the above technical solution, the computer program containing the intelligent faucet control method in the storage medium first obtains the water outlet trigger information to determine the current water outlet mode of the faucet. At the same time, it can determine whether the user needs foam based on the foam trigger information. When it is determined that the user needs foam, it controls the foam component to operate to output the corresponding foam for the user to use, so as to facilitate the user's hand washing operation.

[0077] In summary, this application includes at least one of the following beneficial technical effects:

[0078] 1. When a user needs to wash their hands, a trigger can be activated to output foam from the foam component installed on the faucet, making it easier for the user to wash their hands.

[0079] 2. It can adjust the output of foam according to the user's hand size based on the user's tilt, so as to output an appropriate amount of foam for the user's use;

[0080] 3. The foam can be distributed to different parts of the palm, making it easier for users to wash their hands. Attached Figure Description

[0081] Figure 1 This is a flowchart of the intelligent faucet control method.

[0082] Figure 2 This is a structural diagram of a smart faucet.

[0083] Figure 3 This is a flowchart of the method for determining fixed quantities.

[0084] Figure 4 This is a schematic diagram illustrating the analysis of a hand image.

[0085] Figure 5 This is a flowchart of the method for determining the segmentation distance.

[0086] Figure 6 This is a flowchart of the distance update determination method.

[0087] Figure 7 This is a flowchart of the method for determining the coverage area.

[0088] Figure 8 This is a flowchart of the method for determining foam distribution.

[0089] Figure 9 This is a flowchart of the method for limiting the number of bubbles produced.

[0090] Figure 10 This is a flowchart of the module process for controlling a smart faucet. Detailed Implementation

[0091] To make the purpose, technical solution, and advantages of this application clearer, the following description is provided in conjunction with the appendix. Figure 1-10 The present application will be further described in detail below with reference to embodiments. It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the application.

[0092] The embodiments of the present invention will now be described in further detail with reference to the accompanying drawings.

[0093] This application discloses a smart faucet control method. When a user needs to wash their hands, the method can control the output of foam through the foam trigger state for the user's use. At the same time, the method can determine the corresponding amount of foam according to the size of the user's palm to make the user's hand washing effect better.

[0094] Reference Figure 1 The method and process of controlling a smart faucet includes the following steps:

[0095] Step S100: Obtain water outflow trigger information and foam trigger information.

[0096] The water discharge trigger information corresponds to the trigger state of the staff's demand for water from the faucet, as shown in the reference. Figure 2 The faucet defined in this application is of this type. According to the installation location, the faucet can be divided into faucets for installation on countertops and faucets for installation in walls. A touch screen is provided on the upper surface of the faucet. The touch screen is provided with an on / off switch for controlling the water flow, and an adjustment switch for adjusting the water flow and temperature. It also has a display screen for displaying the temperature. When the user touches the on / off switch, the faucet can switch states. The trigger state corresponding to the foam trigger information is the state determined by the foam detector set on the faucet.

[0097] Step S101: Match and analyze the water outlet trigger information and operation mode information stored in the preset mode database to determine the operation mode information corresponding to the water outlet trigger information, and control the preset water outlet operation according to the mode corresponding to the operation mode information.

[0098] The operating mode information corresponds to the operating state of the faucet. When the faucet is closed, touching the on / off switch can output the corresponding water discharge trigger information to make the faucet dispense water. When the faucet is open, touching the on / off switch can output the corresponding water discharge trigger information to make the faucet stop dispensing water. At the same time, the faucet described in this application also has infrared sensors. A first infrared sensor is set on one side of the faucet to control the faucet switch. When the first infrared sensor senses the corresponding signal, it controls the faucet to switch its state from open to closed or from closed to open. A second infrared sensor is set at the lower front end of the faucet to control the faucet to dispense water briefly. When the second infrared sensor senses the corresponding signal, it controls the faucet to dispense water. When the signal disappears, it controls the faucet to stop dispensing water. A mode database is established based on the above-mentioned corresponding water discharge trigger information and corresponding operating mode information to facilitate the control of the faucet. The method of establishing the database is a conventional technical means for those skilled in the art and will not be described in detail.

[0099] Step S102: Determine whether the trigger state corresponding to the foam trigger information is consistent with the preset output state.

[0100] The output state is the state that the foam detector, set by the staff, detects that foam needs to be output. In this application, the foam detector is also an infrared sensor, which is set on the side of the faucet away from the first infrared sensor. It determines the corresponding trigger state by sensing the infrared signal. The purpose of the determination is to know whether the current user needs hand sanitizer or foam to perform hand washing.

[0101] Step S1021: If the trigger state corresponding to the foam triggering information is consistent with the output state, then output a foaming signal and control the foam component preset in the faucet to operate so as to output a preset fixed amount of foam from the preset liquid outlet.

[0102] When the trigger state corresponding to the foam trigger information matches the output state, it indicates that the user needs foam for handwashing. At this time, a foam dispensing signal is output to identify and record this situation. The foam component includes a container for storing foam and a drive device for moving the foam. The outlet is an opening on the end face of the faucet with a water outlet for dispensing foam. The outlet is close to the water outlet so that the user does not need to move their palm. The fixed amount is the amount of foam dispensing per time set by the staff. When the user needs foam, the foam component can be controlled to dispensing the corresponding amount of foam for the user to wash their hands. At the same time, when the outlet dispenses foam, the palm below the outlet is detected in real time. If no palm is present, the foam dispensing is stopped immediately to reduce foam waste. The palm detection method can be image detection or infrared detection. The specific structure is set by the staff according to the actual situation and will not be elaborated here.

[0103] Step S1022: If the trigger state corresponding to the foam trigger information is inconsistent with the output state, then control the foam component not to operate.

[0104] When the trigger state corresponding to the foam trigger information is inconsistent with the output state, it means that the user does not need the foam. In this case, the foam component can be controlled not to perform operations.

[0105] Reference Figure 3 The methods for determining the fixed quantity include:

[0106] Step S200: After the bubble signal is output, acquire the detection image information below the liquid outlet.

[0107] The image corresponding to the detected image information is an image obtained by a camera component installed on the end face of the faucet with a liquid outlet. The camera component is set with a wide angle so that it can capture a large area of ​​the image below the faucet.

[0108] Step S201: Perform feature extraction in the image corresponding to the detected image information to determine the palm contour information.

[0109] The palm contour information corresponds to the user's palm contour. The sink countertop can be set to black. First, the image can be converted to grayscale, then filtered and denoised. Finally, the Canny edge detection algorithm can be used to obtain the palm contour. (Refer to...) Figure 4 .

[0110] Step S202: Control the preset dividing lines to be arrayed along the preset dividing direction and intersect with the contour corresponding to the palm contour information to determine the intersection point.

[0111] The dividing line is a virtual processing line set by the staff on the acquired image, as shown in the reference. Figure 4The dividing direction is set by the staff as the approximate direction that the user will face when washing their hands. The array spacing of the dividing lines is set by the staff according to the actual situation. The intersection point with the palm outline can be determined based on the dividing lines to achieve the determination of the intersection point.

[0112] Step S203: Count the intersection points on the same dividing line to determine the number of intersections.

[0113] The quantity information corresponding to the number of intersection points is the number of intersection points on the same dividing line. This can be determined by counting the intersection points. The counting method is a conventional technique for those skilled in the art and will not be elaborated here.

[0114] Step S204: Determine whether the quantity value corresponding to the intersection quantity information is equal to two.

[0115] The purpose of this judgment is to determine whether the current dividing line is located in the palm of the hand.

[0116] Step S2041: If the quantity value corresponding to the intersection quantity information is equal to two, then define the dividing line as a valid dividing line and define the intersection point as a valid point.

[0117] When the number of intersections is equal to two, it means that the dividing line and the palm outline have only two intersection points, that is, the dividing line passes through the palm. At this time, the dividing line is defined as a valid dividing line for identification, so as to distinguish different dividing lines. At the same time, the intersection points are defined as valid points for identification, so as to distinguish the intersection points.

[0118] Step S2042: If the quantity value corresponding to the intersecting quantity information is not equal to two, then the dividing line is defined as an invalid dividing line.

[0119] When the number of intersections is not equal to two, it means that there are multiple intersections between the dividing line and the palm outline, that is, the dividing line passes through the location of the fingers. In this case, the dividing line is defined as an invalid dividing line for identification, so as to distinguish different dividing lines.

[0120] Step S205: Define the effective dividing lines at both ends as boundary lines in the dividing direction, and determine the dividing distance information of the two boundary lines in the dividing direction.

[0121] The effective dividing lines at both ends of the dividing direction are defined as boundary lines for identification, so as to determine the area where the palm is located. The distance corresponding to the dividing distance information is the distance between the boundary line and the dividing direction, which can be determined by measurement.

[0122] Step S206: Calculate the distance between valid points on each valid dividing line to determine the valid distance information, and calculate the mean distance information based on the mean distance information.

[0123] The effective distance information corresponds to the distance length within the palm of the effective dividing line, which can be determined by the distance between two effective points on the same dividing line; the mean distance information corresponds to the average of the distance values ​​corresponding to all effective distance information.

[0124] Step S207: Based on the segmentation distance information, mean distance information and fixed quantity matching analysis stored in the preset quantity database, determine the fixed quantity corresponding to the mean distance information under the segmentation distance information.

[0125] Different segmentation distances and mean distances can determine the size of the palm, and based on the size of the palm, a fixed amount of foam can be determined to ensure that users have enough foam to effectively clean their palms when washing their hands, without producing too much foam and wasting it. Different segmentation distances and mean distances correspond to different fixed amounts. The relationship between these three factors is determined in advance by staff through experiments, and a quantity database is established based on this relationship for use. The method of establishing the database is a conventional technique for those skilled in the art and will not be elaborated upon.

[0126] Reference Figure 5 The methods for determining segmentation distance information include:

[0127] Step S300: Obtain the first distance information of the first ranging device and the second distance information of the second ranging device preset on the liquid outlet end face.

[0128] Both the first and second ranging devices are installed on the end face where the liquid outlet is located for distance measurement. They can be infrared rangefinders. The line connecting the first and second ranging devices is set along the length of the faucet, with the measurement direction facing downwards. The distance value corresponding to the first distance information is the data measured by the first ranging device in the downward direction, and the distance value corresponding to the second distance information is the data measured by the second ranging device in the downward direction.

[0129] Step S301: Calculate the average of the first distance information and the second distance information to determine the vertical distance information.

[0130] The vertical distance information corresponds to an approximate distance between the device capturing the image and the palm of the hand. It is determined by averaging the distance values ​​corresponding to the first distance information and the second distance information.

[0131] Step S302: Calculate the ratio information based on the vertical distance information and the preset shooting distance.

[0132] The shooting distance is the distance set by the staff to ensure that the captured image is the same size as the actual object. The ratio information corresponds to the value of the distance between the current palm and the faucet to the shooting distance. The calculation method is the ratio of the vertical distance information to the shooting distance.

[0133] Step S303: Obtain the pixel distance information of the two boundary lines in the segmentation direction in the image corresponding to the detected image information.

[0134] The distance value corresponding to the pixel distance information is the distance between the two boundary lines on the image, which can be determined by the pixel points.

[0135] Step S304: Calculate and determine the segmentation distance information based on the pixel distance information and the ratio information.

[0136] The distance value corresponding to the segmentation distance information is the distance between the two boundary lines of the palm in actual conditions. The calculation method is to multiply the distance value corresponding to the pixel distance information by the value corresponding to the ratio information.

[0137] Reference Figure 6 The methods for updating segmentation distance information and mean distance information include:

[0138] Step S400: Obtain the third distance information of a third ranging device that is preset on the liquid outlet end face and is not collinear with the first ranging device and the second ranging device.

[0139] The third ranging device is a device installed on the end face where the liquid outlet is located for measuring distance. It can be an infrared rangefinder. The third ranging device is not on the line connecting the first and second ranging devices so that the three ranging devices can form a triangle when connected. The third ranging device is also facing downwards. The distance corresponding to the third distance information is the distance between the object below the faucet and the third ranging device.

[0140] Step S401: Calculate the difference between the first distance information and the second distance information to determine the first difference information, calculate the difference between the second distance information and the third distance information to determine the second difference information, and calculate the difference between the first distance information and the third distance information to determine the third difference information.

[0141] The first difference information corresponds to the value between the corresponding values ​​of the first distance information and the second distance information. The second difference information corresponds to the value between the corresponding values ​​of the third distance information and the second distance information. The third difference information corresponds to the value between the corresponding values ​​of the first distance information and the third distance information. All three differences are absolute values.

[0142] Step S402: Calculate the first tilt angle information based on the first difference information and the preset first device distance value, calculate the second tilt angle information based on the second difference information and the preset second device distance value, and calculate the third tilt angle information based on the third difference information and the preset third device distance value.

[0143] The first device distance value is the distance between the first and second measuring devices on the outlet end face, determined by parameters used by the worker during faucet production. The angle corresponding to the first tilt angle information is the tilt angle of the palm relative to the horizontal plane detected by the first and second measuring devices, which can be calculated using trigonometric functions. The second device distance value is the distance between the third and second measuring devices on the outlet end face, determined by parameters used by the worker during faucet production. The angle corresponding to the second tilt angle information is the tilt angle of the palm relative to the horizontal plane detected by the second and third measuring devices, which can be calculated using trigonometric functions. The third device distance value is the distance between the first and third measuring devices on the outlet end face, determined by parameters used by the worker during faucet production. The angle corresponding to the third tilt angle information is the tilt angle of the palm relative to the horizontal plane detected by the first and third measuring devices, which can be calculated using trigonometric functions.

[0144] Step S403: Calculate the mean angle information based on the first tilt angle information, the second tilt angle information, and the third tilt angle information.

[0145] The mean angle information corresponds to the average tilt angle of the palm relative to the horizontal plane measured by three distance measuring devices, in order to determine the tilt of the palm.

[0146] Step S404: Calculate and update the segmentation distance information based on the mean angle information and the segmentation distance information, and calculate and update the mean distance information based on the mean angle information and the mean distance information.

[0147] When the distance values ​​obtained after the image is captured are all planar, the palm will be smaller in the captured image due to the tilt of the palm. At this time, the segmentation distance information can be corrected and updated based on the mean angle information and the segmentation distance information so that the determined distance values ​​are the actual palm values, so as to determine the appropriate amount of foam. The mean distance information is similar and will not be elaborated further.

[0148] Reference Figure 7 Methods for discharging foam from the liquid outlet include:

[0149] Step S500: Define the area enclosed by the boundary line and the contour corresponding to the palm contour information as the bearing area.

[0150] The area enclosed by the boundary line and the outline corresponding to the palm contour information is defined as the bearing area for identification, so as to determine the position of the palm and facilitate subsequent foam output.

[0151] Step S501: Control the preset dividing lines perpendicular to the dividing line to form an array along a direction perpendicular to the dividing direction, and define the intersection of the dividing line and the boundary line as the boundary point.

[0152] The dividing line is the same as the segmentation line; both are virtual straight lines used to process the image. The array spacing of the dividing line is determined by the staff based on the actual situation. The intersection of the dividing line and the boundary line is defined as the boundary point for identification, so as to facilitate subsequent analysis and calculation of the intersection point.

[0153] Step S502: Define the boundary points within the bearing area as internal points, and determine the internal quantity information based on the internal points on the same dividing line.

[0154] Boundary points within the bearing area are defined as internal points for identification, thereby distinguishing different boundary points. The quantity value corresponding to the internal quantity information is the quantity value of internal points on the same dividing line, which can be determined by counting. The counting method is a conventional technical means for those skilled in the art and will not be elaborated here.

[0155] Step S503: Define the dividing line where the quantity corresponding to the internal quantity information is equal to two as the internal line, and define the internal lines at both ends in the direction perpendicular to the dividing direction as the edge line.

[0156] When the quantity corresponding to the internal quantity information is equal to two, it means that the line segments formed by the two boundary points in the dividing line are both within the bearing area. At this time, the dividing line is defined as an internal line for identification, so as to distinguish different dividing lines. At the same time, the internal lines at both ends are defined as edge lines to distinguish different internal directions, which facilitates subsequent foam output processing.

[0157] Step S504: Define the area enclosed by the edge line and the boundary line as the coverage area, and control the outlet to output foam to the coverage area.

[0158] The coverage area is the area enclosed by the boundary line and the edge line. This area is the area on the palm near the center of the palm. The liquid outlet is controlled to output foam into the coverage area to facilitate subsequent hand washing operations by users. The liquid outlet is equipped with a rotating device for 360° rotation to allow the foam to be output in different directions.

[0159] Reference Figure 8 Methods for discharging foam from the outlet to the covered area include:

[0160] Step S600: Obtain the horizontal distance information of the covered area in the segmentation direction and the vertical distance information in the direction perpendicular to the segmentation direction.

[0161] The horizontal distance information corresponds to the length value of the segmentation direction in the coverage area, and the vertical distance information corresponds to the length value of the direction perpendicular to the segmentation direction in the coverage area, that is, the length and width of the rectangle formed by the coverage area.

[0162] Step S601: Calculate the area information of the coverage area based on the horizontal and vertical distance information.

[0163] The area value corresponding to the area information is the area value of the palm area used to receive the foam. The calculation method is to multiply the distance value corresponding to the horizontal distance information by the distance value corresponding to the vertical distance information.

[0164] Step S602: Match and analyze the area information and liquid receiving point number information stored in the preset area database to determine the liquid receiving point number information corresponding to the area information.

[0165] The number of liquid receiving points corresponds to the number of points where foam needs to be distributed in the current area. Different areas have different numbers of liquid receiving points, which are determined by staff based on prior experiments and an area database is established based on the corresponding relationship. The method of establishing the database is a conventional technical means for those skilled in the art and will not be described in detail. This setting allows the foam to be reasonably distributed on the user's palm to facilitate the user's handwashing operation.

[0166] Step S603: Divide the coverage area into liquid receiving areas on an average basis according to the values ​​corresponding to the number of liquid receiving points, and determine the center position information of the liquid receiving area according to the horizontal distance information and the vertical distance information.

[0167] The liquid receiving area is the area after the coverage area is divided equally. The method of equal division can be along the division direction, along the direction perpendicular to the division direction, or a combination of both. The specific method is set by the staff according to the actual situation and will not be elaborated here. The center position information corresponds to the center point of the liquid receiving area, which can be determined by the length and width of the coverage area and the division.

[0168] Step S604: Calculate the amount of work to be done based on the fixed amount and the number of liquid receiving points, and control the outlet to output the amount of foam to the position corresponding to the center position information.

[0169] The amount of foam to be applied is determined by a fixed amount for each liquid receiving area. The calculation method is to divide the fixed amount by the number of liquid receiving points. The outlet is controlled to output foam to the position corresponding to the center position information so that the foam can be evenly distributed on the palm of the hand, which further facilitates the user's hand washing operation.

[0170] Reference Figure 9 After the bubble output signal is output, the smart faucet control method also includes:

[0171] Step S700: Define a detection interval with a width equal to the preset detection duration on the preset time axis, and control the rear end of the detection interval to align with the current time.

[0172] The time axis is a coordinate axis composed of various time points. The detection duration is a fixed value set by the staff. The detection interval is the interval on the time axis used to detect and record the bubble signal. The latter end of the detection interval is aligned with the current time to detect the bubble signal of the previous time.

[0173] Step S701: Count the number of bubbles within the detection range based on the bubble emission signal to determine the number of bubbles emitted.

[0174] The value corresponding to the number of times bubbles emerge is the number of times the bubble signal emerges within the detection interval, which can be obtained by counting the bubble signals.

[0175] Step S702: Determine whether the number of times the bubble count information corresponds to a value greater than the preset upper limit.

[0176] The upper limit is the maximum number of times foam can be output within the detection period, as set by the staff. The purpose of the judgment is to determine whether the specified number of foam outputs has been exceeded.

[0177] Step S7021: If the number of times the bubble output information corresponds to a value greater than the upper limit, then control the liquid outlet to stop outputting foam and cancel the bubble output signal.

[0178] When the number of times the bubble output information is greater than the upper limit, it means that foam has been output multiple times in a short period of time. At this time, there may be some inconsiderate people or children playing with the foam. In this case, control the outlet to stop outputting foam to reduce foam waste, and cancel the bubble output signal so that the subsequent foam components can output foam normally.

[0179] Step S7022: If the number of times the foaming information corresponds to is not greater than the upper limit, then control the liquid outlet to output foam.

[0180] When the number of times the foam output information corresponds to a value not greater than the upper limit, it means that the number of times foam is output in a short period of time meets the requirements. At this time, the liquid outlet can be controlled to output foam normally for use.

[0181] Reference Figure 10 Based on the same inventive concept, embodiments of the present invention provide an intelligent faucet control system, comprising:

[0182] The acquisition module is used to acquire water discharge trigger information and foam trigger information;

[0183] The processing module, connected to the acquisition and judgment modules, is used for information storage and processing;

[0184] The judgment module, connected to the acquisition and processing modules, is used for judging information.

[0185] The processing module matches and analyzes the water discharge trigger information and operation mode information stored in the preset mode database to determine the operation mode information corresponding to the water discharge trigger information, and controls the preset water discharge operation of the water outlet according to the mode corresponding to the operation mode information.

[0186] The judgment module determines whether the triggering state corresponding to the foam triggering information is consistent with the preset output state;

[0187] If the judgment module determines that the trigger state corresponding to the foam trigger information is consistent with the output state, the processing module outputs a foam signal and controls the foam component preset in the faucet to operate so as to output a preset fixed amount of foam from the preset liquid outlet.

[0188] If the judgment module determines that the trigger state corresponding to the foam trigger information is inconsistent with the output state, the processing module controls the foam component to not operate.

[0189] The fixed amount determination module is used to determine the corresponding foam fixed amount based on the size of the user's palm;

[0190] The segmentation distance determination module determines the actual size of the user's palm based on the shooting position of the palm.

[0191] The distance update determination module updates the measured distance information based on the degree of tilt of the user's palm, in order to reduce the occurrence of inaccurate measurement data due to palm tilt.

[0192] The coverage area determination module is used to determine the area on the palm of the hand after the liquid is output from the outlet;

[0193] The foam distribution module is used to distribute the output foam reasonably according to the size of the palm, so as to facilitate the hand washing operation of the staff.

[0194] The foam output detection and limitation module is used to determine and limit the output of foam in a short period of time, so as to reduce the waste of foam caused by multiple foam outputs in a short period of time.

[0195] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0196] This invention provides a computer-readable storage medium storing a computer program that can be loaded by a processor and executed as a smart faucet control method.

[0197] Computer storage media include, for example, USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, optical disks, and other media that can store program code.

[0198] Based on the same inventive concept, embodiments of the present invention provide a smart terminal, including a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executed as a smart faucet control method.

[0199] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0200] The above are all preferred embodiments of this application and are not intended to limit the scope of protection of this application. Any feature disclosed in this specification (including the abstract and drawings) may be replaced by other equivalent or similar features unless specifically stated otherwise. That is, unless specifically stated otherwise, each feature is only one example of a series of equivalent or similar features.

Claims

1. A smart faucet control method, characterized by, The method comprises the following steps: acquiring water outlet trigger information and foam trigger information; matching and analyzing the water outlet trigger information with operation mode information stored in a preset mode database to determine operation mode information corresponding to the water outlet trigger information, and controlling water outlet operation of a preset water outlet according to a mode corresponding to the operation mode information; judging whether a trigger state corresponding to the foam trigger information is consistent with a preset output state; if the trigger state corresponding to the foam trigger information is consistent with the output state, outputting a foam output signal and controlling a foam assembly preset in a faucet to output a preset fixed amount of foam from a preset liquid outlet; if the trigger state corresponding to the foam trigger information is inconsistent with the output state, controlling the foam assembly not to operate; The method for determining the fixed amount comprises the following steps: acquiring detection image information below the liquid outlet after the foam output signal is outputted; extracting features in an image corresponding to the detection image information to determine palm contour information; controlling a preset segmentation line to array along a preset segmentation direction and intersect with a contour corresponding to the palm contour information to determine intersection points; counting the intersection points on the same segmentation line to determine intersection quantity information; judging whether a quantity value corresponding to the intersection quantity information is equal to two; if the quantity value corresponding to the intersection quantity information is equal to two, defining the segmentation line as a valid segmentation line and defining the intersection points as valid points; if the quantity value corresponding to the intersection quantity information is not equal to two, defining the segmentation line as an invalid segmentation line; defining two ends of the valid segmentation line as boundary lines in the segmentation direction, and determining segmentation distance information of the two boundary lines in the segmentation direction; calculating distances between the valid points on each valid segmentation line to determine valid distance information, and performing mean value calculation on the valid distance information to determine mean value distance information; matching and analyzing the segmentation distance information, the mean value distance information and the fixed amount stored in a preset quantity database to determine a fixed amount corresponding to the mean value distance information under the segmentation distance information; The method for updating the segmentation distance information and the mean value distance information comprises the following steps: acquiring third distance information of a third distance measuring device preset at an end surface of the liquid outlet and not collinear with the first distance measuring device and the second distance measuring device; calculating a difference value between the first distance information and the second distance information to determine first difference value information, calculating a difference value between the second distance information and the third distance information to determine second difference value information, and calculating a difference value between the first distance information and the third distance information to determine third difference value information; calculating according to the first difference value information and a preset first device distance value to determine first inclination angle information, calculating according to the second difference value information and a preset second device distance value to determine second inclination angle information, and calculating according to the third difference value information and a preset third device distance value to determine third inclination angle information; performing mean value calculation on the first inclination angle information, the second inclination angle information and the third inclination angle information to determine mean value angle information; calculating according to the mean value angle information and the segmentation distance information to update the segmentation distance information, and calculating according to the mean value angle information and the mean value distance information to update the mean value distance information; The method for outputting foam by the liquid outlet to a coverage area comprises the following steps: acquire transverse distance information of the coverage area in the segmentation direction and longitudinal distance information in a direction perpendicular to the segmentation direction; calculate according to the transverse distance information and the longitudinal distance information to determine area information of the coverage area; match and analyze the area information stored in the preset area database with the liquid receiving point number information to determine the liquid receiving point number information corresponding to the area information; divide the coverage area into liquid receiving areas according to the corresponding value of the liquid receiving point number information, and determine the center position information of the liquid receiving areas according to the transverse distance information and the longitudinal distance information; calculate the operation amount according to the fixed amount and the liquid receiving point number information, and control the liquid outlet to output the operation amount of the foam to the position corresponding to the center position information.

2. The intelligent faucet control method of claim 1, wherein The method for determining the segmentation distance information comprises: acquire first distance information of a first distance measuring device and second distance information of a second distance measuring device preset on the end face of the liquid outlet; calculate the average of the first distance information and the second distance information to determine vertical distance information; calculate the ratio information according to the vertical distance information and the preset shooting distance; acquire pixel distance information of the two boundary lines in the segmentation direction in the image corresponding to the detection image information; calculate the segmentation distance information according to the pixel distance information and the ratio information.

3. The intelligent faucet control method of claim 1, wherein The method for the liquid outlet to output foam comprises: define the area enclosed by the boundary line and the palm contour information as a bearing area; control the division line perpendicular to the segmentation line to array in a direction perpendicular to the segmentation direction, and define the intersection of the division line and the boundary line as a boundary point; define the boundary point in the bearing area as an internal point, and determine internal quantity information according to the internal point on the same division line; define the division line with the corresponding quantity of the internal quantity information equal to two as an internal line, and define the two ends of the internal line in the direction perpendicular to the segmentation direction as edge lines; define the area enclosed by the edge line and the boundary line as a coverage area, and control the liquid outlet to output foam to the coverage area.

4. The intelligent faucet control method of claim 1, wherein After the foam output signal is output, the intelligent faucet control method further comprises: divide a detection interval with a preset detection time length on a preset time axis, and control the rear end of the detection interval to align with the current time; count the foam output signal in the detection interval to determine foam output times information; determine whether the number of times corresponding to the foam output times information is greater than a preset upper limit value; if the number of times corresponding to the foam output times information is greater than the upper limit value, control the liquid outlet not to output foam, and cancel the foam output signal; if the number of times corresponding to the foam output times information is not greater than the upper limit value, control the liquid outlet to output foam.

5. A smart faucet control system, characterized by, comprises: an acquisition module, configured to acquire water output trigger information, foam trigger information, detection image information below the liquid outlet, third distance information of a third distance measuring device preset on the end face of the liquid outlet and not collinear with the first distance measuring device and the second distance measuring device, transverse distance information of the coverage area in the segmentation direction, and longitudinal distance information in a direction perpendicular to the segmentation direction; a processing module, connected with the acquisition module and the judgment module, configured to store and process information; a judgment module, connected with the acquisition module and the processing module, configured to judge information. The processing module matches and analyzes the water outlet trigger information and the operation mode information stored in the preset mode database to determine the operation mode information corresponding to the water outlet trigger information, and controls the water outlet operation of the preset water outlet according to the mode corresponding to the operation mode information; The judging module judges whether the trigger state corresponding to the foam trigger information is consistent with the preset output state; If the judging module judges that the trigger state corresponding to the foam trigger information is consistent with the output state, the processing module outputs a foam signal and controls the foam assembly preset in the faucet to output a preset fixed amount of foam from the preset liquid outlet; If the judging module judges that the trigger state corresponding to the foam trigger information is inconsistent with the output state, the processing module controls the foam assembly not to operate; The determination method of the fixed amount includes: acquiring detection image information below the liquid outlet after the foam signal is output; extracting features in the image corresponding to the detection image information to determine palm contour information; controlling a preset segmentation line to array along a preset segmentation direction and intersect with the contour corresponding to the palm contour information to determine intersection points; counting the intersection points on the same segmentation line to determine intersection quantity information; judging whether the quantity value corresponding to the intersection quantity information is equal to two; if the quantity value corresponding to the intersection quantity information is equal to two, defining the segmentation line as a valid segmentation line and defining the intersection points as valid points; if the quantity value corresponding to the intersection quantity information is not equal to two, defining the segmentation line as an invalid segmentation line; defining the valid segmentation lines at both ends in the segmentation direction as boundary lines and determining segmentation distance information of the two boundary lines in the segmentation direction; calculating the distances between the valid points on each valid segmentation line to determine valid distance information, and performing mean value calculation on the valid distance information to determine mean value distance information; matching and analyzing the segmentation distance information, the mean value distance information and the fixed amount stored in the preset quantity database to determine the fixed amount corresponding to the mean value distance information under the segmentation distance information; The updating method of the segmentation distance information and the mean value distance information includes: acquiring third distance information of a third distance measuring device preset at the end surface of the liquid outlet and not collinear with the first distance measuring device and the second distance measuring device; calculating the difference between the first distance information and the second distance information to determine first difference value information, and calculating the difference between the second distance information and the third distance information to determine second difference value information, and calculating the difference between the first distance information and the third distance information to determine third difference value information; calculating according to the first difference value information and the preset first device distance value to determine first inclination angle information, calculating according to the second difference value information and the preset second device distance value to determine second inclination angle information, and calculating according to the third difference value information and the preset third device distance value to determine third inclination angle information; performing mean value calculation on the first inclination angle information, the second inclination angle information and the third inclination angle information to determine mean value angle information; calculating according to the mean value angle information and the segmentation distance information to update the segmentation distance information, and calculating according to the mean value angle information and the mean value distance information to update the mean value distance information; The method for outputting the foam from the liquid outlet to the coverage area comprises: acquiring transverse distance information of the coverage area in a segmentation direction and longitudinal distance information of the coverage area in a direction perpendicular to the segmentation direction; calculating according to the transverse distance information and the longitudinal distance information to determine area information of the coverage area; matching and analyzing the area information of the coverage area with the liquid receiving point number information stored in a preset area database to determine the liquid receiving point number information corresponding to the area information; dividing the coverage area into liquid receiving areas according to the corresponding value of the liquid receiving point number information, and determining center position information of the liquid receiving areas according to the transverse distance information and the longitudinal distance information; calculating the operation amount according to the fixed amount and the liquid receiving point number information, and controlling the liquid outlet to output the foam of the operation amount to the position corresponding to the center position information.

6. A smart terminal, characterized by The computer program stored on the memory and capable of being loaded and executed by the processor to perform the method of any one of claims 1 to 4.

7. A computer readable storage medium characterized in that, The computer program stored on the memory and capable of being loaded and executed by the processor to perform the method of any one of claims 1 to 4.

Citation Information

Patent Citations

  • Multifunction hand-washing machine and operating method thereof

    CN102973187A

  • Palm region recognition method and device

    CN104809430A

  • Method and device for adjusting recognition angle of palm vein image

    CN113221891A

  • Jetting device

    JP2022017775A