Touch recognition method and electronic device

By preprocessing and weighting the touch panel data in electronic devices, the success rate of finger joint recognition is improved, the problem of high error rate of finger joint recognition is solved, and the user interaction experience is improved.

CN117687558BActive Publication Date: 2024-10-22HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310842550.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-10
Publication Date
2024-10-22
Estimated Expiration
2043-07-10

AI Technical Summary

Technical Problem

When electronic devices recognize knuckle touch operations, the error rate is high, resulting in poor user interaction experience. Especially when the screen effect is poor, the knuckle recognition error rate is high, affecting response accuracy.

Method used

By receiving the user's touch operation, the touch panel data is obtained and preprocessed, including determining whether the inner circle mean and gradient values ​​meet a specific range. If so, weighting is performed to increase the probability of knuckle recognition and improve the recognition success rate. Specific methods include adding and subtracting weights to the outer and inner ring capacitance values, and adjusting gradient features to improve the recognition accuracy of the neural network model.

Benefits of technology

It significantly improves the success rate of knuckle recognition, reduces the false recognition rate, improves the user interaction experience, and ensures accurate response to touch operations, especially when the screen effect is poor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117687558B_ABST
    Figure CN117687558B_ABST
Patent Text Reader

Abstract

A touch recognition method and electronic device, including receiving a first touch operation of a user, obtaining first touch panel TP data in response to the first touch operation; the first TP data is a capacitance matrix; when the first TP data meets a preprocessing condition, performing a first weighted processing on the first TP data to obtain preprocessed data; wherein the preprocessing condition includes that the inner circle mean of the first TP data is less than or equal to the first inner circle value; the inner circle mean coordinates of the first TP data are the mean of the capacitance values ​​corresponding to the coordinates of the capacitance matrix immediately outside the center point; inputting the preprocessed data into a neural network model to obtain a first recognition result; the first recognition result is used to indicate whether the first touch operation is a finger joint touch operation. The embodiment of the present application is used to improve the success rate of finger joint recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of terminal devices, and in particular to a touch recognition method and an electronic device. Background Art

[0002] In order to facilitate users to use electronic devices, electronic devices can provide corresponding responses for different touch types. Touch operation types may include touch types of knuckles, fingertips, and finger pulps. For example, knuckle operations can take screenshots and record screens. However, when the screen effect of the electronic device is poor, the recognition error rate of the knuckles is relatively high, resulting in incorrect responses of the electronic device and poor user interaction experience. Summary of the invention

[0003] The present application provides a touch recognition method and an electronic device, which can improve the success rate of finger joint recognition.

[0004] In a first aspect, the present application provides a touch recognition method, which is applied to an electronic device, comprising: receiving a first touch operation of a user, and obtaining first touch panel TP data in response to the first touch operation; the first TP data is a capacitance matrix; when the first TP data satisfies a preprocessing condition, performing a first weighted processing on the first TP data to obtain preprocessed data; wherein the preprocessing condition includes that the inner circle mean of the first TP data is less than or equal to the first inner circle value; the inner circle mean is the mean of the capacitance values ​​corresponding to the coordinates of a circle immediately outside the center point in the capacitance matrix; inputting the preprocessed data into a neural network model to obtain a first recognition result; the first recognition result is used to indicate whether the first touch operation is a knuckle touch operation.

[0005] Among them, the neural network model is a neural network model that has been trained in advance and has been stored in the electronic device in advance.

[0006] In the embodiment of the present application, the neural network model recognition result of the TP data that meets the preprocessing conditions is often more inclined to the finger joint touch type, or the TP data that meets the preprocessing conditions is judged to be more likely to be the finger joint touch data. In order to increase the probability of identifying such data as the finger joint type, weighted processing can be performed, so that after the TP data that meets the preprocessing conditions is judged to be weighted, the preprocessed data is more likely to be the finger joint type than the recognition result of the TP data, thereby increasing the recognition success rate.

[0007] In a possible implementation, the first inner circle value ranges from 500 to 800. Thus, through experiments and detection of fingertip and knuckle data, it is found that when the value is less than or equal to the inner circle value in the above range, the touch result tends to be a knuckle type. Therefore, the above data range can ensure that the touch type that meets the preprocessing conditions may be a knuckle touch type, thereby improving the accuracy of preprocessing.

[0008] In a possible implementation, the preprocessing condition also includes that the gradient value of the first TP data is greater than or equal to the first gradient value; the gradient value of the first TP data is the ratio of the outer circle mean to the inner circle mean; the outer circle mean is the mean of the capacity values ​​corresponding to the coordinates of a circle adjacent to the outer side of the inner circle in the capacity matrix. In this way, in the range where the gradient value is greater than or equal to the first gradient value, the neural network model recognition result of the TP data tends to be more inclined to the finger joint touch type, or the TP data that meets the preprocessing condition is more likely to be the finger joint touch data. In order to increase the probability of identifying such data as the finger joint type, weighted processing can be performed, so that after the TP data that meets the preprocessing condition is weightedly processed, the recognition result of the preprocessed data is more likely to be the finger joint type than the TP data, thereby improving the recognition success rate.

[0009] In a possible implementation, the first gradient value ranges from 0.1 to 0.15. Thus, through experiments and detection of fingertip and knuckle data, it is found that when the gradient value is greater than or equal to the above range, the touch result tends to be a knuckle type. Therefore, the above data range can ensure that the touch type that meets the preprocessing conditions may be a knuckle touch type, thereby improving the accuracy of preprocessing.

[0010] In a possible implementation, the first TP data is weighted to obtain preprocessed data, including: incrementally weighting the outer circle capacity value of the first TP data to obtain the preprocessed data. In this way, the weighted process can increase the outer circle capacity value, increase the gradient value of the current TP data, and appropriately increase the low gradient features, so that after the TP data that is judged to meet the preprocessing conditions is weighted, the recognition result of the preprocessed data is more likely to be a finger joint type than the TP data, thereby improving the recognition success rate.

[0011] In a possible implementation, the incremental weighting of the outer ring capacitance of the first TP data includes: increasing the outer ring capacitance of the first TP data by the ratio of the outer ring increase ratio, or increasing the outer ring capacitance of the first TP data by the outer ring increase amount, to obtain preprocessed data; the outer ring increase ratio is the increase ratio of the outer ring capacitance of the preprocessed data compared to the outer ring capacitance of the first TP data. In this way, the electronic device can increase the outer ring capacitance according to a certain ratio or a fixed value, and the gradient value can be increased. While ensuring the original characteristics of the TP data, the data is adjusted to improve the accuracy of the output of the neural network model, thereby improving the recognition success rate.

[0012] In a possible implementation, the outer ring increase ratio ranges from 1% to 30%. In this way, the outer ring increase ratio range can ensure that each outer ring capacitance value has its incremental data, and the increment accuracy is higher. In addition, the outer ring increase ratio range can ensure that the increase does not affect the original characteristics of the TP data, thereby improving the recognition success rate.

[0013] In a possible implementation, the first TP data is weighted to obtain preprocessed data, including: reducing the inner circle content value of the TP data by the ratio of the inner circle reduction ratio, or reducing the inner circle content value of the first TP data by the inner circle reduction amount to obtain the preprocessed data; the inner circle reduction ratio is the reduction ratio of the inner circle content value of the preprocessed data compared to the inner circle content value of the first TP data. In this way, the electronic device can reduce the inner circle content value according to a certain ratio or a fixed value, and the gradient value can be increased, so as to adjust the data while ensuring the original characteristics of the TP data, improve the accuracy of the output of the neural network model, and thus improve the recognition success rate.

[0014] In a possible implementation, before performing the first weighted processing on the first TP data, the method further includes: the electronic device obtains the first ACC data of the first touch operation, and when the ACC data is greater than or equal to the first ACC threshold, determines whether the first TP data satisfies the preprocessing condition. In this way, the user's finger joint touch force is generally greater than the fingertip and finger pulp touch, so this part of the TP data can be screened out for finger joint recognition, ensuring the necessity and accuracy of TP data recognition, and also filtering part of the data volume, improving processing efficiency.

[0015] The ACC data is acceleration data of the user's touch acquired by the electronic device.

[0016] In a possible implementation, before performing the first weighted processing on the first TP data, the method further includes: if the area of ​​the first TP data satisfies the area condition, determining whether the first TP data satisfies the preprocessing condition. In this way, the electronic device can directly filter out the data of the first TP data that have a large area, generally the finger pulp type, to ensure the accuracy of data processing.

[0017] The area amount of the first TP data satisfying the area condition may be that the area amount of the first TP data is greater than or equal to a first area threshold condition.

[0018] In a possible implementation, the method further includes: when the first TP data does not meet the preprocessing condition, inputting the first TP data into the neural network model to obtain a second recognition result; the second recognition result is used to indicate whether the first touch operation is a knuckle touch operation. In this way, when the electronic device determines that the preprocessing condition is not met, the electronic device does not process the TP data, and can directly input the TP data into the neural network model to obtain a recognition result, thereby improving the recognition success rate, reducing the processing flow, and improving the processing efficiency.

[0019] In a second aspect, the present application provides a touch recognition method, which is applied to an electronic device, including: receiving a second touch operation of a user, and obtaining second TP data in response to the second touch operation; the second TP data is a capacitance matrix; when the second TP data does not meet a preprocessing condition, performing a second weighted processing on the second TP data to obtain preprocessed data; wherein the preprocessing condition includes that the inner circle mean of the second TP data is less than or equal to the first inner circle value; the inner circle mean is the mean of the capacitance values ​​corresponding to a circle of coordinates immediately outside the center point in the capacitance matrix; inputting the preprocessed data into a neural network model to obtain a third recognition result; the third recognition result is used to indicate whether the first touch operation is a knuckle touch operation.

[0020] In the embodiment of the present application, the neural network model recognition result of the TP data that does not meet the preprocessing conditions is often more inclined to not be a finger joint touch type, and the TP data that does not meet the preprocessing conditions is more likely to be not finger joint touch data. In order to increase the probability of identifying such unsatisfactory data as non-fingers joint types, weighted processing can be performed, so that the TP data that does not meet the preprocessing conditions can be subjected to weighted processing, thereby reducing the recognition error rate.

