Touch data processing method and electronic equipment

By determining whether a second touch object is within the area of ​​a first touch object in an electronic device and comparing the feature differences, false touch objects can be accurately detected. This solves the problem of false touch operations caused by water stains or wet hands, ensuring the accuracy of action execution and user experience.

CN121008701APending Publication Date: 2025-11-25HONOR DEVICE CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202410622575.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2025-11-25

AI Technical Summary

Technical Problem

During user operation, electronic devices may detect false touch operations due to interference factors such as water stains or wet hands on the touch screen, leading to erroneous actions and affecting the user experience.

Method used

By determining whether the second touch object is within the touch area of ​​the first touch object and comparing the feature differences between the two, it is determined whether the second touch object is a pseudo touch object, thereby accurately detecting abnormal touch data and avoiding erroneous actions.

Benefits of technology

It effectively solves the problem of "ghost hand" (a type of hand gesture), ensuring the accuracy of action execution and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121008701A_ABST
    Figure CN121008701A_ABST
Patent Text Reader

Abstract

The invention provides a touch data processing method and electronic equipment, and relates to the technical field of terminals. After the electronic equipment receives touch operation input by a finger 1 and a finger 2, under the condition that the finger 2 appears in an area just in contact with the finger 1, it is indicated that the finger 2 is possibly a pseudo touch object, the electronic equipment determines a characteristic value 1 corresponding to the finger 1 based on touch data of the finger 1, and determines a characteristic value 2 corresponding to the finger 2 based on touch data of the finger 2. Afterwards, under the condition that the difference value between the feature value 1 and the feature value 2 is larger than the preset feature difference value, it is indicated that the difference between the feature value 1 and the feature value 2 is large, namely, it is indicated that the difference between the touch data of the finger 1 and the touch data of the finger 2 is large, and the finger 1 is not the pseudo touch object, so that the electronic device can determine that the finger 2 is the pseudo touch object, and the user experience is improved. Therefore, the touch data of the finger 2 is restrained, actions are executed based on the touch data of the finger 1, mistaken execution of the actions is avoided, and the ghost hand problem is effectively solved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of terminal, and in particular, to a touch data processing method and electronic device. BACKGROUND

[0002] At present, most electronic devices have touch screens. A user can input a touch operation (such as clicking, sliding, etc.) on the touch screen through a touch object (such as a finger of the user), and the electronic device determines corresponding touch data after receiving the touch operation, so as to execute a corresponding action based on the touch data.

[0003] However, during the operation of the user, due to interference factors such as water stains on the touch screen and wet hand operation of the user, the electronic device may detect a false touch operation, so that the touch data determined by the electronic device is incorrect, and thus the action is misexecuted, that is, the ghost hand problem occurs, which brings a poor experience to the user. SUMMARY

[0004] Embodiments of the present application provide a touch data processing method and electronic device, which are used to accurately detect abnormal touch data and effectively solve the ghost hand problem.

[0005] To achieve the above object, embodiments of the present application adopt the following technical solutions:

[0006] In a first aspect, a touch data processing method applied to an electronic device is provided. The electronic device receives a touch operation of a first touch object and a second touch object at a first time, that is, detects first touch data of the first touch object at the first time and second touch data of the second touch object at the first time. The first touch object has input a touch operation before the first time, and the second touch object has not input a touch operation before the first time, that is, the first touch object is a touch object that has appeared before, and the second touch object is a newly appearing touch object.

[0007] Then, the electronic device can determine whether the second touch object is in a first touch area corresponding to the first touch object, and whether a difference between a first feature corresponding to the first touch object and a second feature corresponding to the second touch object is greater than a preset feature difference. The first feature represents a feature of the touch data of the first touch object, and the second feature represents a feature of the touch data of the second touch object.

[0008] In a case where the second touch object is in the first touch area corresponding to the first touch object, and the difference between the first feature and the second feature is greater than the preset feature difference, the electronic device can execute an action based on the first touch data of the first touch object when the first touch object executes the touch operation at the first time.

[0009] In the present application, the electronic device receives a touch operation input by a first touch object and a second touch object at a first time, the first touch object is a touch object that has appeared before, and the second touch object is a newly appearing touch object. Therefore, the appearance of the second touch object can be caused by the touch operation input by the first touch object, and there is a possibility that the second touch object is a pseudo touch object. Generally, when multiple real touch objects input a touch operation at the same time, a certain touch object does not appear in the area where other touch objects have just contacted, and the difference between the characteristics of the touch data of multiple touch objects is small. Based on this, when the electronic device determines that the second touch object is in the first touch area corresponding to the first touch object, and the difference between the first characteristic and the second characteristic is greater than the preset characteristic difference, it indicates that the second touch object appears in the area where the first touch object has just contacted, and the difference between the touch data of the second touch object and the touch data of the first touch object is large. The electronic device can determine that the second touch object is a pseudo touch object, so the second touch data of the second touch object is abnormal, accurate detection of abnormal touch data is realized, so that the electronic device can not process the second touch data, but execute a corresponding action based on the first touch data of the first touch object, avoiding the misexecution of the action, thereby effectively solving the ghost hand problem and ensuring the user experience.

[0010] Optionally, the electronic device can report the first touch data to the target application to execute a corresponding action through the target application.

[0011] In a possible design, when the second touch object is not in the first touch area, it indicates that the second touch object does not appear in the area where the first touch object has just contacted, and the possibility that the appearance of the second touch object is caused by the touch operation input by the first touch object is small, that is, the possibility that the second touch object is a pseudo touch object is small. Therefore, the electronic device can normally process the second touch data of the second touch object and execute an action based on the second touch data and the first touch data, ensuring the correct response of the touch operation.

[0012] Alternatively, when the difference between the first characteristic and the second characteristic is less than or equal to the preset characteristic difference, it indicates that the difference between the touch data of the second touch object and the touch data of the first touch object is small, and the possibility that the second touch object is a pseudo touch object is small. Therefore, the electronic device can execute an action based on the second touch data and the first touch data, ensuring the correct response of the touch operation.

[0013] In one possible design, when the second touch object is located within the first touch area corresponding to the first touch object, and the difference between the first feature and the second feature is greater than a preset feature difference, that is, when it is determined that the second touch object is a pseudo-touch object, the electronic device continues to receive touch operations input by the first touch object and the second touch object at a second time. The second time is after the first time.

[0014] The electronic device can determine whether preset conditions are met to further determine whether the second touch object is a spurious touch object. When the preset conditions are met, it indicates that the second touch object is not a spurious touch object. The electronic device can then execute an action based on the third touch data of the second touch object during the second touch operation and the fourth touch data of the first touch object during the second touch operation. This avoids continuous false detection of spurious touch objects, thereby preventing continuous false detection of touch data and achieving correct response to touch operations.

[0015] If the electronic device does not meet the preset conditions, indicating that the second touch object is still determined to be a fake touch object, the electronic device can then perform an action based on the fourth touch data of the first touch object at the second time. Based on this, accurate detection of abnormal touch data is achieved, ensuring the accuracy of action execution.

[0016] The aforementioned preset conditions include that the distance (i.e., the movement distance) between the touch position of the second touch object at the second time and the touch position of the second touch object at the first time is greater than a first preset distance. Generally speaking, a fake touch object will not move; therefore, the electronic device can determine whether the second touch object is a fake touch object based on the movement distance of the second touch object.

[0017] Optionally, the preset conditions may also include that the third touch data is greater than or equal to the first preset capacitance value. Generally speaking, the touch data, i.e., the capacitance value, of a spoofed touch object is relatively small. Therefore, the electronic device can determine whether the third touch data is abnormal by judging whether the third touch data is greater than or equal to the first preset capacitance value, thereby determining whether the second touch object is a spoofed touch object.

[0018] Specifically, if all third touch data are greater than or equal to the first preset capacitance value, the electronic device can determine that the third touch data is greater than or equal to the first preset capacitance value.

[0019] Alternatively, if the number of third touch data that is greater than or equal to the first preset capacitance value is greater than or equal to a preset number, the electronic device can determine that the third touch data is greater than the first preset capacitance value.

[0020] In one possible design approach, when the second touch object is located within the first touch area corresponding to the first touch object, and the difference between the first feature and the second feature is greater than a preset feature difference, the electronic device can identify the second touch object as a pseudo touch object.

[0021] Accordingly, after receiving touch operations from the first and second touch objects at a second time, the electronic device can first determine whether the second and first touch objects are pseudo-touch objects. If the second touch object is determined to be a pseudo-touch object, the electronic device can continue to determine whether preset conditions are met. If the first touch object is determined not to be a pseudo-touch object, the electronic device can process the touch data of the first touch object normally.

[0022] Based on this, after receiving touch data from the second touch object, the electronic device can first determine whether the second touch object has been identified as a fake touch object. If the second touch object has been identified as a fake touch object, it means that the probability of the second touch object being a fake touch object is very high. Therefore, the electronic device can continue to determine whether the second touch object is a fake touch object through preset conditions, that is, to determine whether the second touch object has been mistakenly detected as a fake touch object, ensuring the rapid and accurate detection of fake touch objects.

[0023] In one possible design approach, the process of identifying the second touch object as a pseudo-touch object may include: the electronic device may set a suppression flag for the second touch object, or set the object flag corresponding to the second touch object as a first flag. This first flag indicates that the second touch object is a pseudo-touch object.

[0024] In one possible design, if the electronic device meets the aforementioned preset conditions, indicating that the second touch object is not a pseudo-touch object, the electronic device removes the suppression flag of the second touch object, or updates the pseudo-second flag, which indicates that the second touch object is not a pseudo-touch object, by updating the object flag corresponding to the second touch object. Based on this, the electronic device can directly and normally process the touch data detected by the second touch object in the next moment, without needing to determine whether the second touch object meets the preset conditions.

[0025] In one possible design approach, if the second touch object is determined to be a pseudo touch object, after receiving touch operations from the first touch object and the second touch object at a second time, the electronic device can directly suppress the touch data of the second touch object at the second time, and instead process the touch data of the first touch object at the second time, that is, based on the fourth touch data when the first touch object performs a touch operation at the second time, perform an action to achieve rapid suppression of abnormal touch data.

