Touch position determination method and apparatus, computer device, and touch device

By determining the edge filtering coefficient and overall filtering coefficient of the touch position in the touch device, calculating the target filtering coefficient and performing filtering, the problem of inaccurate touch effect is solved, and a smoother touch operation is achieved.

CN114721548BActive Publication Date: 2026-04-10SHENZHEN AIXIESHENG TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-22
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

In existing technologies, the touch position information is directly filtered based on the filtering coefficient, resulting in inaccurate touch effects and affecting the user experience.

Method used

By acquiring touch position information, the corresponding current edge filtering coefficient and overall filtering coefficient are determined, the target filtering coefficient is calculated, and the touch position information is filtered using the target filtering coefficient to obtain more accurate touch position information.

Benefits of technology

It improves the touch operation effect, making the strokes smoother and enhancing the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114721548B_ABST
    Figure CN114721548B_ABST
Patent Text Reader

Abstract

The application relates to a touch position determination method and device, computer equipment, a touch device, a storage medium and a computer program product. The method comprises the following steps: acquiring touch position information corresponding to a touch operation; determining a current edge filter coefficient corresponding to the touch position information; determining a target filter coefficient of the touch position information according to an overall filter coefficient of a touch area and the current edge filter coefficient; the overall filter coefficient is a filter coefficient corresponding to the touch area; and performing a filter operation on the touch position information by using the target filter coefficient to obtain updated touch position information. The touch operation effect can be improved by using the method.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of touch processing, and in particular to a touch position determination method and device, a computer device, a touch device, a storage medium, and a computer program product. BACKGROUND

[0002] With the rapid development of electronic technology, applications of human-computer interaction between users and electronic devices through touch devices are becoming more and more widespread. Users can achieve various functional operations by performing touch operations such as clicking and sliding on the touch device. Meanwhile, with the diversification of electronic device functions, the requirements for touch effects of touch operations are gradually increasing. In the process of touch operations, in order to make the touch line smoother, the current technology generally performs filtering operation on touch position information corresponding to a touch operation by using a pre-set filter coefficient to obtain filtered touch position information, i.e., more accurate touch position information, and then implements a corresponding touch effect according to the touch position information. However, in the traditional technical solution, the filtered touch position information obtained by directly performing filtering operation on the touch position information according to the filter coefficient is not accurate, which affects the touch effect.

[0003] Therefore, how to improve the touch effect of touch operations is a technical problem to be solved by those skilled in the art at present. SUMMARY

[0004] Therefore, it is necessary to provide a touch position determination method, device, computer device, touch device, computer readable storage medium, and computer program product capable of improving the touch effect of touch operations in view of the above technical problems.

[0005] In a first aspect, the present application provides a touch position determination method. The method comprises:

[0006] obtaining touch position information corresponding to a touch operation;

[0007] determining a current edge filter coefficient corresponding to the touch position information;

[0008] determining a target filter coefficient of the touch position information according to an overall filter coefficient of a touch area and the current edge filter coefficient; the overall filter coefficient is a filter coefficient corresponding to the touch area;

[0009] performing filtering operation on the touch position information by using the target filter coefficient to obtain updated touch position information.

[0010] In one of the embodiments, the determination of the current edge filter coefficient corresponding to the touch position information comprises:

[0011] If the touch position corresponding to the touch position information is in an edge region, an edge filter coefficient corresponding to the edge region is determined as a current edge filter coefficient corresponding to the touch position information, the edge region being a region adjacent to an edge of the touch region among a plurality of regions obtained by dividing the touch region in advance.

[0012] In one of the embodiments, the edge region includes a first edge region and a second edge region, the first edge region being closer to the edge of the touch region than the second edge region.

[0013] In one of the embodiments, the determining of the current edge filter coefficient corresponding to the touch position information includes:

[0014] determining a target distance between the touch position corresponding to the touch position information and the edge of the touch region, the target distance being a minimum distance among distances between the touch position and edges of the touch region;

[0015] determining a current edge filter coefficient corresponding to the target distance according to a functional relationship between edge filter coefficients and distances, the distances being distances between the touch position and edges of the touch region.

[0016] In one of the embodiments, the method further includes:

[0017] obtaining an overall noise level of the touch region;

