Touch detection method and device for touch screen, and storage medium

By determining the operation type on the touch screen and applying appropriate filtering algorithms to process the touch data, the problem of misjudgment caused by touch jitter is solved and the accuracy of touch recognition and user experience are improved.

CN112286392BActive Publication Date: 2025-01-21BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011186372.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-29
Publication Date
2025-01-21
Estimated Expiration
2040-10-29

AI Technical Summary

Technical Problem

During the touch operation, the jitter of the touch is prone to misjudgment of touch commands, reducing the experience of operation.

Method used

When a touch operation is detected on the touch screen, the operation type is determined and an appropriate filtering algorithm (such as ring filtering or linear filtering) is selected according to the type to filter the touch data to remove data generated by jitter.

Benefits of technology

It improves the accuracy of touch recognition, reduces misjudgments due to jitter, and improves the user's operating experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112286392B_ABST
    Figure CN112286392B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a touch detection method and device for a touch screen, and a storage medium. The method is applied to a terminal, and includes: when a touch operation is detected on the touch screen, determining the operation type of the touch operation; determining a filtering algorithm according to the operation type; filtering the touch data generated by the touch screen according to the determined filtering algorithm to obtain filtered touch data; and reporting a touch event according to the filtered touch data. The technical solution of the embodiment of the present disclosure distinguishes the operation type of the touch operation by comparing the first and last two frames of data of the touch operation, and adopts different filtering algorithms for different types, so as to process the touch data in a targeted manner and reduce the impact of jitter during the touch operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to electronic technology, and in particular to a touch detection method and device for a touch screen, and a storage medium. Background Art

[0002] With the continuous development of electronic technology, people have higher and higher requirements for the human-computer interaction performance of smart terminals. Touch screens have evolved from performing simple button operations to performing various operations through various gestures such as clicking and sliding. At the same time, with the diversification of electronic device functions, the demand for accurate recognition of touch operations has gradually increased. For example, electronic games on smartphones include various touch operations to perform complex operations. However, during the touch operation, the jitter of the touch can easily cause misjudgment of the touch command, reducing the operating experience. Summary of the invention

[0003] The present invention provides a touch detection method and device for a touch screen, and a storage medium.

[0004] According to a first aspect of an embodiment of the present disclosure, a touch detection method for a touch screen is provided, the method being applied to a terminal, comprising:

[0005] When the touch screen detects a touch operation, determining an operation type of the touch operation;

[0006] Determining a filtering algorithm according to the operation type;

[0007] According to the determined filtering algorithm, the touch data generated by the touch screen is filtered to obtain filtered touch data;

[0008] A touch event is reported according to the filtered touch data.

[0009] In some embodiments, when the touch screen detects a touch operation, determining the operation type of the touch operation includes:

[0010] The operation type of the touch operation is determined according to similarity between a first frame of touch data and a last frame of touch data generated by the touch screen based on the touch operation.

[0011] In some embodiments, determining the operation type of the touch operation according to the similarity between the first frame touch data and the last frame touch data generated by the touch screen based on the touch operation includes:

[0012] If the similarity between the first frame touch data and the last frame touch data is greater than or equal to a similarity threshold, it is determined that the operation type is a click operation.

[0013] In some embodiments, determining a filtering algorithm according to the operation type includes:

[0014] If the operation type is the click operation, it is determined that the filtering algorithm is a ring filter; the ring filter is a filtering algorithm that filters out touch data at an edge position of a touch area where the touch operation acts.

[0015] In some embodiments, filtering the touch data generated by the touch screen according to the determined filtering algorithm to obtain filtered touch data includes:

[0016] According to the circular filtering, the touch data at the edge position of the touch area corresponding to at least one frame of touch data generated by the touch operation is filtered out;

[0017] The remaining data after filtering the at least one frame of touch data is determined as the filtered touch data.

[0018] In some embodiments, filtering out the touch data at the edge position of the touch area corresponding to at least one frame of touch data generated by the touch operation according to the ring filtering includes:

[0019] According to the circular filtering, the touch data at the edge position of the touch area corresponding to the first frame of touch data generated by the touch operation is filtered out.

[0020] In some embodiments, determining the operation type of the touch operation according to the similarity between the first frame touch data and the last frame touch data generated by the touch screen based on the touch operation includes:

[0021] If the similarity between the first frame touch data and the last frame touch data is less than a similarity threshold, and any two adjacent frames of data between the first frame touch data and the last frame touch data at least partially overlap, then the operation type is determined to be a sliding operation.