[0021] In a possible implementation, the preprocessing condition also includes that the gradient value of the second TP data is greater than or equal to the first gradient value; the gradient value of the second TP data is the ratio of the outer circle mean to the inner circle mean; the outer circle mean is the mean of the capacity values ​​corresponding to the coordinates of a circle adjacent to the outer side of the inner circle in the capacity matrix. In this way, it is judged that the TP data that does not meet the preprocessing condition is more likely to be non-fingertip touch data. In order to increase the probability of TP data that does not meet the preprocessing condition being identified as a fingertip type, weighted processing can be performed, so that the TP data that does not meet the preprocessing condition is more likely to be a non-finger joint type after weighted processing than the identification result of the TP data, thereby reducing the probability of misidentification as a finger joint touch.

[0022] In a possible implementation, the second TP data is subjected to a second weighted processing to obtain preprocessed data, including: increasing the inner circle content value of the second TP data by the ratio of the inner circle increase ratio, or increasing the inner circle content value of the second TP data by the inner circle increase amount to obtain the preprocessed data; the inner circle increase ratio is the increase ratio of the inner circle content value of the preprocessed data compared to the inner circle content value of the second TP data. In this way, the weighted process can increase the inner circle content value and reduce the gradient value of the current TP data, thereby appropriately reducing the gradient feature, so that after the TP data that is judged not to meet the preprocessing conditions is subjected to weighted processing, the recognition result of the preprocessed data is more likely to be a non-finger joint type than the TP data, thereby reducing the probability of misidentification as finger joint touch, so as to improve the recognition success rate.

[0023] In a possible implementation, the second TP data is subjected to a second weighted processing to obtain the preprocessed data, including: reducing the outer circle capacitance of the second TP data by the ratio of the outer circle reduction ratio, or reducing the outer circle capacitance of the second TP data by the outer circle reduction amount to obtain the preprocessed data; the outer circle reduction ratio is the reduction ratio of the outer circle capacitance of the preprocessed data compared to the outer circle capacitance of the second TP data. In this way, the weighted process can reduce the outer circle capacitance, reduce the gradient value of the current TP data, and thus appropriately reduce the gradient feature, so that after the TP data that is judged not to meet the preprocessing conditions is subjected to weighted processing, the recognition result of the preprocessed data is more likely to be a finger joint type than the TP data, thereby increasing the probability of identifying such data as non-fingered joint touch, thereby improving the recognition success rate.

[0024] In a possible implementation, the method includes: when the second TP data meets the preprocessing condition, inputting the second TP data into the neural network model to obtain a fourth recognition result; the fourth recognition result is used to indicate whether the second touch operation is a knuckle touch operation. In this way, when the electronic device determines that the preprocessing condition is met, the electronic device does not process this part of the TP data, and can directly input the TP data into the neural network model to obtain a recognition result, thereby improving the recognition success rate, reducing the processing flow, and improving the processing efficiency.

[0025] In a third aspect, the present application provides an electronic device, comprising: one or more processors and one or more memories, wherein the one or more memories are used to store computer program codes, and the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes:

[0026] A first touch operation of a user is received, and first touch panel TP data is acquired in response to the first touch operation; the first TP data is a capacitance matrix; when the first TP data satisfies a preprocessing condition, the first TP data is subjected to a first weighted processing to obtain preprocessed data; wherein the preprocessing condition includes that the inner circle mean of the first TP data is less than or equal to the first inner circle value; the inner circle mean is the mean of the capacitance values ​​corresponding to the coordinates of a circle immediately outside the center point in the capacitance matrix; the preprocessed data is input into a neural network model to obtain a first recognition result; the first recognition result is used to indicate whether the first touch operation is a knuckle touch operation.

[0027] Among them, the neural network model is a neural network model that has been trained in advance and has been stored in the electronic device in advance.

[0028] In the embodiment of the present application, the neural network model recognition result of the TP data that meets the preprocessing conditions is often more inclined to the finger joint touch type, or the TP data that meets the preprocessing conditions is judged to be more likely to be the finger joint touch data. In order to increase the probability of identifying such data as the finger joint type, weighted processing can be performed, so that after the TP data that meets the preprocessing conditions is judged to be weighted, the preprocessed data is more likely to be the finger joint type than the recognition result of the TP data, thereby increasing the recognition success rate.

[0029] In a possible implementation, the first inner circle value ranges from 500 to 800. Thus, through experiments and detection of fingertip and knuckle data, it is found that when the value is less than or equal to the inner circle value in the above range, the touch result tends to be a knuckle type. Therefore, the above data range can ensure that the touch type that meets the preprocessing conditions may be a knuckle touch type, thereby improving the accuracy of preprocessing.

[0030] In a possible implementation, the preprocessing condition also includes that the gradient value of the first TP data is greater than or equal to the first gradient value; the gradient value of the first TP data is the ratio of the outer circle mean to the inner circle mean; the outer circle mean is the mean of the capacity values ​​corresponding to the coordinates of a circle adjacent to the outer side of the inner circle in the capacity matrix. In this way, in the range where the gradient value is greater than or equal to the first gradient value, the neural network model recognition result of the TP data tends to be more inclined to the finger joint touch type, or the TP data that meets the preprocessing condition is more likely to be the finger joint touch data. In order to increase the probability of identifying such data as the finger joint type, weighted processing can be performed, so that after the TP data that meets the preprocessing condition is weightedly processed, the recognition result of the preprocessed data is more likely to be the finger joint type than the TP data, thereby improving the recognition success rate.

[0031] In a possible implementation, the first gradient value ranges from 0.1 to 0.15. Thus, through experiments and detection of fingertip and knuckle data, it is found that when the gradient value is greater than or equal to the above range, the touch result tends to be a knuckle type. Therefore, the above data range can ensure that the touch type that meets the preprocessing conditions may be a knuckle touch type, thereby improving the accuracy of preprocessing.

[0032] In a possible implementation, the first TP data is weighted to obtain preprocessed data, specifically by performing incremental weighting on the outer circle capacity value of the first TP data to obtain preprocessed data. In this way, the weighted process can increase the outer circle capacity value, increase the gradient value of the current TP data, and thus appropriately increase the low gradient features, so that after the TP data that is judged to meet the preprocessing conditions is weighted, the recognition result of the preprocessed data is more likely to be a finger joint type than the TP data, thereby improving the recognition success rate.

[0033] In a possible implementation, the outer ring capacitance of the first TP data is incrementally weighted, specifically by: increasing the outer ring capacitance of the first TP data by the ratio of the outer ring increase ratio, or increasing the outer ring capacitance of the first TP data by the outer ring increase amount, to obtain preprocessed data; the outer ring increase ratio is the increase ratio of the outer ring capacitance of the preprocessed data compared to the outer ring capacitance of the first TP data. In this way, the electronic device can increase the outer ring capacitance according to a certain ratio or a fixed value, and the gradient value can be increased, so as to adjust the data while ensuring the original characteristics of the TP data, improve the accuracy of the output of the neural network model, and thus improve the recognition success rate.

[0034] In a possible implementation, the outer ring increase ratio ranges from 1% to 30%. In this way, the outer ring increase ratio range can ensure that each outer ring capacitance value has its incremental data, and the increment accuracy is higher. In addition, the outer ring increase ratio range can ensure that the increase does not affect the original characteristics of the TP data, thereby improving the recognition success rate.

[0035] In a possible implementation, the first TP data is weighted to obtain preprocessed data, specifically by: reducing the inner circle content value of the TP data by the ratio of the inner circle reduction ratio, or reducing the inner circle content value of the first TP data by the inner circle reduction amount, to obtain the preprocessed data; the inner circle reduction ratio is the reduction ratio of the inner circle content value of the preprocessed data compared to the inner circle content value of the first TP data. In this way, the electronic device can reduce the inner circle content value according to a certain ratio or a fixed value, and the gradient value can be increased, so as to adjust the data while ensuring the original characteristics of the TP data, improve the accuracy of the output of the neural network model, and thus improve the recognition success rate.

[0036] In a possible implementation, before performing the first weighted processing on the first TP data, the electronic device further executes: the electronic device obtains the first ACC data of the first touch operation, and when the ACC data is greater than or equal to the first ACC threshold, determines whether the first TP data satisfies the preprocessing condition. In this way, the user's finger joint touch force is generally greater than the fingertip and finger pulp touch, so this part of the TP data can be screened out for finger joint recognition, ensuring the necessity and accuracy of TP data recognition, and also filtering part of the data volume, improving processing efficiency.

[0037] In a possible implementation, before performing the first weighted processing on the first TP data, the electronic device further executes: when the area of ​​the first TP data satisfies the area condition, determining whether the first TP data satisfies the preprocessing condition. In this way, the electronic device can directly filter out the data of the first TP data that have a large area, generally the finger pulp type, to ensure the accuracy of data processing.

[0038] The area amount of the first TP data satisfying the area condition may be that the area amount of the first TP data is greater than or equal to a first area threshold condition.

[0039] In a possible implementation, the electronic device further performs: when the first TP data does not meet the preprocessing condition, inputting the first TP data into the neural network model to obtain a second recognition result; the second recognition result is used to indicate whether the first touch operation is a knuckle touch operation. In this way, when the electronic device determines that the preprocessing condition is not met, the electronic device does not process this part of the TP data, and can directly input the TP data into the neural network model to obtain a recognition result, thereby improving the recognition success rate, reducing the processing flow, and improving the processing efficiency.

[0040] In a fourth aspect, the present application provides an electronic device, comprising: one or more processors and one or more memories, wherein the one or more memories are used to store computer program codes, and the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes:

[0041] Receive a second touch operation from a user, and acquire second TP data in response to the second touch operation; the second TP data is a capacitance matrix; when the second TP data does not meet a preprocessing condition, perform a second weighted processing on the second TP data to obtain preprocessed data; wherein the preprocessing condition includes that the inner circle mean of the second TP data is less than or equal to the first inner circle value; the inner circle mean is the mean of the capacitance values ​​corresponding to the coordinates of a circle immediately outside the center point in the capacitance matrix; input the preprocessed data into a neural network model to obtain a third recognition result; the third recognition result is used to indicate whether the first touch operation is a knuckle touch operation.

