Touch threshold determination method and device, electronic equipment and storage medium

By dynamically adjusting the touch threshold in environments such as range hoods, and according to the relative distance parameters between the user and the device, the problem of accidentally touching or insensitive touch on the touch panel is solved, and a more accurate touch response is achieved.

CN120295512AInactive Publication Date: 2025-07-11FOSHAN SHUNDE MIDEA WASHING APPLIANCES MANUFACTURING CO LTD

Patent Information

Application Number
CN202510793820.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-13
Publication Date
2025-07-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, setting of fixed touch thresholds of the touch panel leads to problems such as error touch or insensitive, especially in environments such as range hoods, where attachments are prone to incorrect responses, reducing the user experience of electronic devices.

Method used

By obtaining user detection information of the environment in which the electronic device is located, using the distance sensor to obtain the relative distance parameters between the user and the device, and dynamically adjusting the touch threshold of the touch panel to ensure that the electronic device only responds to the user's touch operations.

Benefits of technology

Improve the accuracy of electronic devices in response to touch operations, avoid mistriggering due to attachments, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120295512A_ABST
    Figure CN120295512A_ABST
Patent Text Reader

Abstract

The invention provides a touch threshold determination method and device, electronic equipment and a storage medium, the method is applied to the field of household appliances, the electronic equipment comprises a touch panel and a distance sensor, and the method comprises the steps of obtaining user detection information of an environment where the electronic equipment is located, and if it is determined that a user exists in the environment where the electronic equipment is located based on the user detection information, determining that the electronic equipment is located; if yes, a relative distance parameter between the electronic equipment and the user is obtained through the distance sensor, a touch threshold value of the touch panel is determined based on the relative distance parameter, and the touch threshold value is a threshold value for judging whether the electronic equipment responds to a touch signal triggered based on the touch panel or not. According to the method, the touch threshold value of the touch panel can be dynamically adjusted according to the user information of the environment where the electronic equipment is located, and the accuracy of the electronic equipment in responding to the touch operation is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of household appliances, and more particularly, to a method, device, electronic device, and storage medium for determining a touch threshold in the field of household appliances. Background Art

[0002] With the development of information technology, various electronic products have gradually become indispensable collaboration tools around people. As the main input interface of an electronic device, a touch panel provides an intuitive and convenient operation method, enabling users to interact with the device through simple touch, swipe, or multi-touch operations, improving the user experience.

[0003] In the related art, when it is detected that the touch value of the user touching the touch panel is greater than a preset threshold, the electronic device is controlled to respond to the touch signal. However, this fixed setting method has problems of false touch or insensitivity, reducing the use experience of the electronic device. Summary of the Invention

[0004] The present application provides a method, device, electronic device, and storage medium for determining a touch threshold. The method can dynamically adjust the touch threshold of the touch panel according to the user information of the environment where the electronic device is located, improving the accuracy of the electronic device's response to touch operations.

[0005] In a first aspect, a method for determining a touch threshold is provided, which is applied to an electronic device. The electronic device includes a touch panel and a distance sensor. The method includes: obtaining user detection information of the environment where the electronic device is located; if it is determined based on the user detection information that there is a user in the environment where the electronic device is located, obtaining a relative distance parameter between the electronic device and the user through the distance sensor; and determining the touch threshold of the touch panel based on the relative distance parameter. The touch threshold is a threshold for determining whether the electronic device responds to a touch signal triggered based on the touch panel.

[0006] In a second aspect, a device for determining a touch threshold is provided, which is applied to an electronic device. The electronic device includes a touch panel and a distance sensor. The device includes: an obtaining unit for obtaining user detection information of the environment where the electronic device is located; a first determining unit for, if it is determined based on the user detection information that there is a user in the environment where the electronic device is located, obtaining a relative distance parameter between the electronic device and the user through the distance sensor; and a second determining unit for determining the touch threshold of the touch panel based on the relative distance parameter. The touch threshold is a threshold for determining whether the electronic device responds to a touch signal triggered by the user based on the touch panel.

[0007] In a third aspect, an electronic device is provided, including: a memory for storing executable program code; and a processor for calling and running the executable program code from the memory, so that the electronic device executes the method in the first aspect or any possible implementation manner of the first aspect.

[0008] In a fourth aspect, a computer program product is provided, which includes computer program code that, when running on a computer, causes the computer to execute the method in the first aspect or any possible implementation manner of the first aspect as described above.

[0009] In a fifth aspect, a computer-readable storage medium is provided, which stores computer program code that, when running on a computer, causes the computer to execute the method in the first aspect or any possible implementation manner of the first aspect as described above.

[0010] In an embodiment of the present application, by obtaining user detection information of the environment where the electronic device is located, and when it is determined based on the user detection information that there is a user in the environment where the electronic device is located, a relative distance parameter between the electronic device and the user is obtained through a distance sensor, and a touch threshold of the touch panel is determined based on the relative distance parameter. The touch threshold is used to determine whether the electronic device responds to a touch signal triggered based on the touch panel. When there is a user in the environment where the electronic device is located, the touch threshold of the touch panel is determined by the relative distance between the user and the electronic device, thereby realizing dynamic adjustment of the touch threshold of the touch panel, ensuring that the operation that the electronic device responds to is the user's intention, and improving the accuracy of the electronic device's response to touch operations. Description of the Drawings

[0011] Figure 1 is a schematic flowchart of a method for determining a touch threshold provided by an embodiment of the present application; Figure 2 is a schematic flowchart of a method for determining a touch threshold provided by an embodiment of the present application; Figure 3 is a schematic flowchart of a method for determining a touch threshold provided by an embodiment of the present application; Figure 4 is a schematic structural diagram of a device for determining a touch threshold provided by an embodiment of the present application; Figure 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed Embodiments