[0026] In one possible design, the first touch area can represent the area where the first touch object contacts the display screen of the electronic device during a target time, which includes a first time.

[0027] Accordingly, the process by which an electronic device determines whether a second touch object is within a first touch area may include: the electronic device can determine the area where the second touch object contacts the display screen at a first moment, thereby obtaining the second touch area.

[0028] If the second touch area corresponding to the second touch object overlaps with the first touch area, it is determined that the second touch object is within the first touch area. If the second touch area does not overlap with the first touch area, it is determined that the second touch object is not within the first touch area. In this application, whether the second touch object is within the area where the first touch object just touched is determined by whether the touch area of ​​the second touch object overlaps with the touch area of ​​the first touch object.

[0029] Optionally, the target time may also include the time prior to the first time, and the first touch area corresponding to the first touch object may be obtained by updating the area touched by the first touch object during the previous time. Specifically, the electronic device may update the third touch area corresponding to the first touch object based on the area where the first touch object touched the display screen during the first time, thus obtaining the first touch area. This third touch area is obtained based on the area where the first touch object touched the display screen during the time prior to the first time.

[0030] In one possible design, the aforementioned first touch data is a first capacitance value, which represents the capacitance value at a node in the area where the first touch object contacts the display screen at the first moment.

[0031] Accordingly, the process of updating the third touch area described above may include: for each first capacitance value, if there is a target node in the third touch area that is at the same node location as the first capacitance value, the electronic device can update the marker corresponding to the target node to the marker corresponding to the node where the first capacitance value is located. The marker corresponding to the node where the first capacitance value is located is determined based on the identifier of the first touch object and the frame number.

[0032] If there is no target node in the third touch area that is at the same location as the node where the first capacitance value is located, the electronic device can use the node where the first capacitance value is located as the new node of the third touch area.

[0033] In another possible design, the first touch area represents a location area where the distance between the first touch object and the touch position at the first moment is less than or equal to a second preset distance.

[0034] Accordingly, the process by which an electronic device determines whether a second touch object is within the first touch area may include:

[0035] If the second touch object is located within the first touch area at a given moment, then the second touch object is determined to be within the first touch area.

[0036] If the second touch object is not within the first touch area at the first moment, it is determined that the second touch object is not within the first touch area.

[0037] Based on this, electronic devices can determine whether a second touch object appears in the area where the first touch object just touched by the touch location.

[0038] In a second aspect, an electronic device is provided, the electronic device including a memory, a display screen and one or more processors; the memory, the display screen and the processors are coupled; the memory is used to store computer program code, the computer program code including computer instructions; the display screen is used to receive touch operations; when the processor executes the computer instructions, the electronic device performs the touch data processing method as described above.

[0039] The aforementioned display screen refers to a touch screen (or touchscreen).

[0040] Thirdly, a computer-readable storage medium is provided, including computer instructions that, when executed on an electronic device, enable the computer to perform the touch data processing method as described above.

[0041] Fourthly, a computer program product is provided, comprising a computer program that, when run on an electronic device, causes the electronic device to perform the touch data processing method as described above.

[0042] The technical effects of any of the design methods in the second to fourth aspects can be found in the technical effects of different design methods in the first aspect, and will not be repeated here. Attached Figure Description

[0043] Figure 1 A schematic diagram of a touch process provided in an embodiment of this application. Figure 1 ;

[0044] Figure 2 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;

[0045] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0046] Figure 4 A flowchart illustrating a touch data processing method provided in this application embodiment. Figure 1 ;

[0047] Figure 5A A schematic diagram of a touch process provided in an embodiment of this application. Figure 2 ;

[0048] Figure 5B A schematic diagram of a touch process provided in an embodiment of this application. Figure 3 ;

[0049] Figure 5C A schematic diagram of a touch process provided in an embodiment of this application. Figure 4 ;

[0050] Figure 5D Schematic diagram five illustrating a touch process provided in an embodiment of this application;

[0051] Figure 6 A schematic diagram of a touch process provided in an embodiment of this application. Figure 6 ;

[0052] Figure 7A A schematic diagram seven illustrating a touch process provided for an embodiment of this application;

[0053] Figure 7B A schematic diagram of a touch process provided in an embodiment of this application. Figure 8 ;

[0054] Figure 7C A schematic diagram of a touch process provided in an embodiment of this application. Figure 9 ;

[0055] Figure 8 A schematic diagram of a marker shift provided in an embodiment of this application;

[0056] Figure 9 A schematic diagram illustrating a travel distance provided in an embodiment of this application;

[0057] Figure 10 A flowchart illustrating a touch data processing method provided in this application embodiment. Figure 2 . Detailed Implementation

[0058] To facilitate a clear description of the technical solutions in the embodiments of this application, the terms "exemplary" or "for example" are used in the embodiments of this application to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of terms such as "exemplary" or "for example" is intended to present related concepts in a specific manner. In the embodiments of this application, "at least one" refers to one or more, and "more" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple. In the embodiments of this application, terms such as "first," "second," "1," "2," and "3" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, features defined with "first" or "second" can explicitly or implicitly include one or more of that feature. In the description of this embodiment, unless otherwise stated, "multiple" means two or more.

[0059] In some embodiments, while a user is using an electronic device (such as a mobile phone), the user can input corresponding touch operations (such as swiping, clicking, etc.) on the touchscreen of the electronic device using a touch object such as a finger or stylus. The mobile phone responds to the user's touch operation, determines the touch data, and executes the action corresponding to the touch data. However, during the input process, due to smudges on the touchscreen (such as dirt, ink, etc.), the touchscreen may become contaminated. Figure 1 Interference factors such as water stains, wet hands touching the touchscreen, and interference from co-channel signals may cause "ghost hand" issues near the user's fingers. This means that the user did not actually input any touch operation nearby, but the phone mistakenly thought that the user had input a touch operation, resulting in incorrect touch data determined by the electronic device, thus causing the action to be executed incorrectly and resulting in a poor user experience.

[0060] For example, at time 1, the user's finger 1 slides down on the phone's touchscreen. The phone determines the touch data of finger 1 and executes the corresponding action based on that data. At the next time, as described above... Figure 1As shown, the user's finger 1 continues to slide downwards. However, due to water stains on the touchscreen, the phone mistakenly detects a touch operation from finger 2 during this downward slide, obtaining touch data for both finger 1 and finger 2. Subsequently, based on this touch data, the phone executes action 2. However, in reality, only finger 1 slides downwards; the phone should be executing action 1. Because of this misjudgment of the touch data, the actual action executed (action 2) differs from the expected action (action 1), resulting in erroneous execution and impacting the user experience.

[0061] Therefore, to address the aforementioned problems, this application provides a touch data processing method. Considering that regardless of whether it's a click or a swipe, the area touched by one finger generally doesn't immediately reveal another finger, and that when two fingers simultaneously input touch operations on the touchscreen, the differences in their actions are generally small, the electronic device receives touch operations input by the user's finger 1 and finger 2. In response to these touch operations, the electronic device determines the first touch data of finger 1 in the current frame and the second touch data of finger 2 in the current frame. Specifically, in the previous moment, i.e., the previous frame, the electronic device also detected touch data for finger 1, but not for finger 2. It should be understood that in this application, simultaneous touch operation by two fingers on the touchscreen refers to the two fingers inputting touch operations simultaneously at a certain moment (or a certain frame), and does not limit the start time of the two fingers' input to the same moment.

[0062] Since finger 2 is a newly encountered touch object, the electronic device needs to determine whether there are any anomalies in the touch data of finger 2. The electronic device can determine whether the second touch data of finger 2 is within the latest contact area 1 corresponding to finger 1, in order to determine whether finger 2 appears in the area that finger 1 just touched. Here, the latest contact area 1 represents the area where the touch data of finger 1 is located in the current frame and previous frames, or the latest contact area 1 represents the area where the distance between the touch position corresponding to the first touch data in the current frame and the touch position is within a preset distance.

[0063] If the second touch data of finger 2 is within the latest contact area 1 corresponding to finger 1, it indicates that finger 2 is in the area just touched by finger 1. The second touch data of finger 2 may be abnormal. Therefore, the electronic device determines the feature value 1 corresponding to finger 1 based on the first touch data. And the electronic device determines the feature value 2 corresponding to finger 2 based on the second touch data. Feature value 1 reflects the characteristics of the touch data of finger 1, and feature value 2 reflects the characteristics of the touch data of finger 2.

[0064] Next, the electronic device determines whether the difference between feature value 1 and feature value 2 is too large. If the difference is too large, it indicates that the difference between the second touch data of finger 2 and the first touch data of finger 1 is too large. The electronic device can then determine that the second touch data of finger 2 is abnormal, thus achieving accurate detection of abnormal touch data. As a result, the electronic device can execute the corresponding action based on the first touch data, avoiding the mis-execution of actions and effectively solving the ghost hand problem.

[0065] If the difference is small, it indicates that the difference between the second touch data of finger 2 and the first touch data of finger 1 is small. In this case, the electronic device can determine that the second touch data of finger 2 is normal, so the electronic device can perform the corresponding action based on the first touch data and the second touch data to ensure the accuracy of the action execution.

[0066] Furthermore, if the second touch data of finger 2 is not within the latest contact area 1 corresponding to finger 1, it indicates that finger 2 is not in the area just touched by finger 1. The second touch data of finger 2 is less likely to be abnormal data caused by the touch operation input by finger 1. Therefore, the electronic device can perform the corresponding action based on the first touch data and the second touch data to ensure the accuracy of the action execution and thus improve user satisfaction.

[0067] For example, the aforementioned electronic devices may be mobile phones, tablets, desktops, laptops, handheld computers, notebook computers, ultra-mobile personal computers (UMPCs), netbooks, as well as wearable devices, personal digital assistants (PDAs), and other electronic devices with touch screens. This application embodiment does not impose any special restrictions on the specific form of the electronic device.