[0018] determining the overall filter coefficient of the touch region according to a corresponding relationship between filter coefficients and overall noise levels.

[0019] In a second aspect, the present application provides a touch position determination device. The device includes:

[0020] an obtaining module configured to obtain touch position information corresponding to a touch operation;

[0021] a first determining module configured to determine a current edge filter coefficient corresponding to the touch position information;

[0022] a second determining module configured to determine a target filter coefficient of the touch position information according to an overall filter coefficient of a touch region and the current edge filter coefficient, the overall filter coefficient being a filter coefficient corresponding to the touch region;

[0023] a filtering module configured to perform a filtering operation on the touch position information using the target filter coefficient to obtain updated touch position information.

[0024] In a third aspect, the present application provides a computer device. The computer device comprises a memory and a processor. The memory stores a computer program. The processor implements the method described above when executing the computer program.

[0025] In a fourth aspect, the present application provides a touch device. The touch device comprises a touch device body and a computer device as described above.

[0026] In a fifth aspect, the present application provides a computer readable storage medium. The computer readable storage medium stores a computer program. The computer program is executed by a processor to implement the steps of the method described above.

[0027] In a sixth aspect, the present application provides a computer program product. The computer program product comprises a computer program. The computer program is executed by a processor to implement the steps of the method described above.

[0028] The touch position determination method, apparatus, computer device, touch device, storage medium and computer program product described above, in the present application, the touch position information corresponding to the touch operation is obtained, and the current edge filter coefficient corresponding to the touch position information is determined. Then, the target filter coefficient of the touch position information is determined according to the overall filter coefficient of the touch area and the current edge filter coefficient. That is, the target filter coefficient in the present application is determined for the touch position corresponding to the touch operation. Therefore, the touch position information is filtered by using the target filter coefficient, and more accurate touch position information can be obtained, and the filtering effect is better. Therefore, the line drawn corresponding to the touch operation can be smoother, and the touch effect of the touch operation can be improved. BRIEF DESCRIPTION OF DRAWINGS

[0029] Figure 1 It is a flowchart of the touch position determination method in one embodiment;

[0030] Figure 2 It is a schematic diagram of the area division of the touch area in one embodiment;

[0031] Figure 3 It is a schematic diagram of the area division of the touch area in another embodiment;

[0032] Figure 4 It is a flowchart of the touch position determination method in another embodiment;

[0033] Figure 5 It is a block diagram of the touch position determination apparatus in one embodiment;

[0034] Figure 6 It is an internal structure diagram of the computer device in one embodiment. DETAILED DESCRIPTION

[0035] In order to make the purposes, technical solutions and advantages of the present application clearer, the present application will be further described in details below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and not used to limit the present application.

[0036] The touch position determination method provided by the embodiments of the present application can be applied to a touch device. After a user performs a touch operation on the touch device, the touch position information corresponding to the touch operation is obtained. The current edge filter coefficient corresponding to the touch position information is determined. The target filter coefficient of the touch position information is determined according to the overall filter coefficient of the touch area and the current edge filter coefficient. The overall filter coefficient is the filter coefficient corresponding to the touch area. The target filter coefficient is used to perform a filter operation on the touch position information to obtain updated touch position information. Therefore, the corresponding touch effect, such as a smoother line, can be determined according to the updated touch position information.

[0037] It can be understood that the method can also be applied to a system including a touch device and a server, and the method is implemented through the interaction of the touch device and the server. For example, the touch device obtains the corresponding touch position information in response to the touch operation of the user, and sends the touch position information to the server. The server obtains the touch position information corresponding to the touch operation. The current edge filter coefficient corresponding to the touch position information is determined. The target filter coefficient of the touch position information is determined according to the overall filter coefficient of the touch area and the current edge filter coefficient. The overall filter coefficient is the filter coefficient corresponding to the touch area. The target filter coefficient is used to perform a filter operation on the touch position information to obtain updated touch position information. The server sends the updated touch position information to the touch device, so that the touch device determines the corresponding touch effect according to the updated touch position. The server can be implemented by an independent server or a server cluster composed of multiple servers.

[0038] In one embodiment, as shown in FIG. 1, a touch position determination method is provided. The method is applied to a touch device, for example, and includes the following steps: Figure 1