[0022] In some embodiments, determining a filtering algorithm according to the operation type includes:

[0023] If the operation type is the sliding operation, it is determined that the filtering algorithm is linear filtering; the linear filtering is a filtering algorithm that filters out the touch data at the edge position of the touch area where the sliding track of the sliding operation acts.

[0024] In some embodiments, filtering the touch data generated by the touch screen according to the determined filtering algorithm to obtain filtered touch data includes:

[0025] According to the linear filtering, the touch data at the edge position of the touch area affected by the sliding track formed by connecting at least two frames of touch data generated by the touch operation is filtered out;

[0026] The remaining data on the sliding track after filtering is determined as the filtered touch data.

[0027] In some embodiments, filtering out the touch data of the edge area of ​​the sliding track formed by connecting at least two frames of touch data generated by the touch operation according to the linear filtering includes:

[0028] According to the linear filtering, the touch data at the edge position of the touch area affected by the sliding trajectory formed by the connecting line between the two frames of touch data generated by the touch operation is filtered out; wherein the two frames of touch data include: any frame of touch data before the first frame of touch data and the last frame of touch data.

[0029] According to a second aspect of an embodiment of the present disclosure, a touch detection device for a touch screen is provided, and the device is applied to a terminal, comprising:

[0030] A first determination module, configured to determine an operation type of the touch operation when the touch screen detects a touch operation;

[0031] A second determination module, used to determine a filtering algorithm according to the operation type;

[0032] A filtering module, used for filtering the touch data generated by the touch screen according to a determined filtering algorithm to obtain filtered touch data;

[0033] The reporting module is used to report the touch event according to the filtered touch data.

[0034] In some embodiments, the first determining module includes:

[0035] The third determination module is used to determine the operation type of the touch operation according to the similarity between the first frame touch data and the last frame touch data generated by the touch screen based on the touch operation.

[0036] In some embodiments, the third determination module is specifically configured to:

[0037] If the similarity between the first frame touch data and the last frame touch data is greater than or equal to a similarity threshold, it is determined that the operation type is a click operation.

[0038] In some embodiments, the third determination module is specifically configured to:

[0039] If the operation type is the click operation, it is determined that the filtering algorithm is a ring filter; the ring filter is a filtering algorithm that filters out touch data at an edge position of a touch area where the touch operation acts.

[0040] In some embodiments, the filtering module includes:

[0041] A first filtering submodule, configured to filter out touch data at an edge position of the touch area corresponding to at least one frame of touch data generated by the touch operation according to the circular filtering;

[0042] The first determining submodule is used to determine the remaining data after filtering the at least one frame of touch data as the filtered touch data.

[0043] In some embodiments, the first filtering submodule is specifically used to:

[0044] According to the circular filtering, the touch data at the edge position of the touch area corresponding to the first frame of touch data generated by the touch operation is filtered out.

[0045] In some embodiments, the third determination module is specifically configured to:

[0046] If the similarity between the first frame touch data and the last frame touch data is less than a similarity threshold, and any two adjacent frames of data between the first frame touch data and the last frame touch data at least partially overlap, then the operation type is determined to be a sliding operation.

[0047] In some embodiments, the second determining module is specifically configured to:

[0048] If the operation type is the sliding operation, it is determined that the filtering algorithm is a linear filtering; the linear filtering is a filtering algorithm for filtering out the touch data at the edge position of the touch area.

[0049] In some embodiments, the filtering module includes:

[0050] A second filtering submodule is used to filter out the touch data at the edge of the touch area affected by the sliding track formed by connecting at least two frames of touch data generated by the touch operation according to the linear filtering;

[0051] The second determining submodule is used to determine the remaining data on the sliding track after filtering as the filtered touch data.

[0052] In some embodiments, the second filtering submodule is specifically used to:

[0053] According to the linear filtering, the touch data at the edge position of the effective touch area of ​​the sliding trajectory formed by the connecting line between the two frames of touch data generated by the touch operation is filtered out; wherein, the two frames of touch data include: any frame of touch data before the first frame of touch data and the last frame of touch data.

[0054] According to a third aspect of an embodiment of the present disclosure, a touch detection device for a touch screen is provided, the device comprising at least: a processor and a memory for storing executable instructions that can be run on the processor, wherein:

[0055] When the processor is used to run the executable instructions, the executable instructions execute the steps in any one of the above-mentioned touch detection methods for a touch screen.

