Method for identifying touch operation and electronic equipment
By detecting the capacitance signal intensity distribution in the touch area in electronic devices, identifying and suppressing the forecast point reporting of the water-existing area, the problems of misidentification and misresponse of touch points caused by water are solved, and the user experience and operation accuracy are improved.
Patent Information
- Application Number
- CN202311170451.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-08-29
- Filing Date
- 2023-09-11
- Publication Date
- 2025-02-28
AI Technical Summary
When water exists on the touch screen of an electronic device, it is easy to cause misidentification of the user's touch points and false responses, affecting the user's experience.
By detecting the capacitance signal intensity distribution in the touch area, the area of water is identified, and the suppression method is used to not report the forecast point in the area, thereby avoiding 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 misidentification and misresponse problems caused by water, and improves the user experience.
Smart Images

Figure CN119536542A_ABST
Abstract
Description
[0001] This application claims the priority of 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”, all contents of which are incorporated by reference in 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] At present, electronic devices mainly identify the user's touch position and then the user's touch operation based on the change of the capacitance signal on the touch screen. For example, when the user's finger touches the touch screen, it will cause the capacitance signal strength to change. When the capacitance signal strength change exceeds a certain threshold, the electronic device will use the user's finger touch position as the touch point. When the user's finger double-clicks on the touch screen, the electronic device will identify the two adjacent touch points; when the user's finger slides on the touch screen, the electronic device will identify the continuous touch points. Based on this principle, the electronic device can identify the user's touch operations, such as click operations, slide operations, etc.
[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, there may be water 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. Summary of the invention
[0005] The present application provides a method for identifying touch operations and an electronic device, 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.
[0006] In order to achieve the above objectives, this application adopts the following technical solutions:
[0007] 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 a 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, a capacitance signal strength of the first area, and a capacitance signal strength of the second area, and reporting a predicted point of the second area.
[0008] 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 that is affected by the 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.
[0009] According to the solution provided in the first aspect above, the electronic device can identify whether the touch area is the user's action area, and report the relevant prediction points as touch points when it is identified that the touch area is the user's action 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.
[0010] As a possible implementation, the method further includes: the electronic device determines that the first area is a touch area of water 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 may be the historical touch information most recently detected by the electronic device; of course, the first historical touch information may also be other historical touch information detected by the electronic device, which is not limited in the present 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 actions in the touch area where water exists, and then suppressing the response to the touch action 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.
[0011] 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.
[0012] 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 a 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 a 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.
[0013] 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.
[0014] 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 problems such as misidentification and misresponse of touch points caused by water, thereby improving the user experience.
[0015] As a possible implementation, 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 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 avoid the problem of misidentification and misresponse of touch points caused by water by suppressing touch reporting points within the preset range of the historical touch track.
[0016] 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 the water in the first touch area, and avoid the problem of misidentification and misresponse of touch points caused by water flowing to the edge area by suppressing the touch point reporting on the flow path of the water.
[0017] As a possible implementation, the first historical touch information corresponds to a sliding operation, and the method further includes: the electronic device obtains the historical sliding direction and the historical sliding speed of the sliding operation according to the first historical touch information; the electronic device determines the predicted position according to the historical sliding direction and the historical sliding speed; when the second area is within the preset range of the predicted position, the electronic device reports the predicted point of the second area. In this way, the electronic device can predict the touch position where the sliding operation may act in the future based on the historical sliding direction and the historical sliding speed of the sliding operation, and screen the predicted points in the first touch information according to the possible touch position, and determine the predicted point that is most likely to be the user's touch point for reporting, so as to avoid the problem of misidentification and misresponse of touch points caused by water, and improve the user's experience.
[0018] As a possible implementation, the method further includes: when the first area is outside the preset range of the predicted position, the electronic device does not report the predicted point of the first area. In this way, the electronic device can predict the touch position where the sliding operation may act in the future based on the historical sliding direction and historical sliding speed of the sliding operation, and screen the various predicted points in the first touch information according to the possible touch position, determine the most likely prediction point of water, and suppress reporting of the prediction point, so as to avoid the problem of misidentification and misresponse of touch points caused by water, thereby improving the user experience.
[0019] As a 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 according to 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 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. In this way, it can be detected whether the user's finger is leaving the touch screen, and when it is determined that the user's finger is leaving the touch screen, the forecast point of the water area is abandoned to solve the problem of ineffective click.
[0020] 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 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, including: when the capacitance signal strength with the largest absolute value in the first touch area of the electronic device decreases by more than a defined threshold value 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 the predefined conditions, the first area is determined to be a water touch area. In this way, it can be detected whether the user's finger is leaving the touch screen, and when it is determined that the user's finger is leaving the touch screen, the forecast point of the water area is abandoned to solve the problem of ineffective clicks.
[0021] As a possible implementation, the method further includes: the electronic device detects the second touch information; the electronic device determines the second touch area according to the second touch information; the electronic device determines that the second touch area is a water touch area according to the capacitance signal strength of the second touch area, and does not report the forecast point of the second touch area. 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 the touch effect of the touch area with water, and then suppressing the response to the touch effect of water. Based on this, the problem of misidentification and misresponse of touch points caused by water can be avoided, and the user experience can be improved.
[0022] As a possible implementation, the electronic device determines that the second touch area is a water touch area according to 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, so as to suppress the reporting of the prediction point of the touch action of the touch area with water, and further suppress the response to the touch action of water.
[0023] As a possible implementation, the electronic device determines the first touch area according to the first touch information, including: the electronic device identifies the predicted point with the largest absolute value of capacitance signal strength according to the first touch information; the electronic device takes the predicted point with the largest absolute value of capacitance signal strength as the starting point, and sequentially traverses other adjacent predicted points on the touch screen in order from near to far, finds the predicted point that meets the preset capacitance signal strength threshold, and determines the first touch area. In this way, the electronic device can accurately identify the touch screen area that receives the touch effect.
[0024] As a possible implementation, the first historical touch information corresponds to a sliding operation, and the method further includes: the electronic device adjusts a preset capacitance signal strength threshold in the process of determining the first touch area, so that the touch point jump in the same connected domain can be reduced and the sliding jitter problem can be solved.
[0025] 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 to implement a method in any possible implementation of the first aspect.
[0026] 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 in any possible implementation of the first aspect is implemented.
[0027] According to a fourth aspect, a computer program product comprising instructions is provided. When the computer program product is run on a computer, the computer implements the method in any possible implementation manner of the first aspect.
[0028] In a fifth aspect, a chip system is provided, the chip system comprising a processing circuit and a storage medium, wherein the storage medium stores computer program instructions; when the computer program instructions are executed by the processor, the method in any possible implementation of the first aspect is implemented. The chip system may be composed of a chip, or may include a chip and other discrete devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0030] Figure 2 A schematic diagram of the software structure of an electronic device provided in an embodiment of the present application;
[0031] Figure 3 Method flow for identifying touch operation provided in the embodiment of the present application Figure 1 ;
[0032] Figure 4 A schematic diagram of touch information provided in an embodiment of the present application;
[0033] Figure 5A A schematic diagram of a process for determining a touch area provided in an embodiment of the present application;
[0034] Figure 5B A schematic diagram of a touch operation response effect provided in an embodiment of the present application;
[0035] Figure 6 Method flow for identifying touch operation provided in the embodiment of the present application Figure 2 ;
[0036] Figure 7 An example diagram of touch information detected in a track water scene provided in an embodiment of the present application;
[0037] Figure 8 An example diagram of a touch area in a track water scene provided in an embodiment of the present application;
[0038] Fig. 9 This is another example diagram of touch information detected in a track water scene provided by an embodiment of the present application;
[0039] Fig.10 Another example diagram of a touch area in a track water scene provided by an embodiment of the present application;
[0040] Fig.11 A schematic diagram of a sliding failure situation provided in an embodiment of the present application;
[0041] Fig.12 A schematic diagram of a click failure situation provided in an embodiment of the present application;
[0042] Fig.13 A schematic diagram of a sliding jitter situation provided in an embodiment of the present application;
[0043] Fig.14 Method flow for identifying touch operation provided in the embodiment of the present application Figure 3 ;
[0044] Fig.15 A schematic diagram of a touch information optimization method provided in an embodiment of the present application Figure 1 ;
[0045] Fig.16 A schematic diagram of a touch information optimization method provided in an embodiment of the present application Figure 2 ;
[0046] Fig.17 A schematic diagram of a touch information optimization method provided in an embodiment of the present application Figure 3 ;
[0047] Fig.18 A schematic diagram of a touch information optimization method provided in an embodiment of the present application Figure 4 . DETAILED DESCRIPTION
[0048] The technical solutions in the embodiments of the present application will be described below in conjunction with the 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 only a description of the association relationship of associated objects, indicating that there can be three relationships, 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.
[0049] In the following, the terms "first", "second", etc. are only used to distinguish different description 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 before the "field" in the "first field" and the "second field" does not limit the position or order between the "fields", and the "first" and "second" do not limit whether the "fields" they modify are in the same message, nor do they limit the order of the "first field" and the "second field". For another example, if the described object is a "level", the ordinal number before the "level" in the "first level" and the "second level" does not limit the priority between the "levels". For another example, the number of described objects is not limited by the ordinal number, and can be one or more. Taking the "first device" as an example, the number of "devices" can be one or more. In addition, 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 the "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 the "second information" can be information of the same content or information of different contents. In summary, the use of prefixes such as ordinal numbers to distinguish the described objects in the embodiments of the present application does not constitute a limitation 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 limitation should be constituted due to the use of such prefixes.
[0050] 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 connecting 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.
[0051] As described 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 an absolute value exceeding 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 continues to exceed 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 values of the capacitance signal strength at each position on a certain track on the touch screen exceed 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:
[0052] 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 of the water as a click operation, long press operation or sliding operation made by the user and respond, which will bring a bad experience to the user. In serious cases, it may cause great losses to the user, such as accidental deletion of information, accidental sending of messages, etc.
[0053] 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 identify the related touch effects of the water as the user's operation and respond. For the user, he will experience problems such as ineffective clicking, ineffective sliding, sliding rebound, click jitter or sliding jitter.
[0054] In order to improve the accuracy of electronic devices in identifying user touch operations, so as to ensure that they can accurately respond to user touch operations, especially when there is water on the touch screen of the electronic device, in order to avoid the problem of misidentification and misresponse of touch points caused by water, and to improve the user experience, an embodiment of the present application provides a method for identifying touch operations. The method can identify whether there is water on the touch screen, and when it is identified that there is water in a certain area on the touch screen, the misidentification and misresponse of water-related touch operations can be avoided by not reporting the predicted point.
[0055] 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. The touch 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 identifies that the touch comes from a user's finger, a stylus, a touch pen, a touch ball or other touch-assistive tools, the electronic device reports the corresponding prediction point, that is, reports the corresponding prediction point as a touch point, so as to respond to subsequent user touch operations.
[0056] 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 smart phone, 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 scene. 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.
[0057] As an example, see Figure 1 , Figure 1 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.
[0058] like Figure 1 As shown, 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, etc. Among them, 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, etc.
[0059] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split 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.
[0060] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a flight controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.
[0061] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0062] In some embodiments, the processor 110 may include one or more interfaces. The interface 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, etc.
[0063] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. 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, so that the processor 110 communicates with the touch sensor 180A or the pressure sensor 180B through the I2C bus interface to realize the touch function of the electronic device.
[0064] 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.
[0065] 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 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 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, etc.
[0066] 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 user fingers, stylus, touch pen or touch ball as the touch point, and determine the touch operation based on the touch information of 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.
[0067] The charging management module 140 is used to receive charging input from the charger. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the display screen 194, the camera 193 and the wireless communication module 160.
[0068] 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.
[0069] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0070] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to electronic devices. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. The modulation and demodulation processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-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 the low-frequency baseband signal is processed by the baseband processor, it 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.
[0071] 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.
[0072] 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).
[0073] The electronic device implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0074] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-OLED, a quantum dot light-emitting diode (QLED), etc.
[0075] 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 a data storage function.
[0076] The internal memory 121 can be used to store computer executable program codes. Exemplarily, the computer program may include an operating system program and an application program. 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 program 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.
[0077] The electronic device can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C and the application processor.
[0078] The touch sensor 180A is also called a "touch panel". The touch sensor 180A can be set on the display screen 194. The touch sensor 180A and the display screen 194 form a touch screen, also called a "touch screen" or "touch screen" (this application takes the "touch screen" as an example for relevant introduction). The touch sensor 180A is used to detect touch information acting on or near it, such as touch position, touch strength, etc.
[0079] 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.
[0080] 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.
[0081] 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 including 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 can correspond to different operation instructions.
[0082] 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.
[0083] 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.
[0084] In the embodiment of the present application, the touch operation of the user detected by the touch sensor 180A may be the operation of the user on the touch screen through the finger, or it may be the operation of the user on the touch screen using a touch auxiliary tool such as a stylus, a touch pen, a touch ball, etc., which is not limited in the present application.
[0085] In addition, for the introduction of hardware such as buttons 190, motor 191, and indicator 192, reference may be made to conventional technologies and will not be repeated in the embodiments of the present application.
[0086] It is understandable that this application Figure 1 The illustrated structure 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 in the figure, or combine some components, or split some components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0087] As a possible example, see Figure 2 , Figure 2 FIG. 1 shows a schematic diagram of the software structure of an electronic device provided in an embodiment of the present application. Figure 2 As shown, the operating system of the electronic device may include an application layer, a framework layer (framework, FWK) and a kernel layer.
[0088] The application layer can include a series of applications, such as Figure 2 The application 1, application 2, ... shown in the figure, for example, the application may include but is not limited to mailbox, camera, gallery, calendar, call, map, navigation, Bluetooth, music, video, short message and other native applications (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 the present application.
[0089] The framework layer is used to provide application programming interface (API) and programming framework for applications in the application layer. Figure 2 As shown, the framework layer can provide window management service (WindowManagerService, WMS), activity management service (activity management service, AMS), input synthesis (InputFlinger) service and surface synthesis (SurfaceFlinger) service.
[0090] The window management service is used to provide window management, such as window creation, window activation, window deletion, window movement, window position / size / style management, etc. In some embodiments, the window management service can also be used to manage window information. The window information may include, but is not limited to, window identification, window level, identification of the interface displayed in the window, virtual screen object corresponding to the window, and other information. Exemplarily, 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 a parameter of type int.
[0091] 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 saving 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 saved in the task stack (ActivityStack). Among them, ActivityStack is used to uniformly schedule application activities. ActivityStack can specifically save information about all running activities. ActivityStack can also save information about historically run activities.
[0092] In the 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.
[0093] 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 points based on the touch information, and use the predicted points that belong to the effects of touch auxiliary tools such as user fingers, styluses, touch pens or touch balls as touch points, and then determine the touch operation based on one or more touch points and convert it into specific input events. 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.
[0094] The surface synthesis service is used to synthesize graphic 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. The drawing and rendering of the above status bar, navigation bar, wallpaper and launcher icon layer are all performed separately. The surface synthesis service mainly synthesizes the status bar, navigation bar, wallpaper and launcher icon layer and sends them for display.
[0095] Of course, the framework layer can also be used to provide other management services, such as package management services, content provision services, phone management services, resource management services, notification management services, location management services, and view system services. Among them, the package management service is responsible for program management within the system. The content provision service is used to support an application to access the data of another application (such as a contact database), or to share its own data with other applications, where the data may include video, images, audio, dialed and received calls, browsing history and bookmarks, phone books, etc. The phone management service is used to provide a method for accessing the status and information related to terminal device communication; and to provide communication functions of terminal devices, such as call status management (including connection, hang up, etc.). The resource management service is used to provide access to non-code resources, such as local strings, icons, pictures, graphics, video files or layout files. The notification management service is used to provide the function of displaying customized prompt information in the status bar. The prompt information can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. The location management service is used to provide services related to processing geographic location. The view system can be used to build the display interface of the application. The view system includes visual controls such as text box controls, list controls, grid controls, button controls, and embeddable web browser controls.
[0096] The kernel layer is the layer between hardware and software. The kernel layer can include camera driver, display driver, microphone driver, sensor driver, etc. Hardware such as camera, display (touch screen), camera, microphone, etc.
[0097] 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) arranged on the touch screen and provide the touch information 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 user fingers, stylus, touch pen or touch ball as touch points to thereby determine the user's touch operation and the corresponding input event.
[0098] 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 user's click (such as single click, double click, etc.) operation / long press operation / slide operation / drag operation on the touch screen through a finger or a touch auxiliary tool such as a stylus, a touch pen, or a touch ball, etc. The present application does not make specific limitations on this.
[0099] It should be noted that Figure 2 This is only an example of a software structure diagram of an electronic device, in which only the layers and software modules related to the solution of the present application are simply listed. In practical applications, the operating system of the electronic device may also include other layers, and each layer may also include other software modules for implementing one or more functions or services. This embodiment of the present application does not specifically limit this.
[0100] 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 called 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.
[0101] For example, electronic devices can Figure 2 The input synthesis service shown is responsible for identifying the prediction point, and when it is identified that the touch information is the user's touch information, it uses the prediction point as the touch point to determine the touch operation and convert it into a specific input event for input event distribution, or when it is identified that the touch information is the touch of water, it abandons the prediction point as the touch point to stop the subsequent processing flow.
[0102] In some embodiments of the present application, when performing touch information analysis, the input synthesis service can identify whether the touch information comes from water. For example, when there is water in a certain area on the touch screen, the input synthesis service can identify whether the detected touch information is caused by the water in the area, and does not report the prediction point when the touch information comes from water. Based on this, it is possible to avoid misidentification and misresponse to water-related touch effects.
[0103] 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, misidentification and misresponse to touch effects related to track water can be avoided.
[0104] A method for identifying a touch operation provided by an embodiment of the present application will be specifically introduced below in conjunction with the accompanying drawings and specific embodiments.
[0105] Please refer to Figure 3 , Figure 3 FIG. 1 shows a flow chart of a method for identifying a touch operation provided by an embodiment of the present application. Figure 3 As shown, a method for identifying a touch operation provided in an embodiment of the present application includes S301-S303 and S304A / S304B:
[0106] S301: The electronic device detects first touch information.
[0107] In some embodiments of the present application, the first touch information is used to indicate information such as the touch position (also called the prediction 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 has the ability to detect 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.
[0108] In some embodiments of the present application, the touch position can be represented by coordinate information on the touch screen. Figure 4 , Figure 4 FIG. 1 shows a schematic diagram of touch information provided by an embodiment of the present application. Figure 4 As shown, the touch screen can be divided into several small squares, and the touch position acting on any position in 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.
[0109] In some embodiments of the present application, Figure 4The gridding method of the touch screen shown is only an example. The embodiment of the present application does not limit the degree of fineness of the gridding, which depends on the specific touch sensing capability and related settings of the electronic device. For example, assuming that the sensor units of the electronic device are arranged at 4mm intervals at the corresponding positions of the touch screen, when performing relevant calculations, the electronic device can grid the touch screen based on the unit of 4mm.
[0110] In some embodiments of the present application, the touch force acting on any touch position can be represented by the capacitance signal strength detected at the touch position. 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. Figure 4 As shown, the number in each square is the capacitance signal strength detected by the sensor at the position corresponding to the square.
[0111] S302: The electronic device analyzes the detected first touch information and determines a first touch area corresponding to the first touch information.
[0112] 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 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.
[0113] 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.
[0114] For example, the electronic device may first identify the position square on the touch screen where the touch force is greater than the first threshold according to the first touch information, then identify the position square where the touch force is the largest among the touch positions greater than the first threshold, and finally, starting from the position square with the largest touch force and taking the second threshold as a condition, traverse the other adjacent position squares on the touch screen in order from near to far, and finally determine the first touch area. In some embodiments of the present application, the second threshold is less than the first threshold.
[0115] In some embodiments of the present application, the first threshold and the second threshold can be determined based on experience or a large number of touch force detections of touch operations and pre-set in the electronic device. For example, the first threshold is 600 nanofarads (nF) and the second threshold is 400nF; or the first threshold is 800nF and the second threshold is 600nF. The embodiments of the present application are not limited and depend on the specific experimental test results, touch sensing capabilities and related settings of the electronic device.
[0116] When the touch force detected at a certain position is greater than a certain strength threshold, the electronic device generally considers that the position is touched, and when the absolute value of the capacitance signal strength at a certain position is not greater than a certain strength threshold, the electronic device generally considers that the position is not touched. By analyzing the touch force at each position in the first touch information, the electronic device can identify the touch area that has been touched.
[0117] The touch force is represented by the capacitance signal strength, and the first touch information is as follows: Figure 4 As shown in the figure, for 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 whose absolute value of the capacitance signal strength is 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 Figure 4 The capacitance signal strength is 2567nF in the middle grid); finally, Figure 5A As shown, the electronic device can take the position square with a capacitance signal strength of 2567nF as the starting point and the absolute value greater than 400nF as the condition, and 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 capacitance signal strength greater than 400nF, which is the first touch area that has been touched.
[0118] When performing a position grid traversal, for example, Figure 5A As shown, we can first start from the position square with a capacitance signal strength of 2567nF and traverse the eight position squares around it, and select the position squares with an absolute value of capacitance signal strength greater than 400nF (such as Figure 5AAs shown in the figure, the position squares adjacent to the position square with a capacitance signal strength of 2567nF, and the position squares with capacitance signal strengths of 1899nF, 1800nF, 1914nF, 1460nF, 955nF and 1837nF respectively, are added to the connected area. Then, starting from the position squares with capacitance signal strengths of 1899nF, 1800nF, 1914nF, 1460nF, 955nF and 1837nF respectively, the 8 position squares around each are traversed, and the position squares with capacitance signal strengths greater than 400nF are added to the connected area. By analogy, a connected first touch control area can be obtained.
[0119] S303: The electronic device identifies whether there is water in the first touch area.
[0120] 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.
[0121] 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.
[0122] 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.
[0123] 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 (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.
[0124] 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.
[0125] It can be understood that if the touch screen is touched by a user's finger or a touch-assisting tool such as a stylus, a touch pen, or a touch ball, the capacitance signal strength in the touch area is usually positive or mostly positive; and if the touch screen is touched by water, the capacitance signal strength in the touch area is usually negative or mostly negative. Based on this difference in physical properties, the present solution can accurately identify whether there is water in the first touch area by counting the distribution of positive and negative capacitance signals and / or the strength of positive and negative capacitance signals in the first touch area.
[0126] It should be noted that the above methods for determining whether the touch effect on the first touch area comes from water are only used as several examples, and the embodiments of the present application do not specifically limit them. For example, in some embodiments of the present application, it is also possible to determine whether the touch effect on the first touch area comes from water by comparing the ratio of N1 and N2 with a preset value (such as 1.5). If the ratio of N1 and N2 is greater than 1.5, it is determined that the touch effect on the first touch area comes 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 does not come from water. For another example, in some embodiments of the present application, it is also possible to determine whether the touch effect on the first touch area comes from water by comparing the ratio of M1 and M2 with a preset value (such as 1.5). If the ratio of M1 and M2 is greater than 1.5, it is determined that the touch effect on the first touch area comes 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 does not come from water.
[0127] The embodiments of the present application only take the capacitance signal strength caused by water as usually negative or mostly negative as an example, 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, and 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.
[0128] 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.
[0129] In some embodiments of the present application, the presence of water in the first touch area includes: water is distributed in a partial area of the first touch area and the other partial 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.
[0130] 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:
[0131] S304A: The electronic device abandons reporting the touch point according to the first touch information.
[0132] 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.
[0133] 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 misidentification and misresponse caused by water can be avoided, thereby improving the user experience.
[0134] 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.
[0135] 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.
[0136] 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.
[0137] Afterwards, the electronic device can proceed to a 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, reference can be made to conventional technology, and the embodiments of the present application do not make specific limitations.
[0138] Understandably, based on Figure 3In the method for identifying touch operations shown, 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 comes from water by counting the distribution of the capacitance signal strength in the touch area, thereby identifying whether there is water in the touch area. Based on this, the electronic device can give up reporting the touch point based on the detected touch information when it recognizes 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, thereby improving the user experience. When multiple touch areas are detected, such as when multiple touch areas are detected, Figure 5B When the electronic device identifies that there is water in area A and no water in area B, it does not respond to the touch action on area A but only responds to the touch action on area B, such as Figure 5B As shown, the electronic device displays the effect of the option being selected in area B.
[0139] 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.
[0140] In some embodiments of the present application, the electronic device can identify whether there is track 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). Figure 6 , Figure 6 FIG. 2 shows another method flow chart for identifying a touch operation provided by an embodiment of the present application. Figure 3 As shown, 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:
[0141] S601: The electronic device identifies whether there is track water in the first touch area.
[0142] In some embodiments of the present application, the track water refers to water whose contact area with the touch screen changes. For example, the change in the contact area between the track water and the touch screen may be caused by the flow of water, or may be caused by the movement of water driven by the touch operation of the user's finger, which is not specifically limited in the embodiments of the present application.
[0143] In some embodiments of the present application, the first touch area includes a first area and a second area.
[0144] 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; or another example is that the second area is a touch area of water (such as track water) and the first area is a finger touch area, etc.
[0145] Taking the example that 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, and the first historical touch information is the N-1th touch information detected by the electronic device.
[0146] For example, when water Figure 7 In the process from position A to position B shown in (a) of FIG. 1 , the touch information acting on the touch screen detected by the electronic device may be respectively as follows: Figure 7 (b) and Figure 7 As shown in (c) in .
[0147] 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, in the case where 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 report in S303; and in the case where the second area is located in the edge area of the touch screen, due to the conductivity of the electronic device frame, the effect on the capacitance may change from a negative value to a positive value after the water flows 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 according to 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, and successfully identify whether there is water flowing 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.
[0148] As a possible implementation manner, the electronic device may first analyze the first historical touch information to determine the corresponding touch area (such as the historical touch area).
[0149] 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.
[0150] For example, the electronic device may first identify the position square on the touch screen where the touch force is greater than the third threshold value based on the first historical touch information, then identify the position square where the touch force is the largest among the touch positions greater than the third threshold value, and finally, starting from the position square with the largest touch force and taking the fourth threshold value as a condition, traverse the other adjacent position squares on the touch screen in order from near to far, and finally determine the historical touch area corresponding to the first historical touch information. In some embodiments of the present application, the fourth threshold value is less than the third threshold value.
[0151] In some embodiments of the present application, the third threshold and the fourth threshold may be determined based on empirical values or a large number of touch force detections of touch operations and pre-set in the electronic device. Exemplarily, the third threshold is 400nF and the second threshold is 200nF; or the first threshold is 600nF and the second threshold is 400nF. The embodiments of the present application are not limited thereto, and depend on the specific experimental test results, touch sensing 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 elaborated here.
[0152] 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, Figure 7 The first historical touch information shown in (b) and Figure 7 After analyzing the first touch information shown in (c) in FIG. 1 , the determined historical touch area corresponding to the first historical touch information and the first touch area corresponding to the first touch information may be respectively as follows: Figure 8 (a) and Figure 8 As shown in (b) in .
[0153] 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.
[0154] As a possible implementation, the electronic device may consider that there is track 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 according to the first historical touch information, the electronic device recognizes that the first area and the second area are touched and the capacitance signal strength caused is positive according to 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 are partially overlapped, such as the proportion of overlapping areas between areas is greater than a certain threshold (such as 80%).
[0155] As an example, the electronic device determines that there is water in the historical touch area by analyzing the first historical touch information and determining 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 strengths in the historical touch area (such as M1') is greater than the sum of the absolute values of positive capacitance signal strengths in the historical touch area (such as M2'), and the difference between M1' and M2' is greater than a second value.
[0156] 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 at the edge area of the touch screen. Then, it can be determined that the first area and the second area are affected by touch.
[0157] As an example, when water Figure 7 In the process from position A to position B as shown in (a) in Figure 8 As shown in the figure, after water flows from top to bottom due to the frame of the electronic device, the effect on the capacitor is Figure 8 The negative value shown in (a) changes to Figure 8 The positive value shown in (b) in FIG. 8 is a positive value. When the electronic device detects this and change, it can be identified that there is track water in the first touch area.
[0158] 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.
[0159] For example, when a user's finger is wet Fig. 9 In the process of sliding from position A to position B as shown in (a) in FIG. 1 , when the user's finger is located at position A, the first historical touch information acting on the touch screen detected by the electronic device may be as follows: Fig. 9 As shown in (b) in FIG. 1 , when the user's finger is at position B, the first touch information acting on the touch screen detected by the electronic device may be as follows: Fig. 9 As shown in (c) in .
[0160] 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 the user's finger is not wet, when the user's finger is touched Fig. 9 As shown in (a) of FIG. 1 , after sliding from position A to position B, the screen area detected by the electronic device as being touched usually only includes the second area; and in the case where the user's finger is wet, when the user's finger is similarly Fig. 9 As shown in (a) of FIG. 1 , after sliding from the first area to the second area, due to the effect of the water remaining on the first area after the user's finger leaves the first area, a touch action is usually detected on the first area near the user's sliding track. Based on this, in an embodiment of the present application, the electronic device can identify whether the first touch area includes a touch area affected by the touch action of the track water by analyzing whether the user's historical touch track is touched within a preset range.
[0161] As a possible implementation, the electronic device may first obtain the historical touch track of the user corresponding to the first historical touch information, and then determine whether the first area and the second area are located within the preset range of the historical touch area corresponding to the first historical touch information, and if the first area or the second area is located within the preset range of the historical touch area, it is recognized that there is track water therein. For example, if the first area is located within the preset range of the historical touch area, it is recognized that there is track water in the first area.
[0162] As an example, when a user touches a wet finger Fig. 9 In the process of sliding from position A to position B as shown in (a) in FIG. 1 , when the user's finger is at position A, the touch information detected is as follows: Fig.10 As shown in (a) of FIG. 1 , when the user slides his finger to position B, Fig.10 As shown in (b), a touch effect can still be detected near position A, and the touch effect is the touch effect of the water remaining after the user's finger leaves position A. In this case, the electronic device can identify whether there is track water in the first touch area by judging whether there is a touch area that meets the preset conditions within the preset range of the historical touch track.
[0163] It should be noted that the method in which the electronic device identifies whether there is track water in the first touch area by judging whether there is a touch area that meets the preset conditions within the preset range of the historical touch track is only an example, and the embodiments of the present application do not specifically limit the specific implementation details. For example, in some embodiments of the present application, the electronic device may also identify whether there is track water in the first touch area by judging whether there is a touch area that meets the preset conditions within the preset range of the historical touch point.
[0164] like Figure 6 As shown, if it is recognized that water flows 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 it is not recognized that water flows 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:
[0165] S602A: The electronic device abandons reporting the touch point according to the touch information corresponding to the track water.
[0166] Taking the example that the first touch area includes the first area and the second area, and 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.
[0167] In some embodiments of the present application, the electronic device may abandon the touch reporting of the point according to the touch information on the path of the water flow. For example, the electronic device may abandon the touch reporting of the point according to the touch information on the path of the water flow within a preset time, and resume reporting and responding according to the touch information on the path of the water flow after the preset time. For example, if the first touch area includes the first area and the second area, and the electronic device recognizes that there is water in the first area, the electronic device may abandon reporting the forecast point of the first area within the preset time.
[0168] In some embodiments of the present application, the electronic device may abandon the touch point reporting according to the touch information within the preset range of the historical touch track. For example, the electronic device may abandon the touch point reporting according to the touch information within the preset range of the historical touch track within the preset time, and resume the reporting and response according to the touch information within the preset range of the historical touch track after the preset time. For example, the first touch area includes the first area and the second area, and the electronic device recognizes that there is water in the first area, the electronic device may abandon the predicted point within the preset range of the above historical touch track within the preset time.
[0169] In the case where the electronic device abandons the touch point reporting according to the touch information corresponding to the track water, the electronic device will not respond to the touch information acting on the flow path or the touch information within the preset range of the historical touch track within a preset time. Therefore, the problem of misidentification and misresponse of touch points caused by track water can be avoided, improving the user experience.
[0170] 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.
[0171] 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.
[0172] Afterwards, the electronic device can proceed to a 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, reference can be made to conventional technology, and the embodiments of the present application do not make specific limitations.
[0173] Understandably, based on Figure 6 In the method for identifying touch operations shown, 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 on the screen area where the track water passes.
[0174] For example, at a first moment, the electronic device detects water in a first area of the touch screen that is not an edge area, and at a second moment, the electronic device uses a preliminary water detection method (such as Figure 3The electronic device detects the presence of water, but at a 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 track water 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 the touch point caused by the water flowing to the edge area.
[0175] For another example, when the electronic device detects a touch operation in the first area at the first moment, and detects the second area and the third area that are touched at the second moment, if the third area is within the preset range of the historical touch track (such as close to the historical touch track), the electronic device can consider that the third area is caused by track water. Through this process, the electronic device can accurately identify the track water in the first touch area, and avoid the problem of misidentification and misresponse of touch points caused by track water by suppressing the touch point reporting within the preset range of the historical touch track.
[0176] In some embodiments of the present application, in order to avoid problems such as ineffective clicking, ineffective sliding, clicking jitter, sliding jitter, sliding rebound, etc. 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.
[0177] For example, Fig.11 As shown in FIG. 1 , when the user slides his finger on the screen with water, the finger and the water are connected to form an area, and this area includes points corresponding to multiple peak values of the absolute value of the capacitance signal intensity (such as Fig.11 The capacitance signal strengths are 1948nF and 2077nF respectively), some of which are caused by finger touch (such as Fig.11 The capacitance signal strength is 2077nF), and some capacitance signal strength absolute value peaks are caused by water (such as Fig.11 According to the conventional touch operation recognition technology, the electronic device will make a subsequent response to the predicted point of the peak area where each peak point is located, which will cause the problem of poor sliding.
[0178] For example, Fig.12As shown in FIG. 1 , when the user lifts his finger after tapping the wet screen, since lifting is a process, when the finger is still attached 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 significantly (e.g. Fig.12 As shown in the figure, there are two peak areas of capacitance signal absolute value intensity, namely the area where the point with capacitance signal intensity of 1585nF is located and the area where the point with capacitance signal intensity of 1623nF is located. 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 problem of ineffective clicks.
[0179] For example, Fig.13 As shown in FIG. 1 , when a user slides a finger on a screen covered 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 accurately recognize the user's touch position when performing touch position recognition. For example, the recognized touch position may be Figure 3 The capacitance signal strength shown jumps between multiple prediction points of 1415nF, 1447nF, 1698nF and 1651nF. The back-and-forth jumping of the prediction points may cause sliding jitter problems.
[0180] To better optimize the accuracy of touch operation recognition, as an example, please refer to Fig.14 , Fig.14 FIG. 2 shows another method flow chart for identifying a touch operation provided by an embodiment of the present application. Fig.14 As shown, after executing S301-S303 and S601, if the electronic device does not recognize that there is track water in the first touch area, the electronic device may further execute S1401-S1402:
[0181] S1401: The electronic device optimizes the first touch information according to the first historical touch information.
[0182] 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 the touch operation based on the filtered forecast points.
[0183] As an example, taking the historical touch operation as a single-finger sliding operation as an example, 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) that the sliding operation may affect in the future based on the historical sliding direction and historical sliding speed of the sliding operation, and filter the predicted points in the first touch information according to the predicted position.
[0184] 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.
[0185] For example, electronic devices can Fig.15 The predicted point shown is within the preset range of the predicted position (such as near) as the touch point, and the Fig.15 The predicted point outside the preset range of the predicted position is used as the touch point. Based on this, the problem of poor sliding can be solved.
[0186] For example, electronic devices can Fig.16 The predicted point within the preset range of the predicted position (such as nearby) is shown as the touch point, and the Fig.16 The predicted point outside the preset range of the predicted position is used as the touch point. Based on this, the problem of sliding jitter can be solved.
[0187] 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 forecast point screening based on the comparison result, so that the electronic device can determine the touch point and touch operation based on the screened forecast point.
[0188] Taking the example that the first touch area includes 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.
[0189] Taking the example that the first touch area includes 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 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 predefined conditions.
[0190] As an example, take the historical touch operation as a click operation, such as Fig.17As shown, the electronic device can compare 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. If the capacitance signal strength with the largest absolute value in the first area decreases by more than a defined threshold than the capacitance signal strength with the largest absolute value in the touch area corresponding to the first historical touch information, and the sum of negative signals in the first area increases by more than a given threshold than the sum of negative signals in the touch area corresponding to the first historical touch information and / or the number of negative signals in the first area increases by more than a given threshold than the number of negative signals in the touch area corresponding to the first historical touch information, it is determined that the finger is leaving the touch screen when the first touch information is detected, and the electronic device can give up reporting the forecast point of the first area and continue to report the forecast point of the touch area corresponding to the first historical touch information. Based on this, the problem of ineffective clicks can be solved.
[0191] Alternatively, in some embodiments of the present application, for example, in the case where the capacitance signal strength caused by water is usually positive or mostly positive, the electronic device can compare 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. If the capacitance signal strength with the largest absolute value in the first area decreases by more than a defined threshold than the capacitance signal strength with the largest absolute value in the touch area corresponding to the first historical touch information, and the sum of positive signals in the first area increases by more than a given threshold than the sum of positive signals in the touch area corresponding to the first historical touch information and / or the number of positive signals in the first area increases by more than a given threshold than the number of positive signals in the touch area corresponding to the first historical touch information, it is determined that the finger is leaving the touch screen when the first touch information is detected, and the electronic device can give up reporting the forecast point of the first area and continue to report the forecast point of the touch area corresponding to the first historical touch information. Based on this, the problem of ineffective clicks can be solved.
[0192] In some embodiments of the present application, for example, when the most recent historical touch operation is a sliding operation, the electronic device may also adjust the preset capacitance signal strength threshold when the connected domain is traversed (i.e., when determining the first touch area) to reduce the problem of touch point jumps 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 follows: Fig.18 As shown in FIG. 1 , the connected area where the prediction point of the capacitance signal strength of 1447 nF is located is located. Based on this, the problem of sliding jitter can be solved.
[0193] S1402: The electronic device reports touch points according to the optimized first touch information.
[0194] Understandably, based on Fig.14The method for identifying touch operations shown is that the electronic device can optimize the first touch information based on the first historical touch information to avoid problems such as ineffective clicking, ineffective sliding, clicking jitter, sliding jitter, sliding rebound, etc. 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 identification.
[0195] For example, in the case where 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, thereby solving the problem of poor sliding.
[0196] 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, based on which the problem of ineffective clicks can be solved.
[0197] For another example, when 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.
[0198] It should be understood that the various schemes of the embodiments of the present application can be used in reasonable combination, and the explanations or descriptions of the various terms appearing in the embodiments can be mutually referenced or explained in the various embodiments, without limitation. For example, S601-S602A / S602B of the embodiments of the present application can also be executed independently of S301-S303; for another example, S1401-S1402 of the embodiments of the present application can also be executed independently of S301-S303 and SS601-S602A / S602B; for another example, S601-S602A / S602B and S1401-S1402 of the embodiments of the present application can also be executed independently of S301-S303.
[0199] 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.
[0200] It is understandable that, in order to implement the functions of any of the above-mentioned embodiments, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example 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.
[0201] 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 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 function division. There may be other division methods in actual implementation.
[0202] It should also be understood that each module in the electronic device can be implemented in software and / or hardware form, and there is no specific limitation on this. In other words, the device (such as a terminal device or a proxy server) is presented in the form of a functional module. The "module" here can refer to a specific application integrated circuit ASIC, a circuit, a processor and a memory that executes one or more software or firmware programs, an integrated logic circuit, and / or other devices that can provide the above functions.
[0203] 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 may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may 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 may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may 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)), etc.
[0204] 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 read-only memory (EEPROM) memory, register, 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 a component 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.
[0205] 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 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 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; The second touch area is determined to be a water touch area according to the capacitance signal strength of the second touch area, and the predicted point of the second touch area is not reported.
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
Cited By
Method for identifying touch-control operation, and electronic device
WO2025044721A1