[0042] In the embodiment of the present application, the neural network model recognition result of the TP data that does not meet the preprocessing conditions is often more inclined to not be a finger joint touch type, and the TP data that does not meet the preprocessing conditions is more likely to be not finger joint touch data. In order to increase the probability of identifying such unsatisfactory data as non-fingers joint types, weighted processing can be performed, so that the TP data that does not meet the preprocessing conditions can be subjected to weighted processing, thereby reducing the recognition error rate.

[0043] In a possible implementation, the preprocessing condition also includes that the gradient value of the second TP data is greater than or equal to the first gradient value; the gradient value of the second TP data is the ratio of the outer circle mean to the inner circle mean; the outer circle mean is the mean of the capacity values ​​corresponding to the coordinates of a circle adjacent to the outer side of the inner circle in the capacity matrix. In this way, it is judged that the TP data that does not meet the preprocessing condition is more likely to be non-fingertip touch data. In order to increase the probability of TP data that does not meet the preprocessing condition being identified as a fingertip type, weighted processing can be performed, so that the TP data that does not meet the preprocessing condition is more likely to be a non-finger joint type after weighted processing than the identification result of the TP data, thereby reducing the probability of misidentification as a finger joint touch.

[0044] In a possible implementation, the second TP data is subjected to a second weighted processing to obtain preprocessed data, specifically by increasing the inner circle content value of the second TP data by the ratio of the inner circle increase ratio, or increasing the inner circle content value of the second TP data by the inner circle increase amount to obtain the preprocessed data; the inner circle increase ratio is the increase ratio of the inner circle content value of the preprocessed data compared to the inner circle content value of the second TP data. In this way, the weighted process can increase the inner circle content value and reduce the gradient value of the current TP data, thereby appropriately reducing the gradient feature, so that after the TP data that is judged not to meet the preprocessing conditions is subjected to weighted processing, the recognition result of the preprocessed data is more likely to be a non-finger joint type than the TP data, thereby reducing the probability of misidentification as finger joint touch, so as to improve the recognition success rate.

[0045] In a possible implementation, the second TP data is subjected to a second weighted processing to obtain preprocessed data, specifically by reducing the outer circle capacitance of the second TP data by the ratio of the outer circle reduction ratio, or reducing the outer circle capacitance of the second TP data by the outer circle reduction amount to obtain preprocessed data; the outer circle reduction ratio is the reduction ratio of the outer circle capacitance of the preprocessed data compared to the outer circle capacitance of the second TP data. In this way, the weighted process can reduce the outer circle capacitance, reduce the gradient value of the current TP data, and thus appropriately reduce the gradient feature, so that after the TP data that is judged not to meet the preprocessing conditions is subjected to weighted processing, the recognition result of the preprocessed data is more likely to be a finger joint type than the TP data, thereby increasing the probability of identifying such data as non-fingered joint touch, thereby improving the recognition success rate.

[0046] In a possible implementation, the electronic device further performs: when the second TP data meets the preprocessing condition, inputting the second TP data into the neural network model to obtain a fourth recognition result; the fourth recognition result is used to indicate whether the second touch operation is a knuckle touch operation. In this way, when the electronic device determines that the preprocessing condition is met, the electronic device does not process this part of the TP data, and can directly input the TP data into the neural network model to obtain a recognition result, thereby improving the recognition success rate, reducing the processing flow, and improving the processing efficiency.

[0047] In a fifth aspect, an embodiment of the present application provides a computer storage medium, including computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the touch recognition method in any possible implementation of the first aspect.

[0048] In a sixth aspect, an embodiment of the present application provides a computer storage medium, including computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the touch recognition method in any possible implementation of the second aspect.

[0049] In a seventh aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on a computer, it enables the computer to execute the touch recognition method in any possible implementation of the first aspect above.

[0050] In an eighth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a computer, the computer executes the touch recognition method in any possible implementation of the second aspect.

[0051] In the ninth aspect, an embodiment of the present application provides a chip system, which is applied to an electronic device, and the chip system includes one or more processors, which are used to call computer instructions to enable the electronic device to execute the touch recognition method described in the first aspect or any possible implementation method of the first aspect.

[0052] In the tenth aspect, an embodiment of the present application provides a chip system, which is applied to an electronic device, and the chip system includes one or more processors, which are used to call computer instructions to enable the electronic device to execute the touch recognition method as described in any possible implementation method of the first aspect or the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The following is an introduction to the drawings used in the embodiments of the present application.

[0054] Figure 1A to Figure 1D is a group of knuckle screenshots provided in an embodiment of the present application;

[0055] Figure 2A and Figure 2B is a set of user operation schematic diagrams provided in an embodiment of the present application;

[0056] Figure 3 It is a schematic diagram of the software system structure of an electronic device provided in an embodiment of the present application;

[0057] Figure 4 is a flow chart of a method for finger joint recognition provided by an embodiment of the present application;

[0058] Figure 5 is a schematic diagram of TP data matrix coordinate representation provided in an embodiment of the present application;

[0059] Figure 6A to Figure 6C This is a distribution diagram of TP data and ACC data provided in an embodiment of the present application;

[0060] Figure 7 This is a schematic diagram of TP data distribution comparison of fingertips and knuckles provided in an embodiment of the present application;

[0061] Figure 8 It is a schematic diagram of a method flow of finger joint recognition provided by an embodiment of the present application;

[0062] Fig. 9 This is a capacitance diagram of TP data provided in an embodiment of the present application;

[0063] Fig.10 This is a schematic diagram of TP gradient value distribution provided in an embodiment of the present application;

[0064] Fig.11 It is a schematic diagram of a method flow of finger joint recognition provided by an embodiment of the present application;

[0065] Fig.12 This is a flow chart of a method for initial screening of TP data provided in an embodiment of the present application;

[0066] Fig.13 This is a flow chart of a method for determining a preprocessing condition provided in an embodiment of the present application;

[0067] Fig.14 It is a flowchart of another method for finger joint recognition provided by an embodiment of the present application;

[0068] Fig.15 It is a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application. DETAILED DESCRIPTION

[0069] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the embodiments of the present application. As used in the specification and the appended claims of the embodiments of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the embodiments of the present application refers to and includes any or all possible combinations of one or more listed items.

[0070] When users use electronic devices, there are various types of touch screens. Users can use the pulp, fingertips or knuckles of their fingers to touch, that is, user touch operations can include three types: knuckle touch, fingertip touch and pulp touch. Generally speaking, for pulp and fingertip type touch operations, electronic devices need to determine the response processing of electronic devices based on the touch position and the current interface. For example, the user clicks on an application icon to open the application; clicks on a function control to complete the function, etc. However, for knuckle touch types, electronic devices need to perform specific processing for this type of touch operation. For example, knuckle screenshots, screen recording and other functions.

[0071] Specifically, knuckle screenshots can include full-screen screenshots, long screenshots, and area screenshots. Among them, full-screen screenshot: double-click the screen with a single knuckle to take a full-screen screenshot. Long screenshot: tap the screen with a single knuckle and keep the knuckle on the screen, draw an "S" with a little force, the screen will automatically scroll down to take a screenshot. During the scrolling process, click the scrolling area to stop taking a screenshot. Area screenshot: tap the screen with a single knuckle and slide any area to take a screenshot of the content in that area, and the shape of the screenshot can be adjusted. In addition, screen recording: double-click the screen with two knuckles to start or stop screen recording.

[0072] For example, Figure 1A to Figure 1D 1 is a group of knuckle screenshots schematically shown in the embodiment of the present application. Figure 1A As shown, the electronic device can display three pictures, among which picture 11 only displays the lower half, picture 12 is a landscape picture, and picture 13 is a person image. If the user wants to take a screenshot of the full screen of the current user interface, he can double-click. Figure 1A As shown, the user performs a first knuckle tap; Figure 1B As shown, the user's knuckles are raised; Figure 1C As shown, the user taps his knuckles again. Figure 1D As shown, in Figure 1C After the second knuckle click, in response to the two consecutive knuckle clicks, the electronic device captures the current screen to obtain a captured full-screen image 14. Figure 1B and Figure 1C For a detailed description, please refer to Figure 1A The relevant description is not repeated here.

[0073] It should be noted that the above-mentioned operation mode and touch function of the finger joints are merely exemplary descriptions, and the present application does not limit this.

[0074] According to the above click position, a fingertip or fingertip type of touch is performed, and the electronic device enlarges and displays the picture 13. Exemplarily, Figure 2A and Figure 2B is a set of user operation schematic diagrams exemplarily shown in the embodiment of the present application. Figure 2A As shown, in Figure 1A The user interface of the same three pictures, the user touches the picture 13 by fingertips or fingertips. Figure 2B As shown, in response to the touch operation of the user's fingertips or fingertips, the electronic device enlarges the displayed image 13.

[0075] contrast Figure 1A to Figure 1D The screenshot process, and Figure 2A and Figure 2B In the image magnification display process, due to the different user touch types of knuckle touch and fingertip touch, the electronic device responds to different processing and display methods. Therefore, the electronic device needs to identify and distinguish the user's touch type to prevent misprocessing and display, ensure the correctness of the user's interactive response, and improve the user's interactive experience.

[0076] In view of the above problems, when the electronic device detects a user touch operation, it needs to first identify the touch type of the current operation before reporting the identification result data to the corresponding module of the application layer. A touch type identification method is described below in conjunction with a software framework diagram.

[0077] Figure 3 It is a schematic diagram of the software system structure of an electronic device according to an embodiment of the present application.

[0078] like Figure 3 As shown, the software framework of the electronic device involved in the present application may include an application layer, an application framework layer (framework, FWK), a hardware abstraction layer (HAL), a kernel layer (kernel) and a hardware layer.

[0079] Among them, the application layer can include a series of application packages, such as mail, weather, calendar and other applications.

[0080] In the embodiment of the present application, the application layer may also include a knuckle control application. The knuckle control application may respond to the user's knuckle touch operation. The knuckle control application may include functions such as full screen capture, area screenshot, long screenshot, and screen recording, etc., without limitation. Among them, the user operations and related descriptions corresponding to full screen capture, area screenshot, long screenshot, and screen recording can be referred to. Figure 1A to Figure 1D And the related descriptions are not repeated here.