[0068] Figure 2 A schematic diagram of the structure of the electronic device 100 is shown.

[0069] Electronic device 100 may include processor 110, external memory interface 120, internal memory 121, universal serial bus (USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (SIM) card interface 195, etc.

[0070] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0071] Processor 110 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.

[0072] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.

[0073] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0074] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0075] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0076] The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the electronic device 100.

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

[0078] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.

[0079] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1.

[0080] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as Wi-Fi), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies.

[0081] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with networks and other devices through wireless communication technology.

[0082] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0083] The display screen 194 is used to display images, videos, etc. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.

[0084] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0085] The external storage 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 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0086] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0087] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0088] The sensor module 180 may include pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors (or touch control sensors), ambient light sensors, bone conduction sensors, etc.

[0089] Optionally, the aforementioned display screen 194 may employ a touch sensor, enabling the display screen to respond to user touch input. In this application, the display screen may also be described as a touch screen or a touch panel. Users can input touch operations such as clicking and swiping on the touch screen using a touch object (such as a finger or stylus).

[0090] Buttons 190 include a power button, volume buttons, etc. Motor 191 can generate vibration feedback. Indicator 192 can be an indicator light, used to indicate charging status, battery level changes, and also to indicate messages, missed calls, notifications, etc.

[0091] The SIM card interface 195 is used to connect a SIM card. The electronic device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1.

[0092] For example, the software system of the aforementioned electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This embodiment of the invention uses the layered architecture Android system as an example to illustrate the software structure of the electronic device 100.

[0093] Figure 3This is a structural block diagram of the electronic device 100 according to an embodiment of the present invention.

[0094] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.

[0095] The application layer can include a series of application packages.

[0096] like Figure 3 As shown, the application package can include applications such as video, browser, call, SMS, and short video applications.

[0097] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0098] like Figure 3 As shown, the application framework layer may include a data acquisition module, a regional statistics module, a relationship determination module, and a suppression reporting module.

[0099] The data acquisition module is used to acquire touch data corresponding to touch operations input by touch objects (such as fingers).

[0100] The area statistics module is used to determine the contact area corresponding to the touch object based on the touch data of the touch object.

[0101] The relationship determination module is used to determine the data detection result (or described as the data detection result corresponding to the touch object) based on the contact area corresponding to the touch object and the touch data of the touch object. The data detection result indicates whether the touch data of the touch object is normal, that is, to determine normal touch data and abnormal touch data.

[0102] The suppression reporting module is used to implement suppression reporting strategies for abnormal touch data, while normal touch data is reported normally, such as to the target application, so that the target application can perform corresponding actions based on the touch data. For example, if the target application is a short video application and the user's touch action is to swipe up, the short video application will switch to the next short video.

[0103] The Android Runtime consists of core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.

[0104] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0105] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0106] A system library can include multiple functional modules. For example, a surface manager. Of course, a system library can also include other functional modules, such as media libraries, 3D graphics processing libraries (e.g., OpenGLES), 2D graphics engines (e.g., SGL), etc.

[0107] The kernel layer is the layer between hardware and software. The kernel layer can include sensor drivers. Of course, it can also include other drivers, such as display drivers, camera drivers, audio drivers, etc.

[0108] In some embodiments, the software layer and hardware layer of an electronic device (such as...) Figure 3 Communication is possible between the software and hardware layers. Taking the above touch data reporting process as an example, the communication process between the software and hardware layers is as follows: First, the touch sensor can execute step a: after acquiring the touch data of the touch object, it can send the touch data to the data acquisition module through the sensor driver. Then, after receiving the touch data of the touch object, the data acquisition module can execute step b: send the touch data of the touch object to the area statistics module. Next, the area statistics module can execute step c: based on the received touch data of the touch object, determine the contact area corresponding to the touch object (or describe it as contact area information), and send the contact area to the relationship determination module.

[0109] Next, the relationship determination module can execute step d: based on the contact area and the touch data of the touched object, determine the normal touch data and abnormal touch data in the touch data of the touched object, and send them to the suppression reporting module. Then, the suppression reporting module can execute step e: report the normal touch data to the browser application, but not the abnormal touch data, thereby effectively solving the ghost hand problem.

[0110] The above briefly introduced how to solve the "ghost hand" problem during touch operation. The following will detail the process. Electronic devices can acquire touch data collected by their touch sensors at a preset refresh rate. For example, with a preset refresh rate of 100Hz, the electronic device can acquire 100 frames of touch data from the touch sensor within one second. Furthermore, the touch sensor has the ability to identify different touch objects. When different touch objects simultaneously input touch operations on the touchscreen, the touch sensor can separately collect the touch data of each object in the current frame. For instance, if a user's index and middle fingers simultaneously input touch operations, the touch sensor can collect the touch data of the index finger and the middle finger in the current frame. In short, the touch sensor has the ability to distinguish between different touch objects.

[0111] Based on this, during the touch operation of touch object 1 on the touchscreen of the electronic device, if touch data of a new touch object (such as touch object 2) appears in the current frame, the electronic device can use frame data from the most recent period, that is, the touch data of touch object 1 in the current frame (or alternatively described as the touch data of touch object 1 in the current frame), combined with the touch data of touch object 1 in previous frames, to determine whether the touch data of touch object 2 is abnormal data. This allows for accurate identification of abnormal touch data, thereby determining whether touch object 2 is a fake touch object. If touch object 2 is a fake touch object, the electronic device suppresses the touch data of touch object 2 and performs actions only based on touch object 1, avoiding erroneous action execution and effectively solving the ghost hand problem, thus ensuring a good user experience.

[0112] Optionally, the number of touch objects 1 can be one or more, and the number of touch objects 2 can also be one or more. The previous frame refers to one or more frames preceding the current frame. The following example illustrates the process of solving the "ghost hand" problem, assuming that both touch object 1 and touch object 2 are a finger, the electronic device is a mobile phone, and the previous frame is the frame preceding the current frame (i.e., the most recent period is 20ms). For example, as shown... Figure 4 As shown, the process may include the following steps:

[0113] S201, The mobile phone receives the user's finger 1's touch operation on the touch screen.

[0114] For example, the touch operations described above may include tapping, swiping, and other similar actions. For instance, such as... Figure 5A As shown in (a), the user's index finger slides down on the touch screen. Here, the index finger can refer to finger 1, and sliding down can refer to a touch operation.

[0115] S202, In response to the touch operation of finger 1, the mobile phone determines the touch data 1 of finger 1 on frame 1.

[0116] The number of touch data 1s is one or more, and one touch data 1 refers to one capacitance value.

[0117] Frame 1 can include multiple nodes, each corresponding to a capacitance value. Generally, when a user inputs a touch operation on the touchscreen, the capacitance value corresponding to the nodes in the area touched by the user is greater than 0, while the capacitance value corresponding to the nodes in the area not touched by the user is equal to 0. Continuing with the example above, as the user's index finger begins to slide downwards on the touchscreen, the phone begins to acquire the touch data of the index finger in the current frame (here referring to frame 1), thereby obtaining the touch data 1 of the index finger in frame 1 (e.g., ...). Figure 5A The values ​​greater than 0 shown in (b) are touch data 1). Additionally, this... Figure 5A In (b), a square represents a node. For a node in the area touched by the index finger, the capacitance value of that node is greater than 0.

[0118] It should be noted that the above method of distinguishing whether a node is touched by the user by whether the capacitance value corresponding to the node is greater than 0 is only one example. Alternatively, the user can distinguish whether a node is touched by the user by whether the capacitance value corresponding to the node is greater than other values. In general, the mobile phone can distinguish whether a node is touched by the user by judging whether the capacitance value corresponding to the node is greater than a preset capacitance value.

[0119] S203, The mobile phone executes the corresponding action based on the touch data 1.

[0120] In this embodiment, since the mobile phone only detects that finger 1 inputs a touch operation, and does not detect touch data from multiple fingers, and the touch data 1 of finger 1 is not caused by other fingers inputting touch operations, there is no need to determine whether the touch data 1 is abnormal touch data. The mobile phone can directly execute the action corresponding to the touch data 1 to ensure the normal response of the touch operation.

[0121] S204. According to the preset marking rules, the mobile phone marks the nodes where each touch data 1 is located on frame 1 to obtain the latest contact area 1 corresponding to finger 1.

[0122] In this embodiment, to facilitate subsequent determination of whether the touch data of other fingers is abnormal using the touch data of finger 1, the touch data of finger 1 can be marked. Specifically, for each node containing touch data 1, the phone marks the node containing the touch data 1 according to a preset marking rule, obtaining the mark corresponding to the node containing the touch data 1. The marked node forms the contact area corresponding to finger 1, which is the latest contact area 1. Optionally, marking the node containing touch data 1 can also be described as marking touch data 1. The contact area corresponding to finger 1 can be understood as the data area corresponding to finger 1.

[0123] The aforementioned preset marking rule refers to setting the highest digit of the marker corresponding to a node as the ID of finger 1, and the units digit of the marker as the frame number of that ID. All nodes in the latest contact area 1 have the same marker. For example, the ID of finger 1 (e.g., index finger) is 1, and the marker corresponding to the node containing touch data 1 of finger 1 is 11, such as... Figure 5A As shown in (c).

[0124] It is understandable that marking the node where the touch data 1 is located to obtain the contact area 1 corresponding to finger 1 is only one possible operation for the mobile phone to determine the latest contact area 1 corresponding to finger 1 based on the touch data 1. The mobile phone can also use other methods to determine the contact area 1 corresponding to finger 1, such as directly taking the node where the touch data 1 is located as the contact area 1 corresponding to finger 1, without marking the node where the touch data 1 is located.

[0125] In some embodiments, the mobile phone can save the latest contact area 1 corresponding to the finger 1 and the touch data (such as the touch data 1 mentioned above) corresponding to each node in the latest contact area 1 to the buffer.

[0126] S205, The mobile phone receives touch operations from finger 1 and finger 2 on the touch screen.