[0012] The technical solutions in the present application will be clearly and elaborately described below in conjunction with the accompanying drawings. Among them, in the description of the embodiments of the present application, unless otherwise specified, " / " means "or". For example, A / B may mean A or B. The "and / or" in the text is merely a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B may mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present application, "a plurality of" means two or more than two.

[0013] Hereinafter, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as implying or suggesting relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features.

[0014] The touch panel is an important interaction interface of an electronic device. By sensing the touch operation of the user, it realizes the control and operation of various functions of the electronic device. The touch panel can not only replace traditional buttons and switches, making the operation more intuitive and convenient, but also provide more flexible operation methods, such as sliding and zooming, and plays a crucial role in household devices.

[0015] When using an electronic device with a touch panel, attachments such as water droplets and oil droplets may adhere to the surface of the touch panel. When the capacitance of the touch panel changes due to these attachments, the electronic device may mistakenly think that the current touch signal is triggered by the user, resulting in the problem of incorrect response of the electronic device.

[0016] In the embodiments of the present application, the electronic device is described by taking an oil fume extractor as an example. The oil fume extractor is installed above the kitchen stove and quickly extracts the waste generated by the stove combustion and the harmful oil fume generated during the cooking process and discharges it outdoors. When using a touch switch to control the oil fume extractor, it usually controls the oil fume extractor to respond to the touch signal when it detects that the touch pressure on each function key of the oil fume extractor is greater than the touch threshold. This fixed response method cannot adapt to the specific use scenario of the oil fume extractor. For example, if a relatively large touch threshold is set, a relatively large touch pressure is required to trigger the oil fume extractor to respond to the touch signal, resulting in the problem of insensitivity; if a relatively small touch threshold is set, attachments such as water droplets or oil droplets adhering to the oil fume extractor are likely to cause the capacitance of the touch panel to change, resulting in the problem of accidental touch of the oil fume extractor and reducing the use experience of the oil fume extractor.

[0017] Based on this, the present application proposes a method for determining a touch threshold. The user detection information of the environment where the electronic device is located is obtained. If it is determined based on the user detection information that there is a user in the environment where the electronic device is located, the relative distance parameter between the electronic device and the user is obtained through a distance sensor, and the touch threshold of the touch panel is determined based on the relative distance parameter. The touch threshold is the threshold for determining whether the electronic device responds to a touch signal triggered based on the touch panel. When there is a user in the environment where the electronic device is located, the touch threshold of the touch panel is determined by the relative distance between the user and the electronic device, thereby realizing dynamic adjustment of the touch threshold of the touch panel, ensuring that the electronic device responds to the operation of the user's intention, and improving the accuracy of the electronic device's response to touch operations.

[0018] Based on this, the following will be combined with Figures 1 - 3 to introduce in detail the method for determining the touch threshold provided in the embodiments of the present application.

[0019] Please refer to Figure 1 , which is a schematic flowchart of a method for determining a touch threshold provided in the embodiments of the present application. As Figure 1 shown, the method of the embodiments of the present application may include the following steps S101-step S103.

[0020] S101, obtain the user detection information of the environment where the electronic device is located; In one embodiment, the electronic device can obtain the user detection information in its environment through various channels to determine whether there is a user in the current environment. The user detection information is the judgment information for determining whether there is a user in the environment where the electronic device is located, and it may include the relative distance information between the electronic device and the user, the picture information of the environment where the electronic device is located, the temperature information of the objects in the environment where the electronic device is located, and other judgment information for determining whether there is a user.

[0021] Optionally, the electronic device can utilize the connection relationship with other electronic products or various sensors to obtain the user detection information of the environment where it is located.

[0022] Exemplarily, when the electronic device obtains user detection information of the surrounding environment through an infrared sensor, it uses infrared technology to detect the temperature information of surrounding objects, takes this temperature information as user detection information, and then analyzes the temperature information to determine whether there is a user in the surrounding environment; when the electronic device obtains user detection information of the surrounding environment through an image sensor (such as a camera), it captures the environmental image information around the surrounding environment through the camera, takes it as user detection information, and then analyzes the face, human body contour or other features in the environmental image information to determine whether there is a user; when the electronic device obtains user detection information of the surrounding environment by using the connection relationship with other electronic products, it can connect with the smart watch worn by the user, takes the connection signal between the smart watch and the electronic device as user detection information, and then determines whether there is a user by determining whether the connection information is received.

[0023] S102, if it is determined that there is a user in the environment where the electronic device is located based on the user detection information, the relative distance parameter between the electronic device and the user is obtained through a distance sensor; Specifically, the electronic device determines whether there is a user in the surrounding environment based on the user detection information, including the following situations: One of the situations is that when the electronic device obtains the temperature information of the surrounding environment as user detection information through an infrared sensor, it analyzes the temperature information to determine whether the temperature information conforms to the human body temperature range. If it conforms, it is determined that there is a user in the surrounding environment; if it does not conform, it is determined that there is no user in the surrounding environment.

[0024] Another situation is that when the electronic device obtains the environmental image information of the surrounding environment as user detection information through an image sensor (such as a camera), it analyzes whether there are any human faces, human body contours or other features in the environmental image information by using a human body detection model pre-trained by a convolutional neural network or an existing human body detection model (such as YOLO (You Only Look Once), SSD (Single Shot MultiboxDetector), Faster R-CNN, etc.). If there are, it is determined that there is a user in the surrounding environment; if not, it is determined that there is no user in the surrounding environment.