[0081] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0082] like Figure 3 As shown, the application framework layer may include a power management module (power manager), a touch screen manager (gesture action), etc.

[0083] Among them, the power management module can determine whether to start the finger joint recognition process based on the current screen on and off state. When the display is in the on screen state, the power management module can determine to start the finger joint recognition process for the touch operation. When the display is in the off screen state, the power management module can determine not to start the finger joint recognition process for the touch operation.

[0084] The touch screen manager can report the recognition result of the touch type of the touch hardware abstraction layer to the knuckle control application. In addition, the touch screen manager can also control the opening and closing of various functions of the knuckle touch operation. For example, when the user clicks to turn on the long screenshot function in the settings of the electronic device, the long screenshot function of the knuckle control application is turned on, and the long screenshot processing will be performed for the relevant knuckle operations; if it is turned off, it will not be processed.

[0085] The hardware abstraction layer is an interface layer located between the application framework layer and the kernel layer, providing a virtual hardware platform for the operating system.

[0086] In the embodiment of the present application, the hardware abstraction layer may include a touch hardware abstraction layer (Fingersense HAL), and the Fingersense HAL may obtain touch panel (TP) data from the touch driver of the kernel layer, and obtain accelerometer (ACC) data from the acceleration driver. Afterwards, the touch type may be identified based on the TP data and the ACC data, and the identification result may be reported to the touch screen manager.

[0087] The kernel layer is the foundation of the Android operating system. The final functions of the Android operating system are completed through the kernel layer. The kernel layer at least includes display driver, touch driver (Touch Driver) and acceleration driver (ACC Driver).

[0088] The touch driver can obtain TP data corresponding to the touch event from the touch sensor, and the ACC driver can obtain ACC data from the ACC sensor.

[0089] The hardware layer may include a display screen, a touch sensor, an acceleration sensor, etc. Among them, the touch sensor can detect various types of touch operations of the user. The display screen can display image frames, and the user can touch the display screen.

[0090] It should be noted that the application provides Figure 3 The software structure diagram of the electronic device shown is only an example and does not limit the specific module division in different layers of the Android operating system. For details, please refer to the introduction of the Android operating system software structure in conventional technology. In addition, the shooting method provided by this application can also be implemented based on other operating systems, and this application will not give examples one by one.

[0091] Figure 4 FIG. 1 is a flow chart of a method for finger joint recognition provided by way of example in an embodiment of the present application. Figure 4 As shown, after the touch driver obtains the TP data, it can send the TP data to the Fingersense HAL. The Fingersense HAL can input the TP data into the neural network model, identify the touch type of the current touch operation, and output the identification result. However, in the above-mentioned implementation, the finger joint recognition error rate is high, the device response error rate is high, and the user experience is poor. In addition, the display effect is poor, the TP data collected by it, the user's finger joint or fingertip operation is not standard, the probability of recognition error is greater, the user's interactive response error rate is high, and the experience is poor.

[0092] Figure 5 TP data matrix coordinate representation schematic diagram provided in the embodiment of the present application. Figure 5As shown, TP data can be a capacity matrix of 7*7=49 data. Each capacity position has a unique coordinate, which is 0, 1, 2, 3, 4, ..., 48 from left to right and from top to bottom. In the TP data matrix, there are 4 circles from inside to outside. The capacity of the middle point (coordinate 24) is the largest, and it gradually decreases from inside to outside. In the embodiment of the present application, the first circle from the inside to the outside is determined as the center point, with coordinates 24; the second circle from the inside to the outside is defined as the inner circle, that is, the location of the grid, and the inner circle coordinates include 16, 17, 18, 25, 32, 31, 30 and 23, a total of eight coordinates; the third circle from the inside to the outside is defined as the outer circle, that is, the location of the oblique line, and the outer circle coordinates include 8, 9, 10, 11, 12, 19, 26, 33, 40, 39, 38, 37, 36, 29, 22 and 15, a total of 16 coordinates; the fourth circle from the inside to the outside is defined as the edge circle, and the outer circle coordinates include the outermost circle, a total of 24 coordinates.

[0093] It should be noted that the TP data can also be a capacitance matrix of a size of 6*6, 8*8, 9*9, etc., that is, the TP data is of a size of X*X, where X is an integer greater than 5. The present application does not limit the TP data. The capacitance matrix of the TP data includes three coordinates: a center point, an inner circle, and an outer circle. Among them, the center point is one or four coordinates of the capacitance matrix whose coordinates are at the center of the row and column. Among them, X is an odd number, and the center point has one coordinate; X is an even number, and the center point has four coordinates. The inner circle is the coordinate of the circle immediately outside the center point; the outer circle is the coordinate of the circle immediately outside the inner circle. Each coordinate corresponds to a capacitance value. The inner circle mean is the average value of the capacitance corresponding to the inner circle coordinates; the outer circle mean is the average value of the capacitance corresponding to the outer circle coordinates.

[0094] ACC data refers to the amount of touch force sensed by the user of an electronic device. The greater the user's touch force, the greater the sense. In ACC data, since the knuckles are used with greater force when touching, the ACC sense of knuckles is much greater than that of the finger pulp and fingertips.

[0095] By comparing the TP data of fingertips, finger pulps and knuckles, it is found that the characteristics of data distribution are different. Figure 6A to Figure 6C It is a distribution diagram of TP data and ACC data exemplarily shown in an embodiment of the present application.

[0096] Fig. 6A The TP data distribution of the fingertips is shown in Figure 2. Fig. 6A As shown, in the TP data matrix, the capacitance value of the center point is 3747, and there are many higher columns, indicating that the contact area of ​​the user's touch is larger.

[0097] Figure 6B The TP data distribution of the fingertips is shown in Fig. Figure 6BAs shown, in the TP data matrix, the capacitance value of the center point is 3263, and the number of higher columns is small, indicating that the user's touch area is small.

[0098] Figure 6C The TP data distribution of the finger joints is shown in Figure 6C As shown in the figure, in the TP data matrix, the capacitance value of the center point is 2940, the number of high columns is small, and the user touch area is small. Comparing the data of the finger pulp, fingertip and knuckle, it is found that the capacitance value matrix of the TP data can be approximately regarded as a Gaussian distribution, with the largest value in the middle and decreasing outward. Among them, the number of coordinate points with large capacitance values ​​in the finger pulp data is larger, and the capacitance value area of ​​the fingertip and knuckle is small.

[0099] In view of the above situation, TP data is used to establish data features of different dimensions to distinguish the above different touch types. In the embodiment of the present application, TP data may include data features of three dimensions: 1. gradient features of TP data; 2. circle features of TP data; 3. area features of TP data.

[0100] The gradient of the TP data can be the ratio of the mean of the outer circle content value to the mean of the inner circle content value. The circle feature of the TP data is the mean of the inner circle content value of the TP data. The area feature of the TP data can indicate the touch area of ​​the user. Fig. 6A , Figure 6B and Figure 6C It is found that fingertip touch can be screened out through area features. However, the data features of fingertips and knuckles are relatively close, with a high degree of similarity. If the user's operation is not standardized and the touch is not standard when the user is identifying the knuckles, such as tapping the screen with the knuckles from the side, it is easy to cause recognition errors. In actual use, the knuckle touch type needs to be identified separately. The data features of knuckles and fingertips are the closest. In addition, the screen effect of electronic devices is poor, and the user's knuckle operation methods vary. For example, when the user's knuckles touch at an angle, the touch area increases, resulting in inaccurate collected TP data and unclear distinguishing features, which makes the success rate of the neural network model in identifying knuckles low and the user experience poor.

[0101] Based on the above-mentioned difference in data features of the knuckles and fingertips, an embodiment of the present application proposes a knuckle recognition method. After the electronic device collects the first touch event, it calculates the inner circle mean and gradient value of the TP data of the first touch event, and determines whether preprocessing is required based on the inner circle features and gradient features. When the TP gradient is greater than the first gradient value and / or the inner circle mean is less than the first inner circle value, the preprocessing condition is met. When the preprocessing condition is met, the outer circle capacitance value is increased, or the inner circle capacitance value is reduced to obtain preprocessed TP data. The TP data can then be input into the neural network model for knuckle recognition to obtain a recognition result.

[0102] Figure 7 FIG. 1 is a flowchart of another method for finger joint recognition exemplarily shown in an embodiment of the present application. Figure 7 As described above, when a user touches the screen, the touch driver can obtain TP data, and the ACC driver can obtain ACC data. Based on the area characteristics of the TP data and the sensing amount of the ACC data, the data with large area or small sensing amount are screened, and the data is determined to be non-fingertip touch. Then, based on the inner circle characteristics and gradient characteristics of the TP data, it is further determined whether the preprocessing conditions are met. If preprocessing is required, the electronic device can first perform weighted preprocessing on the TP data to obtain preprocessed data, and input the preprocessed data into the neural network pattern recognition to obtain the recognition result. If preprocessing is not required, the TP data is directly input into the neural network model for recognition to obtain the recognition result.

[0103] In the above process, since the electronic device determines that the preprocessing conditions are met, this part of the TP data can be closer to the knuckle touch type, the capacitance value of the outer circle in the TP data can be increased to make the TP data closer to the knuckle data, thereby making the output probability of the neural network model closer to the knuckle type and improving the success rate of knuckle recognition.

[0104] Figure 8 Schematic diagram of a method for finger joint recognition proposed in an embodiment of the present application. Figure 8 As shown, the finger joint recognition method may include but is not limited to the following steps:

[0105] S801: The electronic device obtains a first touch event.

[0106] When the electronic device monitors touch events, the first touch event of the user can be obtained through the touch sensor. Figure 1A and Figure 1B As shown, the user can perform the first touch operation by means of fingertips, knuckles or finger pulps, and in response to the user's first touch operation, the touch sensor of the electronic device can obtain the user's first touch event.

[0107] S802: The electronic device obtains TP data and ACC data of the first touch operation.

[0108] When the electronic device obtains the first touch event, the TP data and ACC data of the first touch operation can be obtained. Specifically, when the touch sensor of the electronic device obtains the first touch event, the TP data is obtained, and the ACC sensor obtains the ACC data. After that, the fingersenseHAL can request TP data from the touch driver and request ACC data from the ACC driver. The fingersenseHAL can obtain TP data and ACC data.