[0127] S206. In response to the touch operation of finger 1 and finger 2, the mobile phone determines the touch data 2 of finger 1 on frame 2 and the touch data 3 of finger 2 on frame 2.

[0128] In this embodiment of the application, after S201 described above, the user's finger 1 (or described as the first touch object) continues to slide downwards on the touchscreen (e.g., ...). Figure 5B As shown in (a), but due to interference factors, the mobile phone (such as the touch sensor on the phone) not only detects finger 1 operating on the touchscreen (such as...) Figure 5BAs shown in (b), it also detects that finger 2 (or described as a second touch object) is also operating on the touchscreen, obtaining touch data 2 of finger 1 in the current frame (replaced here by frame 2), and touch data 3 of finger 2 (as shown in (b)). Figure 5B (As shown in (c)). Optionally, frame 2 is a frame following frame 1, such as frame 2 being the next frame after frame 1. Additionally, frame 2 can represent a frame at the first moment (or be described as a data frame). Frame 1 is a frame prior to the first moment. Accordingly, S205 can be replaced by describing the mobile phone receiving a touch operation input by finger 1 and finger 2 at the first moment. Touch data 2 of finger 1 on frame 2 can be replaced by describing touch data 2 of finger 1 at the first moment. Touch data 3 of finger 2 on frame 2 can be replaced by describing touch data 3 of finger 2 at the first moment.

[0129] For the newly appearing finger 2, since the phone is unsure whether the touch operation of finger 2 is actually input by the user, the phone needs to determine the authenticity of finger 2 to avoid touch operation response errors caused by discrepancies between the user's detected touch operation and the actual touch operation. The process of determining the authenticity of finger 2 will be described below.

[0130] S207. According to the preset marking rules, the mobile phone marks the node where the touch data 2 of finger 1 is located on frame 2, and updates the latest contact area 1 of finger 1 according to the marked node.

