Touch key control method and device, computer equipment and electrical equipment
By determining a reference trigger threshold based on user habits, the method adjusts touch button sensitivity to reduce accidental activations, enhancing user experience by minimizing false triggers.
Patent Information
- Application Number
- CN202411201679.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-12-17
AI Technical Summary
Touch buttons in home appliances are prone to false triggering due to accidental touches, leading to unintended activation of functions, which is exacerbated by their sensitivity, affecting user experience.
A method to determine a reference trigger threshold based on actual user touch habits by collecting and analyzing multiple trigger values, adjusting the initial threshold to a target threshold when necessary, to reduce accidental touches.
The method effectively reduces the likelihood of accidental button activation by setting a larger trigger threshold that aligns with user habits, ensuring normal use while minimizing false triggers.
Smart Images

Figure CN119148915A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electrical equipment, and in particular to a touch key control method, device, computer equipment and electrical equipment. Background Art
[0002] At present, many home appliances on the market use touch buttons for control. Compared with mechanical buttons, touch buttons are more intelligent and technological, which helps to improve the grade of products. However, touch buttons also have the defect of false touches. In addition to the user's finger touch trigger, other parts of the body, conductive parts such as metal, and special equipment approaching or touching the buttons will cause false triggering of touch buttons. In addition, users' daily actions may accidentally touch the buttons, such as when moving or rotating the device, cleaning and wiping the panel of the touch interaction area of the whole machine. False touch of the button will cause the whole machine to start some functions by mistake or turn on the whole machine by mistake. For many home appliances such as kitchen appliances, environmental appliances, drinking water products, etc., false touch of the button will cause the whole machine to heat up or discharge water by mistake, which is not a good user experience. In order to meet the user's touch button experience, the touch effect of the button is usually designed to be relatively sensitive, but the more sensitive the touch effect, the greater the probability of false touch. Summary of the invention
[0003] In view of this, the present invention provides a touch key control method, device, computer equipment and electrical equipment to solve the problem of accidental touch of the touch key.
[0004] In a first aspect, the present invention provides a method for controlling a touch key, comprising the following steps: obtaining an initial trigger threshold of the touch key; obtaining multiple actual trigger values of the touch key; determining a reference trigger threshold of the touch key based on the multiple actual trigger values; when the reference trigger threshold is greater than the initial trigger threshold, increasing the initial trigger threshold to obtain a target trigger threshold.
[0005] The control method of the touch key provided by the present invention obtains multiple actual trigger values of the touch key, and determines the reference trigger threshold of the touch key according to the multiple actual trigger values; when the reference trigger threshold is greater than the initial trigger threshold, the initial trigger threshold is increased to obtain the target trigger threshold; that is, the reference trigger threshold is determined according to the multiple actual trigger thresholds, and the determination of the reference trigger threshold takes into account the user's touch habits. On the premise of satisfying the user's normal touch use, the touch threshold is set as large as possible, and the larger the trigger threshold, the larger the area or degree of contact of the key is, so it is less likely to be accidentally touched; thereby solving the problem of accidental touch of the touch key.
[0006] In an optional embodiment, obtaining multiple actual trigger values of a touch key includes: obtaining a first quantity of first actual trigger values; determining whether a first ratio of the first quantity of first actual trigger values belonging to a preset first interval is greater than a preset first threshold; when the first ratio is greater than the first threshold, using the first quantity of first actual trigger values as multiple actual trigger values of the touch key; when the first ratio is less than or equal to the first threshold, continuing to obtain a second quantity of second actual trigger values, and obtaining multiple actual trigger values of the touch key according to the first quantity of first actual trigger values and the second actual trigger values of the second data.
[0007] That is to say, by determining that the first actual trigger value of the first number belongs to the first proportion of the preset first interval, it can be ensured that the collected data can accurately reflect the user's touch habits and avoid blindly changing the touch threshold to affect the user's normal use.
[0008] In an optional embodiment, obtaining multiple actual trigger values of a touch key based on the first actual trigger value of the first quantity and the second actual trigger value of the second data includes: determining whether a second ratio of the second actual trigger value of the second quantity belonging to the first interval is greater than a preset second threshold; when the second ratio is greater than the second threshold, using the second actual trigger value of the second quantity as the multiple actual trigger values of the touch key; when the second ratio is less than or equal to the second threshold, using the first actual trigger value of the first quantity and the second actual trigger value of the second data as the multiple actual trigger values of the touch key.
[0009] That is to say, by collecting a second number of second actual trigger values to review the first number of first actual trigger values, and adopting corresponding processing methods based on the review results, it can be ensured that the collected data can accurately reflect the user's touch habits and avoid blindly changing the touch threshold to affect the user's normal use.
[0010] In an optional embodiment, determining a reference trigger threshold of a touch key according to multiple actual trigger values includes: selecting a portion greater than an initial trigger threshold from multiple actual trigger thresholds to obtain a first subset and a first number of actual trigger thresholds in the first subset; selecting a portion less than the initial trigger threshold from multiple actual trigger thresholds to obtain a second subset and a second number of actual trigger thresholds in the second subset; calculating a ratio of the first number to the total of multiple actual trigger thresholds to obtain a third ratio; calculating a ratio of the second number to the total of multiple actual trigger thresholds to obtain a fourth ratio; and when the third ratio belongs to a preset third interval, calculating the ratio of all actual trigger thresholds in the first subset. The reference trigger threshold is obtained by calculating the average value of the actual trigger thresholds; or, when the fourth ratio belongs to the preset fourth interval, calculating the average value of all actual trigger thresholds in the second subset to obtain the reference trigger threshold; when the third ratio does not belong to the third interval, eliminating some data except the first subset from multiple trigger thresholds to obtain the third subset, calculating the average value of all actual trigger thresholds in the third subset to obtain the reference trigger threshold; or, when the fourth ratio does not belong to the third interval, eliminating some data except the second subset from multiple trigger thresholds to obtain the fourth subset, calculating the average value of all actual trigger thresholds in the fourth subset to obtain the reference trigger threshold.
[0011] The above data processing method can enable the reference trigger threshold to accurately reflect the user's actual usage habits.
[0012] In an optional embodiment, before eliminating part of the data except the first subset among multiple trigger thresholds to obtain a third subset, the further step further includes: determining the elimination ratio of the part of the data except the first subset according to a third ratio; or; before eliminating part of the data except the second subset among multiple trigger thresholds to obtain a fourth subset, the further step further includes: determining the elimination ratio of the part of the data except the second subset according to the fourth ratio.
[0013] The above data processing method can make the selected third subset or fourth subset more reasonable and accurately reflect the actual usage habits of the user.
[0014] In an optional implementation, when the reference trigger threshold is greater than the initial trigger threshold, increasing the initial trigger threshold to obtain the target trigger threshold includes: when the reference trigger threshold is greater than the initial trigger threshold, calculating the target trigger threshold using a preset first formula, wherein the first formula is: Q=A+k(BA); wherein Q represents the target trigger threshold, A represents the initial trigger threshold, B represents the reference trigger threshold, k represents the coefficient, and 0 <k≤1。
[0015] Therefore, the method for determining the target trigger threshold can be applicable to a variety of application environments.
[0016] In an optional embodiment, the control method of the touch button includes: when the reference trigger threshold is less than or equal to the initial trigger threshold, calculating the difference between the initial trigger threshold and the reference trigger threshold, and when the difference is greater than a preset third threshold, lowering the initial trigger threshold to obtain the target trigger threshold; when the difference is less than or equal to the preset third threshold, using the initial trigger threshold as the target trigger threshold.
[0017] This is because the difference between the initial trigger threshold and the reference trigger threshold is greater than the third threshold, indicating that the user's habitual effective contact area of the touch button is small or the contact degree is low, or even the touch is insensitive (this may be caused by the user's abnormal habit of touching the button, or it may be an abnormality of the entire machine). At this time, it is necessary to increase the sensitivity of the touch button, that is, to lower the touch threshold. The difference between the initial trigger threshold and the reference trigger threshold is less than or equal to the third threshold, indicating that the initial trigger threshold is close to the reference trigger threshold, and the touch button sensitivity originally set for the entire machine can be maintained.
[0018] In an optional implementation, when the difference is greater than a preset third threshold, lowering the initial trigger threshold to obtain the target trigger threshold includes: when the difference is greater than the preset third threshold, using the reference trigger threshold as the target trigger threshold.
[0019] This makes it easy to determine the target trigger threshold.
[0020] In the second aspect, the present invention also provides a control device for a touch key, the device comprising a first acquisition module, a second acquisition module, a reference trigger threshold determination module and a target trigger threshold determination module; the first acquisition module is used to acquire the initial trigger threshold of the touch key; the second acquisition module is used to acquire multiple actual trigger values of the touch key; the reference trigger threshold determination module is used to determine the reference trigger threshold of the touch key according to multiple actual trigger values; the target trigger threshold determination module is used to determine the target trigger threshold of the touch key according to the relationship between the reference trigger threshold and the initial trigger threshold.
[0021] In a third aspect, the present invention further provides a computer device, comprising a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the touch key control method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0022] In a fourth aspect, the present invention further provides an electrical device, comprising a touch button and the computer device of the third aspect, wherein the touch button is communicatively connected to the computer device.
[0023] In a fifth aspect, the present invention further provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the touch key control method of the first aspect or any corresponding embodiment thereof.
[0024] In a sixth aspect, the present invention further provides a computer program product, comprising computer instructions, wherein the computer instructions are used to enable a computer to execute the touch key control method of the first aspect or any corresponding embodiment thereof.
[0025] The touch button control method, device, computer equipment and electrical equipment provided by the present invention have the following technical effects: a reference trigger threshold is determined based on multiple actual trigger thresholds, and the determination of the reference trigger threshold takes into account the user's touch habits. Under the premise of satisfying the user's normal touch usage, the touch threshold is set as large as possible. The larger the trigger threshold, the larger the area of the button that needs to be touched or the larger the contact degree, so it is less likely to be accidentally touched; thereby solving the problem of accidentally touching the touch button. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0027] Figure 1 is a flow chart of a touch key control method according to an embodiment of the present invention;
[0028] Figure 2 is a flow chart of another touch key control method according to an embodiment of the present invention;
[0029] Figure 3 is a flow chart of an example of a touch key control method according to an embodiment of the present invention;
[0030] Figure 4 is a structural block diagram of a touch key control device according to an embodiment of the present invention;
[0031] Figure 5 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0033] According to an embodiment of the present invention, an embodiment of a touch key control method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0034] In this embodiment, a touch key control method is provided, which can be used in computer equipment. Figure 1 is a flow chart of a touch key control method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0035] Step S101: obtaining an initial trigger threshold of a touch button.
[0036] Specifically, the initial trigger threshold of the touch key is the initial trigger threshold of the touch key set when the whole device leaves the factory.
[0037] Step S102: Acquire multiple actual trigger values of the touch keys.
[0038] Specifically, multiple actual trigger values of the touch keys can be collected in real time while the whole machine is in use.
[0039] Step S103: determining a reference trigger threshold of the touch key according to a plurality of actual trigger values.
[0040] Step S104: when the reference trigger threshold is greater than the initial trigger threshold, the initial trigger threshold is increased to obtain a target trigger threshold.
[0041] This is because, the smaller the trigger threshold of a touch key is set, the lower the touch area or contact degree required for the key is, under which condition the key touch effect is more sensitive and the probability of false touch is relatively high; on the contrary, the larger the trigger threshold of a touch key is set, the higher the touch area or contact degree required for the key is, under which condition the key touch effect is less sensitive and the probability of false touch is relatively low. In other words, increasing the trigger threshold of a touch key can reduce the probability of false touch of a touch key.
[0042] Here, the reference trigger threshold is greater than the initial trigger threshold, indicating that there is still room for improvement in the trigger threshold of the touch button. In this case, the trigger threshold can be increased and the touch sensitivity can be appropriately reduced, thereby reducing the probability of accidental touch of the touch button.
[0043] The touch key control method provided in the present embodiment obtains multiple actual trigger values of the touch key, and determines a reference trigger threshold of the touch key according to the multiple actual trigger values; when the reference trigger threshold is greater than the initial trigger threshold, the initial trigger threshold is increased to obtain the target trigger threshold; that is, the reference trigger threshold is determined according to the multiple actual trigger thresholds, and the determination of the reference trigger threshold takes into account the user's touch habits. On the premise of satisfying the user's normal touch usage, the touch threshold is set as large as possible, and the larger the trigger threshold, the larger the area or degree of contact of the key is, so it is less likely to be accidentally touched; thereby solving the problem of accidental touch of the touch key.
[0044] In this embodiment, a touch key control method is provided, which can be used in computer equipment. Figure 2 is a flow chart of another touch key control method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0045] Step S201: obtaining an initial trigger threshold of a touch button.
[0046] Step S202: Acquire multiple actual trigger values of the touch keys.
[0047] In an optional implementation, obtaining multiple actual trigger values of the touch key includes the following steps:
[0048] Step S2021: Obtain a first actual trigger value of a first quantity.
[0049] Step S2022: Determine whether the first ratio of the first actual trigger value of the first quantity belonging to the preset first interval is greater than the preset first threshold. When the first ratio is greater than the first threshold, proceed to step S2023; when the first ratio is less than or equal to the first threshold, proceed to step S2014;
[0050] Step S2023: using the first number of first actual trigger values as multiple actual trigger values of the touch key.
[0051] Step S2024: Continue to obtain the second actual trigger values of the second quantity, and obtain multiple actual trigger values of the touch keys according to the first actual trigger values of the first quantity and the second actual trigger values of the second data.
[0052] For example, obtaining multiple actual trigger values of a touch key includes: (1) collecting data X times. If all data are within the range of 0.5A to 1.5A (where the original trigger threshold value is set when the product leaves the factory), it means that the value fluctuation is small and no abnormal situation occurs during use. The X data are used as the multiple actual trigger values of the touch key; (2) collecting data X times. When more than 1 / 2 of the collected data are not within the range of 0.5A to 1.5A, continue to collect data 2X times. The X data and 2X data are used as the actual trigger values of the touch key.
[0053] That is to say, by determining that the first actual trigger value of the first number belongs to the first proportion of the preset first interval, it can be ensured that the collected data can accurately reflect the user's touch habits and avoid blindly changing the touch threshold to affect the user's normal use.
[0054] Specifically, obtaining a plurality of actual trigger values of the touch keys according to the first actual trigger values of the first quantity and the second actual trigger values of the second data includes the following steps:
[0055] Step a1: Determine whether the second proportion of the second number of second actual trigger values belonging to the first interval is greater than a preset second threshold; when the second proportion is greater than the second threshold, proceed to step a2; when the second proportion is less than or equal to the second threshold, proceed to step a3.
[0056] Step a2: using the second number of second actual trigger values as multiple actual trigger values of the touch key.
[0057] Step a3: taking the first actual trigger values of the first quantity and the second actual trigger values of the second data as multiple actual trigger values of the touch key.
[0058] For example, if at least one X in the last 2X data is the same as the first X, that is, more than 1 / 2 is not within the range of 0.5A to 1.5A, the X-time data and the 2X-time data are used as the actual trigger threshold of the touch key. ② If the last 2X data are all different from the first X, that is, all the last 2X data are within the range of 0.5A to 1.5A, the first X data is discarded and the last 2X data are used as the actual trigger value of the touch key.
[0059] That is to say, by collecting a second number of second actual trigger values to review the first number of first actual trigger values, and adopting corresponding processing methods based on the review results, it can be ensured that the collected data can accurately reflect the user's touch habits and avoid blindly changing the touch threshold to affect the user's normal use.
[0060] Step S203: determining a reference trigger threshold of the touch key according to a plurality of actual trigger values.
[0061] In an optional implementation, determining a reference trigger threshold of a touch key according to a plurality of actual trigger values comprises the following steps:
[0062] Step S2031: Select the part larger than the initial trigger threshold from multiple actual trigger thresholds to obtain a first subset and a first number of actual trigger thresholds in the first subset; select the part smaller than the initial trigger threshold from multiple actual trigger thresholds to obtain a second subset and a second number of actual trigger thresholds in the second subset.
[0063] Step S2032: Calculate the ratio of the first number to the total amount of the multiple actual trigger thresholds to obtain a third ratio; calculate the ratio of the second number to the total amount of the multiple actual trigger thresholds to obtain a fourth ratio.
[0064] Step S2033: When the third ratio belongs to the preset third interval, the average value of all actual trigger thresholds in the first subset is calculated to obtain a reference trigger threshold; or, when the fourth ratio belongs to the preset fourth interval, the average value of all actual trigger thresholds in the second subset is calculated to obtain a reference trigger threshold.
[0065] Specifically, the third interval and the fourth interval can be 90% to 100%. For example, when 95% of the data is greater than the initial trigger value Q set by the whole machine at the factory, it means that most of the user's usage is different from the original setting of the whole machine, that is, the initial trigger threshold Q. This 95% of the data can better represent the actual situation of the user. In order to avoid other data affecting the results, the remaining 5% of the data is discarded, and only the average value of this 95% of the data is calculated to obtain the reference trigger threshold.
[0066] Step S2034: When the third ratio does not belong to the third interval, some data except the first subset are eliminated from the multiple trigger thresholds to obtain a third subset, and the average value of all actual trigger thresholds in the third subset is calculated to obtain a reference trigger threshold; or, when the fourth ratio does not belong to the third interval, some data except the second subset are eliminated from the multiple trigger thresholds to obtain a fourth subset, and the average value of all actual trigger thresholds in the fourth subset is calculated to obtain a reference trigger threshold.
[0067] For example, when 85% of the data is greater than the initial trigger value Q set by the factory for the entire machine, it means that most of the user's usage is inconsistent with the original setting of the entire machine, that is, the initial trigger threshold Q. Similarly, in order to avoid other data affecting the results, the remaining data needs to be discarded, but in this case not all of the data can be discarded, because only 85% of the data cannot fully represent the actual situation of the user. Therefore, part of the remaining 15% of the data can be discarded (for example, 50% of the remaining 15% of the data is discarded), and part of the data except the first subset is eliminated from multiple trigger thresholds to obtain a third subset, and the average value of all actual trigger thresholds in the third subset is calculated to obtain a reference trigger threshold.
[0068] Specifically, before excluding part of the data other than the first subset from multiple trigger thresholds to obtain the third subset, it further includes: determining the exclusion ratio of the part of the data other than the first subset according to the third ratio. Or; before excluding part of the data other than the second subset from multiple trigger thresholds to obtain the fourth subset, it further includes: determining the exclusion ratio of the part of the data other than the second subset according to the fourth ratio.
[0069] That is to say, the exclusion ratio of the data is determined according to the third ratio or the fourth ratio. By way of example, when 85% of the data is greater than the initial trigger value Q set at the factory of the whole machine, 50% of the remaining 15% of the data is discarded; when 75% of the data is greater than the initial trigger value Q set at the factory of the whole machine, 30% of the remaining 15% of the data is discarded. This can make the selected third subset or fourth subset more reasonable and accurately reflect the actual usage habits of users.
[0070] Step S204: Determine whether the reference trigger threshold is greater than the initial trigger threshold; when the reference trigger threshold is greater than the initial trigger threshold, go to step S205; otherwise, go to step S206.
[0071] Step S205: Increase the initial trigger threshold to obtain the target trigger threshold.
[0072] In an alternative embodiment, when the reference trigger threshold is greater than the initial trigger threshold, increasing the initial trigger threshold to obtain the target trigger threshold includes:
[0073] When the reference trigger threshold is greater than the initial trigger threshold, calculate the target trigger threshold using a preset first formula, where the first formula is:
[0074] Q = A + k(B - A)
[0075] Where Q represents the target trigger threshold, A represents the initial trigger threshold, B represents the reference trigger threshold, k represents a coefficient, and 0 < k ≤ 1.
[0076] Specifically, 0 < k ≤ 1, and different values of k result in different degrees of change in touch sensitivity. Therefore, the value of k needs to be set to meet the conditions of different products or different requirements. The larger the value of k, the greater the degree of sensitivity adjustment. For some products, the user groups, scenarios, and touch gestures vary greatly. In this case, a larger value of k is set so that the whole machine can intelligently adjust the sensitivity to adapt to the user's usage habits. For some products, the usage scenarios and conditions are relatively fixed. In this case, a smaller value of k is set, allowing the sensitivity to be adjusted within a certain relatively conservative range.
[0077] Step S206: Calculate the difference between the initial trigger threshold and the reference trigger threshold. When the difference is greater than a preset third threshold, lower the initial trigger threshold to obtain a target trigger threshold. When the difference is less than or equal to the preset third threshold, use the initial trigger threshold as the target trigger threshold.
[0078] In an optional implementation, when the difference is greater than a preset third threshold, lowering the initial trigger threshold to obtain the target trigger threshold includes: when the difference is greater than the preset third threshold, using the reference trigger threshold as the target trigger threshold.
[0079] Here, the reference trigger threshold is less than or equal to the initial trigger threshold, indicating that there is no room for increasing the trigger threshold of the touch button. At this time, the probability of false touches cannot be reduced by increasing the trigger threshold. The difference between the initial trigger threshold and the reference trigger threshold is greater than the third threshold, indicating that the user's habitual effective contact area of the touch button is small or the contact degree is low, and even the touch is not sensitive (this may be caused by the user's abnormal habit of touching the button, or it may be an abnormality of the whole machine). At this time, it is necessary to increase the sensitivity of the touch button, that is, lower the touch threshold. The difference between the initial trigger threshold and the reference trigger threshold is less than or equal to the third threshold, indicating that the initial trigger threshold is close to the reference trigger threshold, and the touch button sensitivity originally set for the whole machine can be maintained.
[0080] In order to explain the touch key control method according to the embodiment of the present invention more clearly, a specific example is given. Figure 3 FIG. 1 is a flow chart of an example of a touch key control method according to an embodiment of the present invention. Figure 3 As shown, the factory sets an initial trigger threshold value Q=A for a touch key. This value will give priority to ensuring good sensitivity of the touch key. During the use of the new machine, the actual threshold value B of the user's touch key is collected in real time, and the threshold value B of the previous X touch keys is recorded. The number of times X must be reasonable to ensure the rationality of the B value. If the number of times is too small, the user's habit of touching the key cannot be fully collected, which will lead to unreasonable calculation results of the B value.
[0081] If the touch threshold B > A, it indicates that the actual user's habitual touch threshold is greater than the set value, and there is a margin in the sensitivity of the touch button. At this time, the trigger value Q can be increased, and the touch sensitivity can be appropriately reduced, thereby reducing the probability of accidental touch of the touch button. Let Q = A + k(B - A), where 0 < k ≤ 1, and use the latest Q value as the touch button trigger value. If the touch threshold B ≤ A, it indicates that the effective contact area or contact degree of the user's habitual touch of the touch button is small. Therefore, the touch threshold Q cannot be increased at this time, otherwise it will affect the sensitivity experience of the user when touching the touch button. And for B ≤ A, the difference is further compared. If B is much smaller than A, it not only indicates that the effective contact area or contact degree of the user's habitual touch of the touch button is small, but also that the touch is insensitive (this situation may be caused by the user's abnormal habitual touch of the touch button, or it may be an abnormality in the whole machine). At this time, the touch sensitivity of the touch button needs to be increased, that is, the touch threshold Q is reduced, so let Q = B. If the values of A and B are relatively close, the touch threshold Q = A is still maintained, that is, the touch sensitivity of the touch button set in the original whole machine is maintained.
[0082] It can be seen from this that the present invention proposes a new touch sensitivity control method. When the whole machine leaves the factory, an initial trigger threshold A of a touch button is set. During the use of the new machine, the actual threshold B of the user's touch of the touch button is collected in real time, and the threshold B of the previous X touches of the touch button is recorded. The number of times X should be reasonable to ensure the rationality of the B value. By comparing the relationship between A and B, the touch threshold of the whole machine button is reset: on the premise of meeting the normal touch use of the user, the touch threshold is set as large as possible (the larger the trigger threshold, the larger the area or contact degree required to touch the button, so the less likely it is to be accidentally touched), so as to achieve the purpose of reducing the probability of accidental touch of the touch button. If it is found that the actual touch habit of the user makes the button threshold small, the touch threshold can be appropriately reduced to improve the touch sensitivity.
[0083] In this embodiment, a control device for a touch button is also provided. This device is used to implement the above-mentioned embodiments and preferred implementation manners, and those that have been described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that can achieve a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.
[0084] This embodiment provides a control device for a touch button, as Figure 4 shown, including:
[0085] A first acquisition module 401, configured to acquire an initial trigger threshold of a touch button;
[0086] A second acquisition module 402, configured to acquire multiple actual trigger values of the touch button;
[0087] A reference trigger threshold determination module 403, used to determine a reference trigger threshold of a touch key according to a plurality of actual trigger values;
[0088] The target trigger threshold determination module 404 is used to increase the initial trigger threshold to obtain the target trigger threshold when the reference trigger threshold is greater than the initial trigger threshold.
[0089] In some optional embodiments, the first acquisition module 401 includes a first acquisition unit, a first judgment unit, a first processing unit and a second processing unit; the first acquisition unit is used to acquire a first quantity of first actual trigger values; the first judgment unit is used to determine whether a first proportion of the first quantity of first actual trigger values belonging to a preset first interval is greater than a preset first threshold; the first processing unit is used to use the first quantity of first actual trigger values as multiple actual trigger values of the touch key when the first proportion is greater than the first threshold; the second processing unit is used to continue to acquire a second quantity of second actual trigger values when the first proportion is less than or equal to the first threshold, and obtain multiple actual trigger values of the touch key according to the first actual trigger value of the first quantity and the second actual trigger value of the second data.
[0090] In some optional embodiments, the second processing unit is specifically used to determine whether a second proportion of the second number of second actual trigger values belonging to the first interval is greater than a preset second threshold; when the second proportion is greater than the second threshold, the second number of second actual trigger values is used as multiple actual trigger values of the touch key; when the second proportion is less than or equal to the second threshold, the first number of first actual trigger values and the second actual trigger values of the second data are used as multiple actual trigger values of the touch key.
[0091] In some optional implementations, the reference trigger threshold determination module 403 is specifically used to: select a portion greater than the initial trigger threshold from multiple actual trigger thresholds to obtain a first subset and a first number of actual trigger thresholds in the first subset; select a portion less than the initial trigger threshold from multiple actual trigger thresholds to obtain a second subset and a second number of actual trigger thresholds in the second subset. Calculate the ratio of the first number to the total of multiple actual trigger thresholds to obtain a third ratio; calculate the ratio of the second number to the total of multiple actual trigger thresholds to obtain a fourth ratio. When the third ratio belongs to the preset third interval, calculate the average value of all actual trigger thresholds in the first subset to obtain a reference trigger threshold; or, when the fourth ratio belongs to the preset fourth interval, calculate the average value of all actual trigger thresholds in the second subset to obtain a reference trigger threshold. When the third ratio does not belong to the third interval, some data except the first subset are eliminated from multiple trigger thresholds to obtain a third subset, and the average value of all actual trigger thresholds in the third subset is calculated to obtain a reference trigger threshold; or, when the fourth ratio does not belong to the third interval, some data except the second subset are eliminated from multiple trigger thresholds to obtain a fourth subset, and the average value of all actual trigger thresholds in the fourth subset is calculated to obtain a reference trigger threshold.
[0092] In some optional implementations, before eliminating some data except the first subset from multiple trigger thresholds to obtain the third subset, the reference trigger threshold determination module 403 is further used to: determine the elimination ratio of some data except the first subset according to the third ratio. Alternatively; before eliminating some data except the second subset from multiple trigger thresholds to obtain the fourth subset, the reference trigger threshold determination module 403 is further used to: determine the elimination ratio of some data except the second subset according to the fourth ratio.
[0093] In some optional implementations, the target trigger threshold determination module 404 is specifically used to: when the reference trigger threshold is greater than the initial trigger threshold, calculate the target trigger threshold using a preset first formula, the first formula is: Q = A + k (BA) wherein Q represents the target trigger threshold, A represents the initial trigger threshold, B represents the reference trigger threshold, k represents the coefficient, 0 represents <k≤1。
[0094] In some optional embodiments, the target trigger threshold determination module 404 is also used to: when the reference trigger threshold is less than or equal to the initial trigger threshold, calculate the difference between the initial trigger threshold and the reference trigger threshold; when the difference is greater than a preset third threshold, lower the initial trigger threshold to obtain the target trigger threshold; when the difference is less than or equal to the preset third threshold, use the initial trigger threshold as the target trigger threshold.
[0095] In some optional implementations, the target trigger threshold determination module 404 is specifically configured to: when the difference is greater than a preset third threshold, use the reference trigger threshold as the target trigger threshold.
[0096] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0097] The touch button control device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0098] The embodiment of the present invention also provides a computer device having the above Figure 4 The touch button control device shown.
[0099] See also Figure 5 , Figure 5 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 5 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 5 A processor 10 is taken as an example.
[0100] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0101] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0102] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0103] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0104] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 5 The example of connecting through bus is taken in the following.
[0105] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0106] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0107] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0108] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A touch key control method, characterized in that: include: Get the initial trigger threshold of the touch button; Acquire multiple actual trigger values of the touch button; Determining a reference trigger threshold of the touch key according to the multiple actual trigger values; When the reference trigger threshold is greater than the initial trigger threshold, the initial trigger threshold is increased to obtain the target trigger threshold.
2. The method according to claim 1, characterized in that The step of obtaining a plurality of actual trigger values of the touch keys comprises: Obtaining a first actual trigger value of a first quantity; Determine whether a first proportion of a first number of the first actual trigger values belonging to a preset first interval is greater than a preset first threshold; When the first ratio is greater than the first threshold, using a first number of the first actual trigger values as a plurality of actual trigger values of the touch key; When the first ratio is less than or equal to the first threshold, continue to obtain a second number of second actual trigger values, and obtain multiple actual trigger values of the touch key according to the first number of the first actual trigger values and the second actual trigger values of the second data.
3. The method according to claim 2, characterized in that The step of obtaining the multiple actual trigger values of the touch key according to the first actual trigger value of the first quantity and the second actual trigger value of the second data comprises: Determine whether a second proportion of a second number of the second actual trigger values belonging to the first interval is greater than a preset second threshold; When the second ratio is greater than the second threshold, using a second number of the second actual trigger values as a plurality of actual trigger values of the touch key; When the second ratio is less than or equal to the second threshold, a first number of the first actual trigger values and the second actual trigger values of the second data are used as a plurality of actual trigger values of the touch key.
4. The method according to claim 1, characterized in that: Determining the reference trigger threshold of the touch key according to the multiple actual trigger values includes: Selecting a portion of the multiple actual trigger thresholds that are greater than the initial trigger threshold to obtain a first subset and a first number of the actual trigger thresholds in the first subset; selecting a portion of the multiple actual trigger thresholds that are less than the initial trigger threshold to obtain a second subset and a second number of the actual trigger thresholds in the second subset; Calculate the ratio of the first number to the total amount of the plurality of actual trigger thresholds to obtain a third ratio; calculate the ratio of the second number to the total amount of the plurality of actual trigger thresholds to obtain a fourth ratio; When the third ratio belongs to a preset third interval, the average value of all actual trigger thresholds in the first subset is calculated to obtain the reference trigger threshold; or, when the fourth ratio belongs to a preset fourth interval, the average value of all actual trigger thresholds in the second subset is calculated to obtain the reference trigger threshold; When the third ratio does not belong to the third interval, some data except the first subset are eliminated from the multiple trigger thresholds to obtain a third subset, and the average value of all actual trigger thresholds in the third subset is calculated to obtain the reference trigger threshold; or, when the fourth ratio does not belong to the third interval, some data except the second subset are eliminated from the multiple trigger thresholds to obtain a fourth subset, and the average value of all actual trigger thresholds in the fourth subset is calculated to obtain the reference trigger threshold.
5. The method according to claim 4, characterized in that: Before eliminating some data except the first subset from the plurality of trigger thresholds to obtain a third subset, the method further includes: determining a elimination ratio of some data except the first subset according to the third ratio; Or; before eliminating some data except the second subset from the multiple trigger thresholds to obtain the fourth subset, it also includes: determining the elimination ratio of some data except the second subset according to the fourth ratio.
6. The method according to claim 1, characterized in that When the reference trigger threshold is greater than the initial trigger threshold, increasing the initial trigger threshold to obtain the target trigger threshold includes: When the reference trigger threshold is greater than the initial trigger threshold, the target trigger threshold is calculated using a preset first formula, wherein the first formula is: Q=A+k(BA) Wherein, Q represents the target trigger threshold, A represents the initial trigger threshold, B represents the reference trigger threshold, k represents the coefficient, 0 <k≤1。 7. The method according to claim 1, characterized in that Also includes: When the reference trigger threshold is less than or equal to the initial trigger threshold, calculating the difference between the initial trigger threshold and the reference trigger threshold; When the difference is greater than a preset third threshold, lowering the initial trigger threshold to obtain the target trigger threshold; When the difference is less than or equal to a preset third threshold, the initial trigger threshold is used as the target trigger threshold.
8. The method according to claim 7, characterized in that When the difference is greater than a preset third threshold, lowering the initial trigger threshold to obtain the target trigger threshold includes: When the difference is greater than a preset third threshold, the reference trigger threshold is used as the target trigger threshold.
9. A touch button control device, characterized in that: The device comprises: A first acquisition module, used to acquire an initial trigger threshold of a touch key; A second acquisition module, used to acquire multiple actual trigger values of the touch button; A reference trigger threshold determination module, used to determine a reference trigger threshold of the touch key according to the multiple actual trigger values; The target trigger threshold determination module is used to increase the initial trigger threshold to obtain the target trigger threshold when the reference trigger threshold is greater than the initial trigger threshold.
10. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the touch key control method according to any one of claims 1 to 8 by executing the computer instructions.
11. An electrical device, comprising a touch button, and the computer device according to claim 10, wherein the touch button is communicatively connected to the computer device.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the touch key control method according to any one of claims 1 to 8.
13. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions are used to enable a computer to execute the touch key control method according to any one of claims 1 to 8.