[0109] S803: Electronic devices are screened based on the area characteristics of the TP data.

[0110] In one possible implementation, the TP data includes a TP area, and the TP area is positively correlated with the contact area of ​​the user's first touch operation. When the TP area is greater than or equal to the first area threshold, the first touch operation is determined to be a non-knuckle touch (i.e., a fingertip touch type). When the TP area is less than (less than or equal to) the first area threshold, the touch type of the first touch operation is determined to be to be determined (determined to require knuckle recognition), and S804 is continued to be executed (or S805 is directly executed).

[0111] In another possible implementation, the electronic device can calculate the TP area of ​​the TP data. The TP area is the number of coordinates in the TP data that are greater than the first capacitance value. The range of the first capacitance value is 0 to 200. For example, when the first capacitance value is 50, the capacitance values ​​corresponding to 7*7=49 coordinates are counted in sequence to see whether they are greater than 50. When the capacitance values ​​of 16 coordinates are greater than (greater than or equal to) 50, it can be determined that the TP data amount is 16. Afterwards, the electronic device can compare the TP area with the first area threshold. When the TP area is greater than or equal to (greater than) the first area threshold, it is determined that the first touch event is not a knuckle touch, and the recognition result is output.

[0112] S804: The electronic device performs screening based on the ACC data.

[0113] The electronic device is provided with an ACC threshold value, and the ACC data and the ACC threshold value can be compared. When the ACC data is greater than or equal to (greater than) the ACC threshold value, it can be determined that the first touch event meets the recognition condition. When the ACC data is less than (less than or equal to) the ACC threshold value, it can be determined that the first touch event does not meet the recognition condition. When the recognition condition is met, it is determined that finger joint recognition is required, and S805 is executed; when the recognition condition is not met, the processing of S805 to S809 is not executed, and it is determined that the current first touch event is a finger joint type touch event, that is, the recognition result is output.

[0114] The ACC threshold may range from 0.2 to 0.5 g.

[0115] In the above process, since the touch force used by the knuckle users is greater and the touch force used by the fingertips and finger pulps is smaller, it is possible to directly determine whether it is a knuckle type touch, filter out some data that does not need further identification, simplify the processing process, and improve processing efficiency.

[0116] S805: The electronic device calculates the TP gradient value and / or the TP inner circle mean value based on the TP data.

[0117] Among them, the description of the TP gradient value and the TP inner circle mean value can refer to the above description and will not be repeated here.

[0118] When the electronic device determines that finger joint recognition is required (refer to the screening of S803 and S804 for details), it can calculate the inner circle average value in the TP data based on the TP data of the first touch event as the TP inner circle average value, and can also calculate the TP outer circle average value, and the result of the outer circle average value / inner circle average value is the TP gradient value.

[0119] For example, Fig. 9 Schematic diagram of the capacitance of TP data exemplarily proposed in the embodiment of the present application. Fig. 9 As shown, each of the 49 coordinates includes a capacitance value in turn. Among them, the oblique line coordinate is the outer circle capacitance; the grid coordinate is the inner circle capacitance method. The electronic device can calculate the TP inner circle mean value as (188+702+315+1159+378+540+266+377) / 8=490.625. The outer circle mean value = (58+70+100+76+26+62+127+100+54+107+134+107+69+112+117+69) / 16=86.75, and the TP gradient value is the outer circle mean value 86.75 / inner circle mean value 490.625=0.1768.

[0120] S806: The electronic device determines whether a preprocessing condition is met based on the TP gradient value and / or the TP inner circle mean value.

[0121] The pre-processing conditions may include inner circle conditions and / or gradient conditions.

[0122] After the electronic device calculates the TP gradient value and / or the TP inner circle mean, it can determine whether the preprocessing conditions are met. If the preprocessing conditions are met, S807 and S808 are executed; if the preprocessing conditions are not met, S809 is executed.

[0123] The inner circle conditions and gradient conditions are described in detail below:

[0124] Inner circle condition: TP inner circle mean value is less than or equal to the first inner circle value:

[0125] The electronic device may compare the inner circle condition with the first inner circle mean value, and determine that the inner circle condition is satisfied when the inner circle condition is less than or equal to (less than) the first inner circle value; and determine that the inner circle condition is not satisfied when the inner circle condition is greater than (greater than or equal to) the first inner circle value. The first inner circle value may range from 500 to 800.

[0126] For example, when the first inner circle value is 600, Fig. 9The mean value of the inner circle is 490.625, which is less than 600, so the inner circle condition is met. If the mean value of the inner circle is 705.6, 705.6>600, the inner circle condition is not met.

[0127] Gradient condition: TP gradient value is greater than or equal to the first gradient value:

[0128] The electronic device may determine the magnitude of the TP gradient value and the first gradient value, and determine that the gradient condition is satisfied when the TP gradient value is greater than or equal to (greater than) the first gradient value; and determine that the gradient condition is not satisfied when the TP gradient value is less than (less than or equal to) the first gradient value. The first gradient value may range from 0.1 to 0.15.

[0129] For example, when the first gradient value is 0.12, Fig. 9 The TP gradient value is 0.1768, 0.1768>0.12, so the gradient condition is met. If the TP gradient value is 0.96, 0.96<0.12, the gradient condition is not met.

[0130] In the above implementation, the data that needs to be preprocessed can be screened out in advance by means of the inner circle condition and / or the gradient condition, thereby ensuring the accuracy of the preprocessing.

[0131] S807: The electronic device performs weighted processing on the TP data to obtain pre-processed data.

[0132] The electronic device can perform weighted processing on the data of different circles in the TP data to obtain pre-processed data.

[0133] The outer circle data in the TP data is added with the first quantity to obtain preprocessed data.

[0134] In a possible implementation, the electronic device may perform weighted processing on the outer ring capacitance value of the TP data to obtain preprocessed data.

[0135] Method 1: Weight the outer circle according to the outer circle increase ratio.

[0136] The electronic device is provided with an outer ring increase ratio, and the outer ring capacitance in the preprocessed data can be calculated according to the outer ring increase ratio. The outer ring increase ratio can refer to the increase ratio of the outer ring second capacitance in the preprocessed data relative to the outer ring first capacitance of the TP data. The outer ring second capacitance can be the outer ring capacitance after weighted processing; the outer ring first capacitance can be the original outer ring capacitance in the TP data. Among them, the outer ring increase ratio can range from 0% to 30%.

[0137] The second capacitance of the i-th outer ring = the first capacitance of the i-th outer ring + the first capacitance of the i-th outer ring * the increase ratio of the outer ring. Fig. 9As shown, i is an integer from 1 to 16. The first capacitance value of the outer circle is the capacitance value in the oblique coordinate. Starting from coordinate code 8 and counting in the clockwise direction, the first capacitance values ​​of the outer circle are 58, 70, 100, 76, 26, 62, 127, 100, 54, 107, 134, 107, 69, 112, 117, and 69. The outer circle increase ratio is 15%. If i is 1, the second capacitance value of the first outer circle is 58+58*0.15=66.7; if i is 2, the second capacitance value of the second outer circle is 70+70*0.15=80.5; if i is 3, the second capacitance value of the third outer circle is 100+100*0.15=115; ...; if i is 16, the second capacitance value of the 16th outer circle is 69+69*0.15=79.35. Thus, the second capacitance value of the outer circle can be obtained correspondingly, and the first capacitance value of the outer circle in the TP data is replaced with the second capacitance value of the outer circle to obtain the preprocessed data.

[0138] Method 2: Weight the outer circle according to the increase in the outer circle.

[0139] The electronic device is provided with an outer ring increment, and the sum of each outer ring first capacitance value of the TP data and the outer ring increment can be determined as the corresponding outer ring second capacitance value of the preprocessed data. The outer ring increment can range from 1 to 30.

[0140] The second capacitance of the i-th outer ring = the first capacitance of the i-th outer ring + the increase in the outer ring. Fig. 9 As shown, i is an integer from 1 to 16. For example, starting from coordinate code 8 and counting in the clockwise direction, the first capacitance of the outer ring is 58, 70, 100, 76, 26, 62, 127, 100, 54, 107, 134, 107, 69, 112, 117, 69. The outer ring increase ratio is 10. Assuming that i is 1, the second capacitance of the first outer ring is 58+10=68; the second capacitance of the second outer ring is 70+10=80; ...; the second capacitance of the 16th outer ring is 69+10=79.

[0141] Optionally, the electronic device can set an outer circle increment, i from 1 to 16 share one; or set 16 outer circle increments, corresponding to each i corresponding to the outer circle increment is different. Of course, the matrix size of TP data is different, and the corresponding range of i is also different.

[0142] In the above two methods, except for changing the outer circle capacitance, the capacitance of other circles remains unchanged, so that the pre-processed TP data can be obtained.

[0143] In the above-mentioned implementation mode, the electronic device can increase the outer circle capacitance while maintaining the original TP data as much as possible, and make slight adjustments to it. For TP data that meets the preprocessing conditions, the outer circle capacitance is increased slightly, the TP gradient value is increased, and the output result of the neural network is more inclined to the knuckle touch type than the TP data, thereby improving the recognition success rate.

[0144] In another possible implementation, the electronic device may perform weighted processing on the capacitance value of the inner circle of the TP data to obtain preprocessed data.

[0145] Method 1: Weight the inner circle according to the inner circle reduction ratio.

[0146] The electronic device may calculate the (second) inner circle capacity value in the preprocessed data (second TP data) according to the inner circle reduction ratio. The inner circle reduction ratio may refer to the ratio of the reduction of the inner circle second capacity value in the preprocessed data relative to the inner circle first capacity value of the TP data. The inner circle second capacity value may be the inner circle capacity value after weighted processing; the inner circle first capacity value may be the original inner circle capacity value in the TP data. The inner circle reduction ratio may range from 0% to 15%.

[0147] The second capacitance of the nth outer ring = the first capacitance of the nth outer ring - the first capacitance of the nth outer ring * the reduction ratio of the inner ring. Fig. 9 As shown, n is an integer from 1 to 8.

