Touch parameter configuration method and device, electronic equipment and storage medium
By configuring the point-combination parameters, the problem of misidentification of touch screen in multi-touch point operation is solved, the accuracy and flexibility of touch recognition is improved, and the point-combination function is triggered normally when needed.
Patent Information
- Application Number
- CN202311798234.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-25
- Publication Date
- 2025-06-27
AI Technical Summary
When the touch screen recognizes touch operations of certain multi-touch points, it causes misidentification due to the trigger point-combination function, resulting in incorrect touch events reporting, reducing the accuracy of touch recognition.
By obtaining the touch control operations currently configured on the touch screen, flexibly configure the point-combination parameters. The point-combination parameters reflect the probability that the touch screen will trigger the point-combination function, thereby avoiding misidentification.
It improves the accuracy and flexibility of touch recognition, avoids misidentification caused by mis-triggering point function, and does not affect the normal triggering of point function when needed.
Smart Images

Figure CN120215732A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of human-computer interaction technology, and particularly to a method and device for configuring touch parameters, an electronic device, and a storage medium. Background Art
[0002] With the rapid development of touch screen technology, more and more touch operations can be configured on today's touch screens to meet more fast-touch requirements.
[0003] In practice, it is found that when the touch screen recognizes certain multi-touchpoint touch operations, it is prone to misrecognition due to the trigger of the point-merging function (the point-merging function is a function that merges two adjacent touch points into one touch point for reporting), resulting in the touch screen reporting incorrect touch events to the processor, and further causing the processor to make incorrect responses, reducing the accuracy of touch recognition. Summary of the Invention
[0004] Embodiments of this application disclose a method and device for configuring touch parameters, an electronic device, and a storage medium, which can improve the accuracy of touch recognition.
[0005] In a first aspect, an embodiment of this application discloses a method for configuring touch parameters, which is applied to an electronic device including a touch screen. The method includes:
[0006] Obtain one or more touch operations currently configured on the touch screen;
[0007] Configure point-merging parameters according to the one or more touch operations, where the point-merging parameters reflect the probability of the touch screen triggering the point-merging function, and the point-merging function is a function that the touch screen merges two detected adjacent touch points into one touch point for reporting.
[0008] In a second aspect, an embodiment of this application discloses a device for configuring touch parameters, which is applied to an electronic device including a touch screen. The device includes:
[0009] An obtaining unit, configured to obtain one or more touch operations currently configured on the touch screen;
[0010] A configuration unit, configured to configure point-merging parameters according to the one or more touch operations, where the point-merging parameters reflect the probability of the touch screen triggering the point-merging function, and the point-merging function is a function that the touch screen merges two detected adjacent touch points into one touch point for reporting.
[0011] In a third aspect, an embodiment of this application discloses an electronic device, including:
[0012] A memory storing executable program code;
[0013] A processor coupled to the memory;
[0014] The processor invokes the executable program code stored in the memory and executes the method for configuring touch parameters disclosed in the first aspect of the embodiments of the present application.
[0015] The fourth aspect of the embodiments of the present application discloses a computer-readable storage medium that stores a computer program, wherein the computer program causes a computer to execute the method for configuring touch parameters disclosed in the first aspect of the embodiments of the present application.
[0016] The fifth aspect of the embodiments of the present application discloses a computer program product, which, when running on a computer, causes the computer to execute some or all of the steps of any one of the methods disclosed in the first aspect of the embodiments of the present application.
[0017] The sixth aspect of the embodiments of the present application discloses an application publishing platform for publishing a computer program product, which, when running on a computer, causes the computer to execute some or all of the steps of any one of the methods disclosed in the first aspect of the embodiments of the present application.
[0018] Compared with the related art, the embodiments of the present application have the following beneficial effects:
[0019] In the embodiments of the present application, an electronic device can obtain one or more touch operations currently configured on the touch screen, and then flexibly configure corresponding coalescence parameters according to whether one or more currently configured touch operations include target touch operations that are easily misrecognized. The coalescence parameters reflect the probability of the touch screen triggering the coalescence function, thereby avoiding the situation that some multi-touchpoint touch operations are misrecognized due to triggering the coalescence function. In addition, the embodiments of the present application do not need to completely turn off the coalescence function, so it does not affect the normal triggering of the coalescence function when the coalescence function needs to be triggered, improving the flexibility and accuracy of touch recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0021] Figure 1 is a schematic diagram of a touch area disclosed in the embodiments of the present application;
[0022] Figure 2 is a flowchart of a method for configuring touch parameters disclosed in the embodiments of the present application;
[0023] Figure 3 It is a schematic diagram of a touch operation configuration interface disclosed in an embodiment of the present application;
[0024] Figure 4 It is a schematic flowchart of another method for configuring touch parameters disclosed in an embodiment of the present application;
[0025] Figure 5 It is a schematic flowchart of a method disclosed in an embodiment of the present application;
[0026] Figure 6 It is a schematic flowchart of yet another method for configuring touch parameters disclosed in an embodiment of the present application;
[0027] Figure 7 It is a schematic diagram of a system architecture disclosed in an embodiment of the present application;
[0028] Figure 8 It is a schematic diagram of the structure of a device for configuring touch parameters disclosed in an embodiment of the present application;
[0029] Figure 9 It is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application. Detailed implementation manners
[0030] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0031] It should be noted that the terms "first", "second", "third", and "fourth", etc. in the description and claims of the present application are used to distinguish different objects, rather than to describe a specific order. The terms "including" and "having" in the embodiments of the present application and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or are inherent to these processes, methods, products, or devices.
[0032] The embodiments of the present application disclose a method and device for configuring touch parameters, an electronic device, and a storage medium, which can improve the accuracy of touch recognition.
[0033] Next, the technical solutions of the present application will be described in detail in conjunction with specific embodiments.
[0034] To introduce the method for configuring touch parameters disclosed in the embodiments of the present application more clearly, first, the touch recognition logic in the related art will be introduced.
[0035] Taking the touch logic of a capacitive touch screen in the related art as an example, the capacitive touch screen technology works by using the current induction of the human body. When a finger touches the capacitive touch screen, due to the existence of the human body electric field, a coupling capacitor is formed between the human body and the surface of the capacitive touch screen. The finger absorbs a very small current from the contact point, thereby generating a capacitance signal. In addition to the finger, when other parts such as the cheek and ear touch the capacitive touch screen, a capacitance signal will also be generated, which will cause the capacitance value of the capacitance sensor in the touch area to change. That is to say, when the user performs a touch operation, the capacitance value of the capacitance sensor in the touch area will change. In this case, when the capacitive touch screen can detect a touch area where the capacitance value is different from other areas in the entire screen, it can determine that a touch operation of the user is detected.
[0036] Please refer to Figure 1 , Figure 1 which is a schematic diagram of a touch area disclosed in the embodiments of the present application. Optionally, the capacitive touch screen may include a transmitting channel 110 and a receiving channel 120. Among them, the X-axis is the receiving channel 120, and the Y-axis is the transmitting channel 110. The capacitance values of the transmitting channel 110 and the receiving channel 120 to the ground are self-capacitance data values, and the data values corresponding to the transmitting channel 110 and the receiving channel 120 themselves are mutual-capacitance data values. The mutual-capacitance data values are usually used to determine whether there is a touch operation on the capacitive touch screen (for example, a pressing operation or a lifting operation), while the self-capacitance data values are usually used for other auxiliary function judgments, such as the judgment of the proximity sensing function, etc., which are not limited herein. In this regard, Figure 1 the capacitance values exemplified in
[0037] may be mutual-capacitance data values. Among them, the peak points of the first area 130 and the second area 140 where the mutual-capacitance data values change can be touch points.
[0038] In practice, it is found that when the touch screen detects that two touch points are close enough to each other, the touch screen will trigger the point-merging function to merge the two adjacent touch points into one touch point for reporting. To a certain extent, the point-merging function can simplify the touch points and is beneficial to the touch recognition efficiency. However, when the user performs some multi-touch operations, it is easy to have misrecognition due to the triggering of the point-merging function, resulting in the touch screen reporting incorrect touch information to the processor. For example, when the user performs a two-finger swipe touch operation, due to the point-merging function, the touch screen may report it as a single-finger swipe touch operation. Furthermore, if the response event corresponding to the single-finger swipe touch operation is different from the response event corresponding to the two-finger swipe touch operation, it will cause the electronic device to make an incorrect response, reducing the user experience.
[0039] However, directly turning off the point-merging function will result in very complex touch points in some touch scenarios, which is not conducive to the touch screen for recognition.
[0040] In view of this, the embodiments of the present application disclose a method for configuring touch parameters to solve the above technical problems. Optionally, this method can be applied to various electronic devices including touch screens, such as portable electronic devices like mobile phones and tablets, wearable devices like smart watches and smart bracelets, etc., which are not limited herein. Among them: The electronic device can obtain one or more touch operations currently configured on the touch screen, and then flexibly configure the corresponding point-merging parameters according to the one or more touch operations currently configured. The point-merging parameters reflect the probability of the touch screen triggering the point-merging function, so that it is possible to avoid the situation that some multi-touch operations are prone to misrecognition due to the triggering of the point-merging function. In addition, the embodiments of the present application do not need to completely turn off the point-merging function, so it does not affect the normal triggering of the point-merging function when it is needed, improving the flexibility of triggering recognition and the recognition accuracy.
[0041] Based on this, the following introduces the method and device for configuring touch parameters, the electronic device, and the storage medium disclosed in the embodiments of the present application.
[0042] Please refer to Figure 2 , Figure 2 which is a schematic flowchart of a method for configuring touch parameters disclosed in the embodiments of the present application. Optionally, this method can be applied to the above-mentioned electronic device or other execution entities, which are not limited herein. Optionally, this method may include the following steps:
[0043] 202. Obtain one or more touch operations currently configured on the touch screen.
[0044] In the embodiments of the present application, the electronic device may include a capacitive touch screen or a resistive touch screen, which is not limited herein. Optionally, the touch screen may be a straight screen or a curved screen, etc., which is not limited herein. Among them, a curved screen is a screen whose edge is in a curved state.
[0045] A touch operation refers to an operation in which a user touches the touch screen with an object such as a finger or a stylus that can be detected by the touch screen, such as: click operation, swipe operation, and drawing a specific symbol (for example, drawing "O", drawing "V"), etc., which is not limited herein. Optionally, the touch operation may be set by developers based on a large amount of development experience, or may be user-defined, which is not limited herein.
[0046] Optionally, the touch operations of the touch screen can be flexibly configured. Generally, the electronic device only responds to the configured touch operations. Optionally, the electronic device may store a touch operation configuration table, and the touch operation configuration table includes one or more configured touch operations. Furthermore, the electronic device can determine one or more currently configured touch operations of the touch screen by querying the touch operation configuration table.
[0047] Please refer to Figure 3 , Figure 3 is a schematic diagram of a touch operation configuration interface disclosed in the embodiments of the present application. In some other optional embodiments, the electronic device may output a touch operation configuration interface 300. Among them, the touch operation configuration interface 300 may include enable switches 310 corresponding to one or more touch operations, and the user can configure the touch operations by turning on or off the enable switches 310. Optionally, when the enable switch 310 is in the on state, the electronic device may generate an enable instruction corresponding to the touch operation.
[0048] Optionally, the electronic device can detect one or more currently generated enable instructions, and then determine one or more currently configured touch operations of the touch screen according to the one or more enable instructions. For example Figure 3 in, the enable switches of "double-tap touch" and "draw O touch" are in the on state, then the electronic device will generate corresponding enable instructions, so that it can determine that the currently configured touch operations of the touch screen include "double-tap touch" and "draw O touch" according to the generated enable instructions.
[0049] By implementing the above method, the electronic device can output a touch operation configuration interface for the user to customize the configuration of touch operations, improving the interactivity and flexibility of the method and enhancing the user experience.
[0050] 204. Configure the coalescence point parameters according to one or more touch operations. The coalescence point parameters reflect the probability of the touch screen triggering the coalescence point function. The coalescence point function is a function in which the touch screen combines two adjacent detected touch points into one touch point for reporting.
[0051] In the embodiments of the present application, the electronic device can implement the touch point merging function through the touch point merging algorithm. The touch point merging function has been introduced above and will not be elaborated here. Among them, the touch point merging parameter can be a parameter that affects the probability of triggering the touch point merging function in the touch point merging algorithm. For example, the distance threshold. The electronic device can determine whether the distance between two adjacent touch points detected by the touch screen is less than the distance threshold through the touch point merging algorithm. If so, the touch point merging function is triggered.
[0052] That is to say, in the case of a smaller distance threshold, the two touch points need to be closer to trigger the touch point merging function, and the triggering probability of the touch point merging function is lower; conversely, if the distance threshold is larger, the probability that the distance between the two touch points satisfies being less than the distance threshold is greater, and thus the triggering probability of the touch point merging function is higher. In this regard, the electronic device can configure different distance thresholds to adjust the probability of the touch screen triggering the touch point merging function.
[0053] In the embodiments of the present application, for different touch operations, the desired probability of triggering touch point merging is different. For example, for touch operations such as two-finger swipe that are prone to misidentification due to the touch point merging function, it is better to have a lower probability of triggering the touch point merging function. For touch operations such as multi-finger click, in order to make the touch points more concise, it is better to have a higher probability of triggering the touch point merging function. In this regard, the embodiments of the present application can configure the touch point merging parameters according to one or more touch operations, so as to avoid the situation that some multi-touch point touch operations are prone to misidentification due to triggering the touch point merging function. In addition, it is not necessary to completely turn off the touch point merging function, so it does not affect the normal triggering of the touch point merging function when the touch point merging function needs to be triggered, improving the flexibility and accuracy of triggering recognition.
[0054] By implementing the methods disclosed in the above embodiments, the electronic device can obtain one or more touch operations currently configured on the touch screen, and then flexibly configure the corresponding touch point merging parameters according to whether the one or more touch operations currently configured include target touch operations that are prone to misidentification. The touch point merging parameter reflects the probability of the touch screen triggering the touch point merging function, so as to avoid the situation that some multi-touch point touch operations are misidentified due to triggering the touch point merging function. In addition, the embodiments of the present application do not need to completely turn off the touch point merging function, so it does not affect the normal triggering of the touch point merging function when the touch point merging function needs to be triggered, improving the flexibility and accuracy of touch recognition.
[0055] Please refer to Figure 4 , Figure 4 which is a schematic flowchart of another method for configuring touch parameters disclosed in the embodiments of the present application. Optionally, this method can be applied to the above-mentioned electronic device or other execution entities, which is not limited here. Optionally, this method may include the following steps:
[0056] 402. Obtain one or more touch operations of the current configuration of the touch screen.
[0057] When the electronic device obtains one or more touch operations of the current configuration of the touch screen, it can determine whether the one or more touch operations include a target touch operation. If so, perform step 404; if not, perform step 406.
[0058] 404. If the one or more touch operations include a target touch operation, configure the first pinch parameter. The target touch operation is a touch operation that is misrecognized after the pinch function is executed.
[0059] In the embodiments of the present application, the target touch operation may refer to a touch operation that is misrecognized after the pinch function is executed, including but not limited to a click touch operation and / or a multi-finger swipe operation. The click operation may include a click touch operation and / or multiple click touch operations (for example, a double-click touch operation), which is not limited herein.
[0060] It should be noted that, assuming that the user clicks the touch screen with two fingers together, it may be for two different touch points, but the touch screen triggers the pinch function and misrecognizes it as a single click touch operation. Another example is that when the user uses two fingers to click the touch screen multiple times and the multiple clicks all trigger the pinch function, the touch screen may misrecognize it as multiple click touch operations. To avoid misrecognizing the touch operation of two fingers as a single click touch operation, the click touch operation can be determined as the target touch operation. For the multi-finger swipe operation, there are multiple swipe tracks that are merged, resulting in misrecognition. Therefore, the multi-finger swipe operation can also be determined as the target touch operation.
[0061] Optionally, when the electronic device determines that the one or more touch operations include a target touch operation, it can configure the first pinch parameter with a lower probability of triggering the pinch function.
[0062] 406. If the one or more touch operations do not include a target touch operation, configure the second pinch parameter. The probability of the first pinch parameter triggering the pinch function is lower than the probability of the second pinch parameter triggering the pinch function.
[0063] When the electronic device determines that the one or more touch operations of the current configuration of the touch screen do not include a target touch operation, it can configure the second pinch parameter with a higher probability of triggering the pinch function, so as to ensure that the pinch function is appropriately triggered in the normal use scenario, simplify the touch points, and improve the touch recognition efficiency.
[0064] Optionally, the probability of the first pinch parameter triggering the pinch function can be lower than the probability of the second pinch parameter triggering the pinch function.
[0065] When implementing the above method, when the electronic device determines that one or more touch operations include a target touch operation, it can configure first coalescence parameters with a lower probability of triggering the coalescence function, thereby avoiding the misidentification of certain multi-touchpoint touch operations due to the triggering of the coalescence function. In addition, when one or more touch operations do not include the target touch operation, it can configure second coalescence parameters with a higher probability of triggering the coalescence function, thereby ensuring that the coalescence function is appropriately triggered in normal usage scenarios to simplify touchpoints, improve recognition efficiency, and improve the flexibility of coalescence parameter configuration.
[0066] In an alternative embodiment, the coalescence parameters may include a distance threshold. The distance threshold is used to trigger the coalescence function when the touch screen detects that the distance between two adjacent touch points is less than the distance threshold. Optionally, the first coalescence parameter includes a first distance threshold, and the second coalescence parameter includes a second distance threshold, and the first distance threshold is less than the second distance threshold.
[0067] As described above, the smaller the distance threshold, the closer the two touch points need to be to trigger the coalescence function, and the lower the probability of triggering the coalescence function. Conversely, the larger the distance threshold, the greater the probability that the distance between the two touch points satisfies being less than the distance threshold, and thus the higher the probability of triggering the coalescence function. In this regard, setting the first distance threshold to be less than the second distance threshold can achieve the effect of making the probability of the touch screen triggering the coalescence function lower when the first distance threshold is configured.
[0068] Optionally, the first distance threshold and the second distance threshold can be set by developers based on a large amount of development experience, or can be set by users according to actual usage requirements. Typical values of the first distance threshold can include 8mm, 9mm, or 10mm, and typical values of the second distance threshold can include 16mm, 18mm, or 20mm, etc., which are not limited herein.
[0069] When implementing the above method, the electronic device can adjust the probability that the distance between two touch points satisfies being less than the distance threshold by adjusting the distance threshold in the coalescence parameters, thereby achieving the adjustment of the probability of the touch screen triggering the coalescence function. This method is simple and direct, and the effect is remarkable.
[0070] In another alternative embodiment, the coalescence parameters may include the number of touch frames corresponding to the target touch information. The target touch information is the touch information for the touch screen to determine whether to perform the coalescence function. The accuracy rate of the touch screen determining whether to perform the coalescence function is positively correlated with the number of touch frames.
[0071] Optionally, the target touch information may be the touch information corresponding to the target touch operation detected by the touch screen. When the touch screen detects the target touch operation, it may collect the target touch information in the form of frame by frame. Furthermore, the touch screen may determine whether to execute the point combination function according to one frame or multiple frames of target touch information. Among them, the more the number of frames of the target touch information used to determine whether to execute the point combination function, the more target touch information the touch screen can refer to, and the higher the accuracy of determining whether to execute the point combination function. On the contrary, the lower the accuracy, that is, the accuracy of the touch screen in determining whether to execute the point combination function is positively correlated with the number of touch frames corresponding to the target touch information.
[0072] Optionally, the first point combination parameter includes the first touch frame number, the second point combination parameter includes the second touch frame number, and the first touch frame number may be greater than the second touch frame number. Among them, the first touch frame number being greater than the second touch frame number indicates that when the first touch frame number is configured, the accuracy of the touch screen in determining whether to execute the point combination function is higher, so the probability of mis-determining that the point combination function needs to be executed is lower, reducing the number of times the point combination function is executed and lowering the probability of triggering the point combination function. That is to say, the probability of triggering the point combination function when the first point combination parameter is the first touch frame number is lower than the probability of triggering the point combination function when the second point combination parameter is the second touch frame number.
[0073] Optionally, the first touch frame number and the second touch frame number may be set by developers based on a large amount of development experience, or may be set by users according to actual usage requirements, which is not limited here.
[0074] By implementing the above method, the electronic device can adjust the accuracy of the touch screen in determining whether to execute the point combination function by adjusting the touch frame number in the point combination parameter, so as to adjust the probability of the touch screen triggering the point combination function. This method is simple and direct, and the effect is remarkable.
[0075] Optionally, the first point combination parameter may include the first distance threshold and the first touch frame number, and the second point combination parameter may include the second distance threshold and the second touch frame number. That is, when the electronic device determines that one or more touch operations include the target touch operation, it may configure the distance threshold as the first distance threshold and the touch frame number as the first touch frame number; when one or more touch operations do not include the target touch operation, it may configure the distance threshold as the second distance threshold and the touch frame number as the second touch frame number, thereby improving the adjustment effect on the probability of triggering the point combination function.
[0076] Implementing the methods disclosed in the above embodiments can avoid the mis-identification of certain multi-touchpoint touch operations due to the triggering of the point-merge function. In addition, the embodiments of the present application do not need to completely turn off the point-merge function, so it does not affect the normal triggering of the point-merge function when the point-merge function needs to be triggered, improving the flexibility and accuracy of touch recognition; and, when the electronic device determines that one or more touch operations include the target touch operation, it can configure the first point-merge parameter with a lower probability of triggering the point-merge function, thereby avoiding the mis-identification of certain multi-touchpoint touch operations due to the triggering of the point-merge function; in addition, when one or more touch operations do not include the target touch operation, it can configure the second point-merge parameter with a higher probability of triggering the point-merge function, thereby ensuring that the point-merge function is appropriately triggered in normal usage scenarios to simplify touch points, improve recognition efficiency, and improve the flexibility of point-merge parameter configuration; and, the electronic device can adjust the distance threshold in the point-merge parameter to adjust the probability that the distance between two touch points satisfies less than the distance threshold, thereby achieving the adjustment of the probability of the touch screen triggering the point-merge function. This method is simple and direct, and the effect is significant; and, the electronic device can adjust the number of touch frames in the point-merge parameter to adjust the accuracy of the touch screen in determining whether to execute the point-merge function, thereby achieving the adjustment of the probability of the touch screen triggering the point-merge function. This method is simple and direct, and the effect is significant.
[0077] To introduce the embodiments of the present application more clearly, the following takes the point-merge parameter as the distance threshold as an example, and combines Figure 5 to introduce the process of the method for configuring touch parameters disclosed in the embodiments of the present application. Figure 5 It is a schematic flowchart of a method disclosed in the embodiments of the present application.
[0078] Among them, step 502: The electronic device receives the configuration result of one or more input touch operations;
[0079] Step 504: When the touch screen switches to the black screen state, the electronic device can generate an enable instruction corresponding to one or more touch operations according to the configuration result;
[0080] Step 506: The touch screen can determine one or more touch operations currently configured on the touch screen according to the detected one or more enable instructions;
[0081] Step 508: The touch screen determines whether one or more touch operations include a target touch operation, where the target touch operation is a touch operation with mis-identification after the point-merge function is executed; if so, execute step 510; if not, execute step 512;
[0082] Step 510: Configure the point-merge parameter as the first distance threshold, and then execute step 514;
[0083] Step 512: Configure the coalescence point parameter to the second distance threshold, and then execute Step 514, where the first distance threshold is less than the second distance threshold;
[0084] Step 514: If there are multiple touch points in the real-time touch operation collected by the touch screen, determine whether the distance between two adjacent touch points is less than the distance threshold corresponding to the currently configured coalescence point parameter; if so, execute Step 516; if not, execute Step 518;
[0085] Step 516: Execute the coalescence point function and report the touch operation information after coalescence;
[0086] Step 518: Do not execute the coalescence point function and directly report the collected touch operation information.
[0087] Please refer to Figure 6 , Figure 6 which is a schematic flowchart of another method for configuring touch parameters disclosed in the embodiments of the present application. Optionally, this method can be applied to the above-mentioned electronic device or other execution entities, which is not limited herein. Optionally, this method may include the following steps:
[0088] 602. In the case where the touch screen is in the black screen state, obtain one or more touch operations currently configured on the touch screen.
[0089] In the embodiments of the present application, one or more touch operations may include black screen touch operations. A black screen touch operation is a touch operation that the touch screen will also respond to when it is in the black screen state. The black screen state refers to the state where the touch screen operates in a low power consumption state.
[0090] Optionally, when the electronic device detects that the enable switch corresponding to the black screen touch operation is in the on state, it may generate a corresponding enable instruction. Further, when the touch screen switches to the black screen state, the electronic device may determine one or more black screen touch operations currently configured on the touch screen according to one or more enable instructions detected currently.
[0091] Considering that in the black screen state, the touch operations of the user on the touch screen are usually pre-configured black screen touch operations, and there is usually no situation where the touch points are very complicated in the black screen state. Therefore, in the black screen state, there is no need for a high coalescence probability. By implementing the above method, the electronic device can flexibly configure the corresponding coalescence point parameters according to one or more black screen touch operations currently configured when the touch screen is in the black screen state, so as to avoid the misrecognition of some multi-touch point black screen touch operations due to the triggering of the coalescence point function, and improve the flexibility and recognition accuracy of touch recognition in the black screen state.
[0092] 604. Configure the coalescence parameters according to one or more touch operations. The coalescence parameters reflect the probability of the touch screen triggering the coalescence function, and the coalescence function is a function in which the touch screen combines two adjacent detected touch points into one touch point for reporting.
[0093] Optionally, when the touch screen is in the black screen state, if one or more touch operations include a target touch operation, configure the first coalescence parameter; if one or more touch operations do not include the target touch operation, configure the second coalescence parameter; the probability of the first coalescence parameter triggering the coalescence function is lower than the probability of the second coalescence parameter triggering the coalescence function.
[0094] Optionally, when the touch screen is in the lit screen state, the coalescence parameter can be configured as the third coalescence parameter; wherein, the probability of the first coalescence parameter triggering the coalescence function is lower than the probability of the third coalescence parameter triggering the coalescence function, and the third coalescence parameter can be the same as the second coalescence parameter or different from the second coalescence parameter, which is not limited herein.
[0095] As an optional implementation manner, after configuring the coalescence parameters according to one or more touch operations, if the number of times the electronic device repeatedly detects the same type of target touch operation is greater than or equal to the number threshold, it may be that the touch screen has erroneously triggered the coalescence function, resulting in the actual touch operation made by the user being inconsistent with the touch operation finally recognized by the touch screen, and further resulting in the user repeatedly making the same type of target touch operation. Optionally, the electronic device can adjust the currently configured coalescence parameters to reduce the probability of the touch screen triggering the coalescence function.
[0096] Optionally, when the coalescence parameter is the distance threshold, the electronic device can reduce the distance threshold to reduce the probability of the touch screen triggering the coalescence function. In another optional embodiment, when the coalescence parameter is the number of touch frames, the electronic device can increase the number of touch frames to reduce the probability of the touch screen triggering the coalescence function, which is not limited herein.
[0097] Optionally, the number threshold can be set by the developer according to a large amount of development experience or by the user according to usage requirements. Typical values can include 5 times, 6 times, or 8 times, etc., which are not limited herein.
[0098] Implementing the above method, the electronic device can determine that it may be that the touch screen has erroneously triggered the coalescence function when repeatedly detecting the same type of target touch operation, resulting in the actual touch operation made by the user being inconsistent with the touch operation finally recognized by the touch screen, and further resulting in the user repeatedly making the same type of target touch operation. Optionally, the electronic device can adjust the currently configured coalescence parameters to reduce the probability of the touch screen triggering the coalescence function, achieving the flexibility and intelligence of parameter configuration.
[0099] As an alternative implementation, after configuring the coalescing parameters according to one or more touch operations, if multiple touch points are detected in the real-time touch operation, the electronic device can determine whether the real-time touch operation is a touch operation triggered by a stylus; if so, it can adjust the currently configured coalescing parameters to reduce the probability of the touch screen triggering the coalescing function to the maximum value. Optionally, when the coalescing parameter is a distance threshold, the currently configured distance threshold can be adjusted to be greater than or equal to a third distance threshold to reduce the probability of the touch screen triggering the coalescing function to the maximum value.
[0100] Optionally, the electronic device can determine whether the real-time touch operation is a touch operation triggered by a stylus when it determines that the shape of the touch area corresponding to the real-time touch operation matches the shape of the touch part of the stylus; or when no fingerprint is detected in the touch area corresponding to the real-time touch operation, determine whether the real-time touch operation is a touch operation triggered by a stylus, which is not limited here.
[0101] It can be understood that usually only one touch point appears for a stylus. If multiple touch points appear, it may be that the finger holding the stylus accidentally touches the touch screen. In this case, the probability of the touch screen triggering the coalescing function is reduced to the maximum value to merge the touch points of the finger into the touch point of the stylus as much as possible to achieve precise touch of the stylus.
[0102] Implementing the methods disclosed in the above embodiments can avoid the misidentification of some multi-touch-point touch operations due to triggering the coalescing function. In addition, the embodiments of the present application do not need to completely turn off the coalescing function, so it does not affect the normal triggering of the coalescing function when the coalescing function needs to be triggered, improving the flexibility and accuracy of touch recognition; and, the electronic device can flexibly configure the corresponding coalescing parameters according to one or more black-screen touch operations configured currently when the touch screen is in the black-screen state, thereby avoiding the misidentification of some multi-touch-point black-screen touch operations due to triggering the coalescing function, improving the flexibility and accuracy of touch recognition in the black-screen state; and, when the electronic device repeatedly detects the same type of target touch operation, it can be determined that it may be due to the touch screen accidentally triggering the coalescing function, resulting in the actual touch operation made by the user being inconsistent with the touch operation finally recognized by the touch screen, and then the user repeatedly makes the same type of target touch operation. In this regard, optionally, the electronic device can adjust the currently configured coalescing parameters to reduce the probability of the touch screen triggering the coalescing function, achieving the flexibility and intelligence of parameter configuration.
[0103] Please refer to Figure 7 , Figure 7It is a schematic diagram of a system architecture disclosed in an embodiment of the present application. Optionally, the electronic device may include a touch screen system 710 and a terminal system 720, where: the touch screen system 710 is used for logical calculation and control of the touch screen, and the terminal system 720 is used for logical calculation and control of event tasks inside the electronic device.
[0104] Optionally, the touch screen system 710 may include a CPU (Central Processing Unit) of the single-chip microcomputer type, a memory (for example, a random access memory), a power supply, etc., which are not limited herein. Optionally, the terminal system 720 may include devices such as a processor and a memory, which are not limited herein.
[0105] Optionally, the touch screen system 710 triggers an interrupt signal through the INT pin, and then obtains the data in the touch screen system 710 through the terminal system 720. Optionally, the terminal system 720 sets the touch screen system 710 through the 2C or SPI interface, which is not limited herein.
[0106] Among them, the touch screen system 710 can be used to collect touch information corresponding to a touch operation, perform functions such as point coalescence on the touch information, and then report the touch information to the terminal system 720; and then the terminal system 720 can perform a corresponding response operation on the reported touch information.
[0107] Please refer to Figure 8 , Figure 8 It is a schematic diagram of the structure of a touch parameter configuration device disclosed in an embodiment of the present application. Optionally, the device may be applied to the above-mentioned electronic device or other execution entities, which are not limited herein. Optionally, the device may include an acquisition unit 802 and a configuration unit 804, where:
[0108] The acquisition unit 802 is used to acquire one or more touch operations currently configured on the touch screen;
[0109] The configuration unit 804 is used to configure point coalescence parameters according to one or more touch operations. The point coalescence parameters reflect the probability of the touch screen triggering the point coalescence function. The point coalescence function is the function of the touch screen to merge two adjacent detected touch points into one touch point for reporting.
[0110] Implementing the above device, the electronic device can obtain one or more touch operations currently configured on the touch screen, and then flexibly configure corresponding coalescence parameters according to whether one or more touch operations currently configured include target touch operations that are prone to misrecognition. The coalescence parameters reflect the probability of the touch screen triggering the coalescence function, thereby avoiding the situation where some multi-touchpoint touch operations are misrecognized due to triggering the coalescence function. In addition, in the embodiments of the present application, it is not necessary to completely turn off the coalescence function, so it does not affect the normal triggering of the coalescence function when the coalescence function needs to be triggered, improving the flexibility and recognition accuracy of touch recognition.
[0111] As an alternative implementation, the configuration unit 804 is further configured to obtain one or more touch operations currently configured on the touch screen when the touch screen is in the black screen state, and the one or more touch operations are touch operations that the touch screen responds to in the black screen state.
[0112] Implementing the above device, the electronic device can flexibly configure corresponding coalescence parameters according to one or more black screen touch operations currently configured when the touch screen is in the black screen state, thereby avoiding the situation where some multi-touchpoint black screen touch operations are easily misrecognized due to triggering the coalescence function, and improving the flexibility and recognition accuracy of touch recognition in the black screen state.
[0113] As an alternative implementation, the configuration unit 804 is further configured to configure a first coalescence parameter when one or more touch operations include a target touch operation, where the target touch operation is a touch operation that is misrecognized after performing the coalescence function; or, configure a second coalescence parameter when one or more touch operations do not include a target touch operation, and the probability of the first coalescence parameter triggering the coalescence function is lower than the probability of the second coalescence parameter triggering the coalescence function.
[0114] Implementing the above device, when the electronic device determines that one or more touch operations include a target touch operation, it can configure a first coalescence parameter with a lower probability of triggering the coalescence function, thereby avoiding the situation where some multi-touchpoint touch operations are misrecognized due to triggering the coalescence function; in addition, when one or more touch operations do not include a target touch operation, it can configure a second coalescence parameter with a higher probability of triggering the coalescence function, thereby ensuring that the coalescence function is appropriately triggered in normal usage scenarios to simplify touch points, improve recognition efficiency, and improve the flexibility of coalescence parameter configuration.
[0115] As an alternative embodiment, the pinch point parameter includes a distance threshold. When the distance between two adjacent touch points detected by the touch screen is less than the distance threshold, the pinch point function is triggered. The first pinch point parameter includes a first distance threshold, and the second pinch point parameter includes a second distance threshold, where the first distance threshold is less than the second distance threshold.
[0116] By implementing the above device, the electronic device can adjust the distance threshold in the pinch point parameter to adjust the probability that the distance between two touch points satisfies being less than the distance threshold, thereby achieving the adjustment of the probability of the touch screen triggering the pinch point function. This method is simple and direct, and the effect is remarkable.
[0117] As an alternative embodiment, the pinch point parameter includes the number of touch frames corresponding to the target touch information, where the target touch information is the touch information for the touch screen to determine whether to execute the pinch point function. The accuracy rate of the touch screen determining whether to execute the pinch point function is positively correlated with the number of touch frames. The first pinch point parameter includes a first number of touch frames, and the second pinch point parameter includes a second number of touch frames, where the first number of touch frames is greater than the second number of touch frames.
[0118] By implementing the above device, the electronic device can adjust the number of touch frames in the pinch point parameter to adjust the accuracy rate of the touch screen determining whether to execute the pinch point function, thereby achieving the adjustment of the probability of the touch screen triggering the pinch point function. This method is simple and direct, and the effect is remarkable.
[0119] As an alternative embodiment, the target touch operation includes a click touch operation and / or a multi-finger swipe operation, and the click touch operation includes a single click touch operation and / or a multiple click touch operation.
[0120] As an alternative embodiment, Figure 8 The device shown may further include an output unit not shown in the figure, where:
[0121] The output unit is configured to output a touch operation configuration interface before obtaining one or more touch operations currently configured on the touch screen. The touch operation configuration interface includes enable switches corresponding to one or more touch operations. When the enable switch is in the on state, the electronic device generates an enable instruction for the corresponding touch operation.
[0122] In addition, the obtaining unit 802 is further configured to determine one or more touch operations currently configured on the touch screen according to one or more currently detected enable instructions.
[0123] By implementing the above device, the electronic device can output a touch operation configuration interface for the user to customize the touch operation, improving the interactivity and flexibility of the method and enhancing the user experience.
[0124] As an alternative embodiment,Figure 8 The device shown may also include an adjustment unit (not shown), where:
[0125] The adjustment unit is configured to, after configuring the coalescence point parameters according to one or more touch operations, if the number of times the same type of target touch operation is repeatedly detected is greater than or equal to the number threshold, adjust the currently configured coalescence point parameters to reduce the probability of the touch screen triggering the coalescence point function.
[0126] Implementing the above device, the electronic device can, in the case of repeatedly detecting the same type of target touch operation, determine that it may be due to the touch screen accidentally triggering the coalescence point function, resulting in the touch operation actually made by the user being inconsistent with the touch operation finally recognized by the touch screen, and further causing the user to repeatedly make the same type of target touch operation. Optionally, the electronic device can adjust the currently configured coalescence point parameters to reduce the probability of the touch screen triggering the coalescence point function, achieving the flexibility and intelligence of parameter configuration.
[0127] Please refer to Figure 9 , Figure 9 which is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.
[0128] As Figure 9 shown, the electronic device may include:
[0129] A memory 901 storing executable program code;
[0130] A processor 902 coupled to the memory 901;
[0131] Wherein, the processor 902 calls the executable program code stored in the memory 901 to execute the configuration method of the touch parameters disclosed in the above embodiments.
[0132] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program causes a computer to execute the configuration method of the touch parameters disclosed in the above embodiments.
[0133] An embodiment of the present application also discloses an application publishing platform, where the application publishing platform is used to publish a computer program product, and when the computer program product runs on a computer, it causes the computer to execute some or all of the steps of the methods in the above method embodiments.
[0134] It should be understood that the "one embodiment" or "an embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, the "in one embodiment" or "in an embodiment" that appears throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. Those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily essential to the present application.
[0135] In various embodiments of the present application, it should be understood that the magnitude of the sequence numbers of the above processes does not necessarily mean the inevitable sequence of execution order. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
[0136] The units described as separate components above may or may not be physically separated. The components shown as units may or may not be physical units, that is, they can be located in one place, or they can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0137] In addition, in each embodiment of the present application, each functional unit can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0138] If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions for causing a computer device (which can be a personal computer, a server or a network device, etc., specifically, the processor in the computer device) to execute some or all of the steps of the above methods in each embodiment of the present application.
[0139] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and this program can be stored in a computer-readable storage medium. The storage medium includes read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc memories, magnetic disc memories, tape memories, or any other medium that can be used to carry or store data and is computer-readable.
[0140] The above has introduced in detail the method and device for configuring touch control parameters, electronic device, and storage medium disclosed in the embodiments of the present application. Specific examples are used herein to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present application.
Claims
1. A method for configuring touch parameters, characterized in that, Applied to an electronic device, the electronic device including a touch screen, the method comprising: Obtaining one or more touch operations currently configured on the touch screen; Configuring a coalescence parameter according to the one or more touch operations, the coalescence parameter reflecting the probability of the touch screen triggering a coalescence function, the coalescence function being a function in which the touch screen combines two adjacent detected touch points into one touch point for reporting.
2. The method according to claim 1, wherein The obtaining one or more touch operations currently configured on the touch screen includes: When the touch screen is in a black screen state, obtaining one or more touch operations currently configured on the touch screen, the one or more touch operations being touch operations that the touch screen will respond to in the black screen state.
3. The method according to claim 1, characterized in that The configuring a coalescence parameter according to the one or more touch operations includes: If the one or more touch operations include a target touch operation, configuring a first coalescence parameter, the target touch operation being a touch operation that is misrecognized after the coalescence function is executed; If the one or more touch operations do not include the target touch operation, configuring a second coalescence parameter, the probability of the first coalescence parameter triggering the coalescence function being lower than the probability of the second coalescence parameter triggering the coalescence function.
4. The method according to claim 3, wherein The coalescence parameter includes a distance threshold, wherein the distance threshold is used to trigger the coalescence function when the distance between two adjacent touch points detected on the touch screen is less than the distance threshold; The first coalescence parameter includes a first distance threshold, the second coalescence parameter includes a second distance threshold, and the first distance threshold is less than the second distance threshold.
5. The method according to claim 3, characterized in that, The coalescence parameter includes the number of touch frames corresponding to target touch information, the target touch information being touch information for which the touch screen determines whether to execute the coalescence function, wherein the accuracy rate of the touch screen determining whether to execute the coalescence function is positively correlated with the number of touch frames; The first coalescence parameter includes a first number of touch frames, the second coalescence parameter includes a second number of touch frames, and the first number of touch frames is greater than the second number of touch frames.
6. The method according to any one of claims 2 to 5, characterized in that, The target touch operation includes a click touch operation and / or a multi-finger swipe operation, the click touch operation including a single click touch operation and / or a multiple click touch operation.
7. The method according to any one of claims 1 to 5, characterized in that, Before the obtaining one or more touch operations currently configured on the touch screen, the method further includes: Outputting a touch operation configuration interface, the touch operation configuration interface including enable switches corresponding to one or more touch operations, and when the enable switch is in an on state, the electronic device generates an enable instruction corresponding to the touch operation; And, the obtaining one or more touch operations currently configured on the touch screen includes: Determining one or more touch operations currently configured on the touch screen according to one or more currently detected enable instructions.
8. The method according to any one of claims 1 to 5, characterized in that After the configuring a coalescence parameter according to the one or more touch operations, the method further includes: If the number of times of repeatedly detecting the same type of target touch operation is greater than or equal to a number threshold, adjusting the currently configured coalescence parameter to reduce the probability of the touch screen triggering the coalescence function.
9. A configuration device for touch parameters, characterized in that, Applied to an electronic device, the electronic device includes a touch screen, and the device includes: An acquisition unit, configured to acquire one or more touch operations currently configured on the touch screen; A configuration unit, configured to configure coalescence parameters according to the one or more touch operations, where the coalescence parameters reflect the probability of the touch screen triggering a coalescence function, and the coalescence function is a function in which the touch screen combines two adjacent detected touch points into one touch point for reporting.
10. An electronic device, characterized in that, It includes a memory storing executable program code, and a processor coupled to the memory; wherein, the processor calls the executable program code stored in the memory to execute the method according to any one of claims 1 to 8.
11. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the method according to any one of claims 1 to 8.