[0025] Another situation is that when the electronic device obtains user detection information of the surrounding environment by using the connection relationship with other electronic products, it can determine that there is a user in the surrounding environment when receiving the connection information with other electronic products; when not receiving this connection information, it is determined that there is no user in the surrounding environment.

[0026] Further, when it is determined that there is a user in the environment where the electronic device is located, the electronic device obtains the relative distance parameter between the electronic device and the user through a distance sensor. In the embodiment of the present application, the distance sensor may specifically be an infrared sensor, which is installed below the touch panel of the range hood. When the user approaches the range hood, the relative distance parameter between the user and the range hood can be directly obtained.

[0027] S103. Determine the touch threshold of the touch panel based on the relative distance parameter. The touch threshold is the threshold for determining whether the electronic device responds to a touch signal triggered based on the touch panel.

[0028] In one embodiment, after the electronic device obtains the relative distance parameter between itself and the user, it directly determines the touch threshold of the touch panel corresponding to the relative distance parameter.

[0029] Exemplarily, when it is determined that the relative distance parameter between the user and the range hood is small (for example, less than 100 cm), the range hood believes that the user currently needs to operate the range hood and sets the touch threshold of the touch panel to a small value. At this time, the touch panel will respond to slight contact, ensuring that the user can complete operations such as turning on / off the range hood, adjusting the wind speed, and turning on the light by simply touching the touch panel slightly. When it is determined that the relative distance parameter between the user and the range hood is large (for example, greater than 1 m), the range hood believes that the user currently does not need to operate the range hood and sets the touch threshold of the touch panel to a large value. At this time, the touch panel will not respond to slight contact, avoiding responding to contact with attachments such as oil beads and water droplets attached to the touch panel.

[0030] In the embodiment of the present application, by obtaining the user detection information of the environment where the electronic device is located, and when it is determined based on the user detection information that there is a user in the environment where the electronic device is located, the relative distance parameter between the electronic device and the user is obtained through a distance sensor, and the touch threshold of the touch panel is determined based on the relative distance parameter. The touch threshold is used to determine whether the electronic device responds to a touch signal triggered based on the touch panel. When there is a user in the environment where the electronic device is located, the touch threshold of the touch panel is determined through the relative distance between the user and the electronic device, thereby realizing dynamic adjustment of the touch threshold of the touch panel, ensuring that the electronic device responds to the operation intended by the user, and improving the accuracy of the electronic device's response to touch operations.

[0031] Please refer to Figure 2 which is a schematic flowchart of a method for determining a touch threshold provided by an embodiment of the present application. As Figure 2 shown, the method of the embodiment of the present application may include the following steps S201 - step S206.

[0032] S201. Obtain the user detection information of the environment where the electronic device is located; S202, if it is determined based on the user detection information that there is a user in the environment where the electronic device is located, obtain the relative distance parameter between the electronic device and the user through the distance sensor; Specifically, please refer to the descriptions of steps S101 - S102 in the above-mentioned specification embodiments, which will not be elaborated here.

[0033] S203, if the relative distance parameter is less than or equal to the first distance threshold, determine the touch threshold as the first touch threshold; In one embodiment, when the electronic device determines that the relative distance parameter is less than or equal to the first distance threshold, it determines that the user has a need to operate the electronic device, and then determines the touch threshold as the smaller first touch threshold. The first distance threshold is usually a predetermined value used to determine the distance value at which the electronic device judges whether the user currently has an operation need. If the relative distance parameter between the user and the electronic device is less than or equal to the first distance threshold, it is determined that the user currently has an operation need for the electronic device.

[0034] Optionally, the first touch threshold can be the touch threshold carried by the electronic device itself when it leaves the factory for responding to touch signals.

[0035] S204, if the relative distance parameter is greater than the first distance threshold, determine the touch screen interference coefficient corresponding to the attachment on the touch panel, and determine the second touch threshold of the touch panel based on the touch screen interference coefficient, where the first touch threshold is less than the second touch threshold; In one embodiment, when the electronic device determines that the relative distance parameter is greater than the first distance threshold, it judges that the user does not have a need to operate the electronic device, then obtains the touch screen interference coefficient of the attachment on the current touch panel to the touch panel, and determines the second touch threshold of the touch panel based on the touch screen interference coefficient.

[0036] Among them, the touch screen interference coefficient reflects the degree of interference of the attachment on the touch panel to the touch panel. The higher the degree of interference of the attachment to the touch panel, the higher the touch screen interference coefficient. To avoid the touch panel responding to the attachment, when the touch screen interference coefficient is higher, a second touch threshold larger than the first touch threshold is set. When the touch parameter of the received touch signal is greater than or equal to the second touch threshold, the touch panel responds to the touch signal, avoiding using the relatively small first touch threshold to judge whether the electronic device responds to the touch signal when the user does not have an operation need for the electronic device, and improving the response accuracy of the electronic device.