[0148] For example, Fig. 9 As shown, the first capacity value of the inner circle is the capacity value in the grid coordinates. Starting from coordinate code 16 and counting in the clockwise direction, the first capacity values ​​of the inner circle are 188, 702, 315, 1159, 378, 540, 266, and 377. The inner circle reduction ratio is 5%, and the first inner circle second capacity value is 188-188*0.05=178.6; the second outer circle second capacity value is 702-702*0.05=666.9; ...; the eighth outer circle second capacity value is 377-377*0.05=358.15. Thus, the second capacity value of the inner circle can be obtained, and the first capacity value of the inner circle in the TP data is replaced with the second capacity value of the inner circle to obtain the preprocessed data.

[0149] Method 2: Weight the inner circle according to the amount of reduction in the inner circle.

[0150] The electronic device is provided with an inner circle reduction amount, and the sum of each inner circle first capacitance value and the inner circle increase amount of the TP data can be determined as the corresponding inner circle second capacitance value of the preprocessed data. The inner circle reduction amount can range from 1 to 100.

[0151] The second capacitance of the nth outer ring = the first capacitance of the nth outer ring - the reduction of the inner ring. Fig. 9 As shown, n is an integer from 1 to 8.

[0152] For example, Fig. 9 As shown, n is an integer from 1 to 8. The first capacity value of the inner circle is the capacity value in the grid coordinates. Starting from coordinate code 16 and counting in the clockwise direction, the inner circle decreases by 20. The first second capacity value of the inner circle is 188-20=168; the second second capacity value of the outer circle is 702-20=682; ...; the eighth second capacity value of the outer circle is 377-20=357. Thus, the second capacity value of the inner circle can be obtained, and the first capacity value of the inner circle in the TP data is replaced with the second capacity value of the inner circle to obtain the preprocessed data.

[0153] Among them, the matrix size of TP data is different, and the corresponding range of n is also different.

[0154] In another possible implementation, the electronic device may perform weighted processing on the capacitance values ​​of the inner circle and the outer circle of the TP data to obtain preprocessed data.

[0155] Among them, the outer circle weighting can refer to the process of the electronic device performing weighted processing on the outer circle capacitance value of the TP data; the inner circle weighting can refer to the process of the electronic device performing weighted processing on the inner circle capacitance value of the TP data, and the specific process is not repeated. After the electronic device obtains the outer circle second capacitance value and the inner circle second capacitance value, the inner circle first capacitance value in the TP data can be replaced with the inner circle second capacitance value, and the outer circle first capacitance value can be replaced with the outer circle second capacitance value to obtain preprocessed data.

[0156] S808: The electronic device inputs the preprocessed data into the neural network model to obtain a first recognition result.

[0157] When the preprocessing data is obtained (after satisfying S806, executing S807), the preprocessing data can be input into the neural network model to obtain a first recognition result. The recognition result is used to indicate whether the first touch operation is a knuckle touch operation.

[0158] The neural network model or algorithm identifies the event type of the first touch event corresponding to the preprocessed data. In the case where the event type is knuckle touch, the first touch event can be reported to the module by FWK for confirmation. In the case where the event type is not a knuckle type, the corresponding first application can report the touch type of the first touch event, which is knuckle touch or non-knuckle touch.

[0159] S809: The electronic device inputs the TP data into the neural network model to obtain a second recognition result.

[0160] If the preprocessing condition is not met, the TP data can be input into the neural network model to obtain a second recognition result. After obtaining the second recognition result, the electronic device can output the recognition result. For details, please refer to the relevant description of S808, which will not be repeated here.

[0161] In an embodiment of the present application, the preprocessing condition may include only the inner circle condition, or may include the inner circle condition and the gradient condition, without limitation. Assume that the TP inner circle mean value range of the collected knuckle touch is generally 400-600, and the TP inner circle mean value range of the fingertip touch is generally 600-700. Therefore, the TP inner circle mean value of the knuckle touch is generally smaller than the TP inner circle mean value of the fingertip touch; and the TP gradient value of the knuckle is generally greater than the TP gradient value of the fingertip. Therefore, the recognition result of the neural network model of the TP data that meets the preprocessing conditions is often more inclined to the knuckle touch type. In order to increase the probability of identifying such data as the fingertip type, weighted processing of S807 can be performed, so that after the TP data that meets the preprocessing conditions is judged to be weighted, the recognition result of the preprocessed data is more likely to be the knuckle type than the TP data, thereby improving the recognition success rate.

[0162] Through the above-mentioned knuckle recognition process, the embodiment of the present application provides result comparisons of two recognition methods for two screens respectively.

[0163] Table 1

[0164]

[0165] Table 1 is a comparative data of recognition results exemplarily shown in the embodiment of the present application. As shown in Table 1, for screen one, in the operation of full-screen capture with knuckles, the recognition success rate of the original algorithm is 80%, and the success rate of the embodiment of the present application is 83%, an increase of 3%; in the operation of recording the screen with knuckles, the recognition success rate of the original algorithm is 80%, and the success rate of the embodiment of the present application is 84%, an increase of 4%. For screen two, in the operation of full-screen capture with knuckles, the recognition success rate of the original algorithm is 57%, and the success rate of the embodiment of the present application is 66%, an increase of 9%; in the operation of recording the screen with knuckles, the recognition success rate of the original algorithm is 78%, and the success rate of the embodiment of the present application is 85%, an increase of 7%.

[0166] The quality of screen one is better, and the features of the collected TP data are more high-quality. The embodiment of the present application has partially improved the success rate of the recognition results. Relatively speaking, the quality of screen two is poor, and the features of the collected TP data are relatively poor. The embodiment of the present application has a more prominent improvement in the success rate of the recognition results. Regardless of the above-mentioned screen effect and quality, the embodiment of the present application can improve the recognition success rate of the algorithm. Among them, for the case of poor screen effect, the above-mentioned significant improvement in the recognition success rate can effectively improve the user's touch experience and ensure accurate response to screenshots and screen recordings.

[0167] Fig.10 FIG. 1 is a schematic diagram of a TP gradient value distribution exemplarily shown in an embodiment of the present application. Fig.10As shown, the distribution ratio of TP gradient values ​​of fingertip touch and knuckle touch, the ordinate is the percentage of the number of touches in the corresponding TP gradient value to the total number of touches, and the abscissa is the TP gradient value of the touch. The solid line is the fingertip, the dotted line is the knuckle, the TP gradient value of the fingertip is mostly distributed around 0.085, and the TP gradient value of the knuckle is mostly distributed around 0.14. Among them, the TP gradient value of the knuckle is generally greater than the TP gradient value of the fingertip. There is a situation where the TP gradient value of the knuckle overlaps with the TP gradient value of the fingertip. Within the overlapping range, there is a certain probability that the knuckle type is judged as a fingertip during the recognition process of the neural network model; the fingertip type is judged as a knuckle, resulting in recognition errors. In the embodiment of the present application, the TP data that meets the preprocessing conditions is likely to be the touch data of the knuckle type, and falls into the overlapping range. After the weighted preprocessing process, the gradient value of the TP data is increased, and the gradient value of the preprocessed data moves to the right, increasing the probability of being judged as a knuckle type, thereby improving the success rate of knuckle recognition.

[0168] Fig.11 Schematic diagram of a method for finger joint recognition proposed in an embodiment of the present application. Fig.11 As shown, the electronic device may include modules such as a touch screen manager, a touch hardware abstraction layer, a touch driver, an acceleration driver, a finger joint control application, and a first application. The first application may be an application program in the application program layer other than the finger joint control application. For details, please refer to Figure 3 The method for finger joint recognition may include but is not limited to the following steps:

[0169] S1101: The touch sensor sends a first touch event to the touch screen manager.

[0170] The touch sensor can detect the user's touch operation. When the user touches the screen of the electronic device, in response to the user's first touch operation, the touch sensor can obtain a first touch event, and then the touch sensor can report the first touch event to the touch screen manager. The first touch event can include the user's touch time.

[0171] Among them, the user's first touch operation reference Figure 1A and Figure 2A The relevant description is not repeated here.

[0172] S1102: The touch screen manager sends a finger joint recognition instruction to the touch hardware abstraction layer.

[0173] When the touch screen manager obtains the first touch event, it can be determined that joint recognition needs to be performed for the first touch event, and the touch screen manager can send a finger joint recognition instruction to the touch hardware abstraction layer. Correspondingly, the touch hardware abstraction layer can receive a finger joint recognition instruction from the touch screen manager. The finger joint recognition instruction is used to instruct the electronic device to execute the finger joint recognition process. After the touch hardware abstraction layer receives the finger joint recognition instruction, it can start the finger joint recognition process, that is, execute S1103 to S1111.

[0174] S1103: The touch hardware abstraction layer sends an ACC data request to the acceleration driver.

[0175] After receiving the finger joint recognition instruction, the touch hardware abstraction layer can send an ACC data request to the acceleration driver. Correspondingly, the acceleration driver can receive the ACC data request from the touch hardware abstraction layer. The ACC data request is used to request the ACC data of the first touch event. The ACC data request may include a timestamp for obtaining the ACC data of the first touch event.

[0176] S1104: The acceleration driver sends ACC data to the touch hardware abstraction layer.

[0177] After the acceleration driver obtains the ACC data request, it can send the ACC data to the touch hardware abstraction layer. Correspondingly, the touch hardware abstraction layer receives the ACC data from the acceleration driver. Before the acceleration driver sends the ACC data, it has obtained the ACC data of the first touch operation from the ACC sensor.

[0178] S1105: The touch hardware abstraction layer sends a TP data request to the touch driver.

[0179] After receiving the finger joint recognition instruction, the touch hardware abstraction layer may send a TP data request to the touch driver. Correspondingly, the touch driver may receive the TP data request from the touch hardware abstraction layer. The TP data request is used to request the TP data of the first touch event. The TP data request may include a timestamp for obtaining the TP data of the first touch event.

[0180] S1106: The touch driver sends TP data to the touch hardware abstraction layer.

[0181] After receiving the TP data request, the touch driver can send the TP data to the touch hardware abstraction layer. Correspondingly, the touch hardware abstraction layer can receive the TP data from the touch driver. Before the touch driver sends the TP data, the TP data of the first touch operation has been obtained from the TP sensor.