[0039] Step 102, obtaining touch position information corresponding to a touch operation.

[0040] The touch operation is an operation performed by a user on the touch device, including a click operation and a sliding operation. The sliding operation includes uniform speed sliding or variable speed sliding, which is not limited in the present embodiment. The touch position information refers to the position of the touch area on the touch device acted by the touch operation. The touch position information is generally based on a two-dimensional coordinate established by the touch area.

[0041] ​Step 104, determining a current edge filter coefficient corresponding to the touch position information.

[0042] It can be understood that during the operation of the touch device, the whole touch area will be interfered by electromagnetic interference or power supply interference to different degrees, which will affect the noise level of each position of the touch area. Generally speaking, the edge area of the touch area will be interfered to a higher degree than the center area. In the embodiment, the edge filter coefficient refers to the filter coefficient that needs to be increased for the edge part of the touch area compared with the center area; the current edge filter coefficient refers to the edge filter coefficient corresponding to the currently determined touch position information. Specifically, the current edge filter coefficient corresponding to the current touch position information is determined according to the preset corresponding relationship between the touch position information and the edge filter coefficient.

[0043] Step 106, determining a target filter coefficient of the touch position information according to the overall filter coefficient of the touch area and the current edge filter coefficient; the overall filter coefficient is the filter coefficient corresponding to the touch area.

[0044] The overall filter coefficient is the filter coefficient corresponding to the touch area; that is, the filter coefficient determined for the case that the whole touch area is interfered. After obtaining the overall filter coefficient of the touch area and the current filter coefficient corresponding to the touch position information, the overall filter coefficient and the current edge filter coefficient are summed to obtain the target filter coefficient corresponding to the touch position information.

[0045] Step 108, filtering the touch position information by using the target filter coefficient to obtain updated touch position information.

[0046] Specifically, after determining the target filter coefficient corresponding to the touch position information, the touch position information is filtered by using the target filter coefficient. That is, when filtering the touch position information, the target filter coefficient is used as the filter coefficient to perform filtering operation, and the filtered touch position information is obtained, that is, the updated touch position information. The filtered touch position information is more accurate than the touch position information, because the electromagnetic, power supply and other interferences are filtered out.

[0047] In the above-mentioned method for determining the touch position, the touch position information corresponding to the touch operation is obtained, and the current edge filtering coefficient corresponding to the touch position information is determined. Then, based on the overall filtering coefficient of the touch area and the current edge filtering coefficient, the target filtering coefficient of the touch position information is determined. In other words, the target filtering coefficient in this solution is determined for the touch position corresponding to the touch operation. Therefore, by using the target filtering coefficient to filter the touch position information, more accurate touch position information can be obtained, and the filtering effect is better. Thus, the line corresponding to the touch operation is smoother, and the touch effect of the touch operation is improved.

[0048] Based on the above embodiments, this embodiment further explains and optimizes the technical solution. Specifically, in this embodiment, determining the current edge filtering coefficient corresponding to the touch position information includes: if the touch position corresponding to the touch position information is in the edge region, then the edge filtering coefficient corresponding to the edge region is determined as the current edge filtering coefficient corresponding to the touch position information. The edge region is the region adjacent to the edge of the touch region among multiple regions pre-divided into the touch region.

[0049] like Figure 2 The diagram shown is a schematic diagram of the region division of a touch area provided in this embodiment. In this embodiment, the touch area is divided into a central region and an edge region. The edge region is the region adjacent to the edge of the touch area among the multiple regions obtained by pre-dividing the touch area. The central region is the region in the touch area other than the edge region. Furthermore, a corresponding edge filtering coefficient is pre-set for the edge region.

[0050] After obtaining the touch position information, it is determined whether the touch position corresponding to this touch position information is located in the edge area of ​​the touch area. This can be determined by checking whether the distance between the touch position and the edge of the touch area is within the range corresponding to the edge area. For example, assuming the area 0-4cm from the edge of the touch area is the edge area; if the distance between the touch position and the edge of the touch area is 3cm, since 3cm < 4cm, it means the touch position is within the range corresponding to the edge area, i.e., the touch position is within the edge area; if the distance between the touch position and the edge of the touch area is 5cm, since 5cm > 4cm, it means the touch position is not within the range corresponding to the edge area, i.e., the touch position is within the center area.