[0037] It can be understood that for the electronic device installed in the kitchen, water droplets, oil droplets and other attachments are more likely to be generated on the surface of its touch panel. Taking the range hood in the kitchen as an example, the specific reasons for its generation are described below: First, it is affected by air humidity and oil fume concentration. During kitchen cooking, oil fume and steam are often generated simultaneously. Although the suction of the range hood can suck away some oil fume, in the air near the control panel, the mixture of grease and water vapor is likely to form attachments such as water droplets and oil droplets on the surface of the touch panel; Second, it is affected by the electrostatic effect. The touch panels of range hoods usually use glass materials, and static electricity is easily accumulated on the surfaces of these materials. Static electricity will attract tiny oil droplets and water droplets in the air, causing these liquids to adhere to the surface of the touch panel; Third, it is affected by the surface design of the touch panel. The touch panels of many range hoods are designed with smooth surfaces, which are prone to accumulating and forming droplets and are not easily evaporated or removed quickly. That is, grease and water vapor stay on the smooth touch panel for a long time, making it easy to form water droplets or oil droplets on the touch panel; Fourth, it is affected by the environmental temperature in the kitchen. The temperature in the kitchen is relatively high, especially during cooking, when hot air and oil fume form water vapor. When the water vapor encounters the relatively cold touch panel of the range hood, it will condense into water droplets, and the oil content in the oil fume will also adhere to the panel; Fifth, it is affected by the operating parameters of the range hood. The operating parameters of the range hood include the smoking capacity and operating wind speed of the range hood when it is currently operating, as well as the smoking capacity and operating wind speed of the range hood when it was operating in its historical operating records. If in the historical operating records, the smoking capacity and / or the fan speed of the range hood are low and insufficient, when the oil fume concentration is high, it cannot be effectively sucked away and is likely to deposit on the touch panel, forming oil droplets. Even when the range hood is not currently in the working state, when the oil droplets and water droplets adsorbed on the housing of the range hood and above the touch panel slide down to the touch panel, they will still cause mis-touch of the touch panel, resulting in problems such as triggering the start of the range hood. If the range hood is currently in the working state, where the working state is the process of removing oil fume from the kitchen by starting the suction, filtration, and exhaust systems of the range hood. The operation of the fan will generate certain vibrations, which are transmitted to the housing of the range hood, causing the oil droplets and water droplets adsorbed on the housing of the range hood and above the touch panel to slide down to the touch panel more quickly under the influence of the housing vibration, generating touch signals and causing the range hood to respond incorrectly. Thus, when the range hood is in the working state, it not only has to consider whether the current smoking capacity and operating wind speed will generate new attachments, but also has to consider the smoking capacity, fan speed, environmental temperature, and air humidity of the range hood in its historical operating records to determine the current attachments already adhered to the housing and touch panel of the range hood, and then determine the touch screen interference coefficient corresponding to the attachments.

[0038] In the implementation of this application, the attachments on the surface of the range hood (including oil droplets and water droplets) are greatly affected by the air humidity, oil fume concentration, environmental temperature, and operating conditions of the environment where the range hood is located during operation. For example, under the conditions of high humidity and high temperature, the moisture and oil droplets in the oil fume are more likely to adhere to the surface of the range hood, and the oil fume concentration determines the degree of adhesion of the oil fume. The oil fume concentration is related to the smoking ability and operating wind speed of the range hood. Therefore, the oil fume concentration is classified as an operating condition parameter of the range hood. The fan speed and smoking ability of the range hood will also affect the diffusion and settlement of the oil fume, thereby affecting the formation of surface attachments. In contrast, the electrostatic effect and the surface design of the touch panel have less influence on the touch screen interference coefficient corresponding to the attachments. Therefore, in the embodiment of this application, when determining the touch screen interference coefficient corresponding to the attachments of the touch panel, by obtaining the air humidity, environmental temperature, and operating condition parameters of the environment where the range hood is located, and then determining the touch screen interference coefficient corresponding to the attachments of the touch panel of the range hood based on the air humidity, environmental temperature, and operating condition parameters.

[0039] Optionally, in the embodiment of this application, the touch screen interference coefficient corresponding to different air humidities, environmental temperatures, and operating condition parameters can be determined through experimental data to generate a corresponding relationship. Specifically, in the experimental process, the touch screen interference coefficient corresponding to different influencing parameters (air humidity, environmental temperature, and operating condition parameters) can be obtained by the method of controlling variables. Exemplarily, first, keep the air humidity and environmental temperature in the experimental environment unchanged, change the operating condition parameters of the range hood, and then obtain the touch screen interference coefficient under different operating condition parameters; then keep the air humidity and operating condition parameters unchanged, change the environmental temperature, and obtain the touch screen interference coefficient under different environmental temperatures; finally, keep the operating condition parameters and environmental temperature unchanged, change the air humidity, and obtain the touch screen interference coefficient under different environmental humidities. Thus, the touch screen interference coefficient corresponding to different air humidities, environmental temperatures, and operating condition parameters can be obtained. During the experimental process, the touch screen interference coefficient can be converted into a corresponding value by the staff according to the contact area of the attachments on the touch panel of the range hood under different air humidities, environmental temperatures, and operating condition parameters. For example, if the contact area between the attachment and the touch panel is large, it is very likely to trigger the touch panel to respond to it, and it is determined that its interference degree with the touch panel is high, then it can be converted into a touch screen interference coefficient with a larger value, and its touch screen interference coefficient is determined to be 10. It can be understood that during the experimental process, the air humidity, environmental temperature, and operating condition parameters are preferably selected as values close to the actual use process of the range hood to improve the accuracy of the touch screen interference coefficient obtained under different influencing parameters. Then, during the actual operation process, according to the corresponding relationship obtained from the experimental data, the touch screen interference coefficient corresponding to the attachments of the touch panel of the range hood can be obtained based on the air humidity, environmental temperature, and operating condition parameters of the environment where the range hood is located.