[0182] The execution order of S1103 and S1105 is not limited.

[0183] S1107: The touch hardware abstraction layer performs initial finger joint screening based on the ACC data and the TP data.

[0184] After the touch hardware abstraction layer obtains the ACC data and the TP data, it can initially screen the TP data to determine whether the knuckle recognition process is required and remove unnecessary screening.

[0185] For example, Fig.12 FIG. 1 is a flow chart of a method for initial screening of TP data exemplarily shown in an embodiment of the present application. Fig.12 As shown, the TP data initial screening method may include but is not limited to the following steps:

[0186] S1201: The touch hardware abstraction layer determines whether the TP area of ​​the TP data is greater than or equal to (greater than) a first quantity threshold. If it is greater than or equal to (greater than) the first quantity threshold, S1202 is executed; if it is less than (less than or equal to) the first quantity threshold, S1203 is executed.

[0187] Among them, S1201 can refer to the relevant description of S803 and will not be repeated here.

[0188] S1202: The touch hardware abstraction layer determines the first touch event as a non-knuckle touch.

[0189] The touch hardware abstraction layer determines that the first touch event is a non-knuckle touch and can send recognition result information to the touch screen manager. At this time, the recognition result information is used to indicate that the first touch event is a non-knuckle touch.

[0190] S1203: The touch hardware abstraction layer determines whether the ACC data is greater than or equal to the ACC threshold. If the ACC data is greater than or equal to (greater than) the ACC threshold, S1204 is executed; if the ACC data is less than (less than or equal to) the ACC threshold, S1202 is executed.

[0191] Among them, S1203 can refer to the relevant description of S804 and will not be repeated here.

[0192] S1204: The touch hardware abstraction layer determines the first touch event as a knuckle touch.

[0193] The touch hardware abstraction layer determines that the first touch event is a knuckle touch, and then continues to execute S1108.

[0194] As mentioned above, the execution order of S1201 and S1203 can be swapped, and this application does not limit this.

[0195] S1108: The touch hardware abstraction layer determines whether the TP data meets the pre-processing condition.

[0196] If it is determined in S1107 that finger joint recognition is required, S1108 is executed.

[0197] Wherein, referring to the description of S806, the preprocessing condition may include an inner circle condition and / or a gradient condition. Here, the preprocessing condition including the inner circle condition and the gradient condition is taken as an example for exemplary description:

[0198] Fig.13 FIG. 1 is a flow chart of a method for determining preprocessing conditions exemplarily shown in an embodiment of the present application. Fig.13 As shown, the method for determining the preprocessing condition may include but is not limited to the following steps:

[0199] S1301: The touch hardware abstraction layer determines whether the TP inner circle mean value is less than or equal to (less than) the first inner circle value. If the TP inner circle mean value is less than or equal to (less than) the first inner circle value, S1303 is executed. If the TP inner circle mean value is greater than (greater than or equal to) the first inner circle value, S1302 is executed.

[0200] The specific description of S1301 may refer to the related description of the inner circle condition in S806, which will not be repeated here.

[0201] S1302: The touch hardware abstraction layer does not meet the preprocessing condition.

[0202] S1303: The touch hardware abstraction layer determines whether the TP gradient value is greater than or equal to the first gradient value. If the TP gradient value is greater than or equal to (greater than) the first gradient value, execute S1304; otherwise, execute S1302.

[0203] The specific description of S1303 may refer to the relevant description of the gradient condition in S806, which will not be repeated here.

[0204] S1304: The touch hardware abstraction layer meets the preprocessing condition.

[0205] The description of S1108 specifically refers to the description of S806 and will not be repeated here.

[0206] S1109: Perform weighted processing on the touch hardware abstraction layer TP data to obtain pre-processed data.

[0207] If the preprocessing condition is met in S1108, S1109 is executed. The description of S1109 can refer to the relevant description of S807, which is not repeated here.

[0208] S1110: The touch hardware abstraction layer inputs the preprocessed data into the neural network model to obtain a first recognition result.

[0209] The first recognition result may indicate that the first touch event is a knuckle touch; or may indicate a non-knuckle touch.

[0210] Among them, the description of S1110 can refer to the relevant description of S808 and is not repeated here.

[0211] Optionally, if the preprocessing condition is not met in S1108, the touch hardware abstraction layer directly inputs the TP data into the neural network model to obtain a second recognition result. Similarly, the second recognition result may indicate that the first touch event is a knuckle touch; or may indicate a non-knuckle touch.

[0212] S1111: The touch hardware abstraction layer sends recognition result information to the touch screen manager.

[0213] When the touch hardware abstraction layer obtains the recognition result, it can send the recognition result information to the touch screen manager.

[0214] In one possible case, the touch hardware abstraction layer obtains a first recognition result, and the recognition result information includes the first recognition result. In another possible case, the touch hardware abstraction layer obtains a second recognition result, and the recognition result information includes the second recognition result. A touch event executes only one of the two cases, or neither (for example, the case of S1202).

[0215] S1112: The touch screen manager determines whether the recognition result information is a knuckle touch.

[0216] When the touch screen manager obtains the recognition result information, it can determine whether the recognition result information is a knuckle touch. If the recognition result information indicates that it is a knuckle touch, S1113 can be executed; if the recognition result information indicates that it is a non-knuckle touch, S1115 can be executed.

[0217] S1113: The touch screen manager sends a knuckle touch event to the knuckle control application.

[0218] The touch screen manager can send knuckle touch events to the knuckle control application, and correspondingly, the knuckle control application can receive knuckle touch events from the touch screen manager.

[0219] S1114: The knuckle control application performs a first response process based on the knuckle touch event.

[0220] The knuckle control application can perform a first response process for the first touch event. The process of the first response process can be referred to Figure 1A to Figure 1D And the related descriptions are not repeated here.

[0221] S1115: The touch screen manager sends touch event information to the first application.

[0222] The touch screen manager may send touch event information to the first application, and correspondingly, the first application may receive knuckle touch event information from the touch screen manager.

[0223] S1116: The first application performs a second response process based on the touch event information.

[0224] The first application can perform a second response process for the first touch event. The process of the second response process can be referred to Figure 2A and Figure 2B And the related descriptions are not repeated here.

[0225] In the above processing, the TP inner circle mean value of the knuckle touch is generally smaller than the TP inner circle mean value of the fingertip touch; and the TP gradient value of the knuckle is generally larger than the TP gradient value of the fingertip. Therefore, the neural network model recognition results of the TP data that meets the preprocessing conditions are often more inclined to the knuckle touch type. In order to increase the probability of identifying such data as the fingertip type, weighted processing can be performed, so that after the TP data that meets the preprocessing conditions is judged to be weighted, the recognition result of the preprocessed data is more likely to be the knuckle type than the TP data, thereby improving the recognition success rate.

[0226] Fig.14 Schematic diagram of a method for finger joint recognition proposed in an embodiment of the present application. Fig.14 As shown, the finger joint recognition method may include but is not limited to the following steps:

[0227] S1401: The electronic device obtains a first touch event.

[0228] S1402: The electronic device obtains TP data and ACC data of the first touch operation.

[0229] S1403: Electronic devices are screened based on the area characteristics of the TP data.

[0230] S1404: The electronic device performs screening based on the ACC data.

[0231] S1405: The electronic device calculates the TP gradient value and / or the TP inner circle mean value based on the TP data.

[0232] Among them, the specific details of S1401 to S1405 can refer to the relevant description of S801 to S805, which will not be repeated here.

[0233] S1406: The electronic device determines whether the preprocessing condition is not met based on the TP gradient value and / or the TP inner circle mean value. If the preprocessing condition is not met, S1407 is executed; if the preprocessing condition is met, S1409 is executed.

[0234] The process of the electronic device judging whether the preprocessing condition is not met based on the TP gradient value and / or the TP inner circle mean value may be specifically referred to the relevant description of S806 and will not be described in detail.

[0235] S1407: The electronic device performs weighted processing on the TP data to obtain pre-processed data.

[0236] The electronic device can perform weighted processing on the data of different circles in the TP data to obtain pre-processed data.

[0237] The outer circle data in the TP data is added with the first quantity to obtain preprocessed data.

[0238] In a possible implementation, the electronic device may perform weighted processing on the outer ring capacitance value of the TP data to obtain preprocessed data.

[0239] Method 1: Weight the inner circle according to the increase in the inner circle.

[0240] The electronic device is provided with an inner circle increase ratio, and the inner circle content value in the preprocessed data can be calculated according to the inner circle increase ratio. The inner circle increase ratio can refer to the increase ratio of the inner circle second content value in the preprocessed data relative to the inner circle first content value of the TP data. The inner circle second content value can be the inner circle content value after weighted processing; the inner circle first content value can be the original inner circle content value in the TP data. Among them, the range of the inner circle increase ratio can be 0% to 30%.

[0241] The second capacitance value of the nth inner circle = the first capacitance value of the nth inner circle + the inner circle increase ratio * the first capacitance value of the nth inner circle. Fig. 9 As shown, n is an integer from 1 to 8.

[0242] Method 2: Weight the inner circle according to the increase in the inner circle.

[0243] The electronic device is provided with an inner circle increment, and the sum of each inner circle first capacitance value of the TP data and the inner circle increment can be determined as the corresponding inner circle second capacitance value of the preprocessed data. The inner circle increment can range from 1 to 100.

[0244] The second capacitance value of the i-th inner circle = the first capacitance value of the i-th inner circle + the increase in the inner circle. Fig. 9 As shown, n is an integer from 1 to 8.

[0245] In the above two methods, except for changing the inner circle capacity value, the capacity values ​​of other circles remain unchanged, so that the pre-processed TP data can be obtained.

[0246] In the above-mentioned implementation, the electronic device can increase the inner circle content value while maintaining the original TP data as much as possible, and make slight adjustments to it. For TP data that does not meet the preprocessing conditions, the inner circle content value is increased slightly, and the output result of the neural network is more inclined to the non-finger joint touch type than the TP data, thereby reducing the recognition error rate.

[0247] In another possible implementation, the electronic device may perform weighted processing on the capacitance value of the inner circle of the TP data to obtain preprocessed data.