[0051] In this embodiment, if the touch position is within the edge area, the edge filtering coefficient corresponding to the edge area is directly determined as the current edge filtering coefficient corresponding to the touch position information. Therefore, the target filtering coefficient corresponding to the touch position information is the sum of the overall filtering coefficient and the current edge filtering coefficient. If the touch position is within the center area, the current edge filtering coefficient corresponding to the touch position is 0, and the target filtering coefficient corresponding to the touch position information is the overall filtering coefficient.

[0052] As can be seen, by pre-dividing the edge region in the touch area and setting the edge filtering coefficient corresponding to the edge region, when the touch position is determined to be in the edge region, the current edge filtering coefficient corresponding to the touch position information can be quickly and conveniently determined.

[0053] Based on the above embodiments, this embodiment further explains and optimizes the technical solution. Specifically, in this embodiment, the edge region includes a first edge region and a second edge region. In the same direction, the distance between the first edge region and the edge of the touch area is less than the distance between the second edge region and the edge of the touch area.

[0054] like Figure 3 The diagram shown illustrates another area division of the touch area provided in this embodiment. In this embodiment, a first edge area and a second edge area are set according to their distance from the edge of the touch area. In the same direction, the distance between the first edge area and the edge of the touch area is less than the distance between the second edge area and the edge of the touch area; that is, the first edge area is the area closer to the edge of the touch area.

[0055] After obtaining the touch position information, it is determined whether the touch position corresponding to the touch position information is in the first edge region or the second edge region. This determination can be made by checking whether the distance between the touch position and the edge of the touch region is within the range corresponding to the first edge region and the edge of the touch region, and whether the distance between the touch position and the edge of the touch region is within the range corresponding to the second edge region and the edge of the touch region. If the touch position is in the first touch region, the edge filtering coefficient corresponding to the first edge region is determined as the current edge filtering coefficient corresponding to the touch position information, and the target filtering coefficient corresponding to this touch position information is the sum of the edge filtering coefficient corresponding to the first edge region and the overall filtering coefficient. If the touch position is in the second touch region, the edge filtering coefficient corresponding to the second edge region is determined as the current edge filtering coefficient corresponding to the touch position information, and the target filtering coefficient corresponding to this touch position information is the sum of the edge filtering coefficient corresponding to the second edge region and the overall filtering coefficient. If the touch position is in the center region, the current edge filtering coefficient corresponding to this touch position is 0, and the target filtering coefficient corresponding to this touch position information is the overall filtering coefficient.

[0056] In this embodiment, by setting a first edge region and a second edge region, the current edge filtering coefficient that corresponds more closely to the touch position information can be determined, thus further improving the accuracy of the determined target filtering coefficient and enhancing the touch effect of the touch operation.

[0057] On the basis of the above embodiment, the embodiment further illustrates and optimizes the technical solution. Specifically, in the embodiment, the current edge filtering coefficient corresponding to the touch position information is determined, comprising:

[0058] determining a target distance between the touch position corresponding to the touch position information and the edge of the touch area; the target distance is the minimum distance among distances between the touch position and edges of the touch area;

[0059] determining the current edge filtering coefficient corresponding to the target distance according to a functional relationship between the edge filtering coefficient and the distance; the distance is the distance between the touch position and the edge of the touch area.

[0060] It should be noted that for any touch position on the touch area, the target distance between the touch position and the edge of the touch area refers to the minimum distance among distances between the touch position and edges of the touch area. In the embodiment, after obtaining the touch position information, the target distance between the touch position corresponding to the touch position information and the edge of the touch area is determined according to the touch position information.

[0061] Specifically, the functional relationship between the edge filtering coefficient and the distance provided in the embodiment is as follows:

[0062]

[0063] wherein f represents the current edge filtering coefficient corresponding to the touch position; f m represents the edge filtering coefficient corresponding to the edge position of the touch area, i.e. the maximum edge filtering coefficient; D represents the target distance between the touch position and the edge of the touch area; and W represents the width of the edge region of the touch area, i.e. the distance between the edge region and the edge of the touch area.

