Method and device for preventing accidental touch
By collecting and analyzing the capacitance data and characteristic dimensions of the touch panel and combining the capacitance difference to determine false touches, the problem of device misidentification caused by false touches is solved, achieving more accurate false touch identification and normal use.
Patent Information
- Application Number
- CN202110915917.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-10
- Publication Date
- 2025-09-09
- Estimated Expiration
- 2041-08-10
AI Technical Summary
When a user uses a touchpad to control a terminal device, accidental touches may cause the device to misidentify, affecting normal use. Existing technologies cannot accurately identify accidental touch operations.
By collecting the capacitance data generated by the touch operation, the capacitance threshold and characteristic size are used to determine whether the touch area is a false touch, including the horizontal and vertical characteristic lengths, curvature thresholds, etc., and the false touch is judged in combination with the capacitance difference to output accurate touch instructions.
The accuracy of identifying accidental touches is improved, the impact of accidental touches on the normal use of terminal devices is avoided, and the user experience is enhanced.
Smart Images

Figure CN115904104B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a method and device for preventing accidental touches. Background Art
[0002] With the widespread adoption and development of the internet, people's demands for the functionality of their devices are becoming increasingly diverse. For example, touch-enabled devices are becoming an integral part of everyday life, simplifying how users use their devices. For example, a laptop computer with a touchpad eliminates the need for a mouse, allowing users to control the laptop by operating the touchpad instead of using a mouse.
[0003] However, when a user uses the touchpad to control a laptop computer, the user's palm, wrist or arm can easily touch the touchpad, causing the laptop computer to recognize the user's accidental touch as a mouse movement or click, affecting the user's normal use of the laptop computer. Summary of the Invention
[0004] The embodiments of the present application provide a method and apparatus for preventing accidental touches, which can prevent a user from affecting normal use of a terminal device due to accidental touches.
[0005] In a first aspect, an embodiment of the present application provides a method for preventing accidental touches, which is applied to a terminal device, the terminal device including a touch panel. The method comprises: in response to a touch operation on the touch panel, the terminal device collecting data generated by the touch operation; the data generated by the touch operation including a plurality of first capacitance data; the terminal device determining a first touch area based on the plurality of first capacitance data and a first capacitance threshold; the terminal device obtaining second capacitance data at a second position that is a first distance away from the first position; wherein the first position is any position in the first touch area, and the second position does not belong to the first touch area; the terminal device determining whether the difference between the capacitance data corresponding to the first position and the second capacitance data is greater than a second capacitance threshold; and when the difference is greater than the second capacitance threshold, the terminal device outputting a touch instruction. In this way, the terminal device can determine whether the touch area is an accidental touch area based on the difference between the capacitance value at the first position in the touch area and the capacitance value at the second position that is a first distance away from the first position. Furthermore, the terminal device can accurately identify the user's accidental touch behavior based on the identification of the touch area, thereby preventing the user from affecting normal use of the terminal device due to accidental touch.
[0006] The first capacitance threshold and the second capacitance threshold can be obtained based on historical touch data of the user.
[0007] In one possible implementation, the terminal device outputs a touch instruction, including: the terminal device determines whether the horizontal characteristic length of the first touch area is less than a horizontal length threshold, and whether the vertical characteristic length of the first touch area is less than a vertical length threshold; when the horizontal characteristic length is less than the horizontal length threshold, and the vertical characteristic length is less than the vertical length threshold, the terminal device outputs a touch instruction; wherein the horizontal characteristic length is the length of a line connecting the horizontal center point coordinates in the first touch area; and the vertical characteristic length is the length of a line connecting the vertical center point coordinates in the first touch area. In this way, the terminal device can further identify the touch area based on the characteristic size of the touch area, and by accurately identifying the user's accidental touch behavior, avoid affecting the user's normal use of the terminal device due to accidental touch.
[0008] Among them, the transverse characteristic length and the longitudinal characteristic length can be understood as characteristic dimensions in the embodiment of the present application.
[0009] In one possible implementation, a terminal device includes multiple sets of correspondences; any set of correspondences is used to indicate the correspondence between the type of a touch area, a horizontal length threshold, and a vertical length threshold; before the terminal device determines whether the horizontal characteristic length of the first touch area is less than the horizontal length threshold and whether the vertical characteristic length of the first touch area is less than the vertical length threshold, the method further includes: the terminal device determining the type of the first touch area; and the terminal device obtaining, from the correspondences, the horizontal length threshold and the vertical length threshold corresponding to the type of the first touch area. In this way, the terminal device can select a more accurate threshold from the correspondences based on the type of the first touch area to identify the touch area, thereby increasing the accuracy of touch area identification.
[0010] In one possible implementation, the terminal device outputs a touch instruction, including: the terminal device determining whether the curvature of a curve between a first position and a second position is greater than a curvature threshold; when the curvature of the curve between the first position and the second position is greater than the curvature threshold, the terminal device outputs the touch instruction; wherein the curve is related to the first position, the second position, and the first capacitance data. In this way, the terminal device can further identify the touch area based on the curvature of the curve, and by accurately identifying the user's accidental touch behavior, prevent the user from affecting normal use of the terminal device due to accidental touch.
[0011] In one possible implementation, when the difference is less than or equal to the second capacitance threshold, the terminal device discards the data corresponding to the first touch area. In this way, even if the user makes an accidental touch, the terminal device can identify the user's accidental touch based on the relationship between the capacitance difference and the second capacitance threshold, and then discard the data corresponding to the user's accidental touch, thereby preventing the accidental touch data from affecting normal touch data.
[0012] In one possible implementation, when the difference is greater than a second capacitance threshold, the terminal device outputs a touch instruction, including: when the difference is greater than the second capacitance threshold, the terminal device marks the first touch area as valid; and the terminal device outputs the touch instruction based on the first touch area. In this way, by marking the valid touch area, the terminal device can obtain a more accurate touch instruction based on the marked valid touch area.
[0013] In one possible implementation, a touch operation corresponds to multiple touch areas; and the terminal device outputs a touch instruction, including: the terminal device determining whether at least one touch area among the multiple touch areas is marked as valid; and when at least one touch area among the multiple touch areas is marked as valid, the terminal device outputs a touch instruction corresponding to the at least one touch area based on the at least one touch area marked as valid. In this way, by marking the valid touch areas, the terminal device can obtain more accurate touch instructions based on the marked valid touch areas.
[0014] In a second aspect, an embodiment of the present application provides a device for preventing accidental touches, the device including a memory and a processor, the processor being used to collect data generated by the touch operation in response to a touch operation on a touch panel; the data generated by the touch operation includes multiple first capacitance data; the processor is also used to determine a first touch area based on the multiple first capacitance data and a first capacitance threshold; the processor is also used to obtain second capacitance data at a second position that is a first distance away from the first position; wherein the first position is any position in the first touch area, and the second position does not belong to the first touch area; the processor is also used to determine whether the difference between the capacitance data corresponding to the first position and the second capacitance data is greater than the second capacitance threshold; when the difference is greater than the second capacitance threshold, the processor is also used to output a touch instruction.
[0015] In one possible implementation, the processor is specifically used to determine whether the horizontal characteristic length of the first touch area is less than the horizontal length threshold, and whether the vertical characteristic length of the first touch area is less than the vertical length threshold; when the horizontal characteristic length is less than the horizontal length threshold, and the vertical characteristic length is less than the vertical length threshold, the processor is also specifically used to output a touch instruction; wherein, the horizontal characteristic length is the length of the line connecting the horizontal center point coordinates in the first touch area; the vertical characteristic length is the length of the line connecting the vertical center point coordinates of the first touch area.
[0016] In one possible implementation, the memory includes multiple sets of correspondences; any set of correspondences is used to indicate the correspondence between the type of touch area, the horizontal length threshold, and the vertical length threshold; the processor is also used to determine the type of the first touch area; the processor is also used to obtain the horizontal length threshold and the vertical length threshold corresponding to the type of the first touch area from the correspondences.
[0017] In one possible implementation, the processor is specifically used to determine whether the curvature of the curve between the first position and the second position is greater than a curvature threshold; when the curvature of the curve between the first position and the second position is greater than the curvature threshold, the processor is also specifically used to output a touch instruction; wherein the curve is related to the first position, the second position, and the first capacitance data.
[0018] In a possible implementation, when the difference is less than or equal to the second capacitance threshold, the processor is further configured to discard data corresponding to the first touch area.
[0019] In a possible implementation, when the difference is greater than the second capacitance threshold, the processor is specifically configured to mark the first touch area as valid; and the processor is further specifically configured to output a touch instruction based on the first touch area.
[0020] In one possible implementation, the touch operation corresponds to multiple touch areas; the processor is specifically used to determine whether at least one touch area among the multiple touch areas is marked as valid; when at least one touch area among the multiple touch areas is marked as valid, the processor is further specifically used to output touch instructions corresponding to at least one touch area based on the at least one touch area marked as valid.
[0021] In a third aspect, an embodiment of the present application provides another device for preventing accidental touches, the device including a touch panel, and the device including: a processing unit for collecting data generated by the touch operation in response to a touch operation on the touch panel; the data generated by the touch operation includes multiple first capacitance data; a determination unit for determining a first touch area based on the multiple first capacitance data and a first capacitance threshold; the processing unit is also used to obtain second capacitance data at a second position that is a first distance away from the first position; wherein the first position is any position in the first touch area, and the second position does not belong to the first touch area; the determination unit is also used to determine whether the difference between the capacitance data corresponding to the first position and the second capacitance data is greater than the second capacitance threshold; when the difference is greater than the second capacitance threshold, the processing unit is also used to output a touch instruction.
[0022] In one possible implementation, the determination unit is specifically used to determine whether the horizontal characteristic length of the first touch area is less than the horizontal length threshold, and whether the vertical characteristic length of the first touch area is less than the vertical length threshold; when the horizontal characteristic length is less than the horizontal length threshold, and the vertical characteristic length is less than the vertical length threshold, the processing unit is also specifically used to output a touch instruction; wherein, the horizontal characteristic length is the length of the line formed by the horizontal center point coordinates in the first touch area; the vertical characteristic length is the length of the line formed by the vertical center point coordinates in the first touch area.
[0023] In one possible implementation, the device includes multiple sets of correspondences; any set of correspondences is used to indicate the correspondence between the type of touch area, the horizontal length threshold, and the vertical length threshold; the determination unit is also used to determine the type of the first touch area; and the processing unit is also used to obtain the horizontal length threshold and the vertical length threshold corresponding to the type of the first touch area from the correspondences.
[0024] In one possible implementation, the determination unit is specifically used to determine whether the curvature of the curve between the first position and the second position is greater than a curvature threshold; when the curvature of the curve between the first position and the second position is greater than the curvature threshold, the processing unit is also specifically used to output a touch instruction; wherein the curve is related to the first position, the second position, and the first capacitance data.
[0025] In a possible implementation, when the difference is less than or equal to the second capacitance threshold, the processing unit is further configured to discard data corresponding to the first touch area.
[0026] In a possible implementation, when the difference is greater than the second capacitance threshold, the processing unit is specifically configured to mark the first touch area as valid; and the processing unit is further specifically configured to output a touch instruction based on the first touch area.
[0027] In one possible implementation, the touch operation corresponds to multiple touch areas; the processing unit is specifically used to determine whether at least one touch area among the multiple touch areas is marked as valid; when at least one touch area among the multiple touch areas is marked as valid, the processing unit is further specifically used to output touch instructions corresponding to at least one touch area based on the at least one touch area marked as valid.
[0028] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed, the computer executes the method for preventing accidental touches as described in the first aspect or any implementation of the first aspect.
[0029] In a fifth aspect, a computer program product includes a computer program. When the computer program is executed, the computer executes the method for preventing accidental touches as described in the first aspect or any one of the implementations of the first aspect.
[0030] It should be understood that the third to fifth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 A schematic diagram of a scenario provided in an embodiment of the present application;
[0032] Figure 2 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application;
[0033] Figure 3 A flowchart of a method for preventing accidental touches provided in an embodiment of the present application;
[0034] Figure 4 A schematic diagram of calculating characteristic length provided in an embodiment of the present application;
[0035] Figure 5 A schematic diagram of another method for calculating characteristic length provided in an embodiment of the present application;
[0036] Figure 6 A schematic diagram of another method for calculating characteristic length provided in an embodiment of the present application;
[0037] Figure 7 A schematic diagram of characteristic dimensions in different scenarios provided in an embodiment of the present application;
[0038] Figure 8 A schematic diagram of capacitance changes in different scenarios provided by an embodiment of the present application;
[0039] Figure 9 A flowchart of another method for preventing accidental touches provided in an embodiment of the present application;
[0040] Figure 10 A flowchart of another method for preventing accidental touches provided in an embodiment of the present application;
[0041] Figure 11 A schematic structural diagram of a device for preventing accidental touches provided in an embodiment of the present application;
[0042] Figure 12 A schematic diagram of the hardware structure of another device for preventing accidental touches provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. For example, the first value and the second value are merely used to distinguish different values and do not limit their order. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit different values.
[0044] It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described in this application as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0045] In this application, "at least one" means one or more, and "more" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers 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 mean: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or multiple.
[0046] With the widespread adoption and development of the internet, people's demands for the functionality of their devices have become increasingly diverse. For example, touch-enabled devices have become an integral part of daily life, simplifying how users use their devices. The widespread use of these touch-enabled devices has made their operation much easier and expanded the user base for them.
[0047] For example, Figure 1 A schematic diagram of a scenario provided in an embodiment of the present application. Figure 1 As shown, the scenario may include a terminal device 101. Figure 1 The terminal device 101 is taken as an example of a laptop computer, which does not constitute a limitation on the embodiments of the present application.
[0048] like Figure 1As shown, the terminal device 101 may include a keyboard area 102, a touchpad 103, a display screen 105, and the like. For example, when a user uses the keyboard area 102 to input information to the terminal device 101, the user's palm rest, wrist, or arm may touch the touchpad 103. For example, the user's palm rest touches the mis-touch area 104 in the touchpad 103, causing the terminal device 101 to recognize the user's mis-touch behavior as the movement or click of the mouse, resulting in problems of pointer wandering or mis-clicking. Alternatively, when the user uses the touchpad 103 to control the movement of the pointer in the display screen 105, multiple fingers or palm rests of the user touch the touchpad 103, causing the terminal device to be unable to accurately identify which finger is the finger controlling the movement or click of the pointer, resulting in a problem of being unable to accurately control the pointer. The above-mentioned mis-touch problem affects the user's normal use of the terminal device. Among them, Figure 1 As shown, the coordinate axis is used to indicate direction, wherein the direction indicated by the x-axis in the coordinate axis can be understood as the horizontal direction of the touch panel 103 (or the terminal device 101), and the direction indicated by the y-axis in the coordinate axis can be understood as the vertical direction of the touch panel 103 (or the terminal device 101), and the horizontal direction and the vertical direction can be orthogonal.
[0049] In a possible implementation, when the terminal device is a mobile phone or a portable Android device (PAD), the problem of accidental touch may occur due to the user's palm rest or other parts touching the display screen of the mobile phone or tablet, thereby affecting the user's normal use.
[0050] In order to solve the above problems, a variety of methods for preventing accidental touches are provided in possible implementations. For example, method one can control the opening and closing of the touchpad by detecting the use of the keyboard in the terminal device. Specifically, the terminal device can divide the keyboard into two areas. When the terminal device detects that there is user input behavior in both areas, the terminal device can disable the touchpad according to a preset time. When the preset time ends, the terminal device can restore the use of the touchpad, thereby protecting the user from accidental touches when using the keyboard.
[0051] Method 2: The terminal device can use a distance sensor to detect keyboard usage and control the transmission of information received by the touchpad. Specifically, a distance sensor can be installed on both sides of the top of the terminal device's touchpad. The terminal device can use this distance sensor to detect the distance between the user's hand and the keyboard, thereby determining whether the user is actively using the keyboard. When the terminal device detects that the user is using the keyboard based on the distance sensor, it can refuse to upload the information generated by the touchpad to the operating system, thereby preventing the terminal device from controlling the movement or click of the pointer based on the positioning information generated by the touchpad during an accidental touch.
[0052] However, neither of the methods described in Method 1 or Method 2 above can accurately identify a user's accidental touch operations. For example, in a scenario where the user is not using a keyboard, when the user is using a touchpad to control the pointer with a single finger, and another finger, palm rest, or arm accidentally touches the touchpad, the terminal device cannot identify which of the multiple touch areas involved in the above behavior is an accidental touch.
[0053] In view of this, an embodiment of the present application provides a method for preventing accidental touches. When a user uses a touchpad, even if the terminal device receives a touch operation in which the user accidentally touches the touchpad, the terminal device can verify again whether the touch operation is an accidental touch operation based on the difference between the capacitance of the boundary of the touch area and the capacitance around the touch area (or understood as the capacitance signal amount), and the relationship with the preset capacitance threshold, thereby avoiding affecting the user's normal use of the terminal device due to accidental touches.
[0054] It is understood that the terminal device in the embodiments of the present application can be referred to as user equipment (UE) or terminal, etc. For example, the terminal device can be a mobile phone with a touch screen, a tablet computer (Pad), a wearable device, a handheld device with wireless communication function, a computing device, a vehicle-mounted device or a wearable device, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in self-driving (self-driving), a wireless terminal in remote medical (remote medical), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), etc., a mobile terminal or a fixed terminal with a touch screen. The embodiment of the present application does not specifically limit the form of the terminal device.
[0055] In order to better understand the embodiment of the present application, the structure of the terminal device of the embodiment of the present application is introduced below. Figure 2 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application.
[0056] like Figure 2As shown, the terminal device may include multiple subsystems that cooperate to perform, coordinate, or monitor one or more operations or functions of the terminal device. For example, the terminal device includes a processor 210, an input surface 220, a coordination engine 230, a power subsystem 240, a power connector 250, a wireless interface 260, and a display 270.
[0057] Exemplarily, the coordination engine 230 can be used to communicate and / or process data with other subsystems of the terminal device; communicate and / or trade data with other subsystems; measure and / or obtain the output of one or more analog or digital sensors (such as touch sensors); measure and / or obtain the output of one or more sensor nodes of a sensor node array (such as an array of capacitive sensing nodes); receive and locate touch operations from a touch pad; determine the location of the touch operation in the terminal device based on the location of the touch operation, etc.
[0058] The coordination engine 230 of the terminal device includes or is otherwise communicatively coupled to a sensor layer located below or integrated with the input surface 220. The coordination engine 230 utilizes the sensor layer to locate touch operations on the input surface 220. In one embodiment, the input surface 220 can be understood as a touchpad.
[0059] For example, the sensor layer of the coordination engine 230 of the terminal device is a grid of capacitive sensing nodes arranged in columns and rows. More specifically, the column trace array is arranged perpendicular to the row trace array. The sensor layer can be separate from other layers of the terminal device, or the sensor layer can be directly provided on another layer, such as, but not limited to, a touchpad layer, a display stack layer, a force sensor layer, a digitizer layer, a polarizer layer, a battery layer, a structural or decorative housing layer, etc.
[0060] The sensor layer can operate in multiple modes. If operating in mutual capacitance mode, the column traces and row traces form a single capacitive sensing node at each overlapping point (e.g., "vertical" mutual capacitance). If operating in self-capacitance mode, the column traces and row traces form two (vertically aligned) capacitive sensing nodes at each overlapping point. In another embodiment, if operating in mutual capacitance mode, adjacent column traces and / or adjacent row traces may each form a single capacitive sensing node (e.g., "horizontal" mutual capacitance). As described above, the sensor layer can detect a user's touch operation by monitoring the change in capacitance (e.g., mutual capacitance or self-capacitance) presented at each capacitive sensing node. In many cases, the coordination engine 230 can be configured to detect signals received from a touch operation through the sensor layer via capacitive coupling.
[0061] The information and / or data received from the touch operation may be received by the sensor layer and interpreted, decoded and / or demodulated by the coordination engine 230 .
[0062] In an embodiment of the present application, the processor 210 may receive a user's touch operation on the input surface 220. Specifically, the coordination engine 230 may be configured to transmit the location of the touch operation detected by the coordination engine 230 and the capacitance corresponding to the touch operation to the processor 210. The processor 210 may then determine the touch area corresponding to the touch operation based on the capacitance corresponding to the touch operation, and determine whether the touch area is an accidental touch area based on verification of the touch area.
[0063] Generally speaking, the processor 210 may be configured to execute, coordinate, and / or manage functions of the terminal device. Such functions may include, but are not limited to, communicating and / or transacting data with other subsystems of the terminal device, communicating and / or transacting data via a wireless interface, communicating and / or transacting data via a wired interface, facilitating power exchange via a wireless (e.g., inductive, resonant, etc.) or wired interface, and the like.
[0064] The processor 210 can be implemented as any terminal device capable of processing, receiving, or sending data or instructions. For example, the processor can be a microprocessor, a central processing unit, an application-specific integrated circuit, a field programmable gate array, a digital signal processor, an analog circuit, a digital circuit, or a combination of these devices. The processor can be a single-threaded or multi-threaded processor. The processor can be a single-core or multi-core processor.
[0065] During use, the processor 210 may be configured to access a memory storing instructions that may be configured to cause the processor to execute, coordinate, or monitor one or more operations or functions of the terminal device.
[0066] The instructions stored in the memory may be configured to control or coordinate the operation of other components of the terminal device, such as, but not limited to: another processor, analog or digital circuitry, volatile or non-volatile memory modules, displays, speakers, microphones, rotary input devices, buttons or other physical input devices, biometric authentication sensors and / or systems, force or touch input / output components, communication modules (such as wireless interfaces and / or power connectors), and / or tactile feedback devices.
[0067] The memory can also store electronic data used by the processor. For example, the memory can store electronic data or content (such as media files, documents, and applications), device settings and preferences, timing signals and control signals, or data, data structures, or databases for various modules, files or configurations related to detecting tip signals and / or ring signals, and the like. The memory can be configured as any type of memory. For example, the memory can be implemented as random access memory, read-only memory, flash memory, removable memory, other types of storage elements, or a combination of such devices.
[0068] The terminal device also includes a power subsystem 240. The power subsystem 240 may include a battery or other power source. The power subsystem 240 may be configured to provide power to the terminal device. The power subsystem 240 may also be coupled to a power connector 250. The power connector 250 may be any suitable connector or port that may be configured to receive power from an external power source and / or be configured to provide power to an external load. For example, in some embodiments, the power connector 250 may be used to recharge the battery within the power subsystem 240.
[0069] The terminal device also includes a wireless interface 260. In one embodiment, the communication interface facilitates electronic communication between the terminal device and an external communication network, device, or platform. The wireless interface 260 can be implemented as one or more wireless interfaces, Bluetooth interfaces, near-field communication interfaces, magnetic interfaces, universal serial bus interfaces, inductive interfaces, resonant interfaces, capacitive coupling interfaces, Wi-Fi interfaces, TCP / IP interfaces, network communication interfaces, optical interfaces, acoustic interfaces, or any other conventional communication interfaces.
[0070] The terminal device also includes a display 270. The display 270 can be located behind the input surface 220, or the display 270 can be relatively independent of the input surface 220. The display 270 can be communicatively coupled to the processor 210. The processor 210 can use the display 270 to present information to the user. In many cases, the processor 210 uses the display 270 to present an interface with which the user can interact. In many cases, the user can interact with the interface by touching the input surface 220, and the interface responsive to the touch operation is displayed on the display 270.
[0071] It will be apparent to those skilled in the art that some of the specific details presented above regarding the terminal device may not be necessary to practice a particular embodiment or its equivalent. Similarly, other terminal devices may include a greater number of subsystems, modules, components, etc. Where appropriate, some submodules may be implemented as software or hardware. Therefore, it should be understood that the above description is not intended to be exhaustive or to limit the present disclosure to the precise form described herein. On the contrary, it will be apparent to those skilled in the art that many modifications and variations are possible based on the above teachings.
[0072] The following specific embodiments are used to describe in detail the technical solution of the present application and how the technical solution of the present application solves the above technical problems. The following specific embodiments can be implemented independently or in combination with each other. For the same or similar concepts or processes, some embodiments may not be described in detail.
[0073] For example, when a user accidentally touches the touchpad while using it, the terminal device can determine whether the touch operation is an accidental touch based on a variety of anti-accidental touch methods. Specifically, in method one, the terminal device can determine whether the touch operation is an accidental touch based on the size of the touch area corresponding to the touch operation and the change in capacitance between the touch area and the surrounding area (e.g., Figure 3 Corresponding embodiment); Method 2: The terminal device can determine whether the touch operation is an accidental touch operation based on the size of the touch area corresponding to the touch operation (such as Figure 9 Corresponding embodiment); Method three, the terminal device can determine whether the touch operation is a false touch operation based on the change in capacitance between the touch area and the surrounding area (such as Figure 10 corresponding embodiments).
[0074] Method 1: The terminal device may determine whether the touch operation is a false touch operation based on the size of the touch area corresponding to the touch operation and the change in capacitance between the touch area and the surrounding area.
[0075] For example, Figure 3 This is a flow chart of a method for preventing accidental touches provided in an embodiment of the present application. Figure 3 As shown, the method may include the following steps:
[0076] S301: The terminal device detects a touch event.
[0077] In the embodiment of the present application, the touch event may be an event of a touch operation received by the touchpad, wherein the touch data corresponding to the touch event may include one or more of the following: a touch area, first capacitance data (or the capacitance value corresponding to the touch event), or the time corresponding to the touch area.
[0078] Exemplarily, the terminal device can use a grid of capacitive sensing nodes arranged in columns and rows within the touch panel (hereinafter referred to as capacitive sensors) to determine whether a touch event has occurred. Specifically, when the terminal device determines that the capacitance value in at least one grid received by the capacitive sensor exceeds a first capacitance threshold, it can be determined that a touch event has occurred. Typically, the value range of the grid can be 0.2 centimeters (cm)-0.5 cm. The first capacitance threshold can be used to determine the touch area.
[0079] For example, the terminal device may compare the capacitance indicated by each grid on the touch panel with a first capacitance threshold, and determine the touch area based on the area enclosed by the grid that exceeds the first capacitance threshold. The first capacitance threshold may be learned based on the user's historical touch data.
[0080] It is understandable that the value of the first capacitance threshold may be different in different terminal devices, and this is not limited in the embodiments of the present application.
[0081] Furthermore, the terminal device may determine the touch area corresponding to the touch operation based on the area occupied by at least one grid that exceeds the threshold corresponding to the capacitance for indicating the sending touch time.
[0082] S302: The terminal device calculates characteristic sizes Dx and Dy of the current / next touch area.
[0083] In the embodiment of the present application, the characteristic size may include a characteristic length Dx in the horizontal direction (hereinafter referred to as the horizontal characteristic length) and a characteristic length Dy in the vertical direction (hereinafter referred to as the vertical characteristic length) in the touch area.
[0084] For example, Figure 4 A schematic diagram of calculating characteristic length provided in an embodiment of the present application. Figure 4 In the corresponding embodiment, the touch area is a regular area, and the touch area is symmetrical in the horizontal and vertical directions (for example, the user's finger is vertical) as an example for illustration, which does not constitute a limitation on the embodiments of the present application.
[0085] like Figure 4 As shown, the terminal device can determine the touch area 401 based on the capacitive sensor in the touch panel. When obtaining the horizontal characteristic length of the touch area 401, the terminal device can obtain the midpoint coordinates corresponding to each column in the touch area 401, for example, respectively obtain the midpoint coordinates of the first column, the second column, the third column, and the fourth column in the touch area 401, and calculate the length of the line between each two midpoint coordinates. The horizontal characteristic length 402 can be obtained based on the lengths of multiple lines.
[0086] For example, Figure 5 This is another schematic diagram of calculating characteristic length provided in the embodiment of the present application. Figure 5 In the corresponding embodiment, the touch area is a regular area, and the touch area is asymmetric in the horizontal / vertical direction (for example, the user's finger is tilted) as an example for illustration, which does not constitute a limitation on the embodiments of the present application.
[0087] like Figure 5 As shown, the terminal device can determine the touch area 501 based on the capacitive sensor in the touch panel. When obtaining the vertical characteristic length of the touch area 501, the terminal device can obtain the midpoint coordinates corresponding to each row in the touch area 501, for example, respectively obtain the midpoint coordinates of the first row, the second row, the third row and the fourth row in the touch area 501, and calculate the length of the line between each two midpoint coordinates. Based on the lengths of multiple lines, the vertical characteristic length 502 can be obtained. Further, as Figure 5 As shown, the terminal device can also be based on Figure 4 The method for obtaining the lateral characteristic length shown in is used to obtain the lateral characteristic length 503 of the characteristic area 501 .
[0088] For example, Figure 6 This is another schematic diagram of calculating characteristic length provided in the embodiment of the present application. Figure 6 In the corresponding embodiment, the touch area is an irregular area as an example for illustration, and this example does not constitute a limitation on the embodiments of the present application.
[0089] like Figure 6 As shown, the terminal device can determine the touch area 601 based on the capacitive sensor in the touch panel, and the terminal device can determine the touch area 601 based on the capacitive sensor in the touch panel. Figure 4 The method for obtaining the horizontal characteristic length shown in , obtaining the horizontal characteristic length 602 of the touch area 601, and based on Figure 5 The method for obtaining the longitudinal characteristic length shown in , obtains the longitudinal characteristic length 603 of the touch area 601, and the specific process refers to Figure 4 The corresponding embodiments and Figure 5 The corresponding embodiments are not described in detail.
[0090] It is understandable that the comprehensive Figure 4-Figure 6 In the corresponding embodiment, the regular area can be understood as: the touch area is a symmetrical figure or similar to a symmetrical figure; the touch area is a centrally symmetrical figure or similar to a centrally symmetrical figure; the touch area is an ellipse or similar to an ellipse; and / or the touch area is an area composed of a continuous grid in the touch panel, etc.
[0091] For example, when a user's finger touches the touchpad, under normal circumstances, the terminal device can recognize that the touch area corresponding to the user's finger is elliptical or elliptical (or the touch area is a centrally symmetrical figure or a centrally symmetrical figure, or the touch area is composed of a continuous grid in the touchpad), and then the terminal device can recognize the touch area corresponding to the finger as a regular area.
[0092] The irregular area can be understood as an area that does not meet the requirements of the regular area. For example, when the user's right finger touches the touchpad, the user's left elbow (or left arm, etc.) may touch the area touched by the right finger, forming a touch area including the right finger and the left elbow. The touch area does not meet the conditions of the regular area and presents a relatively strange shape. The terminal device can identify the touch area as an irregular area. Alternatively, when the user's finger triggers the corner area of the touchpad, the touch area can be half of an elliptical area. The terminal device can further determine that the touch area presented as a half-elliptical shape does not meet the conditions of the regular area, so the terminal device can identify the touch area as an irregular area.
[0093] It is understandable that the definitions of the regular area and the irregular area may include other contents according to the actual touch scenario, and are not limited in the embodiments of the present application.
[0094] S303: The terminal device determines whether Dx and Dy are both within the set specifications Sx and Sy.
[0095] In the embodiment of the present application, Sx and Sy may be preset characteristic dimensions used to determine whether a touch area is a false touch. Sx may be a horizontal length threshold, and Sy may be a vertical length threshold. The horizontal and vertical length thresholds may be learned based on the user's historical touch data. For example, the historical touch data may include historical touch locations, capacitance values at historical touch locations, or historical touch areas. For example, the horizontal characteristic length threshold may be a value between 5mm and 20mm, and the vertical length threshold may be a value between 5mm and 25mm.
[0096] For example, in different touch scenarios, the terminal device may determine whether the touch area is an incorrectly touched area based on detection of a characteristic size of the touch area. Figure 7 A schematic diagram of characteristic dimensions in different scenarios provided in an embodiment of the present application.
[0097] like Figure 7As shown, when the user touches normally with a single finger, the touch area can be a regular area, such as touch area 703, and the touch area 703 can include the characteristic size of the user's normal finger touch; when the user touches normally with multiple fingers, such as touch area 704, the touch area of any finger in the touch area 704 can include the characteristic size of the user's normal finger touch.
[0098] like Figure 7 As shown, when the user touches the touch area by mistake with a single finger, the touch area may be a regular area, and the touch area may be asymmetric in the horizontal / vertical directions, such as touch area 701. The characteristic size of touch area 701 may be different from the characteristic size of a normal finger touch.
[0099] like Figure 7 As shown, when the user accidentally touches with a single finger, the touch area may be an irregular area, such as touch area 702, and the characteristic size of the touch area 702 may be different from the characteristic size of a normal finger touch.
[0100] It is understandable that in the scenario where the user uses the terminal device, if the user's palm rest, wrist or arm is in full contact with the touchpad, in such a large-area contact, regardless of whether the touch area is regular or irregular, the characteristic size of the touch area may be different from the characteristic size of a normal finger touch. Therefore, appropriate characteristic sizes such as Sx and Sy can be selected to determine whether the touch area is a false touch.
[0101] Specifically, when the terminal device determines that Dx is greater than or equal to (or greater than) Sx, and / or Dy is greater than or equal to (or greater than) Sy, the terminal device can execute the steps shown in S304; or, when the terminal device determines that Dx is less than (or less than or equal to) Sx, and Dy is less than (or less than or equal to) Sy, the terminal device can execute the steps shown in S305.
[0102] In a possible implementation, to meet the requirements of different touch areas for different characteristic sizes, the terminal device can set up multiple sets of correspondences; any set of correspondences can be used to indicate the correspondence between the touch area type, the horizontal length threshold, and the vertical length threshold. For example, the touch area type can be divided according to the touch habits of different users. For example, user A may correspond to the first horizontal length threshold and the first vertical length threshold; user B may correspond to the second horizontal length threshold and the second vertical length threshold.
[0103] For example, if user A's fingers are relatively small, and the touch area when user A's fingers perform a touch operation can be relatively small, if the horizontal length threshold and vertical length threshold commonly used in other terminal devices are used, the terminal device may not be able to recognize user A's touch operation. Therefore, the terminal device can learn user A's touch habits and establish a correspondence between user A and the first horizontal length threshold and the first vertical length threshold. For example, the terminal device identifies the type of user based on the touch operation. When the touch operation indicates that the touch is performed by user A, the terminal device can search the corresponding relationship for the first horizontal length threshold and the first vertical length threshold corresponding to user A, and then use the first horizontal length threshold and the first vertical length threshold to further identify the touch area.
[0104] For example, if user B's finger is relatively large, and the touch area of user B's finger during a touch operation can be relatively large, if the horizontal length threshold and vertical length threshold commonly used in other terminal devices are used, it is possible that even if user B accidentally touches the terminal device, the terminal device can still recognize user B's touch operation. Therefore, the terminal device can learn user B's touch habits and establish a correspondence between user B and the second horizontal length threshold and the second vertical length threshold. When the terminal device recognizes that the touch operation indication is a touch by user B, the terminal device can search the corresponding relationship for the second horizontal length threshold and the second vertical length threshold corresponding to user B, and then use the second horizontal length threshold and the second vertical length threshold to further identify the touch area.
[0105] It is understandable that the type of the touch area may also be divided based on other conditions, which is not limited in the embodiments of the present application.
[0106] S304: The terminal device discards the data generated by this touch operation.
[0107] S305: The terminal device determines whether the difference between the capacitance value at the position d away from the touch area and the capacitance value at the touch area boundary (or the touch area center) is greater than the set value Sc.
[0108] In the embodiment of the present application, the distance d from the touch area can be understood as the position surrounding the touch area and at a distance d from the touch area boundary. Here, d can be understood as a first distance, and the value range of d can be 0.3 cm-1.2 cm, etc.
[0109] It is understandable that in a scenario where a user uses a terminal device, if the user's palm rest, wrist or arm is not in full contact with the touchpad, in such a small area of contact, the characteristic size of the touch area is not significantly different from the characteristic size of a normal finger touch. Therefore, the terminal device can use the capacitance difference between the touch area boundary (or the center of the touch area) and the point d away from the touch area, or the terminal device can use a function constructed by the distance and capacitance determined in the touchpad, and the curvature of the curve between the touch area boundary (or the center of the touch area) and the point d away from the touch area in the function to determine whether the touch area is a false touch.
[0110] In one implementation, when the terminal device detects that the difference between the capacitance value at the position d from the touch area and the capacitance value at the area boundary (or area center) is greater than (or greater than or equal to) the set value Sc, the terminal device can execute the step shown in S306; when the terminal device detects that the difference between the capacitance value at the position d from the touch area and the capacitance value at the area boundary (or area center) is less than or equal to (or less than) the set value Sc, the terminal device can execute the step shown in S304. Among them, Sc can be understood as a capacitance threshold (or a second capacitance threshold) for determining whether the touch area is a false touch area.
[0111] For example, Figure 8 This is a schematic diagram of capacitance changes in different scenarios provided by an embodiment of the present application. Figure 8 As shown in (A) in FIG, when a user touches the touchpad in the terminal device normally with a single finger, the change in capacitance of the touchpad detected by the terminal device may be as shown in function 801. As shown in function 801, the difference between the capacitance C3 located on the left side of the touch area and at a distance d from the touch area and the capacitance C1 at the touch area boundary is C1-C3, and the difference between the capacitance C2 located on the right side of the touch area and at a distance d from the touch area and the capacitance C1 at the touch area boundary is C1-C2. Since the distance between the human body and the touchpad at the touch area d during normal touch operation is significantly reduced (except for the four corners of the touchpad in the terminal device), the terminal device detects that both C1-C3 and C1-C2 may be greater than (or greater than or equal to) Sc.
[0112] like Figure 8As shown in (B) in FIG, when the user accidentally touches the touchpad in the terminal device, the change in capacitance of the touchpad detected by the terminal device may be as shown in function 802. As shown in function 801, the difference between the capacitance M3 located on the left side of the touch area and at a distance d from the touch area and the capacitance M1 at the touch area boundary is M1-M3, and the difference between the capacitance M2 located on the right side of the touch area and at a distance d from the touch area and the capacitance M1 at the touch area boundary is M1-M2. Since the distance between the human body and the touchpad is relatively close when an accidental touch occurs, the terminal device detects that both M1-M3 and M1-M2 may be less than or equal to (or less than) Sc.
[0113] In another implementation, in the function constructed by distance and capacitance, when the terminal device detects that the curvature of the curve between the position d of the distance touch area and the area boundary (or area center) is greater than (or greater than or equal to) the curvature threshold, the terminal device can execute the steps shown in S306; when the terminal device detects that the curvature of the curve between the position d of the distance touch area and the area boundary (or area center) is less than or equal to (or less than) the curvature threshold, the terminal device can execute the steps shown in S304.
[0114] For example, Figure 8 As shown in (A) in FIG. 1 , when the user's finger 803 or other parts normally touch the touch panel in the terminal device, the change in capacitance of the touch panel detected by the terminal device can be as follows: Figure 8 . In function 801, the curvature of the curve between the coordinates (d1, C3) located to the left of the touch area and at a distance d from the touch area and the coordinates (d2, C1) of the touch area boundary, and the curvature of the curve between the coordinates (d4, C2) located to the right of the touch area and at a distance d from the touch area and the coordinates (d3, C1) of the touch area boundary can both be greater than (or greater than or equal to) a preset curvature threshold for determining whether a touch is a false touch.
[0115] like Figure 8 As shown in (B) in FIG. 1 , when the user's arm 804 or other parts accidentally touch the touch pad in the terminal device, the change in capacitance of the touch pad detected by the terminal device may be as follows: Figure 8 8. In function 802, the curvature of the curve between the coordinates (d5, M3) located to the left of the touch area and at a distance d from the touch area and the coordinates (d6, M1) of the touch area boundary, and the curvature of the curve between the coordinates (d8, M2) located to the right of the touch area and at a distance d from the touch area and the coordinates (d7, M1) of the touch area boundary may both be less than or equal to (or less than) a preset curvature threshold.
[0116] In a possible implementation, the terminal device can comprehensively determine whether the current touch area is valid based on the relationship between the difference between the capacitance value at the distance d from the touch area and the capacitance value at the area boundary (or area center) and the set value Sc, and, in the function constructed by distance and capacitance, the relationship between the curvature of the curve between the distance d from the touch area and the area boundary (or area center) and the curvature threshold.
[0117] S306: The terminal device marks the touch area as valid.
[0118] S307: The terminal device determines whether the current touch area is the last area.
[0119] When there is only one touch area, the terminal device may not execute step S307; alternatively, when there are multiple touch areas, the terminal device may execute step S307 to further determine whether the touch area is the last area. Since the user's touch operations can be sequential in time, the terminal device may sequentially identify the multiple touch areas corresponding to the touch operations in time order until the last touch area is identified.
[0120] In an embodiment of the present application, when the terminal device determines that the current touch area is the last area, the step shown in S308 can be executed; when the terminal device determines that the current touch area is not the last area, the step shown in S302 can be executed.
[0121] S308: The terminal device processes the single-point / multi-point touch in the touch area.
[0122] When the terminal device determines that it has completed the recognition of the touch area in the touchpad, the terminal device can determine whether the valid touch area corresponds to a single-point touch / multi-point touch based on the valid touch area marked in step S306. The terminal device can parse the touch instruction corresponding to the touch operation based on the touch information corresponding to the single-point / multi-point touch operation. For example, the touch instruction can be reflected in the display interface of the terminal device as a pointer movement, pointer click, or display of other interfaces. For example, when the terminal device can recognize the touch instruction, the terminal device can display the pointer movement, pointer click, or display of other pages; or, when the terminal device determines that the area corresponding to the touch operation is an accidental touch, the terminal device interface may not change.
[0123] S309: The terminal device waits for a touch event and executes the steps shown in S301 in a loop.
[0124] Based on this, when the user is using the touchpad, even if the terminal device receives a touch operation in which the user accidentally touches the touchpad, the terminal device can determine whether the touch operation is a false touch operation based on the identification of the size of the touch area corresponding to the touch operation. Furthermore, the terminal device can also verify again whether the touch operation is a false touch operation based on the relationship between the capacitance of the boundary of the touch area and the surrounding area of the touch area and the preset capacitance threshold, thereby avoiding affecting the user's normal use of the terminal device due to false touches.
[0125] Method 2: The terminal device may determine whether the touch operation is an accidental touch operation based on the size of the touch area corresponding to the touch operation.
[0126] For example, Figure 9 This is a flow chart of another method for preventing accidental touches provided in an embodiment of the present application. Figure 9 As shown, the method may include the following steps:
[0127] S901: The terminal device detects a touch event.
[0128] S902: The terminal device calculates characteristic sizes Dx and Dy of the current / next touch area.
[0129] S903: The terminal device determines whether Dx and Dy are both within the set specifications Sx and Sy.
[0130] In an embodiment of the present application, when the terminal device determines that Dx is greater than or equal to (or greater than) Sx, and / or Dy is greater than or equal to (or greater than) Sy, the terminal device can execute the steps shown in S904; or, when the terminal device determines that Dx is less than (or less than or equal to) Sx, and Dy is less than (or less than or equal to) Sy, the terminal device can execute the steps shown in S905.
[0131] S904: The terminal device discards the data generated by this touch operation.
[0132] In the embodiment of the present application, the steps shown in S901-S904 are Figure 3 The steps S301-S304 in the corresponding embodiment are similar and will not be repeated here.
[0133] S905: The terminal device marks the touch area as valid. S906: The terminal device determines whether the current touch area is the last area.
[0134] In an embodiment of the present application, when the terminal device determines that the current touch area is the last area, the step shown in S907 can be executed; when the terminal device determines that the current touch area is not the last area, the step shown in S902 can be executed.
[0135] S907: The terminal device processes the single-point / multi-point touch in the touch area.
[0136] S908: The terminal device waits for a touch event and executes the steps shown in S901 in a loop.
[0137] In the embodiment of the present application, the steps S905-S908 are Figure 3 The steps S306-S309 in the corresponding embodiment are similar and will not be repeated here.
[0138] Based on this, when the user is using the touchpad, even if the terminal device receives a touch operation in which the user accidentally touches the touchpad, the terminal device can determine whether the touch operation is a false touch operation based on the recognition of the size of the touch area corresponding to the touch operation. The terminal device can then more accurately identify false touches without affecting the user's normal use.
[0139] Method 3: The terminal device can determine whether the touch operation is a false touch operation based on the change in capacitance between the touch area and the surrounding area.
[0140] For example, Figure 10 A flow chart of another method for preventing accidental touch provided in an embodiment of the present application. Figure 10 As shown, the method may include the following steps:
[0141] S1001: The terminal device detects a touch event.
[0142] In the embodiment of the present application, the steps shown in S1001 are Figure 3 The steps shown in S301 in the corresponding embodiment are similar and will not be repeated here.
[0143] S1002: The terminal device determines the touch area corresponding to the touch event.
[0144] In an embodiment of the present application, the terminal device can determine the touch area corresponding to the touch operation based on the area occupied by at least one grid that exceeds the threshold corresponding to the capacitance used to indicate the sending touch time.
[0145] S1003: The terminal device determines whether the difference between the capacitance value at the position d away from the touch area and the capacitance value at the touch area boundary (or the center of the touch area) is greater than the set value Sc.
[0146] In one implementation, when the terminal device detects that the difference between the capacitance value at the position d away from the touch area and the capacitance value at the area boundary (or area center) is greater than (or greater than or equal to) the set value Sc, the terminal device can execute the steps shown in S1005; when the terminal device detects that the difference between the capacitance value at the position d away from the touch area and the capacitance value at the area boundary (or area center) is less than or equal to (or less than) the set value Sc, the terminal device can execute the steps shown in S1004.
[0147] In another implementation, in the function constructed by distance and capacitance, when the terminal device detects that the curvature of the curve between the position d of the distance touch area and the area boundary (or area center) is greater than (or greater than or equal to) the curvature threshold, the terminal device can execute the steps shown in S1005; when the terminal device detects that the curvature of the curve between the position d of the distance touch area and the area boundary (or area center) is less than or equal to (or less than) the curvature threshold, the terminal device can execute the steps shown in S1004.
[0148] In another implementation, the terminal device can comprehensively determine whether the current touch area is valid based on the relationship between the difference between the capacitance value at the distance d from the touch area and the capacitance value at the area boundary (or area center) and the set value Sc, and the relationship between the curvature of the curve between the distance d from the touch area and the area boundary (or area center) in the function constructed by distance and capacitance and the curvature threshold.
[0149] S1004: The terminal device discards the data generated by this touch operation.
[0150] S1005: The terminal device marks the touch area as valid.
[0151] S1006: The terminal device determines whether the current touch area is the last area.
[0152] In an embodiment of the present application, when the terminal device determines that the current touch area is the last area, the step shown in S1007 can be executed; when the terminal device determines that the current touch area is not the last area, the step shown in S1002 can be executed.
[0153] S1007: The terminal device processes the single-point / multi-point touch in the touch area.
[0154] S1008: The terminal device waits for a touch event and executes the steps shown in S1001 in a loop.
[0155] In the embodiment of the present application, the steps shown in S1003-S1008 are Figure 3 The steps S304-S305 in the corresponding embodiment are similar and will not be repeated here.
[0156] Based on this, when the user is using the touchpad, even if the terminal device receives a touch operation in which the user accidentally touches the touchpad, the terminal device can also use the difference between the capacitance of the boundary of the touch area and the periphery of the touch area, and the relationship with the preset capacitance threshold, or use the curvature of the curve between the boundary of the touch area and the periphery of the touch area in the function constructed by distance and capacitance, and the relationship with the preset curvature threshold, to determine whether the touch operation is a false touch operation, and thus the terminal device can more accurately identify false touches without affecting the normal use of the user.
[0157] Combined with the above Figure 3-10 , the method provided in the embodiment of the present application is described, and the device for executing the above method provided in the embodiment of the present application is described below. Figure 11 As shown, Figure 11 This is a structural schematic diagram of a device for preventing accidental touches provided in an embodiment of the present application. The device for preventing accidental touches may be a terminal device in an embodiment of the present application, or a chip or chip system within the terminal device.
[0158] like Figure 11 As shown, the apparatus for preventing accidental touches can be used in a communication device, circuit, hardware component, or chip, and includes a determining unit 1101 and a processing unit 1102. The determining unit 1101 is configured to support the determination step of the method for preventing accidental touches, and the processing unit 1102 is configured to support the apparatus for preventing accidental touches in performing information processing.
[0159] The processing unit 1102 and the determining unit 1101 may be integrated together, and the processing unit 1102 and the determining unit 1101 may communicate with each other.
[0160] In a possible implementation, the apparatus for preventing accidental touch may further include a storage unit 1103. The storage unit 1103 may include one or more memories, and the memories may be devices in one or more devices or circuits for storing programs or data.
[0161] The storage unit 1103 can exist independently and be connected to the processing unit 1102 via a communication bus. The storage unit 1103 can also be integrated with the processing unit 1102.
[0162] Taking the example that the device for preventing accidental touch can be a chip or chip system of the terminal device in the embodiment of the present application, the storage unit 1103 can store computer-executable instructions of the method of the terminal device, so that the processing unit 1102 executes the method of the terminal device in the above embodiment. The storage unit 1103 can be a register, a cache, or a random access memory (RAM), etc. The storage unit 1103 can be integrated with the processing unit 1102. The storage unit 1103 can be a read-only memory (ROM) or other type of static storage device that can store static information and instructions. The storage unit 1103 can be independent of the processing unit 1102.
[0163] In one possible implementation, the device for preventing accidental touches may further include a communication unit 1104. The communication unit 1104 is configured to support interaction between the device for preventing accidental touches and other devices. For example, when the device for preventing accidental touches is a terminal device, the communication unit 1104 may be a communication interface or interface circuit. When the device for preventing accidental touches is a chip or chip system within the terminal device, the communication unit 1104 may be a communication interface. For example, the communication interface may be an input / output interface, a pin, or a circuit.
[0164] The device of this embodiment can be used to execute the steps executed in the above method embodiment. Its implementation principles and technical effects are similar and will not be described in detail here.
[0165] Figure 12 A schematic diagram of the hardware structure of another device for preventing accidental touches provided in an embodiment of the present application is shown in FIG. Figure 12 As shown, the hardware structure may include a processor 1201 and a memory 1202 .
[0166] The memory 1202 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including a compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may be independent and connected to the processor via a communication line 1204. The memory may also be integrated with the processor.
[0167] The memory 1202 is used to store computer-executable instructions for executing the solution of the present application, and the execution is controlled by the processor 1201. The processor 1201 is used to execute the computer-executable instructions stored in the memory 1202, thereby implementing the method provided by the embodiment of the present application.
[0168] In a possible implementation, the device for preventing accidental touch may further include: a communication line 1204 and at least one communication interface ( Figure 12 The communication interface 1203 is used as an example for explanation).
[0169] The processor 1201 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.
[0170] Communications link 1204 may include circuitry that transmits information between the aforementioned components.
[0171] The communication interface 1203 uses any transceiver or other device for communicating with other devices or communication networks, such as Ethernet, wireless local area networks (WLAN), etc.
[0172] Possibly, the computer-executable instructions in the embodiments of the present application may also be referred to as application code, and the embodiments of the present application do not specifically limit this.
[0173] In a specific implementation, as an embodiment, the processor 1201 may include one or more CPUs, such as Figure 12 CPU0 and CPU1 in.
[0174] In a specific implementation, as an embodiment, the control device may include multiple processors, such as Figure 12 1 and 1205. Each of these processors may be a single-CPU processor or a multi-CPU processor. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0175] The present application also provides a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server or data center that includes one or more available media integrated. For example, the available medium can include magnetic media (e.g., floppy disk, hard disk or tape), optical media (e.g., digital versatile disc (DVD)), or semiconductor media (e.g., solid state disk (SSD)).
[0176] The present application also provides a computer-readable storage medium. The methods described in the above embodiments can be implemented in whole or in part via software, hardware, firmware, or any combination thereof. Computer-readable media can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one location to another. The storage medium can be any target medium that can be accessed by a computer.
[0177] As one possible design, computer-readable media may include compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM or other optical disc storage; computer-readable media may include magnetic disk storage or other magnetic disk storage devices. Moreover, any connecting line may also be appropriately referred to as a computer-readable medium. For example, if the software is transmitted from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave are included in the definition of medium. Disk and disc as used herein include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks usually reproduce data magnetically, while discs reproduce data optically using lasers.
[0178] The above combinations are also included within the scope of computer-readable media. The above are only specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.
Claims
1. A method for preventing accidental touch, characterized in that: Applied to a terminal device, the terminal device includes a touch panel, and the method includes: In response to a touch operation on the touch panel, the terminal device collects data generated by the touch operation; the data generated by the touch operation includes a plurality of first capacitance data; The terminal device determines a first touch area based on the plurality of first capacitance data and a first capacitance threshold; The terminal device acquires second capacitance data at a second position that is a first distance away from the first position; wherein the first position is any position in the first touch area, and the second position surrounds the first touch area and does not belong to the first touch area; Determining, by the terminal device, whether a difference between capacitance data corresponding to the first position and the second capacitance data is greater than a second capacitance threshold; When the difference is greater than a second capacitance threshold, the terminal device outputs a touch instruction.
2. The method according to claim 1, characterized in that The terminal device outputs a touch instruction, including: Determining, by the terminal device, whether a horizontal characteristic length of the first touch area is less than a horizontal length threshold, and whether a vertical characteristic length of the first touch area is less than a vertical length threshold; When the horizontal characteristic length is less than the horizontal length threshold and the vertical characteristic length is less than the vertical length threshold, the terminal device outputs the touch instruction; wherein the horizontal characteristic length is the length of the line connecting the horizontal center point coordinates in the first touch area; the vertical characteristic length is the length of the line connecting the vertical center point coordinates of the first touch area.
3. The method according to claim 2, characterized in that The terminal device includes multiple sets of correspondences; any set of the correspondences is used to indicate the correspondence between the type of the touch area, the horizontal length threshold, and the vertical length threshold; Before the terminal device determines whether the horizontal characteristic length of the first touch area is less than a horizontal length threshold and whether the vertical characteristic length of the first touch area is less than a vertical length threshold, the terminal device further includes: determining, by the terminal device, a type of the first touch area; The terminal device obtains the horizontal length threshold and the vertical length threshold corresponding to the type of the first touch area from the corresponding relationship.
4. The method according to claim 1 or 2, characterized in that The terminal device outputs a touch instruction, including: determining, by the terminal device, whether a curvature of a curve between the first position and the second position is greater than a curvature threshold; When the curvature of the curve between the first position and the second position is greater than a curvature threshold, the terminal device outputs the touch instruction; wherein the curve is related to the first position, the second position, and the first capacitance data.
5. The method according to claim 1, wherein Also includes: When the difference is less than or equal to the second capacitance threshold, the terminal device discards data corresponding to the first touch area.
6. The method according to claim 1, characterized in that When the difference is greater than a second capacitance threshold, the terminal device outputs a touch instruction, including: When the difference is greater than the second capacitance threshold, the terminal device marks the first touch area as valid; The terminal device outputs the touch instruction based on the first touch area.
7. The method according to claim 6, characterized in that The touch operation corresponds to a plurality of touch areas; The terminal device outputs a touch instruction, including: The terminal device determines whether at least one touch area among the multiple touch areas is marked as valid; When at least one touch area among the multiple touch areas is marked as valid, the terminal device outputs touch instructions corresponding to the at least one touch area based on the at least one touch area marked as valid.
8. A device for preventing accidental touch, characterized in that: The device includes a memory and a processor, wherein the processor is used to collect data generated by a touch operation on the touch panel in response to the touch operation; the data generated by the touch operation includes multiple first capacitance data; the processor is also used to determine a first touch area based on the multiple first capacitance data and a first capacitance threshold; the processor is also used to obtain second capacitance data at a second position that is a first distance away from the first position; wherein the first position is any position in the first touch area, and the second position surrounds the first touch area and does not belong to the first touch area; the processor is also used to determine whether the difference between the capacitance data corresponding to the first position and the second capacitance data is greater than a second capacitance threshold; when the difference is greater than the second capacitance threshold, the processor is also used to output a touch instruction.
9. The device according to claim 8, characterized in that The processor is specifically used to determine whether the horizontal characteristic length of the first touch area is less than the horizontal length threshold, and whether the vertical characteristic length of the first touch area is less than the vertical length threshold; when the horizontal characteristic length is less than the horizontal length threshold, and the vertical characteristic length is less than the vertical length threshold, the processor is also specifically used to output the touch instruction; wherein, the horizontal characteristic length is the length of the line connecting the horizontal center point coordinates in the first touch area; the vertical characteristic length is the length of the line connecting the vertical center point coordinates of the first touch area.
10. The device according to claim 9, characterized in that The memory includes multiple groups of correspondences; any group of the correspondences is used to indicate the correspondence between the type of the touch area, the horizontal length threshold and the vertical length threshold; the processor is also used to determine the type of the first touch area; the processor is also used to obtain the horizontal length threshold and the vertical length threshold corresponding to the type of the first touch area from the correspondences.
11. The device according to claim 8 or 9, characterized in that The processor is specifically used to determine whether the curvature of the curve between the first position and the second position is greater than a curvature threshold; when the curvature of the curve between the first position and the second position is greater than the curvature threshold, the processor is also specifically used to output the touch instruction; wherein, the curve is related to the first position, the second position, and the first capacitance data.
12. The device according to claim 8, characterized in that When the difference is less than or equal to the second capacitance threshold, the processor is further configured to discard data corresponding to the first touch area.
13. The device according to claim 8, characterized in that When the difference is greater than the second capacitance threshold, the processor is specifically configured to mark the first touch area as valid; and the processor is further specifically configured to output the touch instruction based on the first touch area.
14. The device according to claim 13, characterized in that The touch operation corresponds to multiple touch areas; the processor is specifically used to determine whether at least one touch area among the multiple touch areas is marked as valid; when at least one touch area among the multiple touch areas is marked as valid, the processor is also specifically used to output touch instructions corresponding to the at least one touch area based on the at least one touch area marked as valid.
15. A device for preventing accidental touch, characterized in that: The device includes a touch panel, the device comprising: In response to a touch operation on the touch panel, the processing unit is configured to collect data generated by the touch operation; the data generated by the touch operation includes a plurality of first capacitance data; a determining unit, configured to determine a first touch area based on the plurality of first capacitance data and a first capacitance threshold; The processing unit is further configured to obtain second capacitance data at a second position that is a first distance away from the first position; wherein the first position is any position in the first touch area, and the second position surrounds the first touch area and does not belong to the first touch area; The determining unit is further configured to determine whether a difference between the capacitance data corresponding to the first position and the second capacitance data is greater than a second capacitance threshold; When the difference is greater than a second capacitance threshold, the processing unit is further configured to output a touch instruction.
16. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the computer is caused to perform the method according to any one of claims 1 to 7.
17. A computer program product, characterized in that The method comprises a computer program which, when being executed, causes a computer to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Fingerprint identifying method, fingerprint identifying apparatus and terminal device
CN106446786A
Method for identifying palm rejection operation and electronic device
CN107850974A