[0040] It can be understood that for different types of electronic devices, the operating parameters affecting the generation of adherents may vary. For example, for electronic devices of the range hood type, its operating parameters include oil fume concentration, fan speed, and smoking ability; for electronic devices of the air conditioner type, its operating parameters may include outlet air temperature, outlet air speed, etc.; for electronic devices of the television type, its operating parameters may be the working duration, etc. After determining the operating parameters of the electronic device, the touch screen interference coefficient corresponding to the adherent on the touch panel of the electronic device can be determined based on the air humidity, ambient temperature, and operating parameters, which will not be elaborated here.

[0041] Further, after the electronic device determines the touch screen interference coefficient corresponding to the adherent on the touch panel, it determines the second touch threshold corresponding to the touch screen interference coefficient in the coefficient threshold mapping relationship table. In the embodiments of the present application, the coefficient threshold mapping relationship table can also be established through experimental data. Specifically, with the touch screen interference coefficient unchanged, the touch threshold of the range hood is increased sequentially from small to large, and the minimum touch threshold corresponding to when the range hood no longer responds is determined under this touch screen interference coefficient, and this minimum touch threshold is determined as the second touch threshold corresponding to the touch screen interference coefficient. Further, change the touch screen interference coefficient, and sequentially obtain the second touch thresholds corresponding to different touch screen interference coefficients to construct a coefficient threshold relationship table.

[0042] Optionally, in actual settings, the second touch threshold corresponding to the touch screen interference coefficient obtained through experimental data can be appropriately increased to effectively prevent the range hood from triggering the adherent on the touch panel and improve the response accuracy of the range hood.

[0043] Optionally, in the embodiments of the present application, the coefficient threshold mapping relationship table can be as shown in Table 1 below: Table 1:

[0044] It can be understood that the specific size of the second touch threshold is affected by the design parameters of the touch panel. Exemplarily, in the embodiments of the present application, the first touch threshold T0 can be 0.5 N (Newton), the second touch threshold T1 can be 2 N, the second touch threshold T2 can be 5 N, and the second touch threshold T3 can be 10 N.

[0045] S205, receive a touch signal triggered based on the touch panel; In one embodiment, an electronic device may receive a touch signal in a certain area of a touch panel. The touch signal may be triggered by a user or by an attachment on the touch panel. It can be understood that if the touch signal is triggered by a user, it is considered that the touch signal is used to control the electronic device to perform a certain operation. By setting a relatively small touch threshold based on the detected relative distance parameter between the electronic device and the user, the electronic device can quickly respond to the touch signal and improve the sensitivity of the electronic device to respond to the touch signal. If it is triggered by an attachment, the touch signal is invalid for the electronic device. A relatively large touch threshold is set based on the touch screen interference coefficient corresponding to the attachment on the touch panel, so that the electronic device does not respond to the touch signal and improves the accuracy of the electronic device to respond to the touch signal.

[0046] S206, if the touch parameter of the touch signal is greater than or equal to the touch threshold, control the electronic device to respond to the touch signal.

[0047] In one embodiment, when the electronic device determines that the touch parameter of the received touch signal is greater than or equal to the set touch threshold, it controls the electronic device to respond to the touch signal and perform the operation corresponding to the touch signal.

[0048] Specifically, when the electronic device determines that the touch parameter of the touch signal is greater than or equal to the touch threshold, it determines the function key corresponding to the touch position of the touch signal, and then performs the operation corresponding to the function key. Exemplarily, when the electronic device is a range hood, the operation may be to turn on / off the range hood, increase / decrease the fan speed, increase / decrease the lighting brightness, etc.

[0049] In an embodiment of the present application, when it is determined that there is a user in the environment where the electronic device is located, the relative distance parameter between the user and the electronic device is further obtained. When the relative distance parameter is less than or equal to the first distance threshold, it is determined that the user has a need to control the electronic device through the touch panel, and then the touch threshold is determined as the first touch threshold; when the relative distance parameter is greater than the first distance threshold, it is determined that the user does not have a need to control the electronic device through the touch panel, and the touch threshold is determined as the second touch threshold greater than the first touch threshold. By setting a larger touch threshold, it is possible to avoid the situation where, when the user does not have a need to control the electronic device through the touch panel, due to a smaller touch threshold, the attachment on the touch panel triggers a touch signal and the electronic device incorrectly executes the touch signal, thereby improving the accuracy of the electronic device in executing the touch signal; and by determining the second touch threshold corresponding to the touch screen interference coefficient through the coefficient threshold mapping table, it is possible to set the corresponding second touch threshold according to the interference degree of the attachment on the touch panel, increasing the difficulty for the attachment to trigger the touch panel, and thus improving the accuracy of the electronic device in responding to the touch signal; further, by obtaining the air humidity, ambient temperature of the environment where the electronic device is located, and the operating condition parameters of the electronic device, and then determining the touch screen interference coefficient corresponding to the attachment on the touch panel based on the air humidity, ambient temperature, and operating condition parameters, and determining the touch screen interference coefficient of the attachment on the touch panel according to the actual operating parameters and environmental parameters of the electronic device, it is possible to accurately determine the touch screen interference coefficient of the touch panel; and then when a touch signal based on the touch panel is received, when it is determined that the touch parameter of the touch signal is greater than or equal to the touch threshold, the electronic device is controlled to respond to the touch signal. Since the touch threshold is dynamically set according to the distance parameter between the electronic device and the user, it is possible to avoid the touch signal triggered by the attachment from reaching the touch threshold, improving the accuracy of the electronic device in responding to the touch signal.

[0050] Please refer to Figure 3 , which is a schematic flowchart of a method for determining a touch threshold provided by an embodiment of the present application. As Figure 3 shown, the method of the embodiment of the present application may include the following steps S301 - step S302.