[0056] According to a fourth aspect of the present disclosure, a non-temporary computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the steps in any of the above-mentioned touch detection methods for a touch screen.

[0057] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: The embodiments of the present application respectively use different filtering algorithms for different operation types of touch operations, thereby specifically and accurately filtering out the data generated by jitter, thereby improving the accuracy of touch recognition. In addition, the present application determines whether there is movement in the touch operation by comparing the similarity between the first frame touch data and the last frame touch data of the touch operation, and then identifies the operation type. In this way, the calculation is simple and the type of touch operation can be quickly determined, which is convenient for subsequent filtering using different filtering algorithms.

[0058] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0060] Figure 1 A touch detection method for a touch screen according to an exemplary embodiment is shown in FIG. Figure 1 ;

[0061] Figure 2 A touch detection method for a touch screen according to an exemplary embodiment is shown in FIG. Figure 2 ;

[0062] Figure 3 A touch detection method for a touch screen according to an exemplary embodiment is shown in FIG. Figure 3 ;

[0063] Figure 4 is a schematic structural diagram of a touch detection device for a touch screen according to an exemplary embodiment;

[0064] Figure 5 The figure is a block diagram of a physical structure of a terminal according to an exemplary embodiment. DETAILED DESCRIPTION

[0065] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0066] Figure 1 is a flow chart of a touch detection method for a touch screen according to an exemplary embodiment, the method is applied to a terminal, such as Figure 1 As shown, the method comprises the following steps:

[0067] Step S101: when the touch screen detects a touch operation, determining the operation type of the touch operation;

[0068] Step S102: determining a filtering algorithm according to the operation type;

[0069] Step S103: filtering the touch data generated by the touch screen according to the determined filtering algorithm to obtain filtered touch data;

[0070] Step S104: reporting a touch event according to the filtered touch data.

[0071] In the embodiments of the present disclosure, the terminal may be any electronic device with a human-computer interaction function, such as a mobile phone, a laptop computer, a tablet computer, a television, and any smart wearable device. The touch screen is used to implement the input and output functions of the human-computer interaction of the terminal. While displaying the screen, various functions can be implemented through the received touch operation.

[0072] The touch operation may include various gesture operations on various touch controls displayed on the touch screen or the entire touch screen, such as a click operation or a slide operation, etc. Through the combination of touch positions and touch gestures, various different operation instructions can be input.

[0073] During the touch operation of a touch object (such as a finger, stylus, etc.), there are various uncertainties in the gesture of the touch operation, including jitter and false touches caused by the touch area covering different touch controls. Therefore, in the process of obtaining touch commands based on the received touch data, it is necessary to accurately identify the gesture of the touch operation to prevent jitter and false touches from causing wrong commands to be executed.

[0074] In the disclosed embodiment, the touch data is processed by filtering to filter out jittery or mis-touch data, thereby accurately identifying the touch operation and executing the correct touch command.

[0075] In the disclosed embodiment, different filtering algorithms are used for touch operations of different gestures to perform targeted filtering to remove touch data generated by jitter or false touch, and then touch events are reported based on the filtered touch data, thereby effectively improving the accuracy of touch detection.

[0076] In some embodiments, when the touch screen detects a touch operation, determining the operation type of the touch operation includes:

[0077] The operation type of the touch operation is determined according to similarity between a first frame of touch data and a last frame of touch data generated by the touch screen based on the touch operation.

[0078] In the disclosed embodiment, a touch operation can be detected by a touch signal on the touch screen, such as a change in the capacitance value of a capacitor unit. Several frames of touch signals that continuously detect touch signals represent a touch operation. The first frame of touch data is the coordinate data carried by the first frame of signal in which a touch signal change is detected, and the last frame of touch data is the coordinate data carried by the previous frame of signal in which the touch signal returns to its original state (i.e., the signal state when there is no touch operation).

[0079] Based on the difference between the coordinate positions of the first frame of touch data and the last frame of touch data, it can be determined whether the touch object has moved during the touch operation. For example, if there is almost no movement, it can be considered a click operation; if there is movement, it can be considered a slide operation. This embodiment provides a way to accurately determine the type of operation.

[0080] In some embodiments, the type of touch operation can also be determined in combination with the duration of the touch operation. For example, a sliding operation usually takes longer time to act on the touch screen than a clicking operation. Therefore, the operation type can be determined based on a comparison of the duration of the touch operation and a time threshold.

[0081] In other embodiments, the touch area of ​​the touch operation may be combined to determine, for example, the touch area is compared with an area threshold, if it is larger than the area threshold, it may be considered as a sliding operation, otherwise it may be considered as a clicking operation.