[0064] It can be understood that the smaller the target distance D between the touch position and the edge of the touch area, i.e. the closer the touch position to the edge of the touch area, the larger the current edge filtering coefficient f corresponding to the touch position, i.e. the larger the target filtering coefficient; the larger the target distance D between the touch position and the edge of the touch area, i.e. the closer the touch position to the center of the touch area, the smaller the current edge filtering coefficient f corresponding to the touch position, i.e. the smaller the target filtering coefficient. When the touch position is located at the edge of the touch area, i.e. D=0, the current edge filtering coefficient f=f m , i.e. the target filtering coefficient at this time is the sum of the overall filtering coefficient and the current edge filtering coefficient f; when the touch position is located at the boundary between the edge region and the center region of the touch area, i.e. D=W, the current edge filtering coefficient f=0, i.e. the target filtering coefficient at this time is equal to the overall filtering coefficient.

[0065] It can be seen that, according to the method of the embodiment, the current edge filtering coefficient is determined according to the functional relationship between the edge filtering coefficient and the distance, the corresponding current edge filtering coefficient can be determined according to the degree of the touch position close to the edge of the touch area, and the sudden change of the current edge filtering coefficient at the junction of the edge region and the center region is avoided, so that the touch position information can be filtered more accurately.

[0066] In other embodiments, the functional relationship between the target filtering coefficient and the distance can also be directly set as follows:

[0067]

[0068] Wherein, the distance refers to the distance between the touch position and the edge of the touch area; F represents the target filtering coefficient corresponding to the touch position; f c represents the overall filtering coefficient of the touch area; f e represents the filtering coefficient corresponding to the edge position of the touch area, and the filtering coefficient corresponding to the edge position of the touch area is the sum of the overall filtering coefficient f c and the maximum edge filtering coefficient f m , and the maximum edge filtering coefficient f m is the edge filtering coefficient corresponding to the edge position of the touch area, that is, f e =f c +f m ; D represents the target distance between the touch position and the edge of the touch area; W represents the width of the edge region of the touch area.

[0069] According to the method of the embodiment, the target filtering coefficient can be directly calculated, and the calculation method is more convenient.

[0070] On the basis of the above embodiment, the technical scheme is further described and optimized in the embodiment, and specifically, in the embodiment, the touch position determination method further includes:

[0071] Step 1: Obtain the overall noise level of the touch area.

[0072] Wherein, the overall noise level of the touch area refers to the noise level corresponding to the interference degree of the entire touch area; the overall noise level is calculated by the comprehensive noise level of the noise level corresponding to each position of the touch area under various interference conditions.

[0073] In the embodiment, the noise data of two consecutive frames of the touch area is obtained, the noise data of each position of the current frame is subtracted from the noise data of each position of the previous frame, and the sum of the noise data difference of each position is obtained to obtain the overall noise level of the touch area.

[0074] For example, suppose the noise data of two consecutive frames obtained at a preset frequency are shown in Table 1 and Table 2 below:

[0075] Table 1 Noise data for the previous frame

[0076] 100 102 101 102 100 101 102 102 103 101 102 103 102 103 101 103 103 102 103 101 103 103 103 104 102 104 103 103 104 103

[0077] Table 2 Noise data for the current frame

[0078] 100 219 102 218 100 217 102 217 104 217 103 221 103 217 102 221 104 218 103 215 103 218 104 222 103 222 103 220 104 217

[0079] The noise data at each position in the current frame is subtracted from the noise data at each position in the previous frame, and the noise data differences are shown in Table 3 below:

[0080] Table 3 Noise Data Difference

[0081] 0 117 1 116 0 116 0 115 1 116 1 118 1 114 1 118 1 116 0 114 0 115 1 118 1 118 0 117 0 114

[0082] The summation of the noise data differences at each location yields an overall noise level of 1740.

[0083] Step 2: Determine the overall filtering coefficient of the touch area based on the correspondence between the overall noise level and the filtering coefficient.

[0084] In this step, a pre-set correspondence between the overall noise level and the filtering coefficient is obtained. This correspondence can be that a certain range of overall noise levels corresponds to one filtering coefficient. For example, the overall noise level can be pre-divided into different intervals, each interval corresponding to a filtering coefficient. When the overall noise level range is 0–100, the corresponding filtering coefficient is 1; when the overall noise level range is 100–200, the corresponding filtering coefficient is 2, and so on. In this embodiment, based on the correspondence between the overall noise level and the filtering coefficient, the filtering coefficient corresponding to the overall noise level of the touch area is determined, and this filtering coefficient is the overall filtering coefficient for the touch area.