[0051] S301, obtain user detection information of the environment where the electronic device is located; Specifically, please refer to the description of step S101 in the above-mentioned specification embodiment, which will not be elaborated here.

[0052] S302, if it is determined based on the user detection information that there is no user in the environment where the electronic device is located, then determine the touch threshold of the touch panel as the false touch threshold.

[0053] Specifically, the electronic device determining that there is no user in the environment based on the user detection information includes the following situations: In one case, when the electronic device obtains the temperature information of the environment where it is located through an infrared sensor as the user detection information, it analyzes the temperature information to determine whether the temperature information conforms to the human body temperature range. If not, it determines that there is no user in the environment where it is located.

[0054] In another case, when the electronic device obtains the environmental image information of the environment where it is located through an image sensor (such as a camera) as the user detection information, it analyzes whether there are any human faces, human outlines or other features in the environmental image information by using a human body detection model pre-trained by a convolutional neural network or an existing human body detection model (such as YOLO (You Only Look Once), SSD (Single Shot MultiboxDetector), Faster R-CNN, etc.). If not, it determines that there is no user in the environment where it is located.

[0055] In yet another case, when the electronic device obtains the user detection information of the environment where it is located by using the connection relationship with other electronic products, it can determine that there is no user in the environment where it is located when it does not receive the connection information.

[0056] The false touch threshold refers to the maximum acceptable touch sensitivity value set to avoid the electronic device from responding due to attachments (such as water droplets, dust, oil stains, etc.) on the touch panel. Generally, it is impossible to reach the false touch threshold.

[0057] Exemplarily, when it is determined that there is no user in the environment where the electronic device is located, it is determined that the touch threshold of the touch panel is the false touch threshold of 50 N. That is, in the case where there is no user in the environment where the electronic device is located, the attachments on the touch panel cannot generate a touch signal with a touch parameter greater than the false touch threshold, and the electronic device does not respond to the touch signal.

[0058] Further, in the embodiments of the present application, in the case where it is determined that there are multiple users in the environment where the electronic device is located based on the user detection information, the distance parameters between each user and the electronic device are determined, and the distance parameter with the smallest value is determined as the relative distance parameter between the electronic device and the user.

[0059] Exemplarily, it is determined that there are user A, user B, and user C in the environment (kitchen) where the range hood is located. Among them, the distance between user A and the range hood (electronic device) is 1.2 meters, the distance between user B and the range hood is 2 meters, and the distance between user C and the range hood is 0.8 meters. Then, it is determined that the distance parameter (0.8 meters) between user C and the range hood is the relative distance parameter, and the touch threshold is set according to the relative distance parameter.

[0060] In the embodiments of the present application, when it is determined that there is no user in the environment of the electronic device, the touch threshold of the touch panel is set to the false touch threshold, so that the attachment on the touch panel cannot generate a touch signal with a touch parameter greater than the false touch threshold, that is, the electronic device does not respond to the touch signal triggered by the attachment, improving the accuracy of the electronic device's response; further, when it is determined that there are multiple users in the environment where the electronic device is located, the distance parameter with the smallest determined value among the distance parameters between the user and the electronic device is used as the relative distance parameter, and then the touch threshold corresponding to the relative distance parameter is determined to ensure that the electronic device can quickly respond to the touch signal on the touch panel when there are users in the environment where the electronic device is located.

[0061] The following will be combined with Figure 4 , and a detailed introduction will be given to the touch threshold determination device provided in the embodiments of the present application. It should be noted that Figure 4 The touch threshold determination device in Figures 1 - 3 is used to execute the method of the embodiments of the present application Figures 1 - 3 . For the sake of convenience of description, only the parts related to the embodiments of the present application are shown. For the specific technical details not disclosed, please refer to the embodiments shown in Figures 1 - 3 of the present application. Specifically, the touch threshold determination device 1 includes: An acquisition unit 11, configured to acquire user detection information of the environment where the electronic device is located; A first determination unit 12, configured to, if it is determined based on the user detection information that there is a user in the environment where the electronic device is located, acquire the relative distance parameter between the electronic device and the user through a distance sensor; A second determination unit 13, configured to determine the touch threshold of the touch panel based on the relative distance parameter, where the touch threshold is a threshold for determining whether the electronic device responds to a touch signal triggered by the user based on the touch panel.

[0062] Optionally, the second determination unit 13 includes: A first threshold determination subunit 131, configured to determine that the touch threshold is the first touch threshold if the relative distance parameter is less than or equal to the first distance threshold; A second threshold determination subunit 132, configured to determine the touch screen interference coefficient corresponding to the attachment of the touch panel if the relative distance parameter is greater than the first distance threshold, and determine the second touch threshold of the touch panel based on the touch screen interference coefficient, where the first touch threshold is less than the second touch threshold.

[0063] Optionally, the second threshold determination subunit 132 is specifically configured to: Determine the second touch threshold corresponding to the touch screen interference coefficient in the coefficient threshold mapping relationship table.

[0064] Optionally, the second threshold determination subunit 132 is specifically configured to: Obtain the air humidity, ambient temperature of the environment where the electronic device is located, and the operating condition parameters of the electronic device; Determine the touch screen interference coefficient corresponding to the attachment on the touch panel based on the air humidity, ambient temperature, and operating condition parameters.

[0065] Optionally, the touch threshold determination device 1 further includes: A receiving unit 14, configured to receive a touch signal triggered based on the touch panel; A control unit 15, configured to control the electronic device to respond to the touch signal if the touch parameter of the touch signal is greater than or equal to the touch threshold.

