Intelligent faucet gesture sensing water outlet method
By using a human body sensor and an infrared light curtain to collaboratively map a 3D point cloud coordinate map, the problem of misjudgment in the gesture recognition of smart faucets has been solved, achieving efficient and accurate non-contact water flow adjustment, thus improving the user experience and safety.
Patent Information
- Application Number
- CN202511312309.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-15
- Publication Date
- 2025-12-23
- Estimated Expiration
- 2045-09-15
AI Technical Summary
Existing smart faucets are prone to misjudgment and false triggering during gesture recognition, especially during dynamic operation, where it is difficult to accurately distinguish between gestures and sensor recognition areas, leading to errors in water flow adjustment.
It employs a human body sensor and an infrared light curtain working together to divide the area by mapping a three-dimensional point cloud coordinate map. Combined with dynamic calibration of the tolerance area and gesture recognition, it monitors and evaluates gesture commands in real time to achieve non-contact water discharge control.
It improves the accuracy and stability of water flow from the faucet, reduces the false trigger rate, enhances hygiene and user experience, is suitable for various handwashing scenarios, and features water conservation and user-friendliness.
Smart Images

Figure CN120819685B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of intelligent faucets, in particular, to a gesture sensing water outlet method of an intelligent faucet. BACKGROUND
[0002] With the continuous rise of living quality, people have higher expectations for the convenience and comfort of daily water use: kitchen cooking, bathroom washing, and public washing area all hope to use water intelligently, so gesture interaction becomes a natural choice.
[0003] The application file with the publication number CN105757311B discloses a control gesture recognition method of a faucet. The method uses a detection unit that can detect a first area and a second area. The recognition method includes the following steps: 1. Set the effective time T1 of the hand moving from the first area to the second area; 2. Detect the time T3 of the hand moving from the first area to the second area. If T3 is not within T1, it is an invalid operation; 3. According to T3, set the moving time T2 of the hand in the second area, and T2 is proportional to T3; 4. If T3 is within T1, but the hand has not moved to the first area, it is judged that the second step is the first effective gesture; 5. If movement occurs, but the moving time T4 of the hand in the second area is less than T2, it is judged that the hand moves back and forth between the first area and the second area as the first effective gesture; if T4 is greater than T2, it is judged that the hand moves to the first area as the second effective gesture. The method provided by the present application has fast recognition and high accuracy.
[0004] In the process of recognizing the control gesture, the operation of the faucet depends on the judgment of the gesture change maintenance time, but in the actual implementation process, the hand is in a dynamic state during water use, so it is easy to misjudge the dynamic continuous operation. Secondly, when the user wants to continuously adjust the water temperature twice, his ideal action is: quickly back and forth once, and quickly back and forth again, that is, the user's gesture is: left→right→left→right→left. However, according to the method described in the application file, it is easy to be judged as two to three invalid one-way actions, resulting in an output result that does not match the user's intention. In addition, the first area, the second area, the third area and the fourth area mentioned in the application file are calibrated by four infrared sensors, but the application file does not clearly define the areas. If there is a gap between the areas, the infrared sensor will lose the target when the user's hand passes through the gap, resulting in misjudgment of the end of the gesture or inaccurate timing. If the areas overlap, the user's hand may be in the sensing range of two areas at the same time, so it is impossible to judge the moving direction of the hand, resulting in logical confusion and misjudgment. In addition, the detection range of the infrared sensor is usually a circular cone or a four-sided pyramid, so there must be a gap area or an overlapping area when using four infrared sensors to calibrate four areas, resulting in inaccurate measurement accuracy of the infrared sensor, thereby producing an error signal and causing an error in the water flow adjustment operation of the faucet.
[0005] In order to solve the above problems, the present application provides a gesture sensing water outlet method of a smart faucet. SUMMARY
[0006] In view of the deficiencies of the prior art, the present application provides a gesture sensing water outlet method of a smart faucet, which solves the problems of inaccurate gesture and interference discrimination and unclear sensing and recognition area, resulting in misjudgment and false triggering.
[0007] The object of the present application can be achieved by the following technical solutions:
[0008] A gesture sensing water outlet method of a smart faucet, the method comprising:
[0009] Step one, using a pre-defined human body sensing device to detect the sink area in real time, if it is determined that there is a human body target in the faucet area, then activate the pre-constructed infrared light curtain to scan the faucet and the area below it, and measure the three-dimensional point cloud coordinate graph;
[0010] If it is determined that there is no human body target in the faucet area, then the human body sensing device continuously monitors the sink area;
[0011] Step two, based on the determined three-dimensional point cloud coordinate graph, divide the area, determine the water outlet area and the detection area, combine the infrared light curtain to evaluate the detection area in real time, and based on the evaluation result, execute the opening and closing operations of the faucet;
[0012] Step three, calibrate the tolerance area associated with the water outlet target;
[0013] Real-time calibration of the tolerance area currently associated with the water outlet target, comprehensive evaluation, determination of the gesture command, and regulation of the faucet.
[0014] As a further scheme of the present application, in step one, the sink area is determined by the operator in combination with the sensing range of the human body sensing device;
[0015] The human body sensing device comprises a timer T;
[0016] If there is no human body target in the sink area, the human body sensing device continuously monitors;
[0017] If there is a human body target in the sink area at any time t, let the timer T start timing from time t;
[0018] If the duration of the timer T exceeds the time threshold t_yu preset by the operator, a human body target signal is sent to the infrared light curtain;
[0019] If the time length of the timer T does not exceed the time threshold t_yu, the human body sensing device continues to monitor, and the timer T is reset to 0;
[0020] If the human body sensing device detects that there is no human body target in the sink area at any time after the timer T starts timing from the time t, the timer T is reset to 0, and a signal that there is no human body target is sent to the infrared light curtain.
[0021] As a further scheme of the present application, in step one, the specific way of activating the pre-constructed infrared light curtain to scan the faucet and the area below the faucet and mapping the three-dimensional point cloud coordinate graph is:
[0022] After the infrared light curtain receives the signal that there is a human body target, the infrared light curtain function is activated, and the mapping range of the infrared light curtain includes the faucet and the area below the faucet and the area above the sink;
[0023] The infrared light curtain is used to scan the faucet and the area below the faucet and the area above the sink, and a three-dimensional point cloud coordinate graph A is mapped.
[0024] As a further scheme of the present application, in step two, the specific way of dividing the area based on the determined three-dimensional point cloud coordinate graph to determine the water area and the detection area is:
[0025] The three-dimensional point cloud coordinate graph A is obtained;
[0026] The plane where the faucet outlet is located is obtained and is marked in the three-dimensional point cloud coordinate graph A, denoted as plane PL1;
[0027] The water storage area of the sink is obtained and is marked in the three-dimensional point cloud coordinate graph A, denoted as area Q1;
[0028] The opening associated with the highest horizontal plane of the area Q1 in the three-dimensional point cloud coordinate graph A is obtained, and a closed solid Q2 is vertically made with the plane PL1 with the opening as the bottom surface;
[0029] The bottom surface of the closed solid Q2 is attached to the opening of the area Q1, the top surface is coincident with the plane PL1, and the ring side wall is perpendicular to the plane PL1 and the opening of the area Q1;
[0030] The area Q1 and the closed solid Q2 are combined, denoted as a sink water space envelope Q associated with the sink;
[0031] The size of the faucet outlet is obtained, and a closed solid Q3 is vertically made downward with the size of the outlet as the top surface, the closed solid Q3 is an outlet area associated with the sink, denoted as Wa, and the closed solid Q3 is in the sink water space envelope Q;
[0032] A cylinder Q4 is taken with the center line of the water outlet area Wa as the axis and a preset radius R, and the upper and lower surfaces of the cylinder Q4 are respectively coincided with the highest and lowest planes of the washbasin water space envelope Q.
[0033] The cylinder Q4 is a detection area associated with the washbasin, denoted as Da, and the cylinder Q4 is in the washbasin water space envelope Q.
[0034] As a further scheme of the present application, in step two, the specific way of real-time evaluation of the detection area is:
[0035] Obtaining the detection area Da;
[0036] Real-time determining a three-dimensional point cloud data set associated with the detection area Da from the three-dimensional point cloud coordinate graph A, denoted as P;
[0037] Layering the detection area Da in the order from bottom to top, a total of m layers, wherein m is a preset value, and each layer is a detection sub-area;
[0038] Dividing the three-dimensional point cloud data set P according to the detection sub-area, obtaining m three-dimensional point cloud data subsets associated with the m detection sub-areas, denoted as a three-dimensional point cloud data subset sequence P1, P2,..., Pm in the order from bottom to top according to the detection sub-area;
[0039] If there is at least any one three-dimensional point cloud data subset Pn in the three-dimensional point cloud data subset sequence P1, P2,..., Pm, whose three-dimensional point cloud data change rate is greater than α%, then record the time when the change rate is greater than α%, and mark it as time t1;
[0040] And at time t1, let the pre-constructed timer T1 start timing from 0, if there is no at least any one three-dimensional point cloud data subset Pn in the three-dimensional point cloud data subset sequence P1, P2,..., Pm, whose three-dimensional point cloud data change rate is greater than α% during the timing process, then let the timer T1 return to 0, wherein n is a counting index, 1≤n≤m, and α% is a preset percentage;
[0041] If the timing duration of the timer T1 exceeds the operation personnel's preset duration threshold t_yu1, it is evaluated that there is a water outlet target in the detection area Da;
[0042] On the contrary, it is evaluated that there is no water outlet target in the detection area Da.
[0043] As a further scheme of the present application, in step two, the specific way of executing the opening operation and the closing operation on the faucet based on the evaluation result is:
[0044] If there is a water outlet target in the detection area Da, execute the opening operation on the faucet, otherwise, execute the closing operation on the faucet;
[0045] Obtain all three-dimensional point cloud data subsets with a change rate greater than a% in the sequence P1, P2,..., Pm of three-dimensional point cloud data subsets after the faucet is operated to open, and mark the corresponding detection sub-area as an initial detection sub-area.
[0046] As a further scheme of the present application, in step three, the specific way of calibrating the tolerance region associated with the water target is:
[0047] Obtain all initial detection sub-areas in the detection region Da after the faucet is operated to open.
[0048] And fit all initial detection sub-areas with the smallest cylinder to obtain the tolerance region Fa associated with the water target.
[0049] As a further scheme of the present application, in step three, the specific way of calibrating the tolerance region associated with the water target in real time and performing comprehensive evaluation to determine the gesture command is:
[0050] Calibrate the tolerance region associated with the water target in real time according to the time;
[0051] Obtain the evaluation period T_pd preset by the operator, determine the total number of times in the evaluation period T_pd, denoted as o;
[0052] Sort the tolerance regions associated with the water target in the evaluation period T_pd according to the time sequence, and the sorted result is denoted as the tolerance region sequence Fa1, Fa2,..., Fao;
[0053] Obtain the height of the center point of all tolerance regions in the tolerance region sequence Fa1, Fa2,..., Fao in the detection region Da according to the time sequence, and obtain the tolerance region height sequence H1, H2,..., Ho;
[0054] Calculate the difference sequence ΔH1, ΔH2,..., ΔHo-1 of adjacent height values in the tolerance region height sequence H1, H2,..., Ho, where ΔH1=H2-H1, and the rest are the same;
[0055] Obtain the height change threshold ΔH_yu and the continuous change number threshold C_yu preset by the operator;
[0056] Initialize the gesture command to be empty;
[0057] Traverse the difference sequence ΔH1, ΔH2,..., ΔHo-1, if there are C_yu consecutive difference values greater than ΔH_yu, determine the gesture command as gesture up;
[0058] If there are C_yu consecutive difference values less than -ΔH_yu, determine the gesture command as gesture down;
[0059] Conversely, keep the gesture command empty;
[0060] If the gesture command changes, turn off the gesture command recognition function, and make the gesture command prompt light on the faucet red, reminding the user that the gesture command is in the command effective transition period, and the command effective transition period is preset by the operator;
[0061] After the command effective transition period ends, turn on the gesture command recognition function, and make the gesture command prompt light on the faucet green, reminding the user that the command effective transition period ends.
[0062] As a further scheme of the present application, the specific way of regulating the faucet in step three is:
[0063] If the gesture command is a gesture up, the water flow of the faucet is increased by β%;
[0064] If the gesture command is a gesture down, the water flow of the faucet is decreased by β%;
[0065] If the gesture command is empty, the water flow of the faucet remains unchanged, wherein β% is a percentage preset by the operator.
[0066] The beneficial effects of the present application are:
[0067] (1) The present application realizes efficient and intelligent non-contact water control through the synergistic effect of the human body sensing device and the infrared light curtain, significantly improving the hygiene level and use experience; its advantages lie in that through the delay activation mechanism and three-dimensional point cloud mapping technology, false triggering is effectively avoided, energy consumption is reduced, and at the same time, combined with tolerance area dynamic calibration and gesture recognition, it can flexibly adapt to different user actions and container position changes, ensuring water accuracy and stability, with water saving and humanized features, suitable for various washing scenes;
[0068] (2) The present application introduces innovative area division and dynamic evaluation mechanism, including using three-dimensional point cloud data to construct a washing pool water space envelope, a water outlet area and a cylindrical detection area, realizing accurate mathematical modeling of the target space, providing a basis for accurate recognition, secondly, by layering the detection area and analyzing the change rate of point cloud data of each sub-layer in real time, the system can extremely sensitively detect the entry of the hand and determine it as the water outlet target, effectively avoiding false triggering caused by other irrelevant movements or environmental light, improving reliability, in addition, after water outlet, the tolerance area is dynamically calibrated, and the position change of the user's gesture is automatically marked, providing data basis for subsequent gesture recognition;
[0069] (3) The application accurately identifies the upward or downward gesture command of the user by dynamically tracking the height change sequence of the tolerance region center point and calculating the difference value, realizes non-contact flow regulation, and the core advantage is that through the double judgment of the preset height change threshold and the continuous change number threshold, unintended small movements are effectively filtered, the accuracy and anti-interference ability of gesture recognition are ensured, and misoperation is avoided; at the same time, after the gesture command takes effect, an explicit visual transition prompt is set, and the recognition function is temporarily closed, which gives the user clear feedback, at the same time, the user knows the faucet state and restores the gesture preparation position, also ensures the stability and safety of command execution, prevents continuous mis-triggering, finally realizes intelligent adjustment of water flow according to gesture command, realizes the intelligentization of the faucet. BRIEF DESCRIPTION OF DRAWINGS
[0070] The application will be further described below with reference to the drawings.
[0071] Figure 1 is a flowchart of the method described in the application;
[0072] Figure 2 is a flowchart of the method described in Example 2 of the application;
[0073] Figure 3 is a flowchart of the method described in Example 3 of the application. DETAILED DESCRIPTION
[0074] The technical solutions in the embodiments of the application will be clearly and completely described below with reference to the drawings in the embodiments of the application. Obviously, the described embodiments are only part of the embodiments of the application, not all the embodiments. Based on the embodiments in the application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the application.
[0075] Example 1
[0076] A smart faucet gesture sensing water method, as shown in Figure 1 , the method comprises the following:
[0077] The method: a smart faucet gesture sensing water method realizes more accurate control, lower mis-triggering rate and more rich interactive function through multi-sensor fusion and dynamic environment perception, which surpasses the traditional "wave hand to open" infrared induction faucet, and the specific implementation is as follows:
[0078] First, the pre-defined human sensing device is used to detect the sink area in real time. If it is determined that there is a human target in the faucet area, the pre-constructed infrared curtain is activated to scan the faucet and the area below it, and a three-dimensional point cloud coordinate map is plotted. If it is determined that there is no human target in the faucet area, the human sensing device continues to monitor the sink area. Specifically, first, the sink area is preliminarily detected to detect whether a user is approaching or entering the sink area. If not, subsequent operations are not required.
[0079] The determination of the sink area needs to be determined by the operator in combination with the sensing range of the pre-defined human sensing device. In addition to the function of sensing whether there is a heat source moving or approaching, the pre-defined human sensing device also includes a timer T for timing function.
[0080] It needs to be explained that if the human sensing device detects that there is no human target in the sink area, the human sensing device continues to monitor. If at any time t, the human sensing device detects that there is a human target in the sink area, the timer T starts timing from time t. If the duration of the timer T exceeds the time threshold t_yu preset by the operator, the human sensing device sends a human target signal and transmits it to the infrared curtain to activate the infrared curtain.
[0081] If the duration of the timer T does not exceed the time threshold t_yu preset by the operator, it means that the user may pass through the sink area. The human sensing device continues to monitor and resets the timer T, that is, resets the timer T to prevent cumulative false triggering.
[0082] If the human sensing device detects that there is no human target in the sink area at any time after the timer T starts timing from time t, the timer T is reset to 0 and a human target signal is sent and transmitted to the infrared curtain to turn off the infrared curtain.
[0083] It needs to be noted here that once the human sensing device detects that there is no human target in the sink area, a closing operation of the faucet is triggered immediately, regardless of the state of the faucet.
[0084] Then, when the infrared curtain receives the human target signal transmitted by the human sensing device, the infrared curtain function integrated with the sink is activated. The mapping range of the infrared curtain includes (but is not limited to) the faucet and the area below it.
[0085] The infrared curtain is then used to scan the faucet and the area below it and the area above the sink, and a three-dimensional point cloud coordinate map associated with the faucet and the area below it and the area above the sink is plotted, denoted as A.
[0086] The three-dimensional point cloud coordinate graph A includes the faucet and the area below the faucet and the area above the sink.
[0087] After the three-dimensional point cloud coordinate graph associated with the faucet and the area below the faucet and the area above the sink is determined, the three-dimensional point cloud coordinate graph needs to be regionally divided first to determine the water area and the detection area. The water area is the basis for evaluating the detection area, and subsequent operations will focus on processing the detection area.
[0088] After the detection area is determined, whether there is a water outlet target in the detection area is evaluated in real time in combination with the infrared light curtain (because gesture command recognition will be performed subsequently, so the water outlet target can be understood as the user's hand here), and based on the evaluation result of the water outlet target in the detection area, the faucet is executed to open and close;
[0089] If there is no water outlet target in the detection area, the faucet is executed to close, and if there is a water outlet target in the detection area, the faucet is executed to open, and a tolerance area associated with the water outlet target in the detection area is calibrated;
[0090] If the water outlet target deviates from the tolerance area during the water outlet process of the faucet, the tolerance area currently associated with the water outlet target is recalibrated (or the tolerance area of the water outlet target is calibrated in real time), all tolerance areas associated with the water outlet target in the water outlet process of the faucet are comprehensively evaluated, and a gesture command is determined, and the faucet is controlled according to the determined gesture command.
[0091] Embodiment 2
[0092] This embodiment continues to disclose a method for executing the opening and closing operations of the faucet on the basis of embodiment 1, as shown in Figure 2 , which specifically comprises the following:
[0093] First, the three-dimensional point cloud coordinate graph A is determined based on the content described in embodiment 1, then the plane where the faucet outlet is located is determined from the three-dimensional point cloud coordinate graph A, and the subsequent detection range is also the area below the plane where the faucet outlet is located. Because of the action of gravity, water will not flow upwards but downwards, so only the area below the plane where the faucet outlet is located needs to be detected.
[0094] Then, the plane where the faucet outlet is located is calibrated in the three-dimensional point cloud coordinate graph A, that is, it is marked, and the calibrated plane is denoted as plane PL1.
[0095] Then, the water storage area of the sink, i.e. the area of the sink basin, is obtained, and the area for water storage is marked as area Q1 in the three-dimensional point cloud coordinate graph A, and the area is marked as area Q1. When the sink water storage area is full of water, the entire water body part is the area Q1.
[0096] Then, the opening associated with the highest level of area Q1 in the three-dimensional point cloud coordinate graph A is obtained, which can be understood as the water surface area after the sink water storage area is full of water. The determined opening is vertically closed to the plane PL1 as the bottom surface to form a closed solid Q2.
[0097] If the opening is circular, the closed solid Q2 is a cylinder. Similarly, if the opening is circular, the closed solid Q2 is a cuboid or a square.
[0098] The bottom surface of the closed solid Q2 is attached to the opening of the area Q1, the top surface of the closed solid Q2 is coincident with the plane PL1, and the side wall of the closed solid Q2 is perpendicular to the plane PL1 and the opening of the area Q1.
[0099] Then, the determined area Q1 and the closed solid Q2 are obtained, combined, and the combined area is recorded as the sink water space envelope Q associated with the sink.
[0100] The size of the faucet outlet is obtained. In this scheme, in order to avoid the influence of the outlet of the special faucet on the subsequent operation, the size of the outlet of the faucet is uniformly regarded as the cross section of the water outlet column of the faucet.
[0101] The size of the water outlet of the faucet is taken as the top surface vertically downward to form a closed solid Q3, and the closed solid Q3 is the water outlet area Wa associated with the sink, and the water outlet area Wa represents the direct action range of the water flow.
[0102] If the water outlet of the faucet is circular, the water outlet area Wa is a cylinder, and the rest is the same. The closed solid Q3 is in the sink water space envelope Q.
[0103] The center line of the water outlet area Wa is obtained, and a cylinder Q4 is obtained with the center line as the axis and the radius R preset by the operator. The upper and lower surfaces of the cylinder Q4 are coincident with the highest plane and the lowest plane of the sink water space envelope Q, respectively, to ensure that all vertical spaces that may be affected by the water flow are covered, wherein R is a value preset by the operator.
[0104] The above-mentioned operation finally determines the cylinder Q4, which is the detection area Da associated with the sink, and the cylinder Q4 is in the sink water space envelope Q.
[0105] After the detection area Da is determined, the three-dimensional point cloud data set associated with the detection area Da is determined from the three-dimensional point cloud coordinate map A in real time, and is recorded as P.
[0106] Without user water, the three-dimensional point cloud data set P is a blank area, and all point cloud data in the three-dimensional point cloud data set P can be set to the initial coordinates preset by the operator.
[0107] Next, the detection area Da is layered in order from low to high, and finally a total of m layers are divided, where m is a value preset by the operator, and each layer of the detection area Da obtained after layering is a detection sub-area.
[0108] At this point, m detection sub-areas are obtained, and the three-dimensional point cloud data set P is divided according to the m detection sub-areas, and finally the three-dimensional point cloud data subsets associated with the m detection sub-areas can be obtained, and the m three-dimensional point cloud data subsets are recorded in order from low to high according to the height of the detection sub-area, and are expressed as: P1, P2,..., Pm.
[0109] If in the determined three-dimensional point cloud data subset sequence P1, P2,..., Pm, there is at least any one three-dimensional point cloud data subset Pn in which the change rate of the three-dimensional point cloud data is greater than α% (indicating that there is another object in the detection sub-area corresponding to this three-dimensional point cloud data subset Pn, so that the three-dimensional point cloud data in the three-dimensional point cloud data subset Pn changes), the time when the change rate is greater than α% is recorded, and this time is marked as time t1.
[0110] Then, after the time t1 is determined, at time t1, the pre-constructed timer T1 (different from the timer T) starts timing from 0, and if during the timing of the timer T1, there is no any one three-dimensional point cloud data subset Pn in which the change rate of the three-dimensional point cloud data is greater than α% (that is, the change rate of the three-dimensional point cloud data of all three-dimensional point cloud data subsets is less than or equal to α%, indicating that the other object has left the detection sub-area), the timer T1 is reset to 0, where n is a count index, and the value range is 1 to m, and α% is a preset percentage.
[0111] When the timer T1 is continuously timing and has not been interrupted, and the timing duration exceeds the time threshold t_yu1 preset by the operator, it is considered that there is a water outlet target in the detection area Da, and the faucet is operated to open and water at the initial water outlet flow rate preset by the operator.
[0112] If the time duration has not exceeded the time threshold t yu1 preset by the operator, it is considered that there is no water outlet target in the detection area Da, and the faucet is executed to close operation (whether the faucet is in any state, execute a closing operation once).
[0113] Then, at the first time when the faucet executes the opening operation, determine all three-dimensional point cloud data subsets with a change rate greater than a% in the three-dimensional point cloud data subset sequence P1, P2,..., Pm, and mark the corresponding detection sub-area as the initial detection sub-area.
[0114] The embodiment realizes the automatic water outlet and water closing control of the faucet through space modeling and dynamic monitoring. First, the faucet outlet plane and the sink water storage area are determined through the three-dimensional point cloud coordinate graph, and a closed three-dimensional detection area is constructed to accurately limit the water flow action and monitoring range. Then, the detection area is detected by using the real-time three-dimensional point cloud data set, and whether there is object activity in the area is judged by the change rate threshold. If the specific sub-area continuously changes and meets the time threshold, the faucet is triggered to open, otherwise the closing operation is executed. The method described in the embodiment optimizes the use experience of the faucet, and improves the water resource utilization rate and efficient faucet automation control.
[0115] Embodiment 3
[0116] The embodiment based on embodiment 2 further discloses a method for regulating and controlling a faucet, as shown in Figure 3 , which specifically comprises the following steps:
[0117] Based on the content described in embodiment 2, all initial detection sub-areas in the detection area Da after the faucet executes the opening operation are acquired in real time according to the time sequence.
[0118] The initial detection sub-area is generally a continuous detection sub-area. For example, when a hand enters the detection sub-area, it will generally continuously span several detection sub-areas.
[0119] Then, all initial detection sub-areas are fitted with the smallest cylinder, and the area obtained after fitting is marked as the tolerance area associated with the water outlet target, and is marked as Fa.
[0120] As described in embodiment 2, the tolerance area Fa will change continuously with the change of the user's hand. For example, when the user wants to change the water flow by gesture, the tolerance area will change. Based on this feature, the actual gesture command of the user can be determined, which is specifically as follows:
[0121] According to the time sequence, the tolerance area associated with the water outlet target is marked in real time, and each time corresponds to a tolerance area.
[0122] Then, the evaluation period T_pd preset by the operator is obtained, and the total number of time points in the evaluation period T_pd is recorded as o. It should be noted that the length of the evaluation period T_pd is not determined by the operator, and the length of one evaluation period T_pd is the duration of the whole process from water outlet to water closing. Therefore, the total number of time points o is not a fixed value. Here, the evaluation period T_pd is written as the operator preset only to determine the name, which is convenient for subsequent writing.
[0123] Then, the tolerance region associated with the water outlet target in any one evaluation period T_pd is continuously obtained, and all the obtained tolerance regions are sorted in chronological order (that is, in the order of time). The sorted result is recorded as a tolerance region sequence Fa1, Fa2,..., Fao.
[0124] Then, the height of the center point of all tolerance regions in the tolerance region sequence Fa1, Fa2,..., Fao in the detection region Da is obtained in chronological order, and the tolerance region height sequence H1, H2,..., Ho is obtained.
[0125] Then, the difference between adjacent height values in the tolerance region height sequence H1, H2,..., Ho is calculated to obtain a difference sequence, which is represented as ΔH1, ΔH2,..., ΔHo-1. For example, ΔH1 difference represents the height difference between the tolerance region height H1 and the tolerance region height H2 (H2-H1=ΔH1), ΔH2 difference represents the height difference between the tolerance region height H2 and the tolerance region height H3 (H3-H2=ΔH2), and so on.
[0126] Then, the height change threshold ΔH_yu and the continuous change number threshold C_yu preset by the operator in combination with the actual situation are obtained. The values of the height change threshold ΔH_yu and the continuous change number threshold C_yu are proportional to the difficulty of triggering the gesture command. The greater the values of the height change threshold ΔH_yu and the continuous change number threshold C_yu, the more difficult it is to trigger the gesture command. The smaller the values of the height change threshold ΔH_yu and the continuous change number threshold C_yu, the easier it is to trigger the gesture command, and it is also easier to trigger by mistake.
[0127] Initialize a gesture command and set it to empty.
[0128] Then, the difference sequence ΔH1, ΔH2,..., ΔHo-1 is traversed, and all the differences in the traversed difference sequence ΔH1, ΔH2,..., ΔHo-1 are determined in turn. If, in the process of determination, the difference values of continuous C_yu differences are all greater than ΔH_yu, it is determined that the gesture command is gesture up.
[0129] If there are C_yu continuous differences, and the difference values are all less than -ΔH_yu, it is determined that the gesture command is gesture down;
[0130] If none of the above conditions are met, the gesture command is kept as null;
[0131] Once the gesture command has changed (e.g., from null gesture command to gesture down), the gesture command is acquired, and the gesture command recognition function is immediately closed;
[0132] At the same time, the gesture command prompt light on the faucet is turned red, indicating that the faucet has received the gesture command and enters a command effective transition period, during which the user needs to manually restore the gesture position (to the normal gesture position), and the length of the command effective transition period is preset by the operator according to the actual situation.
[0133] When the command effective transition period ends, the gesture command recognition function will be re-enabled, and the gesture command prompt light on the faucet will turn green, reminding the user that the command effective transition period has ended and that a new gesture command can be received.
[0134] If the gesture command is gesture up, the current water flow of the faucet is increased by β%; if the gesture command is gesture down, the current water flow of the faucet is decreased by β%; if the gesture command is null, the current water flow of the faucet remains unchanged, where β% is a percentage preset by the operator.
[0135] The embodiment monitors the change of the user's gesture in the detection area in real time, uses difference calculation to determine the gesture direction, and then adjusts the water flow of the faucet, improving the convenience of using the faucet. The feedback mechanism such as the prompt light and the transition period design optimizes the user experience, effectively reduces the user's misoperation and process misjudgment, and embodies the combination of intelligence and humanization.
[0136] Some of the data in the formulas described above are dimensionless numerical calculations, and the contents not described in detail in the specification all belong to the existing technology known to those skilled in the art.
[0137] The above content is only an example and description of the present application, and those skilled in the art can make various modifications or supplements or use similar ways to replace the described specific embodiments, as long as they do not deviate from the scope of the invention or exceed the scope defined by the present claims.
[0138] It should be stated that all user data collected in this application is collected with the consent and authorization of the user. The use of user data is legal and compliant, and the use and processing of user data comply with relevant laws, regulations and standards in the relevant region.
Claims
1. A gesture sensing water outlet method of a smart faucet, characterized in that, The method comprises: Step one, real-time detection of the sink area by using a pre-defined human sensing device, if it is determined that there is a human target in the faucet area, a pre-constructed infrared light curtain is activated to scan the faucet and the area below it, and a three-dimensional point cloud coordinate graph A is mapped; If it is determined that there is no human target in the faucet area, the human sensing device continues to monitor the sink area; Step two, based on the determined three-dimensional point cloud coordinate graph A, the area is divided to determine the water area and the detection area, and the infrared light curtain is used to evaluate the detection area Da in real time, and the evaluation result is used to determine the opening and closing modes of the faucet: Obtain the detection area Da; Real-time determination of the three-dimensional point cloud data set associated with the detection area Da from the three-dimensional point cloud coordinate graph A, denoted as P; Layering the detection area Da from bottom to top, a total of m layers, wherein m is a pre-set value, and each layer is a detection sub-area; Divide the three-dimensional point cloud data set P according to the detection sub-area to obtain m three-dimensional point cloud data subsets associated with the m detection sub-areas, denoted as three-dimensional point cloud data subset sequence P1, P2,..., Pm from bottom to top; If there is a water outlet target in the detection area Da, the faucet is opened, otherwise the faucet is closed; Obtain all three-dimensional point cloud data subsets with a change rate greater than a% in the three-dimensional point cloud data subset sequence P1, P2,..., Pm after the faucet is opened, and mark the corresponding detection sub-area as the initial detection sub-area, wherein a% is a pre-set percentage; Step three, real-time calibration of the tolerance area associated with the water outlet target, comprehensive evaluation, determination of the gesture command, and specific control of the faucet: Obtain all initial detection sub-areas in the detection area Da after the faucet is opened; Fit all initial detection sub-areas with the smallest cylinder to obtain the tolerance area Fa associated with the water outlet target; Real-time calibration of the tolerance area associated with the water outlet target at all times; Determine the total number of times within the evaluation period T_pd, denoted as o; Sort the tolerance areas associated with the water outlet target within the evaluation period T_pd in time sequence, and the sorted result is denoted as tolerance area sequence Fa1, Fa2,..., Fao; Obtain the height of the center point of all tolerance areas in the tolerance area sequence Fa1, Fa2,..., Fao in the detection area Da in time sequence to obtain the tolerance area height sequence H1, H2,..., Ho; Calculate the difference sequence ΔH1, ΔH2,..., ΔHo-1 of adjacent height values in the tolerance area height sequence H1, H2,..., Ho, wherein ΔH1=H2-H1, and the rest are the same; Obtain the height change threshold ΔH_yu and the continuous change number threshold C_yu preset by the operator; Initialize the gesture command to be empty; Traverse the difference sequence ΔH1, ΔH2,..., ΔHo-1, if there are C_yu consecutive difference values greater than ΔH_yu, determine the gesture command to be upward. If there are C_yu continuous differential values less than -ΔH_yu, it is determined that the gesture command is gesture down, otherwise, the gesture command is empty; If the gesture command changes, the gesture command recognition function is closed, and the gesture command prompt light on the faucet is red, reminding the user that the gesture command is in the command effective transition period, which is preset by the operator; After the command effective transition period ends, the gesture command recognition function is turned on, and the gesture command prompt light on the faucet turns green, reminding the user that the command effective transition period ends.
2. The method of claim 1, wherein, In step one, the sink area is determined by the operator in combination with the sensing range of the human body sensing device; The human body sensing device includes a timer T; If there is no human body target in the sink area, the human body sensing device continues to monitor; If there is a human body target in the sink area at any time t, the timer T starts timing from time t; If the duration of the timer T exceeds the time threshold t_yu preset by the operator, a human body target signal is sent to the infrared screen; If the duration of the timer T does not exceed the time threshold t_yu, the human body sensing device continues to monitor, and the timer T is reset to 0; If the human body sensing device detects that there is no human body target in the sink area at any time after the timer T starts timing from time t, the timer T is reset to 0, and a human body target signal is sent to the infrared screen.
3. The method of claim 1, wherein, In step one, the pre-constructed infrared screen is activated to scan the faucet and the area below it, and the specific way to measure the three-dimensional point cloud coordinate graph is: After the infrared screen receives the human body target signal, the infrared screen function is activated, and the measurement range of the infrared screen includes the faucet and the area below it, as well as the area above the sink; The infrared screen is used to scan the faucet and the area below it and the area above the sink to measure the three-dimensional point cloud coordinate graph A.
4. The method of claim 3, wherein, In step two, based on the determined three-dimensional point cloud coordinate graph, the specific way to divide the area and determine the water area and the detection area is: Get the three-dimensional point cloud coordinate graph A; Get the plane where the faucet outlet is located, and mark it in the three-dimensional point cloud coordinate graph A as plane PL1; Get the water storage area of the sink, and mark it in the three-dimensional point cloud coordinate graph A as area Q1; Get the opening associated with the highest horizontal plane of area Q1 in the three-dimensional point cloud coordinate graph A, and use this opening as the bottom surface to make a closed solid Q2 perpendicular to plane PL1; The bottom surface of closed solid Q2 is attached to the opening of area Q1, the top surface is coincident with plane PL1, and the side wall is perpendicular to plane PL1 and the opening of area Q1; Combine area Q1 and closed solid Q2 to get the sink water space envelope Q associated with the sink; Get the size of the faucet outlet, and make a closed solid Q3 with the size of the outlet as the top surface vertically downward, which is the water area associated with the sink, denoted as Wa, and closed solid Q3∈sink water space envelope Q; Take the center line of the water area Wa as the axis and take the preset radius R to make a cylindrical body Q4, and the upper and lower surfaces of cylindrical body Q4 are coincident with the highest and lowest planes of sink water space envelope Q, respectively; The cylinder Q4 is a detection area associated with the washbasin, denoted as Da, and the cylinder Q4 ∈ washbasin water space envelope Q.
5. The method of claim 4, wherein, In the second step, the specific way of real-time evaluation of the detection area is: If there is at least any one of the three-dimensional point cloud data subsets Pn in the three-dimensional point cloud data subset sequence P1, P2,..., Pm, the change rate of the three-dimensional point cloud data in the three-dimensional point cloud data subset Pn is greater than α%, the time when the change rate is greater than α% is recorded, and the time is marked as t1; And at time t1, the pre-constructed timer T1 starts timing from 0, if there is at least any one of the three-dimensional point cloud data subsets Pn in the three-dimensional point cloud data subset sequence P1, P2,..., Pm, the change rate of the three-dimensional point cloud data in the three-dimensional point cloud data subset Pn is greater than α%, the timer T1 is reset to 0, wherein n is the count index, 1≤n≤m; If the timing length of the timer T1 exceeds the time threshold t_yu1 preset by the operator, it is evaluated that there is a water outlet target in the detection area Da; On the contrary, it is evaluated that there is no water outlet target in the detection area Da.
6. The method of claim 5, wherein, In the third step, the specific way of controlling the faucet is: If the gesture command is gesture up, the water flow of the faucet is adjusted up by β%; If the gesture command is gesture down, the water flow of the faucet is adjusted down by β%; If the gesture command is empty, the water flow of the faucet remains unchanged, wherein β% is a percentage preset by the operator.
Citation Information
Patent Citations
A recognition method of a tap control gesture
CN105757311B
Multifunctional induction tap
CN108916464A
Tap induction system of switching is realized by solenoid valve
CN208295245U