[0085] As can be seen, determining the overall filtering coefficient of the touch area according to this embodiment not only allows for the determination of the overall filtering coefficient corresponding to the touch area in a convenient and easy manner, but also enables the determination of the overall filtering coefficient corresponding to the changed overall noise level even when the interference situation of the touch area changes. Therefore, it can improve the accuracy of determining the target filtering coefficient and improve the filtering effect.

[0086] To enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be described in detail below with reference to practical application scenarios. For example... Figure 4 The diagram illustrates a method for determining a touch position. The specific steps of the touch position determination method provided in this embodiment are as follows:

[0087] obtaining an overall noise level of the touch area;

[0088] determining an overall filter coefficient of the touch area according to a corresponding relationship between the overall noise level and the filter coefficient;

[0089] obtaining touch position information corresponding to the touch operation;

[0090] determining a target distance between the touch position corresponding to the touch position information and an edge of the touch area; the target distance is a minimum distance among distances between the touch position and edges of the touch area;

[0091] determining a current edge filter coefficient corresponding to the target distance according to a functional relationship between the edge filter coefficient and the distance; the distance is a distance between the touch position and the edge of the touch area;

[0092] determining a target filter coefficient of the touch position information according to the overall filter coefficient of the touch area and the current edge filter coefficient; the overall filter coefficient is a filter coefficient corresponding to the touch area;

[0093] performing a filtering operation on the touch position information by using the target filter coefficient to obtain updated touch position information.

[0094] The above touch position determination method obtains touch position information corresponding to a touch operation, determines a current edge filter coefficient corresponding to the touch position information, and then determines a target filter coefficient of the touch position information according to an overall filter coefficient of a touch area and the current edge filter coefficient. That is, the target filter coefficient in the present scheme is determined for a touch position corresponding to a touch operation, and therefore, performing a filtering operation on the touch position information by using the target filter coefficient can obtain more accurate touch position information, and the filtering effect is better, so that the line drawn corresponding to the touch operation is smoother, and the touch effect of the touch operation is improved.

[0095] It should be understood that, although each step in the flowchart involved in each of the above embodiments is displayed in sequence according to the arrow, these steps are not necessarily executed in sequence according to the arrow. Unless otherwise specified herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other sequences. Moreover, at least part of the steps in the flowchart involved in each of the above embodiments can include multiple steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence of these steps or stages is not necessarily sequential, but can be executed in rotation or alternation with at least part of other steps or steps or stages in other steps.

[0096] Based on the same inventive concept, the embodiment of the present application further provides a touch position determination apparatus for implementing the touch position determination method. The apparatus provides a solution to the problem in the same way as the solution provided in the above method, and therefore the specific limitations in one or more touch position determination apparatus embodiments provided below can refer to the limitations of the touch position determination method provided above, which will not be described here again.

[0097] In one embodiment, as shown in Figure 5 a touch position determination apparatus is provided, comprising: an obtaining module 502, a first determining module 504, a second determining module 506 and a filtering module 508, wherein:

[0098] The obtaining module 502 is configured to obtain touch position information corresponding to a touch operation.

[0099] The first determining module 504 is configured to determine a current edge filter coefficient corresponding to the touch position information.

[0100] The second determining module 506 is configured to determine a target filter coefficient of the touch position information according to the overall filter coefficient of the touch region and the current edge filter coefficient; the overall filter coefficient is a filter coefficient corresponding to the touch region.

[0101] The filtering module 508 is configured to perform a filtering operation on the touch position information by using the target filter coefficient to obtain updated touch position information.

[0102] The touch position determination apparatus provided by the embodiment of the present application has the same beneficial effects as the above touch position determination method.

[0103] In one embodiment, the first determining module comprises:

[0104] The first coefficient determining sub-module is configured to, if the touch position corresponding to the touch position information is in the edge region, determine the edge filter coefficient corresponding to the edge region as the current edge filter coefficient corresponding to the touch position information, the edge region being a region adjacent to the edge of the touch region in a plurality of regions obtained by pre-dividing the touch region.