[0082] Of course, the above is only an example of determining the operation type, and the specific implementation is not limited to any of the above.

[0083] In some embodiments, determining the operation type of the touch operation according to the similarity between the first frame touch data and the last frame touch data generated by the touch screen based on the touch operation includes:

[0084] If the similarity between the first frame touch data and the last frame touch data is greater than or equal to a similarity threshold, it is determined that the operation type is a click operation.

[0085] Since the touch operation will last for a period of time, and the touch screen detects touch through discrete signals. Therefore, the touch operation will generate multiple frames of continuous touch data. During the touch operation, the touch body is always in contact with the touch screen, so the position coordinates of each frame of touch data overlap. If the position coordinates of the first frame of touch data and the last frame of touch data are in the same area, it can be considered that the touch body is performing a click operation during the touch operation.

[0086] In the disclosed embodiment, whether it is a click operation can be determined based on the similarity between the first frame touch data and the last frame touch data. Since the touch data reflects the position coordinates of the touch screen receiving the touch operation, if the similarity between the first frame touch data and the last frame touch data is high, it means that the position of the touch object has hardly changed during the touch operation, so it can be considered as a click operation.

[0087] In some embodiments, Figure 2 As shown, in the above step S102, determining the filtering algorithm according to the operation type includes:

[0088] Step S11: If the operation type is the click operation, determine that the filtering algorithm is a ring filter; the ring filter is a filtering algorithm that filters out touch data at the edge of the touch area where the touch operation acts.

[0089] The touch data generated by the click operation on the touch screen is the coordinates of the position where the touch body touches the touch screen. It is understandable that because the area of ​​the touch screen where the touch body clicks may cover multiple touch points, or because the jitter during the touch process contacts multiple touch points within a larger range, and different touch points may correspond to different touch instructions, it is easy to cause inaccurate touch instructions. Here, the touch point refers to the touch unit on the touch screen used to sense the touch operation, for example, each touch capacitor unit in the touch array, each touch unit can generate a corresponding signal change under the action of the touch operation, thereby forming a touch signal, and the touch data representing the touch position can be obtained through the touch unit corresponding to the touch signal.

[0090] Therefore, in the disclosed embodiment, the touch data at the edge of the touch area where the touch operation is performed is filtered out by means of a circular filter, thereby reducing the area on the touch screen corresponding to the touch data coordinates, so that the touch points corresponding to the effective touch data (i.e., the touch data used to determine the touch command) correspond to the same touch command as much as possible. In this way, the redundant touch data generated due to the large touch contact area or jitter during the click operation can be reduced, thereby reducing the situation of inaccurate touch commands.

[0091] In some embodiments, in the above step S104, filtering the touch data generated by the touch screen according to the determined filtering algorithm to obtain filtered touch data includes:

[0092] Step S12: filtering out the touch data at the edge of the touch area corresponding to at least one frame of touch data generated by the touch operation according to the ring filtering;

[0093] Step S13: determining the remaining data after filtering the at least one frame of touch data as the filtered touch data.

[0094] Since the touch position targeted by the click operation remains unchanged, in the embodiment of the present disclosure, one or several frames of data from multiple frames of continuous touch data may be taken to perform the above-mentioned ring filtering, without considering the touch data of all frames.

[0095] By selecting one or several frames of data, the amount of data to be processed can be reduced and the processing speed can be increased. In addition, the deviation caused by jitter in the touch data can be reduced, thereby improving the accuracy of touch detection and quickly determining the touch instructions that need to be executed.

[0096] In some embodiments, filtering out the touch data at the edge position of the touch area corresponding to at least one frame of touch data generated by the touch operation according to the ring filtering includes:

[0097] According to the circular filtering, the touch data at the edge position of the touch area corresponding to the first frame of touch data generated by the touch operation is filtered out.

[0098] It is understandable that during the click operation, the click moment is usually closer to the position that the user actually intends to click, while the finger lifting process is more likely to cause jitter. Therefore, when filtering, the first frame of touch data is directly selected for filtering, and then the filtered first frame of touch data is used to determine the corresponding touch instruction.

[0099] In this way, not only can the touch operation be identified quickly and accurately, and the impact of jitter can be reduced, but also the complexity of data processing can be reduced, and the first frame of touch data can be directly filtered without the need for touch data selection and other processes.

[0100] In some embodiments, determining the operation type of the touch operation according to the similarity between the first frame touch data and the last frame touch data generated by the touch screen based on the touch operation includes:

[0101] If the similarity between the first frame touch data and the last frame touch data is less than a similarity threshold, and any two adjacent frames of data between the first frame touch data and the last frame touch data at least partially overlap, then the operation type is determined to be a sliding operation.

[0102] Corresponding to the click operation, if the touch operation is a sliding operation, the touch screen will detect that each frame within a continuous period of time can detect touch detection data. It can be understood that since the touch body slides from one touch position to another during the sliding operation, the position between the first frame touch data and the last frame touch data is different. Based on this, when the similarity between the first frame touch data and the last frame touch data is less than the similarity threshold, it can be determined that the touch body has moved during the touch operation, and therefore it is a sliding operation.

[0103] In addition, since the interval between each frame detection signal of the touch detection is short and the sliding speed of the sliding operation is relatively slow, it can be determined that the touch operation is a continuous sliding operation based on at least partial overlap of touch data between adjacent frames.

[0104] In some embodiments, Figure 2 As shown, in the above step S103, determining the filtering algorithm according to the operation type includes:

[0105] Step S21: If the operation type is the sliding operation, determine that the filtering algorithm is linear filtering; the linear filtering is a filtering algorithm that filters out the touch data at the edge position of the touch area affected by the sliding track of the sliding operation.

[0106] The touch control command corresponding to the sliding operation is generally determined according to the position corresponding to the sliding operation and the sliding direction. Therefore, if jitter occurs during the sliding operation, it may affect the judgment of the sliding direction, thereby causing the execution of the wrong touch control command. Therefore, filtering is used here to reduce the data generated by jitter in the sliding operation data.

[0107] In the embodiment of the present disclosure, unlike the click operation, the coordinates of the touch data of the slide operation are not all located in a fixed region or area, but there is touch data in a continuous area. Moreover, the touch positions corresponding to the touch data of different frames are different.

[0108] Therefore, in the embodiment of the present disclosure, a linear filtering method is used for the sliding operation, and the edge data is filtered out according to the connection line of the sliding track, so as to filter out the irregular data generated by the jitter during the sliding process and reduce the inaccuracy of the touch command caused by the jitter.

[0109] In some embodiments, in the above step S104, filtering the touch data generated by the touch screen according to the determined filtering algorithm to obtain filtered touch data includes:

[0110] Step S22, filtering out touch data at an edge of a touch area affected by a sliding track formed by connecting at least two frames of touch data generated by the touch operation according to the linear filtering;

[0111] Step S23: determining the remaining data on the sliding track after filtering as the filtered touch data.

[0112] Since adjacent frames of data overlap during the sliding operation, and the sliding trajectory can be approximately determined based on the connection line of touch data at different positions of several frames, it is not necessary to perform processing based on all touch data.

[0113] In the disclosed embodiment, two or more frames of touch data are selected from the touch data, and the connecting line of the corresponding positions of these frames of touch data is used as the touch trajectory. Then, the touch data at the edge position of the touch area where the touch operation sliding trajectory acts is filtered, so that the touch trajectory is a "thin line", thereby determining the accurate touch instruction.

[0114] In this way, since the sliding trajectory is determined based on the connection line of several frames of data, it is possible to remove some data generated by jitter during the actual sliding operation, and at the same time facilitate data processing.

[0115] In addition, after linear filtering, the range covered by the touch data is reduced, which can further reduce the data generated by jitter or the misjudgment of touch commands caused by an excessively large touch range.

[0116] In some embodiments, filtering out touch data at an edge of a touch area affected by a sliding track formed by connecting at least two frames of touch data generated by the touch operation according to the linear filtering includes:

[0117] According to the linear filtering, the touch data at the edge position of the touch area affected by the sliding trajectory formed by the connecting line between the two frames of touch data generated by the touch operation is filtered out; wherein the two frames of touch data include: any frame of touch data before the first frame of touch data and the last frame of touch data.

[0118] In the disclosed embodiment, the sliding trajectory can be determined based on the connection line between two frames of touch data in each frame of touch operation. Considering that when the touch body is performing a sliding operation, it is easy to generate jitter at the moment when the sliding ends and is lifted, thus changing the original sliding direction, the sliding trajectory can be determined based on the first frame of touch data and the frame of data before the last frame of touch data of the touch operation. In this way, the sliding trajectory can be quickly determined while reducing the misjudgment of touch commands caused by the jitter when the touch body is lifted, thereby improving the accuracy of touch detection.