[0248] Method 1: Weight the outer circle according to the outer circle reduction ratio.

[0249] The electronic device may calculate the (second) outer ring capacitance in the preprocessed data according to the outer ring reduction ratio. The outer ring reduction ratio may refer to the reduction ratio of the outer ring second capacitance in the preprocessed data relative to the outer ring first capacitance of the TP data. The outer ring second capacitance may be the outer ring capacitance after weighted processing; the outer ring first capacitance may be the original outer ring capacitance in the TP data. The outer ring reduction ratio may range from 0% to 15%.

[0250] The second capacitance of the i-th outer ring = the first capacitance of the i-th outer ring - the first capacitance of the i-th outer ring * the outer ring reduction ratio. Fig. 9 As shown, i is an integer from 1 to 16.

[0251] Method 2: Weight the outer circle according to the reduction amount of the outer circle.

[0252] The electronic device is provided with an outer ring reduction amount, and the sum of each outer ring first capacitance value and the outer ring increase amount of the TP data can be determined as the corresponding outer ring second capacitance value of the preprocessed data. The outer ring reduction amount can range from 1 to 100.

[0253] The second capacitance of the i-th outer ring = the first capacitance of the i-th outer ring - the reduction amount of the outer ring. Fig. 9 As shown, i is an integer from 1 to 16.

[0254] In another possible implementation, the electronic device may perform weighted processing on the capacitance values ​​of the inner circle and the outer circle of the TP data to obtain preprocessed data.

[0255] Among them, the inner circle weighting can refer to the process of the electronic device performing weighted processing on the inner circle capacitance value of the TP data; the outer circle weighting can refer to the process of the electronic device performing weighted processing on the outer circle capacitance value of the TP data, and the specific process is not repeated. After the electronic device obtains the outer circle second capacitance value and the outer circle second capacitance value, the inner circle first capacitance value in the TP data can be replaced with the inner circle second capacitance value, and the outer circle first capacitance value can be replaced with the outer circle second capacitance value to obtain preprocessed data.

[0256] The processing process of S1407 is exactly opposite to the processing process of S807.

[0257] S1408: The electronic device inputs the preprocessed data into the neural network model to obtain a third recognition result.

[0258] Among them, the specific details of S1408 can refer to the relevant description of S808, which is not repeated here.

[0259] S1409: The electronic device inputs the TP data into the neural network model to obtain a fourth recognition result.

[0260] Among them, the specific details of S1409 can refer to the relevant description of S809, which is not repeated here.

[0261] Optionally, when the above preset conditions are met, the processes of S807 and S808 may be executed, which will not be described in detail.

[0262] In the above-mentioned implementation mode, when the preprocessing conditions are not met, the outer circle capacitance value can be reduced or the inner circle capacitance value can be increased, and the TP gradient value can be reduced, so that the network identification of touch data that may be biased towards non-finger joint types can be more biased towards non-finger joint types, thereby reducing the error rate of finger joint identification and improving user experience.

[0263] Fig.15 A schematic diagram of the hardware structure of the electronic device 100 is shown.

[0264] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, a sensor module 180, and a display screen 194. The sensor module 180 may include an acceleration sensor 180E and a touch sensor 180K.

[0265] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0266] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0267] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0268] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0269] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0270] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0271] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0272] The display screen 194 is used to display pictures, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0273] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device 100, and is applied to applications such as horizontal and vertical screen switching and pedometers. In the embodiment of the present application, the acceleration sensor can refer to an ACC sensor, which can obtain ACC data.

[0274] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.

[0275] In the embodiment of the present application, when the user touches the display screen, in response to the user's first touch operation, the acceleration sensor 180E of the electronic device can collect ACC data, and the touch sensor 180K can collect TP data.

[0276] In the embodiments of the present application, the electronic device may be a mobile phone, a tablet, a computer, a smart bracelet, etc., without limitation.

[0277] In the above embodiments, all or part of the functions can be implemented by software, hardware, or a combination of software and hardware. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrations. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state disk (SSD)), etc.

[0278] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

Claims

1. A touch recognition method, characterized in that: The method is applied to an electronic device, and the method comprises: receiving a first touch control operation of a user, and acquiring first touch panel data in response to the first touch control operation; the first touch panel data is a capacitance value matrix; In the case where the first touch panel data meets the preprocessing condition, performing a first weighted processing on the first touch panel data to obtain preprocessed data; wherein the preprocessing condition includes that the inner circle mean of the first touch panel data is less than or equal to the first inner circle value; the inner circle mean is the mean of the capacity values ​​corresponding to the coordinates of a circle immediately outside the center point in the capacity matrix; Among them, the first weighted processing of the first touch panel data includes: incremental weighting of the outer circle capacity value of the first touch panel data, and / or, subtractive weighting of the first touch panel data according to the inner circle capacity value; the outer circle capacity value is the capacity value corresponding to the coordinates of a circle adjacent to the outer side of the inner circle in the capacity matrix; the subtractive weighting of the first touch panel data according to the inner circle capacity value includes: reducing the inner circle capacity value of the touch panel data by the proportion of the inner circle reduction ratio, or reducing the inner circle capacity value of the first touch panel data by the inner circle reduction amount; the inner circle reduction ratio is the reduction ratio of the inner circle capacity value of the preprocessed data compared with the inner circle capacity value of the first touch panel data; The preprocessed data is input into a neural network model to obtain a first recognition result; the first recognition result is used to indicate whether the first touch operation is a knuckle touch operation.

2. The method according to claim 1, characterized in that The first inner circle value ranges from 500 to 800.

3. The method according to claim 1, characterized in that The preprocessing conditions also include that the gradient value of the first touch panel data is greater than or equal to the first gradient value; the gradient value of the first touch panel data is the ratio of the outer circle mean to the inner circle mean; the outer circle mean is the mean of the capacitance values ​​corresponding to the coordinates of a circle adjacent to the outer side of the inner circle in the capacitance matrix.

4. The method according to claim 3, characterized in that The first gradient value ranges from 0.1 to 0.

15.

5. The method according to claim 1, characterized in that The step of incrementally weighting the outer ring capacitance value of the first touch panel data includes: The outer circle capacitance of the first touch panel data is increased by the ratio of the outer circle increase ratio, or the outer circle capacitance of the first touch panel data is increased by the outer circle increase amount, to obtain preprocessed data; The outer ring increase ratio is an increase ratio of the outer ring capacitance of the pre-processed data to the outer ring capacitance of the first touch panel data.

6. The method according to claim 5, characterized in that The outer ring increase ratio ranges from 1% to 30%.

7. The method according to claim 1, characterized in that Before performing the first weighted processing on the first touch panel data, the method further includes: The electronic device obtains first ACC data of the first touch operation, and determines whether the first touch panel data meets the preprocessing condition when the ACC data is greater than or equal to a first ACC threshold.

8. The method according to claim 1, characterized in that Before performing the first weighted processing on the first touch panel data, the method further includes: When the area of ​​the first touch panel data satisfies the area condition, it is determined whether the first touch panel data satisfies the preprocessing condition.

9. The method according to any one of claims 1 to 8, characterized in that: The method further comprises: When the first touch panel data does not satisfy the preprocessing condition, the first touch panel data is input into the neural network model to obtain a second recognition result; the second recognition result is used to indicate whether the first touch operation is a knuckle touch operation.

10. A touch recognition method, characterized in that: The method is applied to an electronic device, and the method comprises: receiving a second touch operation of the user, and acquiring second touch panel data in response to the second touch operation; the second touch panel data is a capacitance matrix; In the case where the second touch panel data does not meet the preprocessing condition, the second touch panel data is subjected to a second weighted processing to obtain preprocessed data; wherein the preprocessing condition includes that the inner circle mean value of the second touch panel data is less than or equal to the first inner circle value; the inner circle mean value is the mean value of the capacity values ​​corresponding to the coordinates of a circle immediately outside the center point in the capacity matrix; the second weighted processing includes performing incremental weighting on the inner circle capacity value of the second touch panel data, and / or performing decremental weighting on the second touch panel data according to the outer circle capacity value; the outer circle capacity value is the capacity value corresponding to the coordinates of a circle immediately outside the inner circle in the capacity matrix; The incremental weighting of the inner circle capacity value of the second touch panel data includes: reducing the outer circle capacity value of the second touch panel data by the ratio of the outer circle reduction ratio, or reducing the outer circle capacity value of the second touch panel data by the outer circle reduction amount; the decremental weighting of the second touch panel data according to the outer circle capacity value includes: increasing the inner circle capacity value of the second touch panel data by the ratio of the inner circle increase ratio, or increasing the inner circle capacity value of the second touch panel data by the inner circle increase amount; the inner circle increase ratio is the increase ratio of the inner circle capacity value of the pre-processed data compared with the inner circle capacity value of the second touch panel data; the outer circle reduction ratio is the decrease ratio of the outer circle capacity value of the pre-processed data compared with the outer circle capacity value of the second touch panel data; The preprocessed data is input into a neural network model to obtain a third recognition result; the third recognition result is used to indicate whether the second touch operation is a knuckle touch operation.

11. The method according to claim 10, characterized in that The preprocessing conditions also include that the gradient value of the second touch panel data is greater than or equal to the first gradient value; the gradient value of the second touch panel data is the ratio of the outer circle mean to the inner circle mean; the outer circle mean is the mean of the capacitance values ​​corresponding to the coordinates of a circle adjacent to the outer side of the inner circle in the capacitance matrix.

12. The method according to claim 10 or 11, characterized in that: The method comprises: When the second touch panel data meets the preprocessing condition, the second touch panel data is input into the neural network model to obtain a fourth recognition result; the fourth recognition result is used to indicate whether the second touch operation is a knuckle touch operation.

13. An electronic device, characterized in that: include: One or more processors and one or more memories; the one or more processors are coupled to the one or more memories, the one or more memories are used to store computer program codes, the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the method as described in any one of claims 1 to 9.

14. An electronic device, characterized in that: include: One or more processors and one or more memories; the one or more processors are coupled to the one or more memories, the one or more memories are used to store computer program code, the computer program code includes computer instructions, when the one or more processors execute the computer instructions, the electronic device executes the method as described in any one of claims 10-12.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 10 to 12 is implemented.