Method for identifying touch-control operation, and electronic device
By detecting the intensity of the capacitance signal on the touch screen of the electronic device, identifying and suppressing the touch effect of the water area, the problem of misidentification and misresponse when water exists is solved, and the accuracy and user experience of touch operations are improved.
Patent Information
- Application Number
- PCT/CN2024/110803
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-11
- Filing Date
- 2024-08-08
- Publication Date
- 2025-03-06
AI Technical Summary
When water exists on the touch screen of an electronic device, the electronic device easily misidentifies that the capacitance signal of the water changes into the user's touch operation, resulting in a false response and affecting the user's experience.
By detecting the capacitance signal strength on the touch screen, it is possible to identify whether there is water in the touch area. If water is present, it will suppress the forecast point report of the touch effect of the water area to avoid misidentification and misresponse.
It improves the accuracy of identifying user touch operations and ensures accurate response to user touch operations. Especially when there is water on the touch screen, it avoids the problem of misidentification and misresponse of touch points caused by water, and improves the user experience.
Smart Images

Figure CN2024110803_06032025_PF_FP_ABST
Abstract
Description
Method for identifying touch operation and electronic device
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on August 29, 2023, with application number 202311101829.6 and application name “Method and electronic device for identifying touch operations”, and the Chinese patent application filed with the State Intellectual Property Office on September 11, 2023, with application number 202311170451.5 and application name “Method and electronic device for identifying touch operations”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of terminal technology, and in particular to a method for identifying touch operations and an electronic device. Background Art
[0003] Currently, electronic devices primarily identify a user's touch location and, in turn, their touch operations, based on changes in capacitance signals on a touchscreen. For example, when a user's finger touches the touchscreen, the capacitance signal strength changes. When the capacitance signal strength change exceeds a certain threshold, the electronic device identifies the touch location as the touch point. Double-clicking a touchscreen recognizes two adjacent touch points; swiping a finger across the touchscreen recognizes consecutive touch points. Based on this principle, electronic devices can identify user touch operations, such as clicks and swipes.
[0004] However, when there is water in the environment of the electronic device, such as when it rains or when there is water on the user's fingers, water may be present on the touch screen of the electronic device. Since the water on the touch screen will also cause changes in the capacitance signal on the touch screen, the electronic device will mistakenly identify the location of the capacitance signal change caused by water as the touch point and respond incorrectly, affecting the user experience.
[0005] Summary of the Invention
[0006] The present application provides a method and electronic device for identifying touch operations, which can improve the accuracy of identifying user touch operations, thereby ensuring accurate response to user touch operations, especially when there is water on the touch screen of the electronic device, and can avoid the problem of misidentification and misresponse of touch points caused by water.
[0007] To achieve the above objectives, this application adopts the following technical solutions:
[0008] In a first aspect, a method for identifying touch operations is provided, the method comprising: an electronic device detecting first touch information; the electronic device determining a first touch area acting on the touch screen of the electronic device based on the first touch information, wherein the first touch area includes a first area and a second area; the electronic device obtaining first historical touch information related to the first touch information, determining that the second area is a finger touch area based on the first historical touch information, the capacitance signal strength of the first area, and the capacitance signal strength of the second area, and reporting a predicted point of the second area.
[0009] As an example, the electronic device may detect the first touch information through a sensor (such as a touch sensor and / or a pressure sensor, etc.). For example, the first touch information may be used to represent but not limited to information such as the touch position and the touch force. As an example, the prediction point refers to the position of the touch screen detected by the electronic device as being affected by a touch, and the touch may come from a user's finger, a stylus, a touch pen, a touch ball, or other touch-assisting tool, or from water or other subjects. When the electronic device recognizes that the touch comes from a user's finger, a stylus, a touch pen, a touch ball, or other touch-assisting tool, the electronic device will report the corresponding prediction point as a touch point in order to respond to subsequent user touch operations.
[0010] According to the solution provided in the first aspect above, the electronic device can identify whether the touch area is the user's active area, and report the relevant prediction point as the touch point when it is identified that the touch area is the user's active area, so that it can respond normally to the user's touch action. Based on this, the accuracy of identifying the user's touch operation can be improved, thereby ensuring accurate response to the user's touch operation.
[0011] As a possible implementation, the above method also includes: the electronic device determines that the first area is a water touch area based on the first historical touch information, the capacitance signal strength of the first area, and the capacitance signal strength of the second area; the electronic device does not report the forecast point of the first area when reporting the forecast point of the second area. As an example, the first historical touch information can be the historical touch information most recently detected by the electronic device; of course, the first historical touch information can also be other historical touch information detected by the electronic device, which is not limited in this application. In this way, the electronic device can identify whether there is water in the touch area, and adopt corresponding suppression measures after identifying the touch area, such as suppressing the reporting of forecast points for touch effects in the touch area where water exists, and then suppressing the response to the touch effect of water. Based on this, the problem of misidentification and misresponse of touch points due to water can be avoided, thereby improving the user experience.
[0012] As a possible implementation method, the above-mentioned electronic device determines that the second area is a finger touch area based on the first historical touch information, the capacitance signal strength of the first area, and the capacitance signal strength of the second area, including: the electronic device determines that the second area is a finger touch area based on the touch area corresponding to the first historical touch information, the distribution of positive capacitance signal strength and negative capacitance signal strength in the first area, and the distribution of positive capacitance signal strength and negative capacitance signal strength in the second area.
[0013] As an example, when the difference between the number of prediction points with negative capacitance signal strength and the number of prediction points with positive capacitance signal strength in the first area is greater than the first value and / or the difference between the sum of the absolute values of the negative capacitance signal strength and the sum of the absolute values of the positive capacitance signal strength in the first area is greater than the second value, the difference between the number of prediction points with positive capacitance signal strength and the number of prediction points with negative capacitance signal strength in the second area is greater than the first value and / or the difference between the sum of the absolute values of the positive capacitance signal strength and the sum of the absolute values of the negative capacitance signal strength in the first area is greater than the second value, the electronic device can determine that the second area is a finger touch area.
[0014] As an example, when the difference between the number of prediction points with positive capacitance signal strength and the number of prediction points with negative capacitance signal strength in the first area is greater than the first value and / or the difference between the sum of the absolute values of the positive capacitance signal strength and the sum of the absolute values of the negative capacitance signal strength in the first area is greater than the second value, the difference between the number of prediction points with negative capacitance signal strength and the number of prediction points with positive capacitance signal strength in the second area is greater than the first value and / or the difference between the sum of the absolute values of the negative capacitance signal strength and the sum of the absolute values of the positive capacitance signal strength in the first area is greater than the second value, the electronic device can determine that the second area is a finger touch area.
[0015] In this way, the electronic device can identify whether there is water on the touch screen by comparing multiple frames of touch information detected multiple times from the touch screen, and suppress touch reporting in the screen area where water passes, so as to avoid the problem of misidentification and misresponse of touch points caused by water, thereby improving the user experience.
[0016] As one possible implementation, the first touch information and the first historical touch information correspond to the same user sliding operation, and the first area is within a preset range of the touch area corresponding to the first historical touch information. In this way, the electronic device can accurately identify water in the first touch area and, by suppressing touch point notifications within the preset range of the historical touch trajectory, avoid problems with misidentification and misresponse of touch points caused by water.
[0017] As a possible implementation, the touch area corresponding to the first historical touch information is connected to or partially overlaps with the first area. In this way, the electronic device can accurately identify water in the first touch area and, by suppressing touch point notifications along the water flow path, avoid problems such as misidentification and misresponse of touch points caused by water flowing into edge areas.
[0018] As a possible implementation, the first historical touch information corresponds to a sliding operation, and the method further includes: the electronic device obtaining the historical sliding direction and historical sliding speed of the sliding operation based on the first historical touch information; the electronic device determining a predicted position based on the historical sliding direction and historical sliding speed; and the electronic device reporting a predicted point for the second area when the second area is within a preset range of the predicted position. In this way, the electronic device can predict the possible touch position of the sliding operation in the future based on the historical sliding direction and historical sliding speed of the sliding operation, filter the predicted points in the first touch information based on the possible touch position, determine the predicted point most likely to be the user's touch point, and report it, thereby avoiding problems of touch point misidentification and misresponse caused by water, and improving the user experience.
[0019] As a possible implementation, the method further includes: the electronic device not reporting the predicted point in the first area when the first area is outside a preset range of the predicted position. In this way, the electronic device can predict the possible touch position of the sliding operation in the future based on the historical sliding direction and historical sliding speed of the sliding operation, filter the predicted points in the first touch information based on the possible touch position, determine the predicted point most likely to be water, and suppress reporting of the predicted point, thereby avoiding the problem of touch point misidentification and misresponse caused by water, thereby improving the user experience.
[0020] As one possible implementation, the first historical touch information corresponds to a click operation, and the electronic device determines that the second area is a finger touch area based on the first historical touch information, the capacitance signal strength of the first area, and the capacitance signal strength of the second area. This includes: the electronic device determines that the first area is a water touch area by comparing the capacitance signal strength with the largest absolute value between the first and second areas with the capacitance signal strength with the largest absolute value in the touch area corresponding to the first historical touch information. In this way, it is possible to detect whether the user's finger is leaving the touch screen and, if it is determined that the user's finger is leaving the touch screen, abandon the reporting of the predicted point in the water area, thereby resolving the problem of ineffective clicks.
[0021] As a possible implementation, the electronic device determines that the second area is a finger touch area by comparing the capacitance signal strength with the maximum absolute value in the first and second areas with the capacitance signal strength with the maximum absolute value in the touch area corresponding to the first historical touch information. This includes: if the capacitance signal strength with the maximum absolute value in the first touch area decreases by more than a defined threshold compared to the capacitance signal strength with the maximum absolute value in the touch area corresponding to the first historical touch information, and the first touch area does not meet predefined conditions, the electronic device determines that the first area is a water touch area. In this way, it is possible to detect whether the user's finger is leaving the touch screen and, if it is determined that the user's finger is leaving the touch screen, abandon the reporting of the predicted point in the water area, thereby resolving the problem of ineffective clicks.
[0022] As a possible implementation, the method further includes: the electronic device detecting second touch information; the electronic device determining a second touch area based on the second touch information; and the electronic device determining that the second touch area is a water touch area based on the capacitance signal strength of the second touch area, and not reporting the predicted point of the second touch area. In this way, the electronic device can identify whether there is water in the touch area and, after identifying the touch area, adopt corresponding suppression measures, such as suppressing the reporting of predicted points for touch effects in the touch area where water is present, thereby suppressing the response to the touch effect of water. Based on this, the problem of incorrect touch point recognition and response caused by water can be avoided, thereby improving the user experience.
[0023] As a possible implementation, the electronic device determines that the second touch area is a water touch area based on the capacitance signal strength of the second touch area, including: when the capacitance signal strength of the second touch area meets a predefined condition, the electronic device determines that the second touch area is a water touch area. In this way, the electronic device can accurately identify whether there is water in the touch area, thereby suppressing the reporting of prediction points for touch actions in the touch area where water is present, and thereby suppressing the response to the water touch action.
[0024] As a possible implementation, the electronic device determines the first touch area based on the first touch information, including: the electronic device identifies a predicted point with the largest absolute value of capacitance signal strength based on the first touch information; and the electronic device uses the predicted point with the largest absolute value of capacitance signal strength as a starting point and sequentially traverses other nearby predicted points on the touch screen in descending order, finding a predicted point that meets a preset capacitance signal strength threshold, thereby determining the first touch area. In this way, the electronic device can accurately identify the touch screen area that has been touched.
[0025] As one possible implementation, the first historical touch information corresponds to a sliding operation, and the method further includes: the electronic device adjusting a preset capacitance signal strength threshold during the process of determining the first touch area. This can reduce touch point jumps within the same connected domain and resolve sliding jitter.
[0026] In a second aspect, an electronic device is provided, comprising: a touch screen for receiving a user's touch operation; a memory for storing computer program instructions; and a processor for executing the computer program instructions to support the electronic device in implementing a method as in any possible implementation of the first aspect.
[0027] According to a third aspect, a computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method according to any possible implementation of the first aspect is implemented.
[0028] According to a fourth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to implement the method according to any possible implementation of the first aspect.
[0029] In a fifth aspect, a chip system is provided, comprising a processing circuit and a storage medium storing computer program instructions; when the computer program instructions are executed by the processor, the method according to any possible implementation of the first aspect is implemented. The chip system may be composed of a chip alone or may include a chip and other discrete components. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] FIG1 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0031] FIG2 is a schematic diagram of the software structure of an electronic device provided in an embodiment of the present application;
[0032] FIG3 is a flow chart of a method for identifying a touch operation according to an embodiment of the present application;
[0033] FIG4 is a schematic diagram of touch information provided by an embodiment of the present application;
[0034] FIG5A is a schematic diagram of a process for determining a touch area according to an embodiment of the present application;
[0035] FIG5B is a schematic diagram of a touch operation response effect provided by an embodiment of the present application;
[0036] FIG6 is a second flow chart of a method for identifying a touch operation according to an embodiment of the present application;
[0037] FIG7 is an example diagram of touch information detected in a track water scene provided by an embodiment of the present application;
[0038] FIG8 is an example diagram of a touch area in a track water scene provided by an embodiment of the present application;
[0039] FIG9 is an example diagram of touch information detected in another track water scene provided by an embodiment of the present application;
[0040] FIG10 is an example diagram of a touch area in another track water scene provided by an embodiment of the present application;
[0041] FIG11 is a schematic diagram of a sliding failure situation provided by an embodiment of the present application;
[0042] FIG12 is a schematic diagram of a click failure situation provided by an embodiment of the present application;
[0043] FIG13 is a schematic diagram of a sliding jitter situation provided by an embodiment of the present application;
[0044] FIG14 is a flowchart of a method for identifying a touch operation according to an embodiment of the present application;
[0045] FIG15 is a first schematic diagram of a touch information optimization method provided by an embodiment of the present application;
[0046] FIG16 is a second schematic diagram of a touch information optimization method provided in an embodiment of the present application;
[0047] FIG17 is a third schematic diagram of a touch information optimization method provided in an embodiment of the present application;
[0048] FIG18 is a fourth schematic diagram of the touch information optimization method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships can exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0050] Hereinafter, the terms "first," "second," and so on are used solely to distinguish different descriptive objects and have no limiting effect on the position, order, priority, quantity, or content of the described objects. For example, if the described object is a "field," the ordinal number preceding the "field" in "first field" and "second field" does not define the position or order of the "fields." "First" and "second" do not define whether the modified "fields" are in the same message, nor do they restrict the order of the "first field" and "second field." For another example, if the described object is a "level," the ordinal number preceding the "level" in "first level" and "second level" does not define the priority of the "levels." For another example, the number of described objects is not limited by the ordinal number and can be one or more. For example, in the case of "first device," the number of "devices" can be one or more. Furthermore, the objects modified by different prefixes can be the same or different. For example, if the described object is a "device," the "first device" and "second device" can be the same type of device or different types of devices. For another example, if the described object is "information," the "first information" and "second information" can be information of the same content or different contents. In short, the use of prefixes such as ordinal numbers to distinguish the described objects in the embodiments of the present application does not constitute a restriction on the described objects. For the statement of the described objects, please refer to the description in the context of the claims or embodiments, and no unnecessary restrictions should be constituted due to the use of such prefixes.
[0051] Furthermore, in the embodiments of the present application, "connection" may be a direct connection or an indirect connection; in addition, it may refer to an electrical connection or a communication connection; for example, the connection between two electrical components A and B may refer to a direct connection between A and B, or may refer to an indirect connection between A and B through other electrical components or connection media, or may refer to an indirect connection between A and B through other communication devices or communication media, as long as communication between A and B can be achieved.
[0052] As mentioned above, based on conventional touch position recognition technology, when a change in the capacitance signal strength at a certain position on the touch screen is detected (such as the absolute value exceeds a certain threshold), the electronic device will identify the position as a touch point. Based on this, if the absolute value of the capacitance signal strength at a certain position on the touch screen instantaneously exceeds a certain threshold due to water on the touch screen, the electronic device may recognize it as a click operation; if the absolute value of the capacitance signal strength at a certain position on the touch screen continuously exceeds a certain threshold for more than a certain period of time due to water on the touch screen, the electronic device may recognize it as a long press operation; if the absolute value of the capacitance signal strength at each position on a certain track on the touch screen exceeds a certain threshold in turn due to water on the touch screen, the electronic device may recognize it as a sliding operation. In this case, the following problems may arise:
[0053] Question 1: When there is water on the touch screen of an electronic device, assuming that the user does not perform any touch operation, the electronic device will mistakenly identify the location where the water acts on the touch screen as a touch point, and further, based on the touch point, mistakenly identify the touch effect of the water as a click operation, long press operation or sliding operation made by the user and respond, giving the user a bad experience. In serious cases, it may cause great losses to the user, such as accidental deletion of information, accidental sending of messages, etc.
[0054] Question 2: When there is water on the touch screen of an electronic device, assuming that the user performs a first operation (the first operation is a touch operation), the first operation causes a change in the capacitance signal strength on the touch screen. At the same time, the water on the touch screen also causes a change in the capacitance signal strength on the touch screen. In this case, the electronic device will not only respond to the user's first operation, but will also mistakenly recognize the related touch effect of the water as the user's operation and respond. For the user, he will experience problems such as ineffective clicks, ineffective sliding, sliding rebound, click jitter or sliding jitter.
[0055] To improve the accuracy of electronic devices in identifying user touch operations and ensure accurate responses to user touch operations, particularly when water is present on the touch screen of an electronic device, and to avoid the problem of misidentification and misresponse of touch points due to water, thereby improving the user experience, embodiments of the present application provide a method for identifying touch operations. This method can identify whether water is present on the touch screen, and when water is identified in a certain area of the touch screen, it avoids misidentification and misresponse to water-related touch operations by not reporting the predicted point.
[0056] In some embodiments of the present application, the prediction point refers to the position of the touch screen detected by the electronic device as being affected by a touch action. The touch action may come from a user's finger, a stylus, a touch pen, a touch ball, or other touch-assistive tools, or may come from water or other subjects. When the electronic device recognizes that the touch action comes from a user's finger, a stylus, a touch pen, a touch ball, or other touch-assistive tools, the electronic device will report the corresponding prediction point, that is, report the corresponding prediction point as a touch point, so as to respond to subsequent user touch operations.
[0057] In some embodiments of the present application, the electronic device may be an electronic device with a touch screen. For example, the electronic device may include, but is not limited to, a smartphone, a netbook, a tablet computer, a smart drawing board, a handwriting board, a smart watch, a smart bracelet, a phone watch, smart glasses, a smart camera, a PDA, a car computer, a personal computer (PC), a personal digital assistant (PDA), a portable multimedia player (PMP), an augmented reality (AR) / virtual reality (VR) device, a smart TV, a projection device, or a somatosensory game console in a human-computer interaction scenario. Alternatively, the electronic device may also be an electronic device with a touch screen of other types or structures, which is not limited in the present application.
[0058] As an example, please refer to FIG1 , which shows a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
[0059] As shown in FIG1 , the electronic device may include a processor 110, a memory (including an external memory interface 120 and an internal memory 121), a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and the like. The sensor module 180 may include a touch sensor 180A and a pressure sensor 180B. Optionally, the sensor module 180 may also include a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, an ambient light sensor, a bone conduction sensor, and the like.
[0060] It is understood that the structures illustrated in the embodiments of the present invention do not constitute specific limitations on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0061] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a flight controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0062] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0063] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.
[0064] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C bus lines. The processor 110 can be coupled to the touch sensor 180A, the pressure sensor 180B, the microphone, the camera 193, etc. through different I2C bus interfaces. For example, the processor 110 can be coupled to the touch sensor 180A and the pressure sensor 180B through the I2C interface, allowing the processor 110 to communicate with the touch sensor 180A or the pressure sensor 180B through the I2C bus interface, thereby realizing the touch function of the electronic device.
[0065] In an embodiment of the present application, the processor 110 can obtain the touch information of the user on the touch screen detected by the touch sensor 180A and the pressure sensor 180B through the I2C bus interface to obtain the user's available operations, such as click operations (such as single-click, double-click, etc.), sliding operations, long press operations or drag operations, etc., and determine the input event corresponding to the touch operation, and then respond to the touch operation.
[0066] For example, in some embodiments of the present application, the processor 110 can determine the predicted point based on touch information such as the touch position and touch force detected by the touch sensor 180A and the pressure sensor 180B, and use the predicted point among the predicted points that belongs to the effect of touch auxiliary tools such as the user's finger, stylus, touch pen or touch ball as the touch point, and determine the touch operation based on the touch point, such as a click operation (such as a single click, double click, etc.), a sliding operation, a long press operation or a drag operation.
[0067] In some embodiments of the present application, the processor 110 can determine the predicted point based on the touch position and touch force detected by the touch sensor 180A and the pressure sensor 180B within a period of time, and take the predicted point among the predicted points that belongs to the effect of touch auxiliary tools such as the user's finger, stylus, touch pen or touch ball as the touch point, and determine the touch operation based on the touch information of the continuous touch points within the period of time, such as a double-click operation, a sliding operation, a long press operation or a drag operation.
[0068] The charging management module 140 is configured to receive charging input from a charger. The power management module 141 is configured to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, and the wireless communication module 160.
[0069] The wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.
[0070] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0071] The mobile communication module 150 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for electronic devices. The mobile communication module 150 may include at least one filter, switch, power amplifier, and low-noise amplifier (LNA). The mobile communication module 150 can receive electromagnetic waves from antenna 1, filter, amplify, and perform other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor and convert them into electromagnetic waves for radiation via antenna 1. The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium- or high-frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194.
[0072] The wireless communication module 160 can provide wireless communication solutions for electronic devices, including wireless local area networks (WLAN) (such as WiFi networks), Bluetooth BT, global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc.
[0073] In some embodiments, the antenna 1 of the electronic device is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and / or satellite based augmentation system (SBAS).
[0074] The electronic device implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0075] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc.
[0076] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement data storage.
[0077] The internal memory 121 can be used to store computer executable program codes. Exemplarily, computer programs may include operating system programs and application programs. Among them, the executable program code includes instructions. The processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function, etc. The data storage area may store data created during the use of the electronic device, etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 121, and / or the instructions stored in the memory provided in the processor.
[0078] The electronic device can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, and the application processor.
[0079] Touch sensor 180A, also known as a "touch panel," can be mounted on display screen 194. The combination of touch sensor 180A and display screen 194 forms a touch screen, also known as a "touch screen" or "touch screen" (this application uses the "touch screen" as an example for this description). Touch sensor 180A is used to detect touch information applied to or near it, such as touch location and touch force.
[0080] In some embodiments of the present application, the touch sensor 180A may transmit the detected touch information to an upper-layer module, such as the processor 110 , so that the processor 110 can determine the touch operation and input event.
[0081] In some embodiments of the present application, when there is water on the touch screen, the touch sensor 180A of the electronic device may also detect the touch effect of water, that is, the touch information detected by the touch sensor 180A may not be caused by the user's touch operation, but by the touch effect of water.
[0082] The pressure sensor 180B is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180B can be arranged on the display screen 194. There are many types of pressure sensors, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor can be a parallel plate comprising at least two conductive materials. When a force acts on the pressure sensor, the capacitance between the electrodes changes. The electronic device determines the intensity of the pressure (i.e., the touch force) based on the change in capacitance, wherein the greater the absolute value of the capacitance signal strength, the greater the touch force; the smaller the absolute value of the capacitance signal strength, the smaller the touch force. In some embodiments, touch operations acting on the same touch position but with different touch forces may correspond to different operation instructions.
[0083] In some embodiments of the present application, when a user performs a touch operation on the display screen 194, the electronic device can detect touch information corresponding to the touch operation, such as touch position, touch force, etc., through the pressure sensor 180B.
[0084] In some embodiments of the present application, when there is water on the touch screen, the pressure sensor 180B of the electronic device may also detect the touch effect of water, that is, the touch information detected by the pressure sensor 180B may not be caused by the user's touch operation, but by the touch effect of water.
[0085] In an embodiment of the present application, the user's touch operation detected by the touch sensor 180A may be the user's operation on the touch screen through a finger, or it may be the user's operation on the touch screen using a touch-assistive tool such as a stylus, touch pen, or touch ball. This application does not limit this.
[0086] In addition, for the introduction of hardware such as the button 190, the motor 191, and the indicator 192, reference can be made to conventional technology, and the embodiments of this application will not be repeated.
[0087] It should be understood that the structure illustrated in FIG1 of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0088] As a possible example, please refer to Figure 2, which shows a schematic diagram of the software structure of an electronic device provided in an embodiment of the present application. As shown in Figure 2, the operating system of the electronic device may include an application layer, a framework layer (framework, FWK) and a kernel layer.
[0089] Among them, the application layer may include a series of applications, such as application 1, application 2,... as shown in Figure 2. For example, the application may include but is not limited to native applications such as mailbox, camera, gallery, calendar, call, map, navigation, Bluetooth, music, video, short message, etc. (such as applications integrated in the operating system) or third-party applications (such as applications downloaded and installed by users through the application store), which are not limited in the embodiments of this application.
[0090] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. As shown in Figure 2, the framework layer provides Window Manager Service (WMS), Activity Management Service (AMS), Input Flinger service, and Surface Flinger service.
[0091] The window management service is used to provide window management, such as window creation, window activation, window deletion, window movement, and management of window position / size / style. In some embodiments, the window management service can also be used to manage window information. Window information may include, but is not limited to, window identification, window hierarchy, identification of the interface displayed in the window, and the virtual screen object corresponding to the window. For example, the virtual screen object corresponding to the window is the displayId of the virtual screen where the window is located. For example, displayId can be an int type parameter.
[0092] The activity management service is responsible for managing activities, starting, switching, and scheduling various components in the system, as well as managing and scheduling applications. Specifically, AMS defines data classes for storing processes, activities, and tasks. Among them, the data class corresponding to the process can include process file information, process memory status information, and the activities and services contained in the process. Activity information can be stored in the task stack (ActivityStack). Among them, ActivityStack is used to uniformly schedule application activities. ActivityStack can specifically store information about all running activities. ActivityStack can also store information about historically run activities.
[0093] In an embodiment of the present application, the AMS of the electronic device can schedule the Activity corresponding to the target window to respond to the user's input event according to the instruction of the WMS.
[0094] The input synthesis service is used to collect, process user touch information and distribute input events. The input synthesis service can include the following two classes: InputReader and InputDispatcher. Among them, InputReader is used to determine the predicted point based on the touch information, and use the predicted point that belongs to the effect of touch-assistive tools such as user fingers, stylus, touch pen or touch ball as the touch point, and then determine the touch operation based on one or more touch points and convert it into a specific input event. InputDispatcher is used for subsequent input event distribution. For example, InputDispatcher can send input events to WMS through a dedicated channel between WMS and it. After receiving the input event, WMS can distribute the input event to the activity (Activity) corresponding to the target window in AMS. After that, the Activity can respond to the input event.
[0095] The surface composition service is used to synthesize graphical display data from multiple sources. For example, suppose the application layer corresponding to the content interface includes four layers: status bar, navigation bar, wallpaper, and launcher icon layer. These layers are drawn and rendered separately. The surface composition service mainly synthesizes the status bar, navigation bar, wallpaper, and launcher icon layers and sends them to the display.
[0096] Of course, the framework layer can also provide other management services, such as package management, content provisioning, phone management, resource management, notification management, location management, and a view system. The package management service is responsible for program management within the system. The content provisioning service allows one application to access another application's data (such as a contact database) or share its own data with other applications. This data can include video, images, audio, incoming and outgoing calls, browsing history and bookmarks, and the phone book. The phone management service provides methods for accessing terminal device communication status and information, as well as terminal device communication functions, such as managing call status (including connected and disconnected calls). The resource management service provides access to non-code resources, such as local strings, icons, images, graphics, video files, or layout files. The notification management service provides the ability to display customized prompts in the status bar. These prompts can convey notification messages and can remain for a short time before disappearing automatically, without user interaction. The location management service provides services related to geographic location. The view system is used to build the application's display interface. The view system includes visual controls such as text box (TextBox) control, list (List) control, grid (Grid) control, button (Button) control, and embeddable web browser control.
[0097] The kernel layer is the layer between hardware and software. The kernel layer can include camera drivers, display drivers, microphone drivers, sensor drivers, etc. Hardware such as cameras, displays (touch screens), cameras, microphones, etc.
[0098] In an embodiment of the present application, when a user performs a touch operation on the touch screen, the sensor driver can detect touch information based on sensors (such as touch sensors and / or pressure sensors) set on the touch screen and provide it to the input synthesis service, so that the input synthesis service can identify predicted points based on the touch information, and use the predicted points among the predicted points that belong to the effects of touch auxiliary tools such as the user's fingers, stylus, touch pen or touch ball as touch points to further determine the user's touch operation and the corresponding input event.
[0099] For example, in some embodiments of the present application, the touch operation received by the electronic device may include, but is not limited to, a click (e.g., single click, double click, etc.) operation / long press operation / slide operation / drag operation on the touch screen by a user using a finger or a touch-assistive tool such as a stylus, stylus, or touch ball. This embodiment of the present application does not impose any specific limitations.
[0100] It should be noted that Figure 2 is merely an example of a software structure diagram of an electronic device, which simply lists the layers and software modules relevant to the present application. In actual applications, the operating system of the electronic device may further include other layers, and each layer may further include other software modules for implementing one or more functions or services. This embodiment of the present application does not specifically limit this.
[0101] In an embodiment of the present application, when touch information is detected, the electronic device can analyze the touch information to determine whether there is water at the corresponding forecast point. When it is determined that there is no water at the forecast point, the electronic device can use the forecast point as a touch point for touch reporting (also known as reporting the forecast point), determine the touch operation based on the touch point and convert it into a specific input event, and then distribute the corresponding activity (Activity) to respond to the input event; when it is determined that there is water at the forecast point, the electronic device can give up touch reporting for the forecast point, and then stop the subsequent processing flow, so as to avoid misidentification and misresponse to water-related touch effects.
[0102] For example, the electronic device can be responsible for identifying the forecast point through the input synthesis service shown in Figure 2, and when it is identified that the touch information is the user's touch information, the forecast point is used as the touch point to determine the touch operation and convert it into a specific input event and then distribute the input event, or when it is identified that the touch information is the touch effect of water, the forecast point is abandoned as the touch point to stop the subsequent processing flow.
[0103] In some embodiments of the present application, when analyzing touch information, the input synthesis service can identify whether the touch information originated from water. For example, when water is present in a certain area of the touch screen, the input synthesis service can identify whether the detected touch information originated from water in that area and not report the predicted point if the touch information originated from water. This can prevent misidentification and misresponse to water-related touch effects.
[0104] In some embodiments of the present application, when performing touch information analysis, the input synthesis service can also identify whether the touch information comes from track water, where track water refers to water whose contact area with the touch screen changes. For example, when a water droplet rolls from a first position to a second position on the touch screen, the input synthesis service can identify whether the detected touch information is caused by the rolling water droplet. For another example, assuming that there is water on the user's finger, when the user's finger slides on the touch screen, the input synthesis service can identify which part of the detected touch information comes from the user's finger and which part comes from the water on the user's finger. Based on this, the misidentification and misresponse to the touch effects related to track water can be avoided.
[0105] A method for identifying a touch operation provided by an embodiment of the present application will be described in detail below with reference to the accompanying drawings and specific embodiments.
[0106] Please refer to Figure 3, which shows a flow chart of a method for identifying a touch operation provided by an embodiment of the present application. As shown in Figure 3, a method for identifying a touch operation provided by an embodiment of the present application includes S301-S303 and S304A / S304B:
[0107] S301: The electronic device detects first touch information.
[0108] In some embodiments of the present application, the first touch information is used to represent information such as the touch position (also called the predicted point) and the touch force. For example, a sensor (such as a touch sensor and / or a pressure sensor) may be provided on the touch screen, and the sensor may be capable of detecting touch information of a touch operation applied to any position on the touch screen. The electronic device may detect the touch position and the corresponding touch force applied to the touch screen through the touch sensor and / or the pressure sensor.
[0109] In some embodiments of the present application, the touch position can be represented by coordinate information on the touch screen. Please refer to Figure 4, which shows a schematic diagram of touch information provided by an embodiment of the present application. As shown in Figure 4, the touch screen can be divided into a number of small squares, and the touch position acting on any position within a square can be represented by the coordinate information of the square. In some embodiments of the present application, the coordinate information of each square can be represented by the coordinates of the center point of the square.
[0110] In some embodiments of the present application, the touch screen gridding method shown in Figure 4 is provided as an example only. The embodiments of the present application do not limit the degree of gridding, which depends on the specific touch sensing capabilities and related settings of the electronic device. For example, assuming that the sensor units of the electronic device are arranged at corresponding positions on the touch screen at intervals of 4 mm, when performing relevant calculations, the electronic device may grid the touch screen based on 4 mm units.
[0111] In some embodiments of the present application, the touch force applied to any touch location can be represented by the capacitance signal strength detected at that touch location. In some embodiments of the present application, the greater the absolute value of the capacitance signal strength, the greater the touch force; the smaller the absolute value of the capacitance signal strength, the smaller the touch force. As shown in Figure 4, the number within each square is the capacitance signal strength detected by the sensor at the location corresponding to that square.
[0112] S302: The electronic device analyzes the detected first touch information and determines a first touch area corresponding to the first touch information.
[0113] As an example, the electronic device can first identify the position with the greatest touch force on the touch screen (such as a position square) based on the first touch information, and then traverse the other adjacent position squares on the touch screen in order from near to far, starting from the position square with the greatest touch force, and add the position squares with touch force greater than a certain threshold in turn to obtain the final first touch area.
[0114] In some embodiments of the present application, when there is a touch action on a certain position of the touch screen, the touch force acting at that position detected by the sensor is usually greater than a certain threshold. Based on this, the electronic device can determine the first touch area by analyzing the touch force at each touch position. The first touch area refers to the area affected by the touch action.
[0115] For example, the electronic device may first identify, based on the first touch information, a location square on the touch screen where the touch force is greater than a first threshold, then identify a location square with the greatest touch force among the touch locations greater than the first threshold, and finally, starting from the location square with the greatest touch force and using the second threshold as a condition, traverse the other adjacent location squares on the touch screen in order from near to far, ultimately determining the first touch area. In some embodiments of the present application, the second threshold is less than the first threshold.
[0116] In some embodiments of the present application, the first threshold and the second threshold can be determined based on empirical values or a large number of touch force measurements and pre-set in the electronic device. For example, the first threshold is 600 nanofarads (nF) and the second threshold is 400 nF; or the first threshold is 800 nF and the second threshold is 600 nF. This embodiment of the present application is not limited to this and depends on the specific experimental test results, touch sensing capabilities, and related settings of the electronic device.
[0117] When the touch force detected at a certain location is greater than a certain intensity threshold, the electronic device generally considers that location to be touched. When the absolute value of the capacitance signal strength at a certain location is less than the certain intensity threshold, the electronic device generally considers that location to be untouched. By analyzing the touch force at each location in the first touch information, the electronic device can identify the touch area that has been touched.
[0118] Taking the touch force as represented by the capacitance signal strength, taking the first touch information as shown in Figure 4 as an example, assuming that the first threshold is 600nF and the second threshold is 400nF, the electronic device can first identify multiple position squares on the touch screen with an absolute value of the capacitance signal strength greater than 600nF based on 600nF; then, the electronic device can identify the position square with the largest absolute value of the capacitance signal strength among the multiple position squares (such as the position square with the capacitance signal strength of 2567nF in Figure 4); finally, as shown in Figure 5A, the electronic device can use the position square with the capacitance signal strength of 2567nF as the starting point and the absolute value greater than 400nF as the condition to traverse other adjacent position squares on the touch screen in order from near to far, and finally obtain a connected area including multiple position squares with an absolute value of the capacitance signal strength greater than 400nF, which is the first touch area that has been touched.
[0119] When traversing the position grid, for example, as shown in FIG5A , the position grid with a capacitance signal strength of 2567nF can be used as the starting point to traverse the eight surrounding position grids, and the position grids with an absolute value of capacitance signal strength greater than 400nF (as shown in FIG5A , the position grids adjacent to the position grid with a capacitance signal strength of 2567nF, with capacitance signal strengths of 1899nF, 1800nF, 1914nF, 1460nF, 955nF, and 1837nF, respectively) are added to the connected area. Then, starting from the position grids with capacitance signal strengths of 1899nF, 1800nF, 1914nF, 1460nF, 955nF, and 1837nF, respectively, the eight surrounding position grids are traversed, and the position grids with an absolute value of capacitance signal strength greater than 400nF are added to the connected area. By analogy, a connected first touch area can be obtained.
[0120] S303: The electronic device identifies whether there is water in the first touch area.
[0121] As a possible implementation method, the electronic device can determine whether the touch effect on the first touch area comes from water by analyzing the capacitance signal strength in the first touch area. For example, it can determine whether the touch effect on the first touch area comes from water by counting the capacitance signal strength distribution in the first touch area, and then identify whether there is water in the first touch area.
[0122] In some embodiments, the first touch area includes a first area and a second area, and the electronic device can identify whether there is water in the first touch area based on the distribution of positive capacitance signal strength and negative capacitance signal strength in the first area and the distribution of positive capacitance signal strength and negative capacitance signal strength in the second area.
[0123] As an example, if the number of touch positions in the first touch area where the capacitance signal strength is negative (denoted as N1) is greater than the number of touch positions in the first touch area where the capacitance signal strength is positive (denoted as N2), and the difference between N1 and N2 is greater than a preset value (such as denoted as the first numerical value), the electronic device can determine that there is water in the first touch area; if the result of N1-N2 is less than or equal to the first numerical value, the electronic device can determine that there is no water in the first touch area.
[0124] As an example, if the sum of the absolute values of the negative capacitance signal strengths in the first touch area (denoted as M1) is greater than the sum of the absolute values of the positive capacitance signal strengths in the first touch area (denoted as M2), and the difference between M1 and M2 is greater than a preset value (such as denoted as the second value), the electronic device can determine that there is water in the first touch area; if the result of M1-M2 is less than or equal to the second value, the electronic device can determine that there is no water in the first touch area.
[0125] As an example, if the result of N1-N2 is greater than the first value and the result of M1-M2 is greater than the second value, the electronic device can determine that there is water in the first touch area; if the result of N1-N2 is less than or equal to the second value and the result of M1-M2 is less than or equal to the second value, the electronic device can determine that there is no water in the first touch area.
[0126] It can be understood that if the touch screen is touched by a user's finger or a touch-assisted tool such as a stylus, stylus, or touch ball, the capacitance signal strength in the touch area is typically positive or mostly positive. If the touch screen is touched by water, the capacitance signal strength in the touch area is typically negative or mostly negative. Based on this difference in physical properties, this solution can accurately identify whether there is water in the first touch area by statistically analyzing the distribution and / or strength of positive and negative capacitance signals in the first touch area.
[0127] It should be noted that the above methods for determining whether the touch effect on the first touch area is from water are merely examples and are not specifically limited in the embodiments of the present application. For example, in some embodiments of the present application, the ratio of N1 and N2 can be compared with a preset value (e.g., 1.5) to determine whether the touch effect on the first touch area is from water. If the ratio of N1 and N2 is greater than 1.5, it is determined that the touch effect on the first touch area is from water. If the ratio of N1 and N2 is less than or equal to 1.5, it is determined that the touch effect on the first touch area is not from water. For another example, in some embodiments of the present application, the ratio of M1 and M2 can be compared with a preset value (e.g., 1.5) to determine whether the touch effect on the first touch area is from water. If the ratio of M1 and M2 is greater than 1.5, it is determined that the touch effect on the first touch area is from water. If the ratio of M1 and M2 is less than or equal to 1.5, it is determined that the touch effect on the first touch area is not from water.
[0128] The embodiments of the present application only take the capacitance signal strength caused by water as an example, which is usually negative or mostly negative, and do not make specific limitations. For example, in some embodiments of the present application, if the result of N2-N1 is greater than the first value and the result of M2-M1 is greater than the second value, the electronic device can determine that there is water in the first touch area; if the result of N2-N1 is less than or equal to the second value and the result of M2-M1 is less than or equal to the second value, the electronic device can determine that there is no water in the first touch area. Alternatively, if the ratio of N2 to N1 is greater than 1.5, it is determined that the touch effect on the first touch area comes from water; if the ratio of N2 to N1 is less than or equal to 1.5, it is determined that the touch effect on the first touch area does not come from water.
[0129] In some embodiments of the present application, the presence of water in the first touch area includes: water is distributed in the first touch area and is not touched by the user. In this case, the electronic device abandons reporting the predicted point of the first touch area.
[0130] In some embodiments of the present application, the presence of water in the first touch area includes: water is distributed in a part of the first touch area and the other part of the first touch area is touched by the user, such as the first touch area includes a first area and a second area, water is distributed in the first area, and the second area is touched by the user. In this case, the electronic device reports the touch point of the second area and gives up reporting the predicted point of the first area.
[0131] In some embodiments of the present application, if it is recognized that water is distributed in the first touch area and no user touch is applied, the electronic device continues to execute S304A; if it is not recognized that water is present in the first touch area, the electronic device continues to execute S304B:
[0132] S304A: The electronic device abandons reporting the touch point according to the first touch information.
[0133] In some embodiments of the present application, the electronic device abandons reporting the touch point according to the first touch information, such as the electronic device abandons reporting the predicted point of the first touch area.
[0134] If the electronic device abandons the touch point reporting according to the first touch information, the electronic device will not make any response based on the first touch information. Therefore, the problem of touch point misrecognition and misresponse caused by water can be avoided, and the user experience is improved.
[0135] S304B: The electronic device reports a touch point according to the first touch information, and determines a touch operation corresponding to the first touch information.
[0136] In some embodiments of the present application, the electronic device reports the touch point according to the first touch information, such as the electronic device reports the touch point of the first touch area.
[0137] As an example, the electronic device may determine the corresponding touch operation according to the first touch information based on an InputReader provided by the input synthesis service.
[0138] Afterwards, the electronic device can proceed to the subsequent response stage, such as converting the touch operation corresponding to the first touch information into a specific input event and distributing it to the corresponding activity for response. Regarding the specific process of the electronic device responding to the user's touch operation, you can refer to conventional technology, and the embodiments of this application do not make specific limitations.
[0139] It can be understood that based on the method for identifying touch operations shown in Figure 3, the electronic device identifies the touch area that has been touched by analyzing the touch information detected from the touch screen, and then determines whether the touch effect on the touch area is from water by statistically analyzing the distribution of the capacitance signal intensity in the touch area, thereby identifying whether there is water in the touch area. Based on this, the electronic device can abandon the touch point reporting based on the detected touch information when it is recognized that there is water in the touch area, and therefore will not make any response based on the touch information. This solution can avoid the problem of misidentification and misresponse of touch points caused by water, and improve the user experience. When multiple touch areas are detected, such as when detecting area A and area B as shown in Figure 5B, the electronic device can not respond to the touch effect on area A and only respond to the touch effect on area B when it is recognized that there is water in area A and no water in area B. As shown in Figure 5B, the electronic device displays the effect of the option being selected in area B.
[0140] In some embodiments of the present application, in order to provide users with a better touch screen experience, the electronic device can also identify whether there is track water on the touch screen by comparing multiple frames of touch information detected multiple times from the touch screen, and suppress touch reporting in the screen area where the track water passes.
[0141] In some embodiments of the present application, the electronic device can identify whether there is a trace of water on the touch screen based on the capacitance signal strength in the historical touch information (such as the first historical touch information) and the current touch information (such as the first touch information). As an example, please refer to Figure 6, which shows a flow chart of another method for identifying touch operations provided by an embodiment of the present application. As shown in Figure 3, after executing S301-S303, if the electronic device recognizes that there is water in the first touch area, the electronic device executes S304A; if the electronic device does not recognize that there is water in the first touch area, the electronic device executes S601:
[0142] S601: The electronic device identifies whether there is track water in the first touch area.
[0143] In some embodiments of the present application, tracking water refers to water whose contact area with the touch screen changes. For example, the change in the contact area of the tracking water with the touch screen may be caused by the flow of water or the movement of the water caused by the touch operation of the user's finger, which is not specifically limited in the present embodiment.
[0144] In some embodiments of the present application, the first touch area includes a first area and a second area.
[0145] In some embodiments of the present application, the electronic device can identify whether there is track water in the first touch area based on the first historical touch information, the capacitance signal strength of the first area, and the capacitance signal strength of the second area, for example, the first area is a touch area of water (such as track water) and the second area is a finger touch area; for example, the second area is a touch area of water (such as track water) and the first area is a finger touch area, etc.
[0146] Taking the example where the first historical touch information is the last detected touch information related to the first touch information, in some embodiments of the present application, the electronic device can identify whether there is track water in the first touch area by comparing the first touch information with the last detected touch information. For example, the first touch information is the Nth (N is a positive integer) touch information detected by the electronic device, and the electronic device can identify whether there is track water in the first touch area by comparing the first historical touch information, the capacitance signal strength of the first area, and the capacitance signal strength of the second area, where the first historical touch information is the N-1th touch information detected by the electronic device.
[0147] For example, when water flows from position A to position B as shown in (a) in FIG7 , the touch information acting on the touch screen detected by the electronic device in sequence may be as shown in (b) and (c) in FIG7 , respectively.
[0148] In some embodiments of the present application, taking the first touch area including the first area and the second area as an example, in some embodiments of the present application, assuming that there is water flowing from position A of the first area in the second area, if the second area is located in the non-edge area of the touch screen, the electronic device can identify the water in the second area and suppress the touch point reporting in S303; and if the second area is located in the edge area of the touch screen, due to the conductivity of the electronic device frame, the effect of water on the capacitance may change from negative to positive after flowing from the first area to the second area, so the electronic device cannot successfully identify the water in the area in S303. In this case, the electronic device can analyze the changes in the capacitance signal strength in the first area and the second area based on the touch area corresponding to the first historical touch information, the distribution of the positive capacitance signal strength and the negative capacitance signal strength in the first area, and the distribution of the positive capacitance signal strength and the negative capacitance signal strength in the second area, to successfully identify whether water has flowed from the first area to the second area, so as to avoid the problem of misidentification and misresponse of touch points caused by water flowing to the edge area.
[0149] As a possible implementation manner, the electronic device may first analyze the first historical touch information to determine its corresponding touch area (eg, historical touch area).
[0150] As an example, the electronic device can first identify the position square with the greatest touch force on the touch screen based on the first historical touch information, and then traverse other adjacent position squares on the touch screen in order from near to far, starting from the position square with the greatest touch force, and add the position squares with touch force greater than a certain threshold in turn to obtain the historical touch area corresponding to the first historical touch information.
[0151] For example, the electronic device may first identify, based on the first historical touch information, a location square on the touch screen where the touch force is greater than a third threshold, then identify the location square with the greatest touch force among the touch locations greater than the third threshold, and finally, starting from the location square with the greatest touch force and using the fourth threshold as a condition, traverse the other adjacent location squares on the touch screen in order from near to far, ultimately determining the historical touch area corresponding to the first historical touch information. In some embodiments of the present application, the fourth threshold is less than the third threshold.
[0152] In some embodiments of the present application, the third threshold value and the fourth threshold value can be determined based on empirical values or a large number of touch force detections of touch operations and pre-set in the electronic device. For example, the third threshold value is 400nF and the second threshold value is 200nF; or the first threshold value is 600nF and the second threshold value is 400nF. The embodiments of the present application are not limited to this, and it depends on the specific experimental test results, touch perception capabilities and related settings of the electronic device. Regarding the specific method and process for the electronic device to determine the touch area corresponding to the first historical touch information, please refer to the above introduction to S302, the specific method and process for the electronic device to determine the first touch area corresponding to the first touch information, which will not be repeated here.
[0153] Taking the touch force represented by the absolute value of the capacitance signal strength as an example, assuming that the third threshold is 400nF and the fourth threshold is 200nF, after analyzing the first historical touch information shown in (b) of Figure 7 and the first touch information shown in (c) of Figure 7, the historical touch area corresponding to the first historical touch information and the first touch area corresponding to the first touch information may be shown in (a) of Figure 8 and (b) of Figure 8, respectively.
[0154] As a possible implementation method, the electronic device can identify whether there is track water in the first area and the second area based on the touch area corresponding to the first historical touch information, the distribution of positive capacitance signal strength and negative capacitance signal strength in the first area, and the distribution of positive capacitance signal strength and negative capacitance signal strength in the second area.
[0155] As a possible implementation, the electronic device may determine that there is trace water in the first area or the second area when the following conditions are met: the electronic device recognizes that there is water in the corresponding touch area based on the first historical touch information, the electronic device recognizes that the first area and the second area are touched and the resulting capacitance signal strength is positive based on the first touch information, the second area is the edge area of the touch screen, and the historical touch area corresponding to the first historical touch information is connected to or partially overlaps with the first area. In some embodiments of the present application, the areas partially overlap, such as when the proportion of overlapping areas between the areas is greater than a certain threshold (e.g., 80%).
[0156] As an example, the electronic device determines that there is water in the historical touch area when it analyzes the first historical touch information and determines that the number of touch positions with negative capacitance signal strength in the corresponding touch area (such as N1') is greater than the number of touch positions with positive capacitance signal strength in the historical touch area (such as N2'), and the difference between N1' and N2' is greater than a first value, and / or the sum of the absolute values of negative capacitance signal strength in the historical touch area (such as M1') is greater than the sum of the absolute values of positive capacitance signal strength in the historical touch area (such as M2'), and the difference between M1' and M2' is greater than a second value.
[0157] As an example, the electronic device analyzes the first touch information and finds that the first area and the second area are connected areas where the absolute value of the capacitance signal strength is greater than the fourth threshold, and the second area is located in the edge area of the touch screen. Then, it can be determined that the first area and the second area are affected by touch.
[0158] As an example, when water flows from position A to position B as shown in (a) in Figure 7, as shown in Figure 8, after the water flows from top to bottom due to the frame of the electronic device, the effect on the capacitor changes from the negative value shown in (a) in Figure 8 to the positive value shown in (b) in Figure 8. When the electronic device detects this change, it can recognize that there is track water in the first touch area.
[0159] In some embodiments of the present application, the electronic device can identify whether there is track water in the first touch area by comparing the first touch area with the historical touch area. For example, the first touch area is a touch area determined based on the Nth (N is a positive integer) touch information detected by the electronic device, and the electronic device can identify whether there is track water in the first touch area by comparing the first touch area with the historical touch area, and the historical touch area is a touch area determined by the electronic device based on the detected N-1th touch information. For another example, the first touch area is a touch area determined based on the Nth (N is a positive integer) touch information detected by the electronic device, and the electronic device can identify whether there is track water in the first touch area by comparing the first touch area with the third touch area, and the third touch area is a touch area determined by the electronic device based on the detected N-2th touch information.
[0160] For example, when the user's wet finger slides from position A to position B as shown in (a) in Figure 9, when the user's finger is at position A, the first historical touch information acting on the touch screen detected by the electronic device may be as shown in (b) in Figure 9, and when the user's finger is at position B, the first historical touch information acting on the touch screen detected by the electronic device may be as shown in (c) in Figure 9.
[0161] Taking the example of the first touch area including the first area and the second area, in some embodiments of the present application, assuming that the user's finger is not wet, when the user's finger slides from position A to position B as shown in (a) of Figure 9, the screen area detected by the electronic device as being touched generally only includes the second area; and in the case of the user's finger being wet, when the user's finger slides from the first area to the second area as shown in (a) of Figure 9, due to the effect of the water remaining in the first area after the user's finger leaves the first area, a touch action will generally also be detected on the first area near the user's sliding track. Based on this, in embodiments of the present application, the electronic device can identify whether the first touch area includes a touch area affected by water in the track by analyzing whether the user's historical touch track is touched within a preset range.
[0162] As a possible implementation, the electronic device may first obtain the user's historical touch trajectory corresponding to the first historical touch information, and then determine whether the first area and the second area are located within a preset range of the historical touch area corresponding to the first historical touch information. If the first area or the second area is located within the preset range of the historical touch area, it is determined that there is trace water therein. For example, if the first area is located within the preset range of the historical touch area, it is determined that there is trace water in the first area.
[0163] As an example, when a user's wet finger slides from position A to position B as shown in Figure 9 (a), when the user's finger is at position A, the detected touch information is shown in Figure 10 (a). When the user's finger slides to position B, as shown in Figure 10 (b), a touch effect can still be detected near position A. This touch effect is the touch effect of the water remaining after the user's finger left position A. In this case, the electronic device can identify whether there is track water in the first touch area by determining whether there is a touch area that meets preset conditions within a preset range of the historical touch track.
[0164] It should be noted that the above-mentioned method of the electronic device identifying whether there is track water in the first touch area by determining whether there is a touch area that meets the preset conditions within a preset range of the historical touch track is only an example, and the embodiments of this application do not specifically limit the specific implementation details. For example, in some embodiments of this application, the electronic device may also identify whether there is track water in the first touch area by determining whether there is a touch area that meets the preset conditions within a preset range of the historical touch points.
[0165] As shown in FIG6 , if water is detected flowing from other areas to the edge of the touch screen (such as the second area of the first touch area), the electronic device continues to execute S602A; if water is not detected flowing from other areas to the edge of the touch screen (such as the second area of the first touch area), the electronic device continues to execute S602B:
[0166] S602A: The electronic device abandons reporting the touch point according to the touch information corresponding to the track water.
[0167] Taking the example of the first touch area including the first area and the second area, the electronic device recognizes that there is water in the first area and the second area is touched by the user, the electronic device abandons reporting the touch point according to the touch information corresponding to the track water, such as the electronic device reports the touch point of the second area and abandons reporting the predicted point of the first area.
[0168] In some embodiments of the present application, the electronic device may forgo reporting touch points based on touch information along the path of water flow. For example, the electronic device may forgo reporting touch points based on touch information along the path of water flow for a preset duration, and then resume reporting and responding based on touch information along the path of water flow after the preset duration has elapsed. For example, if the first touch area includes a first area and a second area, and the electronic device identifies water in the first area, the electronic device may forgo reporting the predicted point for the first area for the preset duration.
[0169] In some embodiments of the present application, an electronic device may abandon touch point reporting based on touch information within a preset range of a historical touch trajectory. For example, the electronic device may abandon touch point reporting based on touch information within a preset range of a historical touch trajectory for a preset duration, and resume reporting and responding based on touch information within the preset range of the historical touch trajectory after the preset duration has elapsed. For example, if a first touch area includes a first area and a second area, and the electronic device identifies water in the first area, the electronic device may abandon touch point reporting within the preset range of the historical touch trajectory for the preset duration.
[0170] If the electronic device forgoes reporting touch points based on the touch information corresponding to the water trajectory, it will not respond to any touch information acting on the flow path or within a preset range of the historical touch trajectory for a preset period of time. This can avoid the problem of misidentification and misresponse of touch points due to water trajectory, and improve the user experience.
[0171] S602B: The electronic device reports a touch point according to the first touch information and determines a touch operation corresponding to the first touch information.
[0172] As an example, the electronic device may determine the corresponding touch operation according to the first historical touch information based on an InputReader provided by the input synthesis service.
[0173] Afterwards, the electronic device can proceed to the subsequent response stage, such as converting the touch operation corresponding to the first historical touch information into a specific input event and distributing it to the corresponding activity for response. Regarding the specific process of the electronic device responding to the user's touch operation, you can refer to conventional technology, and the embodiments of this application do not make specific limitations.
[0174] It can be understood that based on the method for identifying touch operations shown in Figure 6, the electronic device identifies whether there is track water on the touch screen by comparing multiple frames of touch information detected multiple times from the touch screen, and suppresses touch reporting in the screen area where the track water passes.
[0175] For example, when the electronic device detects water in the first non-edge area of the touch screen at the first moment, and at the second moment the electronic device does not detect the presence of water using a preliminary water detection method (as shown in FIG3 ), but at the second moment (the second moment is later than the first moment), the electronic device detects a touch action on the first area and the second area at the edge of the touch screen, and the second area is connected to the first area, the electronic device can believe that water has flowed from the non-edge area of the touch screen to the edge area. Through this process, the electronic device can accurately identify the water track in the first touch area, and by suppressing the touch reporting point on the flow path of the water, avoid the problem of misidentification and misresponse of touch points caused by water flowing to the edge area.
[0176] For example, if an electronic device detects a touch operation in a first area at a first moment and detects a second and third area at a second moment, and if the third area is within a preset range of a historical touch track (e.g., close to the historical touch track), the electronic device may determine that the third area is caused by track water. Through this process, the electronic device can accurately identify track water in the first touch area and avoid the problem of misidentification and misresponse of touch points due to track water by suppressing touch point reporting within the preset range of the historical touch track.
[0177] In some embodiments of the present application, in order to avoid problems such as ineffective clicking, ineffective sliding, clicking jitter, sliding jitter, and sliding rebound caused by the touch effect of water on the touch screen during operations such as clicking, sliding, and long pressing by the user, the electronic device can also optimize the first touch information based on the first historical touch information to improve the accuracy of touch operation recognition.
[0178] For example, as shown in Figure 11, when the user's finger slides on the screen with water, the finger and the water are connected to form an area. This area will include points corresponding to multiple absolute value peaks of capacitance signal strength (as shown in Figure 11, the capacitance signal strengths are 1948nF and 2077nF respectively). Some of the capacitance signal strength peaks are caused by finger touch (as shown in Figure 11, the capacitance signal strength is 2077nF), and some of the capacitance signal strength absolute value peaks are caused by the effect of water (as shown in Figure 11, the capacitance signal strength is 1948nF). According to conventional touch operation recognition technology, the electronic device will make subsequent responses to the predicted points in the peak area where each peak point is located, which will cause the problem of ineffective sliding.
[0179] For another example, as shown in FIG12 , when the user lifts up their finger after tapping the wet screen, since lifting is a process, when the finger is still adhered to the water, the electronic device can still detect the capacitance signal strength whose absolute value meets a certain threshold. According to conventional touch operation recognition technology, the coordinates of the touch position detected by the electronic device will change greatly (as shown in FIG12 , the area where the point with a capacitance signal strength of 1585nF and the area where the point with a capacitance signal strength of 1623nF are located, two capacitance signal absolute value intensity peak areas). According to conventional touch operation recognition technology, the electronic device will make subsequent responses to the predicted points in each peak area, which will cause the click to fail.
[0180] For example, as shown in Figure 13, when the user's finger slides on the screen with water, the finger and the water are connected to form an area. According to conventional touch operation recognition technology, the electronic device may not be able to accurately identify the user's touch position when performing touch position recognition. For example, the recognized touch position may jump between multiple predicted points with capacitance signal strengths of 1415nF, 1447nF, 1698nF and 1651nF as shown in Figure 3. The back-and-forth jumping of the predicted points will cause sliding jitter problems.
[0181] To better optimize the accuracy of touch operation recognition, as an example, please refer to Figure 14, which shows a flow chart of another method for identifying touch operations provided by an embodiment of the present application. As shown in Figure 14, after executing S301-S303 and S601, if the electronic device does not recognize that there is trace water in the first touch area, the electronic device may further execute S1401-S1402:
[0182] S1401: The electronic device optimizes the first touch information according to the first historical touch information.
[0183] In some embodiments of the present application, for example, when the most recent historical touch operation is a sliding operation, the electronic device can filter the forecast points based on the historical touch operations so that the electronic device can determine the touch point and touch operation based on the filtered forecast points.
[0184] As an example, taking the historical touch operation as a single-finger sliding operation, the electronic device can obtain the historical sliding direction and historical sliding speed of the sliding operation based on the first historical touch information, and then predict the touch position (hereinafter referred to as the predicted position) where the sliding operation may occur in the future based on the historical sliding direction and historical sliding speed of the sliding operation, and filter the various predicted points in the first touch information according to the predicted position.
[0185] Taking the example of the first touch area including the first area and the second area, the electronic device can report the predicted point of the second area (i.e., use the predicted point of the second area as the touch point) when the second area is located within the preset range of the predicted position, and not report the predicted point of the first area (i.e., give up using the predicted point of the first area as the touch point) when the first area is located outside the preset range of the predicted position.
[0186] For example, the electronic device can use the predicted point within the preset range (e.g., near) the predicted position shown in FIG15 as the touch point, and abandon the predicted point outside the preset range as the touch point. Based on this, the problem of ineffective sliding can be solved.
[0187] For another example, the electronic device can use the predicted points within (eg, near) the preset range of the predicted position shown in FIG16 as touch points, and discard the predicted points outside the preset range of the predicted position shown in FIG16 as touch points. Based on this, the problem of sliding jitter can be solved.
[0188] In some embodiments of the present application, for example, when the most recent historical touch operation is a click operation, the electronic device can compare the first touch information with the first historical touch information, and then perform prediction point screening based on the comparison result, so that the electronic device can determine the touch point and touch operation based on the screened prediction point.
[0189] Taking the example of the first touch area including the first area and the second area, in some embodiments of the present application, the electronic device can determine that the first area is a water touch area by comparing the capacitance signal strength with the largest absolute value in the first area and the second area with the capacitance signal strength with the largest absolute value in the touch area corresponding to the first historical touch information.
[0190] Taking the example of the first touch area including the first area and the second area, in some embodiments of the present application, the electronic device can determine that the first area is a water touch area when the capacitance signal strength with the largest absolute value in the first touch area drops by more than a defined threshold compared with the capacitance signal strength with the largest absolute value in the touch area corresponding to the first historical touch information, and the first touch area does not meet predefined conditions.
[0191] As an example, taking the historical touch operation as a click operation, as shown in FIG17 , the electronic device can compare the capacitance signal strength with the maximum absolute value in the first and second regions with the capacitance signal strength with the maximum absolute value in the touch region corresponding to the first historical touch information. If the capacitance signal strength with the maximum absolute value in the first region decreases by more than a defined threshold compared to the capacitance signal strength with the maximum absolute value in the touch region corresponding to the first historical touch information, and the sum of negative signals in the first region increases by more than a given threshold compared to the sum of negative signals in the touch region corresponding to the first historical touch information, and / or the number of negative signals in the first region increases by more than a given threshold compared to the number of negative signals in the touch region corresponding to the first historical touch information, then it is determined that the finger was leaving the touch screen when the first touch information was detected. The electronic device can then abandon reporting the predicted point in the first region and continue reporting the predicted point in the touch region corresponding to the first historical touch information. Based on this, the problem of ineffective clicks can be solved.
[0192] Alternatively, in some embodiments of the present application, for example, when the capacitance signal strength caused by water is generally positive or mostly positive, the electronic device may compare the capacitance signal strength with the largest absolute value in the first and second regions with the capacitance signal strength with the largest absolute value in the touch region corresponding to the first historical touch information. If the capacitance signal strength with the largest absolute value in the first region decreases by more than a defined threshold compared to the capacitance signal strength with the largest absolute value in the touch region corresponding to the first historical touch information, and the sum of positive signals in the first region increases by more than a given threshold compared to the sum of positive signals in the touch region corresponding to the first historical touch information, and / or the number of positive signals in the first region increases by more than a given threshold compared to the number of positive signals in the touch region corresponding to the first historical touch information, then it is determined that the finger is leaving the touch screen when the first touch information is detected. The electronic device may abandon reporting the predicted point in the first region and continue reporting the predicted point in the touch region corresponding to the first historical touch information. Based on this, the problem of ineffective clicks can be solved.
[0193] In some embodiments of the present application, for example, when the most recent historical touch operation is a sliding operation, the electronic device can also adjust the preset capacitance signal strength threshold when traversing the connected domain (i.e., when determining the first touch area) to reduce the problem of touch point jumping within the same connected domain. For example, after adjusting the preset capacitance signal strength threshold when traversing the connected domain (such as adjusting it to 800nF), the acquired touch area may be as shown in Figure 18, which is the connected area where the predicted point with a capacitance signal strength of 1447nF is located. Based on this, the problem of sliding jitter can be solved.
[0194] S1402: The electronic device reports the touch point according to the optimized first touch information.
[0195] It can be understood that based on the method for identifying touch operations shown in Figure 14, the electronic device can optimize the first touch information based on the first historical touch information, so as to avoid problems such as ineffective clicking, ineffective sliding, click jitter, sliding jitter, and sliding rebound caused by the touch effect of water on the touch screen during operations such as clicking, sliding, and long pressing by the user, thereby improving the accuracy of touch operation recognition.
[0196] For example, if the most recent historical touch operation is a sliding operation, after optimizing the first touch information, a position point outside the preset range of the predicted position will not be used as a touch point. Based on this, the problem of poor sliding can be solved.
[0197] For another example, in the case where the most recent historical touch operation is a click operation, after optimizing the first touch information, the electronic device will continue to report the most recent touch point, thereby solving the problem of ineffective clicks.
[0198] For another example, if the most recent historical touch operation is a sliding operation, after optimizing the first touch information, the electronic device will obtain a more accurate touch area, based on which the sliding track can be made smoother and more uniform, solving the problem of sliding jitter.
[0199] It should be understood that the various schemes of the embodiments of the present application can be used in reasonable combinations, and the explanations or descriptions of the various terms appearing in the embodiments can be cross-referenced or explained in the various embodiments, without limitation. For example, S601-S602A / S602B in the embodiments of the present application can also be executed independently of S301-S303; for another example, S1401-S1402 in the embodiments of the present application can also be executed independently of S301-S303 and S601-S602A / S602B; for another example, S601-S602A / S602B and S1401-S1402 in the embodiments of the present application can also be executed independently of S301-S303.
[0200] It should also be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0201] It is understandable that, in order to implement the functions of any of the above-mentioned embodiments, the electronic device includes hardware structures and / or software modules corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of the various examples described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0202] The embodiments of the present application can divide the electronic device into functional modules. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiments of the present application is schematic and is only a logical functional division. In actual implementation, there may be other division methods.
[0203] It should also be understood that the various modules in an electronic device can be implemented in software and / or hardware, without specific limitation. In other words, a device (such as a terminal device or proxy server) is presented in the form of functional modules. The "module" here can refer to an application-specific integrated circuit (ASIC), a circuit, a processor and memory that executes one or more software or firmware programs, an integrated logic circuit, and / or other devices that can provide the above-mentioned functions.
[0204] In an optional manner, when data transmission is implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is implemented in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disk (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)).
[0205] The steps of the method or algorithm described in conjunction with the embodiments of the present application can be implemented in hardware or by executing software instructions by a processor. The software instructions can be composed of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) memory, registers, hard disk, mobile hard disk, compact disc read-only memory (CD-ROM) or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). In addition, the ASIC can be located in an electronic device. Of course, the processor and the storage medium can also exist as discrete components.
[0206] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
Claims
1. A method for identifying a touch operation, characterized in that: Applied to an electronic device, the electronic device includes a touch screen, and the method includes: Detecting first touch information; Determine a first touch area on the touch screen according to the first touch information, where the first touch area includes a first area and a second area; Acquire first historical touch information related to the first touch information, determine that the second area is a finger touch area according to the first historical touch information, the capacitance signal strength of the first area, and the capacitance signal strength of the second area, and report the predicted point of the second area.
2. The method according to claim 1, characterized in that The method further comprises: Determining that the first area is a water touch area according to the first historical touch information, the capacitance signal strength of the first area, and the capacitance signal strength of the second area; When reporting the forecast point of the second area, the forecast point of the first area is not reported.
3. The method according to claim 1 or 2, characterized in that: The determining, according to the first historical touch information, the capacitance signal strength of the first area, and the capacitance signal strength of the second area, that the second area is a finger touch area includes: The second area is determined to be a finger touch area according to the touch area corresponding to the first historical touch information, the distribution of positive capacitance signal strength and negative capacitance signal strength in the first area, and the distribution of positive capacitance signal strength and negative capacitance signal strength in the second area.
4. The method according to any one of claims 1 to 3, characterized in that The first touch information and the first historical touch information correspond to the same sliding operation of the user, and the first area is within a preset range of a touch area corresponding to the first historical touch information.
5. The method according to any one of claims 1 to 3, characterized in that: The touch area corresponding to the first historical touch information is connected to or partially overlaps with the first area.
6. The method according to any one of claims 1 to 5, characterized in that The first historical touch information corresponds to a sliding operation, and the method further includes: Obtaining a historical sliding direction and a historical sliding speed of the sliding operation according to the first historical touch information; Determining a predicted position according to the historical sliding direction and the historical sliding speed; When the second area is within a preset range of the predicted position, the forecast point of the second area is reported.
7. The method according to claim 6, characterized in that The method further comprises: When the first area is outside the preset range of the predicted position, the forecast point of the first area is not reported.
8. The method according to any one of claims 2 to 7, characterized in that: The first historical touch information corresponds to a click operation, and determining the second area as a finger touch area according to the first historical touch information, the capacitance signal strength of the first area, and the capacitance signal strength of the second area includes: By comparing the capacitance signal strengths with the largest absolute values in the first area and the second area with the capacitance signal strength with the largest absolute value in the touch area corresponding to the first historical touch information, it is determined that the first area is a water touch area.
9. The method according to claim 8, characterized in that The determining that the second area is a finger touch area by comparing the capacitance signal strengths with the largest absolute values in the first area and the second area with the capacitance signal strength with the largest absolute value in the touch area corresponding to the first historical touch information includes: When the capacitance signal strength with the largest absolute value in the first touch area decreases by more than a defined threshold compared with the capacitance signal strength with the largest absolute value in the touch area corresponding to the first historical touch information, and the first touch area does not meet a predefined condition, the first area is determined to be a water touch area.
10. The method according to any one of claims 1 to 5, characterized in that The method further includes: detecting second touch information; determining a second touch area according to the second touch information; Determine that the second touch area is a water touch area according to the capacitance signal strength of the second touch area, and do not report the The predicted point of the second touch area.
11. The method according to claim 10, characterized in that The step of determining, according to the capacitance signal strength of the second touch area, that the second touch area is a water touch area includes: When the capacitance signal strength of the second touch area meets a predefined condition, it is determined that the second touch area is a water touch area.
12. The method according to any one of claims 1 to 11, characterized in that The determining the first touch area according to the first touch information includes: identifying a predicted point with a maximum absolute value of capacitance signal strength according to the first touch information; Taking the predicted point with the largest absolute value of the capacitance signal strength as the starting point, traverse other nearby predicted points on the touch screen in order from near to far, find the predicted point that meets the preset capacitance signal strength threshold, and determine the first touch area.
13. The method according to claim 12, characterized in that The first historical touch information corresponds to a sliding operation, and the method further includes: The preset capacitance signal strength threshold is adjusted during the process of determining the first touch area.
14. An electronic device, characterized in that: The electronic device comprises: A touch screen, used for users to perform touch operations; a memory for storing computer program instructions; A processor is used to execute the computer program instructions to support the electronic terminal device to implement the method as described in any one of claims 1-13.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processing circuit, the method according to any one of claims 1 to 13 is implemented.
16. A computer program product comprising instructions, characterized in that When the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 13.
Citation Information
Patent Citations
Method for identifying touch operation and electronic equipment
CN119536542A
Method for detecting touch position by image processing
CN102169396A
Method and device for touch screen sensing, corresponding apparatus and computer program product
CN105938404A
Report point determination method and device of touch screen, electronic equipment and storage medium
CN113253878A
Ghost point detection method and device, electronic equipment and storage medium
CN116449977A