[0119] The present disclosure also provides the following examples:

[0120] The disclosed embodiment performs different sampling and filtering processes for different touch operations without affecting the touch operation tracking property, that is, the touch operation delay is low, thereby achieving the anti-shake effect. Figure 3 As shown, the embodiment of the present disclosure performs touch detection through the following steps:

[0121] Step S301, determining the operation type by comparing the first frame touch data with the last frame touch data;

[0122] Step S302: If the first frame touch data and the last frame touch data correspond to the same valid event, it is a click operation;

[0123] Here, the valid event is a touch event corresponding to the same touch control or executing the same touch instruction, for example, a click operation on the same virtual button or application icon.

[0124] Step S303: If the first frame touch data and the last frame touch data correspond to different valid events, and any adjacent frames between the two frames are continuous, it is a sliding operation;

[0125] Step S304: if it is a click operation, perform ring filtering;

[0126] Step S305: If it is a sliding operation, linear filtering is performed;

[0127] Step S306: reporting coordinates according to the filtered data and executing corresponding touch commands.

[0128] Through the technical solution of the embodiment of the present disclosure, the data processing speed can be improved, and the misjudgment of touch commands caused by the jitter of touch operation during user use can be reduced, thereby improving the user experience. At the same time, different filtering algorithms are used for different operation gestures to reduce the jitter and freeze of the display interface caused by the jitter of touch operation.

[0129] Figure 4 is a structural block diagram of a touch detection device for a touch screen according to an exemplary embodiment. Figure 4 As shown, the device 400 is applied to a terminal, and includes:

[0130] A first determination module 401 is used to determine the operation type of the touch operation when the touch screen detects the touch operation;

[0131] A second determination module 402, configured to determine a filtering algorithm according to the operation type;

[0132] A filtering module 403 is used to filter the touch data generated by the touch screen according to a determined filtering algorithm to obtain filtered touch data;

[0133] The reporting module 404 is used to report the touch event according to the filtered touch data.

[0134] In some embodiments, the first determining module includes:

[0135] The third determination module is used to determine the operation type of the touch operation according to the similarity between the first frame touch data and the last frame touch data generated by the touch screen based on the touch operation.

[0136] In some embodiments, the third determination module is specifically configured to:

[0137] If the similarity between the first frame touch data and the last frame touch data is greater than or equal to a similarity threshold, it is determined that the operation type is a click operation.

[0138] In some embodiments, the third determination module is specifically configured to:

[0139] If the operation type is the click operation, it is determined that the filtering algorithm is a ring filter; the ring filter is a filtering algorithm that filters out touch data at an edge position of a touch area where the touch operation acts.

[0140] In some embodiments, the filtering module includes:

[0141] A first filtering submodule, configured to filter out touch data at an edge position of the touch area corresponding to at least one frame of touch data generated by the touch operation according to the circular filtering;

[0142] The first determining submodule is used to determine the remaining data after filtering the at least one frame of touch data as the filtered touch data.

[0143] In some embodiments, the first filtering submodule is specifically used to:

[0144] According to the circular filtering, the touch data at the edge position of the touch area corresponding to the first frame of touch data generated by the touch operation is filtered out.

[0145] In some embodiments, the third determination module is specifically configured to:

[0146] If the similarity between the first frame touch data and the last frame touch data is less than a similarity threshold, and any two adjacent frames of data between the first frame touch data and the last frame touch data at least partially overlap, then the operation type is determined to be a sliding operation.

[0147] In some embodiments, the second determining module is specifically configured to:

[0148] If the operation type is the sliding operation, it is determined that the filtering algorithm is a linear filtering; the linear filtering is a filtering algorithm for filtering out the touch data at the edge position of the touch area.

[0149] In some embodiments, the filtering module includes:

[0150] A second filtering submodule is used to filter out the touch data at the edge of the touch area affected by the sliding track formed by connecting at least two frames of touch data generated by the touch operation according to the linear filtering;

[0151] The second determining submodule is used to determine the remaining data on the sliding track after filtering as the filtered touch data.

[0152] In some embodiments, the second filtering submodule is specifically used to:

[0153] According to the linear filtering, the touch data at the edge position of the effective touch area of ​​the sliding trajectory formed by the connecting line between the two frames of touch data generated by the touch operation is filtered out; wherein, the two frames of touch data include: any frame of touch data before the first frame of touch data and the last frame of touch data.