[0066] Optionally, the touch threshold determination device 1 further includes: A third determination unit 16, configured to determine the touch threshold of the touch panel as the false touch threshold if it is determined based on the user detection information that there is no user in the environment where the electronic device is located.

[0067] Optionally, the touch threshold determination device 1 further includes: A fourth determination unit 17, configured to determine the distance parameter with the smallest value among the distance parameters between each user and the electronic device as the relative distance parameter if it is determined based on the user detection information that there are multiple users in the environment where the electronic device is located.

[0068] In the embodiments of the present application, by obtaining the user detection information of the environment where the electronic device is located, and when it is determined based on the user detection information that there is a user in the environment where the electronic device is located, the relative distance parameter between the electronic device and the user is obtained through a distance sensor, and the touch threshold of the touch panel is determined based on the relative distance parameter. The touch threshold is used to determine whether the electronic device responds to a touch signal triggered based on the touch panel. When there is a user in the environment where the electronic device is located, the touch threshold of the touch panel is determined through the relative distance between the user and the electronic device, thereby realizing dynamic adjustment of the touch threshold of the touch panel, ensuring that the electronic device responds to the operation intended by the user, and improving the accuracy of the electronic device's response to touch operations.

[0069] Please refer to Figure 5 which provides a schematic structural diagram of an electronic device for an embodiment of the present application. As Figure 5 shown, the electronic device 500 includes a processor 501 and a memory 502. Among them, the processor 501 is electrically connected to the memory 502.

[0070] The processor 501 is the control center of the electronic device 500 and may include one or more processing cores. The processor 501 connects various parts of the entire electronic device 500 through various interfaces and circuits, and executes various functions of the electronic device 500 and processes data by running or calling computer programs stored in the memory 502 and calling data stored in the memory 502, thereby performing overall management and control of the electronic device 500. Optionally, the processor 501 may be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), or programmable logic array (PLA). The processor 501 may integrate one or a combination of several of a CPU, a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interfaces, and application programs, etc.; the GPU is responsible for rendering and drawing display content; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 501 and may be implemented separately through a communication chip.

[0071] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the computer programs and modules stored in the memory 502. The memory 502 mainly includes a program storage area and a data storage area. Among them, the program storage area can store the operating system, computer programs required for at least one function, etc.; the data storage area can store data created according to the use of the electronic device 500.

[0072] In addition, the memory 502 may include high-speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. Correspondingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.

[0073] In this embodiment, the processor 501 in the electronic device 500 loads the instructions corresponding to the processes of one or more computer programs into the memory 502 according to the following steps, and the processor 501 runs the computer programs stored in the memory 502 to implement various functions, as follows: Obtain user detection information about the environment where the electronic device is located; If it is determined based on the user detection information that there is a user in the environment where the electronic device is located, obtain the relative distance parameter between the electronic device and the user through the distance sensor; Determine the touch threshold of the touch panel based on the relative distance parameter, where the touch threshold is the threshold for determining whether the electronic device responds to the touch signal triggered by the touch panel.

[0074] Optionally, when the processor 501 executes determining the touch threshold of the touch panel based on the relative distance parameter, it specifically executes: If the relative distance parameter is less than or equal to the first distance threshold, determine that the touch threshold is the first touch threshold; If the relative distance parameter is greater than the first distance threshold, determine the touch screen interference coefficient corresponding to the attachment on the touch panel, and determine the second touch threshold of the touch panel based on the touch screen interference coefficient, where the first touch threshold is less than the second touch threshold.

[0075] Optionally, when the processor 501 executes determining the second touch threshold of the touch panel based on the touch screen interference coefficient, it specifically executes: Determine the second touch threshold corresponding to the touch screen interference coefficient in the coefficient threshold mapping relationship table.

[0076] Optionally, when the processor 501 executes determining the touch screen interference coefficient corresponding to the attachment on the touch panel, it specifically executes: Obtain the air humidity, ambient temperature of the environment where the electronic device is located, and the operating condition parameters of the electronic device; Determine the touch screen interference coefficient corresponding to the attachment on the touch panel based on the air humidity, ambient temperature, and operating condition parameters.

[0077] Optionally, after the processor 501 executes determining the touch threshold of the touch panel based on the relative distance parameter, it also executes: Receive the touch signal triggered by the touch panel; If the touch parameter of the touch signal is greater than or equal to the touch threshold, control the electronic device to respond to the touch signal.

[0078] Optionally, after the processor 501 executes obtaining the user detection information of the environment where the electronic device is located, it also executes: If it is determined based on the user detection information that there is no user in the environment where the electronic device is located, determine that the touch threshold of the touch panel is the false touch threshold.

[0079] Optionally, after the processor 501 executes obtaining the user detection information of the environment where the electronic device is located, it can also execute: If it is determined based on the user detection information that there are multiple users in the environment where the electronic device is located, determine the distance parameter with the smallest value among the distance parameters between each user and the electronic device as the relative distance parameter.

[0080] In an embodiment of the present application, by obtaining user detection information of the environment where the electronic device is located, and when it is determined based on the user detection information that there is a user in the environment where the electronic device is located, the relative distance parameter between the electronic device and the user is obtained through a distance sensor, and the touch threshold of the touch panel is determined based on the relative distance parameter. The touch threshold is used to determine whether the electronic device responds to a touch signal triggered based on the touch panel. When there is a user in the environment where the electronic device is located, the touch threshold of the touch panel is determined by the relative distance between the user and the electronic device, thereby realizing dynamic adjustment of the touch threshold of the touch panel, ensuring that the electronic device responds to the operation intended by the user, and improving the accuracy of the electronic device's response to touch operations.