[0131] The process by which the mobile phone marks the node containing the touch data 2 of finger 1 on frame 2 can refer to the process described above for marking the node containing touch data 1. For example, the mobile phone will mark the node containing the touch data 1 on frame 2. Figure 5B The nodes containing each touch data 2 shown in (c) are marked as 12 (e.g., Figure 5B (As shown in d). In addition, the marked nodes form the contact area of ​​finger 1 on frame 2.

[0132] In this embodiment of the application, the mobile phone can merge the contact area of ​​finger 1 on frame 2 with the latest contact area 1 corresponding to finger 1 (e.g., Figure 5C As shown), that is, merging the touch data 2 of finger 1 on frame 2 with the touch data 1 of finger 1 on frame 1 (as shown). Figure 5D As shown in the figure, the latest contact area 1 corresponding to finger 1 is updated.

[0133] For example, for ease of description, the node in the latest contact area 1 corresponding to finger 1 is described as node 1, and the node marked on frame 2 is described as node 2. In conjunction with the above... Figure 5CThe update process described above can be as follows: For each node 2, if there is a target node 1 in the latest contact area 1 corresponding to finger 1 that is at the same position as node 2, it indicates that the touch data 2 of finger 1 in frame 2 overlaps with the touch data 1 of finger 1 in frame 1. That is, the data area of ​​finger 1 in frame 2 overlaps with the data area of ​​finger 1 in frame 1. Then, the phone uses the marker corresponding to node 2 as the marker corresponding to the target node 1, so as to overwrite the existing marker with the latest marker. For example, as described above... Figure 5C Node 301 in the latest contact area 1 shown above is related to the above Figure 5C Since the positions of nodes 302 shown are the same, the marker corresponding to node 301 in the latest contact area 1 will be updated to 12 (e.g., ...). Figure 5C (The label corresponding to node 303 shown). Here, node 301 is a node 1, and node 302 is a node 2.

[0134] Furthermore, after the latest marker overwrites an existing marker, the latest touch data will also overwrite the original touch data. For example, the above... Figure 5C The touch data on node 303 is Figure 5B The 153 shown in (c) is no longer the original touch data (i.e., as shown in the image). Figure 5A (634 as shown in (b)).

[0135] If there is no target node 1 in the latest contact area 1 corresponding to finger 1 that is at the same position as node 2, then the mobile phone can use node 2 as a new node in the latest contact area 1 corresponding to finger 1. For example, the above Figure 5A The latest contact area 1 shown in (b) does not exist in the above-mentioned area. Figure 5D The node shown is in the same position as node 304; therefore, the mobile phone can use node 304 as the new node in the latest contact area 1. Here, node 304 is a node 2.

[0136] In simple terms, the above update process can be described as follows: the marked node 2 forms the contact area of ​​finger 1 on frame 2. The phone can merge the contact area of ​​finger 1 on frame 2 with the latest contact area 1 corresponding to finger 1. For each node in the overlapping part between the contact area and the latest contact area 1, the phone can update the mark corresponding to that node with the latest mark, that is, update it with the mark corresponding to the touch data of finger 1 on frame 2.

[0137] In some embodiments, the aforementioned latest contact area 1 can represent the area where finger 1 contacts the touchscreen of the mobile phone within a target frame, which includes frame 2. Here, the target frame can also be described as a target time, and the target frame including frame 2 can be described as the target time including a first time. Similarly, the latest contact area 2 described below can represent the area where finger 2 contacts the touchscreen of the mobile phone within frame 2.

[0138] Accordingly, the above update process is actually as follows: the phone updates the third touch area corresponding to finger 1 based on the area where finger 1 first contacts the touchscreen, thus obtaining the latest touch area 1. The third touch area is obtained based on the area where finger 1 contacted the touchscreen before the first contact. This target frame includes frames before frame 2, such as frame 1 above, meaning the target time includes the time before the first contact.

[0139] S208. According to the preset marking rules, the mobile phone marks the node where the touch data 3 of finger 2 is located on frame 2, and obtains the latest contact area 2 corresponding to finger 2.

[0140] The process of marking the node containing the touch data 3 (or described as the second touch data) of finger 2 on frame 2 to obtain the latest contact area 2 corresponding to finger 2 can be referenced to the process of marking the node containing the touch data 1 of finger 1 on frame 1 to obtain the latest contact area 1 corresponding to finger 1. It should be understood that frame 2 here is actually frame 1 for finger 2. For example, the node containing the touch data 3 of finger 2 on frame 2 can be marked as 21 (as described above). Figure 5B As shown in the figure, 2 in 21 represents the ID of finger 2, and 1 represents the frame 1 data of finger 2.

[0141] The above describes the process of marking the touch data of finger 1 and finger 2 in the second frame after obtaining them, and then using the marked nodes to determine the corresponding latest contact area. The following section will describe the process of using the latest contact areas of finger 1 and finger 2 to determine whether finger 2 is a pseudo-touch object.

[0142] S209. The mobile phone determines whether the latest contact area 2 corresponding to finger 2 overlaps with the latest contact area 1 corresponding to finger 1.

[0143] In this embodiment, if the latest contact area 2 (or described as the second touch area) corresponding to finger 2 does not overlap with the latest contact area 1 (or described as the first touch area) corresponding to finger 1, it indicates that the touch data 3 of finger 2 does not appear in the latest contact area 1 corresponding to finger 1. That is, finger 2 does not appear in the area touched by finger 1 in the latest time period, which corresponds to frame 2 and the aforementioned frame 1. Generally, pseudo-touch objects usually appear in the area where an existing touch object has just been touched. Therefore, the possibility that finger 2 is a pseudo-touch object is small. In other words, the possibility that finger 2 is a normal finger is high. The mobile phone does not need to suppress the touch data 3 of finger 2 and can process the touch data 3 normally, executing S210.

[0144] If the latest contact area 2 overlaps with the latest contact area 1, it indicates that the touch data 3 of finger 2 appears in the latest contact area 1 corresponding to finger 1. In other words, a new finger has appeared in the area that finger 1 has been in contact with recently. The touch data of this new finger (i.e., the touch data 3 of finger 2) may be ghost hand data caused by interference factors near finger 1. Therefore, the touch data 3 of finger 2 may be abnormal touch data. The phone needs to continue to determine whether the touch data 3 is abnormal and execute S211.

[0145] It should be noted that whether the latest contact area 2 corresponding to finger 2 overlaps with the latest contact area 1 corresponding to finger 1 is only one possible way to determine whether touch data 3 of finger 2 appears in the latest contact area 1 corresponding to finger 1. The phone can also use other methods to determine whether touch data 3 of finger 2 appears in the latest contact area 1 corresponding to phone 1. For example, for each node containing touch data 3, the phone determines whether the node containing touch data 3 belongs to the latest contact area 1. If touch data 3 belongs to the latest contact area 1, the phone can determine that touch data 3 of finger 2 appears in the latest contact area 1.

[0146] If no touch data 3 belongs to the latest contact area 1, the mobile phone can determine that no touch data 3 of finger 2 appears in the latest contact area 1. Accordingly, the step of determining the latest contact area 2 corresponding to finger 2 described in S208 above is an optional step.

[0147] S210, the mobile phone performs the corresponding action based on the touch data 2 of finger 1 and the touch data 3 of finger 2.

[0148] In this embodiment, after determining that the finger 2 is actually a finger, the mobile phone can directly execute the action corresponding to the touch data 2 and touch data 3 to achieve a normal response to the touch operation, thus avoiding the situation where the user's finger 1 and finger 2 input a normal trigger operation, but the mobile phone fails to respond successfully.

[0149] S210 above described the process after S209 where the phone performs the action normally when touch data 3 of finger 2 is not near finger 1. However, there is also the possibility that touch data 3 of finger 2 is near finger 1. If touch data 3 of finger 2 is near finger 1, the phone can determine whether touch data 3 of finger 2 is abnormal by comparing the characteristics of touch data 1 with the characteristics of touch data 3 of finger 2. The following will continue to describe a possible implementation process for determining whether touch data 3 is abnormal touch data based on the characteristics of touch data 1 and touch data 3 of finger 2.

[0150] S211. The mobile phone determines the feature value 1 corresponding to finger 1 based on the touch data corresponding to each node in the latest contact area 1 corresponding to finger 1.

[0151] S212. The mobile phone determines the feature value 2 corresponding to finger 2 based on the touch data corresponding to each node in the latest contact area 2 corresponding to finger 2.

[0152] S213. The mobile phone determines whether the difference between feature value 1 and feature value 2 is greater than feature difference 1.

[0153] For example, feature value 1 (or the first feature) reflects the characteristics of the touch data of finger 1 over a recent period, and feature value 2 (or the second feature) reflects the characteristics of the touch data 3 of finger 2. The mobile phone can determine whether the difference between the touch data of finger 2 and the real finger 1 is large by judging whether the difference between feature value 1 and feature value 2 is greater than feature difference 1 (or preset feature difference), thereby determining whether finger 2 is a fake touch object.

[0154] If the difference between feature value 1 and feature value 2 is greater than feature difference 1, it indicates that the touch data 3 of finger 2 differs significantly from the touch data of finger 1 in the most recent period. Generally, when two fingers simultaneously input a touch operation, the difference between the touch data of these two fingers is small. Therefore, the phone can determine that finger 2 is not actually a finger, and the touch data 3 of finger 2 is not input by the user, but may be caused by interference factors. The phone needs to suppress touch data 3, so the phone can execute S214.

[0155] If the difference between feature value 1 and feature value 2 is less than or equal to feature difference 1, it indicates that the touch data 3 of finger 2 is less different from the touch data of finger 1 in the most recent period. It is more likely that finger 2 is actually a finger. In this case, the mobile phone can determine that the touch data 3 of finger 2 is normal and execute S215.

[0156] Among them, the above-mentioned feature values ​​(feature value 1 and feature value 2) are of the same type, and the type may include at least one of peak value, contact area area and the sum of touch data.

[0157] The following will introduce several possible implementations of feature value 1 corresponding to finger 1 and feature value 2 corresponding to finger 2, taking the type of the above feature value (feature value 1 and feature value 2) as at least one of peak value, contact area area and sum of touch data.

[0158] In one implementation, the aforementioned feature value is of the type of peak value. First, the mobile phone can find the maximum value of the touch data on each node in the latest contact area 1 corresponding to finger 1, obtain the peak value 1 corresponding to finger 1, and use this peak value 1 as feature value 1. Similarly, the mobile phone can find the maximum value of the touch data on each node in the latest contact area 2 corresponding to finger 2, obtain the peak value 2, and use this peak value 2 as feature value 2 of finger 2.

[0159] Next, the phone calculates the difference between peak 1 and peak 2. The larger the difference, the greater the difference between feature value 1 and feature value 2, meaning a greater difference between the touch data 3 of finger 2 and the touch data of finger 1. The phone can determine if the difference between the touch data 3 of finger 2 and the touch data of finger 1 is too large by judging whether this difference is greater than the difference value 1. Here, the difference value 1 represents the aforementioned feature value 1.

[0160] Here, the difference 1 can be a preset value or determined based on peak value 1. For example, the difference 1 can be the product of peak value 1 and preset coefficient 1. The preset coefficient 1 is a positive number less than 1. For example, the preset coefficient 1 is 1 / 4. Accordingly, the phone determines whether the difference between peak value 1 and peak value 2 is greater than peak value 1 * 1 / 4 (or alternatively, whether peak value 2 is less than peak value 1 * 3 / 4).

[0161] In this application, when two fingers simultaneously input touch operations on the touch screen, the difference in the operating force of the two fingers on the touch screen is generally small. Correspondingly, the difference in the peak value of the touch data of the two fingers is small. Therefore, the mobile phone can determine whether finger 2 is a real finger by comparing the peak value of the touch data of a real finger (such as finger 1) with the peak value of the touch data of another finger (such as finger 2), thereby realizing the detection of the ghost hand problem.

[0162] In some embodiments, considering that the phone detects both finger 1 and finger 2 simultaneously in frame 2, if finger 2 is a real finger, then the difference between the peak values ​​of the touch data of finger 2 and finger 1 in frame 2 is small. Therefore, the phone can determine whether finger 2 is a real finger using only the touch data 2 of finger 1 in frame 2. Specifically, the phone can use the maximum value in the touch data 2 of finger 1 as the aforementioned peak value 1.

[0163] In another implementation, the aforementioned feature value is of type contact area. First, the phone can calculate the area 1 of the latest contact area 1 corresponding to finger 1, and use this area 1 as the feature value 1 corresponding to finger 1. Similarly, the phone calculates the area 2 of the latest contact area 2 corresponding to finger 2, and uses this area 2 as the feature value 2 corresponding to finger 2.

[0164] The phone can then calculate the difference between area 1 and area 2 to determine whether this difference is greater than difference 2, thereby determining the degree of difference between feature value 1 and feature value 2. Here, difference 2 represents the aforementioned feature difference 1.

[0165] Here, the difference 2 can be a preset value or it can be determined based on area 1. For example, the difference 1 can be the product of area 1 and a preset coefficient 2. The preset coefficient 2 is a positive number less than 1. For example, the preset coefficient 2 is 1 / 2. Accordingly, the phone determines whether the difference between area 1 and area 2 is greater than area 1 * 1 / 2 (or alternatively, whether area 2 is less than 1 / 2 * area 1).

[0166] In this application, when two fingers simultaneously input touch operations on the touch screen, the contact areas of the two fingers on the touch screen are generally small. Therefore, the mobile phone can determine whether finger 2 is a real finger by comparing the area of ​​the latest contact area 1 corresponding to finger 1 with the area of ​​the latest contact area 2 corresponding to finger 2, thereby realizing the detection of the ghost hand problem.

[0167] In some embodiments, considering that the phone detects both finger 1 and finger 2 simultaneously in frame 2, if finger 2 is a real finger, the difference between the contact areas of finger 2 and finger 1 on frame 2 is small. Therefore, the phone can determine whether finger 2 is a real finger using only the area of ​​the contact area of ​​finger 1 on frame 2. Specifically, the phone can use the area 1 of the contact area of ​​finger 1 on frame 2 as the aforementioned area 1.

[0168] In another implementation, the aforementioned feature value is a sum of touch data. First, the phone can calculate the sum of touch data at each node in the latest contact area 1 corresponding to finger 1, obtain a sum value of 1, and use this sum value of 1 as the feature value 1 corresponding to finger 1.

[0169] Similarly, the mobile phone can calculate the sum of touch data on each node in the latest contact area 2 corresponding to finger 2, obtain the sum value 2, and use the sum value 2 as the feature value 2 corresponding to finger 2.

[0170] The phone can then calculate the difference between the sum 1 and the sum 2 to determine whether this difference is greater than the difference 3, thereby determining the degree of difference between feature value 1 and feature value 2. Here, difference 3 represents the feature difference 1 mentioned above.

[0171] Here, the difference 3 can be a preset value or determined based on the sum 1. For example, the difference 1 is the product of the sum 1 and the preset coefficient 3. The preset coefficient 3 is a positive number less than 1. For example, the preset coefficient 3 is 1 / 2, and the phone determines whether the difference between the sum 1 and the sum 2 is greater than the sum 1 * 1 / 2 (or alternatively, whether the sum 2 is less than the sum 1 * 1 / 2).

[0172] In this application, when two fingers simultaneously input touch operations on the touch screen, the operating force of the two fingers on the touch screen is generally similar. Therefore, the touch data of the two fingers are similar, and the sum of the touch data is relatively small. Thus, the mobile phone can determine whether finger 2 is a real finger by comparing the sum of the touch data of finger 1 with the sum of the touch data of finger 2.

[0173] In some embodiments, if finger 2 is a real finger, the difference between the sum of the touch data of finger 2 and finger 1 on frame 2 is small. Therefore, the phone can determine whether finger 2 is a real finger using only the touch data 2 of finger 1 on frame 2. Specifically, the phone can use the sum of the touch data 2 of finger 1 as the aforementioned sum value 1.

[0174] The above describes the types of feature values, including peak value, contact area area, or sum of touch data. Feature values ​​can also include multiple types of peak value, contact area area, or sum of touch data. The following will continue to introduce the cases where feature values ​​include multiple types of peak value, contact area area, or sum of touch data.

[0175] In another possible implementation, the type of the aforementioned feature value may include a peak value and a contact area. The feature value can be obtained based on the peak value and the contact area. In one example, feature value 1 corresponding to finger 1 may include the aforementioned peak value 1 and area 1. Feature value 2 corresponding to finger 2 may include the aforementioned peak value 2 and area 2. Accordingly, the difference between feature value 1 and feature value 2 may include the difference between peak value 1 and peak value 2, and the difference between area 1 and area 2. The aforementioned feature difference 1 includes both the aforementioned difference 1 and the aforementioned difference 2.

[0176] On the one hand, if the difference between peak 1 and peak 2 is greater than difference 1, or the difference between area 1 and area 2 is greater than difference 2, the mobile phone can determine that the difference between feature value 1 and feature value 2 is greater than feature value 1. On the other hand, if the difference between peak 1 and peak 2 is less than or equal to difference 1, and the difference between area 1 and area 2 is less than or equal to difference 2, the mobile phone can determine that the difference between feature value 1 and feature value 2 is less than or equal to feature difference 1.

[0177] On the other hand, if the difference between peak 1 and peak 2 is greater than difference 1, and the difference between area 1 and area 2 is greater than difference 2, the phone can determine that the difference between feature value 1 and feature value 2 is greater than feature value 1. Conversely, if the difference between peak 1 and peak 2 is less than or equal to difference 1, or the difference between area 1 and area 2 is less than or equal to difference 2, the phone can determine that the difference between feature value 1 and feature value 2 is less than or equal to feature difference 1.

[0178] In another example, feature value 1 corresponding to finger 1 can be obtained by weighted summation of peak value 1 and area 1. Feature value 2 corresponding to finger 2 can be obtained by weighted summation of peak value 2 and area 2. Accordingly, feature difference 1 includes a single numerical value.

[0179] In another possible implementation, the type of the aforementioned feature value can include the peak value and the sum of touch data. The specific implementation process is similar to that described above for the feature value of finger 1, which includes the peak value and the contact area area, and will not be repeated here.

[0180] In another possible implementation, the type of the aforementioned feature value can include the sum of the contact area and the touch data. The specific implementation process is similar to that described above for the feature value of finger 1, which includes the peak value and the contact area, and will not be repeated here.

[0181] In another possible implementation, the type of the aforementioned feature value 1 can include the peak value, the contact area, and the sum of the touch data. The specific implementation process is similar to that described above for the feature value corresponding to finger 1, which includes the peak value and the contact area, and will not be repeated here.

[0182] In this embodiment, the mobile phone can determine the aforementioned feature value using one or more of the peak value, contact area area, and the sum of touch data, as needed. For example, to improve the efficiency of abnormal touch data determination, the mobile phone can determine the aforementioned feature value using the peak value, contact area area, or the sum of touch data. As another example, to improve the accuracy of abnormal touch data determination, the mobile phone can determine the aforementioned feature value using the peak value, contact area area, and the sum of touch data. Furthermore, to ensure both efficiency and accuracy in determining abnormal touch data, the mobile phone can determine the aforementioned feature value using two of the peak value, contact area area, and the sum of touch data.

[0183] It should be noted that the peak value, contact area, and sum of touch data mentioned above are only a few possible types of feature values. The types of feature values ​​can also include other types, such as the variance and average value of touch data. This application does not restrict the type of feature value, as long as it can reflect the data characteristics of touch data.

[0184] S214. The mobile phone executes the corresponding action based on the touch data 2 of finger 1.

[0185] In some embodiments, when it is determined that the difference between the feature value 2 corresponding to finger 2 and the feature value 1 corresponding to finger 1 is significant, a suppression flag can be added to finger 2 (such as the ID of finger 2) to indicate that finger 2 is a pseudo-touch object. Additionally, finger 1 does not have a suppression flag.

[0186] Alternatively, the phone can set the object flag corresponding to finger 2 as flag 1 (or the first flag), while for finger 1, its corresponding object flag is flag 2 (or the second flag). The object flag indicates whether the touch object is a pseudo touch object. Flag 1 indicates that the touch object is a pseudo touch object, and flag 2 indicates that the touch object is a true touch object. Flag 1 and flag 2 are different, such as flag 1 being 1 and flag 2 being 0.

[0187] S215, the mobile phone performs the corresponding action based on touch data 2 and touch data 3.

[0188] In this embodiment, to address the issue of water stains and other interference factors affecting the user's normal touch performance, if the mobile phone detects a new touch object (such as finger 2) in the area just touched by the existing touch object (such as finger 1), the phone can determine whether the touch data of finger 2 meets set conditions, such as whether the difference between the touch data of finger 2 and the touch data of finger 1 is small. If the touch data of finger 2 does not meet the set conditions, it indicates that finger 2 is not a normal touch object, i.e., finger 2 is a pseudo-touch object. The phone can then execute a suppression reporting strategy to suppress the reporting of touch data of finger 2, ensuring that the touch effect matches the user's actual touch input, effectively solving the "ghost hand" problem and guaranteeing user satisfaction.

[0189] For example, at moment 1, the user's finger 1 slides down on the phone's touchscreen. The phone determines the touch data of finger 1 and executes the corresponding action based on that data. At the next moment, such as... Figure 6 As shown, the user's finger 1 continues to slide downwards, but due to water stains on the touchscreen, the phone mistakenly detects that finger 1 and finger 2 are sliding downwards simultaneously, obtaining touch data for both fingers. Subsequently, the phone determines that finger 2 is in the area just touched by finger 1, and that finger 2's touch data meets the set conditions. Therefore, the phone determines that finger 2 is a pseudo-touch object and executes action 1 based only on finger 1's touch data, rather than executing action 2 based on the touch data of both fingers. This ensures that the phone's actual action matches the expected action, guaranteeing correct execution and thus ensuring the touch effect.

[0190] In some embodiments, S201-S204 are optional steps. The finger 1 is not a touch object that appears before the finger 2. Accordingly, the latest contact area 1 corresponding to the finger 1 can be determined based on the touch data of the finger 1 on the frame 2.

[0191] The above describes the process by which the phone, after initially detecting touch input from finger 2 in the area just touched by finger 1, determines whether finger 2 is a pseudo-touch object, and thus decides how to process the touch data of finger 1 and finger 2. The following will describe the situation where the phone subsequently detects touch input from finger 2 again.

[0192] S216, The mobile phone receives touch operations from finger 1 and finger 2 on the touch screen.

[0193] S216 can be described as the mobile phone receiving a touch operation input by finger 1 and finger 2 at a second time.

[0194] S217. In response to the touch operation, the mobile phone determines the touch data 4 of finger 1 on frame 3 and the touch data 5 of finger 2 on frame 3.

[0195] In this embodiment of the application, after S205 above, the mobile phone continues to detect that finger 1 and finger 2 have input touch operation, and obtains the touch data of finger 1 and finger 2 on the current frame (which can be described as frame 3), that is, the touch data 4 of finger 1 on frame 3 (or the fourth touch data) and the touch data 5 of finger 2 on frame 3.

[0196] Optionally, frame 3 is the frame following frame 2, such as frame 3 being the next frame after frame 2.

[0197] In some embodiments, the mobile phone can first determine whether the touch data 5 of finger 2 on frame 3 is less than a specific value (or a first preset capacitance value). If it is less than this value, it means that the touch data 5 of finger 2 is too small and finger 2 may disappear. In this case, the mobile phone can ignore the touch data 5 of finger 2 and directly perform the corresponding action based on the touch data 4 of finger 1. Optionally, the mobile phone can also stop the statistics about finger 2, clear the data about finger 2 in the buffer, such as the inhibition flag corresponding to finger 2, all touch data of finger 2, and the latest contact area 2 corresponding to finger 2, to reduce the occupation of the storage capacity of the electronic device by invalid data. When the touch operation of finger 2 is received again, the detection of whether finger 2 is a fake touch object can be restarted to avoid the interference of invalid data on the detection of fake touch objects, thereby effectively solving the ghost hand problem.

[0198] Optionally, the process of determining whether the touch data 5 of finger 2 on frame 3 is less than a specific value may include: the mobile phone determining whether each touch data 5 is less than a specific value. If each touch data 5 is less than a specific value, the mobile phone can determine that the touch data 5 is less than the specific value; otherwise, the mobile phone determines that the touch data 5 is greater than or equal to the specific value.

[0199] Alternatively, the phone can determine the number of touch data points 5 that are less than a specific value. If this number is greater than or equal to a preset number, the phone can determine that the touch data points 5 are less than the specific value. Otherwise, the phone determines that the touch data points 5 are greater than or equal to the specific value.

[0200] In addition, the fact that the touch data 5 of the finger 2 on frame 3 is less than a specific value can be a condition in the preset conditions.

[0201] S218. If it is determined that finger 2 is a pseudo-touch object, the mobile phone determines whether the distance between touch position 1 corresponding to touch data 5 of finger 2 and touch position 2 corresponding to touch data 3 of finger 2 is greater than distance 1.

[0202] For example, a mobile phone can determine whether finger 2 is a pseudo-touch object by whether finger 2 has a corresponding inhibition flag or whether the object flag is flag 1.

[0203] In this embodiment of the application, to avoid continuous misjudgment of abnormal touch data, for a finger 2 that has been identified as a fake touch object, after the mobile phone receives new touch data 5 of finger 2, it can determine the touch position 1 corresponding to the touch data 5 of finger 2 (i.e., the touch position of finger 2 on frame 3), and determine the touch position 2 of finger 2 in the previous frame, i.e., frame 2. Then, the mobile phone can calculate the distance between touch position 1 and touch position 2 to determine the movement distance of finger 2, so as to use this movement distance to continue determining whether finger 2 is a fake touch object.

[0204] Generally speaking, if the touch object is a fake touch object, then the touch object will not move or the movement distance of the touch object is small. Therefore, for finger 2 which is identified as a fake touch object, the mobile phone can use whether the movement distance of finger 2 is greater than distance 1 to continue to determine whether finger 2 is a fake touch object, thereby determining whether touch data 5 still needs to be suppressed, so as to avoid continuous misjudgment of fake touch objects.

[0205] If the movement distance of finger 2 is less than or equal to distance 1, the movement degree of finger 2 is small, and the possibility of finger 2 being a ghost hand is greater. Therefore, the mobile phone can continue to suppress the touch data 5 of finger 2 and execute S219.

[0206] If the distance moved by finger 2 is greater than the distance 1, the degree of movement of finger 2 is relatively large, and the possibility that finger 2 is a pseudo-touch object is small. Therefore, the mobile phone can determine that finger 2 is a normal finger, no longer suppress the touch data 5 of finger 2, and execute S220.

[0207] In some embodiments, the mobile phone can use a Euclidean distance formula to calculate the distance between touch position 1 and touch position 2. Specifically, the Euclidean distance formula is... Where d represents the distance between touch position 1 and touch position 2, (x1, y1) represents the coordinates of touch position 1, and (x2, y2) represents the coordinates of touch position 2.

[0208] It is understood that the touch position corresponding to the touch data is calculated based on the position of the node where the touch data is located, and this application does not impose any restrictions on the specific calculation process.

[0209] In some embodiments, the distance between the touch position 1 corresponding to the touch data 5 of finger 2 and the touch position 2 corresponding to the touch data 3 of finger 2 being greater than distance 1 may be a condition in the preset conditions. Accordingly, if the preset conditions are met, the mobile phone can execute S220. If the preset conditions are not met, S219 is executed.

[0210] S219. The mobile phone executes the corresponding action based on the touch data 4 of finger 1.

[0211] In some embodiments, after frame 3, if the phone continues to detect touch operation of finger 2, since finger 2 has a suppression flag or the object flag corresponding to finger 2 is flag 1, the phone can directly use the touch data 6 of finger 2 on frame 4 to determine the movement distance of finger 2, so as to use the movement distance to determine whether it is still necessary to suppress touch data 6.

[0212] Alternatively, since the phone has already determined that finger 2 is not a real finger by the distance moved in frame 3, the phone can directly suppress the touch data 6.

[0213] Additionally, after frame 3 above, if the phone does not collect touch data of finger 2, it indicates that the abnormal touch data of finger 2 has disappeared. Alternatively, if the phone collects touch data of finger 2 and the touch data is less than a specific value, it indicates that the touch data of finger 2 is too small. In this case, the phone can delete the suppression flag corresponding to finger 2 or set the object flag corresponding to finger 2 to flag 2.

[0214] Optionally, the phone can also delete all touch data of finger 2 and the latest contact area 2 corresponding to finger 2.

[0215] In some embodiments, after frame 3 above, if the phone does not collect touch data of finger 2, or if the phone collects touch data of finger 2 and the touch data is less than a certain value, the phone may stop the statistics about finger 2 and clear the data about finger 2 in the buffer.

[0216] S220: The mobile phone performs corresponding actions based on the touch data 4 of finger 1 and the touch data 5 of finger 2.

[0217] In this embodiment, since it is determined that finger 2 is not a pseudo-touch object but a normal finger, the mobile phone can stop suppressing the touch data 5 of finger 2, thus avoiding continuous false suppression of the touch data input by the user.

[0218] In some embodiments, if the movement distance of finger 2 is greater than distance 1 (or a first preset distance), the phone clears the inhibition flag corresponding to finger 2. Alternatively, the phone sets the object flag corresponding to finger 2 as flag 2. When subsequent touch data from finger 2 is received, since finger 2 does not have a corresponding inhibition flag (or the object flag is no longer flag 1), and finger 2 is not newly appearing, the phone can normally respond to the touch data of finger 2 and perform the corresponding action.

[0219] In some embodiments, frame 3 may only contain touch data 5 of finger 2, without touch data 4 of finger 1. In this case, the phone can determine whether finger 2 is a pseudo-touch object. If finger 2 is determined to be a pseudo-touch object, the phone still does not process touch data 5 of finger 2. If finger 2 is determined not to be a pseudo-touch object, the phone can perform the corresponding action based on touch data 5 of finger 2. The phone can determine whether finger 2 is a pseudo-touch object based on whether finger 2 has an inhibition flag or an object flag; the specific process can be found in the relevant description above.

[0220] S221. According to the preset marking rules, the mobile phone marks the node where the touch data 5 of finger 2 is located on frame 3, and updates the latest contact area 2 of finger 2 according to the marked node.

[0221] The process of updating the latest contact area 2 on the mobile phone can be referred to the process of updating the latest contact area 1 described above.

[0222] S222: The mobile phone removes the node whose marker in the latest contact area 1 corresponding to finger 1 is the marker corresponding to frame 1, and updates the latest contact area 1 using the touch data 4 of finger 1.

[0223] In this embodiment, since the most recent period is 20ms, which corresponds to two frames of data, after receiving frame 3 data from finger 1, the mobile phone needs to remove the frame 1 data from finger 1. This means removing the nodes in the latest contact area 1 corresponding to finger 1 whose markers correspond to frame 1, as well as the touch data of finger 1 on frame 1. Here, the marker corresponding to frame 1 is actually the marker corresponding to finger 1's ID and frame 1. Optionally, the mobile phone removes the frame 1 data of finger 1 from the buffer.

[0224] Then, the phone can mark the nodes where the touch data 4 of finger 1 is located on frame 3 according to the preset marking rules, and update the latest contact area 1 of finger 1 based on the marked nodes. For example, the node where the touch data 4 is located can be marked as 13.

[0225] In some embodiments, for ease of recording, after removing the node corresponding to frame 1 in the latest contact area 1 corresponding to finger 1, the mobile phone can update the marker corresponding to frame 2 with the marker corresponding to the removed frame 1, and use the original marker corresponding to frame 2 as the marker corresponding to frame 3. For example, firstly, as... Figure 7A As shown, the phone removes the node corresponding to frame 1 in the latest contact area 1 corresponding to finger 1, that is, the node marked 11. Then, as... Figure 7B As shown, the mobile phone can update the marker corresponding to frame 2 in the latest contact area 1 (where the node corresponding to frame 1 has been removed) to the marker corresponding to frame 1, that is, update 12 to 11. Then, as...Figure 7C As shown, the mobile phone can use the original marker (i.e., 12) corresponding to frame 2 as the marker of the node where the touch data 4 of finger 1 is located on frame 3, and use the marked node to update the latest contact area 1.

[0226] In some embodiments, steps S216-S222 are optional. For example, if the phone does not receive touch operations from finger 1 and finger 2 after frame 2, steps S216-S222 do not need to be executed. Alternatively, the phone may only receive touch operations from finger 1 after frame 2. Since finger 1 is not a pseudo-touch object, the phone can respond to the touch operation normally.

[0227] It should be noted that the above example uses a recent time interval of 20ms, corresponding to two frames of data, to illustrate the touch data processing method. This latest time interval can also be other times, for example, 80ms, corresponding to 8 frames of data. In this case, the nodes in the latest contact area of ​​the finger could be labeled 11, 12, 13, 14, 15, 16, 17, and 18. When the phone acquires the touch data of the finger on the ninth frame, since the label buffer is full, the phone needs to clear the earliest frame data in the latest contact area, i.e., the node where the finger's touch data on the earliest frame is located, such as the node labeled 11, and shift the labels of other nodes sequentially to the left (e.g., ...). Figure 8 (As shown). Then, the phone can use 18 as a marker for the node where the touch data is located on the ninth frame.

[0228] For example, if the latest time interval is 110ms, corresponding to 11 frames of data, then the nodes in the latest region of the finger can be labeled as 101, 102, 103, ..., 110, 111. The hundreds digit of the label is the finger's ID, and the tens and units digits indicate which frame that ID corresponds to.

[0229] In some embodiments, the above description of the solution to the ghost hand problem is based on marking touch data as an example. This application may also omit marking the touch data; the aforementioned latest contact area 1 can be within a distance 2 from the latest touch position of the finger. For example, after obtaining the touch data of finger 1 and finger 2 on frame 2, the aforementioned latest contact area 1 (e.g.) Figure 9 The area shown can be a region comprised of positions where the distance between the finger 1 and the touch position 3 on frame 2 is less than or equal to distance 2 (or referred to as the second preset distance). In other words, the latest contact area 1 can represent the region where the distance between the finger 1 and the touch position at the first moment is less than or equal to the second preset distance.

[0230] The mobile phone can determine whether finger 2 is a fake touch object by judging whether the touch position 2 corresponding to the touch data 3 of finger 2 is within the latest contact area 1. For example, if the touch position 2 (or described as the touch position of the second touch object at the first moment) is within the latest contact area 1, it indicates that finger 2 may be a fake touch object. Then, the mobile phone can use the feature value 1 of finger 1 and the feature value 2 corresponding to the finger to determine whether the touch data 3 is abnormal touch data, thereby determining whether finger 2 is a fake touch object.

[0231] If the touch position 2 is not located within the newly contacted area 1, it indicates that the possibility of finger 2 being a fake touch object is very small, and the mobile phone can process the touch data 3 of finger 2 normally.

[0232] It should be noted that the step numbers in this application do not represent the actual execution order of the steps, and this application does not impose any restrictions on the execution process of the above steps. For example, the determination of whether the latest contact area 2 corresponding to finger 2 overlaps with the latest contact area 1 corresponding to finger 1, as described in S209, and the determination of whether the difference between feature value 1 and feature value 2 is greater than feature difference 1, as described in S213, can be executed sequentially or simultaneously. For example, a mobile phone can determine that finger 2 is a pseudo-touch object if it is determined that the latest contact area 2 and the latest contact area 1 do not overlap, and the difference between feature value 1 and feature value 2 is greater than feature difference 1, and then execute the corresponding action based on the touch data 2 of finger 1. In other words, if finger 2 does not appear in the latest contact area 1, and the difference between feature value 1 and feature value 2 is greater than feature difference 1, then finger 2 is determined to be a pseudo-touch object.

[0233] In some embodiments, when the mobile phone detects that finger 2 appears in the area just touched by finger 1, it can determine through an internal module whether finger 2 is a pseudo-touch object. The following will combine the above... Figure 3 The structure shown illustrates the specific implementation process of S201-S215 in the above embodiment regarding determining whether finger 2 is a pseudo-touch object. For example... Figure 10 As shown, the process may include:

[0234] S1. The touch sensor responds to the touch operation of finger 1 and determines the touch data 1 of finger 1 on frame 1.

[0235] S2. The touch sensor sends the touch data 1 of finger 1 to the data acquisition module.

[0236] For example, the touch sensor can send touch data 1 of finger 1 to the data acquisition module through sensor driving.

[0237] S3. The data acquisition module sends the touch data 1 of finger 1 to the area statistics module.

[0238] S4. The area statistics module marks the nodes where each touch data 1 is located on frame 1 according to the preset marking rules, and obtains the latest contact area 1 corresponding to finger 1.

[0239] S5. The area statistics module sends the touch data 1 of finger 1 to the relationship determination module.

[0240] In some embodiments, the area statistics module may also send the latest contact area 1 to the relationship determination module.

[0241] S6. The relationship determination module sends the touch data 1 of finger 1 to the target application by suppressing the reporting module.

[0242] In this embodiment, when the relationship determination module determines that finger 1 is not a pseudo-touch object, it suppresses the reporting module from sending touch data 1 of finger 1 to the target application. For example, the relationship determination module determines that finger 1 is not a pseudo-touch object if it determines that finger 1 does not have a suppression flag and that finger 1 is not in the area just touched by another touch object.

[0243] S7. The target application performs the corresponding action based on the touch data 1.

[0244] S1-S7 describes the process of how the mobile phone responds to the touch operation of finger 1 when it only receives the touch operation of finger 1. For a detailed description, please refer to S201-S204 of the above embodiment, which will not be repeated here.

[0245] The following section will continue to explain how the phone responds to touch operations from both finger 1 and finger 2 simultaneously.

[0246] S8. The touch sensor responds to the touch operation of finger 1 and finger 2, and determines the touch data 2 of finger 1 on frame 2 and the touch data 3 of finger 2 on frame 2.

[0247] S9. The touch sensor sends touch data 2 of finger 1 and touch data 3 of finger 2 to the data acquisition module.

[0248] S10, The data acquisition module sends touch data 2 of finger 1 and touch data 3 of finger 2 to the area statistics module.

[0249] S11. The region statistics module marks the node where the touch data 2 of finger 1 is located on frame 2 according to the preset marking rules, and updates the latest contact area 1 of finger 1 according to the marked node, and marks the node where the touch data 3 of finger 2 is located on frame 2 to obtain the latest contact area 2 of finger 2.

[0250] S12, The area statistics module sends the latest contact area 1 corresponding to finger 1, the latest contact area 2 corresponding to finger 2, touch data 2 of finger 1 and touch data 3 of finger 2 to the relationship determination module.

[0251] S13. The relationship determination module determines whether the latest contact area 2 corresponding to finger 2 overlaps with the latest contact area 1 corresponding to finger 1.

[0252] S14. In the absence of overlap, the relationship determination module sends touch data 2 of finger 1 and touch data 3 of finger 2 to the target application by suppressing the reporting module.

[0253] In some embodiments, the relationship determination module can send the data detection results corresponding to touch data 2 and touch data 3 to the suppression reporting module. If it is determined that the data detection result corresponding to touch data 2 indicates normal, while the data detection result corresponding to touch data 3 indicates abnormal, the suppression reporting module executes a suppression reporting strategy for touch data 3, and only reports touch data 2.

[0254] Optionally, the relationship determination module or the suppression reporting module can also add a suppression flag to the ID of finger 2, or set the object flag of finger 2 to flag 1 to indicate that finger 2 is a pseudo touch object.

[0255] S15. The target application executes the corresponding action based on the touch data 2 of finger 1 and the touch data 3 of finger 2.

[0256] S16. In the case of overlap, the relationship determination module determines the feature value 1 corresponding to finger 1 based on the touch data corresponding to each node in the latest contact area 1 corresponding to finger 1, and determines the feature value 2 corresponding to finger 2 based on the touch data corresponding to each node in the latest contact area 2 corresponding to finger 2.

[0257] S17. The relationship determination module determines whether the difference between feature value 1 and feature value 2 is greater than feature difference 1.

[0258] S18. When the difference is greater than the feature difference 1, the relationship determination module sends the touch data 2 of finger 1 to the target application by suppressing the reporting module.

[0259] S19. The target application executes the corresponding action based on the touch data 2 of finger 1.

[0260] S20. When the feature difference is less than or equal to 1, the relationship determination module sends the touch data 2 of finger 1 and the touch data 3 of finger 2 to the target application by suppressing the reporting module.

[0261] S21. The target application executes the corresponding action based on the touch data 2 of finger 1 and the touch data 3 of finger 2.

[0262] The specific implementation process of S8-S21 can be referred to S205-S215 introduced above, and will not be repeated here.

[0263] It should be noted that the steps performed by the module described above are merely an example. The executing entity for these steps could also be other modules. For instance, the steps performed by the relationship-determining module could be executed by the suppression reporting module. This application does not impose any restrictions on the executing entity for these steps. However, generally speaking, these steps are performed by the mobile phone.

[0264] This application also provides a computer-readable storage medium including computer instructions that, when executed on the electronic device, cause the electronic device to perform the various functions or steps described in the method embodiments.

[0265] This application also provides a computer program product, including a computer program that, when run on an electronic device, causes the electronic device to perform the various functions or steps described in the above method embodiments.

[0266] This application provides a chip for executing instructions. When the chip is running, it executes the technical solutions described in the above embodiments. Its implementation principle and technical effects are similar and will not be repeated here.

[0267] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above 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.

[0268] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0269] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0270] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0271] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially or in other words, the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0272] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A touch data processing method, characterized in that, Applied to electronic devices, the method includes: The system receives touch operations input by a first touch object and a second touch object at a first time; the first touch object is the touch object that has input a touch operation before the first time, and the second touch object has not input a touch operation before the first time. When the second touch object is located within the first touch area corresponding to the first touch object, and the difference between the first feature and the second feature is greater than a preset feature difference, an action is performed based on the first touch data of the first touch object when performing a touch operation at the first time; the first feature represents the feature of the touch data of the first touch object, and the second feature represents the feature of the touch data of the second touch object.