[0154] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0155] Figure 5 1 is a block diagram of a terminal 500 according to an exemplary embodiment. For example, the terminal 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0156] Reference Figure 5 The terminal 500 may include one or more of the following components: a processing component 501 , a memory 502 , a power component 503 , a multimedia component 504 , an audio component 505 , an input / output (I / O) interface 506 , a sensor component 507 , and a communication component 508 .

[0157] The processing component 501 generally controls the overall operation of the terminal 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 501 may include one or more processors 510 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 501 may also include one or more modules to facilitate the interaction between the processing component 501 and other components. For example, the processing component 501 may include a multimedia module to facilitate the interaction between the multimedia component 504 and the processing component 501.

[0158] The memory 510 is configured to store various types of data to support operations at the terminal 500. Examples of such data include instructions for any application or method operating on the terminal 500, contact data, phone book data, messages, pictures, videos, etc. The memory 502 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk, or an optical disk.

[0159] The power supply component 503 provides power to various components of the terminal 500. The power supply component 503 may include: a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the terminal 500.

[0160] The multimedia component 504 includes a screen that provides an output interface between the terminal 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 504 includes a front camera and / or a rear camera. When the terminal 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and / or the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0161] The audio component 505 is configured to output and / or input audio signals. For example, the audio component 505 includes a microphone (MIC), and when the terminal 500 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 510 or sent via the communication component 508. In some embodiments, the audio component 505 also includes a speaker for outputting audio signals.

[0162] I / O interface 506 provides an interface between processing component 501 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0163] The sensor assembly 507 includes one or more sensors for providing various aspects of status assessment for the terminal 500. For example, the sensor assembly 507 can detect the open / closed state of the terminal 500, the relative positioning of the components, such as the display and keypad of the terminal 500, and the sensor assembly 507 can also detect the position change of the terminal 500 or a component of the terminal 500, the presence or absence of contact between the user and the terminal 500, the orientation or acceleration / deceleration of the terminal 500, and the temperature change of the terminal 500. The sensor assembly 507 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 507 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 507 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0164] The communication component 508 is configured to facilitate wired or wireless communication between the terminal 500 and other devices. The terminal 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 508 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 508 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology or other technologies.

[0165] In an exemplary embodiment, terminal 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0166] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 502 including instructions, and the instructions can be executed by a processor 510 of a terminal 500 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0167] The embodiments of the present disclosure also provide a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by the processor of the mobile terminal, the mobile terminal can execute the method provided by any of the above embodiments.

[0168] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0169] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A touch detection method for a touch screen, characterized in that: The method is applied to a terminal, comprising: When the touch screen detects a touch operation, determining an operation type of the touch operation; Determine a filtering algorithm according to the operation type; wherein, determining the filtering algorithm according to the operation type includes: if the operation type is a click operation, determining the filtering algorithm to be a ring filter; the ring filter is a filtering algorithm that filters out touch data at an edge position of a touch area affected by the touch operation; According to the determined filtering algorithm, the touch data generated by the touch screen is filtered to obtain filtered touch data; A touch event is reported according to the filtered touch data.

2. The method according to claim 1, characterized in that When the touch screen detects a touch operation, determining the operation type of the touch operation includes: The operation type of the touch operation is determined according to similarity between a first frame of touch data and a last frame of touch data generated by the touch screen based on the touch operation.

3. The method according to claim 2, characterized in that The determining the operation type of the touch operation according to the similarity between the first frame touch data and the last frame touch data generated by the touch screen based on the touch operation includes: If the similarity between the first frame touch data and the last frame touch data is greater than or equal to a similarity threshold, it is determined that the operation type is a click operation.

4. The method according to claim 3, characterized in that The filtering process of the touch data generated by the touch screen to obtain filtered touch data according to the determined filtering algorithm includes: According to the circular filtering, the touch data at the edge position of the touch area corresponding to at least one frame of touch data generated by the touch operation is filtered out; The remaining data after filtering the at least one frame of touch data is determined as the filtered touch data.

5. The method according to claim 4, characterized in that The step of filtering out the touch data at the edge of the touch area corresponding to at least one frame of touch data generated by the touch operation according to the ring filtering includes: According to the circular filtering, the touch data at the edge position of the touch area corresponding to the first frame of touch data generated by the touch operation is filtered out.

6. The method according to claim 2, characterized in that The determining the operation type of the touch operation according to the similarity between the first frame touch data and the last frame touch data generated by the touch screen based on the touch operation includes: If the similarity between the first frame touch data and the last frame touch data is less than a similarity threshold, and any two adjacent frames of data between the first frame touch data and the last frame touch data at least partially overlap, then the operation type is determined to be a sliding operation.