[0105] In one embodiment, the edge region comprises a first edge region and a second edge region, and the distance between the first edge region and the edge of the touch region in the same direction is less than the distance between the second edge region and the edge of the touch region; the first coefficient determining sub-module comprises:

[0106] The second coefficient determining sub-module is configured to, if the touch position corresponding to the touch position information is in the first edge region or the second edge region, determine the edge filter coefficient corresponding to the first edge region or the second edge region as the current edge filter coefficient corresponding to the touch position information.

[0107] In one of the embodiments, the first determining module comprises:

[0108] a distance determining sub-module, configured to determine a target distance between the touch position corresponding to the touch position information and an edge of the touch region; the target distance is the minimum distance among distances between the touch position and edges of the touch region;

[0109] a third coefficient determining sub-module, configured to determine a current edge filtering coefficient corresponding to the target distance according to a functional relationship between the edge filtering coefficient and the distance.

[0110] In one of the embodiments, the touch position determining apparatus further comprises:

[0111] a whole noise level obtaining module, configured to obtain a whole noise level of the touch region;

[0112] a whole filtering coefficient determining module, configured to determine a whole filtering coefficient of the touch region according to a corresponding relationship between the whole noise level and the filtering coefficient.

[0113] The modules in the touch position determining apparatus described above can be realized by software, hardware or a combination thereof. The modules can be embedded in or independent of a processor in a computer device in hardware form, or stored in a memory in the computer device in software form, so as to be called and executed by a processor to perform operations corresponding to the modules.

[0114] In one of the embodiments, a computer device is provided, which can be a touch terminal. An internal structure diagram of the computer device can be shown in FIG. 1. The computer device comprises a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for running the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is configured to perform wired or wireless communication with an external terminal. The wireless communication can be achieved through WIFI, mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by the processor to implement a touch position determining method. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer overlaid on the display screen, or a key, trackball or touchpad arranged on the shell of the computer device, or an external keyboard, touchpad or mouse, etc. Figure 6 Those skilled in the art can understand that,

[0115] Figure 6 ​The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0116] In one embodiment, a computer device is provided, comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:

[0117] obtaining touch position information corresponding to the touch operation;

[0118] determining a current edge filter coefficient corresponding to the touch position information;

[0119] determining a target filter coefficient of the touch position information according to the overall filter coefficient of the touch area and the current edge filter coefficient; the overall filter coefficient is a filter coefficient corresponding to the touch area;

[0120] performing a filter operation on the touch position information by using the target filter coefficient to obtain updated touch position information.

[0121] The computer device provided by the embodiments of the present application has the same beneficial effects as the touch position determination method described above.

[0122] In one embodiment, a touch device is provided, comprising a touch device body, and the touch device further comprising the computer device described above.

[0123] The touch device can be, but is not limited to, a touch screen and various personal computers, notebook computers, smart phones, tablet computers, Internet of Things devices and portable wearable devices including the touch screen, the Internet of Things device can be a smart speaker, a smart television, a smart air conditioner, a smart vehicle-mounted device, etc., and the portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, etc.

[0124] The touch device provided by the embodiments of the present application has the same beneficial effects as the touch position determination method described above.

[0125] In one embodiment, a computer readable storage medium is provided, which stores a computer program, and the computer program is executed by a processor to implement the following steps:

[0126] obtaining touch position information corresponding to the touch operation;

[0127] determining a current edge filter coefficient corresponding to the touch position information;

[0128] According to the overall filter coefficient of the touch area and the current edge filter coefficient, a target filter coefficient of the touch position information is determined; the overall filter coefficient is a filter coefficient corresponding to the touch area;

[0129] The touch position information is filtered by using the target filter coefficient, and updated touch position information is obtained.

[0130] The computer readable storage medium provided by the embodiments of the present application has the same beneficial effects as the touch position determination method.

[0131] In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the following steps:

[0132] Obtaining touch position information corresponding to a touch operation;

[0133] Determining a current edge filter coefficient corresponding to the touch position information;

[0134] According to the overall filter coefficient of the touch area and the current edge filter coefficient, a target filter coefficient of the touch position information is determined; the overall filter coefficient is a filter coefficient corresponding to the touch area;