2. The method according to claim 1, characterized in that, The method further includes: If the second touch object is not within the first touch area, or if the difference between the first feature and the second feature is less than or equal to the preset feature difference, an action is performed based on the first touch data and the second touch data; the second touch data represents the touch data of the second touch object when performing a touch operation at the first time.

3. The method according to claim 1 or 2, characterized in that, When the second touch object is located within the first touch area corresponding to the first touch object, and the difference between the first feature and the second feature is greater than a preset feature difference, the method further includes: When the electronic device meets preset conditions, an action is performed based on the third touch data when the second touch object performs a touch operation at the second time and the fourth touch data when the first touch object performs a touch operation at the second time; the second time is after the first time; the preset conditions include that the distance between the touch position of the second touch object at the second time and the touch position of the second touch object at the first time is greater than a first preset distance; If the electronic device does not meet the preset conditions, an action is performed based on the fourth touch data.

4. The method according to claim 3, characterized in that, When the second touch object is located within the first touch area corresponding to the first touch object, and the difference between the first feature and the second feature is greater than a preset feature difference, the method further includes: The second touch object is identified as a pseudo touch object; When the distance between the touch position of the second touch object at the second time and the touch position of the second touch object at the first time is greater than a first preset distance, before executing the action, based on the third touch data of the second touch object performing the touch operation at the second time and the fourth touch data of the first touch object performing the touch operation at the second time, the method further includes: It is determined that the second touch pair is a pseudo-touch object.

