Touch processing method and device, electronic equipment and storage medium
By increasing the large-area trigger threshold when liquid is present on the capacitive touchscreen, the problem of touch events not being triggered in the presence of liquid is solved, thus improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN HEYTAP TECHNOLOGY CO LTD
- Filing Date
- 2024-11-05
- Publication Date
- 2026-05-08
AI Technical Summary
When liquid is present, touch events on capacitive touchscreens cannot be triggered properly, resulting in a degraded user experience.
When liquid is detected on a capacitive touchscreen, the large-area trigger threshold is increased to distinguish between genuine touches and erroneous operations, ensuring accurate handling of touch events.
This improves the accuracy of touch event response for capacitive touchscreens in liquid environments, enhancing the user experience.
Smart Images

Figure CN121996103A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic device technology, and more specifically, to a touch processing method, apparatus, electronic device, and storage medium. Background Technology
[0002] With the rapid development of electronic device technology, the sensitivity and shock resistance of electronic device touch screens have been significantly improved. However, when there is liquid (such as rainwater) on the surface of the electronic device touch screen, or when the user touches the touch screen with wet fingers, the liquid on the touch screen surface will affect the conductive contact between the user's finger and the capacitive sensing element on the surface of the capacitive touch screen, which is mostly a capacitive touch screen. This will reduce the operation sensitivity of the capacitive touch screen and affect the user experience. Summary of the Invention
[0003] In view of the above problems, this application proposes a touch processing method, apparatus, electronic device, and storage medium to solve the above problems.
[0004] In a first aspect, embodiments of this application provide a touch processing method applied to an electronic device, the electronic device including a capacitive touchscreen. The method includes: in response to a touch event on the capacitive touchscreen, obtaining a touch position corresponding to the touch event; if it is determined that liquid is present on the capacitive touchscreen at the touch position, increasing a large-area trigger threshold of the capacitive touchscreen, wherein the large-area trigger threshold is used to indicate the suppression of touch events whose touch area reaches the large-area trigger threshold; and based on the touch event and the increased large-area trigger threshold, determining a processing method for the touch event, wherein the processing method includes reporting the touch event or not reporting the touch event.
[0005] Secondly, embodiments of this application provide a touch processing device applied to an electronic device, the electronic device including a capacitive touchscreen, the device including: a touch position acquisition module, configured to acquire a touch position corresponding to a touch event in response to a touch event on the capacitive touchscreen; a threshold amplification module, configured to increase a large-area trigger threshold of the capacitive touchscreen if it is determined that liquid is present at the touch position, wherein the large-area trigger threshold is used to indicate that touch events with a touch area reaching the large-area trigger threshold are suppressed; and a processing method determination module, configured to determine a processing method for the touch event based on the touch event and the increased large-area trigger threshold, wherein the processing method includes reporting the touch event or not reporting the touch event.
[0006] Thirdly, embodiments of this application provide an electronic device, including a memory and a processor, wherein the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor performs the above-described method.
[0007] Fourthly, embodiments of this application provide a computer-readable storage medium storing program code, which can be invoked by a processor to execute the above-described method.
[0008] The touch processing method, apparatus, electronic device, and storage medium provided in this application embodiment, in response to a touch event on a capacitive touchscreen, obtain the touch position corresponding to the touch event. If it is determined that there is liquid at the touch position on the capacitive touchscreen, the large-area trigger threshold of the touchscreen is increased. The large-area trigger threshold is used to indicate that touch events with a touch area reaching the large-area trigger threshold are suppressed. Based on the touch event and the increased large-area trigger threshold, a processing method for the touch event is determined. The processing method includes reporting the touch event or not reporting the touch event. Thus, by increasing the large-area trigger threshold when it is determined that there is liquid on the capacitive touchscreen, the problem of touch events not being triggered in scenarios where there is liquid on the capacitive touchscreen can be solved, improving the user experience. Attached Figure Description
[0009] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0010] Figure 1 A schematic flowchart of a touch processing method provided in an embodiment of this application is shown;
[0011] Figure 2 This illustration shows a schematic diagram of the fingerprint area on a capacitive touchscreen provided in an embodiment of this application when there is no liquid present.
[0012] Figure 3 This illustration shows a schematic diagram of the fingerprint area on a capacitive touchscreen provided in an embodiment of this application when liquid is present.
[0013] Figure 4 A schematic flowchart of a touch processing method provided in an embodiment of this application is shown;
[0014] Figure 5 A schematic flowchart of a touch processing method provided in an embodiment of this application is shown;
[0015] Figure 6 This application shows Figure 5 The flowchart of step S330 of the touch processing method shown is illustrated.
[0016] Figure 7 A schematic flowchart of a touch processing method provided in an embodiment of this application is shown;
[0017] Figure 8 This illustration shows a schematic diagram of touch data from a capacitive touchscreen provided in an embodiment of this application.
[0018] Figure 9 A block diagram of a touch processing device according to an embodiment of this application is shown;
[0019] Figure 10 A block diagram of an electronic device for performing a touch processing method according to an embodiment of this application is shown;
[0020] Figure 11 A storage unit for storing or carrying program code implementing the touch processing method according to an embodiment of the present application is shown. Detailed Implementation
[0021] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
[0022] With the continuous development of electronic devices, under-display optical fingerprint technology has been widely adopted. Currently, after activating under-display fingerprint technology, only the fingerprint area is responsive in the screen touch mode (i.e., tp_mode, touch response mode). Specifically, the common practice is to respond to touch events in the fingerprint area when the screen is off (screen off) or doze (screen doze), and to respond to touch events across the entire screen area when the screen is on, depending on the screen state at the kernel level.
[0023] However, the above-mentioned technical solutions have several issues with accidental triggering in various scenarios. For example, during a phone call, when the ear is close to the screen and the screen is in a screen-off state, the touch response area of the screen includes the fingerprint sensor. In this situation, when the face touches the fingerprint area, the call hang-up button might be accidentally pressed, causing the call to be unexpectedly interrupted. Another example is when the screen is off while the finger is on the fingerprint area. In this case, simply entering screen-doze mode based on the screen state change will trigger touch interaction on the fingerprint area, resulting in accidental fingerprint unlocking.
[0024] In summary, the existing technology does not take into account the touch and triggering characteristics of under-display fingerprint sensors. When the touch response mode is controlled solely by the screen state, there are many scenarios where the fingerprint sensor is accidentally triggered, and the user experience needs to be improved.
[0025] Furthermore, most current electronic devices are equipped with capacitive touchscreens. In related technologies, for touchscreens made using capacitive technology, under normal circumstances, finger contact with the touchscreen generates capacitance data, and liquids (such as rainwater falling on the screen or fingers wet when touching the screen) also generate capacitance data. Therefore, when a user touches a capacitive touchscreen with their finger, if there is liquid between the finger and the touchscreen, the capacitance data generated by the touchscreen will be inaccurate, resulting in reduced sensitivity of the touchscreen and affecting the user experience.
[0026] To prevent accidental touches on the touchscreens of electronic devices, these devices are typically equipped with a large-area trigger threshold. This threshold is used to indicate whether a touch event with a touch area exceeding the threshold will be suppressed. In other words, if a touch event on the touchscreen corresponds to a touch area that is too large (reaching the large-area trigger threshold), the touch event will be identified as an accidental touch and suppressed; conversely, if a touch event corresponds to a touch area that is too small (not reaching the large-area trigger threshold), the touch event will be identified as a genuine touch and reported.
[0027] However, the following problem exists: when a user touches a capacitive touchscreen with their finger, if there is liquid between the finger and the touchscreen (such as rainwater falling on the screen or a wet finger touching the screen), the liquid will expand the contact area between the finger and the touchscreen during the touch process. This may cause the expanded contact area to reach a large area trigger threshold, thereby inhibiting the touch operation and causing the trigger event to fail to be triggered in this liquid scenario, resulting in a poor user experience.
[0028] To address the aforementioned problems, the inventors, through extensive research, discovered and proposed the touch processing method, apparatus, electronic device, and storage medium provided in the embodiments of this application. By increasing the large-area trigger threshold when liquid is detected on the capacitive touchscreen, the problem of touch events failing to trigger in scenarios where liquid is present on the capacitive touchscreen can be solved, thus improving the user experience. The specific touch processing method will be described in detail in subsequent embodiments.
[0029] The following will explain the technical terms that may be involved in the embodiments of this application.
[0030] TpAlgo: Touch algorithm module.
[0031] Base: Reference point. In the process of detecting touch, the touch control chip of a capacitive touch screen first obtains the raw data by sampling through an ADC (Analog-to-Digital Converter) to obtain the raw value; then, a reference is established based on the raw value to obtain the reference value.
[0032] DiffData: The capacitance data of the capacitive touchscreen. The difference is obtained by subtracting the original value from the baseline value, and the coordinate value can be calculated from the difference. In order to obtain the correct difference, a correct baseline needs to be maintained. That is, the original value used to establish the baseline should be the original value sampled when the capacitive touchscreen is in a stable state. The stable state refers to the state when there are no objects such as fingers, styluses, water droplets, etc. on the capacitive touchscreen that will change the magnitude of the original value.
[0033] Reference anomaly: In actual use, capacitive touch screens may obtain incorrect references due to factors such as water droplets on the screen, hand sweat, and touch during power-on. This can lead to decreased touch screen sensitivity or false alarms. False alarms refer to a situation where a certain position on the capacitive touch screen is not actually touched, but the touch control chip calculates that there are coordinates.
[0034] Mutual capacitance: Mutual capacitance touchscreens are a new type of capacitive touch technology. A mutual capacitance touchscreen contains a grid, like an array, composed of an X*Y baseline array, forming an X*Y unit capacitance. It forms mutual capacitances between the elements in the columns and rows, and the controller measures the distortion of the electric field at each node on the touch position. Therefore, when a finger approaches or touches a mutual capacitance touchscreen, the capacitance decreases.
[0035] Self-capacitance: In capacitive touchscreens, self-capacitance refers to the capacitance between the touchscreen surface and its internal structure. When a finger or other conductor touches the touchscreen surface, an electric field is created between the surface and the interior, generating capacitance—this is self-capacitance. The magnitude of self-capacitance depends on factors such as the touchscreen's geometry, materials, and surface condition. In capacitive touchscreens, self-capacitance can be used to detect touch events on the touchscreen surface, thus enabling interactive functionality. The scanning method for self-capacitance involves projecting the touch point on the touchscreen onto the X and Y axes, calculating the coordinates along each axis, and then combining these coordinates to form the touch point's coordinates. Self-capacitance only generates two data signals: TX and RX.
[0036] Please see Figure 1 , Figure 1A flowchart illustrating a touch processing method according to an embodiment of this application is shown. This method addresses the problem of touch events failing to trigger in the presence of liquid on a capacitive touchscreen by increasing the large-area trigger threshold when liquid is detected on the touchscreen, thereby improving the user experience. In a specific embodiment, this method is applied to, for example... Figure 9 The touch processing device 200 and the electronic device 100 equipped with the touch processing device 200 are shown. Figure 10 The following will use an electronic device as an example to illustrate the specific process of this embodiment. Of course, it is understood that the electronic device used in this embodiment may include smartphones, tablets, wearable electronic devices, etc., and is not limited thereto. In this embodiment, the electronic device may include a capacitive touchscreen. The following will focus on... Figure 1 The process shown is described in detail. The touch processing method may specifically include the following steps:
[0037] Step S110: In response to a touch event on the capacitive touchscreen, obtain the touch position corresponding to the touch event.
[0038] Alternatively, the electronic device may include a capacitive touchscreen.
[0039] In this embodiment, touch events for the capacitive touchscreen can be monitored. If a touch event for the capacitive touchscreen is detected, the touch position corresponding to the touch event can be obtained in response to the touch event.
[0040] In some implementations, touch events on the capacitive touchscreen can be monitored in real time, at preset time intervals, at preset time points, or according to other preset rules, etc., without limitation.
[0041] In one approach, touch events for a capacitive touchscreen can include triggering a touch event on the capacitive touchscreen through a click operation. Optionally, the click operation on the capacitive touchscreen can include: a single-finger click operation, a multi-finger click operation, a single click operation, multiple consecutive click operations, a palm click operation, etc., without limitation.
[0042] As another approach, touch events for a capacitive touchscreen can include triggering a touch event by performing a press operation on the capacitive touchscreen. Optionally, the press operation on the capacitive touchscreen can include: a single-finger press operation, a multi-finger press operation, a palm press operation, a long press operation, etc., without limitation.
[0043] As another approach, touch events for a capacitive touchscreen can include triggering a touch event on the capacitive touchscreen through a sliding operation. Optionally, the sliding operation on the capacitive touchscreen can include: a single-finger sliding operation, a multi-finger sliding operation, a sliding operation along a specified direction, a sliding operation satisfying a specified sliding trajectory, a sliding operation satisfying a specified sliding distance, etc., without limitation.
[0044] In some implementations, the control chip inside the capacitive touchscreen periodically generates drive signals. These drive signals can be used to excite the electrodes on the touchscreen, enabling them to sense changes in charge. Furthermore, multiple receiving electrodes are distributed on the surface of the capacitive touchscreen. These electrodes are responsible for receiving the drive signals and sensing the charge changes caused by the new capacitance introduced by the touch. Based on this, when a touch event is detected on the capacitive touchscreen, such as when a finger or other conductor touches the screen, the amount of charge received by the receiving electrodes changes. Accordingly, the control chip can measure this charge change and, through an internal algorithm, convert the charge change into a voltage change. Then, it uses a series of algorithms (such as charge integration, weighted averaging, etc.) to determine the touch position corresponding to the touch event. Optionally, the touch position can be projected onto the X and Y axes, and the coordinates in both directions can be calculated separately, finally combined to form the coordinates of the touch position.
[0045] Optionally, if a touch event is detected on the capacitive touchscreen, the mutual capacitance data of the capacitive touchscreen can be collected. The collected mutual capacitance data is the touch change data on the capacitive touchscreen, which can reflect the touch position corresponding to the touch event.
[0046] Step S120: If it is determined that there is liquid at the touch position of the capacitive touch screen, the large area trigger threshold of the capacitive touch screen is increased, wherein the large area trigger threshold is used to indicate that touch events with a touch area reaching the large area trigger threshold are suppressed.
[0047] Optionally, the electronic device may pre-set and store a large-area trigger threshold, which is used to indicate the suppression of touch events whose touch area reaches the large-area trigger threshold. That is, if the touch area corresponding to a certain touch event reaches the large-area trigger threshold set by the electronic device, the touch event can be considered a misoperation event, and the touch event needs to be suppressed or eliminated, so the touch event can be suppressed; if the touch area corresponding to a certain touch event does not reach the large-area trigger threshold set by the electronic device, the touch event can be considered a real event, and the touch event needs to be retained, so the touch event can be reported.
[0048] The large-area trigger threshold set by the electronic device can be set at the factory and remain fixed, or the large-area trigger threshold set by the electronic device can be set at the factory and dynamically changed according to the user's needs in subsequent use. For example, the size of the large-area trigger threshold can be dynamically changed according to the different sizes of the user's fingers. No limitation is made here.
[0049] In this embodiment, when the touch location corresponding to the touch event is determined, the electronic device can detect whether liquid is present on the capacitive touchscreen at that touch location. If liquid is found at the touch location, it indicates that the touch area corresponding to the touch event on the capacitive touchscreen may be enlarged, causing a genuine touch event that has not reached the large-area trigger threshold to be misidentified as a false touch event that has reached the large-area trigger threshold, thus failing to respond to the user's genuine touch. Therefore, the large-area trigger threshold of the touchscreen can be increased, making touch events more easily identified as genuine touches, thus avoiding the failure to trigger due to the presence of liquid on the capacitive touchscreen and improving the user experience. If liquid is not found at the touch location, it indicates that the touch area corresponding to the touch event on the capacitive touchscreen will not be enlarged, preventing a genuine touch event that has not reached the large-area trigger threshold from being misidentified as a false touch event that has reached the large-area trigger threshold. Therefore, the large-area trigger threshold of the touchscreen can be maintained to ensure accurate determination of touch events.
[0050] Please see Figure 2 and Figure 3 , Figure 2 This illustration shows a schematic diagram of the fingerprint area on a capacitive touchscreen provided in an embodiment of this application when there is no liquid present. Figure 3 This illustration shows a schematic diagram of the fingerprint area on a capacitive touchscreen provided in an embodiment of this application when liquid is present. Figure 2 and Figure 3As shown, the fingerprint area (touch area) obtained when there is no liquid on the capacitive touchscreen is smaller than the fingerprint area (touch area) obtained when there is liquid on the capacitive touchscreen.
[0051] In some implementations, when the touch position corresponding to the touch event is determined, the capacitance data of the capacitive touch screen in the touch area corresponding to the touch position can be determined, and based on the capacitance data of the capacitive touch screen in the touch area corresponding to the touch position, it can be determined whether there is liquid at the touch position.
[0052] As one feasible approach, the electronic device can pre-set and store a default increment value. Accordingly, when it is determined that liquid is present at the touch location of the capacitive touchscreen, the large-area trigger threshold of the capacitive touchscreen is increased based on this default increment value. That is, as long as it is determined that liquid is present at the touch location of the capacitive touchscreen, the large-area trigger threshold of the touchscreen can be increased based on this default increment value regardless of the type and / or size of the liquid.
[0053] As another feasible approach, the electronic device can pre-set and store a first mapping relationship, which may include a correspondence between multiple liquid types and multiple first increment values, with different first increment values corresponding to different liquid types. Accordingly, when it is determined that liquid is present at the touch position of the capacitive touchscreen, the liquid type can be determined, such as whether the liquid is rainwater or a wet finger. Based on the first mapping relationship, the first increment value corresponding to the liquid type can be determined, and the large-area trigger threshold of the capacitive touchscreen can be increased based on the determined first increment value. That is, setting different large-area trigger thresholds for different liquid types can improve the accuracy of the large-area trigger threshold setting and enhance the touch experience.
[0054] As another feasible approach, the electronic device can pre-set and store a second mapping relationship, which may include a correspondence between multiple liquid sizes and multiple second increment values, with different liquid sizes corresponding to different second increment values. Accordingly, when it is determined that liquid is present at the touch position of the capacitive touchscreen, the liquid size of the liquid present on the capacitive touchscreen can be determined. Based on the second mapping relationship, the second increment value corresponding to the liquid size of the liquid present on the capacitive touchscreen can be determined, and the large-area trigger threshold of the capacitive touchscreen can be increased based on the determined second increment value. That is, setting different large-area trigger thresholds for different liquid sizes can improve the setting accuracy of the large-area trigger threshold and enhance the touch experience.
[0055] Step S130: Based on the touch event and the increased large-area trigger threshold, determine the processing method for the touch event, wherein the processing method includes reporting the touch event or not reporting the touch event.
[0056] In this embodiment, given the increased large-area trigger threshold, the processing method for the touch event can be determined based on the touch event and the increased large-area trigger threshold. The processing method for the touch event may include reporting the touch event or not reporting it.
[0057] In some implementations, after obtaining the increased large-area trigger threshold, the touch area corresponding to the touch event can be determined, and the touch area corresponding to the touch event can be compared with the increased large-area trigger threshold to determine whether the touch area corresponding to the touch event reaches the increased large-area trigger threshold. Specifically, if the touch area corresponding to the touch event does not reach the increased large-area trigger threshold, the touch event can be considered a genuine touch and can be reported; if the touch area corresponding to the touch event reaches the increased large-area trigger threshold, the touch event can be considered a misoperation and can not be reported.
[0058] One feasible approach is to determine the touch area corresponding to a touch event based on capacitive sensing. Specifically, when a finger touches a capacitive touchscreen (in this embodiment, there is liquid between the finger and the touchscreen), it causes a change in the touchscreen's capacitance. By measuring this capacitance change, the contact area between the finger and the touchscreen, amplified by the liquid, can be calculated. As an example, in the Android system, the MotionEvent object provides the getSize() method, which can directly obtain the touch area corresponding to a touch event.
[0059] As an example, suppose the initial large-area trigger threshold of an electronic device is N1, and the increased large-area trigger threshold is N2. When there is no liquid on the capacitive touchscreen, the touch area corresponding to the touch event is S1; when there is liquid on the capacitive touchscreen, the touch area corresponding to the touch event is S2, and N2 > S2 > N1 > S1. Based on this, when there is no liquid on the capacitive touchscreen, the large-area trigger threshold set by the electronic device is N1, and the touch area corresponding to the touch event is S1. Since N1 > S1, the touch event can be reported normally. However, when there is liquid on the capacitive touchscreen, the touch area corresponding to the touch event changes from S1 to S2. If the large-area trigger threshold set by the electronic device remains N1, since S2 > N1, the touch event will be suppressed, resulting in no response to the touch event. However, if the large-area trigger threshold set by the electronic device is increased from N1 to N2, since N2 > S2, the touch event can be reported normally, avoiding the problem of the electronic device being unable to respond to touch events in liquid scenarios and improving the touch experience.
[0060] This application discloses a touch processing method that, in response to a touch event on a capacitive touchscreen, obtains the touch position corresponding to the touch event. If it is determined that liquid is present at the touch position on the capacitive touchscreen, the large-area trigger threshold of the touchscreen is increased. The large-area trigger threshold is used to indicate that touch events with a touch area reaching the large-area trigger threshold are suppressed. Based on the touch event and the increased large-area trigger threshold, a processing method for the touch event is determined. This processing method includes reporting the touch event or not reporting the touch event. By increasing the large-area trigger threshold when liquid is determined to be present on the capacitive touchscreen, the problem of touch events not being triggered in scenarios where liquid is present on the capacitive touchscreen can be solved, thus improving the user experience.
[0061] Please see Figure 4 , Figure 4 A schematic flowchart of a touch processing method according to an embodiment of this application is shown. In this embodiment, the electronic device may include a capacitive touchscreen and a fingerprint recognition module. The following will focus on... Figure 4 The process shown is described in detail. The touch processing method may specifically include the following steps:
[0062] Step S210: In response to a touch event on the capacitive touchscreen, obtain the touch position corresponding to the touch event.
[0063] For a detailed description of step S210, please refer to step S110, which will not be repeated here.
[0064] Step S220: If it is determined that there is liquid at the touch position of the capacitive touch screen, then the mode of the electronic device is determined.
[0065] Optionally, the electronic device may include a capacitive touchscreen and a fingerprint recognition module, wherein the fingerprint recognition module is disposed under the capacitive touchscreen to form an "under-display fingerprint".
[0066] In this embodiment, if it is determined that liquid is present at the touch location on the capacitive touchscreen, the mode of the electronic device can be determined. Optionally, the mode of the electronic device may include an unlock mode, which may include iris recognition, facial recognition, voiceprint recognition, gesture recognition, fingerprint recognition, etc.; the mode of the electronic device may include an operation mode, which may include standard mode (default mode), power saving mode, airplane mode, do not disturb mode, one-handed operation mode, full-screen operation mode, etc.; the mode of the electronic device may also include a scene mode, which may include general mode, outdoor mode, meeting mode, etc., without limitation.
[0067] In some implementations, the electronic device may have built-in firmware for pattern detection, which can then be used to determine the mode in which the electronic device is operating.
[0068] Step S230: If the electronic device is in fingerprint mode, increase the large-area trigger threshold of the capacitive touch screen, wherein the capacitive touch screen is in a screen-off state in fingerprint mode and the fingerprint recognition module is in an on state in fingerprint mode. The large-area trigger threshold is used to indicate that touch events with a touch area reaching the large-area trigger threshold are suppressed.
[0069] In fingerprint mode, the capacitive touchscreen is in a sleep state while the fingerprint recognition module is in an active state. This means users can input their fingerprints to unlock and activate the touchscreen. Specifically, users can input their fingerprints by touching the area corresponding to the fingerprint recognition module on the touchscreen. The fingerprint recognition module then collects the fingerprint information based on the touch input and determines whether to proceed with subsequent fingerprint recognition and verification.
[0070] In fingerprint mode, it's understandable that electronic devices need to collect and verify the fingerprint information entered by the user through the corresponding fingerprint recognition module on the capacitive touchscreen before they can activate the touchscreen and access the desktop or application page for use. Therefore, successfully collecting and reporting the fingerprint touch event is crucial for the device's usability. In this scenario, interference with the fingerprint touch event should be minimized, such as avoiding liquids on the capacitive touchscreen that could interfere with its reporting.
[0071] Therefore, in this embodiment, upon obtaining the mode of the electronic device, it can be determined whether the mode is fingerprint mode. If the mode is determined to be fingerprint mode, interference with fingerprint touch events should be minimized. Therefore, the large-area trigger threshold of the capacitive touchscreen can be increased to make touch events in fingerprint mode more easily recognized as genuine touches. This avoids the inaccurate suppression of genuine touches when liquid is present on the capacitive touchscreen, preventing the failure to upload fingerprint touch events. This makes it easier for users to successfully verify their fingerprints in liquid environments, improving the user experience.
[0072] As an feasible approach, the electronic device can pre-set and store a large-area trigger threshold corresponding to the fingerprint mode when liquid is present on the capacitive touchscreen. It is understood that this large-area trigger threshold is greater than the initial large-area trigger threshold set by the electronic device (corresponding to the case where no liquid is present on the capacitive touchscreen). Therefore, when it is determined that liquid is present at the touch location on the capacitive touchscreen and the electronic device is in fingerprint mode, the initial large-area trigger threshold set by the electronic device can be increased to the large-area trigger threshold corresponding to the fingerprint mode, thus obtaining the increased large-area trigger threshold.
[0073] As another feasible approach, the electronic device can pre-set and store an increase in the large-area trigger threshold corresponding to the fingerprint mode when liquid is present on the capacitive touchscreen. Therefore, when it is determined that liquid is present at the touch location on the capacitive touchscreen and the electronic device is in fingerprint mode, the initially set large-area trigger threshold of the electronic device can be increased by this increase to obtain the increased large-area trigger threshold.
[0074] In some implementations, upon obtaining the mode of the electronic device, it can be determined whether the mode is fingerprint mode. If the mode is determined to be fingerprint mode, interference with fingerprint touch events should be minimized. Therefore, the large-area suppression function of the capacitive touchscreen can be disabled to eliminate the suppression of touch events where the touch area reaches the large-area trigger threshold. It can be understood that if the large-area suppression function of the capacitive touchscreen is disabled, it means that the electronic device has not set a large-area trigger threshold. Therefore, regardless of the size of the touch area corresponding to the touch operation on the capacitive touchscreen, the touch operation will not be suppressed and will be reported, thus avoiding the problem of fingerprint triggering failure and improving the user's fingerprint triggering experience.
[0075] As one feasible approach, if the electronic device is determined to be in fingerprint mode, a prompt message can be output to guide the user to choose whether to disable the large-area suppression function. Specifically, if a confirmation message is detected based on the prompt message, it indicates that the user has chosen to disable the large-area suppression function, thus disabling the large-area suppression function of the capacitive touchscreen; if a negative message is detected based on the prompt message, it indicates that the user has chosen not to disable the large-area suppression function, thus keeping the large-area suppression function enabled. Optionally, while keeping the large-area suppression function enabled, the corresponding large-area trigger threshold can be maintained, or the corresponding area trigger threshold can be increased.
[0076] Ultrasonic fingerprint scanning is a type of under-display fingerprint scanner, and it features a larger trigger area compared to other under-display fingerprint scanners. Ultrasonic fingerprint recognition technology emits high-frequency sound waves and receives the echo signals to form an internal structural image. This image reflects the three-dimensional features of the fingerprint, such as fingerprint ridges and pores. The electronic device compares this image with pre-stored fingerprint data to confirm identity. Understandably, because ultrasonic fingerprint scanning has a larger trigger area than other under-display fingerprint scanners, it requires capturing more fingerprint information. Therefore, when liquid is present on a capacitive touchscreen, the touch area corresponding to the touch operation is more likely to exceed the initially set large-area trigger threshold, thus suppressing the touch operation and causing the fingerprint scanner to fail to trigger.
[0077] In some implementations, upon obtaining the mode of the electronic device, it can be determined whether the mode is fingerprint mode. If the mode is determined to be fingerprint mode, and the fingerprint recognition module installed under the capacitive touchscreen is determined to be an ultrasonic fingerprint recognition module, then interference with ultrasonic fingerprint touch events should be minimized. Therefore, the large-area trigger threshold of the capacitive touchscreen can be increased to make ultrasonic fingerprint touch events in fingerprint mode more easily recognized as real touches. This avoids the inaccurate suppression of real touches when liquid is present on the capacitive touchscreen, preventing the upload of ultrasonic fingerprint touch events. This makes it easier for users to successfully perform ultrasonic fingerprint verification in liquid environments, improving the user experience.
[0078] As an feasible approach, the electronic device can pre-set and store the large-area trigger threshold that the fingerprint mode should correspond to for ultrasonic fingerprints when liquid is present on the capacitive touchscreen. It is understood that this large-area trigger threshold is greater than the large-area trigger threshold initially set by the electronic device (corresponding to the case where no liquid is present on the capacitive touchscreen). Therefore, when it is determined that liquid is present at the touch location on the capacitive touchscreen, and that the electronic device is in fingerprint mode and the fingerprint recognition module is an ultrasonic fingerprint recognition module, the initially set large-area trigger threshold of the electronic device can be increased to the large-area trigger threshold that the fingerprint mode should correspond to for ultrasonic fingerprints, thus obtaining the increased large-area trigger threshold.
[0079] As another feasible approach, the electronic device can be pre-set and stored with an increased value for the large-area trigger threshold that corresponds to ultrasonic fingerprint recognition when liquid is present on the capacitive touchscreen. Therefore, when it is determined that liquid is present at the touch location on the capacitive touchscreen, and the electronic device is in fingerprint mode and the fingerprint recognition module is an ultrasonic fingerprint recognition module, the initially set large-area trigger threshold of the electronic device can be increased by this increased value to obtain the increased large-area trigger threshold.
[0080] Step S240: Based on the touch event and the increased large-area trigger threshold, determine the processing method for the touch event, wherein the processing method includes reporting the touch event or not reporting the touch event.
[0081] For a detailed description of step S240, please refer to step S130, which will not be repeated here.
[0082] One embodiment of this application provides a touch processing method that, corresponding to touch events on a capacitive touchscreen, obtains the touch position corresponding to the touch event. If it is determined that liquid is present at the touch position on the capacitive touchscreen, the mode of the electronic device is determined. If the mode of the electronic device is fingerprint mode, the large-area trigger threshold of the touchscreen is increased. In fingerprint mode, the capacitive touchscreen is in a screen-off state and the fingerprint recognition module is in an on state. The large-area trigger threshold is used to indicate the suppression of touch events whose touch area reaches the large-area trigger threshold. Based on the touch event and the increased large-area trigger threshold, a processing method for the touch event is determined, which includes reporting the touch event or not reporting the touch event. Compared to... Figure 1 The touch processing method shown in this embodiment further increases the large-area trigger threshold of the touch screen when the electronic device is in fingerprint mode, in order to solve the problem that fingerprint recognition cannot be triggered in liquid scenarios and improve the fingerprint recognition effect.
[0083] Please see Figure 5 , Figure 5 A schematic flowchart of a touch processing method according to an embodiment of this application is shown. The following will focus on... Figure 5 The process shown is described in detail. In this embodiment, the electronic device may include...
[0084] Step S310: In response to a touch event on the capacitive touchscreen, obtain the touch position corresponding to the touch event.
[0085] For a detailed description of step S310, please refer to step S110, which will not be repeated here.
[0086] Step S320: If it is determined that there is liquid at the touch position of the capacitive touch screen, then the display content corresponding to the touch position of the capacitive touch screen is determined.
[0087] In this embodiment, if it is determined that there is liquid at the touch position of the capacitive touch screen, the display content corresponding to the touch position of the capacitive touch screen can be determined.
[0088] In some implementations, if it is determined that liquid is present at the touch position on the capacitive touchscreen, the touch coordinate range corresponding to the touch position on the capacitive touchscreen can be determined. Then, the display content displayed within the touch coordinate range is searched in the display interface of the capacitive touchscreen, and the found display content displayed within the touch coordinate range is determined as the display content corresponding to the touch position. Optionally, the touch coordinate range corresponding to the touch position on the capacitive touchscreen can be the same as or slightly larger than the touch position range; this is not limited here.
[0089] Optionally, the displayed content may include operable controls or non-operable objects. If the displayed content includes operable controls, these controls may include button controls, text controls, selection controls, list controls, dialog box controls, tooltip controls, menu controls, navigation controls, progress controls, etc. If the displayed content includes non-operable objects, these non-operable objects may include static text, images, background elements, read-only information areas, etc., without limitation.
[0090] Step S330: If the displayed content includes operable controls, then increase the large-area trigger threshold of the capacitive touch screen, wherein the large-area trigger threshold is used to indicate that touch events with a touch area reaching the large-area trigger threshold are suppressed.
[0091] In this embodiment, when the display content corresponding to the touch position of the capacitive touchscreen is determined, it can be determined whether the display content includes operable controls. If the display content includes operable controls, it can be assumed that the user intends to touch the operable controls and wants to report the touch event corresponding to the touch position. Therefore, the large-area trigger threshold of the capacitive touchscreen can be increased to make touch events more easily recognized as genuine touches, avoiding the erroneous suppression of genuine touches caused by the presence of liquid on the capacitive touchscreen, thus improving the user's touch experience with operable controls. If the display content does not include operable controls, it can be assumed that the user does not intend to touch the operable controls on the capacitive touchscreen's display interface and does not want to report the touch event corresponding to the touch position. Therefore, the large-area trigger threshold of the capacitive touchscreen can be maintained to ensure the accurate determination of touch events.
[0092] Please see Figure 6 , Figure 6 This application shows Figure 5 The flowchart shown illustrates step S330 of the touch processing method. The following will focus on... Figure 6 The process shown will be described in detail, and the method may specifically include the following steps:
[0093] Step S331: If the displayed content includes the operable control, then determine the probability of the operable control being touched.
[0094] In this embodiment, if it is determined that the displayed content includes operable controls, the probability of the operable controls being touched can be determined.
[0095] In some implementations, the first number of times the electronic device displays the operable control within a first preset time period and the first number of times the user touches the operable control within the first preset time period can be determined. Based on the first number of displays and the first number of touches, the probability of the operable control being touched can be determined.
[0096] In some implementations, the number of times each of the plurality of reference electronic devices displays the operable control within a second preset time period can be determined, as well as the number of times each of the plurality of users touches the operable control within the second preset time period. Based on the number of times the second display is made and the number of times the second touch is made, the probability of the operable control being touched can be determined.
[0097] Step S332: If the probability of being touched reaches the probability threshold, then increase the large-area trigger threshold of the capacitive touch screen.
[0098] In some implementations, electronic devices can pre-set and store probability thresholds, which serve as the basis for determining the probability of being touched. Therefore, in this embodiment, when the probability of the operable control being touched is determined, the probability of being touched can be compared with the probability threshold to determine whether the probability of being touched reaches the probability threshold. If the probability of being touched reaches the probability threshold, it can be considered that the probability of the user expecting to touch the operable control and wanting to report the touch event corresponding to the touch location is relatively high. In this case, the large-area trigger threshold of the capacitive touchscreen can be increased to make the touch event more easily recognized as a real touch, thus avoiding the failure to trigger the real touch when there is liquid on the capacitive touchscreen due to incorrect suppression, thereby improving the user's touch experience with the operable control. If the probability of being touched does not reach the probability threshold, it can be considered that the probability of the user expecting to touch the operable control and wanting to report the touch event corresponding to the touch location is relatively low. In this case, the large-area trigger threshold of the capacitive touchscreen can be maintained to ensure the accurate determination of touch events.
[0099] Step S340: Based on the touch event and the increased large-area trigger threshold, determine the processing method for the touch event, wherein the processing method includes reporting the touch event or not reporting the touch event.
[0100] For a detailed description of step S340, please refer to step S130, which will not be repeated here.
[0101] One embodiment of this application provides a touch processing method that, corresponding to a touch event on a capacitive touchscreen, obtains the touch position corresponding to the touch event. If it is determined that liquid is present at the touch position on the capacitive touchscreen, the display content corresponding to the touch position is determined. If the display content includes operable controls, the large-area trigger threshold of the touchscreen is increased. The large-area trigger threshold is used to indicate the suppression of touch events whose touch area reaches the large-area trigger threshold. Based on the touch event and the increased large-area trigger threshold, a processing method for the touch event is determined, which includes reporting the touch event or not reporting the touch event. Compared to... Figure 1 The touch processing method shown in this embodiment further increases the large-area trigger threshold of the touch screen when the display content corresponding to the touch position includes operable controls, so as to improve the touch response efficiency for operable controls and enhance the user experience.
[0102] Please see Figure 7 , Figure 7 A schematic flowchart of a touch processing method according to an embodiment of this application is shown. The following will focus on... Figure 7 The process shown is described in detail. The touch processing method may specifically include the following steps:
[0103] Step S410: In response to a touch event on the capacitive touchscreen, obtain the touch position corresponding to the touch event.
[0104] For a detailed description of step S410, please refer to step S110, which will not be repeated here.
[0105] Step S420: Obtain the capacitance data of the capacitive touch screen within the touch area corresponding to the touch position.
[0106] In this embodiment, when the touch position corresponding to the touch event is determined, the capacitance data of the capacitive touch screen in the touch area corresponding to the touch position can be obtained.
[0107] In some implementations, when the touch position corresponding to the touch event is determined, the touch area corresponding to the touch position can be determined, and the capacitance data of the capacitive touchscreen within the touch area corresponding to the touch position can be obtained. Optionally, the size of the touch area can be the same as the size of the touch frame corresponding to the touch position, or the size of the touch area can be larger than the size of the touch frame corresponding to the touch position, etc., without limitation.
[0108] Please see Figure 8 , Figure 8 This diagram illustrates touch data of a capacitive touchscreen provided in an embodiment of this application. For ease of subsequent calculation, a rectangular frame is used to represent the detection area of each capacitive sensing unit in the touch data of this embodiment. When an object (such as a finger, palm, or stylus) touches the capacitive touchscreen, the capacitance of the capacitive sensing unit changes (i.e., a difference is generated). Obtaining the difference between each capacitive sensing unit on the capacitive touchscreen yields a frame of touch data. Figure 8 The numbers within each rectangle represent the magnitude of the difference, which indicates the change in capacitance caused by the touch. Multiple rectangles with these differences arranged together form the touch frame corresponding to the current touch operation. This touch frame reflects the touch area corresponding to the touch location. It's important to note that the touch nodes within the touch frame are continuous, or rather, they do not contain discrete touch nodes (i.e., they are not connected to any other nodes). Each small rectangle within a touch frame forms a touch node, and the total number of nodes within the touch frame is the number of touch nodes. In actual products, one touch node can correspond to one sensing node or monitoring point. Each column / row also has its own number of touch nodes. Correspondingly, each row / column can be considered a detection channel, and a detection channel can be a driving line / sensing line on a touch sensor. That is, in this embodiment, in response to a touch event acting on the capacitive touchscreen, the capacitance data of each touch unit of the capacitive touchscreen is acquired, and the touch frame corresponding to the touch operation is obtained based on the capacitance data of each touch unit.
[0109] It is worth mentioning that, in some embodiments, the number of touch nodes within the touch frame corresponding to the touch position can be compensated, which is beneficial for accurately acquiring capacitance data. Specifically, in one example, the touch frame corresponding to the touch position on the capacitive touchscreen can be obtained in the following way: When a touch event is detected on the capacitive touchscreen, the touch event can be an edge touch operation or a non-edge touch operation. An initial frame is extracted from the touch data of the touch event. The difference between the touch nodes in the initial frame is greater than a first node threshold. Optionally, the first node threshold can be 180. The system searches for touch nodes with a difference greater than a second node threshold in the adjacent detection channels of the initial frame. The second node threshold is less than the first node threshold. For example, the second node threshold can be 40. If there are touch nodes with a difference greater than the second node threshold, they are merged into the initial frame to obtain the touch frame.
[0110] In some implementations, the control chip inside the capacitive touchscreen periodically generates drive signals. These drive signals can be used to excite the electrodes on the touchscreen, enabling them to sense changes in charge. Furthermore, multiple receiving electrodes are distributed on the surface of the capacitive touchscreen. These electrodes are responsible for receiving the drive signals and sensing the charge changes caused by the new capacitance introduced by the touch. Based on this, when a touch event is detected on the capacitive touchscreen, such as when a finger or other conductor touches the screen, the amount of charge received by the receiving electrodes changes. Accordingly, the control chip can measure this charge change and, through internal algorithms, convert the charge change into a voltage change. Then, through a series of algorithms (such as charge integration, weighted averaging, etc.), it determines the touch position corresponding to the touch event, the touch area corresponding to the touch position, and the capacitance data within the touch area.
[0111] Step S430: If it is determined based on the capacitance data that there is liquid at the touch position of the capacitive touch screen, then the large area trigger threshold of the capacitive touch screen is increased, wherein the large area trigger threshold is used to indicate that touch events with a touch area reaching the large area trigger threshold are suppressed.
[0112] In this embodiment, upon obtaining capacitance data within the touch area corresponding to the touch position, it can be determined whether liquid exists at the touch position on the capacitive touchscreen based on the capacitance data. Specifically, if the capacitance data determines that liquid exists at the touch position, the large-area trigger threshold of the capacitive touchscreen can be increased; if the capacitance data determines that liquid does not exist at the touch position, the large-area trigger threshold of the capacitive touchscreen can be maintained.
[0113] In some implementations, when capacitance data within the touch area corresponding to the touch position is obtained, it can be determined based on this capacitance data whether the capacitance data of touch nodes included in the same receiving cable RX within the touch area has positive and negative values. If it is determined based on the capacitance data that the capacitance data of touch nodes included in the same receiving cable within the touch area has both positive and negative values, then it can be determined that liquid is present on the capacitive touchscreen.
[0114] In some implementations, when capacitance data within the touch area corresponding to the touch position is obtained, it can be determined based on this capacitance data whether the capacitance data of the touch nodes included in the same drive cable TX within the touch area has positive and negative values. Specifically, if it is determined based on the capacitance data that the capacitance data of the touch nodes included in the same drive cable within the touch area has both positive and negative values, it can be determined that liquid is present on the capacitive touchscreen.
[0115] In some implementations, when capacitance data within the touch area corresponding to the touch position is obtained, it can be determined based on this capacitance data whether the capacitance data of touch nodes included in the same receiving cable and the same driving cable within the touch area have positive and negative values. Specifically, if it is determined based on the capacitance data that the capacitance data of touch nodes included in the same receiving cable and the same driving cable within the touch area have both positive and negative values, it can be determined that liquid is present on the capacitive touchscreen.
[0116] Step S440: Based on the touch event and the increased large-area trigger threshold, determine the processing method for the touch event, wherein the processing method includes reporting the touch event or not reporting the touch event.
[0117] For a detailed description of step S440, please refer to step S130, which will not be repeated here.
[0118] One embodiment of this application provides a touch processing method that, in response to a touch event on a capacitive touchscreen, acquires the touch position corresponding to the touch event, acquires capacitance data of the touch area of the capacitive touchscreen corresponding to the touch position, and if it is determined based on the capacitance data that liquid is present at the touch position, increases the large-area trigger threshold of the touchscreen. The large-area trigger threshold is used to indicate the suppression of touch events whose touch area reaches the large-area trigger threshold. Based on the touch event and the increased large-area trigger threshold, a processing method for the touch event is determined, which includes reporting the touch event or not reporting the touch event. Compared to... Figure 1 The touch processing method shown in this embodiment further determines whether there is liquid at the touch position based on the capacitance data of the touch position corresponding to the touch event, thereby improving the accuracy of liquid detection.
[0119] Please see Figure 9 , Figure 9 A block diagram of a touch processing device according to an embodiment of this application is shown. In this embodiment, the touch processing device 200 may include a capacitive touchscreen, which will be discussed below. Figure 9 The block diagram shown illustrates that the touch processing device 200 may include: a touch position acquisition module 210, a threshold amplification module 220, and a processing mode determination module 230, wherein:
[0120] The touch position acquisition module 210 is used to acquire the touch position corresponding to the touch event in response to a touch event on the capacitive touch screen.
[0121] The threshold increase module 220 is used to increase the large area trigger threshold of the capacitive touch screen if it is determined that there is liquid at the touch position. The large area trigger threshold is used to indicate that touch events with a touch area reaching the large area trigger threshold are suppressed.
[0122] Furthermore, the electronic device also includes a fingerprint recognition module disposed under the capacitive touchscreen. The threshold amplification module 220 includes a pattern determination submodule and a first threshold amplification submodule, wherein:
[0123] The mode determination submodule is used to determine the mode of the electronic device if it is determined that there is liquid at the touch position of the capacitive touch screen.
[0124] The first threshold increase submodule is used to increase the large-area trigger threshold of the capacitive touch screen if the electronic device is in fingerprint mode, wherein the capacitive touch screen is in a screen-off state and the fingerprint recognition module is in an on state in the fingerprint mode.
[0125] Further, the first threshold amplification submodule includes: a first threshold amplification unit, wherein:
[0126] The first threshold increasing unit is used to increase the large-area trigger threshold of the capacitive touch screen if the mode of the electronic device is the fingerprint mode and the fingerprint recognition module is an ultrasonic fingerprint recognition module.
[0127] Furthermore, the threshold increase module 220 also includes: a function disable submodule, wherein:
[0128] The function disable submodule is used to disable the large area suppression function of the capacitive touch screen if the electronic device is in the fingerprint mode, so as to cancel the suppression of touch events when the touch area reaches the large area trigger threshold.
[0129] Furthermore, the threshold amplification module 220 further includes: a display content determination submodule and a second threshold amplification submodule, wherein:
[0130] The display content determination submodule is used to determine the display content corresponding to the touch position of the capacitive touch screen if it is determined that there is liquid at the touch position.
[0131] The second threshold increase submodule is used to increase the large-area trigger threshold of the capacitive touchscreen if the displayed content includes operable controls.
[0132] Further, the second threshold amplification submodule includes: a touch probability determination unit and a second threshold amplification unit, wherein:
[0133] The touch probability determination unit is used to determine the touch probability corresponding to the operable control if the displayed content includes the operable control.
[0134] The second threshold increasing unit is used to increase the large-area trigger threshold of the capacitive touch screen if the touch probability reaches the probability threshold.
[0135] Further, the threshold amplification module 220 includes: a capacitance data acquisition submodule and a third threshold amplification submodule, wherein:
[0136] The capacitance data acquisition submodule is used to acquire the capacitance data of the capacitive touch screen within the touch area corresponding to the touch position.
[0137] The third threshold increase submodule is used to increase the large-area trigger threshold of the capacitive touchscreen if it is determined based on the capacitance data that there is liquid at the touch position of the capacitive touchscreen.
[0138] Further, the threshold amplification module 220 includes: a first liquid determination submodule and a second liquid determination submodule, wherein:
[0139] The first liquid determination submodule is used to determine that liquid exists at the touch position of the capacitive touch screen if the capacitance data of the touch nodes included in the same receiving cable in the touch area has positive and negative values based on the capacitance data.
[0140] The second liquid determination submodule is used to determine that liquid exists at the touch position of the capacitive touch screen if the capacitance data of the touch nodes included in the same drive cable in the touch area has positive and negative values based on the capacitance data.
[0141] The processing method determination module 230 is used to determine the processing method for the touch event based on the touch event and the increased large-area trigger threshold, wherein the processing method includes reporting the touch event or not reporting the touch event.
[0142] Furthermore, the processing method determination module 230 shown includes: a touch area determination submodule, a touch event reporting submodule, and a touch event suppression submodule, wherein:
[0143] The touch area determination submodule is used to determine the touch area corresponding to the touch event.
[0144] The touch event reporting submodule is used to report the touch event if the touch area corresponding to the touch event does not reach the increased large area trigger threshold.
[0145] The touch event suppression submodule is used to prevent the touch event from being reported if the touch area corresponding to the touch event reaches the increased large area trigger threshold.
[0146] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0147] In the several embodiments provided in this application, the coupling between modules can be electrical, mechanical, or other forms of coupling.
[0148] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0149] Please see Figure 10 This diagram illustrates a structural block diagram of an electronic device 100 provided in an embodiment of this application. The electronic device 100 can be a smartphone, tablet computer, e-reader, or other electronic device capable of running applications. The electronic device 100 in this application may include one or more of the following components: a processor 110, a memory 120, a touchscreen 130, and one or more applications. The one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110. The one or more applications are configured to perform the methods described in the foregoing method embodiments.
[0150] The processor 110 may include one or more processing cores. The processor 110 connects to various parts within the electronic device 100 using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and by calling data stored in the memory 120. Optionally, the processor 110 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 110 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content to be displayed; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 110 and may be implemented separately using a communication chip.
[0151] The memory 120 may include random access memory (RAM) or read-only memory (ROM). The memory 120 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described below. The data storage area may also store data created by the electronic device 100 during use (such as phonebook data, audio and video data, chat log data, etc.).
[0152] The touchscreen 130 is used to display information input by the user, information provided to the user, and various graphical user interfaces of the electronic device 100. These graphical user interfaces can be composed of graphics, text, icons, numbers, video, and any combination thereof. In one example, the touchscreen 130 can be a liquid crystal display (LCD) or an organic light-emitting diode (OLED), without limitation. Optionally, the touchscreen 130 can be a capacitive touchscreen.
[0153] Please see Figure 11 This diagram illustrates a structural block diagram of a computer-readable storage medium provided in an embodiment of this application. The computer-readable medium 300 stores program code that can be called by a processor to execute the methods described in the above method embodiments.
[0154] The computer-readable storage medium 300 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 300 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 300 has storage space for program code 310 that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code 310 may be compressed, for example, in a suitable form.
[0155] In summary, the touch processing method, apparatus, electronic device, and storage medium provided in this application, in response to a touch event on a capacitive touchscreen, obtain the touch position corresponding to the touch event. If it is determined that liquid is present at the touch position on the capacitive touchscreen, the large-area trigger threshold of the touchscreen is increased. The large-area trigger threshold is used to indicate that touch events with a touch area reaching the large-area trigger threshold are suppressed. Based on the touch event and the increased large-area trigger threshold, a processing method for the touch event is determined. This processing method includes reporting the touch event or not reporting the touch event. Thus, by increasing the large-area trigger threshold when it is determined that liquid is present on the capacitive touchscreen, the problem of touch events not being triggered in scenarios where liquid is present on the capacitive touchscreen can be solved, improving the user experience.
[0156] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A touch processing method, characterized in that, Applied to an electronic device, the electronic device including a capacitive touchscreen, the method includes: In response to a touch event on the capacitive touchscreen, the touch position corresponding to the touch event is obtained; If it is determined that there is liquid at the touch position of the capacitive touch screen, the large area trigger threshold of the capacitive touch screen is increased, wherein the large area trigger threshold is used to indicate that touch events with a touch area reaching the large area trigger threshold are suppressed. Based on the touch event and the increased large-area trigger threshold, a processing method for the touch event is determined, wherein the processing method includes reporting the touch event or not reporting the touch event.
2. The method according to claim 1, characterized in that, The step of determining the processing method for the touch event based on the touch event and the increased large-area trigger threshold includes: Determine the touch area corresponding to the touch event; If the touch area corresponding to the touch event does not reach the increased large-area trigger threshold, then the touch event is reported; or If the touch area corresponding to the touch event reaches the increased large area trigger threshold, then the touch event will not be reported.
3. The method according to claim 1, characterized in that, The electronic device further includes a fingerprint recognition module disposed under the capacitive touchscreen. If it is determined that liquid is present at the touch location on the capacitive touchscreen, the large-area trigger threshold of the capacitive touchscreen is increased, including: If it is determined that there is liquid at the touch position of the capacitive touchscreen, then the mode of the electronic device is determined; If the electronic device is in fingerprint mode, the large-area trigger threshold of the capacitive touchscreen is increased, wherein the capacitive touchscreen is in a screen-off state and the fingerprint recognition module is in an on state in the fingerprint mode.
4. The method according to claim 3, characterized in that, The method further includes: If the electronic device is in the fingerprint mode, then the large-area suppression function of the capacitive touch screen is turned off to cancel the suppression of touch events when the touch area reaches the large-area trigger threshold.
5. The method according to claim 3, characterized in that, If the electronic device is in fingerprint mode, then increasing the large-area trigger threshold of the capacitive touchscreen includes: If the electronic device is in the fingerprint mode and the fingerprint recognition module is an ultrasonic fingerprint recognition module, then the large-area trigger threshold of the capacitive touch screen is increased.
6. The method according to claim 1, characterized in that, If it is determined that liquid is present at the touch position on the capacitive touchscreen, then increasing the large-area trigger threshold of the capacitive touchscreen includes: If it is determined that there is liquid at the touch position of the capacitive touch screen, then the display content corresponding to the touch position of the capacitive touch screen is determined. If the displayed content includes operable controls, then increase the large-area trigger threshold of the capacitive touchscreen.
7. The method according to claim 6, characterized in that, If the displayed content includes operable controls, then increasing the large-area trigger threshold of the capacitive touchscreen includes: If the displayed content includes the operable control, then determine the probability of the operable control being touched. If the probability of being touched reaches a probability threshold, then the large-area trigger threshold of the capacitive touchscreen is increased.
8. The method according to any one of claims 1-7, characterized in that, If it is determined that liquid is present at the touch position on the capacitive touchscreen, then increasing the large-area trigger threshold of the capacitive touchscreen includes: Acquire the capacitance data of the capacitive touchscreen within the touch area corresponding to the touch position; If it is determined based on the capacitance data that liquid is present at the touch position of the capacitive touchscreen, then the large-area trigger threshold of the capacitive touchscreen is increased.
9. The method according to claim 8, characterized in that, Before increasing the large-area trigger threshold of the capacitive touchscreen if it is determined based on the capacitance data that liquid is present at the touch location, the method further includes: If it is determined that the capacitance data of the touch nodes included in the same receiving cable within the touch area have both positive and negative values, then it is determined that liquid is present at the touch location on the capacitive touchscreen; and / or If it is determined that the capacitance data of the touch nodes included in the same drive cable within the touch area have both positive and negative values, then it is determined that liquid is present at the touch position of the capacitive touch screen.
10. A touch processing device, characterized in that, Applied to an electronic device, the electronic device including a capacitive touchscreen, the device includes: A touch position acquisition module is used to acquire the touch position corresponding to a touch event in response to a touch event on the capacitive touch screen. A threshold increase module is used to increase the large-area trigger threshold of the capacitive touchscreen if it is determined that there is liquid at the touch position. The large-area trigger threshold is used to indicate that touch events with a touch area reaching the large-area trigger threshold are suppressed. The processing method determination module is used to determine the processing method for the touch event based on the touch event and the increased large-area trigger threshold, wherein the processing method includes reporting the touch event or not reporting the touch event.
11. An electronic device, characterized in that, The method includes a memory and a processor, the memory being coupled to the processor, the memory storing instructions, and the processor performing the method as described in any one of claims 1-9 when the instructions are executed by the processor.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium contains program code that can be invoked by a processor to execute the method as described in any one of claims 1-9.