7. The method according to claim 6, characterized in that The step of determining a filtering algorithm according to the operation type includes: If the operation type is the sliding operation, it is determined that the filtering algorithm is linear filtering; the linear filtering is a filtering algorithm that filters out the touch data at the edge position of the touch area where the sliding track of the sliding operation acts.

8. The method according to claim 7, characterized in that The filtering process of the touch data generated by the touch screen to obtain filtered touch data according to the determined filtering algorithm includes: According to the linear filtering, the touch data at the edge position of the touch area affected by the sliding track formed by connecting at least two frames of touch data generated by the touch operation is filtered out; The remaining data on the sliding track after filtering is determined as the filtered touch data.

9. The method according to claim 8, characterized in that The step of filtering out the touch data at the edge of the touch area affected by the sliding track formed by connecting at least two frames of touch data generated by the touch operation according to the linear filtering comprises: According to the linear filtering, the touch data at the edge position of the touch area affected by the sliding trajectory formed by the connecting line between the two frames of touch data generated by the touch operation is filtered out; wherein the two frames of touch data include: any frame of touch data before the first frame of touch data and the last frame of touch data.

10. A touch detection device for a touch screen, characterized in that: The device is applied to a terminal, and includes: A first determination module, configured to determine an operation type of the touch operation when the touch screen detects a touch operation; A second determination module is used to determine a filtering algorithm according to the operation type; wherein the second determination module is specifically used to: if the operation type is a click operation, determine that the filtering algorithm is a ring filter; the ring filter is a filtering algorithm that filters out touch data at an edge position of a touch area where the touch operation acts; A filtering module, used for filtering the touch data generated by the touch screen according to a determined filtering algorithm to obtain filtered touch data; The reporting module is used to report the touch event according to the filtered touch data.

11. The device according to claim 10, characterized in that The first determining module includes: The third determination module is used to determine the operation type of the touch operation according to the similarity between the first frame touch data and the last frame touch data generated by the touch screen based on the touch operation.

12. The device according to claim 11, characterized in that The third determination module is specifically used to: If the similarity between the first frame touch data and the last frame touch data is greater than or equal to a similarity threshold, it is determined that the operation type is a click operation.

13. The device according to claim 12, characterized in that The filtering module comprises: A first filtering submodule, configured to filter out touch data at an edge position of the touch area corresponding to at least one frame of touch data generated by the touch operation according to the circular filtering; The first determining submodule is used to determine the remaining data after filtering the at least one frame of touch data as the filtered touch data.

14. The device according to claim 13, characterized in that The first filtering submodule is specifically used for: According to the circular filtering, the touch data at the edge position of the touch area corresponding to the first frame of touch data generated by the touch operation is filtered out.

15. The device according to claim 11, characterized in that The third determination module is specifically used to: If the similarity between the first frame touch data and the last frame touch data is less than a similarity threshold, and any two adjacent frames of data between the first frame touch data and the last frame touch data at least partially overlap, then the operation type is determined to be a sliding operation.

16. The device according to claim 15, characterized in that The second determining module is specifically used to: If the operation type is the sliding operation, it is determined that the filtering algorithm is a linear filtering; the linear filtering is a filtering algorithm for filtering out the touch data at the edge position of the touch area.

17. The device according to claim 16, characterized in that The filtering module comprises: A second filtering submodule is used to filter out the touch data at the edge of the touch area affected by the sliding track formed by connecting at least two frames of touch data generated by the touch operation according to the linear filtering; The second determining submodule is used to determine the remaining data on the sliding track after filtering as the filtered touch data.

18. The device according to claim 17, characterized in that The second filtering submodule is specifically used for: According to the linear filtering, the touch data at the edge position of the effective touch area of ​​the sliding trajectory formed by the connecting line between the two frames of touch data generated by the touch operation is filtered out; wherein, the two frames of touch data include: any frame of touch data before the first frame of touch data and the last frame of touch data.

19. A touch detection device for a touch screen, characterized in that: The device comprises at least: a processor and a memory for storing executable instructions that can be run on the processor, wherein: When the processor is used to run the executable instructions, the executable instructions execute the steps in the touch detection method for a touch screen provided in any one of claims 1 to 9 above.

20. A non-transitory computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the steps of the touch detection method for a touch screen provided in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Touch operation processing method and device, and terminal

    CN105739897A

  • Touch recognition method and device and touch display device

    CN108874234A