5. The method according to claim 4, characterized in that, The step of identifying the second touch object as a pseudo touch object includes: Set an inhibition flag for the second touch object; or set the object flag corresponding to the second touch object to a first flag; the first flag indicates that the second touch object is a pseudo touch object.

6. The method according to claim 5, characterized in that, If the distance between the touch position of the second touch object at the second time and the touch position of the second touch object at the first time is greater than a first preset distance, the method further includes: If the second touch object has an inhibition flag, delete the inhibition flag corresponding to the second touch object; If the object flag corresponding to the second touch object is the first flag, the object flag corresponding to the second touch object is set to the second flag; the second flag indicates that the second touch object is not a pseudo touch object.

7. The method according to any one of claims 3 to 6, characterized in that, The preset conditions also include that the third touch data is greater than or equal to the first preset capacitance value.

8. The method according to claim 1 or 2, characterized in that, When the difference between the first feature and the second feature is greater than a preset feature difference, the method further includes: The action is executed based on the fourth touch data when the first touch object performs a touch operation at the second time; the second time is after the first time, and the electronic device also collects the third touch data when the second touch object performs a touch operation at the second time.

9. The method according to any one of claims 1 to 8, characterized in that, The first touch area refers to the area where the first touch object contacts the display screen of the electronic device within a target time, and the target time includes the first time. The method further includes: If the second touch area corresponding to the second touch object overlaps with the first touch area, the second touch object is determined to be within the first touch area; the second touch area represents the area where the second touch object contacts the display screen at the first time. If the second touch area does not overlap with the first touch area, it is determined that the second touch object is not within the first touch area.