[0081] It should be understood that the device provided in the embodiment of the present application is used to execute the above-mentioned method for determining a touch threshold, so the same effect as the above-mentioned implementation method can be achieved.

[0082] In the case of adopting an integrated unit, the device may include a processing module and a storage module. Among them, when the device is applied to an oil fume machine, the processing module can be used to control and manage the actions of the oil fume machine. The storage module can be used to support the oil fume machine to execute relevant program codes and the like.

[0083] Among them, the processing module can be a processor or a controller, which can implement or execute various exemplary logic blocks, modules, and circuits described in combination with the disclosure of the present application. The processor can also be a combination that realizes computing functions, such as including a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory.

[0084] In addition, the device provided in the embodiment of the present application can specifically be a chip, a component, or a module. The chip may include a connected processor and a memory; among them, the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute a method for determining a touch threshold provided in the above embodiment.

[0085] The embodiment of the present application also provides a computer-readable storage medium, in which computer program code is stored. When the computer program code runs on a computer, the computer is enabled to execute the above-related method steps to implement a method for determining a touch threshold provided in the above embodiment.

[0086] This embodiment also provides a computer program product. When the computer program product runs on a computer, the computer is enabled to execute the above-related steps to implement a method for determining a touch threshold provided in the above embodiment.

[0087] Among them, the device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be elaborated here.

[0088] Through the description of the above embodiments, those skilled in the art can understand that for the convenience and simplicity of description, only the above division of each functional module is used as an example. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

[0089] In the embodiments provided in this application, it should be understood that the disclosed device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point, the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in electrical, mechanical or other forms.

[0090] The above content is only the specific implementation manner of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application, and all should be covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims

1. A method for determining a touch threshold, characterized in that Applied to an electronic device, the electronic device includes a touch panel and a distance sensor, and the method includes: Obtaining user detection information of the environment where the electronic device is located; If it is determined based on the user detection information that there is a user in the environment where the electronic device is located, obtaining a relative distance parameter between the electronic device and the user through the distance sensor; Determining a touch threshold of the touch panel based on the relative distance parameter, where the touch threshold is a threshold for determining whether the electronic device responds to a touch signal triggered based on the touch panel.

2. The method according to claim 1, wherein The determining the touch threshold of the touch panel based on the relative distance parameter includes: If the relative distance parameter is less than or equal to a first distance threshold, determining the touch threshold as a first touch threshold; If the relative distance parameter is greater than the first distance threshold, determining a touch screen interference coefficient corresponding to an attachment of the touch panel, and determining a second touch threshold of the touch panel based on the touch screen interference coefficient, where the first touch threshold is less than the second touch threshold.

3. The method according to claim 2, characterized in that, The determining the second touch threshold of the touch panel based on the touch screen interference coefficient includes: Determining a second touch threshold corresponding to the touch screen interference coefficient in a coefficient threshold mapping relationship table.

4. The method according to claim 2, wherein The determining the touch screen interference coefficient corresponding to an attachment of the touch panel includes: Obtaining the air humidity, ambient temperature of the environment where the electronic device is located, and the operating condition parameters of the electronic device; Determining a touch screen interference coefficient corresponding to an attachment of the touch panel based on the air humidity, the ambient temperature, and the operating condition parameters.

5. The method according to claim 2, wherein After determining the touch threshold of the touch panel based on the relative distance parameter, it further includes: Receiving a touch signal triggered based on the touch panel; If the touch parameter of the touch signal is greater than or equal to the touch threshold, controlling the electronic device to respond to the touch signal.

6. The method according to claim 1, characterized in that After obtaining the user detection information of the environment where the electronic device is located, it further includes: If it is determined based on the user detection information that there is no user in the environment where the electronic device is located, determining the touch threshold of the touch panel as a false touch threshold.

7. The method according to claim 1, characterized in that, After obtaining the user detection information of the environment where the electronic device is located, it further includes: If it is determined based on the user detection information that there are multiple users in the environment where the electronic device is located, determining the distance parameter with the smallest value among the distance parameters between each user and the electronic device as the relative distance parameter.

8. A touch threshold determination device, characterized in that, Applied to an electronic device, the electronic device includes a touch panel and a distance sensor, and the device includes: An obtaining unit, configured to obtain user detection information of the environment where the electronic device is located; A first determining unit, configured to, if it is determined based on the user detection information that there is a user in the environment where the electronic device is located, obtain a relative distance parameter between the electronic device and the user through the distance sensor; A second determining unit, configured to determine a touch threshold of the touch panel based on the relative distance parameter, where the touch threshold is a threshold for determining whether the electronic device responds to a touch signal triggered by the user based on the touch panel.

9. An electronic device, characterized in that, The electronic device includes: A memory for storing executable program code; A processor for calling and running the executable program code from the memory, such that the electronic device executes the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program code which, when executed, implements the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • False touch prevention method for curved screen and electronic equipment

    CN110456938A

  • Household appliance, control method of household appliance, and readable storage medium

    CN110805935A

  • Touch device control method and device of laundry equipment, equipment and storage medium

    CN116841407A

  • Vehicle touch element control method and device, electronic equipment, storage medium and vehicle

    CN118860172A

Cited By

  • Touch control recognition method and system for greasy dirt environment, storage medium and electronic product

    CN121070198A

  • Oil-contaminated environment touch recognition method and system, storage medium and electronic product

    CN121070198B