[0135] The touch position information is filtered by using the target filter coefficient, and updated touch position information is obtained.

[0136] The computer program product provided by the embodiments of the present application has the same beneficial effects as the touch position determination method.

[0137] It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties.

[0138] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive random access memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric memory (Ferroelectric Random Access Memory, FRAM), phase change memory (Phase Change Memory, PCM), graphene memory, etc. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.

[0139] Any combination of the technical features of the above embodiments can be made. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described, however, as long as the combination of the technical features does not exist contradictory, it should be considered as the scope of the present application.

[0140] The above embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent of the present application. It should be pointed out that for ordinary skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are within the scope of protection of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.

Claims

1. A touch position determination method, characterized by, The method comprises: acquiring touch position information corresponding to a touch operation; determining a target distance between a touch position corresponding to the touch position information and an edge of a touch region, the target distance being the minimum distance between the touch position and each edge of the touch region, determining a current edge filter coefficient corresponding to the touch position information according to a functional relationship between an edge filter coefficient and a distance, the distance being the distance between the touch position and the edge of the touch region; acquiring an overall noise level of the touch region, and determining an overall filter coefficient of the touch region according to a corresponding relationship between an overall noise level and a filter coefficient; determining a target filter coefficient of the touch position information according to the overall filter coefficient of the touch region and the current edge filter coefficient; the overall filter coefficient being a filter coefficient corresponding to the touch region; performing a filtering operation on the touch position information by using the target filter coefficient to obtain updated touch position information.

2. The method of claim 1, wherein, The determination of the current edge filter coefficient corresponding to the touch position information comprises: if the touch position corresponding to the touch position information is in an edge region, determining an edge filter coefficient corresponding to the edge region as the current edge filter coefficient corresponding to the touch position information, the edge region being a region adjacent to the edge of the touch region in a plurality of regions obtained by previously dividing the touch region.

3. The method of claim 2, wherein, The edge region comprises a first edge region and a second edge region, and the distance between the first edge region and the edge of the touch region is smaller than the distance between the second edge region and the edge of the touch region in the same direction.

4. A touch position determination apparatus, characterized by comprising: The apparatus comprises: an acquisition module configured to acquire touch position information corresponding to a touch operation; a first determination module configured to determine a current edge filter coefficient corresponding to the touch position information; a second determination module configured to determine a target distance between a touch position corresponding to the touch position information and an edge of a touch region, the target distance being the minimum distance between the touch position and each edge of the touch region, determine a current edge filter coefficient corresponding to the touch position information according to a functional relationship between an edge filter coefficient and a distance, the distance being the distance between the touch position and the edge of the touch region, and determine a target filter coefficient of the touch position information according to an overall filter coefficient of the touch region and the current edge filter coefficient; an overall noise level acquisition module configured to acquire an overall noise level of the touch region; an overall filter coefficient determination module configured to determine an overall filter coefficient of the touch region according to a corresponding relationship between an overall noise level and a filter coefficient; a filtering module configured to perform a filtering operation on the touch position information by using the target filter coefficient to obtain updated touch position information.

5. The apparatus of claim 4, wherein, The first determination module is configured to, if the touch position corresponding to the touch position information is in an edge region, determine an edge filter coefficient corresponding to the edge region as the current edge filter coefficient corresponding to the touch position information, the edge region being a region adjacent to the edge of the touch region in a plurality of regions obtained by previously dividing the touch region.

6. The apparatus of claim 5, wherein, The edge region comprises a first edge region and a second edge region, and the distance between the first edge region and the edge of the touch region in the same direction is less than the distance between the second edge region and the edge of the touch region. 7.A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer device is configured to perform the method according to any one of claims 1-6 when the computer program is executed by the processor. The processor, when executing the computer program, implements the steps of the method of any one of claims 1 to 3.

8. A touch device comprising a touch device body, characterized by The touch device further comprises the computer device of claim 7.

9. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program, when executed by the processor, implements the steps of the method of any one of claims 1 to 3.

10. A computer program product comprising a computer program, characterized in that, The computer program, when executed by the processor, implements the steps of the method of any one of claims 1 to 3.

Citation Information

Patent Citations

  • Mobile terminal and touch quality deterioration compensating method thereof

    KR1020140052482A