10. The method according to claim 9, characterized in that, The target time also includes the time prior to the first time; the method further includes: Based on the area where the first touch object contacts the display screen at the first time, the third touch area corresponding to the first touch object is updated to obtain the first touch area; the third touch area is obtained based on the area where the first touch object contacts the display screen during the time before the first time.

11. The method according to claim 10, characterized in that, The first touch data is a first capacitance value, which represents the capacitance value at a node in the area where the first touch object contacts the display screen at the first moment; the step of updating the third touch area corresponding to the first touch object based on the area where the first touch object contacts the display screen at the first moment to obtain the first touch area includes: For each of the first capacitance values, if there is a target node in the third touch area that is at the same node position as the first capacitance value, then the marker corresponding to the target node is updated to the marker corresponding to the node where the first capacitance value is located; the marker corresponding to the node where the first capacitance value is located is determined based on the identifier of the first touch object and the frame number; If there is no target node in the third touch area that is at the same location as the node where the first capacitance value is located, then the node where the first capacitance value is located will be used as the new node of the third touch area.

12. The method according to any one of claims 1 to 8, characterized in that, The first touch area represents a location area where the distance between the touch area and the touch position of the first touch object at the first time is less than or equal to a second preset distance; The method further includes: If the second touch object is located within the first touch area at the touch position of the second touch object at the first time, it is determined that the second touch object is within the first touch area; If the second touch object is not within the first touch area at the touch position of the first time, it is determined that the second touch object is not within the first touch area.

13. An electronic device, characterized in that, The electronic device includes a memory, a display screen, and one or more processors; the memory, the display screen, and the processors are coupled; the memory is used to store computer program code, the computer program code including computer instructions; the display screen is used to receive touch operations; when the processor executes the computer instructions, it causes the electronic device to perform the method as described in any one of claims 1 to 12.

14. A computer-readable storage medium, characterized in that, Includes a computer program that, when run on an electronic device, causes the electronic device to perform the method as described in any one of claims 1 to 12.

15. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 12.

Citation Information

Patent Citations

  • Noise elimination method of touch panel

    CN103197787A

  • Multi-touch touch screen and its junction area touch sensing method

    CN104750299A

  • Finger detection on touch screens for mobile devices

    CN105339877A

  • Moisture management

    CN107219272A

  • Touch data reporting method and device, and storage medium

    CN111078053A