CN-121996089-A - Touch processing method and device, electronic equipment and storage medium
Abstract
The disclosure relates to a touch processing method, a touch processing device, electronic equipment and a storage medium. The touch processing method comprises the steps of responding to the existence of target liquid on a touch screen and receiving touch operation, determining target touch signals according to n pieces of first capacitance data in a first scanning mode and i pieces of second capacitance data in a second scanning mode, wherein the i pieces of second capacitance data are capacitance data distributed in a touch area in m pieces of second capacitance data in the second scanning mode, the touch area is a touch area corresponding to the n pieces of first capacitance data, and executing functions corresponding to the target touch signals according to the target touch signals. According to the method and the device for acquiring the target touch signal, the target touch signal is acquired according to the detected n pieces of first capacitance data and the i pieces of second capacitance data distributed in the touch area, and reliability of the acquired target touch signal is improved.
Inventors
- CHENG DENG
Assignees
- 北京小米移动软件有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241101
Claims (12)
- 1. The touch processing method is characterized by comprising the following steps of: In response to the existence of target liquid on a touch screen and the receipt of touch operation, determining a target touch signal according to n pieces of first capacitance data in a first scanning mode and i pieces of second capacitance data in a second scanning mode, wherein the i pieces of second capacitance data are capacitance data distributed in a touch area in m pieces of second capacitance data in the second scanning mode, and the touch area is a touch area corresponding to the n pieces of first capacitance data; and executing the function corresponding to the target touch signal according to the target touch signal.
- 2. The method of claim 1, wherein determining the target touch signal based on the n first capacitance data in the first scan mode and the i second capacitance data in the second scan mode comprises: determining a first pixel coordinate according to the corresponding relation between the first capacitance data and the pixel coordinate and the data value corresponding to each first capacitance data in the n first capacitance data; determining a second pixel coordinate according to the corresponding relation between the second capacitance data and the pixel coordinate and the data value corresponding to each second capacitance data in the i second capacitance data; And obtaining a target pixel coordinate according to the first pixel coordinate and the second pixel coordinate, and determining the target pixel coordinate as the target touch signal.
- 3. The method of claim 2, wherein the obtaining the target pixel coordinates from the first pixel coordinates and the second pixel coordinates comprises: Respectively weighting the first pixel coordinate and the second pixel coordinate to obtain a weighted first pixel coordinate and a weighted second pixel coordinate; Determining the sum of the weighted first pixel coordinates and the weighted second pixel coordinates as a third pixel coordinate; And obtaining the target pixel coordinate according to the third pixel coordinate.
- 4. The method of claim 3, wherein the first capacitance data and the second capacitance data are data continuously collected by the touch screen after a touch operation is received; the obtaining the target pixel coordinate according to the third pixel coordinate includes: Determining a third pixel coordinate as a target pixel coordinate in response to the n pieces of first capacitance data and the m pieces of second capacitance data being data acquired by the first time node of the touch screen after the touch operation is received; And responding to the n first capacitance data and the m second capacitance data which are data acquired by a time node of the touch screen after the first time node receives touch operation, and obtaining target pixel coordinates according to a third target pixel coordinate weighted by a third weight and a history pixel coordinate weighted by a fourth weight based on an exponential weighted moving average filtering mode, wherein the history pixel coordinates are the target pixel coordinates acquired by the previous time node, the third weight and the fourth weight are parameters which change along with the change of the time node, and the third weight is greater than the fourth weight under the same time node.
- 5. The method of any of claims 1-4, wherein the n first capacitance data comprises x first capacitance data corresponding to a first dimension and y first capacitance data corresponding to a second dimension; The touch area is obtained in the following manner: And determining the touch area according to the corresponding relation between the first capacitance data and the pixel coordinates, the x first capacitance data corresponding to the first dimension and the y first capacitance data corresponding to the second dimension.
- 6. The method of any one of claims 1-4, wherein the first scan mode is a self-capacitance based scan mode and the first capacitance data is a self-capacitance signal; the second scanning mode is based on a mutual capacitance scanning mode, and the second capacitance data is a mutual capacitance signal.
- 7. The method of claim 1, wherein the first scan mode is a mutual capacitance based scan mode and the first capacitance data is a mutual capacitance signal; the second scanning mode is based on a self-capacitance scanning mode, and the second capacitance data is a self-capacitance signal.
- 8. The method of claim 7, wherein determining the target touch signal based on the n first capacitance data in the first scan mode and the i second capacitance data in the second scan mode comprises: Determining touch areas corresponding to the i pieces of second capacitance data, and determining j pieces of first capacitance data distributed in the touch areas corresponding to the i pieces of second capacitance data in the n pieces of first capacitance data; And determining the target touch signal according to the i second capacitance data and the j first capacitance data.
- 9. The method of any one of claims 1-4, wherein a data value corresponding to each of the n first capacitance data is greater than a preset threshold.
- 10. A touch processing apparatus, comprising: The processing unit is used for responding to the existence of target liquid on the touch screen and receiving touch operation, and determining target touch signals according to n pieces of first capacitance data in a first scanning mode and i pieces of second capacitance data in a second scanning mode, wherein the i pieces of second capacitance data are capacitance data distributed in a touch area in m pieces of second capacitance data in the second scanning mode, and the touch area is a touch area corresponding to the n pieces of first capacitance data; and the execution unit is used for executing the function corresponding to the target touch signal according to the target touch signal.
- 11. An electronic device, comprising: A processor: A memory for storing processor-executable instructions; Wherein the processor is configured to perform the touch processing method of any of claims 1 to 9.
- 12. A storage medium having instructions stored therein that, when executed by a processor, enable the processor to perform the touch processing method of any one of claims 1 to 9.
Description
Touch processing method and device, electronic equipment and storage medium Technical Field The disclosure relates to the field of intelligent device control, and in particular relates to a touch processing method, a touch processing device, electronic equipment and a storage medium. Background The unstable screen report point is one of the pain point problems of wet hand touch under the condition of the screen water operation of the electronic equipment. The reason is that the user's finger and water will trigger the screen contact to respond on the screen surface, resulting in serious coupling of the water-triggered screen response signal and the finger-triggered screen response signal, which is difficult to distinguish, making it difficult to accurately identify the user's operation and trigger the corresponding function. In the related art, post-processing can be performed according to the screen coordinates corresponding to the screen response signals generated by the user with water operation, so that the interference caused by the water-triggered screen response signals is reduced, and the electronic equipment can execute corresponding functions as far as possible according to the screen response signals triggered by the fingers of the user. Disclosure of Invention In order to overcome the problems in the related art, the disclosure provides a touch processing method, a touch processing device, an electronic device and a storage medium. According to a first aspect of the embodiments of the present disclosure, a touch processing method is provided, which includes determining a target touch signal according to n first capacitance data in a first scan mode and i second capacitance data in a second scan mode in response to a target liquid being present on a touch screen and a touch operation being received, where the i second capacitance data are capacitance data distributed in a touch area in m second capacitance data in the second scan mode, and the touch area is a touch area corresponding to the n first capacitance data, and executing a function corresponding to the target touch signal according to the target touch signal. In one embodiment, the determining the target touch signal according to the n first capacitance data in the first scanning mode and the i second capacitance data in the second scanning mode includes determining a first pixel coordinate according to a corresponding relation between the first capacitance data and the pixel coordinates and a data value corresponding to each of the n first capacitance data, determining a second pixel coordinate according to a corresponding relation between the second capacitance data and the pixel coordinates and a data value corresponding to each of the i second capacitance data, obtaining a target pixel coordinate according to the first pixel coordinate and the second pixel coordinate, and determining the target pixel coordinate as the target touch signal. In one embodiment, the obtaining the target pixel coordinate according to the first pixel coordinate and the second pixel coordinate includes weighting the first pixel coordinate and the second pixel coordinate to obtain a weighted first pixel coordinate and a weighted second pixel coordinate, determining a sum of the weighted first pixel coordinate and the weighted second pixel coordinate as a third pixel coordinate, and obtaining the target pixel coordinate according to the third pixel coordinate. In one embodiment, the first capacitance data and the second capacitance data are data continuously collected after the touch operation is received by the touch screen, the target pixel coordinate is obtained according to the third pixel coordinate, the method comprises the steps of responding to the n first capacitance data and the m second capacitance data which are data collected by the touch screen at the first time node after the touch operation is received, determining the third pixel coordinate as the target pixel coordinate, responding to the n first capacitance data and the m second capacitance data which are data collected by the touch screen at the time node after the first time node after the touch operation is received, obtaining the target pixel coordinate according to the third target pixel coordinate weighted by the third weight and the historical pixel coordinate weighted by the fourth weight based on an exponential weighting moving average filtering mode, wherein the historical pixel coordinate is the target pixel coordinate obtained by the last time node, the third weight and the fourth weight are parameters changing along with time node fluctuation, and the third weight and the fourth weight are greater than the third weight under the same time node. In one embodiment, the n first capacitance data comprise n/2 first capacitance data corresponding to a first dimension and n/2 first capacitance data corresponding to a second dimension, and the touch area is acquired in such a manner tha