Touch detection method and electronic device
By constructing target areas at the edges of electronic device touchscreens and analyzing their shape and area characteristics, the problem of inaccurate edge touch recognition is solved, improving the accuracy of touch detection and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
- Filing Date
- 2024-12-27
- Publication Date
- 2026-06-30
AI Technical Summary
Existing technologies cannot accurately identify accidental touch events at the edges of electronic devices, affecting the user experience.
When a touch operation is detected, after determining that the touch location is at the edge, a target area is constructed, and the touch operation is determined to be an edge accidental touch operation based on the morphological and/or area characteristics of the target area.
It improves the accuracy of touch interaction judgment, avoids misjudging normal edge touch as a false touch, or treating a false touch as a valid operation, and enhances the user's operating experience.
Smart Images

Figure CN122308634A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of touch detection technology, and in particular to a touch detection method and an electronic device. Background Technology
[0002] With the development of technology, electronic devices such as smartphones and tablets are moving towards full-screen displays. However, as the bezels of electronic devices become narrower, accidental touches on the edges of these devices frequently occur. If these touches are recognized as normal touches, unnecessary actions may be performed.
[0003] In related technologies, touch detection methods for the edges of electronic devices determine the location of a touch on the touch panel based on touch detection data. When the touch occurs at the edge of the touch panel, the system determines whether the touch is a false edge touch based on changes in the touch position and / or the characteristics of the touch area. If so, the false edge touch is ignored. However, due to differences in user operating habits and techniques, relying solely on the touch capacitance data characteristics of the edge makes it difficult to accurately distinguish whether the current touch is a normal operation or a false edge touch, thus failing to accurately identify false edge touch events and affecting the user experience. Summary of the Invention
[0004] This application aims to provide a touch detection method and an electronic device to solve the problem of inaccurate identification of edge touch events in related technologies. The touch detection method provided by this application has at least the following beneficial effects: effectively improving the level of touch accuracy judgment in the overall touch interaction, so that users can get a more expected response when operating the touch screen.
[0005] The technical solution of this application is implemented as follows:
[0006] In a first aspect, embodiments of this application provide a touch detection method, the method comprising:
[0007] Upon detecting a touch operation on the touchscreen, the touch position on the touchscreen is determined based on the touch data generated by the touch operation;
[0008] If the touch position is located at the edge of the touch screen, a target area is constructed based on the touch data;
[0009] Based on the regional morphological features and / or regional area features of the target area, the detection result of whether the touch operation is an edge accidental touch operation is determined.
[0010] Secondly, embodiments of this application provide a touch detection device, the device comprising:
[0011] The determination module is used to determine the touch position of the touch screen based on the touch data generated by the touch operation when a touch operation for the touch screen is detected.
[0012] The processing module is used to construct a target area based on the touch data if the touch position is located at the edge of the touch screen;
[0013] The determination module is also used to determine whether the touch operation is a detection result of an edge accidental touch operation based on the regional morphological features and / or regional area features of the target area.
[0014] Thirdly, embodiments of this application provide an electronic device, which includes: a processor, a memory, and a communication bus;
[0015] The communication bus is used to realize the communication connection between the processor and the memory;
[0016] The processor is used to execute a touch detection program stored in the memory to perform some or all of the steps in the method described in the first aspect.
[0017] Fourthly, embodiments of this application provide a storage medium, characterized in that the storage medium stores one or more programs, which can be executed by one or more processors to implement some or all of the steps in the method described in the first aspect.
[0018] Fifthly, embodiments of this application provide a computer program product, including a computer program or instructions, which, when executed by a processor, implement some or all of the steps in the method described in the first aspect.
[0019] The touch detection method and electronic device provided in this application, when a touch operation is detected on a touch screen, determine the touch position of the touch screen based on the touch data generated by the touch operation; if the touch position is located at the edge of the touch screen, construct a target area based on the touch data; and determine whether the touch operation is a false edge touch operation based on the regional morphological features and / or regional area features of the target area. In this way, by accurately determining the touch position and constructing a target area for touches located at the edge, and further analyzing based on the regional morphological features and / or regional area features of the constructed target area, it is possible to more finely and accurately distinguish between normal edge touches and false touch operations, avoiding treating normal intentional touches at the edge as false touches, or treating true false touches as valid operations, thereby effectively improving the level of touch accuracy judgment in the overall touch interaction, and enabling users to obtain more expected responses when operating the touch screen. Attached Figure Description
[0020] Figure 1A schematic flowchart of an optional touch detection method provided in an embodiment of this application;
[0021] Figure 2A A schematic diagram of the signal values of each capacitor node in the capacitive node array in a touch screen for an optional touch operation provided in an embodiment of this application;
[0022] Figure 2B A schematic diagram of the signal values of each capacitor node in the capacitive node array in a touch screen for an optional touch operation provided in an embodiment of this application;
[0023] Figure 3 A schematic flowchart of an optional touch detection method provided in an embodiment of this application;
[0024] Figure 4 A schematic flowchart of an optional touch detection method provided in an embodiment of this application;
[0025] Figure 5A This is a schematic diagram illustrating the determination of an optional target area provided in an embodiment of this application;
[0026] Figure 5B A schematic diagram illustrating the determination of an optional target region provided in an embodiment of this application.
[0027] Figure 6A This is a schematic diagram illustrating the determination of an optional target area provided in an embodiment of this application;
[0028] Figure 6B This is a schematic diagram illustrating the determination of an optional target area provided in an embodiment of this application;
[0029] Figure 7 A schematic flowchart of an optional touch detection method provided in an embodiment of this application;
[0030] Figure 8 A schematic diagram illustrating the determination of vertices in target regions at different locations, provided for embodiments of this application;
[0031] Figure 9 A schematic diagram illustrating the method for determining the target region division provided in an embodiment of this application;
[0032] Figure 10 A schematic diagram illustrating the division of the target region as provided in an embodiment of this application;
[0033] Figure 11 A schematic flowchart of an optional touch detection method provided in an embodiment of this application;
[0034] Figure 12 A schematic diagram of the region morphology for determining the target region provided in this application embodiment;
[0035] Figure 13 A schematic flowchart of an optional touch detection method provided in an embodiment of this application;
[0036] Figure 14 A schematic diagram of an optional structure of the touch detection device provided in the embodiments of this application;
[0037] Figure 15 This is an optional structural schematic diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0038] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.
[0039] It should be understood that the phrases "embodiments of this application" or "foreign embodiments" throughout the specification mean that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, "embodiments of this application" or "in the foreign embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely descriptive and do not represent the superiority or inferiority of the embodiments.
[0040] Reference Figure 1 , Figure 1 A touch detection method provided in this application embodiment, applied to an electronic device, includes the following steps:
[0041] Step 101: When a touch operation is detected on the touch screen, determine the touch position on the touch screen based on the touch data generated by the touch operation.
[0042] In this embodiment, the touchscreen is a sensing liquid crystal display device capable of receiving input signals from touch points. The touchscreen is a transparent relative positioning system; when a user touches the screen, the touched location is detected by the touchscreen. Touchscreens can be designed based on different touch technologies such as resistive, capacitive, infrared, and surface acoustic wave technologies; touchscreens are also known as touchscreens.
[0043] Here, taking a capacitive touchscreen as an example, there is a capacitor node at each intersection point of two sets of perpendicularly intersecting electrodes on the capacitive touchscreen. All the capacitor nodes at the intersections can form a capacitor node array. In this node array, the capacitance signal of each capacitor node is used to describe the capacitance value of the node. When a finger touches the touchscreen, the capacitive touch module obtains the capacitance signal through the characteristic that the fingerprint ridges and valleys generate different capacitance voltages on the node array.
[0044] In this embodiment, the touch position can be the location of any capacitor node whose detected capacitance signal value is greater than a preset signal threshold. The preset signal threshold can be a capacitance signal value that can accurately identify the difference between touch and non-touch. The touch position can also be the location of the capacitor node corresponding to the maximum detected capacitance signal value, or the location of the capacitor node corresponding to the maximum signal target value among all signal target values. The signal target value is the difference between the capacitance signal value of the node capacitor collected based on the touch operation and the signal reference value of the node capacitor. This application does not impose specific limitations on this.
[0045] In this embodiment of the application, the electronic device detects a touch operation on the touch screen. Since the capacitance signal value of the capacitor node corresponding to the area touched by the touch operation should be significantly different from the capacitance signal value of the capacitor node in the surrounding area, the touch position of the touch point on the touch screen can be determined based on the touch data generated by the touch operation.
[0046] In some embodiments, after determining the touch position of the touch screen based on the touch data generated by the touch operation in step 101, the electronic device can also obtain the operator identifier of the operator based on the touch operation. Based on the operator identifier, it is determined whether the operator is a valid operator. If so, it is further determined whether the valid operator is a valid touch. If so, it is determined whether the touch position is located at the edge of the touch screen. It should be noted that the operator can be a finger.
[0047] Step 102: If the touch location is located at the edge of the touch screen, construct the target area based on the touch data.
[0048] In this embodiment, if the touch location is at the edge of the touchscreen, constructing a target area based on touch data can be understood as defining or constructing a specific area based on the acquired touch data when it is determined that the touch location is at the edge of the touchscreen. It should be noted that constructing the target area is for further analysis of the nature of the touch operation, such as determining whether a touch at the edge is a normal operation or a mis-touch. Therefore, after determining the target area, subsequent analysis of the characteristics of the target area helps to make corresponding judgments, deciding whether to respond normally to the touch operation or ignore it as a mis-touch.
[0049] In some embodiments, determining whether a touch position is located at the edge of a touch screen can be done by determining whether the touch position is located within a certain range around the touch panel of the touch screen, such as the left, right, top, bottom, upper left corner, upper right corner, lower left corner, or lower right corner.
[0050] Understandably, the touch panel in a touchscreen is usually integrated with the display panel. When determining whether a touch location is at the edge of the touch panel, it can be based on the coordinates of the pixel array on the display panel or the coordinates of the electrode array on the touch panel. As an example, 20 columns of pixels can be selected as a threshold. If the distance between the touch location and the edge of the pixel array does not exceed 20 columns of pixels, the touch location is determined to be at the edge of the touch panel; otherwise, the touch location is determined not to be at the edge of the touch panel. For example, the touch location can be defined as the position of the capacitor node corresponding to the largest signal target value among all signal target values, referring to... Figure 2A As shown, the maximum signal target value is located in the 16th row and 37th column of the electrode array on the touch panel, which indicates that the touch position is located at the lower right edge of the touch panel. (Refer to...) Figure 2B As shown, the maximum signal target value is located in the 16th row and 37th column of the electrode array on the touch panel, which indicates that the touch position is located at the lower right edge of the touch panel. Of course, the embodiments of this application are not limited to the 37th column; the 38th column, the 1st column, or other preset column numbers can also be determined as edge positions.
[0051] Step 103: Based on the regional morphological features and / or regional area features of the target area, determine whether the touch operation is a detection result of an edge accidental touch operation.
[0052] In this embodiment of the application, the regional morphological features can be understood as the shape features of the target region. The shape features include, but are not limited to, the shape, the smoothness of the edge contour, and the length ratio of each side. The shape includes, but is not limited to, a circle, a square, a triangle, or an irregular polygon. The length ratio of each side can be determined based on the proportions determined when the target region has a regular shape.
[0053] Under normal circumstances, different touch operations often correspond to touch area shapes that follow certain patterns. However, the shape of the area generated by accidental touches may differ from these patterns. Therefore, analyzing these shape characteristics can help determine whether the touch operation was an edge accident. For example, a normal click operation may form a relatively regular circular or square touch area shape, while an accidental touch operation may form a triangular touch area shape or an irregular area shape.
[0054] In this embodiment of the application, the area feature is the proportion of effective capacitor nodes within the target area, or, when the target area is of a regular shape, the proportion of the sum of the target signal values among the sub-regions obtained after dividing the target area according to a certain rule.
[0055] It is understood that embodiments of this application can determine whether a touch operation is an edge-related accidental touch based on the regional morphological features of the target area, or based on the regional area features of the target area. Of course, embodiments of this application are not limited to using only the above two detection methods; in some embodiments, both methods can be used simultaneously to detect edge-related accidental touches. For example, after determining that the touch position is located at the edge, the regional morphological features and regional area features of the target area can be used together to determine whether the touch operation is an edge-related accidental touch, thereby further improving the accuracy of edge-related accidental touch detection.
[0056] In this embodiment, the electronic device determines that the touch position is located at the edge of the touch screen. After constructing a target area based on the touch data, it determines the regional morphological features and / or regional area features of the target area, and analyzes the target area based on the regional morphological features and / or regional area features to determine whether the touch operation is a detection result of an edge mis-touch operation. If the detection result indicates that the touch operation is a normal touch operation, the electronic device responds to the touch operation; if the detection result indicates that the touch operation is an edge mis-touch operation, it is ignored in the touch detection result. It should be noted that the touch detection method of this embodiment can be applied to electronic devices such as mobile phones, tablets, and wearable devices. Touch operations identified as edge mis-touches may not be reported to the operating system of the electronic device, thereby ensuring the accuracy of the touch detection results.
[0057] The touch detection method provided in this application determines the touch position of the touch screen based on the touch data generated by the touch operation when a touch operation is detected. If the touch position is located at the edge of the touch screen, a target area is constructed based on the touch data. Based on the regional morphological features and / or regional area features of the target area, the detection result of whether the touch operation is an edge mis-touch operation is determined. In this way, by accurately determining the touch position and constructing a target area for touches located at the edge, and further analyzing based on the regional morphological features and / or regional area features of the constructed target area, it is possible to more finely and accurately distinguish between normal edge touches and mis-touch operations, avoiding treating normal intentional touches at the edge as mis-touches, or treating genuine mis-touches as valid operations, thereby effectively improving the level of touch accuracy judgment in the overall touch interaction, so that users can get a more expected response when operating the touch screen.
[0058] Reference Figure 3As shown in the figure, this application provides a touch detection method applied to an electronic device, the method including the following steps:
[0059] Step 301: When a touch operation is detected on the touch screen, calculate the difference between the signal detection value of each capacitor node in the touch screen and the corresponding signal reference value to obtain the signal target value of each capacitor node.
[0060] The touch data includes signal detection values generated based on touch operations, with the signal reference value being the signal value of the capacitive node when the touch screen is in a stable state.
[0061] In this embodiment, the signal detection value is the capacitance signal value of each capacitor node in the touch screen acquired based on the touch operation, and the touch data includes the signal detection value.
[0062] In this embodiment, the target signal value of a capacitor node is the difference between the detected signal value of the capacitor node and the corresponding reference signal value. To obtain the correct target signal value for each capacitor node, a set of correct reference signal values for each capacitor node needs to be maintained. These reference values can be the original signal values of the capacitor nodes collected when the touchscreen is in a stable state. It should be noted that a stable state refers to the state on the touchscreen where there are no objects such as fingers, styluses, or water droplets that could alter the original signal value.
[0063] In this embodiment, the electronic device acquires the signal detection values of each capacitor node in the capacitor node array and obtains the signal reference value of each capacitor node in the capacitor node array when the touch screen is in a stable state. Further, the difference between the signal detection value and the signal reference value is calculated to obtain the target signal value of each capacitor node in the capacitor node array, such as... Figure 2A and Figure 2B As shown.
[0064] As can be seen from the above, the embodiments of this application take into account the signal value of the capacitor node when the touch screen is in a stable state as the signal reference value. This can effectively eliminate the interference of capacitor node signal fluctuation caused by factors such as differences in the initial state of the device itself and electromagnetic interference in the surrounding environment. This ensures that the determination of the touch position will not be easily affected by changes in the external environment or subtle changes in the state of the device, thereby enhancing the ability to accurately determine the touch position in different usage environments and improving the robustness and reliability of touch detection.
[0065] Step 302: If there is a signal target value greater than the first signal threshold, determine the target capacitor node corresponding to the peak value among all signal target values, and determine the touch position based on the position of the target capacitor node.
[0066] In this embodiment, the first signal threshold is used for an initial determination of whether a touch operation has occurred on the touchscreen. Generally, when the touchscreen is in a stable state, the capacitance signal values of each capacitor node in the capacitor node array are usually negative, but there may also be positive values with relatively small values. Therefore, in order to make an initial determination of whether a touch operation has occurred on the touchscreen, a first signal threshold can be set, which can be any number between 5 and 10.
[0067] In this embodiment, the target capacitor node is the capacitor node corresponding to the peak value or the maximum value among all signal target values greater than the first signal threshold in the capacitor node array. That is, when there is a signal target value greater than the first signal threshold, among all signal target values that meet the above conditions, the signal target value with the largest value, i.e., the peak value, is determined, and the capacitor node corresponding to the peak value is determined as the target capacitor node, and the process continues to refer to... Figure 2A and Figure 2B The maximum value among all target signal values is 965 or 909, located in the 16th row and 37th column of the electrode array on the touch panel. Further, the position of the target capacitor node is determined as the touch position corresponding to the touch operation, or the touch position corresponding to the touch operation is determined through analysis and calculation based on the position of the target capacitor node. Continue referring to... Figure 2A and Figure 2B The touch operation is located in the lower right corner of the touch panel, resulting in a continuous area in the lower right corner of the capacitive node array that is greater than the first signal threshold.
[0068] As described above, the target signal value is obtained by calculating the difference between the signal detection value of the capacitor node and the signal reference value. This determines whether there is a situation where the value is greater than the first signal threshold, thereby locking the target capacitor node corresponding to the peak value and determining the touch position based on its position. In this way, the quantitative analysis method based on the signal change of the capacitor node can find the specific location where the touch occurs more accurately, making the positioning of the touch operation on the screen more accurate.
[0069] Step 303: If the touch position is located at the edge of the touch screen, construct the target area based on the touch data.
[0070] Step 304: Based on the regional morphological features and / or regional area features of the target area, determine whether the touch operation is a detection result of an edge accidental touch operation.
[0071] It should be noted that the descriptions of the same steps and contents as in other embodiments in this embodiment can be found in the descriptions in other embodiments, and will not be repeated here.
[0072] Reference Figure 4As shown, this application provides a touch detection method applied to an electronic device. The method includes steps 401 to 403 and step 405, or steps 401 to 402 and steps 404 to 405:
[0073] Step 401: When a touch operation is detected on the touch screen, determine the touch position on the touch screen based on the touch data generated by the touch operation.
[0074] Step 402: If the touch position is located at the edge of the touch screen, based on the touch data to determine the signal target value of each capacitor node, determine the target capacitor node corresponding to the peak value among all signal target values.
[0075] In this embodiment of the application, the determination of the target signal value of each capacitor node based on touch data in step 402 can be achieved in the following way:
[0076] The difference between the signal detection value of each capacitive node in the touchscreen and its corresponding signal reference value is calculated to obtain the target signal value of each capacitive node. The touch data includes signal detection values generated based on touch operations, and the signal reference value is the signal value of the capacitive node when the touchscreen is in a stable state. Therefore, this embodiment of the application, considering the signal value of the capacitive node when the touchscreen is in a stable state as the signal reference value, can effectively eliminate interference from capacitive node signal fluctuations caused by differences in the initial state of the device itself, electromagnetic interference from the surrounding environment, etc. This ensures that the determination of the touch position is not easily affected by changes in the external environment or subtle changes in the device's state, enhancing the ability to accurately determine the touch position in different usage environments and improving the robustness and reliability of touch detection.
[0077] In this embodiment, the target capacitor node is the capacitor node corresponding to the peak or maximum value among all target signal values in the capacitor node array. (Continue to refer to...) Figure 2A and Figure 2B The maximum value among all target signal values is 965 or 909, which is the capacitor node located in the 16th row and 37th column of the electrode array on the touch panel, and is determined as the target capacitor node.
[0078] Step 403: Determine the connected region formed by the target signal value around the target capacitor node that is greater than the second signal threshold as the target region.
[0079] Understandably, the target capacitor node determined in step 402 can be used as the center to determine the connected region formed by the target signal value around it that is greater than the second signal threshold. For example, the second signal threshold can be 20. (Refer to...) Figure 2A As shown, the continuous region formed by signal target values greater than 20 around the maximum value 965 among all signal target values can be considered as a connected region, thus obtaining... Figure 5A The target area shown is 501. Similarly, refer to... Figure 2B As shown, the continuous region formed by signal target values greater than 20 around the maximum value 909 among all signal target values can be considered as a connected region, thus obtaining... Figure 5B The target area shown is 502.
[0080] As can be seen from the above, the embodiments of this application first determine the target capacitor node corresponding to the peak value in the signal target value, and then use it as the core to determine the target area based on the connected region formed by the surrounding signal target values that are greater than the second signal threshold. In this way, based on signal quantization analysis, the target area closely related to the touch operation can be clearly and accurately divided, avoiding problems such as the area being too large or too small, or inaccurate, and providing a reliable basis for subsequent accurate judgment of the nature of the touch operation.
[0081] Step 404: Using the target capacitor node as the center, perform a diffusion search in all directions to determine the first capacitor node that meets the search conditions. The area enclosed by the target row and column where the first capacitor node is located and the edge of the touch screen is determined as the target area.
[0082] The search conditions include: there is a signal target value greater than the second signal threshold in the first target row and the first target column where the capacitor node is located; the signal target values of the capacitor nodes in the second target row adjacent to the first target row are all less than or equal to the second signal threshold; the signal target values of the capacitor nodes in the second target column adjacent to the first target column are all less than or equal to the second signal threshold; and the second target row and the second target column are both located in the direction away from the target capacitor node in the first target row and the first target column.
[0083] In this embodiment, after determining the target capacitor node, the electronic device uses the target capacitor node as the starting point and searches outwards according to certain rules, filtering out the first capacitor node that meets the requirements through set search conditions. Further, the area enclosed by the target row and column where the first capacitor node is located, together with the edge of the touchscreen, is defined as the target area.
[0084] In a feasible scenario, referencing Figure 2AAs shown, after determining the capacitor node corresponding to the maximum value of 965 among all signal target values as the target capacitor node, a diffusion search is performed in all directions to find the first capacitor node that meets the search conditions. The first capacitor node is located in the 14th row and 34th column of the electrode array on the touch panel. It should be noted that there are signal target values greater than the second signal threshold 20 in the first target row (row 14) where the first capacitor node is located, and there are signal target values greater than the second signal threshold 20 in the first target column (column 34) where the first capacitor node is located. Furthermore, the signal target values of the capacitor nodes in the second target row (row 13) adjacent to the first target row (row 14) are all less than or equal to the second signal threshold 20, and the signal target values of the capacitor nodes in the second target column (column 33) adjacent to the first target column (column 34) are all less than or equal to the second signal threshold 20. Further, the area enclosed by the target row (row 14) and the target column (column 34) where the first capacitor node is located, together with the edge of the touch screen, is determined as the target area, as shown below. Figure 6A The target area shown is 601. (Targeting...) Figure 2B As shown, by using the same method described above, the following is obtained: Figure 6B The target area shown is 602.
[0085] As described above, this embodiment first uses the target capacitor node as the center and expands the search outwards according to strict and clear search conditions to determine the first capacitor node. Then, the target area is enclosed by its row and column and the edge of the touch screen, making the delineation of the target area more accurate and scientific. It can closely determine the corresponding area around the actual influence range of the touch operation, avoiding the arbitrariness and ambiguity of the area delineation, and providing a reliable and accurate analysis range for subsequent accurate judgment of the nature of the touch operation (such as whether it is an edge touch). Secondly, by setting specific search conditions, it is ensured that the signal target values of capacitor nodes in adjacent rows and columns must meet the corresponding magnitude relationship. In this way, the influence of capacitor node signal changes caused by weak surrounding interference, changes in non-touch related signals, etc. can be filtered out, which greatly enhances the anti-interference ability of determining the core touch area in complex environments and ensures the accuracy and stability of the area determination.
[0086] In some embodiments, the search criteria may further include: the signal target value in the third target row that is adjacent to the maximum signal target value in the first target row is greater than a fifth signal threshold; the signal target value in the third target column that is adjacent to the maximum signal target value in the first target column is greater than a fifth signal threshold; both the third target row and the third target column are located in the direction of the first target row and the first target column that are closer to the target capacitor node; and the fifth signal threshold is greater than a second signal threshold.
[0087] In this embodiment of the application, in order to ensure the accuracy of the constructed target area, a fifth signal threshold can also be set, which can be 100.
[0088] In a feasible scenario, referencing Figure 2A After identifying the capacitor node corresponding to the maximum value of 965 among all signal target values as the target capacitor node, a search is performed outwards to find the first capacitor node that meets the search criteria. The first capacitor node is located in the 14th row and 34th column of the electrode array on the touch panel. It should be noted that there are signal target values greater than the second signal threshold 20 in the first target row (row 14) and the first target column (column 34). Simultaneously, the signal target values of the capacitor nodes in the adjacent second target row (row 13) are all less than or equal to the second signal threshold 20, and the signal target values of the capacitor nodes in the adjacent second target column (column 33) are all less than or equal to the second signal threshold 20. Simultaneously, in the third target row (row 15), the signal target value 815, adjacent to the maximum signal target value 115 in the first target row (row 14), is greater than the fifth signal threshold 100. Similarly, in the third target column (column 35), the signal target value 532, adjacent to the maximum signal target value 42 in the first target column (column 34), is greater than the fifth signal threshold 100. Further, the area enclosed by the target row (row 14) where the first capacitor node is located, the target column (column 34), and the edge of the touchscreen is defined as the target area. Figure 6A The target area shown is 601. (Targeting...) Figure 2B As shown, by using the same method described above, the following is obtained: Figure 6B The target area shown is 602.
[0089] As can be seen from the above, by setting specific search conditions, the target signal values of capacitor nodes in adjacent rows and columns must meet the corresponding size relationship. In this way, the influence of capacitor node signal changes caused by factors such as weak surrounding interference and changes in non-touch related signals can be filtered out, ensuring that the parts included in the target area are closely related to the current touch operation and meet the characteristics. This greatly enhances the anti-interference ability of determining the core touch area in complex environments and ensures the accuracy and stability of the area determination.
[0090] Step 405: Based on the regional morphological features and / or regional area features of the target area, determine whether the touch operation is a detection result of an edge accidental touch operation.
[0091] It should be noted that the descriptions of the same steps and contents as in other embodiments in this embodiment can be found in the descriptions in other embodiments, and will not be repeated here.
[0092] Reference Figure 7As shown in the figure, this application provides a touch detection method applied to an electronic device, the method including the following steps:
[0093] Step 701: When a touch operation is detected on the touch screen, determine the touch position on the touch screen based on the touch data generated by the touch operation;
[0094] Step 702: If the touch location is located at the edge of the touch screen, construct the target area based on the touch data;
[0095] Step 703: Obtain the target signal value of each capacitor node within the target area, and determine whether the target area should be divided.
[0096] The target signal value is determined based on the signal detection value of the capacitor node, and the touch data includes the signal detection value generated based on the touch operation.
[0097] In this embodiment, the method for obtaining the target signal value of each capacitor node can be obtained through the aforementioned embodiments, and will not be repeated here.
[0098] In this embodiment of the application, the determination result includes the result of dividing the target area and the result of not dividing the target area.
[0099] In some embodiments, whether to divide the target region can also be based on the shape of the target region. If the target region has a target shape, it can be divided, wherein the target shape can be a square; if the target region has another shape, it is not divided. Of course, the target region can also be divided based on other conditions, such as whether the target region is a regular shape or an irregular shape; this application does not impose specific restrictions on this.
[0100] Step 704: Determine the area characteristics of the target region based on the signal target value and the determination result.
[0101] In this embodiment, different determination results result in different area characteristics of the target region. Therefore, the area characteristics are determined by combining the determination result of whether the target region is divided, so that the target region can be flexibly processed according to the actual situation. For example, the target region can be reasonably divided and the situation of each sub-region can be analyzed. Through the signal target values of each sub-region, the judgment of touch operation can be further refined, making the detection results more consistent with the actual situation.
[0102] In some embodiments, step 704, which determines the area characteristics of the target region based on the signal target value and the determination result, can be achieved through the following steps:
[0103] Step 741: If the result is to divide the target region, obtain the first vertex and the second vertex corresponding to the location of the target region.
[0104] In practical applications, the target area can be located on the top, bottom, left, or right edge of the touchscreen. Alternatively, it can be located at the top left, top right, bottom left, or bottom right corner of the touchscreen edge. For example, continue referring to... Figure 6A and Figure 6B The target area is located at the bottom right corner of the touchscreen edge.
[0105] In this embodiment, the first vertex and the second vertex are vertices used to divide the target region. It is understood that the positions of the first vertex and the second vertex corresponding to the target region may be the same or different depending on the location of the target region. (Refer to...) Figure 8 As shown, if the target area is located at the top left or bottom right corner of the touchscreen edge, the first vertex is the signal target value of the capacitive node located at the bottom left (or top right) corner of the target area, and the second vertex is the signal target value of the capacitive node located at the top right (or bottom left) corner of the target area; if the target area is located at the bottom left or top right corner of the touchscreen edge, the first vertex is the signal target value of the capacitive node located at the top left (or bottom right) corner of the target area, and the second vertex is the signal target value of the capacitive node located at the bottom right (or top left) corner of the target area. For example, continuing to refer to... Figure 6A and Figure 6B The target area is located at the bottom right corner of the touchscreen edge. Figure 6A The first vertex of the target region is the location of the capacitor node with a signal target value of 42, which is the 17th row and 34th column. The second vertex is the location of the capacitor node with a signal target value of 115, which is the 14th row and 38th column. Figure 6B The first vertex of the target region is the location of the capacitor node with a signal target value of 65, which is in the 17th row and 34th column. The second vertex is the location of the capacitor node with a signal target value of 40, which is in the 13th row and 38th column.
[0106] Step 742: Divide the target region into a first sub-region and a second sub-region by connecting the first vertex and the second vertex.
[0107] Understandably, dividing the target region can be achieved using the line connecting the first and second vertices. Of course, the target region can also be divided based on the positions of the first and second vertices (X1, Y1) and... Figure 9 As shown, y = k*x + b is used to calculate a straight line, thereby dividing the target region. (Refer to...) Figure 10As shown, the first sub-region 1001 and the second sub-region 1002 are obtained.
[0108] Step 743: Determine the area characteristics of the region based on the signal target value in the first sub-region and the signal target value in the second sub-region.
[0109] The second sub-region is the sub-region containing the target value of the maximum signal.
[0110] In this embodiment, the area feature can be determined based on the ratio between the sum of all signal target values in the first sub-region and the sum of all signal target values in the second sub-region. Alternatively, the area feature can also be determined based on the ratio between the sum of signal target values of capacitor nodes not connected in the first sub-region and the sum of signal target values of capacitor nodes not connected in the second sub-region. This application does not impose specific limitations on this.
[0111] In some embodiments, step 743, based on the signal target value in the first sub-region and the signal target value in the second sub-region, determines the region area characteristics through the following steps:
[0112] Step 7431: Accumulate and sum the signal target values of the capacitor nodes that do not pass through the connection in the first sub-region to obtain the first accumulated sum;
[0113] Step 7432: Accumulate and sum the signal target values of the capacitor nodes that do not pass through the connection in the second sub-region to obtain the second accumulated sum;
[0114] Step 7436: Determine the ratio between the second cumulative sum and the first cumulative sum as the regional area feature.
[0115] In this embodiment of the application, after dividing the target area into two sub-regions, the sum of the signal target values of the capacitor nodes that are not connected in the first sub-region is calculated to obtain a first cumulative sum; the sum of the signal target values of the capacitor nodes that are not connected in the second sub-region containing the maximum signal target value is calculated to obtain a second cumulative sum; the ratio between the second cumulative sum and the first cumulative sum is determined as the area feature of the region.
[0116] As described above, by summing the target signal values of the unconnected capacitive nodes in the first and second sub-regions respectively, the originally complex touch area situation is broken down and quantitatively analyzed in greater detail. Different touch operations cause different changes in the capacitive node signals in each sub-region, allowing for the capture of these differences from a more microscopic perspective. This enables more accurate differentiation of different types of touch behaviors and effectively improves the recognition of touch area features. Furthermore, determining the area characteristics based on the ratio of the sums of sub-regions provides more valuable data for touch detection. In practical applications, normal touch operations often keep this ratio within a relatively stable and reasonable range, while accidental or abnormal touches may cause the ratio to deviate significantly from the normal range. By monitoring this ratio, the nature of the current touch operation can be more accurately determined, reducing the probability of misjudgment and thus optimizing the accuracy of touch detection, making the device's response to touch more consistent with the user's true intentions.
[0117] In some embodiments, step 743, based on the signal target value in the first sub-region and the signal target value in the second sub-region, determines the region area characteristics, and can also be implemented through the following steps:
[0118] If the result determines that the target area is not divided, the ratio between the number of capacitor nodes whose signal target value is greater than the third signal threshold and the total number of capacitor nodes in the target area is determined as the area feature of the target area.
[0119] In this embodiment of the application, the third signal threshold is used to determine the effective capacitor node. The third signal threshold is greater than the second signal threshold and less than the fifth signal threshold.
[0120] In this embodiment, if the result determines that the target area is not divided, the first number of valid capacitive nodes with a signal target value greater than a third signal threshold and the total number of capacitive nodes in the target area are obtained. The ratio between the first number and the total number is calculated to obtain the area feature of the target area. Thus, the proportion of valid capacitive nodes can be used to effectively determine whether the current touch operation is a mis-touch operation.
[0121] Step 705: Based on the determined results and area characteristics, determine whether the touch operation is a detection result of an edge accidental touch operation.
[0122] Here, step 705 determines whether the touch operation is a detection result of an edge accidental touch operation based on the determined result and the area characteristics. This can be achieved through the following steps:
[0123] Obtain and determine the ratio threshold corresponding to the result; based on the relationship between the ratio and the corresponding ratio threshold, determine whether the touch operation is a detection result of an edge accidental touch operation.
[0124] In this embodiment of the application, different determination results correspond to different ratio thresholds. The determination result that divides the target area corresponds to the first ratio threshold, and the determination result that does not divide the target area corresponds to the second ratio threshold. It should be noted that the first ratio threshold is greater than 1, such as 10, and the second ratio threshold is greater than 0 and less than 1, such as 0.7.
[0125] Understandably, if the determined result is to divide the target region and obtain a first ratio threshold corresponding to the determined result, and if the ratio corresponding to the determined result is greater than the first ratio threshold, then... Figure 10 In Figure A, it's clear that the ratio corresponding to the capacitance data of the accidental touch is relatively large, thus confirming the touch operation as an edge-related accidental touch. This touch operation is then suppressed and not reported to the system to prevent "ghost hand" issues (where the user operates the screen without actually touching it). If the ratio corresponding to the determined result is less than or equal to a first ratio threshold, such as... Figure 10 In Figure B, it is clear that the ratio corresponding to the capacitance data of the false touch is relatively small. Therefore, it can be determined that the touch operation is a normal touch operation detection result, and no suppression operation is required. The system operation can be reported.
[0126] Understandably, if the determined result is that the target region is not divided, a second ratio threshold corresponding to the determined result is obtained; if the ratio corresponding to the determined result is less than or equal to the second ratio threshold, such as... Figure 6A It is quite obvious that the ratio corresponding to the capacitance data of this accidental touch is relatively small, thus confirming that the touch operation is a detection result of an edge accidental touch. This touch operation is suppressed and cleared, and no system reporting is performed to avoid the "ghost hand" problem, where the user operates the capacitive screen without actually doing so. If the ratio corresponding to the determined result is greater than a second ratio threshold, such as... Figure 6B It is clear that the ratio corresponding to the capacitance data of the accidental touch is relatively large, thus confirming that the touch operation is a normal touch operation detection result, and no suppression operation is required. The system operation can be reported.
[0127] It should be noted that the descriptions of the same steps and contents as in other embodiments in this embodiment can be found in the descriptions in other embodiments, and will not be repeated here.
[0128] Reference Figure 11 As shown, this application provides a touch detection method applied to an electronic device. The method includes the following steps: 1101 to 1104, or 1101 to 1103 and 1105.
[0129] Step 1101: When a touch operation is detected on the touch screen, determine the touch position on the touch screen based on the touch data generated by the touch operation;
[0130] Step 1102: If the touch location is at the edge of the touch screen, construct the target area based on the touch data;
[0131] Step 1103: Determine the regional morphology of the target region as the regional morphological feature of the target region, based on the regional morphological features of the signal target value that is greater than the fourth signal threshold within the target region.
[0132] The target signal value is determined based on the signal detection value of the capacitor node, and the touch data includes the signal detection value generated based on the touch operation.
[0133] In this embodiment of the application, the fourth signal threshold is used to clearly distinguish whether it is a signal value of accidental touch operation. The fourth signal threshold is greater than the fifth signal threshold, and the fourth signal threshold can be 400.
[0134] In this embodiment, the method for obtaining the target signal value of each capacitor node can be obtained through the aforementioned embodiments, and will not be repeated here.
[0135] In this embodiment of the application, after determining the target area, the touch area where the signal target value greater than the fourth signal threshold is presented within the target area is determined, and the region shape of the touch area is determined. Here, the region shape can refer to the shape presented by the signal target value greater than the fourth signal threshold. Further, this region shape is used as the region shape feature of the target area.
[0136] Step 1104: If the region morphological feature is the first morphology, determine that the touch operation is the detection result of a normal edge touch operation;
[0137] Step 1105: If the region morphological feature is the second morphology, determine that the touch operation is the detection result of an edge accidental touch operation.
[0138] Understandable, generally speaking, refer to Figure 6A , Figure 6B as well as Figure 12 As shown, when the touch operation is a normal edge touch operation, the touch area 1102 within the target area 602 presents a square shape, as... Figure 12 As shown in B; when the touch operation is an edge accidental touch operation, the area shape of the touch area 1101 within the target area 601 is triangular, as shown in Figure B. Figure 12As shown in A in the diagram. Therefore, by determining the regional morphological features of the target area, if the regional morphological features are of the first type, such as a square, the touch operation is determined to be a normal edge touch operation; if the regional morphological features are of the second type, such as a triangle, the touch operation is determined to be a false edge touch operation. In this way, the regional morphological features of the target area can effectively determine whether the current touch operation is a false touch operation.
[0139] It should be noted that the descriptions of the same steps and contents as in other embodiments in this embodiment can be found in the descriptions in other embodiments, and will not be repeated here.
[0140] This application uses one implementation scenario as an example to further illustrate a touch detection method provided in the embodiments of this application, which is applied to electronic devices, with reference to... Figure 13 As shown, this method can be implemented in the following way.
[0141] First, capacitance data 1301 is acquired. When a touch operation is detected on the touchscreen, the touch chip in the touchscreen acquires the capacitance data of the current frame (corresponding to the touch data mentioned above).
[0142] Next, the coordinates of the current frame (1302) are calculated. The touch position X and Y of the current frame (corresponding to the touch position mentioned above) are calculated using the touch algorithm. It should be noted that the touch algorithm may include calculating the difference between the currently acquired capacitance data (corresponding to the signal detection value mentioned above) and the reference capacitance data acquired when the touch screen is in a stable state (corresponding to the signal reference value mentioned above), thereby obtaining the capacitance data corresponding to each capacitance node in the capacitance node array of the touch screen (corresponding to the signal target value mentioned above), as shown in Figure 2. The reference capacitance data is obtained in advance.
[0143] Next, the system iterates through and queries the valid finger identifier (ID) 1303. After obtaining the coordinates of the current frame, the process of calculating the anti-mistouch information begins. Initially, it iterates through and queries the valid finger IDs (corresponding to the operation body identifiers mentioned above). It should be noted that the anti-mistouch optimization method only performs statistical information and processing on valid touches; no operation is performed on the IDs of invalid touches.
[0144] The capacitive touchscreen supports a total of 10 fingers. The process begins by determining if the current finger ID is a valid touch (1304). If the current finger ID is determined to be an invalid touch, the process skips to the next finger. If the current finger ID is determined to be a valid touch, the process continues to determine if the current finger's touch location is within the edge area (1305). If the touch location is not within the edge area, the process skips to the next finger. If the touch location is within the edge area, such as... Figure 2A and Figure 2BThe area shown is where the finger accidentally touched the edge corner, so a rectangle 1306 is constructed for the finger touch position.
[0145] Here, the process of constructing the rectangle includes: Figure 2A Taking an example, the process first searches for the maximum value (corresponding to the maximum or peak value mentioned above) of the full-screen capacitance data. For instance, if the maximum value is 965, after finding this maximum value, the search expands outwards along the maximum value node, including capacitance nodes greater than 20 within the search area. After the search is complete, there will be a boundary node at the lower left corner and a boundary node at the upper right corner of the touch area, thus constructing a rectangular overall shape as follows: Figure 6A The image shows a rectangular frame.
[0146] Furthermore, the bottom left corner of the rectangle is determined to be node 42, which is row 17, column 34, and the top right corner is determined to be node 115, which is row 14, column 38. When determining the positions of the top left and bottom right corners of the rectangle, a straight line can be calculated using y = k*x + b. That is, given (X1,Y1) such as (17,34) and (X2,Y2) such as (14,38), a straight line can be calculated, thus obtaining the dividing line 1307 of the rectangle.
[0147] linearK=((Y2-Y1)*1.0) / (X2-X1);
[0148] linearB = Y1 - linearK*X1;
[0149] After calculating the dividing line using the formula, the rectangular dividing line is now complete. The subsequent calculation of the capacitor node positions in the two regions can be obtained simply by calculating the areas above and below the line. Figure 10 A in the diagram shows the segmented region. The capacitance values of the capacitor nodes in different sub-regions can be obtained by using straight lines.
[0150] It should be noted that capacitive touchscreens typically have four corners. The system identifies the location of the user in a corner and then divides the area accordingly, such as... Figure 8 The four corners shown are divided in different directions, requiring specific directional area division based on the corner positions.
[0151] Furthermore, the sum of the capacitance values of the capacitor nodes in the two segmented sub-regions is calculated separately. The result is the sum of the capacitance values of the capacitor nodes in region 1001 (SumA) and region 1002 (SumB), which is 1308. Then, the ratio value is calculated by dividing the sum of the data skewed towards the corners by the sum of the capacitance data skewed towards the inside, i.e., calculating the ratio SumB / SumA, resulting in the rectangle ratio value rectScale1309. For example, from... Figure 10 It is quite obvious from A in the data that the SumB / SumA ratio corresponding to the accidental capacitor contact data will be very large; from Figure 10 In section B, it's clear that the proportions are small after segmentation; the size of these proportions can distinguish between accidental and genuine touches. Figure 10 Figure A shows the capacitance data of a click operation under accidental finger touch conditions; Figure 10 Figure B shows the capacitance data of a click operation when the finger is not accidentally touched.
[0152] Finally, determine if rectScale is greater than 10? 1310 If yes, then suppress and clear the finger, and do not report to the system 1311 to avoid the "ghost hand" problem caused by accidental operation. The so-called ghost hand problem is that the user does not operate the capacitive screen but operates it on their own. If no, then it is determined to be a normal finger and no suppression operation is required 1312.
[0153] In summary, this method mainly proposes to distinguish whether a finger touch is a false touch based on the ratio of the sum of the capacitance values of the capacitor nodes in two regions divided by data within the rectangle. If the ratio determines that the touch operation is a false touch, the touch needs to be suppressed and the coordinates should not be reported, otherwise false reporting will cause the application to generate false response operations. If the ratio determines that the touch operation is not a false touch, the finger touch does not need to be suppressed.
[0154] As described above, when a finger touches an edge area, a rectangular map of the entire area touched by the finger is obtained through region search. This rectangular map is then divided into two regions. The sum of the node capacitance values of the two regions is calculated separately, and the ratio of the sum of the capacitance values of the two regions is calculated. The magnitude of this ratio is used to distinguish whether the finger touches the edge or corner, which can solve the problem of false alarms caused by users accidentally touching the edge or corner. This can prevent users from performing touch operations when they do not actually touch the edge, effectively improve the accidental touch interception rate, and thus improve the user's touch experience.
[0155] In some embodiments, this application can also distinguish whether a touch is accidental by recognizing the shape of the capacitance data touched by a finger; and distinguish whether a touch operation is accidental by judging the shape of the touch capacitance data, such as... Figure 12 In Figure B, normal touch data is presented as a square, while... Figure 12 The accidental touch data for A in the diagram is presented as a triangular shape, and the shape can be used to effectively determine whether the current touch operation is an accidental touch.
[0156] In some embodiments, this application can also determine the value by dividing the number of nodes with capacitance data exceeding 50 within the rectangle by the ratio of the total number of nodes in the rectangle; still using Figure 10For example, it is obvious that Figure 10 The ratio corresponding to A in the figure is less than Figure 10 The proportion corresponding to B in the figure. Figure 10 The proportion corresponding to B in the figure is close to 100%, while Figure 10 The proportion corresponding to A in the table is approximately 50%; the threshold is set to 70%. This percentage of valid nodes can effectively determine whether a touch operation was accidental.
[0157] It should be noted that the descriptions of the same steps and contents as in other embodiments in this embodiment can be found in the descriptions in other embodiments, and will not be repeated here.
[0158] Reference Figure 14 , Figure 14 A touch detection device 14 provided for embodiments of this application includes:
[0159] The determining module 1401 is used to determine the touch position of the touch screen based on the touch data generated by the touch operation when a touch operation for the touch screen is detected.
[0160] Processing module 1402 is used to construct a target area based on touch data if the touch position is located at the edge of the touch screen;
[0161] The determination module 1401 is also used to determine whether the touch operation is a detection result of an edge accidental touch operation based on the regional morphological features and / or regional area features of the target area.
[0162] This application provides an electronic device, including a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the program, it implements some or all of the steps in the above-described method.
[0163] This application provides a storage medium that stores one or more computer programs, which can be executed by one or more processors to implement some or all of the steps in the above-described method. The storage medium can be transient or non-transient.
[0164] This application provides a computer program including computer-readable code, wherein when the computer-readable code is executed in an electronic device, a processor in the electronic device performs some or all of the steps in the above-described method.
[0165] This application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program. When the computer program is read and executed by a computer, it implements some or all of the steps in the above-described method. This computer program product can be implemented specifically through hardware, software, or a combination thereof. In some embodiments, the computer program product is specifically embodied as a computer storage medium; in other embodiments, the computer program product is specifically embodied as a software product, such as a software development kit (SDK), etc.
[0166] It should be noted that the descriptions of the various embodiments above tend to emphasize the differences between them, while their similarities or commonalities can be referred to interchangeably. The descriptions of the above embodiments of the device, storage medium, computer program, and computer program product are similar to the descriptions of the above method embodiments and have similar beneficial effects. For technical details not disclosed in the embodiments of the device, storage medium, computer program, and computer program product of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0167] Figure 15 This is a hardware entity diagram of an electronic device provided in an embodiment of this application, such as... Figure 15 As shown, the hardware entity of the electronic device 15 includes a processor 1501 and a memory 1502, wherein the memory 1502 stores a computer program that can run on the processor 1501, and the processor 1501 executes the program to perform the following steps.
[0168] When a touch operation is detected on the touch screen, the touch position on the touch screen is determined based on the touch data generated by the touch operation;
[0169] If the touch location is at the edge of the touchscreen, the target area is constructed based on the touch data;
[0170] Based on the regional morphological features and / or regional area features of the target area, the detection result determines whether the touch operation is an edge accidental touch operation.
[0171] The memory 1502 stores computer programs that can run on the processor. The memory 1502 is configured to store instructions and applications that can be executed by the processor 1501. It can also cache data to be processed or already processed (e.g., image data, audio data, voice communication data and video communication data) in the processor 1501 and various modules in the electronic device 15. It can be implemented by flash memory or random access memory (RAM).
[0172] The processor 1501 executes the program to implement the steps of any of the above-mentioned touch detection methods. The processor 1501 typically controls the overall operation of the electronic device 15.
[0173] This application provides a computer storage medium storing one or more programs that can be executed by one or more processors to implement the steps of the touch detection method as described in any of the above embodiments.
[0174] It should be noted that the descriptions of the storage medium and device embodiments above are similar to the descriptions of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0175] The aforementioned processor can be at least one of the following: Application Specific Integrated Circuit (ASIC), Digital Signal Processor (DSP), Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), Central Processing Unit (CPU), Controller, Microcontroller, and Microprocessor. It is understood that other electronic devices can also implement the functions of the aforementioned processor, and this application does not specifically limit the specific implementation.
[0176] The aforementioned computer storage media / memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM), etc.; or it can be various terminals that include one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.
[0177] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above steps / processes do not imply a sequential order of execution; the execution order of each step / process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above embodiments of this application are merely descriptive and do not represent the superiority or inferiority of the embodiments.
[0178] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0179] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.
[0180] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.
[0181] In addition, each functional unit in the various embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.
[0182] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.
[0183] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence or the part that contributes to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an in-vehicle terminal (which may be a personal computer, server, or network device, etc.) to execute all or part 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 mobile storage devices, ROM, magnetic disks, or optical disks.
[0184] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
Claims
1. A touch detection method, characterized in that, The method includes: Upon detecting a touch operation on the touchscreen, the touch position on the touchscreen is determined based on the touch data generated by the touch operation; If the touch position is located at the edge of the touch screen, a target area is constructed based on the touch data; Based on the regional morphological features and / or regional area features of the target area, the detection result of whether the touch operation is an edge accidental touch operation is determined.
2. The method of claim 1, wherein, Determining the touch position of the touch screen based on the touch data generated by the touch operation includes: The difference between the signal detection value of each capacitor node in the touch screen and the corresponding signal reference value is calculated to obtain the signal target value of each capacitor node; wherein, the touch data includes the signal detection value generated based on the touch operation, and the signal reference value is the signal value of the capacitor node when the touch screen is in a stable state; If there is a target signal value greater than the first signal threshold, determine the target capacitor node corresponding to the peak value among all target signal values, and determine the touch position based on the position of the target capacitor node.
3. The method according to claim 1 or 2, characterized in that, The construction of the target area based on the touch data includes: Based on the touch data, the target capacitor node corresponding to the peak value among all target signal values is determined. The connected region formed by the target signal value around the target capacitor node that is greater than the second signal threshold is defined as the target region; or, With the target capacitor node as the center, a diffusion search is performed in all directions to determine the first capacitor node that meets the search conditions. The area enclosed by the target row and target column where the first capacitor node is located and the edge of the touch screen is determined as the target area. The search conditions include: there is a signal target value greater than the second signal threshold in the first target row and the first target column where the capacitor node is located; the signal target values of the capacitor nodes in the second target row adjacent to the first target row are all less than or equal to the second signal threshold; the signal target values of the capacitor nodes in the second target column adjacent to the first target column are all less than or equal to the second signal threshold; and the second target row and the second target column are both located in the direction away from the target capacitor node in the first target row and the first target column.
4. The method according to claim 1 or 2, characterized in that, The detection result of determining whether the touch operation is an edge accidental touch operation based on the area characteristics of the target region includes: Obtain the target signal value of each capacitor node within the target area, and determine whether the target area is divided, wherein the target signal value is determined based on the signal detection value of the capacitor node, and the touch data includes the signal detection value generated based on the touch operation; Based on the target signal value and the determination result, the area characteristics of the target region are determined; Based on the determination result and the area characteristics, it is determined whether the touch operation is a detection result of an edge accidental touch operation.
5. The method of claim 4, wherein, The step of determining the area characteristics of the target region based on the signal target value and the determination result includes: If the result is determined to be the division of the target region, obtain the first vertex and the second vertex corresponding to the position of the target region; The target region is divided by the line connecting the first vertex and the second vertex to obtain a first sub-region and a second sub-region; The area characteristics of the region are determined based on the signal target value in the first sub-region and the signal target value in the second sub-region; wherein the second sub-region is the sub-region containing the maximum signal target value.
6. The method of claim 5, wherein, Determining the area feature based on the signal target value in the first sub-region and the signal target value in the second sub-region includes: The signal target values of the capacitor nodes in the first sub-region that do not pass through the connection are summed to obtain the first sum. The target signal values of the capacitor nodes in the second sub-region that do not pass through the connection are summed to obtain a second sum. The ratio between the second sum and the first sum is determined as the area feature of the region.
7. The method of claim 4, wherein, The step of determining the area characteristics of the target region based on the signal target value and the determination result includes: If the result determines that the target region is not divided, the ratio between the number of capacitor nodes whose signal target value is greater than the third signal threshold and the total number of capacitor nodes in the target region is determined as the area feature of the target region.
8. The method according to claim 6 or 7, characterized in that, Based on the determination result and the area characteristics, the detection result of whether the touch operation is an edge accidental touch operation is determined, including: Obtain the ratio threshold corresponding to the determined result; Based on the relationship between the ratio and the ratio threshold, the detection result of whether the touch operation is an edge accidental touch operation is determined.
9. The method of claim 1 or 2, wherein, The detection result of determining whether the touch operation is an edge accidental touch operation based on the regional morphological features of the target area includes: The region shape of the signal target value greater than the fourth signal threshold within the target area is determined as the region shape feature of the target area, wherein the signal target value is determined based on the signal detection value of the capacitor node, and the touch data includes the signal detection value generated based on the touch operation; If the morphological features of the region are the first morphology, the detection result of the touch operation is determined to be a normal edge touch operation; If the morphological features of the region are the second type, the touch operation is determined to be a detection result of an edge accidental touch operation.
10. An electronic device, comprising: The electronic device includes: a processor, a memory, and a communication bus; The communication bus is used to realize the communication connection between the processor and the memory; The processor is used to execute a touch detection program stored in the memory to implement the touch detection method as described in any one of claims 1 to 9.